@droz-js/sdk 0.1.2

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.
@@ -0,0 +1,524 @@
1
+ import Observable from 'zen-observable';
2
+ export type Maybe<T> = T;
3
+ export type InputMaybe<T> = T;
4
+ export type Exact<T extends {
5
+ [key: string]: unknown;
6
+ }> = {
7
+ [K in keyof T]: T[K];
8
+ };
9
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
+ [SubKey in K]?: Maybe<T[SubKey]>;
11
+ };
12
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
+ [SubKey in K]: Maybe<T[SubKey]>;
14
+ };
15
+ export type MakeEmpty<T extends {
16
+ [key: string]: unknown;
17
+ }, K extends keyof T> = {
18
+ [_ in K]?: never;
19
+ };
20
+ export type Incremental<T> = T | {
21
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
22
+ };
23
+ /** All built-in and custom scalars, mapped to their actual values */
24
+ export type Scalars = {
25
+ ID: {
26
+ input: string;
27
+ output: string;
28
+ };
29
+ String: {
30
+ input: string;
31
+ output: string;
32
+ };
33
+ Boolean: {
34
+ input: boolean;
35
+ output: boolean;
36
+ };
37
+ Int: {
38
+ input: number;
39
+ output: number;
40
+ };
41
+ Float: {
42
+ input: number;
43
+ output: number;
44
+ };
45
+ Base64: {
46
+ input: object;
47
+ output: string;
48
+ };
49
+ DRN: {
50
+ input: string;
51
+ output: string;
52
+ };
53
+ Date: {
54
+ input: Date;
55
+ output: Date;
56
+ };
57
+ DateTime: {
58
+ input: Date;
59
+ output: Date;
60
+ };
61
+ EmailAddress: {
62
+ input: string;
63
+ output: string;
64
+ };
65
+ JSON: {
66
+ input: any;
67
+ output: any;
68
+ };
69
+ JSONObject: {
70
+ input: any;
71
+ output: any;
72
+ };
73
+ Set: {
74
+ input: any;
75
+ output: any;
76
+ };
77
+ URL: {
78
+ input: string;
79
+ output: string;
80
+ };
81
+ Void: {
82
+ input: void;
83
+ output: void;
84
+ };
85
+ };
86
+ export type Agent = {
87
+ email: Scalars['EmailAddress']['output'];
88
+ id: Scalars['ID']['output'];
89
+ name: Scalars['String']['output'];
90
+ };
91
+ export type AssignTicketInput = {
92
+ assigneeId: Scalars['ID']['input'];
93
+ ticketId: Scalars['ID']['input'];
94
+ };
95
+ export type AssignTicketMyselfInput = {
96
+ ticketId: Scalars['ID']['input'];
97
+ };
98
+ export type CloseTicketInput = {
99
+ ticketId: Scalars['ID']['input'];
100
+ };
101
+ export type CreateCustomerInput = {
102
+ email?: InputMaybe<Scalars['EmailAddress']['input']>;
103
+ name?: InputMaybe<Scalars['String']['input']>;
104
+ };
105
+ export type CreateTicketInput = {
106
+ customerId: Scalars['ID']['input'];
107
+ subject: Scalars['String']['input'];
108
+ };
109
+ export type CreateTicketMessageInput = {
110
+ body: Scalars['String']['input'];
111
+ contentType: Scalars['String']['input'];
112
+ ticketId: Scalars['ID']['input'];
113
+ type: TicketMessageType;
114
+ };
115
+ export type Customer = {
116
+ createdAt: Scalars['DateTime']['output'];
117
+ email?: Maybe<Scalars['EmailAddress']['output']>;
118
+ id: Scalars['ID']['output'];
119
+ name?: Maybe<Scalars['String']['output']>;
120
+ updatedAt: Scalars['DateTime']['output'];
121
+ };
122
+ export type CustomersConnection = {
123
+ nodes: Array<Customer>;
124
+ pageInfo: PageInfo;
125
+ };
126
+ export type MarkTicketMessagesAsReadInput = {
127
+ ticketId: Scalars['ID']['input'];
128
+ };
129
+ export type Mutation = {
130
+ assignTicket: Ticket;
131
+ assignTicketMyself: Ticket;
132
+ closeTicket: Ticket;
133
+ createCustomer: Customer;
134
+ createTicket: Ticket;
135
+ createTicketMessage: TicketMessage;
136
+ markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
137
+ unassignTicket: Ticket;
138
+ updateCustomer: Customer;
139
+ version?: Maybe<Scalars['String']['output']>;
140
+ };
141
+ export type MutationAssignTicketArgs = {
142
+ input: AssignTicketInput;
143
+ };
144
+ export type MutationAssignTicketMyselfArgs = {
145
+ input: AssignTicketMyselfInput;
146
+ };
147
+ export type MutationCloseTicketArgs = {
148
+ input: CloseTicketInput;
149
+ };
150
+ export type MutationCreateCustomerArgs = {
151
+ input: CreateCustomerInput;
152
+ };
153
+ export type MutationCreateTicketArgs = {
154
+ input: CreateTicketInput;
155
+ };
156
+ export type MutationCreateTicketMessageArgs = {
157
+ input: CreateTicketMessageInput;
158
+ };
159
+ export type MutationMarkTicketMessagesAsReadArgs = {
160
+ input: MarkTicketMessagesAsReadInput;
161
+ };
162
+ export type MutationUnassignTicketArgs = {
163
+ input: UnassignTicketInput;
164
+ };
165
+ export type MutationUpdateCustomerArgs = {
166
+ input: UpdateCustomerInput;
167
+ };
168
+ export type PageInfo = {
169
+ hasNext: Scalars['Boolean']['output'];
170
+ next?: Maybe<Scalars['Base64']['output']>;
171
+ };
172
+ export type Query = {
173
+ app?: Maybe<Scalars['DRN']['output']>;
174
+ getCustomer?: Maybe<Customer>;
175
+ getTicket?: Maybe<Ticket>;
176
+ getWsEndpoint?: Maybe<Scalars['String']['output']>;
177
+ listCustomers: CustomersConnection;
178
+ listTicketMessages: TicketMessagesConnection;
179
+ listTickets: TicketsConnection;
180
+ listTicketsClosed: TicketsConnection;
181
+ listTicketsInProgress: TicketsConnection;
182
+ listTicketsInProgressMine: TicketsConnection;
183
+ listTicketsInQueue: TicketsConnection;
184
+ version?: Maybe<Scalars['String']['output']>;
185
+ };
186
+ export type QueryGetCustomerArgs = {
187
+ id: Scalars['ID']['input'];
188
+ };
189
+ export type QueryGetTicketArgs = {
190
+ id: Scalars['ID']['input'];
191
+ };
192
+ export type QueryListCustomersArgs = {
193
+ next?: InputMaybe<Scalars['Base64']['input']>;
194
+ };
195
+ export type QueryListTicketMessagesArgs = {
196
+ next?: InputMaybe<Scalars['Base64']['input']>;
197
+ ticketId: Scalars['ID']['input'];
198
+ };
199
+ export type QueryListTicketsArgs = {
200
+ assigneeId?: InputMaybe<Scalars['ID']['input']>;
201
+ next?: InputMaybe<Scalars['Base64']['input']>;
202
+ state: TicketState;
203
+ };
204
+ export type QueryListTicketsClosedArgs = {
205
+ next?: InputMaybe<Scalars['Base64']['input']>;
206
+ };
207
+ export type QueryListTicketsInProgressArgs = {
208
+ next?: InputMaybe<Scalars['Base64']['input']>;
209
+ };
210
+ export type QueryListTicketsInProgressMineArgs = {
211
+ next?: InputMaybe<Scalars['Base64']['input']>;
212
+ };
213
+ export type QueryListTicketsInQueueArgs = {
214
+ next?: InputMaybe<Scalars['Base64']['input']>;
215
+ };
216
+ export type Subscription = {
217
+ onTicketClosed: TicketSubscription;
218
+ onTicketInProgressMine: TicketSubscription;
219
+ onTicketInQueue: TicketSubscription;
220
+ onTicketMessage: TicketMessageSubscription;
221
+ version?: Maybe<Scalars['String']['output']>;
222
+ };
223
+ export type SubscriptionOnTicketMessageArgs = {
224
+ ticketId: Scalars['ID']['input'];
225
+ };
226
+ export declare enum SubscriptionAction {
227
+ Created = "CREATED",
228
+ Removed = "REMOVED",
229
+ Updated = "UPDATED"
230
+ }
231
+ export type Ticket = {
232
+ assignee?: Maybe<Agent>;
233
+ assigneeId?: Maybe<Scalars['ID']['output']>;
234
+ createdAt: Scalars['DateTime']['output'];
235
+ customer: Customer;
236
+ customerId: Scalars['ID']['output'];
237
+ id: Scalars['ID']['output'];
238
+ lastMessage?: Maybe<Scalars['String']['output']>;
239
+ lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
240
+ messagesCount: Scalars['Int']['output'];
241
+ priority: TicketPriority;
242
+ state: TicketState;
243
+ status: TicketStatus;
244
+ subject?: Maybe<Scalars['String']['output']>;
245
+ unreadMessagesCount: Scalars['Int']['output'];
246
+ updatedAt: Scalars['DateTime']['output'];
247
+ };
248
+ export type TicketMessage = {
249
+ body: Scalars['String']['output'];
250
+ contentType: Scalars['String']['output'];
251
+ createdAt: Scalars['DateTime']['output'];
252
+ id: Scalars['ID']['output'];
253
+ sentBy?: Maybe<Scalars['String']['output']>;
254
+ ticketId: Scalars['ID']['output'];
255
+ type: TicketMessageType;
256
+ updatedAt: Scalars['DateTime']['output'];
257
+ };
258
+ export type TicketMessageSubscription = {
259
+ action: SubscriptionAction;
260
+ message: TicketMessage;
261
+ };
262
+ export declare enum TicketMessageType {
263
+ Agent = "AGENT",
264
+ System = "SYSTEM",
265
+ User = "USER"
266
+ }
267
+ export type TicketMessagesConnection = {
268
+ nodes: Array<TicketMessage>;
269
+ pageInfo: PageInfo;
270
+ };
271
+ export declare enum TicketPriority {
272
+ High = "HIGH",
273
+ Low = "LOW",
274
+ Medium = "MEDIUM",
275
+ Urgent = "URGENT"
276
+ }
277
+ export declare enum TicketState {
278
+ Closed = "CLOSED",
279
+ InProgress = "IN_PROGRESS",
280
+ InQueue = "IN_QUEUE"
281
+ }
282
+ export declare enum TicketStatus {
283
+ AwaitingCustomer = "AWAITING_CUSTOMER",
284
+ InProgress = "IN_PROGRESS",
285
+ OnHold = "ON_HOLD",
286
+ Pending = "PENDING",
287
+ Resolved = "RESOLVED"
288
+ }
289
+ export type TicketSubscription = {
290
+ action: SubscriptionAction;
291
+ ticket: Ticket;
292
+ };
293
+ export type TicketsConnection = {
294
+ nodes: Array<Ticket>;
295
+ pageInfo: PageInfo;
296
+ };
297
+ export declare enum Typenames {
298
+ Any = "Any",
299
+ Customers = "Customers",
300
+ GraphqlConnections = "GraphqlConnections",
301
+ GraphqlSubscriptions = "GraphqlSubscriptions",
302
+ TicketMappings = "TicketMappings",
303
+ TicketMessages = "TicketMessages",
304
+ Tickets = "Tickets"
305
+ }
306
+ export type UnassignTicketInput = {
307
+ ticketId: Scalars['ID']['input'];
308
+ };
309
+ export type UpdateCustomerInput = {
310
+ email?: InputMaybe<Scalars['EmailAddress']['input']>;
311
+ id: Scalars['ID']['input'];
312
+ name?: InputMaybe<Scalars['String']['input']>;
313
+ };
314
+ export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email'>;
315
+ export type CustomerFragment = Pick<Customer, 'id' | 'name' | 'email' | 'createdAt' | 'updatedAt'>;
316
+ export type CreateCustomerMutationVariables = Exact<{
317
+ input: CreateCustomerInput;
318
+ }>;
319
+ export type CreateCustomerMutation = {
320
+ createCustomer: CustomerFragment;
321
+ };
322
+ export type UpdateCustomerMutationVariables = Exact<{
323
+ input: UpdateCustomerInput;
324
+ }>;
325
+ export type UpdateCustomerMutation = {
326
+ updateCustomer: CustomerFragment;
327
+ };
328
+ export type ListCustomersQueryVariables = Exact<{
329
+ next?: InputMaybe<Scalars['Base64']['input']>;
330
+ }>;
331
+ export type ListCustomersQuery = {
332
+ listCustomers: {
333
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
334
+ nodes: Array<CustomerFragment>;
335
+ };
336
+ };
337
+ export type GetCustomerQueryVariables = Exact<{
338
+ id: Scalars['ID']['input'];
339
+ }>;
340
+ export type GetCustomerQuery = {
341
+ getCustomer?: Maybe<CustomerFragment>;
342
+ };
343
+ export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
344
+ assignee?: Maybe<AgentFragment>;
345
+ customer: CustomerFragment;
346
+ });
347
+ export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | 'body' | 'createdAt' | 'updatedAt'>;
348
+ export type GetTicketQueryVariables = Exact<{
349
+ id: Scalars['ID']['input'];
350
+ }>;
351
+ export type GetTicketQuery = {
352
+ getTicket?: Maybe<TicketFragment>;
353
+ };
354
+ export type ListTicketsQueryVariables = Exact<{
355
+ state: TicketState;
356
+ assigneeId?: InputMaybe<Scalars['ID']['input']>;
357
+ next?: InputMaybe<Scalars['Base64']['input']>;
358
+ }>;
359
+ export type ListTicketsQuery = {
360
+ listTickets: {
361
+ nodes: Array<TicketFragment>;
362
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
363
+ };
364
+ };
365
+ export type ListTicketsInQueueQueryVariables = Exact<{
366
+ next?: InputMaybe<Scalars['Base64']['input']>;
367
+ }>;
368
+ export type ListTicketsInQueueQuery = {
369
+ listTicketsInQueue: {
370
+ nodes: Array<TicketFragment>;
371
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
372
+ };
373
+ };
374
+ export type ListTicketsInProgressMineQueryVariables = Exact<{
375
+ next?: InputMaybe<Scalars['Base64']['input']>;
376
+ }>;
377
+ export type ListTicketsInProgressMineQuery = {
378
+ listTicketsInProgressMine: {
379
+ nodes: Array<TicketFragment>;
380
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
381
+ };
382
+ };
383
+ export type ListTicketsClosedQueryVariables = Exact<{
384
+ next?: InputMaybe<Scalars['Base64']['input']>;
385
+ }>;
386
+ export type ListTicketsClosedQuery = {
387
+ listTicketsClosed: {
388
+ nodes: Array<TicketFragment>;
389
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
390
+ };
391
+ };
392
+ export type ListTicketMessagesQueryVariables = Exact<{
393
+ ticketId: Scalars['ID']['input'];
394
+ next?: InputMaybe<Scalars['Base64']['input']>;
395
+ }>;
396
+ export type ListTicketMessagesQuery = {
397
+ listTicketMessages: {
398
+ pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
399
+ nodes: Array<TicketMessageFragment>;
400
+ };
401
+ };
402
+ export type CreateTicketMutationVariables = Exact<{
403
+ input: CreateTicketInput;
404
+ }>;
405
+ export type CreateTicketMutation = {
406
+ createTicket: TicketFragment;
407
+ };
408
+ export type MarkTicketMessagesAsReadMutationVariables = Exact<{
409
+ input: MarkTicketMessagesAsReadInput;
410
+ }>;
411
+ export type MarkTicketMessagesAsReadMutation = Pick<Mutation, 'markTicketMessagesAsRead'>;
412
+ export type CreateTicketMessageMutationVariables = Exact<{
413
+ input: CreateTicketMessageInput;
414
+ }>;
415
+ export type CreateTicketMessageMutation = {
416
+ createTicketMessage: TicketMessageFragment;
417
+ };
418
+ export type AssignTicketMutationVariables = Exact<{
419
+ input: AssignTicketInput;
420
+ }>;
421
+ export type AssignTicketMutation = {
422
+ assignTicket: TicketFragment;
423
+ };
424
+ export type AssignTicketMyselfMutationVariables = Exact<{
425
+ input: AssignTicketMyselfInput;
426
+ }>;
427
+ export type AssignTicketMyselfMutation = {
428
+ assignTicketMyself: TicketFragment;
429
+ };
430
+ export type UnassignTicketMutationVariables = Exact<{
431
+ input: UnassignTicketInput;
432
+ }>;
433
+ export type UnassignTicketMutation = {
434
+ unassignTicket: TicketFragment;
435
+ };
436
+ export type CloseTicketMutationVariables = Exact<{
437
+ input: CloseTicketInput;
438
+ }>;
439
+ export type CloseTicketMutation = {
440
+ closeTicket: TicketFragment;
441
+ };
442
+ export type OnTicketInQueueSubscriptionVariables = Exact<{
443
+ [key: string]: never;
444
+ }>;
445
+ export type OnTicketInQueueSubscription = {
446
+ onTicketInQueue: (Pick<TicketSubscription, 'action'> & {
447
+ ticket: TicketFragment;
448
+ });
449
+ };
450
+ export type OnTicketInProgressMineSubscriptionVariables = Exact<{
451
+ [key: string]: never;
452
+ }>;
453
+ export type OnTicketInProgressMineSubscription = {
454
+ onTicketInProgressMine: (Pick<TicketSubscription, 'action'> & {
455
+ ticket: TicketFragment;
456
+ });
457
+ };
458
+ export type OnTicketClosedSubscriptionVariables = Exact<{
459
+ [key: string]: never;
460
+ }>;
461
+ export type OnTicketClosedSubscription = {
462
+ onTicketClosed: (Pick<TicketSubscription, 'action'> & {
463
+ ticket: TicketFragment;
464
+ });
465
+ };
466
+ export type OnTicketMessageSubscriptionVariables = Exact<{
467
+ ticketId: Scalars['ID']['input'];
468
+ }>;
469
+ export type OnTicketMessageSubscription = {
470
+ onTicketMessage: (Pick<TicketMessageSubscription, 'action'> & {
471
+ message: TicketMessageFragment;
472
+ });
473
+ };
474
+ export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n}\n ";
475
+ export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
476
+ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n ";
477
+ 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 ";
478
+ 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 createdAt\n updatedAt\n}\n ";
479
+ 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 createdAt\n updatedAt\n}\n ";
480
+ 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 createdAt\n updatedAt\n}\n ";
481
+ 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 createdAt\n updatedAt\n}\n ";
482
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
483
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
484
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
485
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
486
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
487
+ 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 ";
488
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
489
+ export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
490
+ 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 ";
491
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
492
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
493
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
494
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
495
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
496
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
497
+ 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 ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
498
+ 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 ";
499
+ export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | Observable<R>;
500
+ export declare function getSdk<C, E>(requester: Requester<C, E>): {
501
+ createCustomer(variables: CreateCustomerMutationVariables, options?: C): Promise<CreateCustomerMutation>;
502
+ updateCustomer(variables: UpdateCustomerMutationVariables, options?: C): Promise<UpdateCustomerMutation>;
503
+ listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
504
+ getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
505
+ getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
506
+ listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
507
+ listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
508
+ listTicketsInProgressMine(variables?: ListTicketsInProgressMineQueryVariables, options?: C): Promise<ListTicketsInProgressMineQuery>;
509
+ listTicketsClosed(variables?: ListTicketsClosedQueryVariables, options?: C): Promise<ListTicketsClosedQuery>;
510
+ listTicketMessages(variables: ListTicketMessagesQueryVariables, options?: C): Promise<ListTicketMessagesQuery>;
511
+ createTicket(variables: CreateTicketMutationVariables, options?: C): Promise<CreateTicketMutation>;
512
+ markTicketMessagesAsRead(variables: MarkTicketMessagesAsReadMutationVariables, options?: C): Promise<MarkTicketMessagesAsReadMutation>;
513
+ createTicketMessage(variables: CreateTicketMessageMutationVariables, options?: C): Promise<CreateTicketMessageMutation>;
514
+ assignTicket(variables: AssignTicketMutationVariables, options?: C): Promise<AssignTicketMutation>;
515
+ assignTicketMyself(variables: AssignTicketMyselfMutationVariables, options?: C): Promise<AssignTicketMyselfMutation>;
516
+ unassignTicket(variables: UnassignTicketMutationVariables, options?: C): Promise<UnassignTicketMutation>;
517
+ closeTicket(variables: CloseTicketMutationVariables, options?: C): Promise<CloseTicketMutation>;
518
+ onTicketInQueue(variables?: OnTicketInQueueSubscriptionVariables, options?: C): Observable<OnTicketInQueueSubscription>;
519
+ onTicketInProgressMine(variables?: OnTicketInProgressMineSubscriptionVariables, options?: C): Observable<OnTicketInProgressMineSubscription>;
520
+ onTicketClosed(variables?: OnTicketClosedSubscriptionVariables, options?: C): Observable<OnTicketClosedSubscription>;
521
+ onTicketMessage(variables: OnTicketMessageSubscriptionVariables, options?: C): Observable<OnTicketMessageSubscription>;
522
+ };
523
+ export type Sdk = ReturnType<typeof getSdk>;
524
+ export declare const serviceName = "@droz/drozchat";