@droz-js/sdk 0.9.42 → 0.9.44
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 +3 -0
- package/src/sdks/drozcommons.d.ts +21 -2
- package/src/sdks/drozcommons.js +22 -3
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -612,8 +620,10 @@ export type GetAuthInfoQuery = {
|
|
|
612
620
|
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'command' | 'gitRepository' | 'branch' | 'status' | 'message' | 'services' | 'deployedVersion' | 'createdAt' | 'updatedAt'>;
|
|
613
621
|
export type GitRepositoryFragment = (Pick<GitRepository, 'id' | 'name'> & {
|
|
614
622
|
branches: Array<GitBranchFragment>;
|
|
623
|
+
tags: Array<GitTagFragment>;
|
|
615
624
|
});
|
|
616
625
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
626
|
+
export type GitTagFragment = Pick<GitTag, 'name'>;
|
|
617
627
|
export type ListGitRepositoriesQueryVariables = Exact<{
|
|
618
628
|
[key: string]: never;
|
|
619
629
|
}>;
|
|
@@ -632,6 +642,12 @@ export type ListGitBranchesQueryVariables = Exact<{
|
|
|
632
642
|
export type ListGitBranchesQuery = {
|
|
633
643
|
listGitBranches: Array<Pick<GitBranch, 'name'>>;
|
|
634
644
|
};
|
|
645
|
+
export type ListGitTagsQueryVariables = Exact<{
|
|
646
|
+
gitRepositoryId: Scalars['ID']['input'];
|
|
647
|
+
}>;
|
|
648
|
+
export type ListGitTagsQuery = {
|
|
649
|
+
listGitTags: Array<Pick<GitTag, 'name'>>;
|
|
650
|
+
};
|
|
635
651
|
export type GetDeploymentQueryVariables = Exact<{
|
|
636
652
|
tenantId: Scalars['ID']['input'];
|
|
637
653
|
deploymentId: Scalars['ID']['input'];
|
|
@@ -826,7 +842,8 @@ export declare const RegionFragmentDoc = "\n fragment region on Region {\n n
|
|
|
826
842
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
|
|
827
843
|
export declare const DeploymentFragmentDoc = "\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 ";
|
|
828
844
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
829
|
-
export declare const
|
|
845
|
+
export declare const GitTagFragmentDoc = "\n fragment gitTag on GitTag {\n name\n}\n ";
|
|
846
|
+
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n tags {\n ...gitTag\n }\n}\n ";
|
|
830
847
|
export declare const ParameterFragmentDoc = "\n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
831
848
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
832
849
|
export declare const TenantFragmentDoc = "\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 identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
@@ -836,9 +853,10 @@ export declare const UpdateAccountDocument = "\n mutation updateAccount($inpu
|
|
|
836
853
|
export declare const GetMeDocument = "\n query getMe {\n getMe {\n id\n email\n name\n picture\n }\n}\n ";
|
|
837
854
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
838
855
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
839
|
-
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 ";
|
|
856
|
+
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 tags {\n ...gitTag\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n \n\n fragment gitTag on GitTag {\n name\n}\n ";
|
|
840
857
|
export declare const ListDrozServicesDocument = "\n query listDrozServices {\n listDrozServices {\n id\n name\n }\n}\n ";
|
|
841
858
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
859
|
+
export declare const ListGitTagsDocument = "\n query listGitTags($gitRepositoryId: ID!) {\n listGitTags(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
842
860
|
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
861
|
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
862
|
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 +897,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
879
897
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
880
898
|
listDrozServices(variables?: ListDrozServicesQueryVariables, options?: C): Promise<ListDrozServicesQuery>;
|
|
881
899
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
900
|
+
listGitTags(variables: ListGitTagsQueryVariables, options?: C): Promise<ListGitTagsQuery>;
|
|
882
901
|
getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
|
|
883
902
|
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
|
|
884
903
|
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = void 0;
|
|
4
|
+
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.GitTagFragmentDoc = 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 = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -90,6 +90,11 @@ exports.GitBranchFragmentDoc = `
|
|
|
90
90
|
name
|
|
91
91
|
}
|
|
92
92
|
`;
|
|
93
|
+
exports.GitTagFragmentDoc = `
|
|
94
|
+
fragment gitTag on GitTag {
|
|
95
|
+
name
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
93
98
|
exports.GitRepositoryFragmentDoc = `
|
|
94
99
|
fragment gitRepository on GitRepository {
|
|
95
100
|
id
|
|
@@ -97,6 +102,9 @@ exports.GitRepositoryFragmentDoc = `
|
|
|
97
102
|
branches {
|
|
98
103
|
...gitBranch
|
|
99
104
|
}
|
|
105
|
+
tags {
|
|
106
|
+
...gitTag
|
|
107
|
+
}
|
|
100
108
|
}
|
|
101
109
|
`;
|
|
102
110
|
exports.ParameterFragmentDoc = `
|
|
@@ -198,7 +206,8 @@ exports.ListGitRepositoriesDocument = `
|
|
|
198
206
|
}
|
|
199
207
|
}
|
|
200
208
|
${exports.GitRepositoryFragmentDoc}
|
|
201
|
-
${exports.GitBranchFragmentDoc}
|
|
209
|
+
${exports.GitBranchFragmentDoc}
|
|
210
|
+
${exports.GitTagFragmentDoc}`;
|
|
202
211
|
exports.ListDrozServicesDocument = `
|
|
203
212
|
query listDrozServices {
|
|
204
213
|
listDrozServices {
|
|
@@ -214,6 +223,13 @@ exports.ListGitBranchesDocument = `
|
|
|
214
223
|
}
|
|
215
224
|
}
|
|
216
225
|
`;
|
|
226
|
+
exports.ListGitTagsDocument = `
|
|
227
|
+
query listGitTags($gitRepositoryId: ID!) {
|
|
228
|
+
listGitTags(gitRepositoryId: $gitRepositoryId) {
|
|
229
|
+
name
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
`;
|
|
217
233
|
exports.GetDeploymentDocument = `
|
|
218
234
|
query getDeployment($tenantId: ID!, $deploymentId: ID!) {
|
|
219
235
|
getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) {
|
|
@@ -461,6 +477,9 @@ function getSdk(requester) {
|
|
|
461
477
|
listGitBranches(variables, options) {
|
|
462
478
|
return requester(exports.ListGitBranchesDocument, variables, options);
|
|
463
479
|
},
|
|
480
|
+
listGitTags(variables, options) {
|
|
481
|
+
return requester(exports.ListGitTagsDocument, variables, options);
|
|
482
|
+
},
|
|
464
483
|
getDeployment(variables, options) {
|
|
465
484
|
return requester(exports.GetDeploymentDocument, variables, options);
|
|
466
485
|
},
|