@droz-js/sdk 0.5.2 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.5.2",
4
+ "version": "0.5.4",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -9,6 +9,9 @@ export declare const DrozChatWs: new () => {
9
9
  listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{
10
10
  [key: string]: never;
11
11
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>;
12
+ listDrozChatAgentChannels(variables: import("./sdks/drozchat").Exact<{
13
+ agentId: string;
14
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentChannelsQuery>;
12
15
  createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
13
16
  input: import("./sdks/drozchat").CreateDrozChatChannelInput;
14
17
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>;
@@ -32,15 +35,9 @@ export declare const DrozChatWs: new () => {
32
35
  assigneeId?: string;
33
36
  next?: object;
34
37
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsQuery>;
35
- listTicketsInQueue(variables?: import("./sdks/drozchat").Exact<{
36
- next?: object;
37
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsInQueueQuery>;
38
38
  listTicketsInProgressMine(variables?: import("./sdks/drozchat").Exact<{
39
39
  next?: object;
40
40
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsInProgressMineQuery>;
41
- listTicketsClosed(variables?: import("./sdks/drozchat").Exact<{
42
- next?: object;
43
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsClosedQuery>;
44
41
  listTicketMessages(variables: import("./sdks/drozchat").Exact<{
45
42
  ticketId: string;
46
43
  channelId: string;
@@ -70,15 +67,15 @@ export declare const DrozChatWs: new () => {
70
67
  closeTicket(variables: import("./sdks/drozchat").Exact<{
71
68
  input: import("./sdks/drozchat").CloseTicketInput;
72
69
  }>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
73
- onTicketInQueue(variables?: import("./sdks/drozchat").Exact<{
74
- [key: string]: never;
75
- }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInQueueSubscription>;
70
+ transferTicketToChannel(variables: import("./sdks/drozchat").Exact<{
71
+ input: import("./sdks/drozchat").TransferTicketToChannelInput;
72
+ }>, options?: unknown): Promise<import("./sdks/drozchat").TransferTicketToChannelMutation>;
76
73
  onTicketInProgressMine(variables?: import("./sdks/drozchat").Exact<{
77
74
  [key: string]: never;
78
75
  }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInProgressMineSubscription>;
79
- onTicketClosed(variables?: import("./sdks/drozchat").Exact<{
80
- [key: string]: never;
81
- }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketClosedSubscription>;
76
+ onTicketByState(variables: import("./sdks/drozchat").Exact<{
77
+ state: import("./sdks/drozchat").TicketState;
78
+ }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketByStateSubscription>;
82
79
  onTicketMessage(variables: import("./sdks/drozchat").Exact<{
83
80
  ticketId: string;
84
81
  }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
package/src/drozchat.d.ts CHANGED
@@ -11,6 +11,9 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
11
11
  listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{
12
12
  [key: string]: never;
13
13
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>;
14
+ listDrozChatAgentChannels(variables: import("./sdks/drozchat").Exact<{
15
+ agentId: string;
16
+ }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentChannelsQuery>;
14
17
  createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
15
18
  input: import("./sdks/drozchat").CreateDrozChatChannelInput;
16
19
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>;
@@ -34,15 +37,9 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
34
37
  assigneeId?: string;
35
38
  next?: object;
36
39
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsQuery>;
37
- listTicketsInQueue(variables?: import("./sdks/drozchat").Exact<{
38
- next?: object;
39
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsInQueueQuery>;
40
40
  listTicketsInProgressMine(variables?: import("./sdks/drozchat").Exact<{
41
41
  next?: object;
42
42
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsInProgressMineQuery>;
43
- listTicketsClosed(variables?: import("./sdks/drozchat").Exact<{
44
- next?: object;
45
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketsClosedQuery>;
46
43
  listTicketMessages(variables: import("./sdks/drozchat").Exact<{
47
44
  ticketId: string;
48
45
  channelId: string;
@@ -72,15 +69,15 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
72
69
  closeTicket(variables: import("./sdks/drozchat").Exact<{
73
70
  input: import("./sdks/drozchat").CloseTicketInput;
74
71
  }>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
75
- onTicketInQueue(variables?: import("./sdks/drozchat").Exact<{
76
- [key: string]: never;
77
- }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInQueueSubscription>;
72
+ transferTicketToChannel(variables: import("./sdks/drozchat").Exact<{
73
+ input: import("./sdks/drozchat").TransferTicketToChannelInput;
74
+ }>, options?: unknown): Promise<import("./sdks/drozchat").TransferTicketToChannelMutation>;
78
75
  onTicketInProgressMine(variables?: import("./sdks/drozchat").Exact<{
79
76
  [key: string]: never;
80
77
  }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInProgressMineSubscription>;
81
- onTicketClosed(variables?: import("./sdks/drozchat").Exact<{
82
- [key: string]: never;
83
- }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketClosedSubscription>;
78
+ onTicketByState(variables: import("./sdks/drozchat").Exact<{
79
+ state: import("./sdks/drozchat").TicketState;
80
+ }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketByStateSubscription>;
84
81
  onTicketMessage(variables: import("./sdks/drozchat").Exact<{
85
82
  ticketId: string;
86
83
  }>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
@@ -162,6 +162,7 @@ export type Mutation = {
162
162
  markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
163
163
  removeDrozChatChannel?: Maybe<DrozChatChannel>;
164
164
  removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
165
+ transferTicketToChannel: Ticket;
165
166
  unassignTicket: Ticket;
166
167
  updateDrozChatChannel?: Maybe<DrozChatChannel>;
167
168
  version?: Maybe<Scalars['String']['output']>;
@@ -199,6 +200,9 @@ export type MutationRemoveDrozChatChannelArgs = {
199
200
  export type MutationRemoveDrozChatChannelAgentArgs = {
200
201
  input: RemoveDrozChatChannelAgentInput;
201
202
  };
203
+ export type MutationTransferTicketToChannelArgs = {
204
+ input: TransferTicketToChannelInput;
205
+ };
202
206
  export type MutationUnassignTicketArgs = {
203
207
  input: UnassignTicketInput;
204
208
  };
@@ -215,13 +219,11 @@ export type Query = {
215
219
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
216
220
  getTicket?: Maybe<Ticket>;
217
221
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
222
+ listDrozChatAgentChannels: Array<DrozChatChannel>;
218
223
  listDrozChatChannels: Array<DrozChatChannel>;
219
224
  listTicketMessages: TicketMessagesConnection;
220
225
  listTickets: TicketsConnection;
221
- listTicketsClosed: TicketsConnection;
222
- listTicketsInProgress: TicketsConnection;
223
226
  listTicketsInProgressMine: TicketsConnection;
224
- listTicketsInQueue: TicketsConnection;
225
227
  version?: Maybe<Scalars['String']['output']>;
226
228
  };
227
229
  export type QueryGetDrozChatChannelArgs = {
@@ -230,6 +232,9 @@ export type QueryGetDrozChatChannelArgs = {
230
232
  export type QueryGetTicketArgs = {
231
233
  id: Scalars['ID']['input'];
232
234
  };
235
+ export type QueryListDrozChatAgentChannelsArgs = {
236
+ agentId: Scalars['ID']['input'];
237
+ };
233
238
  export type QueryListTicketMessagesArgs = {
234
239
  channelId?: InputMaybe<Scalars['ID']['input']>;
235
240
  next?: InputMaybe<Scalars['Base64']['input']>;
@@ -240,18 +245,9 @@ export type QueryListTicketsArgs = {
240
245
  next?: InputMaybe<Scalars['Base64']['input']>;
241
246
  state: TicketState;
242
247
  };
243
- export type QueryListTicketsClosedArgs = {
244
- next?: InputMaybe<Scalars['Base64']['input']>;
245
- };
246
- export type QueryListTicketsInProgressArgs = {
247
- next?: InputMaybe<Scalars['Base64']['input']>;
248
- };
249
248
  export type QueryListTicketsInProgressMineArgs = {
250
249
  next?: InputMaybe<Scalars['Base64']['input']>;
251
250
  };
252
- export type QueryListTicketsInQueueArgs = {
253
- next?: InputMaybe<Scalars['Base64']['input']>;
254
- };
255
251
  export type RemoveDrozChatChannelAgentInput = {
256
252
  agentId: Scalars['ID']['input'];
257
253
  channelId: Scalars['ID']['input'];
@@ -260,12 +256,14 @@ export type RemoveDrozChatChannelInput = {
260
256
  id: Scalars['ID']['input'];
261
257
  };
262
258
  export type Subscription = {
263
- onTicketClosed: TicketSubscription;
259
+ onTicketByState: TicketSubscription;
264
260
  onTicketInProgressMine: TicketSubscription;
265
- onTicketInQueue: TicketSubscription;
266
261
  onTicketMessage: TicketMessageSubscription;
267
262
  version?: Maybe<Scalars['String']['output']>;
268
263
  };
264
+ export type SubscriptionOnTicketByStateArgs = {
265
+ state: TicketState;
266
+ };
269
267
  export type SubscriptionOnTicketMessageArgs = {
270
268
  ticketId: Scalars['ID']['input'];
271
269
  };
@@ -380,6 +378,10 @@ export type TicketsConnection = {
380
378
  nodes: Array<Ticket>;
381
379
  pageInfo: PageInfo;
382
380
  };
381
+ export type TransferTicketToChannelInput = {
382
+ channelId: Scalars['ID']['input'];
383
+ ticketId: Scalars['ID']['input'];
384
+ };
383
385
  export declare enum Typenames {
384
386
  Any = "Any",
385
387
  Channels = "Channels",
@@ -409,6 +411,12 @@ export type ListDrozChatChannelsQueryVariables = Exact<{
409
411
  export type ListDrozChatChannelsQuery = {
410
412
  listDrozChatChannels: Array<DrozChatChannelFragment>;
411
413
  };
414
+ export type ListDrozChatAgentChannelsQueryVariables = Exact<{
415
+ agentId: Scalars['ID']['input'];
416
+ }>;
417
+ export type ListDrozChatAgentChannelsQuery = {
418
+ listDrozChatAgentChannels: Array<DrozChatChannelFragment>;
419
+ };
412
420
  export type CreateDrozChatChannelMutationVariables = Exact<{
413
421
  input: CreateDrozChatChannelInput;
414
422
  }>;
@@ -471,15 +479,6 @@ export type ListTicketsQuery = {
471
479
  pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
472
480
  };
473
481
  };
474
- export type ListTicketsInQueueQueryVariables = Exact<{
475
- next?: InputMaybe<Scalars['Base64']['input']>;
476
- }>;
477
- export type ListTicketsInQueueQuery = {
478
- listTicketsInQueue: {
479
- nodes: Array<TicketFragment>;
480
- pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
481
- };
482
- };
483
482
  export type ListTicketsInProgressMineQueryVariables = Exact<{
484
483
  next?: InputMaybe<Scalars['Base64']['input']>;
485
484
  }>;
@@ -489,15 +488,6 @@ export type ListTicketsInProgressMineQuery = {
489
488
  pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
490
489
  };
491
490
  };
492
- export type ListTicketsClosedQueryVariables = Exact<{
493
- next?: InputMaybe<Scalars['Base64']['input']>;
494
- }>;
495
- export type ListTicketsClosedQuery = {
496
- listTicketsClosed: {
497
- nodes: Array<TicketFragment>;
498
- pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
499
- };
500
- };
501
491
  export type ListTicketMessagesQueryVariables = Exact<{
502
492
  ticketId: Scalars['ID']['input'];
503
493
  channelId: Scalars['ID']['input'];
@@ -555,13 +545,11 @@ export type CloseTicketMutationVariables = Exact<{
555
545
  export type CloseTicketMutation = {
556
546
  closeTicket: TicketWithSessionFragment;
557
547
  };
558
- export type OnTicketInQueueSubscriptionVariables = Exact<{
559
- [key: string]: never;
548
+ export type TransferTicketToChannelMutationVariables = Exact<{
549
+ input: TransferTicketToChannelInput;
560
550
  }>;
561
- export type OnTicketInQueueSubscription = {
562
- onTicketInQueue: (Pick<TicketSubscription, 'action'> & {
563
- ticket: TicketWithSessionFragment;
564
- });
551
+ export type TransferTicketToChannelMutation = {
552
+ transferTicketToChannel: TicketWithSessionFragment;
565
553
  };
566
554
  export type OnTicketInProgressMineSubscriptionVariables = Exact<{
567
555
  [key: string]: never;
@@ -571,11 +559,11 @@ export type OnTicketInProgressMineSubscription = {
571
559
  ticket: TicketWithSessionFragment;
572
560
  });
573
561
  };
574
- export type OnTicketClosedSubscriptionVariables = Exact<{
575
- [key: string]: never;
562
+ export type OnTicketByStateSubscriptionVariables = Exact<{
563
+ state: TicketState;
576
564
  }>;
577
- export type OnTicketClosedSubscription = {
578
- onTicketClosed: (Pick<TicketSubscription, 'action'> & {
565
+ export type OnTicketByStateSubscription = {
566
+ onTicketByState: (Pick<TicketSubscription, 'action'> & {
579
567
  ticket: TicketWithSessionFragment;
580
568
  });
581
569
  };
@@ -597,6 +585,7 @@ export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSe
597
585
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
598
586
  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 agentIds\n createdAt\n updatedAt\n}\n ";
599
587
  export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
588
+ export declare const ListDrozChatAgentChannelsDocument = "\n query listDrozChatAgentChannels($agentId: ID!) {\n listDrozChatAgentChannels(agentId: $agentId) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
600
589
  export declare const CreateDrozChatChannelDocument = "\n mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {\n createDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
601
590
  export declare const UpdateDrozChatChannelDocument = "\n mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {\n updateDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
602
591
  export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
@@ -604,9 +593,7 @@ export declare const AddDrozChatChannelAgentDocument = "\n mutation addDrozCh
604
593
  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 agentIds\n createdAt\n updatedAt\n}\n ";
605
594
  export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
606
595
  export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 ";
607
- export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 ";
608
596
  export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 ";
609
- export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 ";
610
597
  export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
611
598
  export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
612
599
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
@@ -616,14 +603,15 @@ export declare const AssignTicketDocument = "\n mutation assignTicket($input:
616
603
  export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
617
604
  export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
618
605
  export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
619
- export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\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 fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
606
+ export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
620
607
  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 fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
621
- export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\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 fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
608
+ 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 fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
622
609
  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 channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
623
610
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
624
611
  export declare function getSdk<C>(requester: Requester<C>): {
625
612
  getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
626
613
  listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
614
+ listDrozChatAgentChannels(variables: ListDrozChatAgentChannelsQueryVariables, options?: C): Promise<ListDrozChatAgentChannelsQuery>;
627
615
  createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>;
628
616
  updateDrozChatChannel(variables: UpdateDrozChatChannelMutationVariables, options?: C): Promise<UpdateDrozChatChannelMutation>;
629
617
  removeDrozChatChannel(variables: RemoveDrozChatChannelMutationVariables, options?: C): Promise<RemoveDrozChatChannelMutation>;
@@ -631,9 +619,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
631
619
  removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
632
620
  getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
633
621
  listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
634
- listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
635
622
  listTicketsInProgressMine(variables?: ListTicketsInProgressMineQueryVariables, options?: C): Promise<ListTicketsInProgressMineQuery>;
636
- listTicketsClosed(variables?: ListTicketsClosedQueryVariables, options?: C): Promise<ListTicketsClosedQuery>;
637
623
  listTicketMessages(variables: ListTicketMessagesQueryVariables, options?: C): Promise<ListTicketMessagesQuery>;
638
624
  createTicket(variables: CreateTicketMutationVariables, options?: C): Promise<CreateTicketMutation>;
639
625
  markTicketMessagesAsRead(variables: MarkTicketMessagesAsReadMutationVariables, options?: C): Promise<MarkTicketMessagesAsReadMutation>;
@@ -643,9 +629,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
643
629
  assignTicketMyself(variables: AssignTicketMyselfMutationVariables, options?: C): Promise<AssignTicketMyselfMutation>;
644
630
  unassignTicket(variables: UnassignTicketMutationVariables, options?: C): Promise<UnassignTicketMutation>;
645
631
  closeTicket(variables: CloseTicketMutationVariables, options?: C): Promise<CloseTicketMutation>;
646
- onTicketInQueue(variables?: OnTicketInQueueSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketInQueueSubscription>;
632
+ transferTicketToChannel(variables: TransferTicketToChannelMutationVariables, options?: C): Promise<TransferTicketToChannelMutation>;
647
633
  onTicketInProgressMine(variables?: OnTicketInProgressMineSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketInProgressMineSubscription>;
648
- onTicketClosed(variables?: OnTicketClosedSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketClosedSubscription>;
634
+ onTicketByState(variables: OnTicketByStateSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketByStateSubscription>;
649
635
  onTicketMessage(variables: OnTicketMessageSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketMessageSubscription>;
650
636
  };
651
637
  export type Sdk = ReturnType<typeof getSdk>;
@@ -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.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -172,6 +172,13 @@ exports.ListDrozChatChannelsDocument = `
172
172
  }
173
173
  }
174
174
  ${exports.DrozChatChannelFragmentDoc}`;
175
+ exports.ListDrozChatAgentChannelsDocument = `
176
+ query listDrozChatAgentChannels($agentId: ID!) {
177
+ listDrozChatAgentChannels(agentId: $agentId) {
178
+ ...drozChatChannel
179
+ }
180
+ }
181
+ ${exports.DrozChatChannelFragmentDoc}`;
175
182
  exports.CreateDrozChatChannelDocument = `
176
183
  mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {
177
184
  createDrozChatChannel(input: $input) {
@@ -227,19 +234,6 @@ exports.ListTicketsDocument = `
227
234
  }
228
235
  }
229
236
  ${exports.TicketFragmentDoc}`;
230
- exports.ListTicketsInQueueDocument = `
231
- query listTicketsInQueue($next: Base64) {
232
- listTicketsInQueue(next: $next) {
233
- nodes {
234
- ...ticket
235
- }
236
- pageInfo {
237
- hasNext
238
- next
239
- }
240
- }
241
- }
242
- ${exports.TicketFragmentDoc}`;
243
237
  exports.ListTicketsInProgressMineDocument = `
244
238
  query listTicketsInProgressMine($next: Base64) {
245
239
  listTicketsInProgressMine(next: $next) {
@@ -253,19 +247,6 @@ exports.ListTicketsInProgressMineDocument = `
253
247
  }
254
248
  }
255
249
  ${exports.TicketFragmentDoc}`;
256
- exports.ListTicketsClosedDocument = `
257
- query listTicketsClosed($next: Base64) {
258
- listTicketsClosed(next: $next) {
259
- nodes {
260
- ...ticket
261
- }
262
- pageInfo {
263
- hasNext
264
- next
265
- }
266
- }
267
- }
268
- ${exports.TicketFragmentDoc}`;
269
250
  exports.ListTicketMessagesDocument = `
270
251
  query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {
271
252
  listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {
@@ -333,13 +314,10 @@ exports.CloseTicketDocument = `
333
314
  }
334
315
  }
335
316
  ${exports.TicketWithSessionFragmentDoc}`;
336
- exports.OnTicketInQueueDocument = `
337
- subscription onTicketInQueue {
338
- onTicketInQueue {
339
- ticket {
340
- ...ticketWithSession
341
- }
342
- action
317
+ exports.TransferTicketToChannelDocument = `
318
+ mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {
319
+ transferTicketToChannel(input: $input) {
320
+ ...ticketWithSession
343
321
  }
344
322
  }
345
323
  ${exports.TicketWithSessionFragmentDoc}`;
@@ -353,9 +331,9 @@ exports.OnTicketInProgressMineDocument = `
353
331
  }
354
332
  }
355
333
  ${exports.TicketWithSessionFragmentDoc}`;
356
- exports.OnTicketClosedDocument = `
357
- subscription onTicketClosed {
358
- onTicketClosed {
334
+ exports.OnTicketByStateDocument = `
335
+ subscription onTicketByState($state: TicketState!) {
336
+ onTicketByState(state: $state) {
359
337
  ticket {
360
338
  ...ticketWithSession
361
339
  }
@@ -381,6 +359,9 @@ function getSdk(requester) {
381
359
  listDrozChatChannels(variables, options) {
382
360
  return requester(exports.ListDrozChatChannelsDocument, variables, options);
383
361
  },
362
+ listDrozChatAgentChannels(variables, options) {
363
+ return requester(exports.ListDrozChatAgentChannelsDocument, variables, options);
364
+ },
384
365
  createDrozChatChannel(variables, options) {
385
366
  return requester(exports.CreateDrozChatChannelDocument, variables, options);
386
367
  },
@@ -402,15 +383,9 @@ function getSdk(requester) {
402
383
  listTickets(variables, options) {
403
384
  return requester(exports.ListTicketsDocument, variables, options);
404
385
  },
405
- listTicketsInQueue(variables, options) {
406
- return requester(exports.ListTicketsInQueueDocument, variables, options);
407
- },
408
386
  listTicketsInProgressMine(variables, options) {
409
387
  return requester(exports.ListTicketsInProgressMineDocument, variables, options);
410
388
  },
411
- listTicketsClosed(variables, options) {
412
- return requester(exports.ListTicketsClosedDocument, variables, options);
413
- },
414
389
  listTicketMessages(variables, options) {
415
390
  return requester(exports.ListTicketMessagesDocument, variables, options);
416
391
  },
@@ -438,14 +413,14 @@ function getSdk(requester) {
438
413
  closeTicket(variables, options) {
439
414
  return requester(exports.CloseTicketDocument, variables, options);
440
415
  },
441
- onTicketInQueue(variables, options) {
442
- return requester(exports.OnTicketInQueueDocument, variables, options);
416
+ transferTicketToChannel(variables, options) {
417
+ return requester(exports.TransferTicketToChannelDocument, variables, options);
443
418
  },
444
419
  onTicketInProgressMine(variables, options) {
445
420
  return requester(exports.OnTicketInProgressMineDocument, variables, options);
446
421
  },
447
- onTicketClosed(variables, options) {
448
- return requester(exports.OnTicketClosedDocument, variables, options);
422
+ onTicketByState(variables, options) {
423
+ return requester(exports.OnTicketByStateDocument, variables, options);
449
424
  },
450
425
  onTicketMessage(variables, options) {
451
426
  return requester(exports.OnTicketMessageDocument, variables, options);