@droz-js/sdk 0.2.13 → 0.2.14

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.13",
4
+ "version": "0.2.14",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -3,6 +3,7 @@ export declare const ChatWidget: new (options?: import("./client/http").HttpClie
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  getChatWidget(variables: import("./sdks/chatwidget").Exact<{
8
9
  id: string;
@@ -1,4 +1,5 @@
1
1
  import { AuthorizationProvider, GetSdk } from './helpers';
2
+ type HeadersProvider = () => Record<string, string>;
2
3
  export interface HttpClientOptions {
3
4
  debug?: boolean;
4
5
  }
@@ -6,4 +7,6 @@ export declare function HttpClientBuilder<Sdk>(serviceName: string, getSdk: GetS
6
7
  readonly http: any;
7
8
  forTenant(tenant: string): any;
8
9
  withAuthorization(authorization: AuthorizationProvider): any;
10
+ withCustomHeaders(headers: HeadersProvider): any;
9
11
  } & Sdk;
12
+ export {};
@@ -34,6 +34,7 @@ class HttpRequester {
34
34
  options;
35
35
  tenant;
36
36
  authorization;
37
+ customHeaders;
37
38
  constructor(serviceName, options) {
38
39
  this.serviceName = serviceName;
39
40
  this.options = options;
@@ -44,6 +45,9 @@ class HttpRequester {
44
45
  withAuthorization(authorization) {
45
46
  this.authorization = authorization;
46
47
  }
48
+ withCustomHeaders(headers) {
49
+ this.customHeaders = headers;
50
+ }
47
51
  build() {
48
52
  return this.requester.bind(this);
49
53
  }
@@ -69,6 +73,11 @@ class HttpRequester {
69
73
  heads.set('Authorization', authorization);
70
74
  heads.set('Content-Type', 'application/json');
71
75
  heads.set('Accept', 'application/json');
76
+ if (this.customHeaders) {
77
+ const custom = this.customHeaders();
78
+ for (const [key, value] of Object.entries(custom))
79
+ heads.set(key, value);
80
+ }
72
81
  const headers = Object.fromEntries(heads.entries());
73
82
  return { endpoint, headers };
74
83
  }
@@ -110,6 +119,10 @@ function HttpClientBuilder(serviceName, getSdk) {
110
119
  this.http.withAuthorization(authorization);
111
120
  return this;
112
121
  }
122
+ withCustomHeaders(headers) {
123
+ this.http.withCustomHeaders(headers);
124
+ return this;
125
+ }
113
126
  }
114
127
  return Client;
115
128
  }
package/src/drozbot.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const DrozBot: new (options?: import("./client/http").HttpClientO
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  getDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
8
9
  id: string;
@@ -12,18 +12,6 @@ export declare const DrozChatWs: new () => {
12
12
  getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
13
13
  id: string;
14
14
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
15
- createCustomer(variables: import("./sdks/drozchat").Exact<{
16
- input: import("./sdks/drozchat").CreateCustomerInput;
17
- }>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomerMutation>;
18
- updateCustomer(variables: import("./sdks/drozchat").Exact<{
19
- input: import("./sdks/drozchat").UpdateCustomerInput;
20
- }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateCustomerMutation>;
21
- listCustomers(variables?: import("./sdks/drozchat").Exact<{
22
- next?: object;
23
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomersQuery>;
24
- getCustomer(variables: import("./sdks/drozchat").Exact<{
25
- id: string;
26
- }>, options?: unknown): Promise<import("./sdks/drozchat").GetCustomerQuery>;
27
15
  getTicket(variables: import("./sdks/drozchat").Exact<{
28
16
  id: string;
29
17
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/drozchat.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
8
9
  input: import("./sdks/drozchat").CreateDrozChatAgentInput;
@@ -13,18 +14,6 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
13
14
  getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
14
15
  id: string;
15
16
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
16
- createCustomer(variables: import("./sdks/drozchat").Exact<{
17
- input: import("./sdks/drozchat").CreateCustomerInput;
18
- }>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomerMutation>;
19
- updateCustomer(variables: import("./sdks/drozchat").Exact<{
20
- input: import("./sdks/drozchat").UpdateCustomerInput;
21
- }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateCustomerMutation>;
22
- listCustomers(variables?: import("./sdks/drozchat").Exact<{
23
- next?: object;
24
- }>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomersQuery>;
25
- getCustomer(variables: import("./sdks/drozchat").Exact<{
26
- id: string;
27
- }>, options?: unknown): Promise<import("./sdks/drozchat").GetCustomerQuery>;
28
17
  getTicket(variables: import("./sdks/drozchat").Exact<{
29
18
  id: string;
30
19
  }>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
package/src/droznexo.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  createDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
8
9
  input: import("./sdks/droznexo").CreateDrozNexoAgentInput;
@@ -3,6 +3,7 @@ export declare const MercadoLivre: new (options?: import("./client/http").HttpCl
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  getMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
8
9
  id: string;
package/src/nucleus.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  getAgent(variables: import("./sdks/nucleus").Exact<{
8
9
  id: string;
@@ -35,6 +36,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
35
36
  appType?: import("./sdks/nucleus").AppType;
36
37
  withApp?: boolean;
37
38
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListAppInstancesQuery>;
39
+ registerAppInstance(variables: import("./sdks/nucleus").Exact<{
40
+ input: import("./sdks/nucleus").RegisterAppInstanceInput;
41
+ }>, options?: unknown): Promise<import("./sdks/nucleus").RegisterAppInstanceMutation>;
42
+ unregisterAppInstance(variables: import("./sdks/nucleus").Exact<{
43
+ input: import("./sdks/nucleus").UnregisterAppInstanceInput;
44
+ }>, options?: unknown): Promise<import("./sdks/nucleus").UnregisterAppInstanceMutation>;
38
45
  getAmplifyConfig(variables?: import("./sdks/nucleus").Exact<{
39
46
  [key: string]: never;
40
47
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetAmplifyConfigQuery>;
@@ -59,6 +66,15 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
59
66
  removeCredentials(variables: import("./sdks/nucleus").Exact<{
60
67
  input: import("./sdks/nucleus").RemoveCredentialsInput;
61
68
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveCredentialsMutation>;
69
+ getCustomer(variables: import("./sdks/nucleus").Exact<{
70
+ identifier: string;
71
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetCustomerQuery>;
72
+ listCustomers(variables?: import("./sdks/nucleus").Exact<{
73
+ next?: object;
74
+ }>, options?: unknown): Promise<import("./sdks/nucleus").ListCustomersQuery>;
75
+ getOrCreateCustomer(variables: import("./sdks/nucleus").Exact<{
76
+ input: import("./sdks/nucleus").GetOrCreateCustomerInput;
77
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetOrCreateCustomerMutation>;
62
78
  getCronJob(variables: import("./sdks/nucleus").Exact<{
63
79
  id: string;
64
80
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetCronJobQuery>;
@@ -74,21 +90,21 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
74
90
  removeCronJob(variables: import("./sdks/nucleus").Exact<{
75
91
  input: import("./sdks/nucleus").RemoveCronJobInput;
76
92
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveCronJobMutation>;
77
- resolveSession(variables: import("./sdks/nucleus").Exact<{
78
- sessionId?: string;
79
- userId?: string;
80
- triggerDrn: string;
81
- }>, options?: unknown): Promise<import("./sdks/nucleus").ResolveSessionQuery>;
82
- getSessionData(variables: import("./sdks/nucleus").Exact<{
93
+ startSession(variables: import("./sdks/nucleus").Exact<{
94
+ input: import("./sdks/nucleus").StartSessionInput;
95
+ withCustomer?: boolean;
96
+ }>, options?: unknown): Promise<import("./sdks/nucleus").StartSessionMutation>;
97
+ getSession(variables: import("./sdks/nucleus").Exact<{
83
98
  sessionId: string;
84
- namespace?: string;
85
- }>, options?: unknown): Promise<import("./sdks/nucleus").GetSessionDataQuery>;
86
- setSessionData(variables: import("./sdks/nucleus").Exact<{
87
- input: import("./sdks/nucleus").SetSessionDataInput;
88
- }>, options?: unknown): Promise<import("./sdks/nucleus").SetSessionDataMutation>;
89
- patchSessionData(variables: import("./sdks/nucleus").Exact<{
90
- input: import("./sdks/nucleus").PatchSessionDataInput;
91
- }>, options?: unknown): Promise<import("./sdks/nucleus").PatchSessionDataMutation>;
99
+ withCustomer?: boolean;
100
+ withAttributes?: boolean;
101
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetSessionQuery>;
102
+ setSessionAttribute(variables: import("./sdks/nucleus").Exact<{
103
+ input: import("./sdks/nucleus").SetSessionAttributeInput;
104
+ }>, options?: unknown): Promise<import("./sdks/nucleus").SetSessionAttributeMutation>;
105
+ patchSessionAttributes(variables: import("./sdks/nucleus").Exact<{
106
+ input: import("./sdks/nucleus").PatchSessionAttributesInput;
107
+ }>, options?: unknown): Promise<import("./sdks/nucleus").PatchSessionAttributesMutation>;
92
108
  getStateMachine(variables: import("./sdks/nucleus").Exact<{
93
109
  id: string;
94
110
  versionId: string;
@@ -3,6 +3,7 @@ export declare const Reclameaqui: new (options?: import("./client/http").HttpCli
3
3
  readonly http: any;
4
4
  forTenant(tenant: string): any;
5
5
  withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
6
7
  } & {
7
8
  getReclameAquiInstance(variables: import("./sdks/reclameaqui").Exact<{
8
9
  id: string;
@@ -86,6 +86,11 @@ export type Scalars = {
86
86
  output: void;
87
87
  };
88
88
  };
89
+ export declare enum AppInstanceStatus {
90
+ Active = "Active",
91
+ Failing = "Failing",
92
+ Inactive = "Inactive"
93
+ }
89
94
  export type ChatWidget = {
90
95
  id: Scalars['ID']['output'];
91
96
  name: Scalars['String']['output'];
@@ -154,6 +159,7 @@ export type SendMessageToChatWidgetInput = {
154
159
  };
155
160
  export type StartChatWidgetSessionInput = {
156
161
  chatId: Scalars['ID']['input'];
162
+ userIdentifier: Scalars['ID']['input'];
157
163
  };
158
164
  export type Subscription = {
159
165
  onChatWidgetMessage: ChatWidgetMessage;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.OnChatWidgetMessageDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = void 0;
4
+ exports.serviceName = exports.getSdk = exports.OnChatWidgetMessageDocument = exports.SendMessageToChatWidgetDocument = exports.StartChatWidgetSessionDocument = exports.RemoveChatWidgetDocument = exports.UpdateChatWidgetDocument = exports.CreateChatWidgetDocument = exports.ListChatWidgetsDocument = exports.GetChatWidgetDocument = exports.ChatWidgetMessageFragmentDoc = exports.ChatWidgetFragmentDoc = exports.Typenames = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
5
+ var AppInstanceStatus;
6
+ (function (AppInstanceStatus) {
7
+ AppInstanceStatus["Active"] = "Active";
8
+ AppInstanceStatus["Failing"] = "Failing";
9
+ AppInstanceStatus["Inactive"] = "Inactive";
10
+ })(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
5
11
  var SubscriptionAction;
6
12
  (function (SubscriptionAction) {
7
13
  SubscriptionAction["Created"] = "CREATED";
@@ -86,6 +86,11 @@ export type Scalars = {
86
86
  output: void;
87
87
  };
88
88
  };
89
+ export declare enum AppInstanceStatus {
90
+ Active = "Active",
91
+ Failing = "Failing",
92
+ Inactive = "Inactive"
93
+ }
89
94
  export type CreateDrozBotInstanceInput = {
90
95
  credentialsId: Scalars['ID']['input'];
91
96
  isTest?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozbotFragmentDoc = exports.Typenames = void 0;
4
+ exports.serviceName = exports.getSdk = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozbotFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
5
+ var AppInstanceStatus;
6
+ (function (AppInstanceStatus) {
7
+ AppInstanceStatus["Active"] = "Active";
8
+ AppInstanceStatus["Failing"] = "Failing";
9
+ AppInstanceStatus["Inactive"] = "Inactive";
10
+ })(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
5
11
  var Typenames;
6
12
  (function (Typenames) {
7
13
  Typenames["Any"] = "Any";
@@ -86,6 +86,11 @@ export type Scalars = {
86
86
  output: void;
87
87
  };
88
88
  };
89
+ export declare enum AppInstanceStatus {
90
+ Active = "Active",
91
+ Failing = "Failing",
92
+ Inactive = "Inactive"
93
+ }
89
94
  export type AssignTicketInput = {
90
95
  assigneeId: Scalars['ID']['input'];
91
96
  ticketId: Scalars['ID']['input'];
@@ -96,10 +101,6 @@ export type AssignTicketMyselfInput = {
96
101
  export type CloseTicketInput = {
97
102
  ticketId: Scalars['ID']['input'];
98
103
  };
99
- export type CreateCustomerInput = {
100
- email?: InputMaybe<Scalars['EmailAddress']['input']>;
101
- name?: InputMaybe<Scalars['String']['input']>;
102
- };
103
104
  export type CreateDrozChatAgentInput = {
104
105
  email: Scalars['EmailAddress']['input'];
105
106
  name: Scalars['String']['input'];
@@ -114,18 +115,6 @@ export type CreateTicketMessageInput = {
114
115
  ticketId: Scalars['ID']['input'];
115
116
  type: TicketMessageType;
116
117
  };
117
- export type Customer = {
118
- createdAt: Scalars['DateTime']['output'];
119
- email?: Maybe<Scalars['EmailAddress']['output']>;
120
- id: Scalars['ID']['output'];
121
- name?: Maybe<Scalars['String']['output']>;
122
- phone?: Maybe<Scalars['PhoneNumber']['output']>;
123
- updatedAt: Scalars['DateTime']['output'];
124
- };
125
- export type CustomersConnection = {
126
- nodes: Array<Customer>;
127
- pageInfo: PageInfo;
128
- };
129
118
  export type DrozChatAgent = {
130
119
  createdAt: Scalars['DateTime']['output'];
131
120
  email: Scalars['EmailAddress']['output'];
@@ -148,13 +137,11 @@ export type Mutation = {
148
137
  assignTicket: Ticket;
149
138
  assignTicketMyself: Ticket;
150
139
  closeTicket: Ticket;
151
- createCustomer: Customer;
152
140
  createDrozChatAgent: DrozChatAgent;
153
141
  createTicket: Ticket;
154
142
  createTicketMessage: TicketMessage;
155
143
  markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
156
144
  unassignTicket: Ticket;
157
- updateCustomer: Customer;
158
145
  version?: Maybe<Scalars['String']['output']>;
159
146
  };
160
147
  export type MutationAssignTicketArgs = {
@@ -166,9 +153,6 @@ export type MutationAssignTicketMyselfArgs = {
166
153
  export type MutationCloseTicketArgs = {
167
154
  input: CloseTicketInput;
168
155
  };
169
- export type MutationCreateCustomerArgs = {
170
- input: CreateCustomerInput;
171
- };
172
156
  export type MutationCreateDrozChatAgentArgs = {
173
157
  input: CreateDrozChatAgentInput;
174
158
  };
@@ -184,21 +168,16 @@ export type MutationMarkTicketMessagesAsReadArgs = {
184
168
  export type MutationUnassignTicketArgs = {
185
169
  input: UnassignTicketInput;
186
170
  };
187
- export type MutationUpdateCustomerArgs = {
188
- input: UpdateCustomerInput;
189
- };
190
171
  export type PageInfo = {
191
172
  hasNext: Scalars['Boolean']['output'];
192
173
  next?: Maybe<Scalars['Base64']['output']>;
193
174
  };
194
175
  export type Query = {
195
176
  app?: Maybe<Scalars['DRN']['output']>;
196
- getCustomer?: Maybe<Customer>;
197
177
  getDrozChatAgent?: Maybe<DrozChatAgent>;
198
178
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
199
179
  getTicket?: Maybe<Ticket>;
200
180
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
201
- listCustomers: CustomersConnection;
202
181
  listDrozChatAgents: DrozChatAgentsConnection;
203
182
  listTicketMessages: TicketMessagesConnection;
204
183
  listTickets: TicketsConnection;
@@ -208,18 +187,12 @@ export type Query = {
208
187
  listTicketsInQueue: TicketsConnection;
209
188
  version?: Maybe<Scalars['String']['output']>;
210
189
  };
211
- export type QueryGetCustomerArgs = {
212
- id: Scalars['ID']['input'];
213
- };
214
190
  export type QueryGetDrozChatAgentArgs = {
215
191
  id: Scalars['ID']['input'];
216
192
  };
217
193
  export type QueryGetTicketArgs = {
218
194
  id: Scalars['ID']['input'];
219
195
  };
220
- export type QueryListCustomersArgs = {
221
- next?: InputMaybe<Scalars['Base64']['input']>;
222
- };
223
196
  export type QueryListDrozChatAgentsArgs = {
224
197
  next?: InputMaybe<Scalars['Base64']['input']>;
225
198
  };
@@ -264,7 +237,7 @@ export type Ticket = {
264
237
  assigneeId?: Maybe<Scalars['ID']['output']>;
265
238
  channel?: Maybe<TicketChannel>;
266
239
  createdAt: Scalars['DateTime']['output'];
267
- customer: Customer;
240
+ customer: TicketCustomer;
268
241
  customerId: Scalars['ID']['output'];
269
242
  id: Scalars['ID']['output'];
270
243
  lastMessage?: Maybe<Scalars['String']['output']>;
@@ -284,6 +257,14 @@ export type TicketChannel = {
284
257
  drn?: Maybe<Scalars['DRN']['output']>;
285
258
  name?: Maybe<Scalars['String']['output']>;
286
259
  };
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
+ };
287
268
  export type TicketMessage = {
288
269
  body: Scalars['String']['output'];
289
270
  contentType: Scalars['String']['output'];
@@ -335,7 +316,6 @@ export type TicketsConnection = {
335
316
  };
336
317
  export declare enum Typenames {
337
318
  Any = "Any",
338
- Customers = "Customers",
339
319
  DrozChatAgentExtension = "DrozChatAgentExtension",
340
320
  GraphqlConnections = "GraphqlConnections",
341
321
  GraphqlSubscriptions = "GraphqlSubscriptions",
@@ -346,11 +326,6 @@ export declare enum Typenames {
346
326
  export type UnassignTicketInput = {
347
327
  ticketId: Scalars['ID']['input'];
348
328
  };
349
- export type UpdateCustomerInput = {
350
- email?: InputMaybe<Scalars['EmailAddress']['input']>;
351
- id: Scalars['ID']['input'];
352
- name?: InputMaybe<Scalars['String']['input']>;
353
- };
354
329
  export type DrozChatAgentFragment = (Pick<DrozChatAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
355
330
  extension?: Maybe<Pick<DrozChatAgentExtension, 'id'>>;
356
331
  });
@@ -375,34 +350,7 @@ export type GetDrozChatAgentQueryVariables = Exact<{
375
350
  export type GetDrozChatAgentQuery = {
376
351
  getDrozChatAgent?: Maybe<DrozChatAgentFragment>;
377
352
  };
378
- export type CustomerFragment = Pick<Customer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
379
- export type CreateCustomerMutationVariables = Exact<{
380
- input: CreateCustomerInput;
381
- }>;
382
- export type CreateCustomerMutation = {
383
- createCustomer: CustomerFragment;
384
- };
385
- export type UpdateCustomerMutationVariables = Exact<{
386
- input: UpdateCustomerInput;
387
- }>;
388
- export type UpdateCustomerMutation = {
389
- updateCustomer: CustomerFragment;
390
- };
391
- export type ListCustomersQueryVariables = Exact<{
392
- next?: InputMaybe<Scalars['Base64']['input']>;
393
- }>;
394
- export type ListCustomersQuery = {
395
- listCustomers: {
396
- pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
397
- nodes: Array<CustomerFragment>;
398
- };
399
- };
400
- export type GetCustomerQueryVariables = Exact<{
401
- id: Scalars['ID']['input'];
402
- }>;
403
- export type GetCustomerQuery = {
404
- getCustomer?: Maybe<CustomerFragment>;
405
- };
353
+ export type CustomerFragment = Pick<TicketCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
406
354
  export type DrozChatChannelFragment = Pick<TicketChannel, 'drn' | 'name' | 'appId' | 'appName'>;
407
355
  export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
408
356
  assignee?: Maybe<DrozChatAgentFragment>;
@@ -537,43 +485,35 @@ export type OnTicketMessageSubscription = {
537
485
  });
538
486
  };
539
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 ";
540
- export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\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 ";
541
489
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
542
- 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 Customer {\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 ";
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 ";
543
491
  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 ";
544
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 ";
545
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 ";
546
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 ";
547
- export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
548
- export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
549
- export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
550
- export declare const GetCustomerDocument = "\n query getCustomer($id: ID!) {\n getCustomer(id: $id) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
551
- 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 Customer {\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 ";
552
- 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 Customer {\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 ";
553
- 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 Customer {\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 ";
554
- 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 Customer {\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 ";
555
- 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 Customer {\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 ";
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 ";
556
500
  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 ";
557
- 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 Customer {\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 ";
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 ";
558
502
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
559
503
  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 ";
560
- 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 Customer {\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 ";
561
- 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 Customer {\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 ";
562
- 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 Customer {\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 ";
563
- 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 Customer {\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 ";
564
- 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 Customer {\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 ";
565
- 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 Customer {\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 ";
566
- 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 Customer {\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 ";
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 ";
567
511
  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 ";
568
512
  export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
569
513
  export declare function getSdk<C, E>(requester: Requester<C, E>): {
570
514
  createDrozChatAgent(variables: CreateDrozChatAgentMutationVariables, options?: C): Promise<CreateDrozChatAgentMutation>;
571
515
  listDrozChatAgents(variables?: ListDrozChatAgentsQueryVariables, options?: C): Promise<ListDrozChatAgentsQuery>;
572
516
  getDrozChatAgent(variables: GetDrozChatAgentQueryVariables, options?: C): Promise<GetDrozChatAgentQuery>;
573
- createCustomer(variables: CreateCustomerMutationVariables, options?: C): Promise<CreateCustomerMutation>;
574
- updateCustomer(variables: UpdateCustomerMutationVariables, options?: C): Promise<UpdateCustomerMutation>;
575
- listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
576
- getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
577
517
  getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
578
518
  listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
579
519
  listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;