@droz-js/sdk 0.9.26 → 0.9.27
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 +14 -1
- package/src/sdks/drozcommons.js +13 -2
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
27
27
|
listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{
|
|
28
28
|
[key: string]: never;
|
|
29
29
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitRepositoriesQuery>;
|
|
30
|
+
listDrozServices(variables?: import("./sdks/drozcommons").Exact<{
|
|
31
|
+
[key: string]: never;
|
|
32
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListDrozServicesQuery>;
|
|
30
33
|
listGitBranches(variables: import("./sdks/drozcommons").Exact<{
|
|
31
34
|
gitRepositoryId: import("./sdks/drozcommons").Scalars["ID"]["input"];
|
|
32
35
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
|
|
@@ -180,7 +180,7 @@ export type CreateTenantInput = {
|
|
|
180
180
|
export type DeployInput = {
|
|
181
181
|
branch: Scalars['String']['input'];
|
|
182
182
|
gitRepository: Scalars['String']['input'];
|
|
183
|
-
services
|
|
183
|
+
services?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
184
184
|
tenantId: Scalars['ID']['input'];
|
|
185
185
|
};
|
|
186
186
|
export type Deployment = {
|
|
@@ -222,6 +222,10 @@ export type DestroyInput = {
|
|
|
222
222
|
services: Array<InputMaybe<Scalars['String']['input']>>;
|
|
223
223
|
tenantId: Scalars['ID']['input'];
|
|
224
224
|
};
|
|
225
|
+
export type DrozService = {
|
|
226
|
+
id: Scalars['String']['output'];
|
|
227
|
+
name: Scalars['String']['output'];
|
|
228
|
+
};
|
|
225
229
|
export type GitBranch = {
|
|
226
230
|
name: Scalars['String']['output'];
|
|
227
231
|
};
|
|
@@ -380,6 +384,7 @@ export type Query = {
|
|
|
380
384
|
listAccountParameters?: Maybe<Array<Parameter>>;
|
|
381
385
|
listAccounts: Array<AwsAccount>;
|
|
382
386
|
listDeployments: Array<Deployment>;
|
|
387
|
+
listDrozServices: Array<DrozService>;
|
|
383
388
|
listGitBranches: Array<GitBranch>;
|
|
384
389
|
listGitRepositories: Array<GitRepository>;
|
|
385
390
|
listGlobalParameters?: Maybe<Array<Parameter>>;
|
|
@@ -610,6 +615,12 @@ export type ListGitRepositoriesQueryVariables = Exact<{
|
|
|
610
615
|
export type ListGitRepositoriesQuery = {
|
|
611
616
|
listGitRepositories: Array<GitRepositoryFragment>;
|
|
612
617
|
};
|
|
618
|
+
export type ListDrozServicesQueryVariables = Exact<{
|
|
619
|
+
[key: string]: never;
|
|
620
|
+
}>;
|
|
621
|
+
export type ListDrozServicesQuery = {
|
|
622
|
+
listDrozServices: Array<Pick<DrozService, 'id' | 'name'>>;
|
|
623
|
+
};
|
|
613
624
|
export type ListGitBranchesQueryVariables = Exact<{
|
|
614
625
|
gitRepositoryId: Scalars['ID']['input'];
|
|
615
626
|
}>;
|
|
@@ -816,6 +827,7 @@ export declare const GetMeDocument = "\n query getMe {\n getMe {\n id\n
|
|
|
816
827
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
817
828
|
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 ";
|
|
818
829
|
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 ";
|
|
830
|
+
export declare const ListDrozServicesDocument = "\n query listDrozServices {\n listDrozServices {\n id\n name\n }\n}\n ";
|
|
819
831
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
820
832
|
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 ";
|
|
821
833
|
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 ";
|
|
@@ -854,6 +866,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
854
866
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
855
867
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
856
868
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
869
|
+
listDrozServices(variables?: ListDrozServicesQueryVariables, options?: C): Promise<ListDrozServicesQuery>;
|
|
857
870
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
858
871
|
getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
|
|
859
872
|
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
|
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 = void 0;
|
|
4
|
+
exports.UpdateTenantDocument = exports.CreateTenantDocument = 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 = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -199,6 +199,14 @@ exports.ListGitRepositoriesDocument = `
|
|
|
199
199
|
}
|
|
200
200
|
${exports.GitRepositoryFragmentDoc}
|
|
201
201
|
${exports.GitBranchFragmentDoc}`;
|
|
202
|
+
exports.ListDrozServicesDocument = `
|
|
203
|
+
query listDrozServices {
|
|
204
|
+
listDrozServices {
|
|
205
|
+
id
|
|
206
|
+
name
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
202
210
|
exports.ListGitBranchesDocument = `
|
|
203
211
|
query listGitBranches($gitRepositoryId: ID!) {
|
|
204
212
|
listGitBranches(gitRepositoryId: $gitRepositoryId) {
|
|
@@ -442,6 +450,9 @@ function getSdk(requester) {
|
|
|
442
450
|
listGitRepositories(variables, options) {
|
|
443
451
|
return requester(exports.ListGitRepositoriesDocument, variables, options);
|
|
444
452
|
},
|
|
453
|
+
listDrozServices(variables, options) {
|
|
454
|
+
return requester(exports.ListDrozServicesDocument, variables, options);
|
|
455
|
+
},
|
|
445
456
|
listGitBranches(variables, options) {
|
|
446
457
|
return requester(exports.ListGitBranchesDocument, variables, options);
|
|
447
458
|
},
|