@droz-js/sdk 0.16.12 → 0.16.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozbot.d.ts +3 -0
- package/src/drozchat-ws.d.ts +3 -9
- package/src/drozchat.d.ts +3 -9
- package/src/email.d.ts +3 -0
- package/src/sdks/campaigns.d.ts +1 -0
- package/src/sdks/drozbot.d.ts +21 -0
- package/src/sdks/drozbot.js +9 -1
- package/src/sdks/drozchat.d.ts +66 -50
- package/src/sdks/drozchat.js +22 -48
- package/src/sdks/email.d.ts +28 -0
- package/src/sdks/email.js +10 -1
package/package.json
CHANGED
package/src/drozbot.d.ts
CHANGED
|
@@ -115,6 +115,9 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
115
115
|
activeTrigger(variables: import("./sdks/drozbot").Exact<{
|
|
116
116
|
input: import("./sdks/drozbot").ActiveTriggerInput;
|
|
117
117
|
}>, options?: unknown): Promise<import("./sdks/drozbot").ActiveTriggerMutation>;
|
|
118
|
+
internalWhatsAppActiveDispatch(variables: import("./sdks/drozbot").Exact<{
|
|
119
|
+
input: import("./sdks/drozbot").InternalWhatsAppActiveDispatchInput;
|
|
120
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").InternalWhatsAppActiveDispatchMutation>;
|
|
118
121
|
};
|
|
119
122
|
export declare class DrozBot extends DrozBot_base {
|
|
120
123
|
}
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ declare const DrozChatWs_base: new () => {
|
|
|
3
3
|
readonly ws: any;
|
|
4
4
|
connect(): Promise<void>;
|
|
5
5
|
} & {
|
|
6
|
+
activeDispatch(variables: import("./sdks/drozchat").Exact<{
|
|
7
|
+
input: import("./sdks/drozchat").ActiveDispatchInput;
|
|
8
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ActiveDispatchMutation>;
|
|
6
9
|
generateAnalyticsToken(variables?: import("./sdks/drozchat").Exact<{
|
|
7
10
|
[key: string]: never;
|
|
8
11
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GenerateAnalyticsTokenMutation>;
|
|
@@ -97,15 +100,6 @@ declare const DrozChatWs_base: new () => {
|
|
|
97
100
|
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
98
101
|
[key: string]: never;
|
|
99
102
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
100
|
-
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
101
|
-
[key: string]: never;
|
|
102
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
103
|
-
upsertNpsSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
104
|
-
input: import("./sdks/drozchat").UpsertNpsSurveyInput;
|
|
105
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsSurveyMutation>;
|
|
106
|
-
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
107
|
-
[key: string]: never;
|
|
108
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
109
103
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
110
104
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
111
105
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): /*elided*/ any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): /*elided*/ any;
|
|
8
8
|
} & {
|
|
9
|
+
activeDispatch(variables: import("./sdks/drozchat").Exact<{
|
|
10
|
+
input: import("./sdks/drozchat").ActiveDispatchInput;
|
|
11
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ActiveDispatchMutation>;
|
|
9
12
|
generateAnalyticsToken(variables?: import("./sdks/drozchat").Exact<{
|
|
10
13
|
[key: string]: never;
|
|
11
14
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GenerateAnalyticsTokenMutation>;
|
|
@@ -100,15 +103,6 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
100
103
|
disableSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
101
104
|
[key: string]: never;
|
|
102
105
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableSurveyMutation>;
|
|
103
|
-
getNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
104
|
-
[key: string]: never;
|
|
105
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetNpsSurveyQuery>;
|
|
106
|
-
upsertNpsSurvey(variables: import("./sdks/drozchat").Exact<{
|
|
107
|
-
input: import("./sdks/drozchat").UpsertNpsSurveyInput;
|
|
108
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").UpsertNpsSurveyMutation>;
|
|
109
|
-
disableNpsSurvey(variables?: import("./sdks/drozchat").Exact<{
|
|
110
|
-
[key: string]: never;
|
|
111
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableNpsSurveyMutation>;
|
|
112
106
|
listQuickAnswers(variables?: import("./sdks/drozchat").Exact<{
|
|
113
107
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
114
108
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListQuickAnswersQuery>;
|
package/src/email.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
48
48
|
processSendGridEventWebhook(variables: import("./sdks/email").Exact<{
|
|
49
49
|
input: import("./sdks/email").SendGridEventWebhookInput;
|
|
50
50
|
}>, options?: unknown): Promise<import("./sdks/email").ProcessSendGridEventWebhookMutation>;
|
|
51
|
+
internalActiveDispatch(variables: import("./sdks/email").Exact<{
|
|
52
|
+
input: import("./sdks/email").InternalActiveDispatchInput;
|
|
53
|
+
}>, options?: unknown): Promise<import("./sdks/email").InternalActiveDispatchMutation>;
|
|
51
54
|
listThreadingBySessionId(variables: import("./sdks/email").Exact<{
|
|
52
55
|
sessionId: import("./sdks/email").Scalars["ID"]["input"];
|
|
53
56
|
}>, options?: unknown): Promise<import("./sdks/email").ListThreadingBySessionIdQuery>;
|
package/src/sdks/campaigns.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ export type I18nTextInput = {
|
|
|
243
243
|
value: Scalars['String']['input'];
|
|
244
244
|
};
|
|
245
245
|
export type Mutation = {
|
|
246
|
+
/** @deprecated Use drozchat.activeDispatch instead */
|
|
246
247
|
activeTrigger: ActiveTrigger;
|
|
247
248
|
createCampaign?: Maybe<Campaign>;
|
|
248
249
|
removeCampaign?: Maybe<Campaign>;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -515,7 +515,18 @@ export type IntentDictionaryEntityInput = {
|
|
|
515
515
|
keys: Array<Scalars['String']['input']>;
|
|
516
516
|
label: Scalars['String']['input'];
|
|
517
517
|
};
|
|
518
|
+
export type InternalWhatsAppActiveDispatchInput = {
|
|
519
|
+
botId: Scalars['ID']['input'];
|
|
520
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
521
|
+
externalId: Scalars['ID']['input'];
|
|
522
|
+
phone: Scalars['String']['input'];
|
|
523
|
+
sessionId: Scalars['ID']['input'];
|
|
524
|
+
templateContent: Scalars['String']['input'];
|
|
525
|
+
templateName: Scalars['String']['input'];
|
|
526
|
+
vars: Array<Scalars['String']['input']>;
|
|
527
|
+
};
|
|
518
528
|
export type Mutation = {
|
|
529
|
+
/** @deprecated Use drozchat.activeDispatch with connector: whatsapp instead */
|
|
519
530
|
activeTrigger?: Maybe<Scalars['Void']['output']>;
|
|
520
531
|
analyzeDrozbotTalk: DrozbotTalkAnalysis;
|
|
521
532
|
createDrozBotInstance: DrozBotInstance;
|
|
@@ -523,6 +534,7 @@ export type Mutation = {
|
|
|
523
534
|
createDrozBotTicketComment: DrozBotTicketComment;
|
|
524
535
|
createDrozBotTicketComments: Array<DrozBotTicketComment>;
|
|
525
536
|
evaluateDrozbotTalkAnalysisOutput: DrozbotTalkAnalysisEvaluation;
|
|
537
|
+
internalWhatsAppActiveDispatch?: Maybe<Scalars['Void']['output']>;
|
|
526
538
|
predictIntent?: Maybe<Intent>;
|
|
527
539
|
registerRootCredential?: Maybe<Scalars['Void']['output']>;
|
|
528
540
|
removeDrozBotInstance: DrozBotInstance;
|
|
@@ -558,6 +570,9 @@ export type MutationCreateDrozBotTicketCommentsArgs = {
|
|
|
558
570
|
export type MutationEvaluateDrozbotTalkAnalysisOutputArgs = {
|
|
559
571
|
input: EvaluateDrozbotTalkAnalysisOutputInput;
|
|
560
572
|
};
|
|
573
|
+
export type MutationInternalWhatsAppActiveDispatchArgs = {
|
|
574
|
+
input: InternalWhatsAppActiveDispatchInput;
|
|
575
|
+
};
|
|
561
576
|
export type MutationPredictIntentArgs = {
|
|
562
577
|
input: PredictIntentInput;
|
|
563
578
|
};
|
|
@@ -1013,6 +1028,10 @@ export type ActiveTriggerMutationVariables = Exact<{
|
|
|
1013
1028
|
input: ActiveTriggerInput;
|
|
1014
1029
|
}>;
|
|
1015
1030
|
export type ActiveTriggerMutation = Pick<Mutation, 'activeTrigger'>;
|
|
1031
|
+
export type InternalWhatsAppActiveDispatchMutationVariables = Exact<{
|
|
1032
|
+
input: InternalWhatsAppActiveDispatchInput;
|
|
1033
|
+
}>;
|
|
1034
|
+
export type InternalWhatsAppActiveDispatchMutation = Pick<Mutation, 'internalWhatsAppActiveDispatch'>;
|
|
1016
1035
|
export declare const AiActionVariableValueFragmentDoc = "\n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
1017
1036
|
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
1018
1037
|
export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
@@ -1059,6 +1078,7 @@ export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBot
|
|
|
1059
1078
|
export declare const ListWhatsAppBotTemplatesDocument = "\n query listWhatsAppBotTemplates($id: ID!) {\n listWhatsAppBotTemplates(id: $id) {\n ...drozBotWhatsAppTemplate\n }\n}\n \n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
|
|
1060
1079
|
export declare const RegisterRootCredentialDocument = "\n mutation registerRootCredential($input: DrozBotRootCredentialInput!) {\n registerRootCredential(input: $input)\n}\n ";
|
|
1061
1080
|
export declare const ActiveTriggerDocument = "\n mutation activeTrigger($input: ActiveTriggerInput!) {\n activeTrigger(input: $input)\n}\n ";
|
|
1081
|
+
export declare const InternalWhatsAppActiveDispatchDocument = "\n mutation internalWhatsAppActiveDispatch($input: InternalWhatsAppActiveDispatchInput!) {\n internalWhatsAppActiveDispatch(input: $input)\n}\n ";
|
|
1062
1082
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
1063
1083
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1064
1084
|
runDrozbotAiAction(variables: RunDrozbotAiActionMutationVariables, options?: C): Promise<RunDrozbotAiActionMutation>;
|
|
@@ -1096,6 +1116,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1096
1116
|
listWhatsAppBotTemplates(variables: ListWhatsAppBotTemplatesQueryVariables, options?: C): Promise<ListWhatsAppBotTemplatesQuery>;
|
|
1097
1117
|
registerRootCredential(variables: RegisterRootCredentialMutationVariables, options?: C): Promise<RegisterRootCredentialMutation>;
|
|
1098
1118
|
activeTrigger(variables: ActiveTriggerMutationVariables, options?: C): Promise<ActiveTriggerMutation>;
|
|
1119
|
+
internalWhatsAppActiveDispatch(variables: InternalWhatsAppActiveDispatchMutationVariables, options?: C): Promise<InternalWhatsAppActiveDispatchMutation>;
|
|
1099
1120
|
};
|
|
1100
1121
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1101
1122
|
export declare const serviceName = "@droz/drozbot";
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ListDrozbotTalkAnalysesDocument = exports.GetDrozbotTalkAnalysisDocument = exports.DrozbotTalkAnalysisIntentionsDocument = exports.DrozbotAiTalkAnalysisPendingRetriesDocument = exports.DrozbotAiTalkAnalysisInputsDocument = exports.FetchDrozbotTalkAnalysisDatasetDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.GetCustomerByPhoneDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.SyncChatbotConversationsDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionHumanizedAnswerDocument = exports.RunDrozbotAiActionDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.DrozbotTalkAnalysisFragmentDoc = exports.DrozbotTalkAnalysisEvaluationFragmentDoc = exports.DrozbotTalkAnalysisInputFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotCustomerFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariableValueFragmentDoc = exports.Typenames = exports.DrozbotTalkAnalysisSentiment = exports.DrozbotTalkAnalysisSatisfactionLevel = exports.DrozbotTalkAnalysisCustomerEffortLabel = exports.DrozbotTalkAnalysisAbandonmentType = exports.DrozbotBatchJobStatus = exports.DrozbotAiTalkAnalysisProcessingStatus = exports.DrozbotAiAction = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
-
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.EvaluateDrozbotTalkAnalysisOutputDocument = exports.AnalyzeDrozbotTalkDocument = exports.GetDrozbotTalkAnalysisEmbedUrlDocument = exports.DrozbotTalkConversationDocument = exports.TriggerDrozbotTalkAnalysisBackfillDocument = exports.TriggerDrozbotTalkAnalysisBatchDocument = exports.TriggerDrozbotTalkAnalysisIngestDocument = void 0;
|
|
5
|
+
exports.serviceName = exports.InternalWhatsAppActiveDispatchDocument = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.EvaluateDrozbotTalkAnalysisOutputDocument = exports.AnalyzeDrozbotTalkDocument = exports.GetDrozbotTalkAnalysisEmbedUrlDocument = exports.DrozbotTalkConversationDocument = exports.TriggerDrozbotTalkAnalysisBackfillDocument = exports.TriggerDrozbotTalkAnalysisBatchDocument = exports.TriggerDrozbotTalkAnalysisIngestDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -539,6 +539,11 @@ exports.ActiveTriggerDocument = `
|
|
|
539
539
|
activeTrigger(input: $input)
|
|
540
540
|
}
|
|
541
541
|
`;
|
|
542
|
+
exports.InternalWhatsAppActiveDispatchDocument = `
|
|
543
|
+
mutation internalWhatsAppActiveDispatch($input: InternalWhatsAppActiveDispatchInput!) {
|
|
544
|
+
internalWhatsAppActiveDispatch(input: $input)
|
|
545
|
+
}
|
|
546
|
+
`;
|
|
542
547
|
function getSdk(requester) {
|
|
543
548
|
return {
|
|
544
549
|
runDrozbotAiAction(variables, options) {
|
|
@@ -645,6 +650,9 @@ function getSdk(requester) {
|
|
|
645
650
|
},
|
|
646
651
|
activeTrigger(variables, options) {
|
|
647
652
|
return requester(exports.ActiveTriggerDocument, variables, options);
|
|
653
|
+
},
|
|
654
|
+
internalWhatsAppActiveDispatch(variables, options) {
|
|
655
|
+
return requester(exports.InternalWhatsAppActiveDispatchDocument, variables, options);
|
|
648
656
|
}
|
|
649
657
|
};
|
|
650
658
|
}
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -122,6 +122,40 @@ export type Scalars = {
|
|
|
122
122
|
output: void;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
+
export declare enum ActiveDispatchConnector {
|
|
126
|
+
Email = "email",
|
|
127
|
+
Whatsapp = "whatsapp"
|
|
128
|
+
}
|
|
129
|
+
export type ActiveDispatchEmailInput = {
|
|
130
|
+
bcc?: InputMaybe<Array<ActiveDispatchRecipientInput>>;
|
|
131
|
+
cc?: InputMaybe<Array<ActiveDispatchRecipientInput>>;
|
|
132
|
+
instanceId: Scalars['ID']['input'];
|
|
133
|
+
messages: Array<ActiveDispatchMessageInput>;
|
|
134
|
+
subject: Scalars['String']['input'];
|
|
135
|
+
to: Array<ActiveDispatchRecipientInput>;
|
|
136
|
+
};
|
|
137
|
+
export type ActiveDispatchInput = {
|
|
138
|
+
connector: ActiveDispatchConnector;
|
|
139
|
+
email?: InputMaybe<ActiveDispatchEmailInput>;
|
|
140
|
+
sessionId: Scalars['ID']['input'];
|
|
141
|
+
whatsapp?: InputMaybe<ActiveDispatchWhatsAppInput>;
|
|
142
|
+
};
|
|
143
|
+
export type ActiveDispatchMessageInput = {
|
|
144
|
+
content: Scalars['String']['input'];
|
|
145
|
+
contentType: Scalars['String']['input'];
|
|
146
|
+
};
|
|
147
|
+
export type ActiveDispatchRecipientInput = {
|
|
148
|
+
email: Scalars['EmailAddress']['input'];
|
|
149
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
150
|
+
};
|
|
151
|
+
export type ActiveDispatchWhatsAppInput = {
|
|
152
|
+
botId: Scalars['ID']['input'];
|
|
153
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
154
|
+
phone: Scalars['String']['input'];
|
|
155
|
+
templateContent: Scalars['String']['input'];
|
|
156
|
+
templateName: Scalars['String']['input'];
|
|
157
|
+
vars: Array<Scalars['String']['input']>;
|
|
158
|
+
};
|
|
125
159
|
export type AddDrozChatAgentGroupInput = {
|
|
126
160
|
agentId: Scalars['ID']['input'];
|
|
127
161
|
id: Scalars['ID']['input'];
|
|
@@ -185,6 +219,20 @@ export type ChannelSearchResultsFacetValue = {
|
|
|
185
219
|
count: Scalars['Float']['output'];
|
|
186
220
|
value: Scalars['String']['output'];
|
|
187
221
|
};
|
|
222
|
+
export type ChannelSetting = {
|
|
223
|
+
channel: SurveyChannels;
|
|
224
|
+
commentMessage?: Maybe<Scalars['String']['output']>;
|
|
225
|
+
enabled: Scalars['Boolean']['output'];
|
|
226
|
+
evaluationMessage?: Maybe<Scalars['String']['output']>;
|
|
227
|
+
ttlMinutes: Scalars['Int']['output'];
|
|
228
|
+
};
|
|
229
|
+
export type ChannelSettingInput = {
|
|
230
|
+
channel: SurveyChannels;
|
|
231
|
+
commentMessage?: InputMaybe<Scalars['String']['input']>;
|
|
232
|
+
enabled: Scalars['Boolean']['input'];
|
|
233
|
+
evaluationMessage?: InputMaybe<Scalars['String']['input']>;
|
|
234
|
+
ttlMinutes: Scalars['Int']['input'];
|
|
235
|
+
};
|
|
188
236
|
export type ChatActions = {
|
|
189
237
|
canAssign: Scalars['Boolean']['output'];
|
|
190
238
|
canClose: Scalars['Boolean']['output'];
|
|
@@ -398,6 +446,7 @@ export type MarkTicketMessagesAsReadInput = {
|
|
|
398
446
|
ticketId: Scalars['ID']['input'];
|
|
399
447
|
};
|
|
400
448
|
export type Mutation = {
|
|
449
|
+
activeDispatch?: Maybe<Scalars['Void']['output']>;
|
|
401
450
|
addDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
402
451
|
addDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
403
452
|
addDrozChatChannelGroup?: Maybe<DrozChatChannel>;
|
|
@@ -425,7 +474,6 @@ export type Mutation = {
|
|
|
425
474
|
deleteView: View;
|
|
426
475
|
disableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
427
476
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
428
|
-
disableNpsSurvey: NpsSurvey;
|
|
429
477
|
disableSurvey: Survey;
|
|
430
478
|
enableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
431
479
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
@@ -446,10 +494,12 @@ export type Mutation = {
|
|
|
446
494
|
updateTicket: Ticket;
|
|
447
495
|
updateTrigger: Trigger;
|
|
448
496
|
updateView: View;
|
|
449
|
-
upsertNpsSurvey: NpsSurvey;
|
|
450
497
|
upsertSurvey: Survey;
|
|
451
498
|
version?: Maybe<Scalars['String']['output']>;
|
|
452
499
|
};
|
|
500
|
+
export type MutationActiveDispatchArgs = {
|
|
501
|
+
input: ActiveDispatchInput;
|
|
502
|
+
};
|
|
453
503
|
export type MutationAddDrozChatAgentGroupArgs = {
|
|
454
504
|
input: AddDrozChatAgentGroupInput;
|
|
455
505
|
};
|
|
@@ -582,23 +632,9 @@ export type MutationUpdateTriggerArgs = {
|
|
|
582
632
|
export type MutationUpdateViewArgs = {
|
|
583
633
|
input: UpdateViewInput;
|
|
584
634
|
};
|
|
585
|
-
export type MutationUpsertNpsSurveyArgs = {
|
|
586
|
-
input: UpsertNpsSurveyInput;
|
|
587
|
-
};
|
|
588
635
|
export type MutationUpsertSurveyArgs = {
|
|
589
636
|
input: UpsertSurveyInput;
|
|
590
637
|
};
|
|
591
|
-
export type NpsSurvey = {
|
|
592
|
-
channels: Array<NpsSurveyChannels>;
|
|
593
|
-
commentMessage: Scalars['String']['output'];
|
|
594
|
-
createdAt: Scalars['DateTime']['output'];
|
|
595
|
-
enabled: Scalars['Boolean']['output'];
|
|
596
|
-
evaluationMessage: Scalars['String']['output'];
|
|
597
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
598
|
-
};
|
|
599
|
-
export declare enum NpsSurveyChannels {
|
|
600
|
-
WhatsApp = "WhatsApp"
|
|
601
|
-
}
|
|
602
638
|
export type NumberMatcher = {
|
|
603
639
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
604
640
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -632,7 +668,6 @@ export type Query = {
|
|
|
632
668
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
633
669
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
634
670
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
635
|
-
getNpsSurvey?: Maybe<NpsSurvey>;
|
|
636
671
|
getSurvey?: Maybe<Survey>;
|
|
637
672
|
getTicket?: Maybe<Ticket>;
|
|
638
673
|
getTrigger?: Maybe<Trigger>;
|
|
@@ -855,6 +890,7 @@ export declare enum SubscriptionAction {
|
|
|
855
890
|
Updated = "UPDATED"
|
|
856
891
|
}
|
|
857
892
|
export type Survey = {
|
|
893
|
+
channelSettings: Array<ChannelSetting>;
|
|
858
894
|
channels: Array<SurveyChannels>;
|
|
859
895
|
commentMessage: Scalars['String']['output'];
|
|
860
896
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -864,6 +900,7 @@ export type Survey = {
|
|
|
864
900
|
updatedAt: Scalars['DateTime']['output'];
|
|
865
901
|
};
|
|
866
902
|
export declare enum SurveyChannels {
|
|
903
|
+
Email = "Email",
|
|
867
904
|
WhatsApp = "WhatsApp"
|
|
868
905
|
}
|
|
869
906
|
export declare enum SurveyTypes {
|
|
@@ -959,6 +996,7 @@ export type TicketMessageSubscription = {
|
|
|
959
996
|
message: TicketMessage;
|
|
960
997
|
};
|
|
961
998
|
export declare enum TicketMessageType {
|
|
999
|
+
ActiveTrigger = "ACTIVE_TRIGGER",
|
|
962
1000
|
Internal = "INTERNAL",
|
|
963
1001
|
Regular = "REGULAR"
|
|
964
1002
|
}
|
|
@@ -1183,6 +1221,7 @@ export declare enum TriggerActionType {
|
|
|
1183
1221
|
RoutingTicket = "ROUTING_TICKET",
|
|
1184
1222
|
SendMessage = "SEND_MESSAGE",
|
|
1185
1223
|
SendNotification = "SEND_NOTIFICATION",
|
|
1224
|
+
SendSurvey = "SEND_SURVEY",
|
|
1186
1225
|
SetPriority = "SET_PRIORITY",
|
|
1187
1226
|
SetStatus = "SET_STATUS",
|
|
1188
1227
|
TransferToChannel = "TRANSFER_TO_CHANNEL"
|
|
@@ -1204,9 +1243,12 @@ export type TriggerVariable = {
|
|
|
1204
1243
|
key: Scalars['String']['output'];
|
|
1205
1244
|
};
|
|
1206
1245
|
export declare enum Typenames {
|
|
1246
|
+
ActiveDispatches = "ActiveDispatches",
|
|
1207
1247
|
AgentChannelIndex = "AgentChannelIndex",
|
|
1208
1248
|
AgentGroup = "AgentGroup",
|
|
1209
1249
|
Any = "Any",
|
|
1250
|
+
CajCloseBatches = "CajCloseBatches",
|
|
1251
|
+
CajCloseRuns = "CajCloseRuns",
|
|
1210
1252
|
ChannelLastAssignee = "ChannelLastAssignee",
|
|
1211
1253
|
ChannelTriggerExecutions = "ChannelTriggerExecutions",
|
|
1212
1254
|
Channels = "Channels",
|
|
@@ -1215,7 +1257,6 @@ export declare enum Typenames {
|
|
|
1215
1257
|
GraphqlConnections = "GraphqlConnections",
|
|
1216
1258
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
1217
1259
|
GroupChannelIndex = "GroupChannelIndex",
|
|
1218
|
-
NpsSurvey = "NpsSurvey",
|
|
1219
1260
|
Protocols = "Protocols",
|
|
1220
1261
|
QuickAnswers = "QuickAnswers",
|
|
1221
1262
|
Survey = "Survey",
|
|
@@ -1276,13 +1317,8 @@ export type UpdateViewInput = {
|
|
|
1276
1317
|
id: Scalars['ID']['input'];
|
|
1277
1318
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1278
1319
|
};
|
|
1279
|
-
export type UpsertNpsSurveyInput = {
|
|
1280
|
-
channels: Array<NpsSurveyChannels>;
|
|
1281
|
-
commentMessage: Scalars['String']['input'];
|
|
1282
|
-
enabled: Scalars['Boolean']['input'];
|
|
1283
|
-
evaluationMessage: Scalars['String']['input'];
|
|
1284
|
-
};
|
|
1285
1320
|
export type UpsertSurveyInput = {
|
|
1321
|
+
channelSettings?: InputMaybe<Array<ChannelSettingInput>>;
|
|
1286
1322
|
channels: Array<SurveyChannels>;
|
|
1287
1323
|
commentMessage: Scalars['String']['input'];
|
|
1288
1324
|
enabled: Scalars['Boolean']['input'];
|
|
@@ -1296,6 +1332,10 @@ export type View = {
|
|
|
1296
1332
|
name: Scalars['String']['output'];
|
|
1297
1333
|
updatedAt: Scalars['DateTime']['output'];
|
|
1298
1334
|
};
|
|
1335
|
+
export type ActiveDispatchMutationVariables = Exact<{
|
|
1336
|
+
input: ActiveDispatchInput;
|
|
1337
|
+
}>;
|
|
1338
|
+
export type ActiveDispatchMutation = Pick<Mutation, 'activeDispatch'>;
|
|
1299
1339
|
export type GenerateAnalyticsTokenMutationVariables = Exact<{
|
|
1300
1340
|
[key: string]: never;
|
|
1301
1341
|
}>;
|
|
@@ -1493,25 +1533,6 @@ export type DisableSurveyMutationVariables = Exact<{
|
|
|
1493
1533
|
export type DisableSurveyMutation = {
|
|
1494
1534
|
disableSurvey: SurveyFragment;
|
|
1495
1535
|
};
|
|
1496
|
-
export type NpsSurveyFragment = Pick<NpsSurvey, 'channels' | 'evaluationMessage' | 'commentMessage' | 'enabled' | 'createdAt' | 'updatedAt'>;
|
|
1497
|
-
export type GetNpsSurveyQueryVariables = Exact<{
|
|
1498
|
-
[key: string]: never;
|
|
1499
|
-
}>;
|
|
1500
|
-
export type GetNpsSurveyQuery = {
|
|
1501
|
-
getNpsSurvey?: Maybe<NpsSurveyFragment>;
|
|
1502
|
-
};
|
|
1503
|
-
export type UpsertNpsSurveyMutationVariables = Exact<{
|
|
1504
|
-
input: UpsertNpsSurveyInput;
|
|
1505
|
-
}>;
|
|
1506
|
-
export type UpsertNpsSurveyMutation = {
|
|
1507
|
-
upsertNpsSurvey: NpsSurveyFragment;
|
|
1508
|
-
};
|
|
1509
|
-
export type DisableNpsSurveyMutationVariables = Exact<{
|
|
1510
|
-
[key: string]: never;
|
|
1511
|
-
}>;
|
|
1512
|
-
export type DisableNpsSurveyMutation = {
|
|
1513
|
-
disableNpsSurvey: NpsSurveyFragment;
|
|
1514
|
-
};
|
|
1515
1536
|
export type QuickAnswerFragment = (Pick<QuickAnswer, 'id' | 'name' | 'message' | 'createdAt' | 'updatedAt'> & {
|
|
1516
1537
|
createdBy: DrozChatAgentFragment;
|
|
1517
1538
|
});
|
|
@@ -1972,7 +1993,6 @@ export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on C
|
|
|
1972
1993
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
1973
1994
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1974
1995
|
export declare const SurveyFragmentDoc = "\n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
1975
|
-
export declare const NpsSurveyFragmentDoc = "\n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
1976
1996
|
export declare const QuickAnswerFragmentDoc = "\n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
1977
1997
|
export declare const QuickAnswerFacetsFragmentDoc = "\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
1978
1998
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1989,6 +2009,7 @@ export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearch
|
|
|
1989
2009
|
export declare const TriggerConditionFieldsFragmentDoc = "\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
|
|
1990
2010
|
export declare const TriggerFragmentDoc = "\n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n ";
|
|
1991
2011
|
export declare const ViewFragmentDoc = "\n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
|
|
2012
|
+
export declare const ActiveDispatchDocument = "\n mutation activeDispatch($input: ActiveDispatchInput!) {\n activeDispatch(input: $input)\n}\n ";
|
|
1992
2013
|
export declare const GenerateAnalyticsTokenDocument = "\n mutation generateAnalyticsToken {\n generateAnalyticsToken {\n token\n }\n}\n ";
|
|
1993
2014
|
export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1994
2015
|
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
@@ -2020,9 +2041,6 @@ export declare const RemoveDrozChatAgentGroupDocument = "\n mutation removeDr
|
|
|
2020
2041
|
export declare const GetSurveyDocument = "\n query getSurvey {\n getSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2021
2042
|
export declare const UpsertSurveyDocument = "\n mutation upsertSurvey($input: UpsertSurveyInput!) {\n upsertSurvey(input: $input) {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2022
2043
|
export declare const DisableSurveyDocument = "\n mutation disableSurvey {\n disableSurvey {\n ...survey\n }\n}\n \n fragment survey on Survey {\n channels\n evaluationMessage\n commentMessage\n enabled\n type\n createdAt\n updatedAt\n}\n ";
|
|
2023
|
-
export declare const GetNpsSurveyDocument = "\n query getNpsSurvey {\n getNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2024
|
-
export declare const UpsertNpsSurveyDocument = "\n mutation upsertNpsSurvey($input: UpsertNpsSurveyInput!) {\n upsertNpsSurvey(input: $input) {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2025
|
-
export declare const DisableNpsSurveyDocument = "\n mutation disableNpsSurvey {\n disableNpsSurvey {\n ...npsSurvey\n }\n}\n \n fragment npsSurvey on NpsSurvey {\n channels\n evaluationMessage\n commentMessage\n enabled\n createdAt\n updatedAt\n}\n ";
|
|
2026
2044
|
export declare const ListQuickAnswersDocument = "\n query listQuickAnswers($next: Base64) {\n listQuickAnswers(next: $next) {\n nodes {\n ...quickAnswer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2027
2045
|
export declare const SearchQuickAnswersDocument = "\n query searchQuickAnswers($q: String, $filters: [QuickAnswerFilterInput!], $sortBy: [QuickAnswersSortBy!], $page: Number, $perPage: Number) {\n searchQuickAnswers(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...quickAnswer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...quickAnswerFacets\n }\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment quickAnswerFacets on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n}\n ";
|
|
2028
2046
|
export declare const CreateQuickAnswerDocument = "\n mutation createQuickAnswer($input: CreateQuickAnswerInput!) {\n createQuickAnswer(input: $input) {\n ...quickAnswer\n }\n}\n \n fragment quickAnswer on QuickAnswer {\n id\n name\n message\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
@@ -2073,6 +2091,7 @@ export declare const UpdateViewDocument = "\n mutation updateView($input: Upd
|
|
|
2073
2091
|
export declare const DeleteViewDocument = "\n mutation deleteView($input: DeleteViewInput!) {\n deleteView(input: $input) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
|
|
2074
2092
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
2075
2093
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
2094
|
+
activeDispatch(variables: ActiveDispatchMutationVariables, options?: C): Promise<ActiveDispatchMutation>;
|
|
2076
2095
|
generateAnalyticsToken(variables?: GenerateAnalyticsTokenMutationVariables, options?: C): Promise<GenerateAnalyticsTokenMutation>;
|
|
2077
2096
|
getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
|
|
2078
2097
|
listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
|
|
@@ -2104,9 +2123,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2104
2123
|
getSurvey(variables?: GetSurveyQueryVariables, options?: C): Promise<GetSurveyQuery>;
|
|
2105
2124
|
upsertSurvey(variables: UpsertSurveyMutationVariables, options?: C): Promise<UpsertSurveyMutation>;
|
|
2106
2125
|
disableSurvey(variables?: DisableSurveyMutationVariables, options?: C): Promise<DisableSurveyMutation>;
|
|
2107
|
-
getNpsSurvey(variables?: GetNpsSurveyQueryVariables, options?: C): Promise<GetNpsSurveyQuery>;
|
|
2108
|
-
upsertNpsSurvey(variables: UpsertNpsSurveyMutationVariables, options?: C): Promise<UpsertNpsSurveyMutation>;
|
|
2109
|
-
disableNpsSurvey(variables?: DisableNpsSurveyMutationVariables, options?: C): Promise<DisableNpsSurveyMutation>;
|
|
2110
2126
|
listQuickAnswers(variables?: ListQuickAnswersQueryVariables, options?: C): Promise<ListQuickAnswersQuery>;
|
|
2111
2127
|
searchQuickAnswers(variables?: SearchQuickAnswersQueryVariables, options?: C): Promise<SearchQuickAnswersQuery>;
|
|
2112
2128
|
createQuickAnswer(variables: CreateQuickAnswerMutationVariables, options?: C): Promise<CreateQuickAnswerMutation>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.
|
|
5
|
-
exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument =
|
|
4
|
+
exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ActiveDispatchDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.SurveyFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.Can = exports.AppInstanceStatus = exports.ActiveDispatchConnector = void 0;
|
|
5
|
+
exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
|
+
var ActiveDispatchConnector;
|
|
9
|
+
(function (ActiveDispatchConnector) {
|
|
10
|
+
ActiveDispatchConnector["Email"] = "email";
|
|
11
|
+
ActiveDispatchConnector["Whatsapp"] = "whatsapp";
|
|
12
|
+
})(ActiveDispatchConnector || (exports.ActiveDispatchConnector = ActiveDispatchConnector = {}));
|
|
8
13
|
var AppInstanceStatus;
|
|
9
14
|
(function (AppInstanceStatus) {
|
|
10
15
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -18,10 +23,6 @@ var Can;
|
|
|
18
23
|
Can["Remove"] = "remove";
|
|
19
24
|
Can["Write"] = "write";
|
|
20
25
|
})(Can || (exports.Can = Can = {}));
|
|
21
|
-
var NpsSurveyChannels;
|
|
22
|
-
(function (NpsSurveyChannels) {
|
|
23
|
-
NpsSurveyChannels["WhatsApp"] = "WhatsApp";
|
|
24
|
-
})(NpsSurveyChannels || (exports.NpsSurveyChannels = NpsSurveyChannels = {}));
|
|
25
26
|
var OpenTicketState;
|
|
26
27
|
(function (OpenTicketState) {
|
|
27
28
|
OpenTicketState["InProgress"] = "IN_PROGRESS";
|
|
@@ -43,6 +44,7 @@ var SubscriptionAction;
|
|
|
43
44
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
44
45
|
var SurveyChannels;
|
|
45
46
|
(function (SurveyChannels) {
|
|
47
|
+
SurveyChannels["Email"] = "Email";
|
|
46
48
|
SurveyChannels["WhatsApp"] = "WhatsApp";
|
|
47
49
|
})(SurveyChannels || (exports.SurveyChannels = SurveyChannels = {}));
|
|
48
50
|
var SurveyTypes;
|
|
@@ -70,6 +72,7 @@ var TicketMessageRecipient;
|
|
|
70
72
|
})(TicketMessageRecipient || (exports.TicketMessageRecipient = TicketMessageRecipient = {}));
|
|
71
73
|
var TicketMessageType;
|
|
72
74
|
(function (TicketMessageType) {
|
|
75
|
+
TicketMessageType["ActiveTrigger"] = "ACTIVE_TRIGGER";
|
|
73
76
|
TicketMessageType["Internal"] = "INTERNAL";
|
|
74
77
|
TicketMessageType["Regular"] = "REGULAR";
|
|
75
78
|
})(TicketMessageType || (exports.TicketMessageType = TicketMessageType = {}));
|
|
@@ -121,6 +124,7 @@ var TriggerActionType;
|
|
|
121
124
|
TriggerActionType["RoutingTicket"] = "ROUTING_TICKET";
|
|
122
125
|
TriggerActionType["SendMessage"] = "SEND_MESSAGE";
|
|
123
126
|
TriggerActionType["SendNotification"] = "SEND_NOTIFICATION";
|
|
127
|
+
TriggerActionType["SendSurvey"] = "SEND_SURVEY";
|
|
124
128
|
TriggerActionType["SetPriority"] = "SET_PRIORITY";
|
|
125
129
|
TriggerActionType["SetStatus"] = "SET_STATUS";
|
|
126
130
|
TriggerActionType["TransferToChannel"] = "TRANSFER_TO_CHANNEL";
|
|
@@ -138,9 +142,12 @@ var TriggerScope;
|
|
|
138
142
|
})(TriggerScope || (exports.TriggerScope = TriggerScope = {}));
|
|
139
143
|
var Typenames;
|
|
140
144
|
(function (Typenames) {
|
|
145
|
+
Typenames["ActiveDispatches"] = "ActiveDispatches";
|
|
141
146
|
Typenames["AgentChannelIndex"] = "AgentChannelIndex";
|
|
142
147
|
Typenames["AgentGroup"] = "AgentGroup";
|
|
143
148
|
Typenames["Any"] = "Any";
|
|
149
|
+
Typenames["CajCloseBatches"] = "CajCloseBatches";
|
|
150
|
+
Typenames["CajCloseRuns"] = "CajCloseRuns";
|
|
144
151
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
145
152
|
Typenames["ChannelTriggerExecutions"] = "ChannelTriggerExecutions";
|
|
146
153
|
Typenames["Channels"] = "Channels";
|
|
@@ -149,7 +156,6 @@ var Typenames;
|
|
|
149
156
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
150
157
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
151
158
|
Typenames["GroupChannelIndex"] = "GroupChannelIndex";
|
|
152
|
-
Typenames["NpsSurvey"] = "NpsSurvey";
|
|
153
159
|
Typenames["Protocols"] = "Protocols";
|
|
154
160
|
Typenames["QuickAnswers"] = "QuickAnswers";
|
|
155
161
|
Typenames["Survey"] = "Survey";
|
|
@@ -208,16 +214,6 @@ exports.SurveyFragmentDoc = `
|
|
|
208
214
|
updatedAt
|
|
209
215
|
}
|
|
210
216
|
`;
|
|
211
|
-
exports.NpsSurveyFragmentDoc = `
|
|
212
|
-
fragment npsSurvey on NpsSurvey {
|
|
213
|
-
channels
|
|
214
|
-
evaluationMessage
|
|
215
|
-
commentMessage
|
|
216
|
-
enabled
|
|
217
|
-
createdAt
|
|
218
|
-
updatedAt
|
|
219
|
-
}
|
|
220
|
-
`;
|
|
221
217
|
exports.QuickAnswerFragmentDoc = `
|
|
222
218
|
fragment quickAnswer on QuickAnswer {
|
|
223
219
|
id
|
|
@@ -708,6 +704,11 @@ exports.ViewFragmentDoc = `
|
|
|
708
704
|
updatedAt
|
|
709
705
|
}
|
|
710
706
|
`;
|
|
707
|
+
exports.ActiveDispatchDocument = `
|
|
708
|
+
mutation activeDispatch($input: ActiveDispatchInput!) {
|
|
709
|
+
activeDispatch(input: $input)
|
|
710
|
+
}
|
|
711
|
+
`;
|
|
711
712
|
exports.GenerateAnalyticsTokenDocument = `
|
|
712
713
|
mutation generateAnalyticsToken {
|
|
713
714
|
generateAnalyticsToken {
|
|
@@ -935,27 +936,6 @@ exports.DisableSurveyDocument = `
|
|
|
935
936
|
}
|
|
936
937
|
}
|
|
937
938
|
${exports.SurveyFragmentDoc}`;
|
|
938
|
-
exports.GetNpsSurveyDocument = `
|
|
939
|
-
query getNpsSurvey {
|
|
940
|
-
getNpsSurvey {
|
|
941
|
-
...npsSurvey
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
945
|
-
exports.UpsertNpsSurveyDocument = `
|
|
946
|
-
mutation upsertNpsSurvey($input: UpsertNpsSurveyInput!) {
|
|
947
|
-
upsertNpsSurvey(input: $input) {
|
|
948
|
-
...npsSurvey
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
952
|
-
exports.DisableNpsSurveyDocument = `
|
|
953
|
-
mutation disableNpsSurvey {
|
|
954
|
-
disableNpsSurvey {
|
|
955
|
-
...npsSurvey
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
${exports.NpsSurveyFragmentDoc}`;
|
|
959
939
|
exports.ListQuickAnswersDocument = `
|
|
960
940
|
query listQuickAnswers($next: Base64) {
|
|
961
941
|
listQuickAnswers(next: $next) {
|
|
@@ -1549,6 +1529,9 @@ exports.DeleteViewDocument = `
|
|
|
1549
1529
|
${exports.ViewFragmentDoc}`;
|
|
1550
1530
|
function getSdk(requester) {
|
|
1551
1531
|
return {
|
|
1532
|
+
activeDispatch(variables, options) {
|
|
1533
|
+
return requester(exports.ActiveDispatchDocument, variables, options);
|
|
1534
|
+
},
|
|
1552
1535
|
generateAnalyticsToken(variables, options) {
|
|
1553
1536
|
return requester(exports.GenerateAnalyticsTokenDocument, variables, options);
|
|
1554
1537
|
},
|
|
@@ -1642,15 +1625,6 @@ function getSdk(requester) {
|
|
|
1642
1625
|
disableSurvey(variables, options) {
|
|
1643
1626
|
return requester(exports.DisableSurveyDocument, variables, options);
|
|
1644
1627
|
},
|
|
1645
|
-
getNpsSurvey(variables, options) {
|
|
1646
|
-
return requester(exports.GetNpsSurveyDocument, variables, options);
|
|
1647
|
-
},
|
|
1648
|
-
upsertNpsSurvey(variables, options) {
|
|
1649
|
-
return requester(exports.UpsertNpsSurveyDocument, variables, options);
|
|
1650
|
-
},
|
|
1651
|
-
disableNpsSurvey(variables, options) {
|
|
1652
|
-
return requester(exports.DisableNpsSurveyDocument, variables, options);
|
|
1653
|
-
},
|
|
1654
1628
|
listQuickAnswers(variables, options) {
|
|
1655
1629
|
return requester(exports.ListQuickAnswersDocument, variables, options);
|
|
1656
1630
|
},
|
package/src/sdks/email.d.ts
CHANGED
|
@@ -252,10 +252,28 @@ export type I18nTextInput = {
|
|
|
252
252
|
lang: Scalars['Locale']['input'];
|
|
253
253
|
value: Scalars['String']['input'];
|
|
254
254
|
};
|
|
255
|
+
export type InternalActiveDispatchInput = {
|
|
256
|
+
bcc?: InputMaybe<Array<InternalActiveDispatchRecipientInput>>;
|
|
257
|
+
cc?: InputMaybe<Array<InternalActiveDispatchRecipientInput>>;
|
|
258
|
+
instanceId: Scalars['ID']['input'];
|
|
259
|
+
messages: Array<InternalActiveDispatchMessageInput>;
|
|
260
|
+
sessionId: Scalars['ID']['input'];
|
|
261
|
+
subject: Scalars['String']['input'];
|
|
262
|
+
to: Array<InternalActiveDispatchRecipientInput>;
|
|
263
|
+
};
|
|
264
|
+
export type InternalActiveDispatchMessageInput = {
|
|
265
|
+
content: Scalars['String']['input'];
|
|
266
|
+
contentType: Scalars['String']['input'];
|
|
267
|
+
};
|
|
268
|
+
export type InternalActiveDispatchRecipientInput = {
|
|
269
|
+
email: Scalars['EmailAddress']['input'];
|
|
270
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
271
|
+
};
|
|
255
272
|
export type Mutation = {
|
|
256
273
|
addEmailBlocklistEntry: EmailInstance;
|
|
257
274
|
createEmailInstance: EmailInstance;
|
|
258
275
|
enableEmailInstanceSignature: EmailInstance;
|
|
276
|
+
internalActiveDispatch?: Maybe<Scalars['Void']['output']>;
|
|
259
277
|
processSendGridEventWebhook?: Maybe<Scalars['Void']['output']>;
|
|
260
278
|
removeEmailBlocklistEntry: EmailInstance;
|
|
261
279
|
removeEmailInstance?: Maybe<Scalars['Void']['output']>;
|
|
@@ -276,6 +294,9 @@ export type MutationCreateEmailInstanceArgs = {
|
|
|
276
294
|
export type MutationEnableEmailInstanceSignatureArgs = {
|
|
277
295
|
input: EnableEmailInstanceSignatureInput;
|
|
278
296
|
};
|
|
297
|
+
export type MutationInternalActiveDispatchArgs = {
|
|
298
|
+
input: InternalActiveDispatchInput;
|
|
299
|
+
};
|
|
279
300
|
export type MutationProcessSendGridEventWebhookArgs = {
|
|
280
301
|
input: SendGridEventWebhookInput;
|
|
281
302
|
};
|
|
@@ -428,6 +449,7 @@ export type StringMatcherInput = {
|
|
|
428
449
|
};
|
|
429
450
|
export declare enum Typenames {
|
|
430
451
|
Any = "Any",
|
|
452
|
+
EmailActiveTrigger = "EmailActiveTrigger",
|
|
431
453
|
EmailData = "EmailData",
|
|
432
454
|
EmailInstance = "EmailInstance",
|
|
433
455
|
EmailReplyData = "EmailReplyData",
|
|
@@ -532,6 +554,10 @@ export type ProcessSendGridEventWebhookMutationVariables = Exact<{
|
|
|
532
554
|
input: SendGridEventWebhookInput;
|
|
533
555
|
}>;
|
|
534
556
|
export type ProcessSendGridEventWebhookMutation = Pick<Mutation, 'processSendGridEventWebhook'>;
|
|
557
|
+
export type InternalActiveDispatchMutationVariables = Exact<{
|
|
558
|
+
input: InternalActiveDispatchInput;
|
|
559
|
+
}>;
|
|
560
|
+
export type InternalActiveDispatchMutation = Pick<Mutation, 'internalActiveDispatch'>;
|
|
535
561
|
export type ListThreadingBySessionIdQueryVariables = Exact<{
|
|
536
562
|
sessionId: Scalars['ID']['input'];
|
|
537
563
|
}>;
|
|
@@ -559,6 +585,7 @@ export declare const SetEmailBccDocument = "\n mutation setEmailBcc($input: S
|
|
|
559
585
|
export declare const AddEmailBlocklistEntryDocument = "\n mutation addEmailBlocklistEntry($input: AddEmailBlocklistEntryInput!) {\n addEmailBlocklistEntry(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
560
586
|
export declare const RemoveEmailBlocklistEntryDocument = "\n mutation removeEmailBlocklistEntry($input: RemoveEmailBlocklistEntryInput!) {\n removeEmailBlocklistEntry(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
561
587
|
export declare const ProcessSendGridEventWebhookDocument = "\n mutation processSendGridEventWebhook($input: SendGridEventWebhookInput!) {\n processSendGridEventWebhook(input: $input)\n}\n ";
|
|
588
|
+
export declare const InternalActiveDispatchDocument = "\n mutation internalActiveDispatch($input: InternalActiveDispatchInput!) {\n internalActiveDispatch(input: $input)\n}\n ";
|
|
562
589
|
export declare const ListThreadingBySessionIdDocument = "\n query listThreadingBySessionId($sessionId: ID!) {\n listThreadingBySessionId(sessionId: $sessionId) {\n root {\n ...emailThreadRootFields\n }\n replies {\n ...emailThreadReplyFields\n }\n }\n}\n \n fragment emailThreadRootFields on EmailThreadRoot {\n messageId\n sessionId\n instanceId\n direction\n status\n subject\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n \n\n fragment emailAttachmentMetadataFields on EmailAttachmentMetadata {\n sourceId\n filename\n mime\n size\n checksum\n url\n origin\n}\n \n\n fragment emailThreadReplyFields on EmailThreadReply {\n id\n replyId\n messageId\n direction\n status\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
563
590
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
564
591
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -576,6 +603,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
576
603
|
addEmailBlocklistEntry(variables: AddEmailBlocklistEntryMutationVariables, options?: C): Promise<AddEmailBlocklistEntryMutation>;
|
|
577
604
|
removeEmailBlocklistEntry(variables: RemoveEmailBlocklistEntryMutationVariables, options?: C): Promise<RemoveEmailBlocklistEntryMutation>;
|
|
578
605
|
processSendGridEventWebhook(variables: ProcessSendGridEventWebhookMutationVariables, options?: C): Promise<ProcessSendGridEventWebhookMutation>;
|
|
606
|
+
internalActiveDispatch(variables: InternalActiveDispatchMutationVariables, options?: C): Promise<InternalActiveDispatchMutation>;
|
|
579
607
|
listThreadingBySessionId(variables: ListThreadingBySessionIdQueryVariables, options?: C): Promise<ListThreadingBySessionIdQuery>;
|
|
580
608
|
};
|
|
581
609
|
export type Sdk = ReturnType<typeof getSdk>;
|
package/src/sdks/email.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.ListThreadingBySessionIdDocument = exports.ProcessSendGridEventWebhookDocument = exports.RemoveEmailBlocklistEntryDocument = exports.AddEmailBlocklistEntryDocument = exports.SetEmailBccDocument = exports.SetEmailCcDocument = exports.ValidateInstanceDomainDocument = exports.RemoveEmailInstanceDocument = exports.EnableEmailInstanceSignatureDocument = exports.RemoveEmailInstanceSignatureDocument = exports.SetEmailInstanceSignatureDocument = exports.UpdateEmailInstanceDocument = exports.CreateEmailInstanceDocument = exports.ListEmailInstancesDocument = exports.GetEmailInstanceDocument = exports.EmailThreadReplyFieldsFragmentDoc = exports.EmailThreadRootFieldsFragmentDoc = exports.EmailAttachmentMetadataFieldsFragmentDoc = exports.EmailInstanceFieldsFragmentDoc = exports.Typenames = exports.EmailStatus = exports.EmailSignatureContentType = exports.EmailDirection = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.ListThreadingBySessionIdDocument = exports.InternalActiveDispatchDocument = exports.ProcessSendGridEventWebhookDocument = exports.RemoveEmailBlocklistEntryDocument = exports.AddEmailBlocklistEntryDocument = exports.SetEmailBccDocument = exports.SetEmailCcDocument = exports.ValidateInstanceDomainDocument = exports.RemoveEmailInstanceDocument = exports.EnableEmailInstanceSignatureDocument = exports.RemoveEmailInstanceSignatureDocument = exports.SetEmailInstanceSignatureDocument = exports.UpdateEmailInstanceDocument = exports.CreateEmailInstanceDocument = exports.ListEmailInstancesDocument = exports.GetEmailInstanceDocument = exports.EmailThreadReplyFieldsFragmentDoc = exports.EmailThreadRootFieldsFragmentDoc = exports.EmailAttachmentMetadataFieldsFragmentDoc = exports.EmailInstanceFieldsFragmentDoc = exports.Typenames = exports.EmailStatus = exports.EmailSignatureContentType = exports.EmailDirection = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -38,6 +38,7 @@ var EmailStatus;
|
|
|
38
38
|
var Typenames;
|
|
39
39
|
(function (Typenames) {
|
|
40
40
|
Typenames["Any"] = "Any";
|
|
41
|
+
Typenames["EmailActiveTrigger"] = "EmailActiveTrigger";
|
|
41
42
|
Typenames["EmailData"] = "EmailData";
|
|
42
43
|
Typenames["EmailInstance"] = "EmailInstance";
|
|
43
44
|
Typenames["EmailReplyData"] = "EmailReplyData";
|
|
@@ -213,6 +214,11 @@ exports.ProcessSendGridEventWebhookDocument = `
|
|
|
213
214
|
processSendGridEventWebhook(input: $input)
|
|
214
215
|
}
|
|
215
216
|
`;
|
|
217
|
+
exports.InternalActiveDispatchDocument = `
|
|
218
|
+
mutation internalActiveDispatch($input: InternalActiveDispatchInput!) {
|
|
219
|
+
internalActiveDispatch(input: $input)
|
|
220
|
+
}
|
|
221
|
+
`;
|
|
216
222
|
exports.ListThreadingBySessionIdDocument = `
|
|
217
223
|
query listThreadingBySessionId($sessionId: ID!) {
|
|
218
224
|
listThreadingBySessionId(sessionId: $sessionId) {
|
|
@@ -271,6 +277,9 @@ function getSdk(requester) {
|
|
|
271
277
|
processSendGridEventWebhook(variables, options) {
|
|
272
278
|
return requester(exports.ProcessSendGridEventWebhookDocument, variables, options);
|
|
273
279
|
},
|
|
280
|
+
internalActiveDispatch(variables, options) {
|
|
281
|
+
return requester(exports.InternalActiveDispatchDocument, variables, options);
|
|
282
|
+
},
|
|
274
283
|
listThreadingBySessionId(variables, options) {
|
|
275
284
|
return requester(exports.ListThreadingBySessionIdDocument, variables, options);
|
|
276
285
|
}
|