@droz-js/sdk
Advanced tools
Comparing version 0.4.11 to 0.4.12
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -23,2 +23,6 @@ export * from './sdks/drozcommons'; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>; | ||
getDeployment(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: string; | ||
deploymentId: string; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetDeploymentQuery>; | ||
listDeployments(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -25,0 +29,0 @@ tenantId: string; |
@@ -208,2 +208,3 @@ export type Maybe<T> = T; | ||
deploymentLogs: DeploymentLogConnection; | ||
getDeployment: Deployment; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
@@ -227,2 +228,6 @@ getTenant?: Maybe<Tenant>; | ||
}; | ||
export type QueryGetDeploymentArgs = { | ||
deploymentId: Scalars['ID']['input']; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetTenantArgs = { | ||
@@ -308,2 +313,9 @@ tenantId: Scalars['ID']['input']; | ||
}; | ||
export type GetDeploymentQueryVariables = Exact<{ | ||
tenantId: Scalars['ID']['input']; | ||
deploymentId: Scalars['ID']['input']; | ||
}>; | ||
export type GetDeploymentQuery = { | ||
getDeployment: DeploymentFragment; | ||
}; | ||
export type ListDeploymentsQueryVariables = Exact<{ | ||
@@ -405,2 +417,3 @@ tenantId: Scalars['ID']['input']; | ||
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n "; | ||
export declare const GetDeploymentDocument = "\n query getDeployment($tenantId: ID!, $deploymentId: ID!) {\n getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) {\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 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 "; | ||
@@ -424,2 +437,3 @@ 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 "; | ||
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>; | ||
getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>; | ||
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>; | ||
@@ -426,0 +440,0 @@ deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>; |
"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.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; | ||
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.GetDeploymentDocument = 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; | ||
@@ -129,2 +129,9 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.GetDeploymentDocument = ` | ||
query getDeployment($tenantId: ID!, $deploymentId: ID!) { | ||
getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) { | ||
...deployment | ||
} | ||
} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.ListDeploymentsDocument = ` | ||
@@ -249,2 +256,5 @@ query listDeployments($tenantId: ID!, $limit: Int) { | ||
}, | ||
getDeployment(variables, options) { | ||
return requester(exports.GetDeploymentDocument, variables, options); | ||
}, | ||
listDeployments(variables, options) { | ||
@@ -251,0 +261,0 @@ return requester(exports.ListDeploymentsDocument, variables, options); |
340709
7569