@droz-js/sdk 0.5.13 → 0.5.15
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/client/http.js +3 -0
- package/src/drozchat-ws.d.ts +9 -0
- package/src/drozchat.d.ts +9 -0
- package/src/nucleus.js +39 -23
- package/src/sdks/drozchat.d.ts +57 -0
- package/src/sdks/drozchat.js +45 -1
- package/src/sdks/nucleus.d.ts +9 -7
- package/src/sdks/nucleus.js +1 -0
- package/src/sdks/zendesk.d.ts +4 -3
- package/src/sdks/zendesk.js +1 -0
package/package.json
CHANGED
package/src/client/http.js
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -30,6 +30,15 @@ export declare const DrozChatWs: new () => {
|
|
|
30
30
|
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
31
31
|
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
32
32
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
33
|
+
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
34
|
+
next?: object;
|
|
35
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
|
36
|
+
createTags(variables: import("./sdks/drozchat").Exact<{
|
|
37
|
+
input: import("./sdks/drozchat").CreateTagInput;
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTagsMutation>;
|
|
39
|
+
deleteTags(variables: import("./sdks/drozchat").Exact<{
|
|
40
|
+
input: import("./sdks/drozchat").DeleteTagInput;
|
|
41
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTagsMutation>;
|
|
33
42
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
34
43
|
id: string;
|
|
35
44
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -33,6 +33,15 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
33
33
|
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
34
34
|
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
35
35
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
36
|
+
listTags(variables?: import("./sdks/drozchat").Exact<{
|
|
37
|
+
next?: object;
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
|
|
39
|
+
createTags(variables: import("./sdks/drozchat").Exact<{
|
|
40
|
+
input: import("./sdks/drozchat").CreateTagInput;
|
|
41
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTagsMutation>;
|
|
42
|
+
deleteTags(variables: import("./sdks/drozchat").Exact<{
|
|
43
|
+
input: import("./sdks/drozchat").DeleteTagInput;
|
|
44
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTagsMutation>;
|
|
36
45
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
37
46
|
id: string;
|
|
38
47
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/nucleus.js
CHANGED
|
@@ -20,6 +20,41 @@ const helpers_1 = require("./client/helpers");
|
|
|
20
20
|
const http_1 = require("./client/http");
|
|
21
21
|
const nucleus_1 = require("./sdks/nucleus");
|
|
22
22
|
__exportStar(require("./sdks/nucleus"), exports);
|
|
23
|
+
function browserUpload(method, url, body, onProgress) {
|
|
24
|
+
return new Promise((resolve, reject) => {
|
|
25
|
+
const xhr = new XMLHttpRequest();
|
|
26
|
+
if (onProgress) {
|
|
27
|
+
xhr.upload.addEventListener('progress', evt => {
|
|
28
|
+
onProgress(evt.loaded / evt.total);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
xhr.addEventListener('load', () => {
|
|
32
|
+
const ok = xhr.status >= 200 && xhr.status < 300;
|
|
33
|
+
const text = xhr.responseText;
|
|
34
|
+
if (onProgress)
|
|
35
|
+
onProgress(1); // Ensure progress is 100% after load
|
|
36
|
+
resolve({ ok, text });
|
|
37
|
+
});
|
|
38
|
+
xhr.addEventListener('error', () => {
|
|
39
|
+
reject(new helpers_1.SdkError('500-upload-failed', 'Upload failed'));
|
|
40
|
+
});
|
|
41
|
+
xhr.addEventListener('abort', () => {
|
|
42
|
+
reject(new helpers_1.SdkError('400-upload-aborted', 'Upload aborted by user'));
|
|
43
|
+
});
|
|
44
|
+
xhr.open(method, url, true);
|
|
45
|
+
xhr.send(body);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async function nodejsUpload(method, url, body) {
|
|
49
|
+
return await fetch(url, { method, body })
|
|
50
|
+
.catch(error => {
|
|
51
|
+
throw new helpers_1.SdkError('500-upload-failed', error.message);
|
|
52
|
+
})
|
|
53
|
+
.then(async (response) => {
|
|
54
|
+
const text = await response.text();
|
|
55
|
+
return { ok: response.ok, text };
|
|
56
|
+
});
|
|
57
|
+
}
|
|
23
58
|
class Nucleus extends (0, http_1.HttpClientBuilder)(nucleus_1.serviceName, nucleus_1.getSdk) {
|
|
24
59
|
async uploadBlob(fileName, blob, onProgress) {
|
|
25
60
|
return await this.upload({
|
|
@@ -64,29 +99,10 @@ class Nucleus extends (0, http_1.HttpClientBuilder)(nucleus_1.serviceName, nucle
|
|
|
64
99
|
throw new helpers_1.SdkError('500-upload-failed', 'No response from server');
|
|
65
100
|
}
|
|
66
101
|
async post(method, url, body, onProgress) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
onProgress(evt.loaded / evt.total);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
xhr.addEventListener('load', () => {
|
|
75
|
-
const ok = xhr.status >= 200 && xhr.status < 300;
|
|
76
|
-
const text = xhr.responseText;
|
|
77
|
-
if (onProgress)
|
|
78
|
-
onProgress(1); // Ensure progress is 100% after load
|
|
79
|
-
resolve({ ok, text });
|
|
80
|
-
});
|
|
81
|
-
xhr.addEventListener('error', () => {
|
|
82
|
-
reject(new helpers_1.SdkError('500-upload-failed', 'Upload failed'));
|
|
83
|
-
});
|
|
84
|
-
xhr.addEventListener('abort', () => {
|
|
85
|
-
reject(new helpers_1.SdkError('400-upload-aborted', 'Upload aborted by user'));
|
|
86
|
-
});
|
|
87
|
-
xhr.open(method, url, true);
|
|
88
|
-
xhr.send(body);
|
|
89
|
-
});
|
|
102
|
+
if (typeof XMLHttpRequest === 'undefined') {
|
|
103
|
+
return nodejsUpload(method, url, body);
|
|
104
|
+
}
|
|
105
|
+
return browserUpload(method, url, body, onProgress);
|
|
90
106
|
}
|
|
91
107
|
}
|
|
92
108
|
exports.Nucleus = Nucleus;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -108,6 +108,9 @@ export type CloseTicketInput = {
|
|
|
108
108
|
export type CreateDrozChatChannelInput = {
|
|
109
109
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
110
110
|
};
|
|
111
|
+
export type CreateTagInput = {
|
|
112
|
+
tags: Array<Scalars['String']['input']>;
|
|
113
|
+
};
|
|
111
114
|
export type CreateTicketInput = {
|
|
112
115
|
channelId: Scalars['ID']['input'];
|
|
113
116
|
customerId: Scalars['ID']['input'];
|
|
@@ -124,6 +127,9 @@ export type CreateTicketMessageInput = {
|
|
|
124
127
|
contentType: Scalars['String']['input'];
|
|
125
128
|
ticketId: Scalars['ID']['input'];
|
|
126
129
|
};
|
|
130
|
+
export type DeleteTagInput = {
|
|
131
|
+
tags: Array<Scalars['String']['input']>;
|
|
132
|
+
};
|
|
127
133
|
export type DisableDrozChatChannelInput = {
|
|
128
134
|
id: Scalars['ID']['input'];
|
|
129
135
|
};
|
|
@@ -162,9 +168,11 @@ export type Mutation = {
|
|
|
162
168
|
assignTicketMyself: Ticket;
|
|
163
169
|
closeTicket: Ticket;
|
|
164
170
|
createDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
171
|
+
createTags: Array<Tag>;
|
|
165
172
|
createTicket: Ticket;
|
|
166
173
|
createTicketMessage: TicketMessage;
|
|
167
174
|
createTicketMessageForStorage: TicketMessage;
|
|
175
|
+
deleteTags: Array<Tag>;
|
|
168
176
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
169
177
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
170
178
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
@@ -189,6 +197,9 @@ export type MutationCloseTicketArgs = {
|
|
|
189
197
|
export type MutationCreateDrozChatChannelArgs = {
|
|
190
198
|
input: CreateDrozChatChannelInput;
|
|
191
199
|
};
|
|
200
|
+
export type MutationCreateTagsArgs = {
|
|
201
|
+
input: CreateTagInput;
|
|
202
|
+
};
|
|
192
203
|
export type MutationCreateTicketArgs = {
|
|
193
204
|
input: CreateTicketInput;
|
|
194
205
|
};
|
|
@@ -198,6 +209,9 @@ export type MutationCreateTicketMessageArgs = {
|
|
|
198
209
|
export type MutationCreateTicketMessageForStorageArgs = {
|
|
199
210
|
input: CreateTicketMessageForStorageInput;
|
|
200
211
|
};
|
|
212
|
+
export type MutationDeleteTagsArgs = {
|
|
213
|
+
input: DeleteTagInput;
|
|
214
|
+
};
|
|
201
215
|
export type MutationDisableDrozChatChannelArgs = {
|
|
202
216
|
input: DisableDrozChatChannelInput;
|
|
203
217
|
};
|
|
@@ -231,6 +245,7 @@ export type Query = {
|
|
|
231
245
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
232
246
|
listDrozChatAgentChannels: Array<DrozChatChannel>;
|
|
233
247
|
listDrozChatChannels: Array<DrozChatChannel>;
|
|
248
|
+
listTags: TagsConnection;
|
|
234
249
|
listTicketMessages: TicketMessagesConnection;
|
|
235
250
|
listTickets: TicketsConnection;
|
|
236
251
|
listTicketsInProgressMine: TicketsConnection;
|
|
@@ -245,6 +260,9 @@ export type QueryGetTicketArgs = {
|
|
|
245
260
|
export type QueryListDrozChatAgentChannelsArgs = {
|
|
246
261
|
agentId: Scalars['ID']['input'];
|
|
247
262
|
};
|
|
263
|
+
export type QueryListTagsArgs = {
|
|
264
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
265
|
+
};
|
|
248
266
|
export type QueryListTicketMessagesArgs = {
|
|
249
267
|
channelId?: InputMaybe<Scalars['ID']['input']>;
|
|
250
268
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
@@ -280,6 +298,15 @@ export declare enum SubscriptionAction {
|
|
|
280
298
|
Removed = "REMOVED",
|
|
281
299
|
Updated = "UPDATED"
|
|
282
300
|
}
|
|
301
|
+
export type Tag = {
|
|
302
|
+
createdAt: Scalars['DateTime']['output'];
|
|
303
|
+
name: Scalars['String']['output'];
|
|
304
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
305
|
+
};
|
|
306
|
+
export type TagsConnection = {
|
|
307
|
+
nodes: Array<Tag>;
|
|
308
|
+
pageInfo: PageInfo;
|
|
309
|
+
};
|
|
283
310
|
export type Ticket = {
|
|
284
311
|
assignee?: Maybe<DrozChatAgent>;
|
|
285
312
|
assigneeId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -395,6 +422,7 @@ export declare enum Typenames {
|
|
|
395
422
|
Channels = "Channels",
|
|
396
423
|
GraphqlConnections = "GraphqlConnections",
|
|
397
424
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
425
|
+
Tags = "Tags",
|
|
398
426
|
TicketMappings = "TicketMappings",
|
|
399
427
|
TicketMessages = "TicketMessages",
|
|
400
428
|
Tickets = "Tickets"
|
|
@@ -461,6 +489,28 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
|
|
|
461
489
|
export type RemoveDrozChatChannelAgentMutation = {
|
|
462
490
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
|
|
463
491
|
};
|
|
492
|
+
export type TagFragment = Pick<Tag, 'name' | 'createdAt' | 'updatedAt'>;
|
|
493
|
+
export type ListTagsQueryVariables = Exact<{
|
|
494
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
495
|
+
}>;
|
|
496
|
+
export type ListTagsQuery = {
|
|
497
|
+
listTags: {
|
|
498
|
+
nodes: Array<TagFragment>;
|
|
499
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
export type CreateTagsMutationVariables = Exact<{
|
|
503
|
+
input: CreateTagInput;
|
|
504
|
+
}>;
|
|
505
|
+
export type CreateTagsMutation = {
|
|
506
|
+
createTags: Array<TagFragment>;
|
|
507
|
+
};
|
|
508
|
+
export type DeleteTagsMutationVariables = Exact<{
|
|
509
|
+
input: DeleteTagInput;
|
|
510
|
+
}>;
|
|
511
|
+
export type DeleteTagsMutation = {
|
|
512
|
+
deleteTags: Array<TagFragment>;
|
|
513
|
+
};
|
|
464
514
|
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'>;
|
|
465
515
|
export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
|
|
466
516
|
export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
@@ -591,6 +641,7 @@ export type OnTicketMessageSubscription = {
|
|
|
591
641
|
message: TicketMessageFragment;
|
|
592
642
|
});
|
|
593
643
|
};
|
|
644
|
+
export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdAt\n updatedAt\n}\n ";
|
|
594
645
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
595
646
|
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 ";
|
|
596
647
|
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 ";
|
|
@@ -608,6 +659,9 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
|
|
|
608
659
|
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 ";
|
|
609
660
|
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 ";
|
|
610
661
|
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 ";
|
|
611
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 messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
612
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 messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
613
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 messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
@@ -635,6 +689,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
635
689
|
enableDrozChatChannel(variables: EnableDrozChatChannelMutationVariables, options?: C): Promise<EnableDrozChatChannelMutation>;
|
|
636
690
|
addDrozChatChannelAgent(variables: AddDrozChatChannelAgentMutationVariables, options?: C): Promise<AddDrozChatChannelAgentMutation>;
|
|
637
691
|
removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
|
|
692
|
+
listTags(variables?: ListTagsQueryVariables, options?: C): Promise<ListTagsQuery>;
|
|
693
|
+
createTags(variables: CreateTagsMutationVariables, options?: C): Promise<CreateTagsMutation>;
|
|
694
|
+
deleteTags(variables: DeleteTagsMutationVariables, options?: C): Promise<DeleteTagsMutation>;
|
|
638
695
|
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
|
|
639
696
|
listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
|
|
640
697
|
listTicketsInProgressMine(variables?: ListTicketsInProgressMineQueryVariables, options?: C): Promise<ListTicketsInProgressMineQuery>;
|
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.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.TagFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -49,10 +49,18 @@ var Typenames;
|
|
|
49
49
|
Typenames["Channels"] = "Channels";
|
|
50
50
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
51
51
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
52
|
+
Typenames["Tags"] = "Tags";
|
|
52
53
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
53
54
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
54
55
|
Typenames["Tickets"] = "Tickets";
|
|
55
56
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
57
|
+
exports.TagFragmentDoc = `
|
|
58
|
+
fragment tag on Tag {
|
|
59
|
+
name
|
|
60
|
+
createdAt
|
|
61
|
+
updatedAt
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
56
64
|
exports.DrozChatAgentFragmentDoc = `
|
|
57
65
|
fragment drozChatAgent on DrozChatAgent {
|
|
58
66
|
id
|
|
@@ -225,6 +233,33 @@ exports.RemoveDrozChatChannelAgentDocument = `
|
|
|
225
233
|
}
|
|
226
234
|
}
|
|
227
235
|
${exports.DrozChatChannelFragmentDoc}`;
|
|
236
|
+
exports.ListTagsDocument = `
|
|
237
|
+
query listTags($next: Base64) {
|
|
238
|
+
listTags(next: $next) {
|
|
239
|
+
nodes {
|
|
240
|
+
...tag
|
|
241
|
+
}
|
|
242
|
+
pageInfo {
|
|
243
|
+
hasNext
|
|
244
|
+
next
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
${exports.TagFragmentDoc}`;
|
|
249
|
+
exports.CreateTagsDocument = `
|
|
250
|
+
mutation createTags($input: CreateTagInput!) {
|
|
251
|
+
createTags(input: $input) {
|
|
252
|
+
...tag
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
${exports.TagFragmentDoc}`;
|
|
256
|
+
exports.DeleteTagsDocument = `
|
|
257
|
+
mutation deleteTags($input: DeleteTagInput!) {
|
|
258
|
+
deleteTags(input: $input) {
|
|
259
|
+
...tag
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
${exports.TagFragmentDoc}`;
|
|
228
263
|
exports.GetTicketDocument = `
|
|
229
264
|
query getTicket($id: ID!) {
|
|
230
265
|
getTicket(id: $id) {
|
|
@@ -396,6 +431,15 @@ function getSdk(requester) {
|
|
|
396
431
|
removeDrozChatChannelAgent(variables, options) {
|
|
397
432
|
return requester(exports.RemoveDrozChatChannelAgentDocument, variables, options);
|
|
398
433
|
},
|
|
434
|
+
listTags(variables, options) {
|
|
435
|
+
return requester(exports.ListTagsDocument, variables, options);
|
|
436
|
+
},
|
|
437
|
+
createTags(variables, options) {
|
|
438
|
+
return requester(exports.CreateTagsDocument, variables, options);
|
|
439
|
+
},
|
|
440
|
+
deleteTags(variables, options) {
|
|
441
|
+
return requester(exports.DeleteTagsDocument, variables, options);
|
|
442
|
+
},
|
|
399
443
|
getTicket(variables, options) {
|
|
400
444
|
return requester(exports.GetTicketDocument, variables, options);
|
|
401
445
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -260,6 +260,7 @@ export type CronJob = {
|
|
|
260
260
|
timestamp: Scalars['DateTime']['output'];
|
|
261
261
|
};
|
|
262
262
|
export type Customer = {
|
|
263
|
+
alternateName?: Maybe<Scalars['String']['output']>;
|
|
263
264
|
apps?: Maybe<Array<App>>;
|
|
264
265
|
createdAt: Scalars['DateTime']['output'];
|
|
265
266
|
document?: Maybe<Scalars['String']['output']>;
|
|
@@ -284,6 +285,7 @@ export type EditStateMachineConfigInput = {
|
|
|
284
285
|
id: Scalars['ID']['input'];
|
|
285
286
|
};
|
|
286
287
|
export type GetOrCreateCustomerInput = {
|
|
288
|
+
alternateName?: InputMaybe<Scalars['String']['input']>;
|
|
287
289
|
document?: InputMaybe<Scalars['String']['input']>;
|
|
288
290
|
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
289
291
|
externalId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -956,7 +958,7 @@ export type RemoveCredentialsMutationVariables = Exact<{
|
|
|
956
958
|
export type RemoveCredentialsMutation = {
|
|
957
959
|
removeCredentials?: Maybe<SafeCredentialsFragment>;
|
|
958
960
|
};
|
|
959
|
-
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'> & {
|
|
961
|
+
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'> & {
|
|
960
962
|
apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
|
|
961
963
|
});
|
|
962
964
|
export type GetCustomerQueryVariables = Exact<{
|
|
@@ -1193,7 +1195,7 @@ export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type
|
|
|
1193
1195
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1194
1196
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1195
1197
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1196
|
-
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1198
|
+
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1197
1199
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1198
1200
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1199
1201
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
@@ -1231,9 +1233,9 @@ export declare const CountCredentialsDocument = "\n query countCredentials {\
|
|
|
1231
1233
|
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1232
1234
|
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1233
1235
|
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
1234
|
-
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1235
|
-
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1236
|
-
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1236
|
+
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1237
|
+
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1238
|
+
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1237
1239
|
export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1238
1240
|
export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1239
1241
|
export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
@@ -1241,8 +1243,8 @@ export declare const UpdateCronJobDocument = "\n mutation updateCronJob($inpu
|
|
|
1241
1243
|
export declare const RemoveCronJobDocument = "\n mutation removeCronJob($input: RemoveCronJobInput!) {\n removeCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1242
1244
|
export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1243
1245
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1244
|
-
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1245
|
-
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1246
|
+
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1247
|
+
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1246
1248
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1247
1249
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1248
1250
|
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -200,6 +200,7 @@ export type ZendeskCustomField = {
|
|
|
200
200
|
type: Scalars['String']['output'];
|
|
201
201
|
};
|
|
202
202
|
export type ZendeskCustomer = {
|
|
203
|
+
alternateName?: Maybe<Scalars['String']['output']>;
|
|
203
204
|
createdAt: Scalars['DateTime']['output'];
|
|
204
205
|
document?: Maybe<Scalars['String']['output']>;
|
|
205
206
|
email: Scalars['String']['output'];
|
|
@@ -248,7 +249,7 @@ export type ZendeskInstanceFragment = (Pick<ZendeskInstance, 'id' | 'name' | 'do
|
|
|
248
249
|
appChannelRoleMappings?: Maybe<Array<Pick<ZendeskAppChannelRoleMapping, 'appId' | 'channelId' | 'zendeskRoleId'>>>;
|
|
249
250
|
sessionFieldMappings: Array<Pick<ZendeskSessionFieldMapping, 'expression' | 'customFieldId'>>;
|
|
250
251
|
});
|
|
251
|
-
export type ZendeskCustomerFragment = Pick<ZendeskCustomer, 'id' | 'name' | 'email' | 'phone' | 'externalId' | 'document' | 'createdAt' | 'updatedAt'>;
|
|
252
|
+
export type ZendeskCustomerFragment = Pick<ZendeskCustomer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'externalId' | 'document' | 'createdAt' | 'updatedAt'>;
|
|
252
253
|
export type GetZendeskInstanceQueryVariables = Exact<{
|
|
253
254
|
id: Scalars['ID']['input'];
|
|
254
255
|
}>;
|
|
@@ -308,13 +309,13 @@ export type RemoveZendeskInstanceMutation = {
|
|
|
308
309
|
removeZendeskInstance?: Maybe<ZendeskInstanceFragment>;
|
|
309
310
|
};
|
|
310
311
|
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|
|
311
|
-
export declare const ZendeskCustomerFragmentDoc = "\n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
|
|
312
|
+
export declare const ZendeskCustomerFragmentDoc = "\n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n alternateName\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
|
|
312
313
|
export declare const GetZendeskInstanceDocument = "\n query getZendeskInstance($id: ID!) {\n getZendeskInstance(id: $id) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|
|
313
314
|
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances {\n listZendeskInstances {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|
|
314
315
|
export declare const ListZendeskTicketCustomFieldsDocument = "\n query listZendeskTicketCustomFields($credentialId: ID!, $domain: String!) {\n listZendeskTicketCustomFields(credentialId: $credentialId, domain: $domain) {\n id\n title\n type\n active\n required\n }\n}\n ";
|
|
315
316
|
export declare const ListZendeskRolesDocument = "\n query listZendeskRoles($credentialId: ID!, $domain: String!) {\n listZendeskRoles(credentialId: $credentialId, domain: $domain) {\n id\n name\n }\n}\n ";
|
|
316
317
|
export declare const AssertCanUserInteractDocument = "\n query assertCanUserInteract($ticketId: ID!, $userId: Float!) {\n assertCanUserInteract(ticketId: $ticketId, userId: $userId)\n}\n ";
|
|
317
|
-
export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n organization\n customer {\n ...zendeskCustomer\n }\n source\n order\n products\n triggerApp {\n id\n name\n description\n }\n }\n}\n \n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
|
|
318
|
+
export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n organization\n customer {\n ...zendeskCustomer\n }\n source\n order\n products\n triggerApp {\n id\n name\n description\n }\n }\n}\n \n fragment zendeskCustomer on ZendeskCustomer {\n id\n name\n alternateName\n email\n phone\n externalId\n document\n createdAt\n updatedAt\n}\n ";
|
|
318
319
|
export declare const CreateZendeskInstanceDocument = "\n mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {\n createZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|
|
319
320
|
export declare const UpdateZendeskInstanceDocument = "\n mutation updateZendeskInstance($input: UpdateZendeskInstanceInput!) {\n updateZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|
|
320
321
|
export declare const RemoveZendeskInstanceDocument = "\n mutation removeZendeskInstance($input: RemoveZendeskInstanceInput!) {\n removeZendeskInstance(input: $input) {\n ...zendeskInstance\n }\n}\n \n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n closedStatuses\n appChannelRoleMappings {\n appId\n channelId\n zendeskRoleId\n }\n sessionFieldMappings {\n expression\n customFieldId\n }\n createdAt\n updatedAt\n}\n ";
|