@droz-js/sdk 0.16.13 → 0.16.15
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/campaigns.d.ts +0 -7
- package/src/drozbot.d.ts +3 -3
- package/src/drozchat-ws.d.ts +3 -0
- package/src/drozchat.d.ts +3 -0
- package/src/email.d.ts +3 -6
- package/src/sdks/campaigns.d.ts +0 -122
- package/src/sdks/campaigns.js +1 -93
- package/src/sdks/drozbot.d.ts +24 -15
- package/src/sdks/drozbot.js +12 -7
- package/src/sdks/drozchat.d.ts +48 -0
- package/src/sdks/drozchat.js +20 -3
- package/src/sdks/email.d.ts +28 -32
- package/src/sdks/email.js +10 -17
package/package.json
CHANGED
package/src/campaigns.d.ts
CHANGED
|
@@ -6,13 +6,6 @@ declare const Campaigns_base: new (options?: import("./client/http").HttpClientO
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): /*elided*/ any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): /*elided*/ any;
|
|
8
8
|
} & {
|
|
9
|
-
activeTrigger(variables: import("./sdks/campaigns").Exact<{
|
|
10
|
-
input: import("./sdks/campaigns").ActiveTriggerInput;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/campaigns").ActiveTriggerMutation>;
|
|
12
|
-
listActiveTriggers(variables: import("./sdks/campaigns").Exact<{
|
|
13
|
-
startDrn: import("./sdks/campaigns").Scalars["DRN"]["input"];
|
|
14
|
-
endDrn: import("./sdks/campaigns").Scalars["DRN"]["input"];
|
|
15
|
-
}>, options?: unknown): Promise<import("./sdks/campaigns").ListActiveTriggersQuery>;
|
|
16
9
|
getCampaign(variables: import("./sdks/campaigns").Exact<{
|
|
17
10
|
id: import("./sdks/campaigns").Scalars["ID"]["input"];
|
|
18
11
|
}>, options?: unknown): Promise<import("./sdks/campaigns").GetCampaignQuery>;
|
package/src/drozbot.d.ts
CHANGED
|
@@ -112,9 +112,9 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
112
112
|
registerRootCredential(variables: import("./sdks/drozbot").Exact<{
|
|
113
113
|
input: import("./sdks/drozbot").DrozBotRootCredentialInput;
|
|
114
114
|
}>, options?: unknown): Promise<import("./sdks/drozbot").RegisterRootCredentialMutation>;
|
|
115
|
-
|
|
116
|
-
input: import("./sdks/drozbot").
|
|
117
|
-
}>, options?: unknown): Promise<import("./sdks/drozbot").
|
|
115
|
+
internalWhatsAppActiveDispatch(variables: import("./sdks/drozbot").Exact<{
|
|
116
|
+
input: import("./sdks/drozbot").InternalWhatsAppActiveDispatchInput;
|
|
117
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").InternalWhatsAppActiveDispatchMutation>;
|
|
118
118
|
};
|
|
119
119
|
export declare class DrozBot extends DrozBot_base {
|
|
120
120
|
}
|
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>;
|
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>;
|
package/src/email.d.ts
CHANGED
|
@@ -33,12 +33,6 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
33
33
|
validateInstanceDomain(variables: import("./sdks/email").Exact<{
|
|
34
34
|
input: import("./sdks/email").ValidateInstanceDomainInput;
|
|
35
35
|
}>, options?: unknown): Promise<import("./sdks/email").ValidateInstanceDomainMutation>;
|
|
36
|
-
setEmailCc(variables: import("./sdks/email").Exact<{
|
|
37
|
-
input: import("./sdks/email").SetEmailCcInput;
|
|
38
|
-
}>, options?: unknown): Promise<import("./sdks/email").SetEmailCcMutation>;
|
|
39
|
-
setEmailBcc(variables: import("./sdks/email").Exact<{
|
|
40
|
-
input: import("./sdks/email").SetEmailBccInput;
|
|
41
|
-
}>, options?: unknown): Promise<import("./sdks/email").SetEmailBccMutation>;
|
|
42
36
|
addEmailBlocklistEntry(variables: import("./sdks/email").Exact<{
|
|
43
37
|
input: import("./sdks/email").AddEmailBlocklistEntryInput;
|
|
44
38
|
}>, options?: unknown): Promise<import("./sdks/email").AddEmailBlocklistEntryMutation>;
|
|
@@ -48,6 +42,9 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
48
42
|
processSendGridEventWebhook(variables: import("./sdks/email").Exact<{
|
|
49
43
|
input: import("./sdks/email").SendGridEventWebhookInput;
|
|
50
44
|
}>, options?: unknown): Promise<import("./sdks/email").ProcessSendGridEventWebhookMutation>;
|
|
45
|
+
internalActiveDispatch(variables: import("./sdks/email").Exact<{
|
|
46
|
+
input: import("./sdks/email").InternalActiveDispatchInput;
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/email").InternalActiveDispatchMutation>;
|
|
51
48
|
listThreadingBySessionId(variables: import("./sdks/email").Exact<{
|
|
52
49
|
sessionId: import("./sdks/email").Scalars["ID"]["input"];
|
|
53
50
|
}>, options?: unknown): Promise<import("./sdks/email").ListThreadingBySessionIdQuery>;
|
package/src/sdks/campaigns.d.ts
CHANGED
|
@@ -122,91 +122,11 @@ export type Scalars = {
|
|
|
122
122
|
output: void;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
export type ActiveTrigger = {
|
|
126
|
-
agent?: Maybe<ActiveTriggerAgent>;
|
|
127
|
-
connector: ActiveTriggerConnectors;
|
|
128
|
-
customer: ActiveTriggerCustomer;
|
|
129
|
-
customerId: Scalars['ID']['output'];
|
|
130
|
-
endApp?: Maybe<App>;
|
|
131
|
-
endDrn: Scalars['DRN']['output'];
|
|
132
|
-
messages: Array<ActiveTriggerMessage>;
|
|
133
|
-
payload: Scalars['JSON']['output'];
|
|
134
|
-
sentBy: Scalars['String']['output'];
|
|
135
|
-
sessionId: Scalars['ID']['output'];
|
|
136
|
-
startApp?: Maybe<App>;
|
|
137
|
-
startDrn: Scalars['DRN']['output'];
|
|
138
|
-
};
|
|
139
|
-
export type ActiveTriggerAgent = {
|
|
140
|
-
createdAt: Scalars['String']['output'];
|
|
141
|
-
id: Scalars['ID']['output'];
|
|
142
|
-
name: Scalars['String']['output'];
|
|
143
|
-
updatedAt: Scalars['String']['output'];
|
|
144
|
-
};
|
|
145
|
-
export type ActiveTriggerChannelPayloadInput = {
|
|
146
|
-
email: ActiveTriggerEmailInput;
|
|
147
|
-
};
|
|
148
|
-
export declare enum ActiveTriggerConnectors {
|
|
149
|
-
Email = "email"
|
|
150
|
-
}
|
|
151
|
-
export type ActiveTriggerCustomer = {
|
|
152
|
-
alternateName?: Maybe<Scalars['String']['output']>;
|
|
153
|
-
createdAt: Scalars['DateTime']['output'];
|
|
154
|
-
documents?: Maybe<Array<Scalars['String']['output']>>;
|
|
155
|
-
emails?: Maybe<Array<Scalars['String']['output']>>;
|
|
156
|
-
externalIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
157
|
-
id: Scalars['ID']['output'];
|
|
158
|
-
name: Scalars['String']['output'];
|
|
159
|
-
phones?: Maybe<Array<Scalars['String']['output']>>;
|
|
160
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
161
|
-
};
|
|
162
|
-
export type ActiveTriggerEmailInput = {
|
|
163
|
-
bcc?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
164
|
-
cc?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
165
|
-
subject: Scalars['String']['input'];
|
|
166
|
-
to: Array<Scalars['String']['input']>;
|
|
167
|
-
};
|
|
168
|
-
export type ActiveTriggerInput = {
|
|
169
|
-
connector: ActiveTriggerConnectors;
|
|
170
|
-
customerId: Scalars['ID']['input'];
|
|
171
|
-
endDrn: Scalars['DRN']['input'];
|
|
172
|
-
messages: Array<ActiveTriggerMessageInput>;
|
|
173
|
-
payload: ActiveTriggerChannelPayloadInput;
|
|
174
|
-
startDrn: Scalars['DRN']['input'];
|
|
175
|
-
};
|
|
176
|
-
export type ActiveTriggerMessage = {
|
|
177
|
-
content: Scalars['String']['output'];
|
|
178
|
-
contentType: Scalars['String']['output'];
|
|
179
|
-
filename?: Maybe<Scalars['String']['output']>;
|
|
180
|
-
};
|
|
181
|
-
export type ActiveTriggerMessageInput = {
|
|
182
|
-
content: Scalars['String']['input'];
|
|
183
|
-
contentType: Scalars['String']['input'];
|
|
184
|
-
filename?: InputMaybe<Scalars['String']['input']>;
|
|
185
|
-
};
|
|
186
|
-
export type ActiveTriggersConnection = {
|
|
187
|
-
nodes: Array<ActiveTrigger>;
|
|
188
|
-
pageInfo: PageInfo;
|
|
189
|
-
};
|
|
190
125
|
export type AgentInfo = {
|
|
191
126
|
id: Scalars['ID']['output'];
|
|
192
127
|
name: Scalars['String']['output'];
|
|
193
128
|
picture?: Maybe<Scalars['String']['output']>;
|
|
194
129
|
};
|
|
195
|
-
export type App = {
|
|
196
|
-
appColor?: Maybe<Scalars['String']['output']>;
|
|
197
|
-
appId?: Maybe<Scalars['ID']['output']>;
|
|
198
|
-
appName?: Maybe<Scalars['String']['output']>;
|
|
199
|
-
channels: Array<AppChannel>;
|
|
200
|
-
drn?: Maybe<Scalars['DRN']['output']>;
|
|
201
|
-
name?: Maybe<Scalars['String']['output']>;
|
|
202
|
-
};
|
|
203
|
-
export type AppChannel = {
|
|
204
|
-
hidden: Scalars['Boolean']['output'];
|
|
205
|
-
id: Scalars['String']['output'];
|
|
206
|
-
main: Scalars['Boolean']['output'];
|
|
207
|
-
readonly: Scalars['Boolean']['output'];
|
|
208
|
-
sources: Array<Scalars['String']['output']>;
|
|
209
|
-
};
|
|
210
130
|
export declare enum AppInstanceStatus {
|
|
211
131
|
Active = "Active",
|
|
212
132
|
Failing = "Failing",
|
|
@@ -243,15 +163,11 @@ export type I18nTextInput = {
|
|
|
243
163
|
value: Scalars['String']['input'];
|
|
244
164
|
};
|
|
245
165
|
export type Mutation = {
|
|
246
|
-
activeTrigger: ActiveTrigger;
|
|
247
166
|
createCampaign?: Maybe<Campaign>;
|
|
248
167
|
removeCampaign?: Maybe<Campaign>;
|
|
249
168
|
updateCampaign?: Maybe<Campaign>;
|
|
250
169
|
version?: Maybe<Scalars['String']['output']>;
|
|
251
170
|
};
|
|
252
|
-
export type MutationActiveTriggerArgs = {
|
|
253
|
-
input: ActiveTriggerInput;
|
|
254
|
-
};
|
|
255
171
|
export type MutationCreateCampaignArgs = {
|
|
256
172
|
input: CreateCampaignInput;
|
|
257
173
|
};
|
|
@@ -287,17 +203,12 @@ export type Query = {
|
|
|
287
203
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
288
204
|
getCampaign?: Maybe<Campaign>;
|
|
289
205
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
290
|
-
listActiveTriggers: ActiveTriggersConnection;
|
|
291
206
|
listCampaigns?: Maybe<Array<Maybe<Campaign>>>;
|
|
292
207
|
version?: Maybe<Scalars['String']['output']>;
|
|
293
208
|
};
|
|
294
209
|
export type QueryGetCampaignArgs = {
|
|
295
210
|
id: Scalars['ID']['input'];
|
|
296
211
|
};
|
|
297
|
-
export type QueryListActiveTriggersArgs = {
|
|
298
|
-
endDrn: Scalars['DRN']['input'];
|
|
299
|
-
startDrn: Scalars['DRN']['input'];
|
|
300
|
-
};
|
|
301
212
|
export type RemoveCampaignInput = {
|
|
302
213
|
id: Scalars['ID']['input'];
|
|
303
214
|
};
|
|
@@ -349,7 +260,6 @@ export type StringMatcherInput = {
|
|
|
349
260
|
ne?: InputMaybe<Scalars['String']['input']>;
|
|
350
261
|
};
|
|
351
262
|
export declare enum Typenames {
|
|
352
|
-
ActiveTrigger = "ActiveTrigger",
|
|
353
263
|
Any = "Any",
|
|
354
264
|
Campaigns = "Campaigns",
|
|
355
265
|
GraphqlConnections = "GraphqlConnections",
|
|
@@ -363,33 +273,6 @@ export type UpdateCampaignInput = {
|
|
|
363
273
|
objective?: InputMaybe<Scalars['String']['input']>;
|
|
364
274
|
templateId?: InputMaybe<Scalars['ID']['input']>;
|
|
365
275
|
};
|
|
366
|
-
export type ActiveTriggerFragment = (Pick<ActiveTrigger, 'sessionId' | 'startDrn' | 'endDrn' | 'connector' | 'payload' | 'customerId' | 'sentBy'> & {
|
|
367
|
-
startApp?: Maybe<(Pick<App, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
368
|
-
channels: Array<Pick<AppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources'>>;
|
|
369
|
-
})>;
|
|
370
|
-
endApp?: Maybe<(Pick<App, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
371
|
-
channels: Array<Pick<AppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources'>>;
|
|
372
|
-
})>;
|
|
373
|
-
messages: Array<Pick<ActiveTriggerMessage, 'contentType' | 'content' | 'filename'>>;
|
|
374
|
-
customer: Pick<ActiveTriggerCustomer, 'id' | 'name' | 'alternateName' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'createdAt' | 'updatedAt'>;
|
|
375
|
-
agent?: Maybe<Pick<ActiveTriggerAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'>>;
|
|
376
|
-
});
|
|
377
|
-
export type ActiveTriggerMutationVariables = Exact<{
|
|
378
|
-
input: ActiveTriggerInput;
|
|
379
|
-
}>;
|
|
380
|
-
export type ActiveTriggerMutation = {
|
|
381
|
-
activeTrigger: ActiveTriggerFragment;
|
|
382
|
-
};
|
|
383
|
-
export type ListActiveTriggersQueryVariables = Exact<{
|
|
384
|
-
startDrn: Scalars['DRN']['input'];
|
|
385
|
-
endDrn: Scalars['DRN']['input'];
|
|
386
|
-
}>;
|
|
387
|
-
export type ListActiveTriggersQuery = {
|
|
388
|
-
listActiveTriggers: {
|
|
389
|
-
nodes: Array<ActiveTriggerFragment>;
|
|
390
|
-
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
276
|
export type CampaignFragment = Pick<Campaign, 'id' | 'name' | 'objective' | 'instanceIdTrigger' | 'templateId' | 'createdAt' | 'updatedAt'>;
|
|
394
277
|
export type GetCampaignQueryVariables = Exact<{
|
|
395
278
|
id: Scalars['ID']['input'];
|
|
@@ -421,10 +304,7 @@ export type RemoveCampaignMutationVariables = Exact<{
|
|
|
421
304
|
export type RemoveCampaignMutation = {
|
|
422
305
|
removeCampaign?: Maybe<CampaignFragment>;
|
|
423
306
|
};
|
|
424
|
-
export declare const ActiveTriggerFragmentDoc = "\n fragment activeTrigger on ActiveTrigger {\n sessionId\n startDrn\n startApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n endDrn\n endApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n connector\n messages {\n contentType\n content\n filename\n }\n payload\n customerId\n customer {\n id\n name\n alternateName\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n }\n sentBy\n agent {\n id\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
425
307
|
export declare const CampaignFragmentDoc = "\n fragment campaign on Campaign {\n id\n name\n objective\n instanceIdTrigger\n templateId\n createdAt\n updatedAt\n}\n ";
|
|
426
|
-
export declare const ActiveTriggerDocument = "\n mutation activeTrigger($input: ActiveTriggerInput!) {\n activeTrigger(input: $input) {\n ...activeTrigger\n }\n}\n \n fragment activeTrigger on ActiveTrigger {\n sessionId\n startDrn\n startApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n endDrn\n endApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n connector\n messages {\n contentType\n content\n filename\n }\n payload\n customerId\n customer {\n id\n name\n alternateName\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n }\n sentBy\n agent {\n id\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
427
|
-
export declare const ListActiveTriggersDocument = "\n query listActiveTriggers($startDrn: DRN!, $endDrn: DRN!) {\n listActiveTriggers(startDrn: $startDrn, endDrn: $endDrn) {\n nodes {\n ...activeTrigger\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment activeTrigger on ActiveTrigger {\n sessionId\n startDrn\n startApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n endDrn\n endApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n }\n }\n connector\n messages {\n contentType\n content\n filename\n }\n payload\n customerId\n customer {\n id\n name\n alternateName\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n }\n sentBy\n agent {\n id\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
428
308
|
export declare const GetCampaignDocument = "\n query getCampaign($id: ID!) {\n getCampaign(id: $id) {\n ...campaign\n }\n}\n \n fragment campaign on Campaign {\n id\n name\n objective\n instanceIdTrigger\n templateId\n createdAt\n updatedAt\n}\n ";
|
|
429
309
|
export declare const ListCampaignsDocument = "\n query listCampaigns {\n listCampaigns {\n ...campaign\n }\n}\n \n fragment campaign on Campaign {\n id\n name\n objective\n instanceIdTrigger\n templateId\n createdAt\n updatedAt\n}\n ";
|
|
430
310
|
export declare const CreateCampaignDocument = "\n mutation createCampaign($input: CreateCampaignInput!) {\n createCampaign(input: $input) {\n ...campaign\n }\n}\n \n fragment campaign on Campaign {\n id\n name\n objective\n instanceIdTrigger\n templateId\n createdAt\n updatedAt\n}\n ";
|
|
@@ -432,8 +312,6 @@ export declare const UpdateCampaignDocument = "\n mutation updateCampaign($in
|
|
|
432
312
|
export declare const RemoveCampaignDocument = "\n mutation removeCampaign($input: RemoveCampaignInput!) {\n removeCampaign(input: $input) {\n ...campaign\n }\n}\n \n fragment campaign on Campaign {\n id\n name\n objective\n instanceIdTrigger\n templateId\n createdAt\n updatedAt\n}\n ";
|
|
433
313
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
434
314
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
435
|
-
activeTrigger(variables: ActiveTriggerMutationVariables, options?: C): Promise<ActiveTriggerMutation>;
|
|
436
|
-
listActiveTriggers(variables: ListActiveTriggersQueryVariables, options?: C): Promise<ListActiveTriggersQuery>;
|
|
437
315
|
getCampaign(variables: GetCampaignQueryVariables, options?: C): Promise<GetCampaignQuery>;
|
|
438
316
|
listCampaigns(variables?: ListCampaignsQueryVariables, options?: C): Promise<ListCampaignsQuery>;
|
|
439
317
|
createCampaign(variables: CreateCampaignMutationVariables, options?: C): Promise<CreateCampaignMutation>;
|
package/src/sdks/campaigns.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.RemoveCampaignDocument = exports.UpdateCampaignDocument = exports.CreateCampaignDocument = exports.ListCampaignsDocument = exports.GetCampaignDocument = exports.
|
|
4
|
+
exports.serviceName = exports.RemoveCampaignDocument = exports.UpdateCampaignDocument = exports.CreateCampaignDocument = exports.ListCampaignsDocument = exports.GetCampaignDocument = exports.CampaignFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
|
-
var ActiveTriggerConnectors;
|
|
7
|
-
(function (ActiveTriggerConnectors) {
|
|
8
|
-
ActiveTriggerConnectors["Email"] = "email";
|
|
9
|
-
})(ActiveTriggerConnectors || (exports.ActiveTriggerConnectors = ActiveTriggerConnectors = {}));
|
|
10
6
|
var AppInstanceStatus;
|
|
11
7
|
(function (AppInstanceStatus) {
|
|
12
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -22,73 +18,11 @@ var Can;
|
|
|
22
18
|
})(Can || (exports.Can = Can = {}));
|
|
23
19
|
var Typenames;
|
|
24
20
|
(function (Typenames) {
|
|
25
|
-
Typenames["ActiveTrigger"] = "ActiveTrigger";
|
|
26
21
|
Typenames["Any"] = "Any";
|
|
27
22
|
Typenames["Campaigns"] = "Campaigns";
|
|
28
23
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
29
24
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
30
25
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
31
|
-
exports.ActiveTriggerFragmentDoc = `
|
|
32
|
-
fragment activeTrigger on ActiveTrigger {
|
|
33
|
-
sessionId
|
|
34
|
-
startDrn
|
|
35
|
-
startApp {
|
|
36
|
-
drn
|
|
37
|
-
name
|
|
38
|
-
appId
|
|
39
|
-
appName
|
|
40
|
-
appColor
|
|
41
|
-
channels {
|
|
42
|
-
id
|
|
43
|
-
main
|
|
44
|
-
readonly
|
|
45
|
-
hidden
|
|
46
|
-
sources
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
endDrn
|
|
50
|
-
endApp {
|
|
51
|
-
drn
|
|
52
|
-
name
|
|
53
|
-
appId
|
|
54
|
-
appName
|
|
55
|
-
appColor
|
|
56
|
-
channels {
|
|
57
|
-
id
|
|
58
|
-
main
|
|
59
|
-
readonly
|
|
60
|
-
hidden
|
|
61
|
-
sources
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
connector
|
|
65
|
-
messages {
|
|
66
|
-
contentType
|
|
67
|
-
content
|
|
68
|
-
filename
|
|
69
|
-
}
|
|
70
|
-
payload
|
|
71
|
-
customerId
|
|
72
|
-
customer {
|
|
73
|
-
id
|
|
74
|
-
name
|
|
75
|
-
alternateName
|
|
76
|
-
emails
|
|
77
|
-
phones
|
|
78
|
-
documents
|
|
79
|
-
externalIds
|
|
80
|
-
createdAt
|
|
81
|
-
updatedAt
|
|
82
|
-
}
|
|
83
|
-
sentBy
|
|
84
|
-
agent {
|
|
85
|
-
id
|
|
86
|
-
name
|
|
87
|
-
createdAt
|
|
88
|
-
updatedAt
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
26
|
exports.CampaignFragmentDoc = `
|
|
93
27
|
fragment campaign on Campaign {
|
|
94
28
|
id
|
|
@@ -100,26 +34,6 @@ exports.CampaignFragmentDoc = `
|
|
|
100
34
|
updatedAt
|
|
101
35
|
}
|
|
102
36
|
`;
|
|
103
|
-
exports.ActiveTriggerDocument = `
|
|
104
|
-
mutation activeTrigger($input: ActiveTriggerInput!) {
|
|
105
|
-
activeTrigger(input: $input) {
|
|
106
|
-
...activeTrigger
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
${exports.ActiveTriggerFragmentDoc}`;
|
|
110
|
-
exports.ListActiveTriggersDocument = `
|
|
111
|
-
query listActiveTriggers($startDrn: DRN!, $endDrn: DRN!) {
|
|
112
|
-
listActiveTriggers(startDrn: $startDrn, endDrn: $endDrn) {
|
|
113
|
-
nodes {
|
|
114
|
-
...activeTrigger
|
|
115
|
-
}
|
|
116
|
-
pageInfo {
|
|
117
|
-
hasNext
|
|
118
|
-
next
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
${exports.ActiveTriggerFragmentDoc}`;
|
|
123
37
|
exports.GetCampaignDocument = `
|
|
124
38
|
query getCampaign($id: ID!) {
|
|
125
39
|
getCampaign(id: $id) {
|
|
@@ -157,12 +71,6 @@ exports.RemoveCampaignDocument = `
|
|
|
157
71
|
${exports.CampaignFragmentDoc}`;
|
|
158
72
|
function getSdk(requester) {
|
|
159
73
|
return {
|
|
160
|
-
activeTrigger(variables, options) {
|
|
161
|
-
return requester(exports.ActiveTriggerDocument, variables, options);
|
|
162
|
-
},
|
|
163
|
-
listActiveTriggers(variables, options) {
|
|
164
|
-
return requester(exports.ListActiveTriggersDocument, variables, options);
|
|
165
|
-
},
|
|
166
74
|
getCampaign(variables, options) {
|
|
167
75
|
return requester(exports.GetCampaignDocument, variables, options);
|
|
168
76
|
},
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -122,17 +122,15 @@ export type Scalars = {
|
|
|
122
122
|
output: void;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
export type ActiveTriggerInput = {
|
|
126
|
-
botId: Scalars['ID']['input'];
|
|
127
|
-
templateContent: Scalars['String']['input'];
|
|
128
|
-
templateName: Scalars['String']['input'];
|
|
129
|
-
users: Array<DrozBotWhatsAppTemplateUser>;
|
|
130
|
-
};
|
|
131
125
|
export type AgentInfo = {
|
|
132
126
|
id: Scalars['ID']['output'];
|
|
133
127
|
name: Scalars['String']['output'];
|
|
134
128
|
picture?: Maybe<Scalars['String']['output']>;
|
|
135
129
|
};
|
|
130
|
+
export declare enum AiActionDataSourceType {
|
|
131
|
+
Connector = "CONNECTOR",
|
|
132
|
+
KnowledgeBase = "KNOWLEDGE_BASE"
|
|
133
|
+
}
|
|
136
134
|
export type AiActionVariable = {
|
|
137
135
|
description: Scalars['String']['output'];
|
|
138
136
|
key: Scalars['String']['output'];
|
|
@@ -515,14 +513,24 @@ export type IntentDictionaryEntityInput = {
|
|
|
515
513
|
keys: Array<Scalars['String']['input']>;
|
|
516
514
|
label: Scalars['String']['input'];
|
|
517
515
|
};
|
|
516
|
+
export type InternalWhatsAppActiveDispatchInput = {
|
|
517
|
+
botId: Scalars['ID']['input'];
|
|
518
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
519
|
+
externalId: Scalars['ID']['input'];
|
|
520
|
+
phone: Scalars['String']['input'];
|
|
521
|
+
sessionId: Scalars['ID']['input'];
|
|
522
|
+
templateContent: Scalars['String']['input'];
|
|
523
|
+
templateName: Scalars['String']['input'];
|
|
524
|
+
vars: Array<Scalars['String']['input']>;
|
|
525
|
+
};
|
|
518
526
|
export type Mutation = {
|
|
519
|
-
activeTrigger?: Maybe<Scalars['Void']['output']>;
|
|
520
527
|
analyzeDrozbotTalk: DrozbotTalkAnalysis;
|
|
521
528
|
createDrozBotInstance: DrozBotInstance;
|
|
522
529
|
createDrozBotTicket: DrozBotTicket;
|
|
523
530
|
createDrozBotTicketComment: DrozBotTicketComment;
|
|
524
531
|
createDrozBotTicketComments: Array<DrozBotTicketComment>;
|
|
525
532
|
evaluateDrozbotTalkAnalysisOutput: DrozbotTalkAnalysisEvaluation;
|
|
533
|
+
internalWhatsAppActiveDispatch?: Maybe<Scalars['Void']['output']>;
|
|
526
534
|
predictIntent?: Maybe<Intent>;
|
|
527
535
|
registerRootCredential?: Maybe<Scalars['Void']['output']>;
|
|
528
536
|
removeDrozBotInstance: DrozBotInstance;
|
|
@@ -537,9 +545,6 @@ export type Mutation = {
|
|
|
537
545
|
upsertIntentDictionary?: Maybe<IntentDictionary>;
|
|
538
546
|
version?: Maybe<Scalars['String']['output']>;
|
|
539
547
|
};
|
|
540
|
-
export type MutationActiveTriggerArgs = {
|
|
541
|
-
input: ActiveTriggerInput;
|
|
542
|
-
};
|
|
543
548
|
export type MutationAnalyzeDrozbotTalkArgs = {
|
|
544
549
|
input: AnalyzeDrozbotTalkInput;
|
|
545
550
|
};
|
|
@@ -558,6 +563,9 @@ export type MutationCreateDrozBotTicketCommentsArgs = {
|
|
|
558
563
|
export type MutationEvaluateDrozbotTalkAnalysisOutputArgs = {
|
|
559
564
|
input: EvaluateDrozbotTalkAnalysisOutputInput;
|
|
560
565
|
};
|
|
566
|
+
export type MutationInternalWhatsAppActiveDispatchArgs = {
|
|
567
|
+
input: InternalWhatsAppActiveDispatchInput;
|
|
568
|
+
};
|
|
561
569
|
export type MutationPredictIntentArgs = {
|
|
562
570
|
input: PredictIntentInput;
|
|
563
571
|
};
|
|
@@ -695,6 +703,7 @@ export type RunAiActionHumanizedAnswerInput = {
|
|
|
695
703
|
};
|
|
696
704
|
export type RunAiActionInput = {
|
|
697
705
|
actionPrompt: Scalars['String']['input'];
|
|
706
|
+
dataSourceType?: InputMaybe<AiActionDataSourceType>;
|
|
698
707
|
isGreeting?: InputMaybe<Scalars['Boolean']['input']>;
|
|
699
708
|
language?: InputMaybe<Scalars['String']['input']>;
|
|
700
709
|
missingVariables: Array<AiActionVariableInput>;
|
|
@@ -1009,10 +1018,10 @@ export type RegisterRootCredentialMutationVariables = Exact<{
|
|
|
1009
1018
|
input: DrozBotRootCredentialInput;
|
|
1010
1019
|
}>;
|
|
1011
1020
|
export type RegisterRootCredentialMutation = Pick<Mutation, 'registerRootCredential'>;
|
|
1012
|
-
export type
|
|
1013
|
-
input:
|
|
1021
|
+
export type InternalWhatsAppActiveDispatchMutationVariables = Exact<{
|
|
1022
|
+
input: InternalWhatsAppActiveDispatchInput;
|
|
1014
1023
|
}>;
|
|
1015
|
-
export type
|
|
1024
|
+
export type InternalWhatsAppActiveDispatchMutation = Pick<Mutation, 'internalWhatsAppActiveDispatch'>;
|
|
1016
1025
|
export declare const AiActionVariableValueFragmentDoc = "\n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
1017
1026
|
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
1027
|
export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
@@ -1058,7 +1067,7 @@ export declare const ListWhatsAppBotsDocument = "\n query listWhatsAppBots {\
|
|
|
1058
1067
|
export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBotDetails($id: ID!) {\n getWhatsAppBotDetails(id: $id) {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
1059
1068
|
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
1069
|
export declare const RegisterRootCredentialDocument = "\n mutation registerRootCredential($input: DrozBotRootCredentialInput!) {\n registerRootCredential(input: $input)\n}\n ";
|
|
1061
|
-
export declare const
|
|
1070
|
+
export declare const InternalWhatsAppActiveDispatchDocument = "\n mutation internalWhatsAppActiveDispatch($input: InternalWhatsAppActiveDispatchInput!) {\n internalWhatsAppActiveDispatch(input: $input)\n}\n ";
|
|
1062
1071
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
1063
1072
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1064
1073
|
runDrozbotAiAction(variables: RunDrozbotAiActionMutationVariables, options?: C): Promise<RunDrozbotAiActionMutation>;
|
|
@@ -1095,7 +1104,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1095
1104
|
getWhatsAppBotDetails(variables: GetWhatsAppBotDetailsQueryVariables, options?: C): Promise<GetWhatsAppBotDetailsQuery>;
|
|
1096
1105
|
listWhatsAppBotTemplates(variables: ListWhatsAppBotTemplatesQueryVariables, options?: C): Promise<ListWhatsAppBotTemplatesQuery>;
|
|
1097
1106
|
registerRootCredential(variables: RegisterRootCredentialMutationVariables, options?: C): Promise<RegisterRootCredentialMutation>;
|
|
1098
|
-
|
|
1107
|
+
internalWhatsAppActiveDispatch(variables: InternalWhatsAppActiveDispatchMutationVariables, options?: C): Promise<InternalWhatsAppActiveDispatchMutation>;
|
|
1099
1108
|
};
|
|
1100
1109
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1101
1110
|
export declare const serviceName = "@droz/drozbot";
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.
|
|
4
|
+
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 = exports.AiActionDataSourceType = void 0;
|
|
5
|
+
exports.serviceName = exports.InternalWhatsAppActiveDispatchDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.EvaluateDrozbotTalkAnalysisOutputDocument = exports.AnalyzeDrozbotTalkDocument = exports.GetDrozbotTalkAnalysisEmbedUrlDocument = exports.DrozbotTalkConversationDocument = exports.TriggerDrozbotTalkAnalysisBackfillDocument = exports.TriggerDrozbotTalkAnalysisBatchDocument = exports.TriggerDrozbotTalkAnalysisIngestDocument = exports.ListDrozbotTalkAnalysesDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
|
+
var AiActionDataSourceType;
|
|
8
|
+
(function (AiActionDataSourceType) {
|
|
9
|
+
AiActionDataSourceType["Connector"] = "CONNECTOR";
|
|
10
|
+
AiActionDataSourceType["KnowledgeBase"] = "KNOWLEDGE_BASE";
|
|
11
|
+
})(AiActionDataSourceType || (exports.AiActionDataSourceType = AiActionDataSourceType = {}));
|
|
7
12
|
var AppInstanceStatus;
|
|
8
13
|
(function (AppInstanceStatus) {
|
|
9
14
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -534,9 +539,9 @@ exports.RegisterRootCredentialDocument = `
|
|
|
534
539
|
registerRootCredential(input: $input)
|
|
535
540
|
}
|
|
536
541
|
`;
|
|
537
|
-
exports.
|
|
538
|
-
mutation
|
|
539
|
-
|
|
542
|
+
exports.InternalWhatsAppActiveDispatchDocument = `
|
|
543
|
+
mutation internalWhatsAppActiveDispatch($input: InternalWhatsAppActiveDispatchInput!) {
|
|
544
|
+
internalWhatsAppActiveDispatch(input: $input)
|
|
540
545
|
}
|
|
541
546
|
`;
|
|
542
547
|
function getSdk(requester) {
|
|
@@ -643,8 +648,8 @@ function getSdk(requester) {
|
|
|
643
648
|
registerRootCredential(variables, options) {
|
|
644
649
|
return requester(exports.RegisterRootCredentialDocument, variables, options);
|
|
645
650
|
},
|
|
646
|
-
|
|
647
|
-
return requester(exports.
|
|
651
|
+
internalWhatsAppActiveDispatch(variables, options) {
|
|
652
|
+
return requester(exports.InternalWhatsAppActiveDispatchDocument, variables, options);
|
|
648
653
|
}
|
|
649
654
|
};
|
|
650
655
|
}
|
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?: InputMaybe<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'];
|
|
@@ -412,6 +446,7 @@ export type MarkTicketMessagesAsReadInput = {
|
|
|
412
446
|
ticketId: Scalars['ID']['input'];
|
|
413
447
|
};
|
|
414
448
|
export type Mutation = {
|
|
449
|
+
activeDispatch: Scalars['ID']['output'];
|
|
415
450
|
addDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
416
451
|
addDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
417
452
|
addDrozChatChannelGroup?: Maybe<DrozChatChannel>;
|
|
@@ -462,6 +497,9 @@ export type Mutation = {
|
|
|
462
497
|
upsertSurvey: Survey;
|
|
463
498
|
version?: Maybe<Scalars['String']['output']>;
|
|
464
499
|
};
|
|
500
|
+
export type MutationActiveDispatchArgs = {
|
|
501
|
+
input: ActiveDispatchInput;
|
|
502
|
+
};
|
|
465
503
|
export type MutationAddDrozChatAgentGroupArgs = {
|
|
466
504
|
input: AddDrozChatAgentGroupInput;
|
|
467
505
|
};
|
|
@@ -958,6 +996,7 @@ export type TicketMessageSubscription = {
|
|
|
958
996
|
message: TicketMessage;
|
|
959
997
|
};
|
|
960
998
|
export declare enum TicketMessageType {
|
|
999
|
+
ActiveTrigger = "ACTIVE_TRIGGER",
|
|
961
1000
|
Internal = "INTERNAL",
|
|
962
1001
|
Regular = "REGULAR"
|
|
963
1002
|
}
|
|
@@ -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",
|
|
@@ -1290,6 +1332,10 @@ export type View = {
|
|
|
1290
1332
|
name: Scalars['String']['output'];
|
|
1291
1333
|
updatedAt: Scalars['DateTime']['output'];
|
|
1292
1334
|
};
|
|
1335
|
+
export type ActiveDispatchMutationVariables = Exact<{
|
|
1336
|
+
input: ActiveDispatchInput;
|
|
1337
|
+
}>;
|
|
1338
|
+
export type ActiveDispatchMutation = Pick<Mutation, 'activeDispatch'>;
|
|
1293
1339
|
export type GenerateAnalyticsTokenMutationVariables = Exact<{
|
|
1294
1340
|
[key: string]: never;
|
|
1295
1341
|
}>;
|
|
@@ -1963,6 +2009,7 @@ export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearch
|
|
|
1963
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 ";
|
|
1964
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 ";
|
|
1965
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 ";
|
|
1966
2013
|
export declare const GenerateAnalyticsTokenDocument = "\n mutation generateAnalyticsToken {\n generateAnalyticsToken {\n token\n }\n}\n ";
|
|
1967
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 ";
|
|
1968
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 ";
|
|
@@ -2044,6 +2091,7 @@ export declare const UpdateViewDocument = "\n mutation updateView($input: Upd
|
|
|
2044
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 ";
|
|
2045
2092
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
2046
2093
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
2094
|
+
activeDispatch(variables: ActiveDispatchMutationVariables, options?: C): Promise<ActiveDispatchMutation>;
|
|
2047
2095
|
generateAnalyticsToken(variables?: GenerateAnalyticsTokenMutationVariables, options?: C): Promise<GenerateAnalyticsTokenMutation>;
|
|
2048
2096
|
getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
|
|
2049
2097
|
listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
|
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.
|
|
5
|
-
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 = void 0;
|
|
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";
|
|
@@ -67,6 +72,7 @@ var TicketMessageRecipient;
|
|
|
67
72
|
})(TicketMessageRecipient || (exports.TicketMessageRecipient = TicketMessageRecipient = {}));
|
|
68
73
|
var TicketMessageType;
|
|
69
74
|
(function (TicketMessageType) {
|
|
75
|
+
TicketMessageType["ActiveTrigger"] = "ACTIVE_TRIGGER";
|
|
70
76
|
TicketMessageType["Internal"] = "INTERNAL";
|
|
71
77
|
TicketMessageType["Regular"] = "REGULAR";
|
|
72
78
|
})(TicketMessageType || (exports.TicketMessageType = TicketMessageType = {}));
|
|
@@ -136,9 +142,12 @@ var TriggerScope;
|
|
|
136
142
|
})(TriggerScope || (exports.TriggerScope = TriggerScope = {}));
|
|
137
143
|
var Typenames;
|
|
138
144
|
(function (Typenames) {
|
|
145
|
+
Typenames["ActiveDispatches"] = "ActiveDispatches";
|
|
139
146
|
Typenames["AgentChannelIndex"] = "AgentChannelIndex";
|
|
140
147
|
Typenames["AgentGroup"] = "AgentGroup";
|
|
141
148
|
Typenames["Any"] = "Any";
|
|
149
|
+
Typenames["CajCloseBatches"] = "CajCloseBatches";
|
|
150
|
+
Typenames["CajCloseRuns"] = "CajCloseRuns";
|
|
142
151
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
143
152
|
Typenames["ChannelTriggerExecutions"] = "ChannelTriggerExecutions";
|
|
144
153
|
Typenames["Channels"] = "Channels";
|
|
@@ -695,6 +704,11 @@ exports.ViewFragmentDoc = `
|
|
|
695
704
|
updatedAt
|
|
696
705
|
}
|
|
697
706
|
`;
|
|
707
|
+
exports.ActiveDispatchDocument = `
|
|
708
|
+
mutation activeDispatch($input: ActiveDispatchInput!) {
|
|
709
|
+
activeDispatch(input: $input)
|
|
710
|
+
}
|
|
711
|
+
`;
|
|
698
712
|
exports.GenerateAnalyticsTokenDocument = `
|
|
699
713
|
mutation generateAnalyticsToken {
|
|
700
714
|
generateAnalyticsToken {
|
|
@@ -1515,6 +1529,9 @@ exports.DeleteViewDocument = `
|
|
|
1515
1529
|
${exports.ViewFragmentDoc}`;
|
|
1516
1530
|
function getSdk(requester) {
|
|
1517
1531
|
return {
|
|
1532
|
+
activeDispatch(variables, options) {
|
|
1533
|
+
return requester(exports.ActiveDispatchDocument, variables, options);
|
|
1534
|
+
},
|
|
1518
1535
|
generateAnalyticsToken(variables, options) {
|
|
1519
1536
|
return requester(exports.GenerateAnalyticsTokenDocument, variables, options);
|
|
1520
1537
|
},
|
package/src/sdks/email.d.ts
CHANGED
|
@@ -157,10 +157,6 @@ export type EmailAttachmentMetadata = {
|
|
|
157
157
|
sourceId?: Maybe<Scalars['String']['output']>;
|
|
158
158
|
url: Scalars['String']['output'];
|
|
159
159
|
};
|
|
160
|
-
export type EmailCcRecipientInput = {
|
|
161
|
-
email: Scalars['EmailAddress']['input'];
|
|
162
|
-
name?: InputMaybe<Scalars['String']['input']>;
|
|
163
|
-
};
|
|
164
160
|
export declare enum EmailDirection {
|
|
165
161
|
Inbound = "Inbound",
|
|
166
162
|
Outbound = "Outbound"
|
|
@@ -252,16 +248,32 @@ export type I18nTextInput = {
|
|
|
252
248
|
lang: Scalars['Locale']['input'];
|
|
253
249
|
value: Scalars['String']['input'];
|
|
254
250
|
};
|
|
251
|
+
export type InternalActiveDispatchInput = {
|
|
252
|
+
bcc?: InputMaybe<Array<InternalActiveDispatchRecipientInput>>;
|
|
253
|
+
cc?: InputMaybe<Array<InternalActiveDispatchRecipientInput>>;
|
|
254
|
+
instanceId: Scalars['ID']['input'];
|
|
255
|
+
messages: Array<InternalActiveDispatchMessageInput>;
|
|
256
|
+
sessionId: Scalars['ID']['input'];
|
|
257
|
+
subject: Scalars['String']['input'];
|
|
258
|
+
to: Array<InternalActiveDispatchRecipientInput>;
|
|
259
|
+
};
|
|
260
|
+
export type InternalActiveDispatchMessageInput = {
|
|
261
|
+
content: Scalars['String']['input'];
|
|
262
|
+
contentType: Scalars['String']['input'];
|
|
263
|
+
};
|
|
264
|
+
export type InternalActiveDispatchRecipientInput = {
|
|
265
|
+
email: Scalars['EmailAddress']['input'];
|
|
266
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
267
|
+
};
|
|
255
268
|
export type Mutation = {
|
|
256
269
|
addEmailBlocklistEntry: EmailInstance;
|
|
257
270
|
createEmailInstance: EmailInstance;
|
|
258
271
|
enableEmailInstanceSignature: EmailInstance;
|
|
272
|
+
internalActiveDispatch?: Maybe<Scalars['Void']['output']>;
|
|
259
273
|
processSendGridEventWebhook?: Maybe<Scalars['Void']['output']>;
|
|
260
274
|
removeEmailBlocklistEntry: EmailInstance;
|
|
261
275
|
removeEmailInstance?: Maybe<Scalars['Void']['output']>;
|
|
262
276
|
removeEmailInstanceSignature: EmailInstance;
|
|
263
|
-
setEmailBcc?: Maybe<Scalars['Void']['output']>;
|
|
264
|
-
setEmailCc?: Maybe<Scalars['Void']['output']>;
|
|
265
277
|
setEmailInstanceSignature: EmailInstance;
|
|
266
278
|
updateEmailInstance: EmailInstance;
|
|
267
279
|
validateInstanceDomain: Scalars['Boolean']['output'];
|
|
@@ -276,6 +288,9 @@ export type MutationCreateEmailInstanceArgs = {
|
|
|
276
288
|
export type MutationEnableEmailInstanceSignatureArgs = {
|
|
277
289
|
input: EnableEmailInstanceSignatureInput;
|
|
278
290
|
};
|
|
291
|
+
export type MutationInternalActiveDispatchArgs = {
|
|
292
|
+
input: InternalActiveDispatchInput;
|
|
293
|
+
};
|
|
279
294
|
export type MutationProcessSendGridEventWebhookArgs = {
|
|
280
295
|
input: SendGridEventWebhookInput;
|
|
281
296
|
};
|
|
@@ -288,12 +303,6 @@ export type MutationRemoveEmailInstanceArgs = {
|
|
|
288
303
|
export type MutationRemoveEmailInstanceSignatureArgs = {
|
|
289
304
|
input: RemoveEmailInstanceSignatureInput;
|
|
290
305
|
};
|
|
291
|
-
export type MutationSetEmailBccArgs = {
|
|
292
|
-
input: SetEmailBccInput;
|
|
293
|
-
};
|
|
294
|
-
export type MutationSetEmailCcArgs = {
|
|
295
|
-
input: SetEmailCcInput;
|
|
296
|
-
};
|
|
297
306
|
export type MutationSetEmailInstanceSignatureArgs = {
|
|
298
307
|
input: SetEmailInstanceSignatureInput;
|
|
299
308
|
};
|
|
@@ -385,14 +394,6 @@ export type SendGridEventWebhookInput = {
|
|
|
385
394
|
events: Array<SendGridEventWebhookEventInput>;
|
|
386
395
|
instanceId: Scalars['ID']['input'];
|
|
387
396
|
};
|
|
388
|
-
export type SetEmailBccInput = {
|
|
389
|
-
bcc: Array<EmailCcRecipientInput>;
|
|
390
|
-
sessionId: Scalars['ID']['input'];
|
|
391
|
-
};
|
|
392
|
-
export type SetEmailCcInput = {
|
|
393
|
-
cc: Array<EmailCcRecipientInput>;
|
|
394
|
-
sessionId: Scalars['ID']['input'];
|
|
395
|
-
};
|
|
396
397
|
export type SetEmailInstanceSignatureInput = {
|
|
397
398
|
id: Scalars['ID']['input'];
|
|
398
399
|
signature: EmailSignatureInput;
|
|
@@ -428,6 +429,7 @@ export type StringMatcherInput = {
|
|
|
428
429
|
};
|
|
429
430
|
export declare enum Typenames {
|
|
430
431
|
Any = "Any",
|
|
432
|
+
EmailActiveTrigger = "EmailActiveTrigger",
|
|
431
433
|
EmailData = "EmailData",
|
|
432
434
|
EmailInstance = "EmailInstance",
|
|
433
435
|
EmailReplyData = "EmailReplyData",
|
|
@@ -508,14 +510,6 @@ export type ValidateInstanceDomainMutationVariables = Exact<{
|
|
|
508
510
|
input: ValidateInstanceDomainInput;
|
|
509
511
|
}>;
|
|
510
512
|
export type ValidateInstanceDomainMutation = Pick<Mutation, 'validateInstanceDomain'>;
|
|
511
|
-
export type SetEmailCcMutationVariables = Exact<{
|
|
512
|
-
input: SetEmailCcInput;
|
|
513
|
-
}>;
|
|
514
|
-
export type SetEmailCcMutation = Pick<Mutation, 'setEmailCc'>;
|
|
515
|
-
export type SetEmailBccMutationVariables = Exact<{
|
|
516
|
-
input: SetEmailBccInput;
|
|
517
|
-
}>;
|
|
518
|
-
export type SetEmailBccMutation = Pick<Mutation, 'setEmailBcc'>;
|
|
519
513
|
export type AddEmailBlocklistEntryMutationVariables = Exact<{
|
|
520
514
|
input: AddEmailBlocklistEntryInput;
|
|
521
515
|
}>;
|
|
@@ -532,6 +526,10 @@ export type ProcessSendGridEventWebhookMutationVariables = Exact<{
|
|
|
532
526
|
input: SendGridEventWebhookInput;
|
|
533
527
|
}>;
|
|
534
528
|
export type ProcessSendGridEventWebhookMutation = Pick<Mutation, 'processSendGridEventWebhook'>;
|
|
529
|
+
export type InternalActiveDispatchMutationVariables = Exact<{
|
|
530
|
+
input: InternalActiveDispatchInput;
|
|
531
|
+
}>;
|
|
532
|
+
export type InternalActiveDispatchMutation = Pick<Mutation, 'internalActiveDispatch'>;
|
|
535
533
|
export type ListThreadingBySessionIdQueryVariables = Exact<{
|
|
536
534
|
sessionId: Scalars['ID']['input'];
|
|
537
535
|
}>;
|
|
@@ -554,11 +552,10 @@ export declare const RemoveEmailInstanceSignatureDocument = "\n mutation remo
|
|
|
554
552
|
export declare const EnableEmailInstanceSignatureDocument = "\n mutation enableEmailInstanceSignature($input: EnableEmailInstanceSignatureInput!) {\n enableEmailInstanceSignature(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 ";
|
|
555
553
|
export declare const RemoveEmailInstanceDocument = "\n mutation removeEmailInstance($input: RemoveEmailInstanceInput!) {\n removeEmailInstance(input: $input)\n}\n ";
|
|
556
554
|
export declare const ValidateInstanceDomainDocument = "\n mutation validateInstanceDomain($input: ValidateInstanceDomainInput!) {\n validateInstanceDomain(input: $input)\n}\n ";
|
|
557
|
-
export declare const SetEmailCcDocument = "\n mutation setEmailCc($input: SetEmailCcInput!) {\n setEmailCc(input: $input)\n}\n ";
|
|
558
|
-
export declare const SetEmailBccDocument = "\n mutation setEmailBcc($input: SetEmailBccInput!) {\n setEmailBcc(input: $input)\n}\n ";
|
|
559
555
|
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
556
|
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
557
|
export declare const ProcessSendGridEventWebhookDocument = "\n mutation processSendGridEventWebhook($input: SendGridEventWebhookInput!) {\n processSendGridEventWebhook(input: $input)\n}\n ";
|
|
558
|
+
export declare const InternalActiveDispatchDocument = "\n mutation internalActiveDispatch($input: InternalActiveDispatchInput!) {\n internalActiveDispatch(input: $input)\n}\n ";
|
|
562
559
|
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
560
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
564
561
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -571,11 +568,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
571
568
|
enableEmailInstanceSignature(variables: EnableEmailInstanceSignatureMutationVariables, options?: C): Promise<EnableEmailInstanceSignatureMutation>;
|
|
572
569
|
removeEmailInstance(variables: RemoveEmailInstanceMutationVariables, options?: C): Promise<RemoveEmailInstanceMutation>;
|
|
573
570
|
validateInstanceDomain(variables: ValidateInstanceDomainMutationVariables, options?: C): Promise<ValidateInstanceDomainMutation>;
|
|
574
|
-
setEmailCc(variables: SetEmailCcMutationVariables, options?: C): Promise<SetEmailCcMutation>;
|
|
575
|
-
setEmailBcc(variables: SetEmailBccMutationVariables, options?: C): Promise<SetEmailBccMutation>;
|
|
576
571
|
addEmailBlocklistEntry(variables: AddEmailBlocklistEntryMutationVariables, options?: C): Promise<AddEmailBlocklistEntryMutation>;
|
|
577
572
|
removeEmailBlocklistEntry(variables: RemoveEmailBlocklistEntryMutationVariables, options?: C): Promise<RemoveEmailBlocklistEntryMutation>;
|
|
578
573
|
processSendGridEventWebhook(variables: ProcessSendGridEventWebhookMutationVariables, options?: C): Promise<ProcessSendGridEventWebhookMutation>;
|
|
574
|
+
internalActiveDispatch(variables: InternalActiveDispatchMutationVariables, options?: C): Promise<InternalActiveDispatchMutation>;
|
|
579
575
|
listThreadingBySessionId(variables: ListThreadingBySessionIdQueryVariables, options?: C): Promise<ListThreadingBySessionIdQuery>;
|
|
580
576
|
};
|
|
581
577
|
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.
|
|
4
|
+
exports.serviceName = exports.ListThreadingBySessionIdDocument = exports.InternalActiveDispatchDocument = exports.ProcessSendGridEventWebhookDocument = exports.RemoveEmailBlocklistEntryDocument = exports.AddEmailBlocklistEntryDocument = 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";
|
|
@@ -184,16 +185,6 @@ exports.ValidateInstanceDomainDocument = `
|
|
|
184
185
|
validateInstanceDomain(input: $input)
|
|
185
186
|
}
|
|
186
187
|
`;
|
|
187
|
-
exports.SetEmailCcDocument = `
|
|
188
|
-
mutation setEmailCc($input: SetEmailCcInput!) {
|
|
189
|
-
setEmailCc(input: $input)
|
|
190
|
-
}
|
|
191
|
-
`;
|
|
192
|
-
exports.SetEmailBccDocument = `
|
|
193
|
-
mutation setEmailBcc($input: SetEmailBccInput!) {
|
|
194
|
-
setEmailBcc(input: $input)
|
|
195
|
-
}
|
|
196
|
-
`;
|
|
197
188
|
exports.AddEmailBlocklistEntryDocument = `
|
|
198
189
|
mutation addEmailBlocklistEntry($input: AddEmailBlocklistEntryInput!) {
|
|
199
190
|
addEmailBlocklistEntry(input: $input) {
|
|
@@ -213,6 +204,11 @@ exports.ProcessSendGridEventWebhookDocument = `
|
|
|
213
204
|
processSendGridEventWebhook(input: $input)
|
|
214
205
|
}
|
|
215
206
|
`;
|
|
207
|
+
exports.InternalActiveDispatchDocument = `
|
|
208
|
+
mutation internalActiveDispatch($input: InternalActiveDispatchInput!) {
|
|
209
|
+
internalActiveDispatch(input: $input)
|
|
210
|
+
}
|
|
211
|
+
`;
|
|
216
212
|
exports.ListThreadingBySessionIdDocument = `
|
|
217
213
|
query listThreadingBySessionId($sessionId: ID!) {
|
|
218
214
|
listThreadingBySessionId(sessionId: $sessionId) {
|
|
@@ -256,12 +252,6 @@ function getSdk(requester) {
|
|
|
256
252
|
validateInstanceDomain(variables, options) {
|
|
257
253
|
return requester(exports.ValidateInstanceDomainDocument, variables, options);
|
|
258
254
|
},
|
|
259
|
-
setEmailCc(variables, options) {
|
|
260
|
-
return requester(exports.SetEmailCcDocument, variables, options);
|
|
261
|
-
},
|
|
262
|
-
setEmailBcc(variables, options) {
|
|
263
|
-
return requester(exports.SetEmailBccDocument, variables, options);
|
|
264
|
-
},
|
|
265
255
|
addEmailBlocklistEntry(variables, options) {
|
|
266
256
|
return requester(exports.AddEmailBlocklistEntryDocument, variables, options);
|
|
267
257
|
},
|
|
@@ -271,6 +261,9 @@ function getSdk(requester) {
|
|
|
271
261
|
processSendGridEventWebhook(variables, options) {
|
|
272
262
|
return requester(exports.ProcessSendGridEventWebhookDocument, variables, options);
|
|
273
263
|
},
|
|
264
|
+
internalActiveDispatch(variables, options) {
|
|
265
|
+
return requester(exports.InternalActiveDispatchDocument, variables, options);
|
|
266
|
+
},
|
|
274
267
|
listThreadingBySessionId(variables, options) {
|
|
275
268
|
return requester(exports.ListThreadingBySessionIdDocument, variables, options);
|
|
276
269
|
}
|