@droz-js/sdk
Advanced tools
Comparing version 0.4.10 to 0.4.11
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -32,2 +32,11 @@ export * from './sdks/drozcommons'; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").DeploymentLogsQuery>; | ||
deploy(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").DeployInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").DeployMutation>; | ||
destroy(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").DestroyInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").DestroyMutation>; | ||
batchDeploy(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").BatchDeployInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").BatchDeployMutation>; | ||
listServices(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -34,0 +43,0 @@ tenantId: string; |
@@ -324,2 +324,20 @@ export type Maybe<T> = T; | ||
}; | ||
export type DeployMutationVariables = Exact<{ | ||
input: DeployInput; | ||
}>; | ||
export type DeployMutation = { | ||
deploy: DeploymentFragment; | ||
}; | ||
export type DestroyMutationVariables = Exact<{ | ||
input: DestroyInput; | ||
}>; | ||
export type DestroyMutation = { | ||
destroy: DeploymentFragment; | ||
}; | ||
export type BatchDeployMutationVariables = Exact<{ | ||
input: BatchDeployInput; | ||
}>; | ||
export type BatchDeployMutation = { | ||
batchDeploy: Array<DeploymentFragment>; | ||
}; | ||
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>; | ||
@@ -387,2 +405,5 @@ export type ListServicesQueryVariables = Exact<{ | ||
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 "; | ||
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 "; | ||
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 "; | ||
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 "; | ||
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 "; | ||
@@ -403,2 +424,5 @@ 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 "; | ||
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>; | ||
deploy(variables: DeployMutationVariables, options?: C): Promise<DeployMutation>; | ||
destroy(variables: DestroyMutationVariables, options?: C): Promise<DestroyMutation>; | ||
batchDeploy(variables: BatchDeployMutationVariables, options?: C): Promise<BatchDeployMutation>; | ||
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>; | ||
@@ -405,0 +429,0 @@ getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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; | ||
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; | ||
var AppInstanceStatus; | ||
@@ -152,2 +152,23 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.DeployDocument = ` | ||
mutation deploy($input: DeployInput!) { | ||
deploy(input: $input) { | ||
...deployment | ||
} | ||
} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.DestroyDocument = ` | ||
mutation destroy($input: DestroyInput!) { | ||
destroy(input: $input) { | ||
...deployment | ||
} | ||
} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.BatchDeployDocument = ` | ||
mutation batchDeploy($input: BatchDeployInput!) { | ||
batchDeploy(input: $input) { | ||
...deployment | ||
} | ||
} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.ListServicesDocument = ` | ||
@@ -234,2 +255,11 @@ query listServices($tenantId: ID!) { | ||
}, | ||
deploy(variables, options) { | ||
return requester(exports.DeployDocument, variables, options); | ||
}, | ||
destroy(variables, options) { | ||
return requester(exports.DestroyDocument, variables, options); | ||
}, | ||
batchDeploy(variables, options) { | ||
return requester(exports.BatchDeployDocument, variables, options); | ||
}, | ||
listServices(variables, options) { | ||
@@ -236,0 +266,0 @@ return requester(exports.ListServicesDocument, variables, options); |
339255
7540