@droz-js/sdk 0.4.8 → 0.4.9
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/sdks/drozcommons.d.ts +10 -7
- package/src/sdks/drozcommons.js +5 -0
package/package.json
CHANGED
|
@@ -247,6 +247,7 @@ export type Service = {
|
|
|
247
247
|
type: Scalars['String']['output'];
|
|
248
248
|
};
|
|
249
249
|
export type Tenant = {
|
|
250
|
+
account: AwsAccount;
|
|
250
251
|
accountId: Scalars['ID']['output'];
|
|
251
252
|
createdAt: Scalars['DateTime']['output'];
|
|
252
253
|
deployedVersions?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -327,7 +328,9 @@ export type ListServicesQueryVariables = Exact<{
|
|
|
327
328
|
export type ListServicesQuery = {
|
|
328
329
|
listServices: Array<Maybe<ServiceFragment>>;
|
|
329
330
|
};
|
|
330
|
-
export type TenantFragment = Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'createdAt' | 'updatedAt'
|
|
331
|
+
export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'disabled' | 'createdAt' | 'updatedAt'> & {
|
|
332
|
+
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
333
|
+
});
|
|
331
334
|
export type GetTenantQueryVariables = Exact<{
|
|
332
335
|
tenantId: Scalars['ID']['input'];
|
|
333
336
|
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -372,7 +375,7 @@ export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBran
|
|
|
372
375
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
373
376
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
374
377
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
375
|
-
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
378
|
+
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}\n ";
|
|
376
379
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
377
380
|
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 ";
|
|
378
381
|
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}\n ";
|
|
@@ -381,11 +384,11 @@ export declare const ListGitBranchesDocument = "\n query listGitBranches($git
|
|
|
381
384
|
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 deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
382
385
|
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 ";
|
|
383
386
|
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
384
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
385
|
-
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
386
|
-
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
387
|
-
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
388
|
-
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
387
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \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}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
388
|
+
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \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}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
389
|
+
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \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}\n ";
|
|
390
|
+
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \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}\n ";
|
|
391
|
+
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \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}\n ";
|
|
389
392
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
390
393
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
391
394
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|