@droz-js/sdk 0.9.8 → 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 +15 -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>;
|
|
@@ -122,6 +122,12 @@ export type Scalars = {
|
|
|
122
122
|
output: void;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
+
export type AdminAgent = {
|
|
126
|
+
email: Scalars['EmailAddress']['output'];
|
|
127
|
+
id: Scalars['ID']['output'];
|
|
128
|
+
name: Scalars['String']['output'];
|
|
129
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
130
|
+
};
|
|
125
131
|
export type AgentInfo = {
|
|
126
132
|
id: Scalars['ID']['output'];
|
|
127
133
|
name: Scalars['String']['output'];
|
|
@@ -357,6 +363,7 @@ export type Query = {
|
|
|
357
363
|
getFederationMetadata: Scalars['String']['output'];
|
|
358
364
|
getGlobalParameter?: Maybe<Parameter>;
|
|
359
365
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
366
|
+
getMe?: Maybe<AdminAgent>;
|
|
360
367
|
getTenant?: Maybe<Tenant>;
|
|
361
368
|
getTenantParameter?: Maybe<Parameter>;
|
|
362
369
|
listAccountParameters?: Maybe<Array<Parameter>>;
|
|
@@ -563,6 +570,12 @@ export type UpdateAccountMutationVariables = Exact<{
|
|
|
563
570
|
export type UpdateAccountMutation = {
|
|
564
571
|
updateAccount: AwsAccountFragment;
|
|
565
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
|
+
};
|
|
566
579
|
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
567
580
|
forDev?: InputMaybe<Scalars['Boolean']['input']>;
|
|
568
581
|
}>;
|
|
@@ -784,6 +797,7 @@ export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n a
|
|
|
784
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 ";
|
|
785
798
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
786
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 ";
|
|
787
801
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
788
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 ";
|
|
789
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 ";
|
|
@@ -820,6 +834,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
820
834
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
821
835
|
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>;
|
|
822
836
|
updateAccount(variables: UpdateAccountMutationVariables, options?: C): Promise<UpdateAccountMutation>;
|
|
837
|
+
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
823
838
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
824
839
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
825
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
|
},
|