@droz-js/sdk 0.9.9 → 0.9.10
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 +8 -0
- package/src/sdks/drozcommons.js +15 -2
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
15
15
|
updateAccount(variables: import("./sdks/drozcommons").Exact<{
|
|
16
16
|
input: import("./sdks/drozcommons").UpdateAccountInput;
|
|
17
17
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateAccountMutation>;
|
|
18
|
+
getMe(variables?: import("./sdks/drozcommons").Exact<{
|
|
19
|
+
[key: string]: never;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetMeQuery>;
|
|
18
21
|
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
|
|
19
22
|
forDev?: import("./sdks/drozcommons").InputMaybe<import("./sdks/drozcommons").Scalars["Boolean"]["input"]>;
|
|
20
23
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
|
|
@@ -570,6 +570,12 @@ export type UpdateAccountMutationVariables = Exact<{
|
|
|
570
570
|
export type UpdateAccountMutation = {
|
|
571
571
|
updateAccount: AwsAccountFragment;
|
|
572
572
|
};
|
|
573
|
+
export type GetMeQueryVariables = Exact<{
|
|
574
|
+
[key: string]: never;
|
|
575
|
+
}>;
|
|
576
|
+
export type GetMeQuery = {
|
|
577
|
+
getMe?: Maybe<Pick<AdminAgent, 'id' | 'email' | 'name' | 'picture'>>;
|
|
578
|
+
};
|
|
573
579
|
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
574
580
|
forDev?: InputMaybe<Scalars['Boolean']['input']>;
|
|
575
581
|
}>;
|
|
@@ -791,6 +797,7 @@ export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n a
|
|
|
791
797
|
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 availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
792
798
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
793
799
|
export declare const UpdateAccountDocument = "\n mutation updateAccount($input: UpdateAccountInput!) {\n updateAccount(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
800
|
+
export declare const GetMeDocument = "\n query getMe {\n getMe {\n id\n email\n name\n picture\n }\n}\n ";
|
|
794
801
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
795
802
|
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 ";
|
|
796
803
|
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 ";
|
|
@@ -827,6 +834,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
827
834
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
828
835
|
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>;
|
|
829
836
|
updateAccount(variables: UpdateAccountMutationVariables, options?: C): Promise<UpdateAccountMutation>;
|
|
837
|
+
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
830
838
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
831
839
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
832
840
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
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 = void 0;
|
|
4
|
+
exports.RemoveTenantDocument = 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.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.JoinTenantAsSuperAdminDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -160,6 +160,16 @@ exports.UpdateAccountDocument = `
|
|
|
160
160
|
}
|
|
161
161
|
${exports.AwsAccountFragmentDoc}
|
|
162
162
|
${exports.RegionFragmentDoc}`;
|
|
163
|
+
exports.GetMeDocument = `
|
|
164
|
+
query getMe {
|
|
165
|
+
getMe {
|
|
166
|
+
id
|
|
167
|
+
email
|
|
168
|
+
name
|
|
169
|
+
picture
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
`;
|
|
163
173
|
exports.GetAmplifyConfigDocument = `
|
|
164
174
|
query getAmplifyConfig($forDev: Boolean) {
|
|
165
175
|
amplifyConfig(forDev: $forDev)
|
|
@@ -414,6 +424,9 @@ function getSdk(requester) {
|
|
|
414
424
|
updateAccount(variables, options) {
|
|
415
425
|
return requester(exports.UpdateAccountDocument, variables, options);
|
|
416
426
|
},
|
|
427
|
+
getMe(variables, options) {
|
|
428
|
+
return requester(exports.GetMeDocument, variables, options);
|
|
429
|
+
},
|
|
417
430
|
getAmplifyConfig(variables, options) {
|
|
418
431
|
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
419
432
|
},
|