@droz-js/sdk 0.3.7 → 0.3.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/drozadmin.d.ts +7 -0
- package/src/sdks/drozcommons.d.ts +21 -0
- package/src/sdks/drozcommons.js +19 -1
- package/src/sdks/nucleus.d.ts +4 -0
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
} & {
|
|
8
|
+
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
|
|
9
|
+
[key: string]: never;
|
|
10
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
|
|
8
11
|
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{
|
|
9
12
|
[key: string]: never;
|
|
10
13
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>;
|
|
@@ -17,6 +20,10 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
17
20
|
listGitBranches(variables: import("./sdks/drozcommons").Exact<{
|
|
18
21
|
gitRepositoryId: string;
|
|
19
22
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>;
|
|
23
|
+
listDeployments(variables: import("./sdks/drozcommons").Exact<{
|
|
24
|
+
tenantId: string;
|
|
25
|
+
limit?: number;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListDeploymentsQuery>;
|
|
20
27
|
deploymentLogs(variables: import("./sdks/drozcommons").Exact<{
|
|
21
28
|
tenantId: string;
|
|
22
29
|
deploymentId: string;
|
|
@@ -191,12 +191,14 @@ export type PageInfo = {
|
|
|
191
191
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
192
192
|
};
|
|
193
193
|
export type Query = {
|
|
194
|
+
amplifyConfig?: Maybe<Scalars['JSON']['output']>;
|
|
194
195
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
195
196
|
authInfo?: Maybe<AuthInfo>;
|
|
196
197
|
deploymentLogs: DeploymentLogConnection;
|
|
197
198
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
198
199
|
getTenant?: Maybe<Tenant>;
|
|
199
200
|
listAccounts: Array<AwsAccount>;
|
|
201
|
+
listDeployments: Array<Deployment>;
|
|
200
202
|
listGitBranches: Array<GitBranch>;
|
|
201
203
|
listGitRepositories: Array<GitRepository>;
|
|
202
204
|
listServices: Array<Maybe<Service>>;
|
|
@@ -211,6 +213,10 @@ export type QueryDeploymentLogsArgs = {
|
|
|
211
213
|
export type QueryGetTenantArgs = {
|
|
212
214
|
tenantId: Scalars['ID']['input'];
|
|
213
215
|
};
|
|
216
|
+
export type QueryListDeploymentsArgs = {
|
|
217
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
218
|
+
tenantId: Scalars['ID']['input'];
|
|
219
|
+
};
|
|
214
220
|
export type QueryListGitBranchesArgs = {
|
|
215
221
|
gitRepositoryId: Scalars['ID']['input'];
|
|
216
222
|
};
|
|
@@ -247,6 +253,10 @@ export type UpdateTenantInput = {
|
|
|
247
253
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
248
254
|
tenantId: Scalars['ID']['input'];
|
|
249
255
|
};
|
|
256
|
+
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
257
|
+
[key: string]: never;
|
|
258
|
+
}>;
|
|
259
|
+
export type GetAmplifyConfigQuery = Pick<Query, 'amplifyConfig'>;
|
|
250
260
|
export type GetAuthInfoQueryVariables = Exact<{
|
|
251
261
|
[key: string]: never;
|
|
252
262
|
}>;
|
|
@@ -277,6 +287,13 @@ export type ListGitBranchesQueryVariables = Exact<{
|
|
|
277
287
|
export type ListGitBranchesQuery = {
|
|
278
288
|
listGitBranches: Array<Pick<GitBranch, 'name'>>;
|
|
279
289
|
};
|
|
290
|
+
export type ListDeploymentsQueryVariables = Exact<{
|
|
291
|
+
tenantId: Scalars['ID']['input'];
|
|
292
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
293
|
+
}>;
|
|
294
|
+
export type ListDeploymentsQuery = {
|
|
295
|
+
listDeployments: Array<DeploymentFragment>;
|
|
296
|
+
};
|
|
280
297
|
export type DeploymentLogsQueryVariables = Exact<{
|
|
281
298
|
tenantId: Scalars['ID']['input'];
|
|
282
299
|
deploymentId: Scalars['ID']['input'];
|
|
@@ -341,10 +358,12 @@ export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBran
|
|
|
341
358
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
342
359
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
343
360
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n ";
|
|
361
|
+
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
344
362
|
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 ";
|
|
345
363
|
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 ";
|
|
346
364
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n}\n ";
|
|
347
365
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
366
|
+
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 ";
|
|
348
367
|
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 ";
|
|
349
368
|
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 ";
|
|
350
369
|
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 ";
|
|
@@ -354,10 +373,12 @@ export declare const UpdateTenantDocument = "\n mutation updateTenant($input:
|
|
|
354
373
|
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 ";
|
|
355
374
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
356
375
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
376
|
+
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
357
377
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
358
378
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
359
379
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
360
380
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
381
|
+
listDeployments(variables: ListDeploymentsQueryVariables, options?: C): Promise<ListDeploymentsQuery>;
|
|
361
382
|
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>;
|
|
362
383
|
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
|
|
363
384
|
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -77,6 +77,11 @@ exports.TenantFragmentDoc = `
|
|
|
77
77
|
updatedAt
|
|
78
78
|
}
|
|
79
79
|
`;
|
|
80
|
+
exports.GetAmplifyConfigDocument = `
|
|
81
|
+
query getAmplifyConfig {
|
|
82
|
+
amplifyConfig
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
80
85
|
exports.GetAuthInfoDocument = `
|
|
81
86
|
query getAuthInfo {
|
|
82
87
|
authInfo {
|
|
@@ -113,6 +118,13 @@ exports.ListGitBranchesDocument = `
|
|
|
113
118
|
}
|
|
114
119
|
}
|
|
115
120
|
`;
|
|
121
|
+
exports.ListDeploymentsDocument = `
|
|
122
|
+
query listDeployments($tenantId: ID!, $limit: Int) {
|
|
123
|
+
listDeployments(tenantId: $tenantId, limit: $limit) {
|
|
124
|
+
...deployment
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
${exports.DeploymentFragmentDoc}`;
|
|
116
128
|
exports.DeploymentLogsDocument = `
|
|
117
129
|
query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {
|
|
118
130
|
deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {
|
|
@@ -189,6 +201,9 @@ exports.RemoveTenantDocument = `
|
|
|
189
201
|
${exports.TenantFragmentDoc}`;
|
|
190
202
|
function getSdk(requester) {
|
|
191
203
|
return {
|
|
204
|
+
getAmplifyConfig(variables, options) {
|
|
205
|
+
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
206
|
+
},
|
|
192
207
|
getAuthInfo(variables, options) {
|
|
193
208
|
return requester(exports.GetAuthInfoDocument, variables, options);
|
|
194
209
|
},
|
|
@@ -201,6 +216,9 @@ function getSdk(requester) {
|
|
|
201
216
|
listGitBranches(variables, options) {
|
|
202
217
|
return requester(exports.ListGitBranchesDocument, variables, options);
|
|
203
218
|
},
|
|
219
|
+
listDeployments(variables, options) {
|
|
220
|
+
return requester(exports.ListDeploymentsDocument, variables, options);
|
|
221
|
+
},
|
|
204
222
|
deploymentLogs(variables, options) {
|
|
205
223
|
return requester(exports.DeploymentLogsDocument, variables, options);
|
|
206
224
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -419,6 +419,7 @@ export type Query = {
|
|
|
419
419
|
amplifyConfig?: Maybe<Scalars['JSON']['output']>;
|
|
420
420
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
421
421
|
authInfo?: Maybe<AuthInfo>;
|
|
422
|
+
canUnregisterAppInstance: Scalars['Boolean']['output'];
|
|
422
423
|
countAppInstances: Scalars['Int']['output'];
|
|
423
424
|
countCredentials: Scalars['Int']['output'];
|
|
424
425
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
@@ -449,6 +450,9 @@ export type Query = {
|
|
|
449
450
|
listSystemRoles: Array<Role>;
|
|
450
451
|
version?: Maybe<Scalars['String']['output']>;
|
|
451
452
|
};
|
|
453
|
+
export type QueryCanUnregisterAppInstanceArgs = {
|
|
454
|
+
drn: Scalars['DRN']['input'];
|
|
455
|
+
};
|
|
452
456
|
export type QueryGetAgentArgs = {
|
|
453
457
|
id: Scalars['ID']['input'];
|
|
454
458
|
};
|