@droz-js/sdk 0.3.6 → 0.3.7
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/sdks/drozcommons.d.ts +5 -4
- package/src/sdks/drozcommons.js +1 -0
- 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
|
@@ -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'];
|
|
@@ -254,7 +255,7 @@ export type GetAuthInfoQuery = {
|
|
|
254
255
|
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>;
|
|
255
256
|
})>;
|
|
256
257
|
};
|
|
257
|
-
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
258
|
+
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'command' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
258
259
|
export type GitRepositoryFragment = Pick<GitRepository, 'id' | 'name'>;
|
|
259
260
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
260
261
|
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>;
|
|
@@ -334,7 +335,7 @@ export type RemoveTenantMutationVariables = Exact<{
|
|
|
334
335
|
export type RemoveTenantMutation = {
|
|
335
336
|
removeTenant: TenantFragment;
|
|
336
337
|
};
|
|
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 ";
|
|
338
|
+
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
339
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
|
|
339
340
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
340
341
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
@@ -346,8 +347,8 @@ export declare const ListGitRepositoriesDocument = "\n query listGitRepositor
|
|
|
346
347
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
347
348
|
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
349
|
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 ";
|
|
350
|
+
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 ";
|
|
351
|
+
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
352
|
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
353
|
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
354
|
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 ";
|
package/src/sdks/drozcommons.js
CHANGED
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>;
|