@droz-js/sdk 0.2.14 → 0.2.16

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.2.14",
4
+ "version": "0.2.16",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "graphql": "^16.8.1",
20
- "graphql-ws": "^5.14.1",
20
+ "graphql-ws": "^5.14.2",
21
21
  "inbatches": "^0.0.10"
22
22
  },
23
23
  "devDependencies": {
@@ -1,5 +1,5 @@
1
1
  import type { ExecutionResult } from 'graphql';
2
- export declare const serviceDiscoveryEndpoint = "https://th3xrek4rane2scfwwfoo7wemq0tvuzm.lambda-url.sa-east-1.on.aws";
2
+ export declare const serviceDiscoveryEndpoint = "https://root.droz.services";
3
3
  export type AuthorizationProvider = string | (() => Promise<string>) | (() => string);
4
4
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
5
5
  export type GetSdk<Sdk> = (requester: Requester<Sdk>) => Sdk;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mapAsyncIterableGraphqlResponse = exports.mapGraphqlResponse = exports.resolveAuthorization = exports.toAuthorizationProvider = exports.serviceDiscoveryEndpoint = void 0;
4
- exports.serviceDiscoveryEndpoint = 'https://th3xrek4rane2scfwwfoo7wemq0tvuzm.lambda-url.sa-east-1.on.aws';
4
+ exports.serviceDiscoveryEndpoint = 'https://root.droz.services';
5
5
  function toAuthorizationProvider(type, ...values) {
6
6
  // this means it is unsetting the authorization token
7
7
  if (!type)
@@ -98,7 +98,7 @@ class HttpRequester {
98
98
  }
99
99
  }
100
100
  __decorate([
101
- (0, inbatches_1.InBatches)({ maxBatchSize: 12 }),
101
+ (0, inbatches_1.InBatches)({ maxBatchSize: 20 }),
102
102
  __metadata("design:type", Function),
103
103
  __metadata("design:paramtypes", [Object]),
104
104
  __metadata("design:returntype", Promise)
@@ -0,0 +1,18 @@
1
+ export * from './sdks/drozcommons';
2
+ export declare const DrozAdmin: new (options?: import("./client/http").HttpClientOptions) => {
3
+ readonly http: any;
4
+ forTenant(tenant: string): any;
5
+ withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
7
+ } & {
8
+ listServices(variables: import("./sdks/drozcommons").Exact<{
9
+ tenantId: string;
10
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListServicesQuery>;
11
+ getTenant(variables: import("./sdks/drozcommons").Exact<{
12
+ tenantId: string;
13
+ withServices?: boolean;
14
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantQuery>;
15
+ listTenants(variables?: import("./sdks/drozcommons").Exact<{
16
+ withServices?: boolean;
17
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantsQuery>;
18
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.DrozAdmin = void 0;
18
+ const http_1 = require("./client/http");
19
+ const drozcommons_1 = require("./sdks/drozcommons");
20
+ __exportStar(require("./sdks/drozcommons"), exports);
21
+ exports.DrozAdmin = (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk);
@@ -3,15 +3,6 @@ export declare const DrozChatWs: new () => {
3
3
  readonly ws: any;
4
4
  connect(): Promise<void>;
5
5
  } & {
6
- createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
7
- input: import("./sdks/drozchat").CreateDrozChatAgentInput;
8
- }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
9
- listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
10
- next?: object;
11
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
12
- getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
13
- id: string;
14
- }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
15
6
  getTicket(variables: import("./sdks/drozchat").Exact<{
16
7
  id: string;
17
8
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/drozchat.d.ts CHANGED
@@ -5,15 +5,6 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
6
  withCustomHeaders(headers: () => Record<string, string>): any;
7
7
  } & {
8
- createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
9
- input: import("./sdks/drozchat").CreateDrozChatAgentInput;
10
- }>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
11
- listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
12
- next?: object;
13
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
14
- getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
15
- id: string;
16
- }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
17
8
  getTicket(variables: import("./sdks/drozchat").Exact<{
18
9
  id: string;
19
10
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/droznexo.d.ts CHANGED
@@ -20,4 +20,16 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
20
20
  listDrozNexoAgentGroups(variables?: import("./sdks/droznexo").Exact<{
21
21
  next?: object;
22
22
  }>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentGroupsQuery>;
23
+ listDrozNexoSuggestions(variables?: import("./sdks/droznexo").Exact<{
24
+ [key: string]: never;
25
+ }>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoSuggestionsQuery>;
26
+ listDrozNexoConnections(variables?: import("./sdks/droznexo").Exact<{
27
+ next?: object;
28
+ }>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoConnectionsQuery>;
29
+ createDrozNexoConnection(variables: import("./sdks/droznexo").Exact<{
30
+ input: import("./sdks/droznexo").CreateDrozNexoConnectionInput;
31
+ }>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoConnectionMutation>;
32
+ removeDrozNexoConnection(variables: import("./sdks/droznexo").Exact<{
33
+ input: import("./sdks/droznexo").RemoveDrozNexoConnectionInput;
34
+ }>, options?: unknown): Promise<import("./sdks/droznexo").RemoveDrozNexoConnectionMutation>;
23
35
  };
package/src/nucleus.d.ts CHANGED
@@ -110,10 +110,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
110
110
  versionId: string;
111
111
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetStateMachineQuery>;
112
112
  listLiveStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
113
- [key: string]: never;
113
+ createdByAppId?: string;
114
+ next?: object;
114
115
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListLiveStateMachineConfigsQuery>;
115
116
  listDraftStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
116
- [key: string]: never;
117
+ createdByAppId?: string;
118
+ next?: object;
117
119
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>;
118
120
  listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{
119
121
  id: string;
@@ -74,7 +74,7 @@ export type Scalars = {
74
74
  output: string;
75
75
  };
76
76
  Set: {
77
- input: Set<any>;
77
+ input: any;
78
78
  output: any[];
79
79
  };
80
80
  URL: {
@@ -74,7 +74,7 @@ export type Scalars = {
74
74
  output: string;
75
75
  };
76
76
  Set: {
77
- input: Set<any>;
77
+ input: any;
78
78
  output: any[];
79
79
  };
80
80
  URL: {
@@ -74,7 +74,7 @@ export type Scalars = {
74
74
  output: string;
75
75
  };
76
76
  Set: {
77
- input: Set<any>;
77
+ input: any;
78
78
  output: any[];
79
79
  };
80
80
  URL: {
@@ -101,10 +101,6 @@ export type AssignTicketMyselfInput = {
101
101
  export type CloseTicketInput = {
102
102
  ticketId: Scalars['ID']['input'];
103
103
  };
104
- export type CreateDrozChatAgentInput = {
105
- email: Scalars['EmailAddress']['input'];
106
- name: Scalars['String']['input'];
107
- };
108
104
  export type CreateTicketInput = {
109
105
  customerId: Scalars['ID']['input'];
110
106
  subject: Scalars['String']['input'];
@@ -116,19 +112,18 @@ export type CreateTicketMessageInput = {
116
112
  type: TicketMessageType;
117
113
  };
118
114
  export type DrozChatAgent = {
119
- createdAt: Scalars['DateTime']['output'];
120
- email: Scalars['EmailAddress']['output'];
121
- extension?: Maybe<DrozChatAgentExtension>;
115
+ createdAt: Scalars['String']['output'];
122
116
  id: Scalars['ID']['output'];
123
117
  name: Scalars['String']['output'];
124
- updatedAt: Scalars['DateTime']['output'];
118
+ updatedAt: Scalars['String']['output'];
125
119
  };
126
- export type DrozChatAgentExtension = {
120
+ export type DrozChatCustomer = {
121
+ createdAt: Scalars['String']['output'];
122
+ email: Scalars['String']['output'];
127
123
  id: Scalars['ID']['output'];
128
- };
129
- export type DrozChatAgentsConnection = {
130
- nodes: Array<DrozChatAgent>;
131
- pageInfo: PageInfo;
124
+ name: Scalars['String']['output'];
125
+ phone?: Maybe<Scalars['String']['output']>;
126
+ updatedAt: Scalars['String']['output'];
132
127
  };
133
128
  export type MarkTicketMessagesAsReadInput = {
134
129
  ticketId: Scalars['ID']['input'];
@@ -137,7 +132,6 @@ export type Mutation = {
137
132
  assignTicket: Ticket;
138
133
  assignTicketMyself: Ticket;
139
134
  closeTicket: Ticket;
140
- createDrozChatAgent: DrozChatAgent;
141
135
  createTicket: Ticket;
142
136
  createTicketMessage: TicketMessage;
143
137
  markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
@@ -153,9 +147,6 @@ export type MutationAssignTicketMyselfArgs = {
153
147
  export type MutationCloseTicketArgs = {
154
148
  input: CloseTicketInput;
155
149
  };
156
- export type MutationCreateDrozChatAgentArgs = {
157
- input: CreateDrozChatAgentInput;
158
- };
159
150
  export type MutationCreateTicketArgs = {
160
151
  input: CreateTicketInput;
161
152
  };
@@ -174,11 +165,9 @@ export type PageInfo = {
174
165
  };
175
166
  export type Query = {
176
167
  app?: Maybe<Scalars['DRN']['output']>;
177
- getDrozChatAgent?: Maybe<DrozChatAgent>;
178
168
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
179
169
  getTicket?: Maybe<Ticket>;
180
170
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
181
- listDrozChatAgents: DrozChatAgentsConnection;
182
171
  listTicketMessages: TicketMessagesConnection;
183
172
  listTickets: TicketsConnection;
184
173
  listTicketsClosed: TicketsConnection;
@@ -187,15 +176,9 @@ export type Query = {
187
176
  listTicketsInQueue: TicketsConnection;
188
177
  version?: Maybe<Scalars['String']['output']>;
189
178
  };
190
- export type QueryGetDrozChatAgentArgs = {
191
- id: Scalars['ID']['input'];
192
- };
193
179
  export type QueryGetTicketArgs = {
194
180
  id: Scalars['ID']['input'];
195
181
  };
196
- export type QueryListDrozChatAgentsArgs = {
197
- next?: InputMaybe<Scalars['Base64']['input']>;
198
- };
199
182
  export type QueryListTicketMessagesArgs = {
200
183
  next?: InputMaybe<Scalars['Base64']['input']>;
201
184
  ticketId: Scalars['ID']['input'];
@@ -237,7 +220,7 @@ export type Ticket = {
237
220
  assigneeId?: Maybe<Scalars['ID']['output']>;
238
221
  channel?: Maybe<TicketChannel>;
239
222
  createdAt: Scalars['DateTime']['output'];
240
- customer: TicketCustomer;
223
+ customer: DrozChatCustomer;
241
224
  customerId: Scalars['ID']['output'];
242
225
  id: Scalars['ID']['output'];
243
226
  lastMessage?: Maybe<Scalars['String']['output']>;
@@ -257,14 +240,6 @@ export type TicketChannel = {
257
240
  drn?: Maybe<Scalars['DRN']['output']>;
258
241
  name?: Maybe<Scalars['String']['output']>;
259
242
  };
260
- export type TicketCustomer = {
261
- createdAt: Scalars['String']['output'];
262
- email: Scalars['String']['output'];
263
- id: Scalars['ID']['output'];
264
- name: Scalars['String']['output'];
265
- phone: Scalars['String']['output'];
266
- updatedAt: Scalars['String']['output'];
267
- };
268
243
  export type TicketMessage = {
269
244
  body: Scalars['String']['output'];
270
245
  contentType: Scalars['String']['output'];
@@ -316,7 +291,6 @@ export type TicketsConnection = {
316
291
  };
317
292
  export declare enum Typenames {
318
293
  Any = "Any",
319
- DrozChatAgentExtension = "DrozChatAgentExtension",
320
294
  GraphqlConnections = "GraphqlConnections",
321
295
  GraphqlSubscriptions = "GraphqlSubscriptions",
322
296
  TicketMappings = "TicketMappings",
@@ -326,31 +300,8 @@ export declare enum Typenames {
326
300
  export type UnassignTicketInput = {
327
301
  ticketId: Scalars['ID']['input'];
328
302
  };
329
- export type DrozChatAgentFragment = (Pick<DrozChatAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
330
- extension?: Maybe<Pick<DrozChatAgentExtension, 'id'>>;
331
- });
332
- export type CreateDrozChatAgentMutationVariables = Exact<{
333
- input: CreateDrozChatAgentInput;
334
- }>;
335
- export type CreateDrozChatAgentMutation = {
336
- createDrozChatAgent: DrozChatAgentFragment;
337
- };
338
- export type ListDrozChatAgentsQueryVariables = Exact<{
339
- next?: InputMaybe<Scalars['Base64']['input']>;
340
- }>;
341
- export type ListDrozChatAgentsQuery = {
342
- listDrozChatAgents: {
343
- pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
344
- nodes: Array<DrozChatAgentFragment>;
345
- };
346
- };
347
- export type GetDrozChatAgentQueryVariables = Exact<{
348
- id: Scalars['ID']['input'];
349
- }>;
350
- export type GetDrozChatAgentQuery = {
351
- getDrozChatAgent?: Maybe<DrozChatAgentFragment>;
352
- };
353
- export type CustomerFragment = Pick<TicketCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
303
+ export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
304
+ export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
354
305
  export type DrozChatChannelFragment = Pick<TicketChannel, 'drn' | 'name' | 'appId' | 'appName'>;
355
306
  export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
356
307
  assignee?: Maybe<DrozChatAgentFragment>;
@@ -484,36 +435,30 @@ export type OnTicketMessageSubscription = {
484
435
  message: TicketMessageFragment;
485
436
  });
486
437
  };
487
- export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
488
- export declare const CustomerFragmentDoc = "\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
438
+ export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
439
+ export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
489
440
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
490
- export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
441
+ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
491
442
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
492
- export declare const CreateDrozChatAgentDocument = "\n mutation createDrozChatAgent($input: CreateDrozChatAgentInput!) {\n createDrozChatAgent(input: $input) {\n ...drozChatAgent\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
493
- export declare const ListDrozChatAgentsDocument = "\n query listDrozChatAgents($next: Base64) {\n listDrozChatAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozChatAgent\n }\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
494
- export declare const GetDrozChatAgentDocument = "\n query getDrozChatAgent($id: ID!) {\n getDrozChatAgent(id: $id) {\n ...drozChatAgent\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
495
- export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
496
- 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
497
- 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
498
- 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
499
- 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
443
+ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
444
+ 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
445
+ 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
446
+ 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
447
+ 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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
500
448
  export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, 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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
501
- export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
449
+ export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
502
450
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
503
451
  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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
504
- export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
505
- export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
506
- export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
507
- export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
508
- export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
509
- export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
510
- export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
452
+ export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
453
+ export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
454
+ export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
455
+ export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
456
+ export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
457
+ export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
458
+ export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\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 createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
511
459
  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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
512
460
  export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
513
461
  export declare function getSdk<C, E>(requester: Requester<C, E>): {
514
- createDrozChatAgent(variables: CreateDrozChatAgentMutationVariables, options?: C): Promise<CreateDrozChatAgentMutation>;
515
- listDrozChatAgents(variables?: ListDrozChatAgentsQueryVariables, options?: C): Promise<ListDrozChatAgentsQuery>;
516
- getDrozChatAgent(variables: GetDrozChatAgentQueryVariables, options?: C): Promise<GetDrozChatAgentQuery>;
517
462
  getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
518
463
  listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
519
464
  listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
@@ -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.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.GetDrozChatAgentDocument = exports.ListDrozChatAgentsDocument = exports.CreateDrozChatAgentDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -44,7 +44,6 @@ var TicketStatus;
44
44
  var Typenames;
45
45
  (function (Typenames) {
46
46
  Typenames["Any"] = "Any";
47
- Typenames["DrozChatAgentExtension"] = "DrozChatAgentExtension";
48
47
  Typenames["GraphqlConnections"] = "GraphqlConnections";
49
48
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
50
49
  Typenames["TicketMappings"] = "TicketMappings";
@@ -55,15 +54,10 @@ exports.DrozChatAgentFragmentDoc = `
55
54
  fragment drozChatAgent on DrozChatAgent {
56
55
  id
57
56
  name
58
- createdAt
59
- updatedAt
60
- extension {
61
- id
62
- }
63
57
  }
64
58
  `;
65
59
  exports.CustomerFragmentDoc = `
66
- fragment customer on TicketCustomer {
60
+ fragment customer on DrozChatCustomer {
67
61
  id
68
62
  name
69
63
  email
@@ -117,33 +111,6 @@ exports.TicketMessageFragmentDoc = `
117
111
  updatedAt
118
112
  }
119
113
  `;
120
- exports.CreateDrozChatAgentDocument = `
121
- mutation createDrozChatAgent($input: CreateDrozChatAgentInput!) {
122
- createDrozChatAgent(input: $input) {
123
- ...drozChatAgent
124
- }
125
- }
126
- ${exports.DrozChatAgentFragmentDoc}`;
127
- exports.ListDrozChatAgentsDocument = `
128
- query listDrozChatAgents($next: Base64) {
129
- listDrozChatAgents(next: $next) {
130
- pageInfo {
131
- hasNext
132
- next
133
- }
134
- nodes {
135
- ...drozChatAgent
136
- }
137
- }
138
- }
139
- ${exports.DrozChatAgentFragmentDoc}`;
140
- exports.GetDrozChatAgentDocument = `
141
- query getDrozChatAgent($id: ID!) {
142
- getDrozChatAgent(id: $id) {
143
- ...drozChatAgent
144
- }
145
- }
146
- ${exports.DrozChatAgentFragmentDoc}`;
147
114
  exports.GetTicketDocument = `
148
115
  query getTicket($id: ID!) {
149
116
  getTicket(id: $id) {
@@ -305,15 +272,6 @@ exports.OnTicketMessageDocument = `
305
272
  ${exports.TicketMessageFragmentDoc}`;
306
273
  function getSdk(requester) {
307
274
  return {
308
- createDrozChatAgent(variables, options) {
309
- return requester(exports.CreateDrozChatAgentDocument, variables, options);
310
- },
311
- listDrozChatAgents(variables, options) {
312
- return requester(exports.ListDrozChatAgentsDocument, variables, options);
313
- },
314
- getDrozChatAgent(variables, options) {
315
- return requester(exports.GetDrozChatAgentDocument, variables, options);
316
- },
317
275
  getTicket(variables, options) {
318
276
  return requester(exports.GetTicketDocument, variables, options);
319
277
  },