@droz-js/sdk
Advanced tools
Comparing version 0.9.6 to 0.9.7
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -149,2 +149,3 @@ export type Maybe<T> = T; | ||
prompt: Scalars['String']['input']; | ||
tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>; | ||
}; | ||
@@ -231,2 +232,3 @@ export type I18nText = { | ||
prompt: Scalars['String']['output']; | ||
tryToReplyOnTransition?: Maybe<Scalars['Boolean']['output']>; | ||
updatedAt: Scalars['DateTime']['output']; | ||
@@ -346,2 +348,3 @@ }; | ||
prompt?: InputMaybe<Scalars['String']['input']>; | ||
tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>; | ||
}; | ||
@@ -388,3 +391,3 @@ export type NlpInstanceFragment = (Pick<NlpInstance, 'id' | 'name' | 'drn' | 'createdAt' | 'updatedAt'> & { | ||
}; | ||
export type QnaFragmentFragment = Pick<QnAInstance, 'id' | 'name' | 'drn' | 'createdAt' | 'updatedAt'>; | ||
export type QnaFragmentFragment = Pick<QnAInstance, 'id' | 'name' | 'drn' | 'credentialsId' | 'prompt' | 'tryToReplyOnTransition' | 'createdAt' | 'updatedAt'>; | ||
export type GetQnAInstanceQueryVariables = Exact<{ | ||
@@ -431,3 +434,3 @@ id: Scalars['ID']['input']; | ||
export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -439,8 +442,8 @@ export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const TestNlpInstanceDocument = "\n query testNlpInstance($id: ID!, $sample: String!) {\n testNlpInstance(id: $id, sample: $sample) {\n transition\n confidence\n }\n}\n "; | ||
export declare const GetQnAInstanceDocument = "\n query getQnAInstance($id: ID!) {\n getQnAInstance(id: $id) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListQnAInstancesDocument = "\n query listQnAInstances {\n listQnAInstances {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetQnAInstanceDocument = "\n query getQnAInstance($id: ID!) {\n getQnAInstance(id: $id) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListQnAInstancesDocument = "\n query listQnAInstances {\n listQnAInstances {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export declare const TestQnAInstanceDocument = "\n query testQnAInstance($id: ID!, $input: String!, $history: String) {\n testQnAInstance(id: $id, input: $input, history: $history) {\n answer\n context {\n id\n title\n url\n content\n }\n }\n}\n "; | ||
export declare const CreateQnAInstanceDocument = "\n mutation createQnAInstance($input: CreateQnAInstanceInput!) {\n createQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateQnAInstanceDocument = "\n mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {\n updateQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveQnAInstanceDocument = "\n mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {\n removeQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateQnAInstanceDocument = "\n mutation createQnAInstance($input: CreateQnAInstanceInput!) {\n createQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateQnAInstanceDocument = "\n mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {\n updateQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveQnAInstanceDocument = "\n mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {\n removeQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n prompt\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -447,0 +450,0 @@ export declare function getSdk<C>(requester: Requester<C>): { |
@@ -46,2 +46,5 @@ "use strict"; | ||
drn | ||
credentialsId | ||
prompt | ||
tryToReplyOnTransition | ||
createdAt | ||
@@ -48,0 +51,0 @@ updatedAt |
@@ -215,2 +215,4 @@ export type Maybe<T> = T; | ||
listZendeskTicketCustomFields: Array<ZendeskCustomField>; | ||
listZendeskTicketInteractions: Array<ZendeskTicketInteraction>; | ||
listZendeskTicketInteractionsBySessionId: Array<ZendeskTicketInteraction>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -236,2 +238,9 @@ }; | ||
}; | ||
export type QueryListZendeskTicketInteractionsArgs = { | ||
instanceId: Scalars['ID']['input']; | ||
ticketId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListZendeskTicketInteractionsBySessionIdArgs = { | ||
sessionId: Scalars['ID']['input']; | ||
}; | ||
export type ReSyncZendeskInstanceInput = { | ||
@@ -377,2 +386,20 @@ instanceId: Scalars['ID']['input']; | ||
}; | ||
export type ZendeskTicket = { | ||
authorId?: Maybe<Scalars['String']['output']>; | ||
comment?: Maybe<Scalars['String']['output']>; | ||
commentId?: Maybe<Scalars['String']['output']>; | ||
externalId?: Maybe<Scalars['String']['output']>; | ||
status: Scalars['String']['output']; | ||
tags?: Maybe<Scalars['String']['output']>; | ||
ticketId: Scalars['String']['output']; | ||
}; | ||
export type ZendeskTicketInteraction = { | ||
createdAt: Scalars['DateTime']['output']; | ||
id: Scalars['ID']['output']; | ||
instanceId: Scalars['ID']['output']; | ||
sessionId: Scalars['ID']['output']; | ||
ticket?: Maybe<ZendeskTicket>; | ||
ticketId: Scalars['ID']['output']; | ||
updatedAt: Scalars['DateTime']['output']; | ||
}; | ||
export type ZendeskTicketSessionAttributes = { | ||
@@ -394,2 +421,3 @@ customer: ZendeskCustomer; | ||
export type ZendeskCustomerFragment = Pick<ZendeskCustomer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'externalId' | 'document' | 'createdAt' | 'updatedAt'>; | ||
export type ZendeskTicketInteractionFragment = Pick<ZendeskTicketInteraction, 'id' | 'ticketId' | 'instanceId' | 'sessionId' | 'createdAt' | 'updatedAt'>; | ||
export type GetZendeskInstanceQueryVariables = Exact<{ | ||
@@ -435,2 +463,15 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type ListZendeskTicketInteractionsQueryVariables = Exact<{ | ||
ticketId: Scalars['ID']['input']; | ||
instanceId: Scalars['ID']['input']; | ||
}>; | ||
export type ListZendeskTicketInteractionsQuery = { | ||
listZendeskTicketInteractions: Array<ZendeskTicketInteractionFragment>; | ||
}; | ||
export type ListZendeskTicketInteractionsBySessionIdQueryVariables = Exact<{ | ||
sessionId: Scalars['ID']['input']; | ||
}>; | ||
export type ListZendeskTicketInteractionsBySessionIdQuery = { | ||
listZendeskTicketInteractionsBySessionId: Array<ZendeskTicketInteractionFragment>; | ||
}; | ||
export type SwitchDisableSyncTagMutationVariables = Exact<{ | ||
@@ -460,2 +501,3 @@ input: SwitchDisableSyncTagInput; | ||
export declare const ZendeskCustomerFragmentDoc = "\n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n alternateName\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n "; | ||
export declare const ZendeskTicketInteractionFragmentDoc = "\n fragment zendeskTicketInteraction on ZendeskTicketInteraction {\n id\n ticketId\n instanceId\n sessionId\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetZendeskInstanceDocument = "\n query getZendeskInstance($id: ID!) {\n getZendeskInstance(id: $id) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n drn\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n zendeskAuthorizedUserTags\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -467,2 +509,4 @@ export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n drn\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n zendeskAuthorizedUserTags\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n organization\n customer {\n ...zendeskCustomer\n }\n source\n order\n products\n triggerApp {\n id\n name\n description\n }\n }\n}\n \n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n alternateName\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListZendeskTicketInteractionsDocument = "\n query listZendeskTicketInteractions($ticketId: ID!, $instanceId: ID!) {\n listZendeskTicketInteractions(ticketId: $ticketId, instanceId: $instanceId) {\n ...zendeskTicketInteraction\n }\n}\n \n fragment zendeskTicketInteraction on ZendeskTicketInteraction {\n id\n ticketId\n instanceId\n sessionId\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListZendeskTicketInteractionsBySessionIdDocument = "\n query listZendeskTicketInteractionsBySessionId($sessionId: ID!) {\n listZendeskTicketInteractionsBySessionId(sessionId: $sessionId) {\n ...zendeskTicketInteraction\n }\n}\n \n fragment zendeskTicketInteraction on ZendeskTicketInteraction {\n id\n ticketId\n instanceId\n sessionId\n createdAt\n updatedAt\n}\n "; | ||
export declare const SwitchDisableSyncTagDocument = "\n mutation switchDisableSyncTag($input: SwitchDisableSyncTagInput!) {\n switchDisableSyncTag(input: $input)\n}\n "; | ||
@@ -480,2 +524,4 @@ export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n drn\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n zendeskAuthorizedUserTags\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n "; | ||
getTicketSessionAttributes(variables: GetTicketSessionAttributesQueryVariables, options?: C): Promise<GetTicketSessionAttributesQuery>; | ||
listZendeskTicketInteractions(variables: ListZendeskTicketInteractionsQueryVariables, options?: C): Promise<ListZendeskTicketInteractionsQuery>; | ||
listZendeskTicketInteractionsBySessionId(variables: ListZendeskTicketInteractionsBySessionIdQueryVariables, options?: C): Promise<ListZendeskTicketInteractionsBySessionIdQuery>; | ||
switchDisableSyncTag(variables: SwitchDisableSyncTagMutationVariables, options?: C): Promise<SwitchDisableSyncTagMutation>; | ||
@@ -482,0 +528,0 @@ createZendeskInstance(variables: CreateZendeskInstanceMutationVariables, options?: C): Promise<CreateZendeskInstanceMutation>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.SwitchDisableSyncTagDocument = exports.GetTicketSessionAttributesDocument = exports.AssertCanUserInteractDocument = exports.ListZendeskRolesDocument = exports.ListZendeskTicketCustomFieldsDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskCustomerFragmentDoc = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.SwitchDisableSyncTagDocument = exports.ListZendeskTicketInteractionsBySessionIdDocument = exports.ListZendeskTicketInteractionsDocument = exports.GetTicketSessionAttributesDocument = exports.AssertCanUserInteractDocument = exports.ListZendeskRolesDocument = exports.ListZendeskTicketCustomFieldsDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskTicketInteractionFragmentDoc = exports.ZendeskCustomerFragmentDoc = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0; | ||
exports.getSdk = getSdk; | ||
@@ -62,2 +62,12 @@ var AppInstanceStatus; | ||
`; | ||
exports.ZendeskTicketInteractionFragmentDoc = ` | ||
fragment zendeskTicketInteraction on ZendeskTicketInteraction { | ||
id | ||
ticketId | ||
instanceId | ||
sessionId | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.GetZendeskInstanceDocument = ` | ||
@@ -121,2 +131,16 @@ query getZendeskInstance($id: ID!) { | ||
${exports.ZendeskCustomerFragmentDoc}`; | ||
exports.ListZendeskTicketInteractionsDocument = ` | ||
query listZendeskTicketInteractions($ticketId: ID!, $instanceId: ID!) { | ||
listZendeskTicketInteractions(ticketId: $ticketId, instanceId: $instanceId) { | ||
...zendeskTicketInteraction | ||
} | ||
} | ||
${exports.ZendeskTicketInteractionFragmentDoc}`; | ||
exports.ListZendeskTicketInteractionsBySessionIdDocument = ` | ||
query listZendeskTicketInteractionsBySessionId($sessionId: ID!) { | ||
listZendeskTicketInteractionsBySessionId(sessionId: $sessionId) { | ||
...zendeskTicketInteraction | ||
} | ||
} | ||
${exports.ZendeskTicketInteractionFragmentDoc}`; | ||
exports.SwitchDisableSyncTagDocument = ` | ||
@@ -168,2 +192,8 @@ mutation switchDisableSyncTag($input: SwitchDisableSyncTagInput!) { | ||
}, | ||
listZendeskTicketInteractions(variables, options) { | ||
return requester(exports.ListZendeskTicketInteractionsDocument, variables, options); | ||
}, | ||
listZendeskTicketInteractionsBySessionId(variables, options) { | ||
return requester(exports.ListZendeskTicketInteractionsBySessionIdDocument, variables, options); | ||
}, | ||
switchDisableSyncTag(variables, options) { | ||
@@ -170,0 +200,0 @@ return requester(exports.SwitchDisableSyncTagDocument, variables, options); |
@@ -30,2 +30,9 @@ export * from './sdks/zendesk'; | ||
}>, options?: unknown): Promise<import("./sdks/zendesk").GetTicketSessionAttributesQuery>; | ||
listZendeskTicketInteractions(variables: import("./sdks/zendesk").Exact<{ | ||
ticketId: import("./sdks/zendesk").Scalars["ID"]["input"]; | ||
instanceId: import("./sdks/zendesk").Scalars["ID"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/zendesk").ListZendeskTicketInteractionsQuery>; | ||
listZendeskTicketInteractionsBySessionId(variables: import("./sdks/zendesk").Exact<{ | ||
sessionId: import("./sdks/zendesk").Scalars["ID"]["input"]; | ||
}>, options?: unknown): Promise<import("./sdks/zendesk").ListZendeskTicketInteractionsBySessionIdQuery>; | ||
switchDisableSyncTag(variables: import("./sdks/zendesk").Exact<{ | ||
@@ -32,0 +39,0 @@ input: import("./sdks/zendesk").SwitchDisableSyncTagInput; |
Sorry, the diff of this file is too big to display
1458523
29108