@droz-js/sdk 0.5.13 → 0.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client/http.js +3 -0
- package/src/nucleus.js +39 -23
- 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/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/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 ";
|