@droz-js/sdk 0.5.16 → 0.5.18
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 +1 -1
- package/src/drozchat-ws.d.ts +6 -0
- package/src/drozchat.d.ts +6 -0
- package/src/sdks/drozchat.d.ts +59 -19
- package/src/sdks/drozchat.js +39 -11
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -80,6 +80,12 @@ export declare const DrozChatWs: new () => {
|
|
|
80
80
|
closeTicket(variables: import("./sdks/drozchat").Exact<{
|
|
81
81
|
input: import("./sdks/drozchat").CloseTicketInput;
|
|
82
82
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
|
|
83
|
+
addTagsToTicket(variables: import("./sdks/drozchat").Exact<{
|
|
84
|
+
input: import("./sdks/drozchat").AddTagsToTicketInput;
|
|
85
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").AddTagsToTicketMutation>;
|
|
86
|
+
removeTagsFromTicket(variables: import("./sdks/drozchat").Exact<{
|
|
87
|
+
input: import("./sdks/drozchat").RemoveTagsFromTicketInput;
|
|
88
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveTagsFromTicketMutation>;
|
|
83
89
|
transferTicketToChannel(variables: import("./sdks/drozchat").Exact<{
|
|
84
90
|
input: import("./sdks/drozchat").TransferTicketToChannelInput;
|
|
85
91
|
}>, options?: unknown): Promise<import("./sdks/drozchat").TransferTicketToChannelMutation>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -83,6 +83,12 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
83
83
|
closeTicket(variables: import("./sdks/drozchat").Exact<{
|
|
84
84
|
input: import("./sdks/drozchat").CloseTicketInput;
|
|
85
85
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
|
|
86
|
+
addTagsToTicket(variables: import("./sdks/drozchat").Exact<{
|
|
87
|
+
input: import("./sdks/drozchat").AddTagsToTicketInput;
|
|
88
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").AddTagsToTicketMutation>;
|
|
89
|
+
removeTagsFromTicket(variables: import("./sdks/drozchat").Exact<{
|
|
90
|
+
input: import("./sdks/drozchat").RemoveTagsFromTicketInput;
|
|
91
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveTagsFromTicketMutation>;
|
|
86
92
|
transferTicketToChannel(variables: import("./sdks/drozchat").Exact<{
|
|
87
93
|
input: import("./sdks/drozchat").TransferTicketToChannelInput;
|
|
88
94
|
}>, options?: unknown): Promise<import("./sdks/drozchat").TransferTicketToChannelMutation>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -90,6 +90,10 @@ export type AddDrozChatChannelAgentInput = {
|
|
|
90
90
|
agentId: Scalars['ID']['input'];
|
|
91
91
|
channelId: Scalars['ID']['input'];
|
|
92
92
|
};
|
|
93
|
+
export type AddTagsToTicketInput = {
|
|
94
|
+
tags: Array<Scalars['String']['input']>;
|
|
95
|
+
ticketId: Scalars['ID']['input'];
|
|
96
|
+
};
|
|
93
97
|
export declare enum AppInstanceStatus {
|
|
94
98
|
Active = "Active",
|
|
95
99
|
Failing = "Failing",
|
|
@@ -164,6 +168,7 @@ export type MarkTicketMessagesAsReadInput = {
|
|
|
164
168
|
};
|
|
165
169
|
export type Mutation = {
|
|
166
170
|
addDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
171
|
+
addTagsToTicket: Ticket;
|
|
167
172
|
assignTicket: Ticket;
|
|
168
173
|
assignTicketMyself: Ticket;
|
|
169
174
|
closeTicket: Ticket;
|
|
@@ -177,6 +182,7 @@ export type Mutation = {
|
|
|
177
182
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
178
183
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
179
184
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
185
|
+
removeTagsFromTicket: Ticket;
|
|
180
186
|
transferTicketToChannel: Ticket;
|
|
181
187
|
unassignTicket: Ticket;
|
|
182
188
|
updateDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
@@ -185,6 +191,9 @@ export type Mutation = {
|
|
|
185
191
|
export type MutationAddDrozChatChannelAgentArgs = {
|
|
186
192
|
input: AddDrozChatChannelAgentInput;
|
|
187
193
|
};
|
|
194
|
+
export type MutationAddTagsToTicketArgs = {
|
|
195
|
+
input: AddTagsToTicketInput;
|
|
196
|
+
};
|
|
188
197
|
export type MutationAssignTicketArgs = {
|
|
189
198
|
input: AssignTicketInput;
|
|
190
199
|
};
|
|
@@ -224,6 +233,9 @@ export type MutationMarkTicketMessagesAsReadArgs = {
|
|
|
224
233
|
export type MutationRemoveDrozChatChannelAgentArgs = {
|
|
225
234
|
input: RemoveDrozChatChannelAgentInput;
|
|
226
235
|
};
|
|
236
|
+
export type MutationRemoveTagsFromTicketArgs = {
|
|
237
|
+
input: RemoveTagsFromTicketInput;
|
|
238
|
+
};
|
|
227
239
|
export type MutationTransferTicketToChannelArgs = {
|
|
228
240
|
input: TransferTicketToChannelInput;
|
|
229
241
|
};
|
|
@@ -281,6 +293,10 @@ export type RemoveDrozChatChannelAgentInput = {
|
|
|
281
293
|
agentId: Scalars['ID']['input'];
|
|
282
294
|
channelId: Scalars['ID']['input'];
|
|
283
295
|
};
|
|
296
|
+
export type RemoveTagsFromTicketInput = {
|
|
297
|
+
tags: Array<Scalars['String']['input']>;
|
|
298
|
+
ticketId: Scalars['ID']['input'];
|
|
299
|
+
};
|
|
284
300
|
export type Subscription = {
|
|
285
301
|
onTicketByState: TicketSubscription;
|
|
286
302
|
onTicketInProgressMine: TicketSubscription;
|
|
@@ -300,6 +316,7 @@ export declare enum SubscriptionAction {
|
|
|
300
316
|
}
|
|
301
317
|
export type Tag = {
|
|
302
318
|
createdAt: Scalars['DateTime']['output'];
|
|
319
|
+
createdBy?: Maybe<DrozChatAgent>;
|
|
303
320
|
name: Scalars['String']['output'];
|
|
304
321
|
updatedAt: Scalars['DateTime']['output'];
|
|
305
322
|
};
|
|
@@ -312,11 +329,13 @@ export type Ticket = {
|
|
|
312
329
|
assigneeId?: Maybe<Scalars['ID']['output']>;
|
|
313
330
|
channel: DrozChatChannel;
|
|
314
331
|
channelId: Scalars['ID']['output'];
|
|
332
|
+
closedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
315
333
|
createdAt: Scalars['DateTime']['output'];
|
|
316
334
|
customer: DrozChatCustomer;
|
|
317
335
|
customerId: Scalars['ID']['output'];
|
|
318
336
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
319
337
|
externalProviderId?: Maybe<Scalars['String']['output']>;
|
|
338
|
+
firstAgentResponseAt?: Maybe<Scalars['DateTime']['output']>;
|
|
320
339
|
id: Scalars['ID']['output'];
|
|
321
340
|
lastMessage?: Maybe<Scalars['String']['output']>;
|
|
322
341
|
lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -326,6 +345,9 @@ export type Ticket = {
|
|
|
326
345
|
state: TicketState;
|
|
327
346
|
status: TicketStatus;
|
|
328
347
|
subject?: Maybe<Scalars['String']['output']>;
|
|
348
|
+
tags?: Maybe<Array<Scalars['String']['output']>>;
|
|
349
|
+
timeToCloseInMs?: Maybe<Scalars['Float']['output']>;
|
|
350
|
+
timeToFirstAgentResponseInMs?: Maybe<Scalars['Float']['output']>;
|
|
329
351
|
triggerApp?: Maybe<TicketTriggerApp>;
|
|
330
352
|
triggerDrn?: Maybe<Scalars['DRN']['output']>;
|
|
331
353
|
unreadMessagesCount: Scalars['Int']['output'];
|
|
@@ -489,7 +511,9 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
|
|
|
489
511
|
export type RemoveDrozChatChannelAgentMutation = {
|
|
490
512
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
|
|
491
513
|
};
|
|
492
|
-
export type TagFragment = Pick<Tag, 'name' | 'createdAt' | 'updatedAt'
|
|
514
|
+
export type TagFragment = (Pick<Tag, 'name' | 'createdAt' | 'updatedAt'> & {
|
|
515
|
+
createdBy?: Maybe<DrozChatAgentFragment>;
|
|
516
|
+
});
|
|
493
517
|
export type ListTagsQueryVariables = Exact<{
|
|
494
518
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
495
519
|
}>;
|
|
@@ -516,7 +540,7 @@ export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
|
|
|
516
540
|
export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
517
541
|
channels: Array<Pick<TicketTriggerAppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources' | 'unreadMessagesCount'>>;
|
|
518
542
|
});
|
|
519
|
-
export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'externalProviderId' | 'externalId' | '
|
|
543
|
+
export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'tags' | 'externalProviderId' | 'externalId' | 'createdAt' | 'updatedAt' | 'closedAt' | 'lastMessageAt' | 'firstAgentResponseAt' | 'timeToFirstAgentResponseInMs' | 'timeToCloseInMs' | 'messagesCount' | 'lastMessage' | 'unreadMessagesCount'> & {
|
|
520
544
|
assignee?: Maybe<DrozChatAgentFragment>;
|
|
521
545
|
customer: CustomerFragment;
|
|
522
546
|
triggerApp?: Maybe<TicketTriggerAppFragment>;
|
|
@@ -611,6 +635,18 @@ export type CloseTicketMutationVariables = Exact<{
|
|
|
611
635
|
export type CloseTicketMutation = {
|
|
612
636
|
closeTicket: TicketWithSessionFragment;
|
|
613
637
|
};
|
|
638
|
+
export type AddTagsToTicketMutationVariables = Exact<{
|
|
639
|
+
input: AddTagsToTicketInput;
|
|
640
|
+
}>;
|
|
641
|
+
export type AddTagsToTicketMutation = {
|
|
642
|
+
addTagsToTicket: TicketWithSessionFragment;
|
|
643
|
+
};
|
|
644
|
+
export type RemoveTagsFromTicketMutationVariables = Exact<{
|
|
645
|
+
input: RemoveTagsFromTicketInput;
|
|
646
|
+
}>;
|
|
647
|
+
export type RemoveTagsFromTicketMutation = {
|
|
648
|
+
removeTagsFromTicket: TicketWithSessionFragment;
|
|
649
|
+
};
|
|
614
650
|
export type TransferTicketToChannelMutationVariables = Exact<{
|
|
615
651
|
input: TransferTicketToChannelInput;
|
|
616
652
|
}>;
|
|
@@ -641,14 +677,14 @@ export type OnTicketMessageSubscription = {
|
|
|
641
677
|
message: TicketMessageFragment;
|
|
642
678
|
});
|
|
643
679
|
};
|
|
644
|
-
export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
|
|
645
680
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
681
|
+
export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
646
682
|
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n ";
|
|
647
683
|
export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n ";
|
|
648
684
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
649
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
685
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
650
686
|
export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
651
|
-
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
687
|
+
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
652
688
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
653
689
|
export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
654
690
|
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
@@ -659,24 +695,26 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
|
|
|
659
695
|
export declare const EnableDrozChatChannelDocument = "\n mutation enableDrozChatChannel($input: EnableDrozChatChannelInput!) {\n enableDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
660
696
|
export declare const AddDrozChatChannelAgentDocument = "\n mutation addDrozChatChannelAgent($input: AddDrozChatChannelAgentInput!) {\n addDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
661
697
|
export declare const RemoveDrozChatChannelAgentDocument = "\n mutation removeDrozChatChannelAgent($input: RemoveDrozChatChannelAgentInput!) {\n removeDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
662
|
-
export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
|
|
663
|
-
export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
|
|
664
|
-
export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
|
|
665
|
-
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
666
|
-
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
667
|
-
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
698
|
+
export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
699
|
+
export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
700
|
+
export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
701
|
+
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
702
|
+
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
703
|
+
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
668
704
|
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
669
|
-
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
705
|
+
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
670
706
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
671
707
|
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
672
708
|
export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
673
|
-
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
674
|
-
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
675
|
-
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
676
|
-
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n
|
|
677
|
-
export declare const
|
|
678
|
-
export declare const
|
|
679
|
-
export declare const
|
|
709
|
+
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
710
|
+
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
711
|
+
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
712
|
+
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
713
|
+
export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
714
|
+
export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
715
|
+
export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
716
|
+
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
717
|
+
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
680
718
|
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
681
719
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
682
720
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -704,6 +742,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
704
742
|
assignTicketMyself(variables: AssignTicketMyselfMutationVariables, options?: C): Promise<AssignTicketMyselfMutation>;
|
|
705
743
|
unassignTicket(variables: UnassignTicketMutationVariables, options?: C): Promise<UnassignTicketMutation>;
|
|
706
744
|
closeTicket(variables: CloseTicketMutationVariables, options?: C): Promise<CloseTicketMutation>;
|
|
745
|
+
addTagsToTicket(variables: AddTagsToTicketMutationVariables, options?: C): Promise<AddTagsToTicketMutation>;
|
|
746
|
+
removeTagsFromTicket(variables: RemoveTagsFromTicketMutationVariables, options?: C): Promise<RemoveTagsFromTicketMutation>;
|
|
707
747
|
transferTicketToChannel(variables: TransferTicketToChannelMutationVariables, options?: C): Promise<TransferTicketToChannelMutation>;
|
|
708
748
|
onTicketInProgressMine(variables?: OnTicketInProgressMineSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketInProgressMineSubscription>;
|
|
709
749
|
onTicketByState(variables: OnTicketByStateSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketByStateSubscription>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.TagFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -54,19 +54,22 @@ var Typenames;
|
|
|
54
54
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
55
55
|
Typenames["Tickets"] = "Tickets";
|
|
56
56
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
57
|
-
exports.TagFragmentDoc = `
|
|
58
|
-
fragment tag on Tag {
|
|
59
|
-
name
|
|
60
|
-
createdAt
|
|
61
|
-
updatedAt
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
57
|
exports.DrozChatAgentFragmentDoc = `
|
|
65
58
|
fragment drozChatAgent on DrozChatAgent {
|
|
66
59
|
id
|
|
67
60
|
name
|
|
68
61
|
}
|
|
69
62
|
`;
|
|
63
|
+
exports.TagFragmentDoc = `
|
|
64
|
+
fragment tag on Tag {
|
|
65
|
+
name
|
|
66
|
+
createdBy {
|
|
67
|
+
...drozChatAgent
|
|
68
|
+
}
|
|
69
|
+
createdAt
|
|
70
|
+
updatedAt
|
|
71
|
+
}
|
|
72
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
70
73
|
exports.CustomerFragmentDoc = `
|
|
71
74
|
fragment customer on DrozChatCustomer {
|
|
72
75
|
id
|
|
@@ -111,6 +114,7 @@ exports.TicketFragmentDoc = `
|
|
|
111
114
|
state
|
|
112
115
|
status
|
|
113
116
|
priority
|
|
117
|
+
tags
|
|
114
118
|
externalProviderId
|
|
115
119
|
externalId
|
|
116
120
|
assignee {
|
|
@@ -125,12 +129,16 @@ exports.TicketFragmentDoc = `
|
|
|
125
129
|
channel {
|
|
126
130
|
...drozChatChannel
|
|
127
131
|
}
|
|
132
|
+
createdAt
|
|
133
|
+
updatedAt
|
|
134
|
+
closedAt
|
|
135
|
+
lastMessageAt
|
|
136
|
+
firstAgentResponseAt
|
|
137
|
+
timeToFirstAgentResponseInMs
|
|
138
|
+
timeToCloseInMs
|
|
128
139
|
messagesCount
|
|
129
140
|
lastMessage
|
|
130
|
-
lastMessageAt
|
|
131
141
|
unreadMessagesCount
|
|
132
|
-
createdAt
|
|
133
|
-
updatedAt
|
|
134
142
|
}
|
|
135
143
|
${exports.DrozChatAgentFragmentDoc}
|
|
136
144
|
${exports.CustomerFragmentDoc}
|
|
@@ -365,6 +373,20 @@ exports.CloseTicketDocument = `
|
|
|
365
373
|
}
|
|
366
374
|
}
|
|
367
375
|
${exports.TicketWithSessionFragmentDoc}`;
|
|
376
|
+
exports.AddTagsToTicketDocument = `
|
|
377
|
+
mutation addTagsToTicket($input: AddTagsToTicketInput!) {
|
|
378
|
+
addTagsToTicket(input: $input) {
|
|
379
|
+
...ticketWithSession
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
${exports.TicketWithSessionFragmentDoc}`;
|
|
383
|
+
exports.RemoveTagsFromTicketDocument = `
|
|
384
|
+
mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {
|
|
385
|
+
removeTagsFromTicket(input: $input) {
|
|
386
|
+
...ticketWithSession
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
${exports.TicketWithSessionFragmentDoc}`;
|
|
368
390
|
exports.TransferTicketToChannelDocument = `
|
|
369
391
|
mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {
|
|
370
392
|
transferTicketToChannel(input: $input) {
|
|
@@ -476,6 +498,12 @@ function getSdk(requester) {
|
|
|
476
498
|
closeTicket(variables, options) {
|
|
477
499
|
return requester(exports.CloseTicketDocument, variables, options);
|
|
478
500
|
},
|
|
501
|
+
addTagsToTicket(variables, options) {
|
|
502
|
+
return requester(exports.AddTagsToTicketDocument, variables, options);
|
|
503
|
+
},
|
|
504
|
+
removeTagsFromTicket(variables, options) {
|
|
505
|
+
return requester(exports.RemoveTagsFromTicketDocument, variables, options);
|
|
506
|
+
},
|
|
479
507
|
transferTicketToChannel(variables, options) {
|
|
480
508
|
return requester(exports.TransferTicketToChannelDocument, variables, options);
|
|
481
509
|
},
|