@droz-js/sdk 0.5.15 → 0.5.16
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 +9 -6
- package/src/sdks/drozcommons.d.ts +46 -20
- package/src/sdks/drozcommons.js +50 -33
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -6,18 +6,21 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
8
|
} & {
|
|
9
|
-
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
|
|
10
|
-
forDev?: boolean;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
|
|
12
|
-
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{
|
|
13
|
-
[key: string]: never;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>;
|
|
15
9
|
listAccounts(variables?: import("./sdks/drozcommons").Exact<{
|
|
16
10
|
[key: string]: never;
|
|
17
11
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>;
|
|
18
12
|
listRegions(variables?: import("./sdks/drozcommons").Exact<{
|
|
19
13
|
[key: string]: never;
|
|
20
14
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListRegionsQuery>;
|
|
15
|
+
updateAccountParameters(variables: import("./sdks/drozcommons").Exact<{
|
|
16
|
+
input: import("./sdks/drozcommons").UpdateAccountParametersInput;
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateAccountParametersMutation>;
|
|
18
|
+
getAmplifyConfig(variables?: import("./sdks/drozcommons").Exact<{
|
|
19
|
+
forDev?: boolean;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAmplifyConfigQuery>;
|
|
21
|
+
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{
|
|
22
|
+
[key: string]: never;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>;
|
|
21
24
|
listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{
|
|
22
25
|
[key: string]: never;
|
|
23
26
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitRepositoriesQuery>;
|
|
@@ -99,11 +99,17 @@ export type AuthInfo = {
|
|
|
99
99
|
logoutUrl: Scalars['String']['output'];
|
|
100
100
|
};
|
|
101
101
|
export type AwsAccount = {
|
|
102
|
+
availableRegions: Array<Region>;
|
|
102
103
|
id: Scalars['ID']['output'];
|
|
103
104
|
name: Scalars['String']['output'];
|
|
105
|
+
parameters: AwsAccountParameters;
|
|
104
106
|
tenants: Array<Maybe<Tenant>>;
|
|
105
107
|
tenantsCount: Scalars['Int']['output'];
|
|
106
108
|
};
|
|
109
|
+
export type AwsAccountParameters = {
|
|
110
|
+
typesenseApiKey?: Maybe<Scalars['String']['output']>;
|
|
111
|
+
typesenseNodes?: Maybe<Scalars['String']['output']>;
|
|
112
|
+
};
|
|
107
113
|
export type BatchDeployInput = {
|
|
108
114
|
branch: Scalars['String']['input'];
|
|
109
115
|
gitRepository: Scalars['String']['input'];
|
|
@@ -180,6 +186,7 @@ export type Mutation = {
|
|
|
180
186
|
deploy: Deployment;
|
|
181
187
|
destroy: Deployment;
|
|
182
188
|
removeTenant: Tenant;
|
|
189
|
+
updateAccountParameters: AwsAccount;
|
|
183
190
|
updateTenant: Tenant;
|
|
184
191
|
version?: Maybe<Scalars['String']['output']>;
|
|
185
192
|
};
|
|
@@ -198,6 +205,9 @@ export type MutationDestroyArgs = {
|
|
|
198
205
|
export type MutationRemoveTenantArgs = {
|
|
199
206
|
input: RemoveTenantInput;
|
|
200
207
|
};
|
|
208
|
+
export type MutationUpdateAccountParametersArgs = {
|
|
209
|
+
input: UpdateAccountParametersInput;
|
|
210
|
+
};
|
|
201
211
|
export type MutationUpdateTenantArgs = {
|
|
202
212
|
input: UpdateTenantInput;
|
|
203
213
|
};
|
|
@@ -288,11 +298,39 @@ export declare enum Typenames {
|
|
|
288
298
|
GraphqlConnections = "GraphqlConnections",
|
|
289
299
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
290
300
|
}
|
|
301
|
+
export type UpdateAccountParametersInput = {
|
|
302
|
+
id: Scalars['ID']['input'];
|
|
303
|
+
typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
304
|
+
typesenseNodes?: InputMaybe<Scalars['String']['input']>;
|
|
305
|
+
};
|
|
291
306
|
export type UpdateTenantInput = {
|
|
292
307
|
billing?: InputMaybe<TenantBillingInput>;
|
|
293
308
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
294
309
|
tenantId: Scalars['ID']['input'];
|
|
295
310
|
};
|
|
311
|
+
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
312
|
+
availableRegions: Array<RegionFragment>;
|
|
313
|
+
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey'>;
|
|
314
|
+
});
|
|
315
|
+
export type RegionFragment = Pick<Region, 'name'>;
|
|
316
|
+
export type ListAccountsQueryVariables = Exact<{
|
|
317
|
+
[key: string]: never;
|
|
318
|
+
}>;
|
|
319
|
+
export type ListAccountsQuery = {
|
|
320
|
+
listAccounts: Array<AwsAccountFragment>;
|
|
321
|
+
};
|
|
322
|
+
export type ListRegionsQueryVariables = Exact<{
|
|
323
|
+
[key: string]: never;
|
|
324
|
+
}>;
|
|
325
|
+
export type ListRegionsQuery = {
|
|
326
|
+
listRegions: Array<RegionFragment>;
|
|
327
|
+
};
|
|
328
|
+
export type UpdateAccountParametersMutationVariables = Exact<{
|
|
329
|
+
input: UpdateAccountParametersInput;
|
|
330
|
+
}>;
|
|
331
|
+
export type UpdateAccountParametersMutation = {
|
|
332
|
+
updateAccountParameters: AwsAccountFragment;
|
|
333
|
+
};
|
|
296
334
|
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
297
335
|
forDev?: InputMaybe<Scalars['Boolean']['input']>;
|
|
298
336
|
}>;
|
|
@@ -310,20 +348,6 @@ export type GitRepositoryFragment = (Pick<GitRepository, 'id' | 'name'> & {
|
|
|
310
348
|
branches: Array<GitBranchFragment>;
|
|
311
349
|
});
|
|
312
350
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
313
|
-
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>;
|
|
314
|
-
export type RegionFragment = Pick<Region, 'name'>;
|
|
315
|
-
export type ListAccountsQueryVariables = Exact<{
|
|
316
|
-
[key: string]: never;
|
|
317
|
-
}>;
|
|
318
|
-
export type ListAccountsQuery = {
|
|
319
|
-
listAccounts: Array<AwsAccountFragment>;
|
|
320
|
-
};
|
|
321
|
-
export type ListRegionsQueryVariables = Exact<{
|
|
322
|
-
[key: string]: never;
|
|
323
|
-
}>;
|
|
324
|
-
export type ListRegionsQuery = {
|
|
325
|
-
listRegions: Array<RegionFragment>;
|
|
326
|
-
};
|
|
327
351
|
export type ListGitRepositoriesQueryVariables = Exact<{
|
|
328
352
|
[key: string]: never;
|
|
329
353
|
}>;
|
|
@@ -431,17 +455,18 @@ export type RemoveTenantMutationVariables = Exact<{
|
|
|
431
455
|
export type RemoveTenantMutation = {
|
|
432
456
|
removeTenant: TenantFragment;
|
|
433
457
|
};
|
|
458
|
+
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
459
|
+
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
434
460
|
export declare const DeploymentFragmentDoc = "\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 ";
|
|
435
461
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
436
462
|
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 ";
|
|
437
|
-
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
438
|
-
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
439
463
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
440
464
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
465
|
+
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 parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
466
|
+
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
467
|
+
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
441
468
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
442
469
|
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 ";
|
|
443
|
-
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 ";
|
|
444
|
-
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
445
470
|
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 fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
446
471
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
447
472
|
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 deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
@@ -458,10 +483,11 @@ export declare const UpdateTenantDocument = "\n mutation updateTenant($input:
|
|
|
458
483
|
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
459
484
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
460
485
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
461
|
-
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
462
|
-
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
463
486
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
464
487
|
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>;
|
|
488
|
+
updateAccountParameters(variables: UpdateAccountParametersMutationVariables, options?: C): Promise<UpdateAccountParametersMutation>;
|
|
489
|
+
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
490
|
+
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
465
491
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
466
492
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
467
493
|
getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
|
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.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -26,6 +26,25 @@ var Typenames;
|
|
|
26
26
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
27
27
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
28
28
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
29
|
+
exports.RegionFragmentDoc = `
|
|
30
|
+
fragment region on Region {
|
|
31
|
+
name
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
exports.AwsAccountFragmentDoc = `
|
|
35
|
+
fragment awsAccount on AwsAccount {
|
|
36
|
+
id
|
|
37
|
+
name
|
|
38
|
+
tenantsCount
|
|
39
|
+
availableRegions {
|
|
40
|
+
...region
|
|
41
|
+
}
|
|
42
|
+
parameters {
|
|
43
|
+
typesenseNodes
|
|
44
|
+
typesenseApiKey
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
${exports.RegionFragmentDoc}`;
|
|
29
48
|
exports.DeploymentFragmentDoc = `
|
|
30
49
|
fragment deployment on Deployment {
|
|
31
50
|
id
|
|
@@ -54,18 +73,6 @@ exports.GitRepositoryFragmentDoc = `
|
|
|
54
73
|
}
|
|
55
74
|
}
|
|
56
75
|
${exports.GitBranchFragmentDoc}`;
|
|
57
|
-
exports.AwsAccountFragmentDoc = `
|
|
58
|
-
fragment awsAccount on AwsAccount {
|
|
59
|
-
id
|
|
60
|
-
name
|
|
61
|
-
tenantsCount
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
exports.RegionFragmentDoc = `
|
|
65
|
-
fragment region on Region {
|
|
66
|
-
name
|
|
67
|
-
}
|
|
68
|
-
`;
|
|
69
76
|
exports.ServiceFragmentDoc = `
|
|
70
77
|
fragment service on Service {
|
|
71
78
|
accountId
|
|
@@ -95,6 +102,27 @@ exports.TenantFragmentDoc = `
|
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
`;
|
|
105
|
+
exports.ListAccountsDocument = `
|
|
106
|
+
query listAccounts {
|
|
107
|
+
listAccounts {
|
|
108
|
+
...awsAccount
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
${exports.AwsAccountFragmentDoc}`;
|
|
112
|
+
exports.ListRegionsDocument = `
|
|
113
|
+
query listRegions {
|
|
114
|
+
listRegions {
|
|
115
|
+
...region
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
${exports.RegionFragmentDoc}`;
|
|
119
|
+
exports.UpdateAccountParametersDocument = `
|
|
120
|
+
mutation updateAccountParameters($input: UpdateAccountParametersInput!) {
|
|
121
|
+
updateAccountParameters(input: $input) {
|
|
122
|
+
...awsAccount
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
${exports.AwsAccountFragmentDoc}`;
|
|
98
126
|
exports.GetAmplifyConfigDocument = `
|
|
99
127
|
query getAmplifyConfig($forDev: Boolean) {
|
|
100
128
|
amplifyConfig(forDev: $forDev)
|
|
@@ -115,20 +143,6 @@ exports.GetAuthInfoDocument = `
|
|
|
115
143
|
}
|
|
116
144
|
}
|
|
117
145
|
`;
|
|
118
|
-
exports.ListAccountsDocument = `
|
|
119
|
-
query listAccounts {
|
|
120
|
-
listAccounts {
|
|
121
|
-
...awsAccount
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
${exports.AwsAccountFragmentDoc}`;
|
|
125
|
-
exports.ListRegionsDocument = `
|
|
126
|
-
query listRegions {
|
|
127
|
-
listRegions {
|
|
128
|
-
...region
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
${exports.RegionFragmentDoc}`;
|
|
132
146
|
exports.ListGitRepositoriesDocument = `
|
|
133
147
|
query listGitRepositories {
|
|
134
148
|
listGitRepositories {
|
|
@@ -254,18 +268,21 @@ exports.RemoveTenantDocument = `
|
|
|
254
268
|
${exports.TenantFragmentDoc}`;
|
|
255
269
|
function getSdk(requester) {
|
|
256
270
|
return {
|
|
257
|
-
getAmplifyConfig(variables, options) {
|
|
258
|
-
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
259
|
-
},
|
|
260
|
-
getAuthInfo(variables, options) {
|
|
261
|
-
return requester(exports.GetAuthInfoDocument, variables, options);
|
|
262
|
-
},
|
|
263
271
|
listAccounts(variables, options) {
|
|
264
272
|
return requester(exports.ListAccountsDocument, variables, options);
|
|
265
273
|
},
|
|
266
274
|
listRegions(variables, options) {
|
|
267
275
|
return requester(exports.ListRegionsDocument, variables, options);
|
|
268
276
|
},
|
|
277
|
+
updateAccountParameters(variables, options) {
|
|
278
|
+
return requester(exports.UpdateAccountParametersDocument, variables, options);
|
|
279
|
+
},
|
|
280
|
+
getAmplifyConfig(variables, options) {
|
|
281
|
+
return requester(exports.GetAmplifyConfigDocument, variables, options);
|
|
282
|
+
},
|
|
283
|
+
getAuthInfo(variables, options) {
|
|
284
|
+
return requester(exports.GetAuthInfoDocument, variables, options);
|
|
285
|
+
},
|
|
269
286
|
listGitRepositories(variables, options) {
|
|
270
287
|
return requester(exports.ListGitRepositoriesDocument, variables, options);
|
|
271
288
|
},
|