@droz-js/sdk 0.5.17 → 0.5.19

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.17",
4
+ "version": "0.5.19",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -56,6 +56,12 @@ export declare const DrozChatWs: new () => {
56
56
  channelId: string;
57
57
  next?: object;
58
58
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketMessagesQuery>;
59
+ searchTickets(variables?: import("./sdks/drozchat").Exact<{
60
+ q?: string;
61
+ filters?: import("./sdks/drozchat").TicketSearchFilterInput | import("./sdks/drozchat").TicketSearchFilterInput[];
62
+ sortBy?: string | string[];
63
+ page?: number;
64
+ }>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsQuery>;
59
65
  createTicket(variables: import("./sdks/drozchat").Exact<{
60
66
  input: import("./sdks/drozchat").CreateTicketInput;
61
67
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMutation>;
package/src/drozchat.d.ts CHANGED
@@ -59,6 +59,12 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
59
59
  channelId: string;
60
60
  next?: object;
61
61
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTicketMessagesQuery>;
62
+ searchTickets(variables?: import("./sdks/drozchat").Exact<{
63
+ q?: string;
64
+ filters?: import("./sdks/drozchat").TicketSearchFilterInput | import("./sdks/drozchat").TicketSearchFilterInput[];
65
+ sortBy?: string | string[];
66
+ page?: number;
67
+ }>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsQuery>;
62
68
  createTicket(variables: import("./sdks/drozchat").Exact<{
63
69
  input: import("./sdks/drozchat").CreateTicketInput;
64
70
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMutation>;
@@ -139,6 +139,15 @@ export type MutationRemoveCasasBahiaInstanceArgs = {
139
139
  export type MutationUpdateCasasBahiaInstanceArgs = {
140
140
  input: UpdateCasasBahiaInstanceInput;
141
141
  };
142
+ export type NumberFilterInput = {
143
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
144
+ eq?: InputMaybe<Scalars['Float']['input']>;
145
+ gt?: InputMaybe<Scalars['Float']['input']>;
146
+ gte?: InputMaybe<Scalars['Float']['input']>;
147
+ lt?: InputMaybe<Scalars['Float']['input']>;
148
+ lte?: InputMaybe<Scalars['Float']['input']>;
149
+ ne?: InputMaybe<Scalars['Float']['input']>;
150
+ };
142
151
  export type PageInfo = {
143
152
  hasNext: Scalars['Boolean']['output'];
144
153
  next?: Maybe<Scalars['Base64']['output']>;
@@ -160,6 +169,26 @@ export type QueryListAvailableSolutionsArgs = {
160
169
  export type RemoveCasasBahiaInstanceInput = {
161
170
  id: Scalars['ID']['input'];
162
171
  };
172
+ export type SearchResultsFacet = {
173
+ name: Scalars['String']['output'];
174
+ stats?: Maybe<SearchResultsFacetStats>;
175
+ values?: Maybe<Array<SearchResultsFacetValue>>;
176
+ };
177
+ export type SearchResultsFacetStats = {
178
+ max?: Maybe<Scalars['Float']['output']>;
179
+ min?: Maybe<Scalars['Float']['output']>;
180
+ };
181
+ export type SearchResultsFacetValue = {
182
+ count: Scalars['Float']['output'];
183
+ value: Scalars['String']['output'];
184
+ };
185
+ export type SearchResultsStats = {
186
+ found: Scalars['Float']['output'];
187
+ page: Scalars['Float']['output'];
188
+ perPage: Scalars['Float']['output'];
189
+ searchTime: Scalars['Float']['output'];
190
+ totalPages: Scalars['Float']['output'];
191
+ };
163
192
  export type SolutionField = {
164
193
  format?: Maybe<Scalars['String']['output']>;
165
194
  minLength?: Maybe<Scalars['Int']['output']>;
@@ -177,6 +206,11 @@ export type Solutions = {
177
206
  id: Scalars['Int']['output'];
178
207
  name: Scalars['String']['output'];
179
208
  };
209
+ export type StringFilterInput = {
210
+ eq?: InputMaybe<Scalars['String']['input']>;
211
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
212
+ ne?: InputMaybe<Scalars['String']['input']>;
213
+ };
180
214
  export declare enum Typenames {
181
215
  Any = "Any",
182
216
  CasasBahiaInstance = "CasasBahiaInstance",
@@ -136,6 +136,15 @@ export type MutationStartChatWidgetSessionArgs = {
136
136
  export type MutationUpdateChatWidgetArgs = {
137
137
  input: UpdateChatWidgetInput;
138
138
  };
139
+ export type NumberFilterInput = {
140
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
141
+ eq?: InputMaybe<Scalars['Float']['input']>;
142
+ gt?: InputMaybe<Scalars['Float']['input']>;
143
+ gte?: InputMaybe<Scalars['Float']['input']>;
144
+ lt?: InputMaybe<Scalars['Float']['input']>;
145
+ lte?: InputMaybe<Scalars['Float']['input']>;
146
+ ne?: InputMaybe<Scalars['Float']['input']>;
147
+ };
139
148
  export type PageInfo = {
140
149
  hasNext: Scalars['Boolean']['output'];
141
150
  next?: Maybe<Scalars['Base64']['output']>;
@@ -154,6 +163,26 @@ export type QueryGetChatWidgetArgs = {
154
163
  export type RemoveChatWidgetInput = {
155
164
  id: Scalars['ID']['input'];
156
165
  };
166
+ export type SearchResultsFacet = {
167
+ name: Scalars['String']['output'];
168
+ stats?: Maybe<SearchResultsFacetStats>;
169
+ values?: Maybe<Array<SearchResultsFacetValue>>;
170
+ };
171
+ export type SearchResultsFacetStats = {
172
+ max?: Maybe<Scalars['Float']['output']>;
173
+ min?: Maybe<Scalars['Float']['output']>;
174
+ };
175
+ export type SearchResultsFacetValue = {
176
+ count: Scalars['Float']['output'];
177
+ value: Scalars['String']['output'];
178
+ };
179
+ export type SearchResultsStats = {
180
+ found: Scalars['Float']['output'];
181
+ page: Scalars['Float']['output'];
182
+ perPage: Scalars['Float']['output'];
183
+ searchTime: Scalars['Float']['output'];
184
+ totalPages: Scalars['Float']['output'];
185
+ };
157
186
  export type SendMessageToChatWidgetInput = {
158
187
  content: Scalars['String']['input'];
159
188
  contentType: Scalars['String']['input'];
@@ -163,6 +192,11 @@ export type StartChatWidgetSessionInput = {
163
192
  chatId: Scalars['ID']['input'];
164
193
  userIdentifier: Scalars['ID']['input'];
165
194
  };
195
+ export type StringFilterInput = {
196
+ eq?: InputMaybe<Scalars['String']['input']>;
197
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
198
+ ne?: InputMaybe<Scalars['String']['input']>;
199
+ };
166
200
  export type Subscription = {
167
201
  onChatWidgetMessage: ChatWidgetMessage;
168
202
  version?: Maybe<Scalars['String']['output']>;
@@ -158,6 +158,15 @@ export type MutationRemoveDrozBotInstanceArgs = {
158
158
  export type MutationUpdateDrozBotInstanceArgs = {
159
159
  input: UpdateDrozBotInstanceInput;
160
160
  };
161
+ export type NumberFilterInput = {
162
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
163
+ eq?: InputMaybe<Scalars['Float']['input']>;
164
+ gt?: InputMaybe<Scalars['Float']['input']>;
165
+ gte?: InputMaybe<Scalars['Float']['input']>;
166
+ lt?: InputMaybe<Scalars['Float']['input']>;
167
+ lte?: InputMaybe<Scalars['Float']['input']>;
168
+ ne?: InputMaybe<Scalars['Float']['input']>;
169
+ };
161
170
  export type PageInfo = {
162
171
  hasNext: Scalars['Boolean']['output'];
163
172
  next?: Maybe<Scalars['Base64']['output']>;
@@ -175,6 +184,31 @@ export type QueryGetDrozBotInstanceArgs = {
175
184
  export type RemoveDrozBotInstanceInput = {
176
185
  id: Scalars['ID']['input'];
177
186
  };
187
+ export type SearchResultsFacet = {
188
+ name: Scalars['String']['output'];
189
+ stats?: Maybe<SearchResultsFacetStats>;
190
+ values?: Maybe<Array<SearchResultsFacetValue>>;
191
+ };
192
+ export type SearchResultsFacetStats = {
193
+ max?: Maybe<Scalars['Float']['output']>;
194
+ min?: Maybe<Scalars['Float']['output']>;
195
+ };
196
+ export type SearchResultsFacetValue = {
197
+ count: Scalars['Float']['output'];
198
+ value: Scalars['String']['output'];
199
+ };
200
+ export type SearchResultsStats = {
201
+ found: Scalars['Float']['output'];
202
+ page: Scalars['Float']['output'];
203
+ perPage: Scalars['Float']['output'];
204
+ searchTime: Scalars['Float']['output'];
205
+ totalPages: Scalars['Float']['output'];
206
+ };
207
+ export type StringFilterInput = {
208
+ eq?: InputMaybe<Scalars['String']['input']>;
209
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
210
+ ne?: InputMaybe<Scalars['String']['input']>;
211
+ };
178
212
  export declare enum Typenames {
179
213
  Any = "Any",
180
214
  DrozBotInstance = "DrozBotInstance",
@@ -245,6 +245,15 @@ export type MutationUnassignTicketArgs = {
245
245
  export type MutationUpdateDrozChatChannelArgs = {
246
246
  input: UpdateDrozChatChannelInput;
247
247
  };
248
+ export type NumberFilterInput = {
249
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
250
+ eq?: InputMaybe<Scalars['Float']['input']>;
251
+ gt?: InputMaybe<Scalars['Float']['input']>;
252
+ gte?: InputMaybe<Scalars['Float']['input']>;
253
+ lt?: InputMaybe<Scalars['Float']['input']>;
254
+ lte?: InputMaybe<Scalars['Float']['input']>;
255
+ ne?: InputMaybe<Scalars['Float']['input']>;
256
+ };
248
257
  export type PageInfo = {
249
258
  hasNext: Scalars['Boolean']['output'];
250
259
  next?: Maybe<Scalars['Base64']['output']>;
@@ -261,6 +270,7 @@ export type Query = {
261
270
  listTicketMessages: TicketMessagesConnection;
262
271
  listTickets: TicketsConnection;
263
272
  listTicketsInProgressMine: TicketsConnection;
273
+ searchTickets?: Maybe<TicketsSearchResults>;
264
274
  version?: Maybe<Scalars['String']['output']>;
265
275
  };
266
276
  export type QueryGetDrozChatChannelArgs = {
@@ -289,6 +299,12 @@ export type QueryListTicketsArgs = {
289
299
  export type QueryListTicketsInProgressMineArgs = {
290
300
  next?: InputMaybe<Scalars['Base64']['input']>;
291
301
  };
302
+ export type QuerySearchTicketsArgs = {
303
+ filters?: InputMaybe<Array<TicketSearchFilterInput>>;
304
+ page?: InputMaybe<Scalars['Float']['input']>;
305
+ q?: InputMaybe<Scalars['String']['input']>;
306
+ sortBy?: InputMaybe<Array<Scalars['String']['input']>>;
307
+ };
292
308
  export type RemoveDrozChatChannelAgentInput = {
293
309
  agentId: Scalars['ID']['input'];
294
310
  channelId: Scalars['ID']['input'];
@@ -297,6 +313,31 @@ export type RemoveTagsFromTicketInput = {
297
313
  tags: Array<Scalars['String']['input']>;
298
314
  ticketId: Scalars['ID']['input'];
299
315
  };
316
+ export type SearchResultsFacet = {
317
+ name: Scalars['String']['output'];
318
+ stats?: Maybe<SearchResultsFacetStats>;
319
+ values?: Maybe<Array<SearchResultsFacetValue>>;
320
+ };
321
+ export type SearchResultsFacetStats = {
322
+ max?: Maybe<Scalars['Float']['output']>;
323
+ min?: Maybe<Scalars['Float']['output']>;
324
+ };
325
+ export type SearchResultsFacetValue = {
326
+ count: Scalars['Float']['output'];
327
+ value: Scalars['String']['output'];
328
+ };
329
+ export type SearchResultsStats = {
330
+ found: Scalars['Float']['output'];
331
+ page: Scalars['Float']['output'];
332
+ perPage: Scalars['Float']['output'];
333
+ searchTime: Scalars['Float']['output'];
334
+ totalPages: Scalars['Float']['output'];
335
+ };
336
+ export type StringFilterInput = {
337
+ eq?: InputMaybe<Scalars['String']['input']>;
338
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
339
+ ne?: InputMaybe<Scalars['String']['input']>;
340
+ };
300
341
  export type Subscription = {
301
342
  onTicketByState: TicketSubscription;
302
343
  onTicketInProgressMine: TicketSubscription;
@@ -316,6 +357,7 @@ export declare enum SubscriptionAction {
316
357
  }
317
358
  export type Tag = {
318
359
  createdAt: Scalars['DateTime']['output'];
360
+ createdBy?: Maybe<DrozChatAgent>;
319
361
  name: Scalars['String']['output'];
320
362
  updatedAt: Scalars['DateTime']['output'];
321
363
  };
@@ -328,11 +370,13 @@ export type Ticket = {
328
370
  assigneeId?: Maybe<Scalars['ID']['output']>;
329
371
  channel: DrozChatChannel;
330
372
  channelId: Scalars['ID']['output'];
373
+ closedAt?: Maybe<Scalars['DateTime']['output']>;
331
374
  createdAt: Scalars['DateTime']['output'];
332
375
  customer: DrozChatCustomer;
333
376
  customerId: Scalars['ID']['output'];
334
377
  externalId?: Maybe<Scalars['String']['output']>;
335
378
  externalProviderId?: Maybe<Scalars['String']['output']>;
379
+ firstAgentResponseAt?: Maybe<Scalars['DateTime']['output']>;
336
380
  id: Scalars['ID']['output'];
337
381
  lastMessage?: Maybe<Scalars['String']['output']>;
338
382
  lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
@@ -343,6 +387,8 @@ export type Ticket = {
343
387
  status: TicketStatus;
344
388
  subject?: Maybe<Scalars['String']['output']>;
345
389
  tags?: Maybe<Array<Scalars['String']['output']>>;
390
+ timeToCloseInMs?: Maybe<Scalars['Float']['output']>;
391
+ timeToFirstAgentResponseInMs?: Maybe<Scalars['Float']['output']>;
346
392
  triggerApp?: Maybe<TicketTriggerApp>;
347
393
  triggerDrn?: Maybe<Scalars['DRN']['output']>;
348
394
  unreadMessagesCount: Scalars['Int']['output'];
@@ -382,6 +428,17 @@ export declare enum TicketPriority {
382
428
  Medium = "MEDIUM",
383
429
  Urgent = "URGENT"
384
430
  }
431
+ export type TicketSearchFilterInput = {
432
+ AND?: InputMaybe<Array<TicketSearchFilterInput>>;
433
+ OR?: InputMaybe<Array<TicketSearchFilterInput>>;
434
+ assigneeId?: InputMaybe<StringFilterInput>;
435
+ channelId?: InputMaybe<StringFilterInput>;
436
+ createdAt?: InputMaybe<NumberFilterInput>;
437
+ priority?: InputMaybe<StringFilterInput>;
438
+ state?: InputMaybe<StringFilterInput>;
439
+ status?: InputMaybe<StringFilterInput>;
440
+ tags?: InputMaybe<StringFilterInput>;
441
+ };
385
442
  export type TicketSessionAttributes = {
386
443
  order?: Maybe<Scalars['JSON']['output']>;
387
444
  organization?: Maybe<Scalars['JSON']['output']>;
@@ -430,6 +487,11 @@ export type TicketsConnection = {
430
487
  nodes: Array<Ticket>;
431
488
  pageInfo: PageInfo;
432
489
  };
490
+ export type TicketsSearchResults = {
491
+ facets: Array<SearchResultsFacet>;
492
+ nodes: Array<Ticket>;
493
+ stats: SearchResultsStats;
494
+ };
433
495
  export type TransferTicketToChannelInput = {
434
496
  channelId: Scalars['ID']['input'];
435
497
  ticketId: Scalars['ID']['input'];
@@ -506,7 +568,9 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
506
568
  export type RemoveDrozChatChannelAgentMutation = {
507
569
  removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
508
570
  };
509
- export type TagFragment = Pick<Tag, 'name' | 'createdAt' | 'updatedAt'>;
571
+ export type TagFragment = (Pick<Tag, 'name' | 'createdAt' | 'updatedAt'> & {
572
+ createdBy?: Maybe<DrozChatAgentFragment>;
573
+ });
510
574
  export type ListTagsQueryVariables = Exact<{
511
575
  next?: InputMaybe<Scalars['Base64']['input']>;
512
576
  }>;
@@ -533,7 +597,7 @@ export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
533
597
  export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
534
598
  channels: Array<Pick<TicketTriggerAppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources' | 'unreadMessagesCount'>>;
535
599
  });
536
- export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'tags' | 'externalProviderId' | 'externalId' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
600
+ export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'tags' | 'externalProviderId' | 'externalId' | 'createdAt' | 'updatedAt' | 'closedAt' | 'lastMessageAt' | 'firstAgentResponseAt' | 'timeToFirstAgentResponseInMs' | 'timeToCloseInMs' | 'messagesCount' | 'lastMessage' | 'unreadMessagesCount'> & {
537
601
  assignee?: Maybe<DrozChatAgentFragment>;
538
602
  customer: CustomerFragment;
539
603
  triggerApp?: Maybe<TicketTriggerAppFragment>;
@@ -582,6 +646,22 @@ export type ListTicketMessagesQuery = {
582
646
  nodes: Array<TicketMessageFragment>;
583
647
  };
584
648
  };
649
+ export type SearchTicketsQueryVariables = Exact<{
650
+ q?: InputMaybe<Scalars['String']['input']>;
651
+ filters?: InputMaybe<Array<TicketSearchFilterInput> | TicketSearchFilterInput>;
652
+ sortBy?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
653
+ page?: InputMaybe<Scalars['Float']['input']>;
654
+ }>;
655
+ export type SearchTicketsQuery = {
656
+ searchTickets?: Maybe<{
657
+ nodes: Array<TicketFragment>;
658
+ stats: Pick<SearchResultsStats, 'found' | 'page' | 'perPage' | 'totalPages' | 'searchTime'>;
659
+ facets: Array<(Pick<SearchResultsFacet, 'name'> & {
660
+ values?: Maybe<Array<Pick<SearchResultsFacetValue, 'value' | 'count'>>>;
661
+ stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
662
+ })>;
663
+ }>;
664
+ };
585
665
  export type CreateTicketMutationVariables = Exact<{
586
666
  input: CreateTicketInput;
587
667
  }>;
@@ -670,14 +750,14 @@ export type OnTicketMessageSubscription = {
670
750
  message: TicketMessageFragment;
671
751
  });
672
752
  };
673
- export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
674
753
  export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
754
+ export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
675
755
  export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n ";
676
756
  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 ";
677
757
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
678
- export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
758
+ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
679
759
  export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
680
- export declare const TicketWithSessionFragmentDoc = "\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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
760
+ export declare const TicketWithSessionFragmentDoc = "\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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
681
761
  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 ";
682
762
  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 ";
683
763
  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 ";
@@ -688,26 +768,27 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
688
768
  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 agentIds\n createdAt\n updatedAt\n}\n ";
689
769
  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 agentIds\n createdAt\n updatedAt\n}\n ";
690
770
  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 ";
691
- 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 Tag {\n name\n createdAt\n updatedAt\n}\n ";
692
- export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
693
- export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
694
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
695
- export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
696
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
771
+ 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 Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
772
+ export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
773
+ export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
774
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
775
+ export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
776
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
697
777
  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 ";
698
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
778
+ export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [String!], $page: Float) {\n searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) {\n nodes {\n ...ticket\n }\n stats {\n found\n page\n perPage\n totalPages\n searchTime\n }\n facets {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
779
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
699
780
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
700
781
  export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\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 ";
701
782
  export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\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 ";
702
- export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
703
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
704
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
705
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
706
- export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
707
- export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
708
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
709
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
710
- 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 tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
783
+ export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
784
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
785
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
786
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
787
+ export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
788
+ export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
789
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
790
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
791
+ 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 tags\n externalProviderId\n externalId\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 closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 drozChatChannel on DrozChatChannel {\n id\n name\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 ";
711
792
  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 ";
712
793
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
713
794
  export declare function getSdk<C>(requester: Requester<C>): {
@@ -727,6 +808,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
727
808
  listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
728
809
  listTicketsInProgressMine(variables?: ListTicketsInProgressMineQueryVariables, options?: C): Promise<ListTicketsInProgressMineQuery>;
729
810
  listTicketMessages(variables: ListTicketMessagesQueryVariables, options?: C): Promise<ListTicketMessagesQuery>;
811
+ searchTickets(variables?: SearchTicketsQueryVariables, options?: C): Promise<SearchTicketsQuery>;
730
812
  createTicket(variables: CreateTicketMutationVariables, options?: C): Promise<CreateTicketMutation>;
731
813
  markTicketMessagesAsRead(variables: MarkTicketMessagesAsReadMutationVariables, options?: C): Promise<MarkTicketMessagesAsReadMutation>;
732
814
  createTicketMessage(variables: CreateTicketMessageMutationVariables, options?: C): Promise<CreateTicketMessageMutation>;
@@ -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.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = 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.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.TagFragmentDoc = 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.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.SearchTicketsDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.TagFragmentDoc = exports.DrozChatAgentFragmentDoc = 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";
@@ -54,19 +54,22 @@ var Typenames;
54
54
  Typenames["TicketMessages"] = "TicketMessages";
55
55
  Typenames["Tickets"] = "Tickets";
56
56
  })(Typenames || (exports.Typenames = Typenames = {}));
57
- exports.TagFragmentDoc = `
58
- fragment tag on Tag {
59
- name
60
- createdAt
61
- updatedAt
62
- }
63
- `;
64
57
  exports.DrozChatAgentFragmentDoc = `
65
58
  fragment drozChatAgent on DrozChatAgent {
66
59
  id
67
60
  name
68
61
  }
69
62
  `;
63
+ exports.TagFragmentDoc = `
64
+ fragment tag on Tag {
65
+ name
66
+ createdBy {
67
+ ...drozChatAgent
68
+ }
69
+ createdAt
70
+ updatedAt
71
+ }
72
+ ${exports.DrozChatAgentFragmentDoc}`;
70
73
  exports.CustomerFragmentDoc = `
71
74
  fragment customer on DrozChatCustomer {
72
75
  id
@@ -126,12 +129,16 @@ exports.TicketFragmentDoc = `
126
129
  channel {
127
130
  ...drozChatChannel
128
131
  }
132
+ createdAt
133
+ updatedAt
134
+ closedAt
135
+ lastMessageAt
136
+ firstAgentResponseAt
137
+ timeToFirstAgentResponseInMs
138
+ timeToCloseInMs
129
139
  messagesCount
130
140
  lastMessage
131
- lastMessageAt
132
141
  unreadMessagesCount
133
- createdAt
134
- updatedAt
135
142
  }
136
143
  ${exports.DrozChatAgentFragmentDoc}
137
144
  ${exports.CustomerFragmentDoc}
@@ -312,6 +319,33 @@ exports.ListTicketMessagesDocument = `
312
319
  }
313
320
  }
314
321
  ${exports.TicketMessageFragmentDoc}`;
322
+ exports.SearchTicketsDocument = `
323
+ query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [String!], $page: Float) {
324
+ searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) {
325
+ nodes {
326
+ ...ticket
327
+ }
328
+ stats {
329
+ found
330
+ page
331
+ perPage
332
+ totalPages
333
+ searchTime
334
+ }
335
+ facets {
336
+ name
337
+ values {
338
+ value
339
+ count
340
+ }
341
+ stats {
342
+ min
343
+ max
344
+ }
345
+ }
346
+ }
347
+ }
348
+ ${exports.TicketFragmentDoc}`;
315
349
  exports.CreateTicketDocument = `
316
350
  mutation createTicket($input: CreateTicketInput!) {
317
351
  createTicket(input: $input) {
@@ -467,6 +501,9 @@ function getSdk(requester) {
467
501
  listTicketMessages(variables, options) {
468
502
  return requester(exports.ListTicketMessagesDocument, variables, options);
469
503
  },
504
+ searchTickets(variables, options) {
505
+ return requester(exports.SearchTicketsDocument, variables, options);
506
+ },
470
507
  createTicket(variables, options) {
471
508
  return requester(exports.CreateTicketDocument, variables, options);
472
509
  },
@@ -211,6 +211,15 @@ export type MutationUpdateAccountParametersArgs = {
211
211
  export type MutationUpdateTenantArgs = {
212
212
  input: UpdateTenantInput;
213
213
  };
214
+ export type NumberFilterInput = {
215
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
216
+ eq?: InputMaybe<Scalars['Float']['input']>;
217
+ gt?: InputMaybe<Scalars['Float']['input']>;
218
+ gte?: InputMaybe<Scalars['Float']['input']>;
219
+ lt?: InputMaybe<Scalars['Float']['input']>;
220
+ lte?: InputMaybe<Scalars['Float']['input']>;
221
+ ne?: InputMaybe<Scalars['Float']['input']>;
222
+ };
214
223
  export type PageInfo = {
215
224
  hasNext: Scalars['Boolean']['output'];
216
225
  next?: Maybe<Scalars['Base64']['output']>;
@@ -269,6 +278,26 @@ export type Region = {
269
278
  export type RemoveTenantInput = {
270
279
  tenantId: Scalars['ID']['input'];
271
280
  };
281
+ export type SearchResultsFacet = {
282
+ name: Scalars['String']['output'];
283
+ stats?: Maybe<SearchResultsFacetStats>;
284
+ values?: Maybe<Array<SearchResultsFacetValue>>;
285
+ };
286
+ export type SearchResultsFacetStats = {
287
+ max?: Maybe<Scalars['Float']['output']>;
288
+ min?: Maybe<Scalars['Float']['output']>;
289
+ };
290
+ export type SearchResultsFacetValue = {
291
+ count: Scalars['Float']['output'];
292
+ value: Scalars['String']['output'];
293
+ };
294
+ export type SearchResultsStats = {
295
+ found: Scalars['Float']['output'];
296
+ page: Scalars['Float']['output'];
297
+ perPage: Scalars['Float']['output'];
298
+ searchTime: Scalars['Float']['output'];
299
+ totalPages: Scalars['Float']['output'];
300
+ };
272
301
  export type Service = {
273
302
  accountId: Scalars['ID']['output'];
274
303
  endpoint: Scalars['String']['output'];
@@ -276,6 +305,11 @@ export type Service = {
276
305
  tenantId: Scalars['ID']['output'];
277
306
  type: Scalars['String']['output'];
278
307
  };
308
+ export type StringFilterInput = {
309
+ eq?: InputMaybe<Scalars['String']['input']>;
310
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
311
+ ne?: InputMaybe<Scalars['String']['input']>;
312
+ };
279
313
  export type Tenant = {
280
314
  account: AwsAccount;
281
315
  accountId: Scalars['ID']['output'];
@@ -147,6 +147,15 @@ export type MutationCreateDrozNexoConnectionArgs = {
147
147
  export type MutationRemoveDrozNexoConnectionArgs = {
148
148
  input: RemoveDrozNexoConnectionInput;
149
149
  };
150
+ export type NumberFilterInput = {
151
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
152
+ eq?: InputMaybe<Scalars['Float']['input']>;
153
+ gt?: InputMaybe<Scalars['Float']['input']>;
154
+ gte?: InputMaybe<Scalars['Float']['input']>;
155
+ lt?: InputMaybe<Scalars['Float']['input']>;
156
+ lte?: InputMaybe<Scalars['Float']['input']>;
157
+ ne?: InputMaybe<Scalars['Float']['input']>;
158
+ };
150
159
  export type PageInfo = {
151
160
  hasNext: Scalars['Boolean']['output'];
152
161
  next?: Maybe<Scalars['Base64']['output']>;
@@ -166,6 +175,31 @@ export type RemoveDrozNexoConnectionInput = {
166
175
  id: Scalars['ID']['input'];
167
176
  versionId: Scalars['ID']['input'];
168
177
  };
178
+ export type SearchResultsFacet = {
179
+ name: Scalars['String']['output'];
180
+ stats?: Maybe<SearchResultsFacetStats>;
181
+ values?: Maybe<Array<SearchResultsFacetValue>>;
182
+ };
183
+ export type SearchResultsFacetStats = {
184
+ max?: Maybe<Scalars['Float']['output']>;
185
+ min?: Maybe<Scalars['Float']['output']>;
186
+ };
187
+ export type SearchResultsFacetValue = {
188
+ count: Scalars['Float']['output'];
189
+ value: Scalars['String']['output'];
190
+ };
191
+ export type SearchResultsStats = {
192
+ found: Scalars['Float']['output'];
193
+ page: Scalars['Float']['output'];
194
+ perPage: Scalars['Float']['output'];
195
+ searchTime: Scalars['Float']['output'];
196
+ totalPages: Scalars['Float']['output'];
197
+ };
198
+ export type StringFilterInput = {
199
+ eq?: InputMaybe<Scalars['String']['input']>;
200
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
201
+ ne?: InputMaybe<Scalars['String']['input']>;
202
+ };
169
203
  export declare enum Typenames {
170
204
  Any = "Any",
171
205
  GraphqlConnections = "GraphqlConnections",
@@ -419,6 +419,15 @@ export type MutationUpdateStateMachineConfigArgs = {
419
419
  export type MutationUpdateStateMachineConfigStateArgs = {
420
420
  input: UpdateStateMachineConfigStateInput;
421
421
  };
422
+ export type NumberFilterInput = {
423
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
424
+ eq?: InputMaybe<Scalars['Float']['input']>;
425
+ gt?: InputMaybe<Scalars['Float']['input']>;
426
+ gte?: InputMaybe<Scalars['Float']['input']>;
427
+ lt?: InputMaybe<Scalars['Float']['input']>;
428
+ lte?: InputMaybe<Scalars['Float']['input']>;
429
+ ne?: InputMaybe<Scalars['Float']['input']>;
430
+ };
422
431
  export type OAuth2Credentials = {
423
432
  clientId: Scalars['String']['output'];
424
433
  clientSecret: Scalars['String']['output'];
@@ -623,6 +632,26 @@ export type SafeCredentials = ICredentials & {
623
632
  type: CredentialsType;
624
633
  updatedAt: Scalars['DateTime']['output'];
625
634
  };
635
+ export type SearchResultsFacet = {
636
+ name: Scalars['String']['output'];
637
+ stats?: Maybe<SearchResultsFacetStats>;
638
+ values?: Maybe<Array<SearchResultsFacetValue>>;
639
+ };
640
+ export type SearchResultsFacetStats = {
641
+ max?: Maybe<Scalars['Float']['output']>;
642
+ min?: Maybe<Scalars['Float']['output']>;
643
+ };
644
+ export type SearchResultsFacetValue = {
645
+ count: Scalars['Float']['output'];
646
+ value: Scalars['String']['output'];
647
+ };
648
+ export type SearchResultsStats = {
649
+ found: Scalars['Float']['output'];
650
+ page: Scalars['Float']['output'];
651
+ perPage: Scalars['Float']['output'];
652
+ searchTime: Scalars['Float']['output'];
653
+ totalPages: Scalars['Float']['output'];
654
+ };
626
655
  export type SecureCronJob = {
627
656
  appId: Scalars['ID']['output'];
628
657
  description?: Maybe<Scalars['String']['output']>;
@@ -699,6 +728,11 @@ export type Storage = {
699
728
  updatedAt: Scalars['DateTime']['output'];
700
729
  versionId: Scalars['String']['output'];
701
730
  };
731
+ export type StringFilterInput = {
732
+ eq?: InputMaybe<Scalars['String']['input']>;
733
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
734
+ ne?: InputMaybe<Scalars['String']['input']>;
735
+ };
702
736
  export declare enum Typenames {
703
737
  Agents = "Agents",
704
738
  Any = "Any",
@@ -130,6 +130,15 @@ export type MutationSendReclameAquiModerationRequestArgs = {
130
130
  export type MutationUpdateReclameAquiInstanceArgs = {
131
131
  input: UpdateReclameAquiInstanceInput;
132
132
  };
133
+ export type NumberFilterInput = {
134
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
135
+ eq?: InputMaybe<Scalars['Float']['input']>;
136
+ gt?: InputMaybe<Scalars['Float']['input']>;
137
+ gte?: InputMaybe<Scalars['Float']['input']>;
138
+ lt?: InputMaybe<Scalars['Float']['input']>;
139
+ lte?: InputMaybe<Scalars['Float']['input']>;
140
+ ne?: InputMaybe<Scalars['Float']['input']>;
141
+ };
133
142
  export type PageInfo = {
134
143
  hasNext: Scalars['Boolean']['output'];
135
144
  next?: Maybe<Scalars['Base64']['output']>;
@@ -191,12 +200,37 @@ export type RemoveReclameAquiInstanceInput = {
191
200
  export type RequestReclameAquiTicketEvaluationInput = {
192
201
  sessionId: Scalars['ID']['input'];
193
202
  };
203
+ export type SearchResultsFacet = {
204
+ name: Scalars['String']['output'];
205
+ stats?: Maybe<SearchResultsFacetStats>;
206
+ values?: Maybe<Array<SearchResultsFacetValue>>;
207
+ };
208
+ export type SearchResultsFacetStats = {
209
+ max?: Maybe<Scalars['Float']['output']>;
210
+ min?: Maybe<Scalars['Float']['output']>;
211
+ };
212
+ export type SearchResultsFacetValue = {
213
+ count: Scalars['Float']['output'];
214
+ value: Scalars['String']['output'];
215
+ };
216
+ export type SearchResultsStats = {
217
+ found: Scalars['Float']['output'];
218
+ page: Scalars['Float']['output'];
219
+ perPage: Scalars['Float']['output'];
220
+ searchTime: Scalars['Float']['output'];
221
+ totalPages: Scalars['Float']['output'];
222
+ };
194
223
  export type SendReclameAquiModerationRequestInput = {
195
224
  moderationAttachmentUrl?: InputMaybe<Scalars['String']['input']>;
196
225
  moderationReasonCode: Scalars['ID']['input'];
197
226
  moderationReasonDescription: Scalars['String']['input'];
198
227
  sessionId: Scalars['ID']['input'];
199
228
  };
229
+ export type StringFilterInput = {
230
+ eq?: InputMaybe<Scalars['String']['input']>;
231
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
232
+ ne?: InputMaybe<Scalars['String']['input']>;
233
+ };
200
234
  export declare enum Typenames {
201
235
  Any = "Any",
202
236
  GraphqlConnections = "GraphqlConnections",
@@ -118,6 +118,15 @@ export type MutationUpdateZendeskInstanceArgs = {
118
118
  export type MutationValidateZendeskInstanceArgs = {
119
119
  input: ValidateZendeskInstanceInput;
120
120
  };
121
+ export type NumberFilterInput = {
122
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
123
+ eq?: InputMaybe<Scalars['Float']['input']>;
124
+ gt?: InputMaybe<Scalars['Float']['input']>;
125
+ gte?: InputMaybe<Scalars['Float']['input']>;
126
+ lt?: InputMaybe<Scalars['Float']['input']>;
127
+ lte?: InputMaybe<Scalars['Float']['input']>;
128
+ ne?: InputMaybe<Scalars['Float']['input']>;
129
+ };
121
130
  export type PageInfo = {
122
131
  hasNext: Scalars['Boolean']['output'];
123
132
  next?: Maybe<Scalars['Base64']['output']>;
@@ -154,6 +163,31 @@ export type QueryListZendeskTicketCustomFieldsArgs = {
154
163
  export type RemoveZendeskInstanceInput = {
155
164
  id: Scalars['ID']['input'];
156
165
  };
166
+ export type SearchResultsFacet = {
167
+ name: Scalars['String']['output'];
168
+ stats?: Maybe<SearchResultsFacetStats>;
169
+ values?: Maybe<Array<SearchResultsFacetValue>>;
170
+ };
171
+ export type SearchResultsFacetStats = {
172
+ max?: Maybe<Scalars['Float']['output']>;
173
+ min?: Maybe<Scalars['Float']['output']>;
174
+ };
175
+ export type SearchResultsFacetValue = {
176
+ count: Scalars['Float']['output'];
177
+ value: Scalars['String']['output'];
178
+ };
179
+ export type SearchResultsStats = {
180
+ found: Scalars['Float']['output'];
181
+ page: Scalars['Float']['output'];
182
+ perPage: Scalars['Float']['output'];
183
+ searchTime: Scalars['Float']['output'];
184
+ totalPages: Scalars['Float']['output'];
185
+ };
186
+ export type StringFilterInput = {
187
+ eq?: InputMaybe<Scalars['String']['input']>;
188
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
189
+ ne?: InputMaybe<Scalars['String']['input']>;
190
+ };
157
191
  export type TriggerApp = {
158
192
  description?: Maybe<Scalars['String']['output']>;
159
193
  id: Scalars['ID']['output'];