@droz-js/sdk 0.4.10 → 0.4.11
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 +9 -0
- package/src/sdks/drozcommons.d.ts +24 -0
- package/src/sdks/drozcommons.js +31 -1
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -29,6 +29,15 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
29
29
|
deploymentId: string;
|
|
30
30
|
next?: object;
|
|
31
31
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").DeploymentLogsQuery>;
|
|
32
|
+
deploy(variables: import("./sdks/drozcommons").Exact<{
|
|
33
|
+
input: import("./sdks/drozcommons").DeployInput;
|
|
34
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").DeployMutation>;
|
|
35
|
+
destroy(variables: import("./sdks/drozcommons").Exact<{
|
|
36
|
+
input: import("./sdks/drozcommons").DestroyInput;
|
|
37
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").DestroyMutation>;
|
|
38
|
+
batchDeploy(variables: import("./sdks/drozcommons").Exact<{
|
|
39
|
+
input: import("./sdks/drozcommons").BatchDeployInput;
|
|
40
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").BatchDeployMutation>;
|
|
32
41
|
listServices(variables: import("./sdks/drozcommons").Exact<{
|
|
33
42
|
tenantId: string;
|
|
34
43
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListServicesQuery>;
|
|
@@ -321,6 +321,24 @@ export type DeploymentLogsQuery = {
|
|
|
321
321
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
+
export type DeployMutationVariables = Exact<{
|
|
325
|
+
input: DeployInput;
|
|
326
|
+
}>;
|
|
327
|
+
export type DeployMutation = {
|
|
328
|
+
deploy: DeploymentFragment;
|
|
329
|
+
};
|
|
330
|
+
export type DestroyMutationVariables = Exact<{
|
|
331
|
+
input: DestroyInput;
|
|
332
|
+
}>;
|
|
333
|
+
export type DestroyMutation = {
|
|
334
|
+
destroy: DeploymentFragment;
|
|
335
|
+
};
|
|
336
|
+
export type BatchDeployMutationVariables = Exact<{
|
|
337
|
+
input: BatchDeployInput;
|
|
338
|
+
}>;
|
|
339
|
+
export type BatchDeployMutation = {
|
|
340
|
+
batchDeploy: Array<DeploymentFragment>;
|
|
341
|
+
};
|
|
324
342
|
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>;
|
|
325
343
|
export type ListServicesQueryVariables = Exact<{
|
|
326
344
|
tenantId: Scalars['ID']['input'];
|
|
@@ -383,6 +401,9 @@ export declare const ListGitRepositoriesDocument = "\n query listGitRepositor
|
|
|
383
401
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
384
402
|
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 ";
|
|
385
403
|
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 ";
|
|
404
|
+
export declare const DeployDocument = "\n mutation deploy($input: DeployInput!) {\n deploy(input: $input) {\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 ";
|
|
405
|
+
export declare const DestroyDocument = "\n mutation destroy($input: DestroyInput!) {\n destroy(input: $input) {\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 ";
|
|
406
|
+
export declare const BatchDeployDocument = "\n mutation batchDeploy($input: BatchDeployInput!) {\n batchDeploy(input: $input) {\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 ";
|
|
386
407
|
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 ";
|
|
387
408
|
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 disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\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 ";
|
|
388
409
|
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 disabled\n createdAt\n updatedAt\n account {\n id\n name\n }\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 ";
|
|
@@ -398,6 +419,9 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
398
419
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
399
420
|
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
|
|
400
421
|
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
|
|
422
|
+
deploy(variables: DeployMutationVariables, options?: C): Promise<DeployMutation>;
|
|
423
|
+
destroy(variables: DestroyMutationVariables, options?: C): Promise<DestroyMutation>;
|
|
424
|
+
batchDeploy(variables: BatchDeployMutationVariables, options?: C): Promise<BatchDeployMutation>;
|
|
401
425
|
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
|
|
402
426
|
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
|
|
403
427
|
listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>;
|
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.ListDeploymentsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = 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.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = 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";
|
|
@@ -149,6 +149,27 @@ exports.DeploymentLogsDocument = `
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
`;
|
|
152
|
+
exports.DeployDocument = `
|
|
153
|
+
mutation deploy($input: DeployInput!) {
|
|
154
|
+
deploy(input: $input) {
|
|
155
|
+
...deployment
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
${exports.DeploymentFragmentDoc}`;
|
|
159
|
+
exports.DestroyDocument = `
|
|
160
|
+
mutation destroy($input: DestroyInput!) {
|
|
161
|
+
destroy(input: $input) {
|
|
162
|
+
...deployment
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
${exports.DeploymentFragmentDoc}`;
|
|
166
|
+
exports.BatchDeployDocument = `
|
|
167
|
+
mutation batchDeploy($input: BatchDeployInput!) {
|
|
168
|
+
batchDeploy(input: $input) {
|
|
169
|
+
...deployment
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
${exports.DeploymentFragmentDoc}`;
|
|
152
173
|
exports.ListServicesDocument = `
|
|
153
174
|
query listServices($tenantId: ID!) {
|
|
154
175
|
listServices(tenantId: $tenantId) {
|
|
@@ -230,6 +251,15 @@ function getSdk(requester) {
|
|
|
230
251
|
deploymentLogs(variables, options) {
|
|
231
252
|
return requester(exports.DeploymentLogsDocument, variables, options);
|
|
232
253
|
},
|
|
254
|
+
deploy(variables, options) {
|
|
255
|
+
return requester(exports.DeployDocument, variables, options);
|
|
256
|
+
},
|
|
257
|
+
destroy(variables, options) {
|
|
258
|
+
return requester(exports.DestroyDocument, variables, options);
|
|
259
|
+
},
|
|
260
|
+
batchDeploy(variables, options) {
|
|
261
|
+
return requester(exports.BatchDeployDocument, variables, options);
|
|
262
|
+
},
|
|
233
263
|
listServices(variables, options) {
|
|
234
264
|
return requester(exports.ListServicesDocument, variables, options);
|
|
235
265
|
},
|