@droz-js/sdk 0.9.49 → 0.9.51
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/drozchat-ws.d.ts +37 -0
- package/src/drozchat.d.ts +37 -0
- package/src/sdks/drozchat.d.ts +218 -1
- package/src/sdks/drozchat.js +159 -2
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -33,6 +33,19 @@ declare const DrozChatWs_base: new () => {
|
|
|
33
33
|
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
34
34
|
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
35
35
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
36
|
+
listNotes(variables: import("./sdks/drozchat").Exact<{
|
|
37
|
+
customerId: import("./sdks/drozchat").Scalars["String"]["input"];
|
|
38
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
39
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListNotesQuery>;
|
|
40
|
+
createNote(variables: import("./sdks/drozchat").Exact<{
|
|
41
|
+
input: import("./sdks/drozchat").CreateCustomerNoteInput;
|
|
42
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateNoteMutation>;
|
|
43
|
+
updateNote(variables: import("./sdks/drozchat").Exact<{
|
|
44
|
+
input: import("./sdks/drozchat").UpdateCustomerNoteInput;
|
|
45
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateNoteMutation>;
|
|
46
|
+
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
47
|
+
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
48
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
36
49
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
37
50
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
38
51
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
|
@@ -115,6 +128,30 @@ declare const DrozChatWs_base: new () => {
|
|
|
115
128
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
116
129
|
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
117
130
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
131
|
+
getView(variables: import("./sdks/drozchat").Exact<{
|
|
132
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
133
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetViewQuery>;
|
|
134
|
+
listViews(variables?: import("./sdks/drozchat").Exact<{
|
|
135
|
+
[key: string]: never;
|
|
136
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListViewsQuery>;
|
|
137
|
+
listViewsByChannel(variables: import("./sdks/drozchat").Exact<{
|
|
138
|
+
channelId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
139
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListViewsByChannelQuery>;
|
|
140
|
+
listTicketsByView(variables: import("./sdks/drozchat").Exact<{
|
|
141
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
142
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsByViewQuery>;
|
|
143
|
+
createView(variables: import("./sdks/drozchat").Exact<{
|
|
144
|
+
input: import("./sdks/drozchat").CreateViewInput;
|
|
145
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateViewMutation>;
|
|
146
|
+
cloneView(variables: import("./sdks/drozchat").Exact<{
|
|
147
|
+
input: import("./sdks/drozchat").CloneViewInput;
|
|
148
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CloneViewMutation>;
|
|
149
|
+
updateView(variables: import("./sdks/drozchat").Exact<{
|
|
150
|
+
input: import("./sdks/drozchat").UpdateViewInput;
|
|
151
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateViewMutation>;
|
|
152
|
+
deleteView(variables: import("./sdks/drozchat").Exact<{
|
|
153
|
+
input: import("./sdks/drozchat").DeleteViewInput;
|
|
154
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteViewMutation>;
|
|
118
155
|
};
|
|
119
156
|
export declare class DrozChatWs extends DrozChatWs_base {
|
|
120
157
|
}
|
package/src/drozchat.d.ts
CHANGED
|
@@ -36,6 +36,19 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
36
36
|
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
37
37
|
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
38
38
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
39
|
+
listNotes(variables: import("./sdks/drozchat").Exact<{
|
|
40
|
+
customerId: import("./sdks/drozchat").Scalars["String"]["input"];
|
|
41
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
42
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListNotesQuery>;
|
|
43
|
+
createNote(variables: import("./sdks/drozchat").Exact<{
|
|
44
|
+
input: import("./sdks/drozchat").CreateCustomerNoteInput;
|
|
45
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateNoteMutation>;
|
|
46
|
+
updateNote(variables: import("./sdks/drozchat").Exact<{
|
|
47
|
+
input: import("./sdks/drozchat").UpdateCustomerNoteInput;
|
|
48
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateNoteMutation>;
|
|
49
|
+
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
50
|
+
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
51
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
39
52
|
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
40
53
|
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
41
54
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
|
@@ -118,6 +131,30 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
118
131
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
119
132
|
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
120
133
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
134
|
+
getView(variables: import("./sdks/drozchat").Exact<{
|
|
135
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
136
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetViewQuery>;
|
|
137
|
+
listViews(variables?: import("./sdks/drozchat").Exact<{
|
|
138
|
+
[key: string]: never;
|
|
139
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListViewsQuery>;
|
|
140
|
+
listViewsByChannel(variables: import("./sdks/drozchat").Exact<{
|
|
141
|
+
channelId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
142
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListViewsByChannelQuery>;
|
|
143
|
+
listTicketsByView(variables: import("./sdks/drozchat").Exact<{
|
|
144
|
+
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
145
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsByViewQuery>;
|
|
146
|
+
createView(variables: import("./sdks/drozchat").Exact<{
|
|
147
|
+
input: import("./sdks/drozchat").CreateViewInput;
|
|
148
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateViewMutation>;
|
|
149
|
+
cloneView(variables: import("./sdks/drozchat").Exact<{
|
|
150
|
+
input: import("./sdks/drozchat").CloneViewInput;
|
|
151
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CloneViewMutation>;
|
|
152
|
+
updateView(variables: import("./sdks/drozchat").Exact<{
|
|
153
|
+
input: import("./sdks/drozchat").UpdateViewInput;
|
|
154
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateViewMutation>;
|
|
155
|
+
deleteView(variables: import("./sdks/drozchat").Exact<{
|
|
156
|
+
input: import("./sdks/drozchat").DeleteViewInput;
|
|
157
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteViewMutation>;
|
|
121
158
|
};
|
|
122
159
|
export declare class DrozChat extends DrozChat_base {
|
|
123
160
|
}
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -176,9 +176,17 @@ export type ChannelSearchResultsFacetValue = {
|
|
|
176
176
|
count: Scalars['Float']['output'];
|
|
177
177
|
value: Scalars['String']['output'];
|
|
178
178
|
};
|
|
179
|
+
export type CloneViewInput = {
|
|
180
|
+
channelId: Scalars['ID']['input'];
|
|
181
|
+
id: Scalars['ID']['input'];
|
|
182
|
+
};
|
|
179
183
|
export type CloseTicketInput = {
|
|
180
184
|
ticketId: Scalars['ID']['input'];
|
|
181
185
|
};
|
|
186
|
+
export type CreateCustomerNoteInput = {
|
|
187
|
+
customerId: Scalars['String']['input'];
|
|
188
|
+
note: Scalars['String']['input'];
|
|
189
|
+
};
|
|
182
190
|
export type CreateDrozChatChannelInput = {
|
|
183
191
|
agentIds?: InputMaybe<Scalars['Set']['input']>;
|
|
184
192
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -203,9 +211,32 @@ export type CreateTicketMessageInput = {
|
|
|
203
211
|
export type CreateTicketTagInput = {
|
|
204
212
|
tags: Array<Scalars['Tag']['input']>;
|
|
205
213
|
};
|
|
214
|
+
export type CreateViewInput = {
|
|
215
|
+
channelId: Scalars['ID']['input'];
|
|
216
|
+
filters: TicketSearchFilterInput;
|
|
217
|
+
name: Scalars['String']['input'];
|
|
218
|
+
};
|
|
219
|
+
export type CustomerNote = {
|
|
220
|
+
createdAt: Scalars['DateTime']['output'];
|
|
221
|
+
createdBy: DrozChatAgent;
|
|
222
|
+
id: Scalars['String']['output'];
|
|
223
|
+
note: Scalars['String']['output'];
|
|
224
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
225
|
+
};
|
|
226
|
+
export type CustomerNotesConnection = {
|
|
227
|
+
nodes: Array<CustomerNote>;
|
|
228
|
+
pageInfo: PageInfo;
|
|
229
|
+
};
|
|
230
|
+
export type DeleteCustomerNoteInput = {
|
|
231
|
+
customerId: Scalars['String']['input'];
|
|
232
|
+
id: Scalars['String']['input'];
|
|
233
|
+
};
|
|
206
234
|
export type DeleteTicketTagInput = {
|
|
207
235
|
tags: Array<Scalars['String']['input']>;
|
|
208
236
|
};
|
|
237
|
+
export type DeleteViewInput = {
|
|
238
|
+
id: Scalars['ID']['input'];
|
|
239
|
+
};
|
|
209
240
|
export type DisableDrozChatChannelInput = {
|
|
210
241
|
id: Scalars['ID']['input'];
|
|
211
242
|
};
|
|
@@ -263,13 +294,18 @@ export type Mutation = {
|
|
|
263
294
|
addTagsToTicket: Ticket;
|
|
264
295
|
assignTicket: Ticket;
|
|
265
296
|
assignTicketMyself: Ticket;
|
|
297
|
+
cloneView: View;
|
|
266
298
|
closeTicket: Ticket;
|
|
267
299
|
createDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
300
|
+
createNote: CustomerNote;
|
|
268
301
|
createTags: Array<TicketTag>;
|
|
269
302
|
createTicket: Ticket;
|
|
270
303
|
createTicketMessage: TicketMessage;
|
|
271
304
|
createTicketMessageForStorage: TicketMessage;
|
|
305
|
+
createView: View;
|
|
306
|
+
deleteNote: CustomerNote;
|
|
272
307
|
deleteTags: Array<Maybe<TicketTag>>;
|
|
308
|
+
deleteView: View;
|
|
273
309
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
274
310
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
275
311
|
generateAnalyticsToken?: Maybe<AnalyticsToken>;
|
|
@@ -279,7 +315,9 @@ export type Mutation = {
|
|
|
279
315
|
transferTicketToChannel: Ticket;
|
|
280
316
|
unassignTicket: Ticket;
|
|
281
317
|
updateDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
318
|
+
updateNote: CustomerNote;
|
|
282
319
|
updateTicket: Ticket;
|
|
320
|
+
updateView: View;
|
|
283
321
|
version?: Maybe<Scalars['String']['output']>;
|
|
284
322
|
};
|
|
285
323
|
export type MutationAddDrozChatChannelAgentArgs = {
|
|
@@ -294,12 +332,18 @@ export type MutationAssignTicketArgs = {
|
|
|
294
332
|
export type MutationAssignTicketMyselfArgs = {
|
|
295
333
|
input: AssignTicketMyselfInput;
|
|
296
334
|
};
|
|
335
|
+
export type MutationCloneViewArgs = {
|
|
336
|
+
input: CloneViewInput;
|
|
337
|
+
};
|
|
297
338
|
export type MutationCloseTicketArgs = {
|
|
298
339
|
input: CloseTicketInput;
|
|
299
340
|
};
|
|
300
341
|
export type MutationCreateDrozChatChannelArgs = {
|
|
301
342
|
input: CreateDrozChatChannelInput;
|
|
302
343
|
};
|
|
344
|
+
export type MutationCreateNoteArgs = {
|
|
345
|
+
input: CreateCustomerNoteInput;
|
|
346
|
+
};
|
|
303
347
|
export type MutationCreateTagsArgs = {
|
|
304
348
|
input: CreateTicketTagInput;
|
|
305
349
|
};
|
|
@@ -312,9 +356,18 @@ export type MutationCreateTicketMessageArgs = {
|
|
|
312
356
|
export type MutationCreateTicketMessageForStorageArgs = {
|
|
313
357
|
input: CreateTicketMessageForStorageInput;
|
|
314
358
|
};
|
|
359
|
+
export type MutationCreateViewArgs = {
|
|
360
|
+
input: CreateViewInput;
|
|
361
|
+
};
|
|
362
|
+
export type MutationDeleteNoteArgs = {
|
|
363
|
+
input?: InputMaybe<DeleteCustomerNoteInput>;
|
|
364
|
+
};
|
|
315
365
|
export type MutationDeleteTagsArgs = {
|
|
316
366
|
input: DeleteTicketTagInput;
|
|
317
367
|
};
|
|
368
|
+
export type MutationDeleteViewArgs = {
|
|
369
|
+
input: DeleteViewInput;
|
|
370
|
+
};
|
|
318
371
|
export type MutationDisableDrozChatChannelArgs = {
|
|
319
372
|
input: DisableDrozChatChannelInput;
|
|
320
373
|
};
|
|
@@ -339,9 +392,15 @@ export type MutationUnassignTicketArgs = {
|
|
|
339
392
|
export type MutationUpdateDrozChatChannelArgs = {
|
|
340
393
|
input: UpdateDrozChatChannelInput;
|
|
341
394
|
};
|
|
395
|
+
export type MutationUpdateNoteArgs = {
|
|
396
|
+
input?: InputMaybe<UpdateCustomerNoteInput>;
|
|
397
|
+
};
|
|
342
398
|
export type MutationUpdateTicketArgs = {
|
|
343
399
|
input: UpdateTicketInput;
|
|
344
400
|
};
|
|
401
|
+
export type MutationUpdateViewArgs = {
|
|
402
|
+
input: UpdateViewInput;
|
|
403
|
+
};
|
|
345
404
|
export type NumberMatcher = {
|
|
346
405
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
347
406
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -369,14 +428,19 @@ export type Query = {
|
|
|
369
428
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
370
429
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
371
430
|
getTicket?: Maybe<Ticket>;
|
|
431
|
+
getView?: Maybe<View>;
|
|
372
432
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
373
433
|
listDrozChatAgentChannels: Array<DrozChatChannel>;
|
|
374
434
|
listDrozChatChannels: Array<DrozChatChannel>;
|
|
435
|
+
listNotes: CustomerNotesConnection;
|
|
375
436
|
listTags: TicketTagsConnection;
|
|
376
437
|
listTicketInternalNotes: TicketMessagesConnection;
|
|
377
438
|
listTicketMessages: TicketMessagesConnection;
|
|
378
439
|
listTickets: TicketsConnection;
|
|
440
|
+
listTicketsByView: Array<Ticket>;
|
|
379
441
|
listTicketsInProgressMine: TicketsConnection;
|
|
442
|
+
listViews: Array<View>;
|
|
443
|
+
listViewsByChannel: Array<View>;
|
|
380
444
|
searchTickets?: Maybe<TicketsSearchResults>;
|
|
381
445
|
version?: Maybe<Scalars['String']['output']>;
|
|
382
446
|
};
|
|
@@ -386,9 +450,16 @@ export type QueryGetDrozChatChannelArgs = {
|
|
|
386
450
|
export type QueryGetTicketArgs = {
|
|
387
451
|
id: Scalars['ID']['input'];
|
|
388
452
|
};
|
|
453
|
+
export type QueryGetViewArgs = {
|
|
454
|
+
id: Scalars['ID']['input'];
|
|
455
|
+
};
|
|
389
456
|
export type QueryListDrozChatAgentChannelsArgs = {
|
|
390
457
|
agentId: Scalars['ID']['input'];
|
|
391
458
|
};
|
|
459
|
+
export type QueryListNotesArgs = {
|
|
460
|
+
customerId: Scalars['String']['input'];
|
|
461
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
462
|
+
};
|
|
392
463
|
export type QueryListTagsArgs = {
|
|
393
464
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
394
465
|
};
|
|
@@ -407,9 +478,15 @@ export type QueryListTicketsArgs = {
|
|
|
407
478
|
state: TicketState;
|
|
408
479
|
status?: InputMaybe<Array<TicketStatus>>;
|
|
409
480
|
};
|
|
481
|
+
export type QueryListTicketsByViewArgs = {
|
|
482
|
+
id: Scalars['ID']['input'];
|
|
483
|
+
};
|
|
410
484
|
export type QueryListTicketsInProgressMineArgs = {
|
|
411
485
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
412
486
|
};
|
|
487
|
+
export type QueryListViewsByChannelArgs = {
|
|
488
|
+
channelId: Scalars['ID']['input'];
|
|
489
|
+
};
|
|
413
490
|
export type QuerySearchTicketsArgs = {
|
|
414
491
|
filters?: InputMaybe<Array<TicketSearchFilterInput>>;
|
|
415
492
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
@@ -561,6 +638,19 @@ export declare enum TicketPriority {
|
|
|
561
638
|
Medium = "MEDIUM",
|
|
562
639
|
Urgent = "URGENT"
|
|
563
640
|
}
|
|
641
|
+
export type TicketSearchFilter = {
|
|
642
|
+
AND?: Maybe<Array<TicketSearchFilter>>;
|
|
643
|
+
OR?: Maybe<Array<TicketSearchFilter>>;
|
|
644
|
+
assigneeId?: Maybe<StringMatcher>;
|
|
645
|
+
channelId?: Maybe<StringMatcher>;
|
|
646
|
+
createdAt?: Maybe<NumberMatcher>;
|
|
647
|
+
customerId?: Maybe<StringMatcher>;
|
|
648
|
+
priority?: Maybe<StringMatcher>;
|
|
649
|
+
protocol?: Maybe<StringMatcher>;
|
|
650
|
+
state?: Maybe<StringMatcher>;
|
|
651
|
+
status?: Maybe<StringMatcher>;
|
|
652
|
+
tags?: Maybe<StringMatcher>;
|
|
653
|
+
};
|
|
564
654
|
export type TicketSearchFilterInput = {
|
|
565
655
|
AND?: InputMaybe<Array<TicketSearchFilterInput>>;
|
|
566
656
|
OR?: InputMaybe<Array<TicketSearchFilterInput>>;
|
|
@@ -656,17 +746,24 @@ export type TransferTicketToChannelInput = {
|
|
|
656
746
|
export declare enum Typenames {
|
|
657
747
|
Any = "Any",
|
|
658
748
|
Channels = "Channels",
|
|
749
|
+
CustomerNotes = "CustomerNotes",
|
|
659
750
|
GraphqlConnections = "GraphqlConnections",
|
|
660
751
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
661
752
|
Protocols = "Protocols",
|
|
662
753
|
Tags = "Tags",
|
|
663
754
|
TicketMappings = "TicketMappings",
|
|
664
755
|
TicketMessages = "TicketMessages",
|
|
665
|
-
Tickets = "Tickets"
|
|
756
|
+
Tickets = "Tickets",
|
|
757
|
+
Views = "Views"
|
|
666
758
|
}
|
|
667
759
|
export type UnassignTicketInput = {
|
|
668
760
|
ticketId: Scalars['ID']['input'];
|
|
669
761
|
};
|
|
762
|
+
export type UpdateCustomerNoteInput = {
|
|
763
|
+
customerId: Scalars['String']['input'];
|
|
764
|
+
id: Scalars['String']['input'];
|
|
765
|
+
note: Scalars['String']['input'];
|
|
766
|
+
};
|
|
670
767
|
export type UpdateDrozChatChannelInput = {
|
|
671
768
|
agentIds?: InputMaybe<Scalars['Set']['input']>;
|
|
672
769
|
id: Scalars['ID']['input'];
|
|
@@ -677,6 +774,20 @@ export type UpdateTicketInput = {
|
|
|
677
774
|
priority?: InputMaybe<TicketPriority>;
|
|
678
775
|
subject?: InputMaybe<Scalars['String']['input']>;
|
|
679
776
|
};
|
|
777
|
+
export type UpdateViewInput = {
|
|
778
|
+
channelId?: InputMaybe<Scalars['ID']['input']>;
|
|
779
|
+
filters?: InputMaybe<TicketSearchFilterInput>;
|
|
780
|
+
id: Scalars['ID']['input'];
|
|
781
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
782
|
+
};
|
|
783
|
+
export type View = {
|
|
784
|
+
channelId: Scalars['ID']['output'];
|
|
785
|
+
createdAt: Scalars['DateTime']['output'];
|
|
786
|
+
filters: Scalars['JSONObject']['output'];
|
|
787
|
+
id: Scalars['ID']['output'];
|
|
788
|
+
name: Scalars['String']['output'];
|
|
789
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
790
|
+
};
|
|
680
791
|
export type GenerateAnalyticsTokenMutationVariables = Exact<{
|
|
681
792
|
[key: string]: never;
|
|
682
793
|
}>;
|
|
@@ -738,6 +849,37 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
|
|
|
738
849
|
export type RemoveDrozChatChannelAgentMutation = {
|
|
739
850
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
|
|
740
851
|
};
|
|
852
|
+
export type CustomerNoteFragment = (Pick<CustomerNote, 'id' | 'note' | 'createdAt' | 'updatedAt'> & {
|
|
853
|
+
createdBy: DrozChatAgentFragment;
|
|
854
|
+
});
|
|
855
|
+
export type ListNotesQueryVariables = Exact<{
|
|
856
|
+
customerId: Scalars['String']['input'];
|
|
857
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
858
|
+
}>;
|
|
859
|
+
export type ListNotesQuery = {
|
|
860
|
+
listNotes: {
|
|
861
|
+
nodes: Array<CustomerNoteFragment>;
|
|
862
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
export type CreateNoteMutationVariables = Exact<{
|
|
866
|
+
input: CreateCustomerNoteInput;
|
|
867
|
+
}>;
|
|
868
|
+
export type CreateNoteMutation = {
|
|
869
|
+
createNote: CustomerNoteFragment;
|
|
870
|
+
};
|
|
871
|
+
export type UpdateNoteMutationVariables = Exact<{
|
|
872
|
+
input: UpdateCustomerNoteInput;
|
|
873
|
+
}>;
|
|
874
|
+
export type UpdateNoteMutation = {
|
|
875
|
+
updateNote: CustomerNoteFragment;
|
|
876
|
+
};
|
|
877
|
+
export type DeleteNoteMutationVariables = Exact<{
|
|
878
|
+
input: DeleteCustomerNoteInput;
|
|
879
|
+
}>;
|
|
880
|
+
export type DeleteNoteMutation = {
|
|
881
|
+
deleteNote: CustomerNoteFragment;
|
|
882
|
+
};
|
|
741
883
|
export type TagFragment = (Pick<TicketTag, 'name' | 'createdAt' | 'updatedAt'> & {
|
|
742
884
|
createdBy?: Maybe<DrozChatAgentFragment>;
|
|
743
885
|
});
|
|
@@ -956,7 +1098,57 @@ export type OnTicketMessageSubscription = {
|
|
|
956
1098
|
message: TicketMessageFragment;
|
|
957
1099
|
});
|
|
958
1100
|
};
|
|
1101
|
+
export type ViewFragment = Pick<View, 'id' | 'name' | 'channelId' | 'filters' | 'createdAt' | 'updatedAt'>;
|
|
1102
|
+
export type GetViewQueryVariables = Exact<{
|
|
1103
|
+
id: Scalars['ID']['input'];
|
|
1104
|
+
}>;
|
|
1105
|
+
export type GetViewQuery = {
|
|
1106
|
+
getView?: Maybe<ViewFragment>;
|
|
1107
|
+
};
|
|
1108
|
+
export type ListViewsQueryVariables = Exact<{
|
|
1109
|
+
[key: string]: never;
|
|
1110
|
+
}>;
|
|
1111
|
+
export type ListViewsQuery = {
|
|
1112
|
+
listViews: Array<ViewFragment>;
|
|
1113
|
+
};
|
|
1114
|
+
export type ListViewsByChannelQueryVariables = Exact<{
|
|
1115
|
+
channelId: Scalars['ID']['input'];
|
|
1116
|
+
}>;
|
|
1117
|
+
export type ListViewsByChannelQuery = {
|
|
1118
|
+
listViewsByChannel: Array<ViewFragment>;
|
|
1119
|
+
};
|
|
1120
|
+
export type ListTicketsByViewQueryVariables = Exact<{
|
|
1121
|
+
id: Scalars['ID']['input'];
|
|
1122
|
+
}>;
|
|
1123
|
+
export type ListTicketsByViewQuery = {
|
|
1124
|
+
listTicketsByView: Array<TicketFragment>;
|
|
1125
|
+
};
|
|
1126
|
+
export type CreateViewMutationVariables = Exact<{
|
|
1127
|
+
input: CreateViewInput;
|
|
1128
|
+
}>;
|
|
1129
|
+
export type CreateViewMutation = {
|
|
1130
|
+
createView: ViewFragment;
|
|
1131
|
+
};
|
|
1132
|
+
export type CloneViewMutationVariables = Exact<{
|
|
1133
|
+
input: CloneViewInput;
|
|
1134
|
+
}>;
|
|
1135
|
+
export type CloneViewMutation = {
|
|
1136
|
+
cloneView: ViewFragment;
|
|
1137
|
+
};
|
|
1138
|
+
export type UpdateViewMutationVariables = Exact<{
|
|
1139
|
+
input: UpdateViewInput;
|
|
1140
|
+
}>;
|
|
1141
|
+
export type UpdateViewMutation = {
|
|
1142
|
+
updateView: ViewFragment;
|
|
1143
|
+
};
|
|
1144
|
+
export type DeleteViewMutationVariables = Exact<{
|
|
1145
|
+
input: DeleteViewInput;
|
|
1146
|
+
}>;
|
|
1147
|
+
export type DeleteViewMutation = {
|
|
1148
|
+
deleteView: ViewFragment;
|
|
1149
|
+
};
|
|
959
1150
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1151
|
+
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
960
1152
|
export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
961
1153
|
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n ";
|
|
962
1154
|
export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n ";
|
|
@@ -967,6 +1159,7 @@ export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSe
|
|
|
967
1159
|
export declare const DrozChatUserFragmentDoc = "\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
968
1160
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n ";
|
|
969
1161
|
export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1162
|
+
export declare const ViewFragmentDoc = "\n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
970
1163
|
export declare const GenerateAnalyticsTokenDocument = "\n mutation generateAnalyticsToken {\n generateAnalyticsToken {\n token\n }\n}\n ";
|
|
971
1164
|
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 createdAt\n updatedAt\n}\n ";
|
|
972
1165
|
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 createdAt\n updatedAt\n}\n ";
|
|
@@ -977,6 +1170,10 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
|
|
|
977
1170
|
export declare const EnableDrozChatChannelDocument = "\n mutation enableDrozChatChannel($input: EnableDrozChatChannelInput!) {\n enableDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
978
1171
|
export declare const AddDrozChatChannelAgentDocument = "\n mutation addDrozChatChannelAgent($input: AddDrozChatChannelAgentInput!) {\n addDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
979
1172
|
export declare const RemoveDrozChatChannelAgentDocument = "\n mutation removeDrozChatChannelAgent($input: RemoveDrozChatChannelAgentInput!) {\n removeDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
1173
|
+
export declare const ListNotesDocument = "\n query listNotes($customerId: String!, $next: Base64) {\n listNotes(customerId: $customerId, next: $next) {\n nodes {\n ...customerNote\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1174
|
+
export declare const CreateNoteDocument = "\n mutation createNote($input: CreateCustomerNoteInput!) {\n createNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1175
|
+
export declare const UpdateNoteDocument = "\n mutation updateNote($input: UpdateCustomerNoteInput!) {\n updateNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
1176
|
+
export declare const DeleteNoteDocument = "\n mutation deleteNote($input: DeleteCustomerNoteInput!) {\n deleteNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
980
1177
|
export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
981
1178
|
export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTicketTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
982
1179
|
export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTicketTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
@@ -1001,6 +1198,14 @@ export declare const TransferTicketToChannelDocument = "\n mutation transferT
|
|
|
1001
1198
|
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
1002
1199
|
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
1003
1200
|
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1201
|
+
export declare const GetViewDocument = "\n query getView($id: ID!) {\n getView(id: $id) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1202
|
+
export declare const ListViewsDocument = "\n query listViews {\n listViews {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1203
|
+
export declare const ListViewsByChannelDocument = "\n query listViewsByChannel($channelId: ID!) {\n listViewsByChannel(channelId: $channelId) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1204
|
+
export declare const ListTicketsByViewDocument = "\n query listTicketsByView($id: ID!) {\n listTicketsByView(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
1205
|
+
export declare const CreateViewDocument = "\n mutation createView($input: CreateViewInput!) {\n createView(input: $input) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1206
|
+
export declare const CloneViewDocument = "\n mutation cloneView($input: CloneViewInput!) {\n cloneView(input: $input) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1207
|
+
export declare const UpdateViewDocument = "\n mutation updateView($input: UpdateViewInput!) {\n updateView(input: $input) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1208
|
+
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 channelId\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1004
1209
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
1005
1210
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1006
1211
|
generateAnalyticsToken(variables?: GenerateAnalyticsTokenMutationVariables, options?: C): Promise<GenerateAnalyticsTokenMutation>;
|
|
@@ -1013,6 +1218,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1013
1218
|
enableDrozChatChannel(variables: EnableDrozChatChannelMutationVariables, options?: C): Promise<EnableDrozChatChannelMutation>;
|
|
1014
1219
|
addDrozChatChannelAgent(variables: AddDrozChatChannelAgentMutationVariables, options?: C): Promise<AddDrozChatChannelAgentMutation>;
|
|
1015
1220
|
removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
|
|
1221
|
+
listNotes(variables: ListNotesQueryVariables, options?: C): Promise<ListNotesQuery>;
|
|
1222
|
+
createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
|
|
1223
|
+
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
1224
|
+
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
1016
1225
|
listTags(variables?: ListTagsQueryVariables, options?: C): Promise<ListTagsQuery>;
|
|
1017
1226
|
createTags(variables: CreateTagsMutationVariables, options?: C): Promise<CreateTagsMutation>;
|
|
1018
1227
|
deleteTags(variables: DeleteTagsMutationVariables, options?: C): Promise<DeleteTagsMutation>;
|
|
@@ -1037,6 +1246,14 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1037
1246
|
onTicketInProgressMine(variables?: OnTicketInProgressMineSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketInProgressMineSubscription>;
|
|
1038
1247
|
onTicketByState(variables: OnTicketByStateSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketByStateSubscription>;
|
|
1039
1248
|
onTicketMessage(variables: OnTicketMessageSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketMessageSubscription>;
|
|
1249
|
+
getView(variables: GetViewQueryVariables, options?: C): Promise<GetViewQuery>;
|
|
1250
|
+
listViews(variables?: ListViewsQueryVariables, options?: C): Promise<ListViewsQuery>;
|
|
1251
|
+
listViewsByChannel(variables: ListViewsByChannelQueryVariables, options?: C): Promise<ListViewsByChannelQuery>;
|
|
1252
|
+
listTicketsByView(variables: ListTicketsByViewQueryVariables, options?: C): Promise<ListTicketsByViewQuery>;
|
|
1253
|
+
createView(variables: CreateViewMutationVariables, options?: C): Promise<CreateViewMutation>;
|
|
1254
|
+
cloneView(variables: CloneViewMutationVariables, options?: C): Promise<CloneViewMutation>;
|
|
1255
|
+
updateView(variables: UpdateViewMutationVariables, options?: C): Promise<UpdateViewMutation>;
|
|
1256
|
+
deleteView(variables: DeleteViewMutationVariables, options?: C): Promise<DeleteViewMutation>;
|
|
1040
1257
|
};
|
|
1041
1258
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1042
1259
|
export declare const serviceName = "@droz/drozchat";
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = void 0;
|
|
4
|
+
exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.TagFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsByChannelDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -73,6 +73,7 @@ var Typenames;
|
|
|
73
73
|
(function (Typenames) {
|
|
74
74
|
Typenames["Any"] = "Any";
|
|
75
75
|
Typenames["Channels"] = "Channels";
|
|
76
|
+
Typenames["CustomerNotes"] = "CustomerNotes";
|
|
76
77
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
77
78
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
78
79
|
Typenames["Protocols"] = "Protocols";
|
|
@@ -80,6 +81,7 @@ var Typenames;
|
|
|
80
81
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
81
82
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
82
83
|
Typenames["Tickets"] = "Tickets";
|
|
84
|
+
Typenames["Views"] = "Views";
|
|
83
85
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
84
86
|
exports.DrozChatAgentFragmentDoc = `
|
|
85
87
|
fragment drozChatAgent on DrozChatAgent {
|
|
@@ -87,6 +89,17 @@ exports.DrozChatAgentFragmentDoc = `
|
|
|
87
89
|
name
|
|
88
90
|
}
|
|
89
91
|
`;
|
|
92
|
+
exports.CustomerNoteFragmentDoc = `
|
|
93
|
+
fragment customerNote on CustomerNote {
|
|
94
|
+
id
|
|
95
|
+
note
|
|
96
|
+
createdBy {
|
|
97
|
+
...drozChatAgent
|
|
98
|
+
}
|
|
99
|
+
createdAt
|
|
100
|
+
updatedAt
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
90
103
|
exports.TagFragmentDoc = `
|
|
91
104
|
fragment tag on TicketTag {
|
|
92
105
|
name
|
|
@@ -272,6 +285,16 @@ exports.FacetsFragmentDoc = `
|
|
|
272
285
|
}
|
|
273
286
|
}
|
|
274
287
|
`;
|
|
288
|
+
exports.ViewFragmentDoc = `
|
|
289
|
+
fragment view on View {
|
|
290
|
+
id
|
|
291
|
+
name
|
|
292
|
+
channelId
|
|
293
|
+
filters
|
|
294
|
+
createdAt
|
|
295
|
+
updatedAt
|
|
296
|
+
}
|
|
297
|
+
`;
|
|
275
298
|
exports.GenerateAnalyticsTokenDocument = `
|
|
276
299
|
mutation generateAnalyticsToken {
|
|
277
300
|
generateAnalyticsToken {
|
|
@@ -342,6 +365,44 @@ exports.RemoveDrozChatChannelAgentDocument = `
|
|
|
342
365
|
}
|
|
343
366
|
}
|
|
344
367
|
${exports.DrozChatChannelFragmentDoc}`;
|
|
368
|
+
exports.ListNotesDocument = `
|
|
369
|
+
query listNotes($customerId: String!, $next: Base64) {
|
|
370
|
+
listNotes(customerId: $customerId, next: $next) {
|
|
371
|
+
nodes {
|
|
372
|
+
...customerNote
|
|
373
|
+
}
|
|
374
|
+
pageInfo {
|
|
375
|
+
hasNext
|
|
376
|
+
next
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
${exports.CustomerNoteFragmentDoc}
|
|
381
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
382
|
+
exports.CreateNoteDocument = `
|
|
383
|
+
mutation createNote($input: CreateCustomerNoteInput!) {
|
|
384
|
+
createNote(input: $input) {
|
|
385
|
+
...customerNote
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
${exports.CustomerNoteFragmentDoc}
|
|
389
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
390
|
+
exports.UpdateNoteDocument = `
|
|
391
|
+
mutation updateNote($input: UpdateCustomerNoteInput!) {
|
|
392
|
+
updateNote(input: $input) {
|
|
393
|
+
...customerNote
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
${exports.CustomerNoteFragmentDoc}
|
|
397
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
398
|
+
exports.DeleteNoteDocument = `
|
|
399
|
+
mutation deleteNote($input: DeleteCustomerNoteInput!) {
|
|
400
|
+
deleteNote(input: $input) {
|
|
401
|
+
...customerNote
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
${exports.CustomerNoteFragmentDoc}
|
|
405
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
345
406
|
exports.ListTagsDocument = `
|
|
346
407
|
query listTags($next: Base64) {
|
|
347
408
|
listTags(next: $next) {
|
|
@@ -664,6 +725,66 @@ exports.OnTicketMessageDocument = `
|
|
|
664
725
|
}
|
|
665
726
|
${exports.TicketMessageFragmentDoc}
|
|
666
727
|
${exports.DrozChatUserFragmentDoc}`;
|
|
728
|
+
exports.GetViewDocument = `
|
|
729
|
+
query getView($id: ID!) {
|
|
730
|
+
getView(id: $id) {
|
|
731
|
+
...view
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
${exports.ViewFragmentDoc}`;
|
|
735
|
+
exports.ListViewsDocument = `
|
|
736
|
+
query listViews {
|
|
737
|
+
listViews {
|
|
738
|
+
...view
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
${exports.ViewFragmentDoc}`;
|
|
742
|
+
exports.ListViewsByChannelDocument = `
|
|
743
|
+
query listViewsByChannel($channelId: ID!) {
|
|
744
|
+
listViewsByChannel(channelId: $channelId) {
|
|
745
|
+
...view
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
${exports.ViewFragmentDoc}`;
|
|
749
|
+
exports.ListTicketsByViewDocument = `
|
|
750
|
+
query listTicketsByView($id: ID!) {
|
|
751
|
+
listTicketsByView(id: $id) {
|
|
752
|
+
...ticket
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
${exports.TicketFragmentDoc}
|
|
756
|
+
${exports.DrozChatAgentFragmentDoc}
|
|
757
|
+
${exports.CustomerFragmentDoc}
|
|
758
|
+
${exports.TicketTriggerAppFragmentDoc}
|
|
759
|
+
${exports.DrozChatChannelFragmentDoc}`;
|
|
760
|
+
exports.CreateViewDocument = `
|
|
761
|
+
mutation createView($input: CreateViewInput!) {
|
|
762
|
+
createView(input: $input) {
|
|
763
|
+
...view
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
${exports.ViewFragmentDoc}`;
|
|
767
|
+
exports.CloneViewDocument = `
|
|
768
|
+
mutation cloneView($input: CloneViewInput!) {
|
|
769
|
+
cloneView(input: $input) {
|
|
770
|
+
...view
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
${exports.ViewFragmentDoc}`;
|
|
774
|
+
exports.UpdateViewDocument = `
|
|
775
|
+
mutation updateView($input: UpdateViewInput!) {
|
|
776
|
+
updateView(input: $input) {
|
|
777
|
+
...view
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
${exports.ViewFragmentDoc}`;
|
|
781
|
+
exports.DeleteViewDocument = `
|
|
782
|
+
mutation deleteView($input: DeleteViewInput!) {
|
|
783
|
+
deleteView(input: $input) {
|
|
784
|
+
...view
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
${exports.ViewFragmentDoc}`;
|
|
667
788
|
function getSdk(requester) {
|
|
668
789
|
return {
|
|
669
790
|
generateAnalyticsToken(variables, options) {
|
|
@@ -696,6 +817,18 @@ function getSdk(requester) {
|
|
|
696
817
|
removeDrozChatChannelAgent(variables, options) {
|
|
697
818
|
return requester(exports.RemoveDrozChatChannelAgentDocument, variables, options);
|
|
698
819
|
},
|
|
820
|
+
listNotes(variables, options) {
|
|
821
|
+
return requester(exports.ListNotesDocument, variables, options);
|
|
822
|
+
},
|
|
823
|
+
createNote(variables, options) {
|
|
824
|
+
return requester(exports.CreateNoteDocument, variables, options);
|
|
825
|
+
},
|
|
826
|
+
updateNote(variables, options) {
|
|
827
|
+
return requester(exports.UpdateNoteDocument, variables, options);
|
|
828
|
+
},
|
|
829
|
+
deleteNote(variables, options) {
|
|
830
|
+
return requester(exports.DeleteNoteDocument, variables, options);
|
|
831
|
+
},
|
|
699
832
|
listTags(variables, options) {
|
|
700
833
|
return requester(exports.ListTagsDocument, variables, options);
|
|
701
834
|
},
|
|
@@ -767,6 +900,30 @@ function getSdk(requester) {
|
|
|
767
900
|
},
|
|
768
901
|
onTicketMessage(variables, options) {
|
|
769
902
|
return requester(exports.OnTicketMessageDocument, variables, options);
|
|
903
|
+
},
|
|
904
|
+
getView(variables, options) {
|
|
905
|
+
return requester(exports.GetViewDocument, variables, options);
|
|
906
|
+
},
|
|
907
|
+
listViews(variables, options) {
|
|
908
|
+
return requester(exports.ListViewsDocument, variables, options);
|
|
909
|
+
},
|
|
910
|
+
listViewsByChannel(variables, options) {
|
|
911
|
+
return requester(exports.ListViewsByChannelDocument, variables, options);
|
|
912
|
+
},
|
|
913
|
+
listTicketsByView(variables, options) {
|
|
914
|
+
return requester(exports.ListTicketsByViewDocument, variables, options);
|
|
915
|
+
},
|
|
916
|
+
createView(variables, options) {
|
|
917
|
+
return requester(exports.CreateViewDocument, variables, options);
|
|
918
|
+
},
|
|
919
|
+
cloneView(variables, options) {
|
|
920
|
+
return requester(exports.CloneViewDocument, variables, options);
|
|
921
|
+
},
|
|
922
|
+
updateView(variables, options) {
|
|
923
|
+
return requester(exports.UpdateViewDocument, variables, options);
|
|
924
|
+
},
|
|
925
|
+
deleteView(variables, options) {
|
|
926
|
+
return requester(exports.DeleteViewDocument, variables, options);
|
|
770
927
|
}
|
|
771
928
|
};
|
|
772
929
|
}
|