@droz-js/sdk 0.9.41 → 0.9.43

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.9.41",
4
+ "version": "0.9.43",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -33,6 +33,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
33
33
  listGitBranches(variables: import("./sdks/drozcommons").Exact<{
34
34
  gitRepositoryId: import("./sdks/drozcommons").Scalars["ID"]["input"];
35
35
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
36
+ listGitTags(variables: import("./sdks/drozcommons").Exact<{
37
+ gitRepositoryId: import("./sdks/drozcommons").Scalars["ID"]["input"];
38
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitTagsQuery>;
36
39
  getDeployment(variables: import("./sdks/drozcommons").Exact<{
37
40
  tenantId: import("./sdks/drozcommons").Scalars["ID"]["input"];
38
41
  deploymentId: import("./sdks/drozcommons").Scalars["ID"]["input"];
@@ -233,6 +233,10 @@ export type GitRepository = {
233
233
  branches: Array<GitBranch>;
234
234
  id: Scalars['ID']['output'];
235
235
  name: Scalars['String']['output'];
236
+ tags: Array<GitTag>;
237
+ };
238
+ export type GitTag = {
239
+ name: Scalars['String']['output'];
236
240
  };
237
241
  export type I18nText = {
238
242
  lang: Scalars['Locale']['output'];
@@ -388,6 +392,7 @@ export type Query = {
388
392
  listDrozServices: Array<DrozService>;
389
393
  listGitBranches: Array<GitBranch>;
390
394
  listGitRepositories: Array<GitRepository>;
395
+ listGitTags: Array<GitTag>;
391
396
  listGlobalParameters?: Maybe<Array<Parameter>>;
392
397
  listRegions: Array<Region>;
393
398
  listServices: Array<Maybe<Service>>;
@@ -439,6 +444,9 @@ export type QueryListDeploymentsArgs = {
439
444
  export type QueryListGitBranchesArgs = {
440
445
  gitRepositoryId: Scalars['ID']['input'];
441
446
  };
447
+ export type QueryListGitTagsArgs = {
448
+ gitRepositoryId: Scalars['ID']['input'];
449
+ };
442
450
  export type QueryListServicesArgs = {
443
451
  tenantId: Scalars['ID']['input'];
444
452
  };
@@ -632,6 +640,12 @@ export type ListGitBranchesQueryVariables = Exact<{
632
640
  export type ListGitBranchesQuery = {
633
641
  listGitBranches: Array<Pick<GitBranch, 'name'>>;
634
642
  };
643
+ export type ListGitTagsQueryVariables = Exact<{
644
+ gitRepositoryId: Scalars['ID']['input'];
645
+ }>;
646
+ export type ListGitTagsQuery = {
647
+ listGitTags: Array<Pick<GitTag, 'name'>>;
648
+ };
635
649
  export type GetDeploymentQueryVariables = Exact<{
636
650
  tenantId: Scalars['ID']['input'];
637
651
  deploymentId: Scalars['ID']['input'];
@@ -839,6 +853,7 @@ export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInf
839
853
  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\n fragment gitBranch on GitBranch {\n name\n}\n ";
840
854
  export declare const ListDrozServicesDocument = "\n query listDrozServices {\n listDrozServices {\n id\n name\n }\n}\n ";
841
855
  export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
856
+ export declare const ListGitTagsDocument = "\n query listGitTags($gitRepositoryId: ID!) {\n listGitTags(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
842
857
  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 services\n deployedVersion\n createdAt\n updatedAt\n}\n ";
843
858
  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 services\n deployedVersion\n createdAt\n updatedAt\n}\n ";
844
859
  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 ";
@@ -879,6 +894,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
879
894
  listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
880
895
  listDrozServices(variables?: ListDrozServicesQueryVariables, options?: C): Promise<ListDrozServicesQuery>;
881
896
  listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
897
+ listGitTags(variables: ListGitTagsQueryVariables, options?: C): Promise<ListGitTagsQuery>;
882
898
  getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
883
899
  listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
884
900
  deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CreateTenantDocument = exports.GetZendeskTicketDetailsDocument = exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
5
- exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = void 0;
4
+ exports.GetZendeskTicketDetailsDocument = exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitTagsDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
5
+ exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = void 0;
6
6
  exports.getSdk = getSdk;
7
7
  var AppInstanceStatus;
8
8
  (function (AppInstanceStatus) {
@@ -214,6 +214,13 @@ exports.ListGitBranchesDocument = `
214
214
  }
215
215
  }
216
216
  `;
217
+ exports.ListGitTagsDocument = `
218
+ query listGitTags($gitRepositoryId: ID!) {
219
+ listGitTags(gitRepositoryId: $gitRepositoryId) {
220
+ name
221
+ }
222
+ }
223
+ `;
217
224
  exports.GetDeploymentDocument = `
218
225
  query getDeployment($tenantId: ID!, $deploymentId: ID!) {
219
226
  getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) {
@@ -461,6 +468,9 @@ function getSdk(requester) {
461
468
  listGitBranches(variables, options) {
462
469
  return requester(exports.ListGitBranchesDocument, variables, options);
463
470
  },
471
+ listGitTags(variables, options) {
472
+ return requester(exports.ListGitTagsDocument, variables, options);
473
+ },
464
474
  getDeployment(variables, options) {
465
475
  return requester(exports.GetDeploymentDocument, variables, options);
466
476
  },