@droz-js/sdk 0.4.11 → 0.4.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.4.11",
4
+ "version": "0.4.12",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -20,6 +20,10 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
20
20
  listGitBranches(variables: import("./sdks/drozcommons").Exact<{
21
21
  gitRepositoryId: string;
22
22
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
23
+ getDeployment(variables: import("./sdks/drozcommons").Exact<{
24
+ tenantId: string;
25
+ deploymentId: string;
26
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").GetDeploymentQuery>;
23
27
  listDeployments(variables: import("./sdks/drozcommons").Exact<{
24
28
  tenantId: string;
25
29
  limit?: number;
@@ -205,6 +205,7 @@ export type Query = {
205
205
  app?: Maybe<Scalars['DRN']['output']>;
206
206
  authInfo?: Maybe<AuthInfo>;
207
207
  deploymentLogs: DeploymentLogConnection;
208
+ getDeployment: Deployment;
208
209
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
209
210
  getTenant?: Maybe<Tenant>;
210
211
  listAccounts: Array<AwsAccount>;
@@ -223,6 +224,10 @@ export type QueryDeploymentLogsArgs = {
223
224
  next?: InputMaybe<Scalars['Base64']['input']>;
224
225
  tenantId: Scalars['ID']['input'];
225
226
  };
227
+ export type QueryGetDeploymentArgs = {
228
+ deploymentId: Scalars['ID']['input'];
229
+ tenantId: Scalars['ID']['input'];
230
+ };
226
231
  export type QueryGetTenantArgs = {
227
232
  tenantId: Scalars['ID']['input'];
228
233
  };
@@ -303,6 +308,13 @@ export type ListGitBranchesQueryVariables = Exact<{
303
308
  export type ListGitBranchesQuery = {
304
309
  listGitBranches: Array<Pick<GitBranch, 'name'>>;
305
310
  };
311
+ export type GetDeploymentQueryVariables = Exact<{
312
+ tenantId: Scalars['ID']['input'];
313
+ deploymentId: Scalars['ID']['input'];
314
+ }>;
315
+ export type GetDeploymentQuery = {
316
+ getDeployment: DeploymentFragment;
317
+ };
306
318
  export type ListDeploymentsQueryVariables = Exact<{
307
319
  tenantId: Scalars['ID']['input'];
308
320
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -399,6 +411,7 @@ export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInf
399
411
  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 ";
400
412
  export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
401
413
  export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
414
+ 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 ";
402
415
  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 ";
403
416
  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
417
  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 ";
@@ -417,6 +430,7 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
417
430
  listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
418
431
  listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
419
432
  listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
433
+ getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
420
434
  listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
421
435
  deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
422
436
  deploy(variables: DeployMutationVariables, options?: C): Promise<DeployMutation>;
@@ -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.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;
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.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;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -126,6 +126,13 @@ exports.ListGitBranchesDocument = `
126
126
  }
127
127
  }
128
128
  `;
129
+ exports.GetDeploymentDocument = `
130
+ query getDeployment($tenantId: ID!, $deploymentId: ID!) {
131
+ getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) {
132
+ ...deployment
133
+ }
134
+ }
135
+ ${exports.DeploymentFragmentDoc}`;
129
136
  exports.ListDeploymentsDocument = `
130
137
  query listDeployments($tenantId: ID!, $limit: Int) {
131
138
  listDeployments(tenantId: $tenantId, limit: $limit) {
@@ -245,6 +252,9 @@ function getSdk(requester) {
245
252
  listGitBranches(variables, options) {
246
253
  return requester(exports.ListGitBranchesDocument, variables, options);
247
254
  },
255
+ getDeployment(variables, options) {
256
+ return requester(exports.GetDeploymentDocument, variables, options);
257
+ },
248
258
  listDeployments(variables, options) {
249
259
  return requester(exports.ListDeploymentsDocument, variables, options);
250
260
  },