@droz-js/sdk 0.3.6 → 0.3.8
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/drozadmin.d.ts +7 -0
- package/src/sdks/drozcommons.d.ts +26 -4
- package/src/sdks/drozcommons.js +20 -1
- package/src/sdks/zendesk.d.ts +39 -0
- package/src/sdks/zendesk.js +28 -1
- package/src/zendesk.d.ts +3 -0
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
} & {
|
|
8
|
+
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
|
|
9
|
+
[key: string]: never;
|
|
10
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
|
|
8
11
|
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{
|
|
9
12
|
[key: string]: never;
|
|
10
13
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>;
|
|
@@ -17,6 +20,10 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
17
20
|
listGitBranches(variables: import("./sdks/drozcommons").Exact<{
|
|
18
21
|
gitRepositoryId: string;
|
|
19
22
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
|
|
23
|
+
listDeployments(variables: import("./sdks/drozcommons").Exact<{
|
|
24
|
+
tenantId: string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListDeploymentsQuery>;
|
|
20
27
|
deploymentLogs(variables: import("./sdks/drozcommons").Exact<{
|
|
21
28
|
tenantId: string;
|
|
22
29
|
deploymentId: string;
|
|
@@ -121,6 +121,7 @@ export type DeployInput = {
|
|
|
121
121
|
};
|
|
122
122
|
export type Deployment = {
|
|
123
123
|
branch: Scalars['String']['output'];
|
|
124
|
+
command: DeploymentCommands;
|
|
124
125
|
createdAt: Scalars['DateTime']['output'];
|
|
125
126
|
deployedVersion?: Maybe<Scalars['String']['output']>;
|
|
126
127
|
gitRepository: Scalars['String']['output'];
|
|
@@ -190,12 +191,14 @@ export type PageInfo = {
|
|
|
190
191
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
191
192
|
};
|
|
192
193
|
export type Query = {
|
|
194
|
+
amplifyConfig?: Maybe<Scalars['JSON']['output']>;
|
|
193
195
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
194
196
|
authInfo?: Maybe<AuthInfo>;
|
|
195
197
|
deploymentLogs: DeploymentLogConnection;
|
|
196
198
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
197
199
|
getTenant?: Maybe<Tenant>;
|
|
198
200
|
listAccounts: Array<AwsAccount>;
|
|
201
|
+
listDeployments: Array<Deployment>;
|
|
199
202
|
listGitBranches: Array<GitBranch>;
|
|
200
203
|
listGitRepositories: Array<GitRepository>;
|
|
201
204
|
listServices: Array<Maybe<Service>>;
|
|
@@ -210,6 +213,10 @@ export type QueryDeploymentLogsArgs = {
|
|
|
210
213
|
export type QueryGetTenantArgs = {
|
|
211
214
|
tenantId: Scalars['ID']['input'];
|
|
212
215
|
};
|
|
216
|
+
export type QueryListDeploymentsArgs = {
|
|
217
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
218
|
+
tenantId: Scalars['ID']['input'];
|
|
219
|
+
};
|
|
213
220
|
export type QueryListGitBranchesArgs = {
|
|
214
221
|
gitRepositoryId: Scalars['ID']['input'];
|
|
215
222
|
};
|
|
@@ -246,6 +253,10 @@ export type UpdateTenantInput = {
|
|
|
246
253
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
247
254
|
tenantId: Scalars['ID']['input'];
|
|
248
255
|
};
|
|
256
|
+
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
257
|
+
[key: string]: never;
|
|
258
|
+
}>;
|
|
259
|
+
export type GetAmplifyConfigQuery = Pick<Query, 'amplifyConfig'>;
|
|
249
260
|
export type GetAuthInfoQueryVariables = Exact<{
|
|
250
261
|
[key: string]: never;
|
|
251
262
|
}>;
|
|
@@ -254,7 +265,7 @@ export type GetAuthInfoQuery = {
|
|
|
254
265
|
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
|
|
255
266
|
})>;
|
|
256
267
|
};
|
|
257
|
-
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
268
|
+
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'command' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
258
269
|
export type GitRepositoryFragment = Pick<GitRepository, 'id' | 'name'>;
|
|
259
270
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
260
271
|
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>;
|
|
@@ -276,6 +287,13 @@ export type ListGitBranchesQueryVariables = Exact<{
|
|
|
276
287
|
export type ListGitBranchesQuery = {
|
|
277
288
|
listGitBranches: Array<Pick<GitBranch, 'name'>>;
|
|
278
289
|
};
|
|
290
|
+
export type ListDeploymentsQueryVariables = Exact<{
|
|
291
|
+
tenantId: Scalars['ID']['input'];
|
|
292
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
293
|
+
}>;
|
|
294
|
+
export type ListDeploymentsQuery = {
|
|
295
|
+
listDeployments: Array<DeploymentFragment>;
|
|
296
|
+
};
|
|
279
297
|
export type DeploymentLogsQueryVariables = Exact<{
|
|
280
298
|
tenantId: Scalars['ID']['input'];
|
|
281
299
|
deploymentId: Scalars['ID']['input'];
|
|
@@ -334,29 +352,33 @@ export type RemoveTenantMutationVariables = Exact<{
|
|
|
334
352
|
export type RemoveTenantMutation = {
|
|
335
353
|
removeTenant: TenantFragment;
|
|
336
354
|
};
|
|
337
|
-
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
355
|
+
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
338
356
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
|
|
339
357
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
340
358
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
341
359
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
342
360
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
361
|
+
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
343
362
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
344
363
|
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
345
364
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
|
|
346
365
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
366
|
+
export declare const ListDeploymentsDocument = "\n query listDeployments($tenantId: ID!, $limit: Int) {\n listDeployments(tenantId: $tenantId, limit: $limit) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
347
367
|
export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {\n deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {\n nodes {\n id\n deploymentId\n message\n timestamp\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n ";
|
|
348
368
|
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
349
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
350
|
-
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
369
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
370
|
+
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
351
371
|
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
352
372
|
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
353
373
|
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
354
374
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
355
375
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
376
|
+
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
356
377
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
357
378
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
358
379
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
359
380
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
381
|
+
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
|
|
360
382
|
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
|
|
361
383
|
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
|
|
362
384
|
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
|
package/src/sdks/drozcommons.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.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -30,6 +30,7 @@ exports.DeploymentFragmentDoc = `
|
|
|
30
30
|
fragment deployment on Deployment {
|
|
31
31
|
id
|
|
32
32
|
tenantId
|
|
33
|
+
command
|
|
33
34
|
gitRepository
|
|
34
35
|
branch
|
|
35
36
|
status
|
|
@@ -76,6 +77,11 @@ exports.TenantFragmentDoc = `
|
|
|
76
77
|
updatedAt
|
|
77
78
|
}
|
|
78
79
|
`;
|
|
80
|
+
exports.GetAmplifyConfigDocument = `
|
|
81
|
+
query getAmplifyConfig {
|
|
82
|
+
amplifyConfig
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
79
85
|
exports.GetAuthInfoDocument = `
|
|
80
86
|
query getAuthInfo {
|
|
81
87
|
authInfo {
|
|
@@ -112,6 +118,13 @@ exports.ListGitBranchesDocument = `
|
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
120
|
`;
|
|
121
|
+
exports.ListDeploymentsDocument = `
|
|
122
|
+
query listDeployments($tenantId: ID!, $limit: Int) {
|
|
123
|
+
listDeployments(tenantId: $tenantId, limit: $limit) {
|
|
124
|
+
...deployment
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
${exports.DeploymentFragmentDoc}`;
|
|
115
128
|
exports.DeploymentLogsDocument = `
|
|
116
129
|
query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {
|
|
117
130
|
deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {
|
|
@@ -188,6 +201,9 @@ exports.RemoveTenantDocument = `
|
|
|
188
201
|
${exports.TenantFragmentDoc}`;
|
|
189
202
|
function getSdk(requester) {
|
|
190
203
|
return {
|
|
204
|
+
getAmplifyConfig(variables, options) {
|
|
205
|
+
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
206
|
+
},
|
|
191
207
|
getAuthInfo(variables, options) {
|
|
192
208
|
return requester(exports.GetAuthInfoDocument, variables, options);
|
|
193
209
|
},
|
|
@@ -200,6 +216,9 @@ function getSdk(requester) {
|
|
|
200
216
|
listGitBranches(variables, options) {
|
|
201
217
|
return requester(exports.ListGitBranchesDocument, variables, options);
|
|
202
218
|
},
|
|
219
|
+
listDeployments(variables, options) {
|
|
220
|
+
return requester(exports.ListDeploymentsDocument, variables, options);
|
|
221
|
+
},
|
|
203
222
|
deploymentLogs(variables, options) {
|
|
204
223
|
return requester(exports.DeploymentLogsDocument, variables, options);
|
|
205
224
|
},
|
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -123,16 +123,25 @@ export type PageInfo = {
|
|
|
123
123
|
export type Query = {
|
|
124
124
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
125
125
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
126
|
+
getTicketSessionAttributes?: Maybe<ZendeskTicketSessionAttributes>;
|
|
126
127
|
getZendeskInstance?: Maybe<ZendeskInstance>;
|
|
127
128
|
listZendeskInstances: Array<ZendeskInstance>;
|
|
128
129
|
version?: Maybe<Scalars['String']['output']>;
|
|
129
130
|
};
|
|
131
|
+
export type QueryGetTicketSessionAttributesArgs = {
|
|
132
|
+
ticketId: Scalars['ID']['input'];
|
|
133
|
+
};
|
|
130
134
|
export type QueryGetZendeskInstanceArgs = {
|
|
131
135
|
id: Scalars['ID']['input'];
|
|
132
136
|
};
|
|
133
137
|
export type RemoveZendeskInstanceInput = {
|
|
134
138
|
id: Scalars['ID']['input'];
|
|
135
139
|
};
|
|
140
|
+
export type TriggerApp = {
|
|
141
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
142
|
+
id: Scalars['ID']['output'];
|
|
143
|
+
name: Scalars['String']['output'];
|
|
144
|
+
};
|
|
136
145
|
export declare enum Typenames {
|
|
137
146
|
Any = "Any",
|
|
138
147
|
GraphqlConnections = "GraphqlConnections",
|
|
@@ -154,6 +163,15 @@ export type ValidateZendeskInstancePayload = {
|
|
|
154
163
|
message?: Maybe<Scalars['String']['output']>;
|
|
155
164
|
valid: Scalars['Boolean']['output'];
|
|
156
165
|
};
|
|
166
|
+
export type ZendeskCustomer = {
|
|
167
|
+
createdAt: Scalars['DateTime']['output'];
|
|
168
|
+
email: Scalars['String']['output'];
|
|
169
|
+
externalId?: Maybe<Scalars['ID']['output']>;
|
|
170
|
+
id: Scalars['ID']['output'];
|
|
171
|
+
name: Scalars['String']['output'];
|
|
172
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
173
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
174
|
+
};
|
|
157
175
|
export type ZendeskInstance = {
|
|
158
176
|
closedStatuses: Array<Scalars['String']['output']>;
|
|
159
177
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -164,6 +182,16 @@ export type ZendeskInstance = {
|
|
|
164
182
|
updatedAt: Scalars['DateTime']['output'];
|
|
165
183
|
webhookId?: Maybe<Scalars['ID']['output']>;
|
|
166
184
|
};
|
|
185
|
+
export type ZendeskTicketSessionAttributes = {
|
|
186
|
+
customer: ZendeskCustomer;
|
|
187
|
+
instanceId: Scalars['ID']['output'];
|
|
188
|
+
order?: Maybe<Scalars['JSON']['output']>;
|
|
189
|
+
organization?: Maybe<Scalars['JSON']['output']>;
|
|
190
|
+
products?: Maybe<Array<Scalars['JSON']['output']>>;
|
|
191
|
+
sessionId: Scalars['ID']['output'];
|
|
192
|
+
ticketId: Scalars['ID']['output'];
|
|
193
|
+
triggerApp: TriggerApp;
|
|
194
|
+
};
|
|
167
195
|
export type ZendeskInstanceFragment = Pick<ZendeskInstance, 'id' | 'name' | 'domain' | 'credentialId' | 'createdAt' | 'updatedAt'>;
|
|
168
196
|
export type GetZendeskInstanceQueryVariables = Exact<{
|
|
169
197
|
id: Scalars['ID']['input'];
|
|
@@ -177,6 +205,15 @@ export type ListZendeskInstancesQueryVariables = Exact<{
|
|
|
177
205
|
export type ListZendeskInstancesQuery = {
|
|
178
206
|
listZendeskInstances: Array<ZendeskInstanceFragment>;
|
|
179
207
|
};
|
|
208
|
+
export type GetTicketSessionAttributesQueryVariables = Exact<{
|
|
209
|
+
ticketId: Scalars['ID']['input'];
|
|
210
|
+
}>;
|
|
211
|
+
export type GetTicketSessionAttributesQuery = {
|
|
212
|
+
getTicketSessionAttributes?: Maybe<(Pick<ZendeskTicketSessionAttributes, 'sessionId' | 'instanceId' | 'order' | 'products' | 'organization'> & {
|
|
213
|
+
customer: Pick<ZendeskCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
|
|
214
|
+
triggerApp: Pick<TriggerApp, 'id' | 'name' | 'description'>;
|
|
215
|
+
})>;
|
|
216
|
+
};
|
|
180
217
|
export type CreateZendeskInstanceMutationVariables = Exact<{
|
|
181
218
|
input: CreateZendeskInstanceInput;
|
|
182
219
|
}>;
|
|
@@ -198,6 +235,7 @@ export type RemoveZendeskInstanceMutation = {
|
|
|
198
235
|
export declare const ZendeskInstanceFragmentDoc = "\n fragment zendeskInstance on ZendeskInstance {\n id\n name\n domain\n credentialId\n createdAt\n updatedAt\n}\n ";
|
|
199
236
|
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 createdAt\n updatedAt\n}\n ";
|
|
200
237
|
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 createdAt\n updatedAt\n}\n ";
|
|
238
|
+
export declare const GetTicketSessionAttributesDocument = "\n query getTicketSessionAttributes($ticketId: ID!) {\n getTicketSessionAttributes(ticketId: $ticketId) {\n sessionId\n instanceId\n customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n }\n order\n products\n organization\n triggerApp {\n id\n name\n description\n }\n }\n}\n ";
|
|
201
239
|
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 createdAt\n updatedAt\n}\n ";
|
|
202
240
|
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 createdAt\n updatedAt\n}\n ";
|
|
203
241
|
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 createdAt\n updatedAt\n}\n ";
|
|
@@ -205,6 +243,7 @@ export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, optio
|
|
|
205
243
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
206
244
|
getZendeskInstance(variables: GetZendeskInstanceQueryVariables, options?: C): Promise<GetZendeskInstanceQuery>;
|
|
207
245
|
listZendeskInstances(variables?: ListZendeskInstancesQueryVariables, options?: C): Promise<ListZendeskInstancesQuery>;
|
|
246
|
+
getTicketSessionAttributes(variables: GetTicketSessionAttributesQueryVariables, options?: C): Promise<GetTicketSessionAttributesQuery>;
|
|
208
247
|
createZendeskInstance(variables: CreateZendeskInstanceMutationVariables, options?: C): Promise<CreateZendeskInstanceMutation>;
|
|
209
248
|
updateZendeskInstance(variables: UpdateZendeskInstanceMutationVariables, options?: C): Promise<UpdateZendeskInstanceMutation>;
|
|
210
249
|
removeZendeskInstance(variables: RemoveZendeskInstanceMutationVariables, options?: C): Promise<RemoveZendeskInstanceMutation>;
|
package/src/sdks/zendesk.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.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveZendeskInstanceDocument = exports.UpdateZendeskInstanceDocument = exports.CreateZendeskInstanceDocument = exports.GetTicketSessionAttributesDocument = exports.ListZendeskInstancesDocument = exports.GetZendeskInstanceDocument = exports.ZendeskInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -40,6 +40,30 @@ exports.ListZendeskInstancesDocument = `
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
${exports.ZendeskInstanceFragmentDoc}`;
|
|
43
|
+
exports.GetTicketSessionAttributesDocument = `
|
|
44
|
+
query getTicketSessionAttributes($ticketId: ID!) {
|
|
45
|
+
getTicketSessionAttributes(ticketId: $ticketId) {
|
|
46
|
+
sessionId
|
|
47
|
+
instanceId
|
|
48
|
+
customer {
|
|
49
|
+
id
|
|
50
|
+
name
|
|
51
|
+
email
|
|
52
|
+
phone
|
|
53
|
+
createdAt
|
|
54
|
+
updatedAt
|
|
55
|
+
}
|
|
56
|
+
order
|
|
57
|
+
products
|
|
58
|
+
organization
|
|
59
|
+
triggerApp {
|
|
60
|
+
id
|
|
61
|
+
name
|
|
62
|
+
description
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
43
67
|
exports.CreateZendeskInstanceDocument = `
|
|
44
68
|
mutation createZendeskInstance($input: CreateZendeskInstanceInput!) {
|
|
45
69
|
createZendeskInstance(input: $input) {
|
|
@@ -69,6 +93,9 @@ function getSdk(requester) {
|
|
|
69
93
|
listZendeskInstances(variables, options) {
|
|
70
94
|
return requester(exports.ListZendeskInstancesDocument, variables, options);
|
|
71
95
|
},
|
|
96
|
+
getTicketSessionAttributes(variables, options) {
|
|
97
|
+
return requester(exports.GetTicketSessionAttributesDocument, variables, options);
|
|
98
|
+
},
|
|
72
99
|
createZendeskInstance(variables, options) {
|
|
73
100
|
return requester(exports.CreateZendeskInstanceDocument, variables, options);
|
|
74
101
|
},
|
package/src/zendesk.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export declare const Zendesk: new (options?: import("./client/http").HttpClientO
|
|
|
11
11
|
listZendeskInstances(variables?: import("./sdks/zendesk").Exact<{
|
|
12
12
|
[key: string]: never;
|
|
13
13
|
}>, options?: unknown): Promise<import("./sdks/zendesk").ListZendeskInstancesQuery>;
|
|
14
|
+
getTicketSessionAttributes(variables: import("./sdks/zendesk").Exact<{
|
|
15
|
+
ticketId: string;
|
|
16
|
+
}>, options?: unknown): Promise<import("./sdks/zendesk").GetTicketSessionAttributesQuery>;
|
|
14
17
|
createZendeskInstance(variables: import("./sdks/zendesk").Exact<{
|
|
15
18
|
input: import("./sdks/zendesk").CreateZendeskInstanceInput;
|
|
16
19
|
}>, options?: unknown): Promise<import("./sdks/zendesk").CreateZendeskInstanceMutation>;
|