@constructive-sdk/cli 1.21.5 → 1.21.7
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/admin/cli/commands/provision-bucket.js +1 -1
- package/admin/cli/commands.js +1 -1
- package/admin/orm/input-types.d.ts +4 -4
- package/admin/orm/mutation/index.d.ts +5 -4
- package/agent/cli/commands/provision-bucket.js +1 -1
- package/agent/cli/commands.js +1 -1
- package/agent/orm/input-types.d.ts +4 -4
- package/agent/orm/mutation/index.d.ts +5 -4
- package/api/cli/commands/{route-binding.d.ts → create-function-from-source.d.ts} +1 -1
- package/api/cli/commands/create-function-from-source.js +36 -0
- package/api/cli/commands/{hostname-binding.d.ts → email-shared-account.d.ts} +1 -1
- package/api/cli/commands/email-shared-account.js +21 -0
- package/api/cli/commands/managed-domain.js +22 -0
- package/api/cli/commands/platform-managed-domain.js +22 -0
- package/api/cli/commands/provision-bucket.js +1 -1
- package/api/cli/commands/unique-constraint.js +22 -0
- package/{esm/api/cli/commands/route-binding.d.ts → api/cli/commands/update-function-from-source.d.ts} +1 -1
- package/api/cli/commands/update-function-from-source.js +36 -0
- package/api/cli/commands.js +7 -5
- package/api/cli/executor.d.ts +15 -2
- package/api/orm/index.d.ts +15 -4
- package/api/orm/index.js +0 -4
- package/api/orm/input-types.d.ts +96 -439
- package/api/orm/models/index.d.ts +0 -2
- package/api/orm/models/index.js +2 -6
- package/api/orm/mutation/index.d.ts +30 -5
- package/api/orm/mutation/index.js +24 -0
- package/api/orm/query/index.d.ts +5 -0
- package/api/orm/query/index.js +7 -0
- package/auth/cli/commands/provision-bucket.js +1 -1
- package/auth/cli/commands.js +1 -1
- package/auth/orm/input-types.d.ts +5 -29
- package/auth/orm/mutation/index.d.ts +5 -4
- package/compute/cli/commands/function-invocation.js +44 -0
- package/compute/cli/commands/platform-function-invocation.js +44 -0
- package/compute/cli/commands/provision-bucket.js +1 -1
- package/compute/cli/commands.js +1 -1
- package/compute/orm/input-types.d.ts +50 -6
- package/compute/orm/mutation/index.d.ts +5 -4
- package/config/cli/commands/provision-bucket.js +1 -1
- package/config/cli/commands.js +1 -1
- package/config/orm/input-types.d.ts +4 -4
- package/config/orm/mutation/index.d.ts +5 -4
- package/esm/admin/cli/commands/provision-bucket.js +1 -1
- package/esm/admin/cli/commands.js +1 -1
- package/esm/admin/orm/input-types.d.ts +4 -4
- package/esm/admin/orm/mutation/index.d.ts +5 -4
- package/esm/agent/cli/commands/provision-bucket.js +1 -1
- package/esm/agent/cli/commands.js +1 -1
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/agent/orm/mutation/index.d.ts +5 -4
- package/esm/api/cli/commands/create-function-from-source.d.ts +8 -0
- package/esm/api/cli/commands/create-function-from-source.js +34 -0
- package/esm/api/cli/commands/{hostname-binding.d.ts → email-shared-account.d.ts} +1 -1
- package/esm/api/cli/commands/email-shared-account.js +19 -0
- package/esm/api/cli/commands/managed-domain.js +22 -0
- package/esm/api/cli/commands/platform-managed-domain.js +22 -0
- package/esm/api/cli/commands/provision-bucket.js +1 -1
- package/esm/api/cli/commands/unique-constraint.js +22 -0
- package/esm/api/cli/commands/update-function-from-source.d.ts +8 -0
- package/esm/api/cli/commands/update-function-from-source.js +34 -0
- package/esm/api/cli/commands.js +7 -5
- package/esm/api/cli/executor.d.ts +15 -2
- package/esm/api/orm/index.d.ts +15 -4
- package/esm/api/orm/index.js +0 -4
- package/esm/api/orm/input-types.d.ts +96 -439
- package/esm/api/orm/models/index.d.ts +0 -2
- package/esm/api/orm/models/index.js +0 -2
- package/esm/api/orm/mutation/index.d.ts +30 -5
- package/esm/api/orm/mutation/index.js +24 -0
- package/esm/api/orm/query/index.d.ts +5 -0
- package/esm/api/orm/query/index.js +7 -0
- package/esm/auth/cli/commands/provision-bucket.js +1 -1
- package/esm/auth/cli/commands.js +1 -1
- package/esm/auth/orm/input-types.d.ts +5 -29
- package/esm/auth/orm/mutation/index.d.ts +5 -4
- package/esm/compute/cli/commands/function-invocation.js +44 -0
- package/esm/compute/cli/commands/platform-function-invocation.js +44 -0
- package/esm/compute/cli/commands/provision-bucket.js +1 -1
- package/esm/compute/cli/commands.js +1 -1
- package/esm/compute/orm/input-types.d.ts +50 -6
- package/esm/compute/orm/mutation/index.d.ts +5 -4
- package/esm/config/cli/commands/provision-bucket.js +1 -1
- package/esm/config/cli/commands.js +1 -1
- package/esm/config/orm/input-types.d.ts +4 -4
- package/esm/config/orm/mutation/index.d.ts +5 -4
- package/esm/infra/cli/commands/provision-bucket.js +1 -1
- package/esm/infra/cli/commands.js +1 -1
- package/esm/infra/orm/input-types.d.ts +4 -4
- package/esm/infra/orm/mutation/index.d.ts +5 -4
- package/esm/modules/cli/commands/billing-provider-module.js +110 -0
- package/esm/modules/cli/commands/blueprint-construction.js +0 -22
- package/esm/modules/cli/commands/catalog-module.js +44 -0
- package/esm/modules/cli/commands/construct-blueprint.js +1 -1
- package/esm/modules/cli/commands/provision-bucket.js +1 -1
- package/esm/modules/cli/commands/storage-module.js +22 -0
- package/esm/modules/cli/commands.js +1 -1
- package/esm/modules/orm/input-types.d.ts +72 -21
- package/esm/modules/orm/mutation/index.d.ts +6 -5
- package/esm/objects/cli/commands/provision-bucket.js +1 -1
- package/esm/objects/cli/commands.js +1 -1
- package/esm/objects/orm/input-types.d.ts +4 -4
- package/esm/objects/orm/mutation/index.d.ts +5 -4
- package/esm/remote/cli/commands/provision-bucket.js +1 -1
- package/esm/remote/cli/commands.js +1 -1
- package/esm/remote/orm/input-types.d.ts +4 -4
- package/esm/remote/orm/mutation/index.d.ts +5 -4
- package/esm/storage/cli/commands/bucket.js +23 -0
- package/esm/storage/cli/commands/platform-bucket.js +23 -0
- package/esm/storage/cli/commands/provision-bucket.js +1 -1
- package/esm/storage/cli/commands/upload-files.js +1 -1
- package/esm/storage/cli/commands/upload-platform-files.js +1 -1
- package/esm/storage/cli/commands.js +1 -1
- package/esm/storage/orm/input-types.d.ts +34 -6
- package/esm/storage/orm/mutation/index.d.ts +7 -6
- package/esm/usage/cli/commands/provision-bucket.js +1 -1
- package/esm/usage/cli/commands.js +1 -1
- package/esm/usage/orm/input-types.d.ts +4 -4
- package/esm/usage/orm/mutation/index.d.ts +5 -4
- package/infra/cli/commands/provision-bucket.js +1 -1
- package/infra/cli/commands.js +1 -1
- package/infra/orm/input-types.d.ts +4 -4
- package/infra/orm/mutation/index.d.ts +5 -4
- package/modules/cli/commands/billing-provider-module.js +110 -0
- package/modules/cli/commands/blueprint-construction.js +0 -22
- package/modules/cli/commands/catalog-module.js +44 -0
- package/modules/cli/commands/construct-blueprint.js +1 -1
- package/modules/cli/commands/provision-bucket.js +1 -1
- package/modules/cli/commands/storage-module.js +22 -0
- package/modules/cli/commands.js +1 -1
- package/modules/orm/input-types.d.ts +72 -21
- package/modules/orm/mutation/index.d.ts +6 -5
- package/objects/cli/commands/provision-bucket.js +1 -1
- package/objects/cli/commands.js +1 -1
- package/objects/orm/input-types.d.ts +4 -4
- package/objects/orm/mutation/index.d.ts +5 -4
- package/package.json +4 -4
- package/remote/cli/commands/provision-bucket.js +1 -1
- package/remote/cli/commands.js +1 -1
- package/remote/orm/input-types.d.ts +4 -4
- package/remote/orm/mutation/index.d.ts +5 -4
- package/storage/cli/commands/bucket.js +23 -0
- package/storage/cli/commands/platform-bucket.js +23 -0
- package/storage/cli/commands/provision-bucket.js +1 -1
- package/storage/cli/commands/upload-files.js +1 -1
- package/storage/cli/commands/upload-platform-files.js +1 -1
- package/storage/cli/commands.js +1 -1
- package/storage/orm/input-types.d.ts +34 -6
- package/storage/orm/mutation/index.d.ts +7 -6
- package/usage/cli/commands/provision-bucket.js +1 -1
- package/usage/cli/commands.js +1 -1
- package/usage/orm/input-types.d.ts +4 -4
- package/usage/orm/mutation/index.d.ts +5 -4
- package/api/cli/commands/hostname-binding.js +0 -388
- package/api/cli/commands/route-binding.js +0 -476
- package/api/orm/models/hostnameBinding.d.ts +0 -54
- package/api/orm/models/hostnameBinding.js +0 -104
- package/api/orm/models/routeBinding.d.ts +0 -54
- package/api/orm/models/routeBinding.js +0 -104
- package/esm/api/cli/commands/hostname-binding.js +0 -386
- package/esm/api/cli/commands/route-binding.js +0 -474
- package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
- package/esm/api/orm/models/hostnameBinding.js +0 -100
- package/esm/api/orm/models/routeBinding.d.ts +0 -54
- package/esm/api/orm/models/routeBinding.js +0 -100
|
@@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
|
|
|
32
32
|
export { FullTextSearchModel } from './fullTextSearch';
|
|
33
33
|
export { FunctionModel } from './function';
|
|
34
34
|
export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord';
|
|
35
|
-
export { HostnameBindingModel } from './hostnameBinding';
|
|
36
35
|
export { IdentityProviderRegistryModel } from './identityProviderRegistry';
|
|
37
36
|
export { IndexModel } from './indexModel';
|
|
38
37
|
export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord';
|
|
@@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
|
|
|
67
66
|
export { PubkeySettingModel } from './pubkeySetting';
|
|
68
67
|
export { RedirectModel } from './redirect';
|
|
69
68
|
export { RlsSettingModel } from './rlsSetting';
|
|
70
|
-
export { RouteBindingModel } from './routeBinding';
|
|
71
69
|
export { RouteModel } from './route';
|
|
72
70
|
export { SchemaModel } from './schema';
|
|
73
71
|
export { SchemaGrantModel } from './schemaGrant';
|
|
@@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
|
|
|
32
32
|
export { FullTextSearchModel } from './fullTextSearch';
|
|
33
33
|
export { FunctionModel } from './function';
|
|
34
34
|
export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord';
|
|
35
|
-
export { HostnameBindingModel } from './hostnameBinding';
|
|
36
35
|
export { IdentityProviderRegistryModel } from './identityProviderRegistry';
|
|
37
36
|
export { IndexModel } from './indexModel';
|
|
38
37
|
export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord';
|
|
@@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
|
|
|
67
66
|
export { PubkeySettingModel } from './pubkeySetting';
|
|
68
67
|
export { RedirectModel } from './redirect';
|
|
69
68
|
export { RlsSettingModel } from './rlsSetting';
|
|
70
|
-
export { RouteBindingModel } from './routeBinding';
|
|
71
69
|
export { RouteModel } from './route';
|
|
72
70
|
export { SchemaModel } from './schema';
|
|
73
71
|
export { SchemaGrantModel } from './schemaGrant';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, DeleteSitePreviewInput, DomainsAssignSubdomainInput, MintSitePreviewTokenInput, PagesInstallPagesInput, PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, PlatformMintSitePreviewTokenInput, PlatformPagesInstallPagesInput, PlatformProvisionSitePreviewInput, PlatformSetSitePreviewInput, PlatformSiteMetadataInstallRobotsInput, PlatformSitesInstallContentPresetInput, PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, ProvisionSitePreviewInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SetSitePreviewInput, SiteMetadataInstallRobotsInput, SitesInstallContentPresetInput, SitesInstallMantraInput, SitesProvisionStaticSiteInput, SuspendDatabaseInput, UnsuspendDatabaseInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, MintSitePreviewTokenPayload, PagesInstallPagesPayload, PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, PlatformMintSitePreviewTokenPayload, PlatformPagesInstallPagesPayload, PlatformProvisionSitePreviewPayload, PlatformSetSitePreviewPayload, PlatformSiteMetadataInstallRobotsPayload, PlatformSitesInstallContentPresetPayload, PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, ProvisionSitePreviewPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SetSitePreviewPayload, SiteMetadataInstallRobotsPayload, SitesInstallContentPresetPayload, SitesInstallMantraPayload, SitesProvisionStaticSitePayload, SuspendDatabasePayload, UnsuspendDatabasePayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, MintSitePreviewTokenPayloadSelect, PagesInstallPagesPayloadSelect, PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformMintSitePreviewTokenPayloadSelect, PlatformPagesInstallPagesPayloadSelect, PlatformProvisionSitePreviewPayloadSelect, PlatformSetSitePreviewPayloadSelect, PlatformSiteMetadataInstallRobotsPayloadSelect, PlatformSitesInstallContentPresetPayloadSelect, PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, ProvisionSitePreviewPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, SetSitePreviewPayloadSelect, SiteMetadataInstallRobotsPayloadSelect, SitesInstallContentPresetPayloadSelect, SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, SuspendDatabasePayloadSelect, UnsuspendDatabasePayloadSelect } from '../input-types';
|
|
9
|
+
import type { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, CreateFunctionFromSourceInput, DeleteSitePreviewInput, DomainsAssignSubdomainInput, MintSitePreviewTokenInput, PagesInstallPagesInput, PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, PlatformMintSitePreviewTokenInput, PlatformPagesInstallPagesInput, PlatformProvisionSitePreviewInput, PlatformSetSitePreviewInput, PlatformSiteMetadataInstallRobotsInput, PlatformSitesInstallContentPresetInput, PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, ProvisionSitePreviewInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SetSitePreviewInput, SiteMetadataInstallRobotsInput, SitesInstallContentPresetInput, SitesInstallMantraInput, SitesProvisionStaticSiteInput, SuspendDatabaseInput, UnsuspendDatabaseInput, UpdateFunctionFromSourceInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, CreateFunctionPayload, DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, MintSitePreviewTokenPayload, PagesInstallPagesPayload, PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, PlatformMintSitePreviewTokenPayload, PlatformPagesInstallPagesPayload, PlatformProvisionSitePreviewPayload, PlatformSetSitePreviewPayload, PlatformSiteMetadataInstallRobotsPayload, PlatformSitesInstallContentPresetPayload, PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, ProvisionSitePreviewPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SetSitePreviewPayload, SiteMetadataInstallRobotsPayload, SitesInstallContentPresetPayload, SitesInstallMantraPayload, SitesProvisionStaticSitePayload, SuspendDatabasePayload, UnsuspendDatabasePayload, UpdateFunctionPayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, CreateFunctionPayloadSelect, DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, MintSitePreviewTokenPayloadSelect, PagesInstallPagesPayloadSelect, PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformMintSitePreviewTokenPayloadSelect, PlatformPagesInstallPagesPayloadSelect, PlatformProvisionSitePreviewPayloadSelect, PlatformSetSitePreviewPayloadSelect, PlatformSiteMetadataInstallRobotsPayloadSelect, PlatformSitesInstallContentPresetPayloadSelect, PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, ProvisionSitePreviewPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, SetSitePreviewPayloadSelect, SiteMetadataInstallRobotsPayloadSelect, SitesInstallContentPresetPayloadSelect, SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, SuspendDatabasePayloadSelect, UnsuspendDatabasePayloadSelect, UpdateFunctionPayloadSelect } from '../input-types';
|
|
10
10
|
export interface AcceptDatabaseTransferVariables {
|
|
11
11
|
input: AcceptDatabaseTransferInput;
|
|
12
12
|
}
|
|
@@ -16,6 +16,13 @@ export interface ApplyRlsVariables {
|
|
|
16
16
|
export interface CancelDatabaseTransferVariables {
|
|
17
17
|
input: CancelDatabaseTransferInput;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Variables for createFunctionFromSource
|
|
21
|
+
* Creates a `Function` from its `CREATE FUNCTION` source text.
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateFunctionFromSourceVariables {
|
|
24
|
+
input: CreateFunctionFromSourceInput;
|
|
25
|
+
}
|
|
19
26
|
export interface DeleteSitePreviewVariables {
|
|
20
27
|
input: DeleteSitePreviewInput;
|
|
21
28
|
}
|
|
@@ -61,10 +68,11 @@ export interface PlatformSitesProvisionStaticSiteVariables {
|
|
|
61
68
|
/**
|
|
62
69
|
* Variables for provisionBucket
|
|
63
70
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
64
|
-
|
|
65
|
-
storage:provision_bucket job used
|
|
66
|
-
|
|
67
|
-
GraphQL
|
|
71
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
72
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
73
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
74
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
75
|
+
errors.
|
|
68
76
|
*/
|
|
69
77
|
export interface ProvisionBucketVariables {
|
|
70
78
|
input: ProvisionBucketInput;
|
|
@@ -113,6 +121,13 @@ export interface SuspendDatabaseVariables {
|
|
|
113
121
|
export interface UnsuspendDatabaseVariables {
|
|
114
122
|
input: UnsuspendDatabaseInput;
|
|
115
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Variables for updateFunctionFromSource
|
|
126
|
+
* Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.
|
|
127
|
+
*/
|
|
128
|
+
export interface UpdateFunctionFromSourceVariables {
|
|
129
|
+
input: UpdateFunctionFromSourceInput;
|
|
130
|
+
}
|
|
116
131
|
export declare function createMutationOperations(client: OrmClient): {
|
|
117
132
|
acceptDatabaseTransfer: <S extends AcceptDatabaseTransferPayloadSelect>(args: AcceptDatabaseTransferVariables, options: {
|
|
118
133
|
select: S;
|
|
@@ -129,6 +144,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
129
144
|
} & StrictSelect<S, CancelDatabaseTransferPayloadSelect>) => QueryBuilder<{
|
|
130
145
|
cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
|
|
131
146
|
}>;
|
|
147
|
+
createFunctionFromSource: <S extends CreateFunctionPayloadSelect>(args: CreateFunctionFromSourceVariables, options: {
|
|
148
|
+
select: S;
|
|
149
|
+
} & StrictSelect<S, CreateFunctionPayloadSelect>) => QueryBuilder<{
|
|
150
|
+
createFunctionFromSource: InferSelectResult<CreateFunctionPayload, S> | null;
|
|
151
|
+
}>;
|
|
132
152
|
deleteSitePreview: <S extends DeleteSitePreviewPayloadSelect>(args: DeleteSitePreviewVariables, options: {
|
|
133
153
|
select: S;
|
|
134
154
|
} & StrictSelect<S, DeleteSitePreviewPayloadSelect>) => QueryBuilder<{
|
|
@@ -259,4 +279,9 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
259
279
|
} & StrictSelect<S, UnsuspendDatabasePayloadSelect>) => QueryBuilder<{
|
|
260
280
|
unsuspendDatabase: InferSelectResult<UnsuspendDatabasePayload, S> | null;
|
|
261
281
|
}>;
|
|
282
|
+
updateFunctionFromSource: <S extends UpdateFunctionPayloadSelect>(args: UpdateFunctionFromSourceVariables, options: {
|
|
283
|
+
select: S;
|
|
284
|
+
} & StrictSelect<S, UpdateFunctionPayloadSelect>) => QueryBuilder<{
|
|
285
|
+
updateFunctionFromSource: InferSelectResult<UpdateFunctionPayload, S> | null;
|
|
286
|
+
}>;
|
|
262
287
|
};
|
|
@@ -38,6 +38,18 @@ export function createMutationOperations(client) {
|
|
|
38
38
|
},
|
|
39
39
|
], connectionFieldsMap, 'CancelDatabaseTransferPayload'),
|
|
40
40
|
}),
|
|
41
|
+
createFunctionFromSource: (args, options) => new QueryBuilder({
|
|
42
|
+
client,
|
|
43
|
+
operation: 'mutation',
|
|
44
|
+
operationName: 'CreateFunctionFromSource',
|
|
45
|
+
fieldName: 'createFunctionFromSource',
|
|
46
|
+
...buildCustomDocument('mutation', 'CreateFunctionFromSource', 'createFunctionFromSource', options.select, args, [
|
|
47
|
+
{
|
|
48
|
+
name: 'input',
|
|
49
|
+
type: 'CreateFunctionFromSourceInput!',
|
|
50
|
+
},
|
|
51
|
+
], connectionFieldsMap, 'CreateFunctionPayload'),
|
|
52
|
+
}),
|
|
41
53
|
deleteSitePreview: (args, options) => new QueryBuilder({
|
|
42
54
|
client,
|
|
43
55
|
operation: 'mutation',
|
|
@@ -350,5 +362,17 @@ export function createMutationOperations(client) {
|
|
|
350
362
|
},
|
|
351
363
|
], connectionFieldsMap, 'UnsuspendDatabasePayload'),
|
|
352
364
|
}),
|
|
365
|
+
updateFunctionFromSource: (args, options) => new QueryBuilder({
|
|
366
|
+
client,
|
|
367
|
+
operation: 'mutation',
|
|
368
|
+
operationName: 'UpdateFunctionFromSource',
|
|
369
|
+
fieldName: 'updateFunctionFromSource',
|
|
370
|
+
...buildCustomDocument('mutation', 'UpdateFunctionFromSource', 'updateFunctionFromSource', options.select, args, [
|
|
371
|
+
{
|
|
372
|
+
name: 'input',
|
|
373
|
+
type: 'UpdateFunctionFromSourceInput!',
|
|
374
|
+
},
|
|
375
|
+
], connectionFieldsMap, 'UpdateFunctionPayload'),
|
|
376
|
+
}),
|
|
353
377
|
};
|
|
354
378
|
}
|
|
@@ -83,6 +83,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
83
83
|
}) => QueryBuilder<{
|
|
84
84
|
applyRegistryDefaults: unknown | null;
|
|
85
85
|
}>;
|
|
86
|
+
emailSharedAccount: (options?: {
|
|
87
|
+
select?: Record<string, unknown>;
|
|
88
|
+
}) => QueryBuilder<{
|
|
89
|
+
emailSharedAccount: unknown | null;
|
|
90
|
+
}>;
|
|
86
91
|
getSitePreviewCommit: (args: GetSitePreviewCommitVariables, options?: {
|
|
87
92
|
select?: Record<string, unknown>;
|
|
88
93
|
}) => QueryBuilder<{
|
|
@@ -30,6 +30,13 @@ export function createQueryOperations(client) {
|
|
|
30
30
|
},
|
|
31
31
|
], connectionFieldsMap, undefined),
|
|
32
32
|
}),
|
|
33
|
+
emailSharedAccount: (options) => new QueryBuilder({
|
|
34
|
+
client,
|
|
35
|
+
operation: 'query',
|
|
36
|
+
operationName: 'EmailSharedAccount',
|
|
37
|
+
fieldName: 'emailSharedAccount',
|
|
38
|
+
...buildCustomDocument('query', 'EmailSharedAccount', 'emailSharedAccount', options?.select, undefined, [], connectionFieldsMap, undefined),
|
|
39
|
+
}),
|
|
33
40
|
getSitePreviewCommit: (args, options) => new QueryBuilder({
|
|
34
41
|
client,
|
|
35
42
|
operation: 'query',
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log(
|
|
6
|
+
console.log("provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\nUsage: provision-bucket [OPTIONS]\n");
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|
package/esm/auth/cli/commands.js
CHANGED
|
@@ -162,7 +162,7 @@ const createCommandMap = () => ({
|
|
|
162
162
|
'verify-step-up-code': verifyStepUpCodeCmd,
|
|
163
163
|
'verify-totp': verifyTotpCmd,
|
|
164
164
|
});
|
|
165
|
-
const usage =
|
|
165
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n audit-log-auth auditLogAuth CRUD operations\n crypto-address cryptoAddress CRUD operations\n email email CRUD operations\n identity-provider identityProvider CRUD operations\n org-api-key-list orgApiKeyList CRUD operations\n phone-number phoneNumber CRUD operations\n principal principal CRUD operations\n principal-entity principalEntity CRUD operations\n principal-scope-override principalScopeOverride CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n user-setting userSetting CRUD operations\n user-settings-security userSettingsSecurity CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n current-ip-address currentIpAddress\n current-user currentUser\n current-user-agent currentUserAgent\n current-user-id currentUserId\n get-mfa-status getMfaStatus\n require-step-up requireStepUp\n approve-device approveDevice\n check-password checkPassword\n complete-mfa-challenge completeMfaChallenge\n confirm-delete-account confirmDeleteAccount\n confirm-totp-setup confirmTotpSetup\n create-api-key createApiKey\n create-child-principal createChildPrincipal\n create-org-api-key createOrgApiKey\n create-org-principal createOrgPrincipal\n create-principal-from-preset createPrincipalFromPreset\n delete-org-principal deleteOrgPrincipal\n delete-principal deletePrincipal\n disable-email-mfa disableEmailMfa\n disable-sms-mfa disableSmsMfa\n disable-totp disableTotp\n disconnect-account disconnectAccount\n enable-email-mfa enableEmailMfa\n enable-sms-mfa enableSmsMfa\n enable-totp enableTotp\n extend-token-expires extendTokenExpires\n forgot-password forgotPassword\n generate-backup-codes generateBackupCodes\n link-identity linkIdentity\n mint-access-token mintAccessToken\n provision-bucket Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n refresh-access-token refreshAccessToken\n request-cross-origin-token requestCrossOriginToken\n request-magic-link requestMagicLink\n reset-password resetPassword\n revoke-api-key revokeApiKey\n revoke-org-api-key revokeOrgApiKey\n revoke-session revokeSession\n send-account-deletion-email sendAccountDeletionEmail\n send-mfa-challenge-code sendMfaChallengeCode\n send-phone-verification-code sendPhoneVerificationCode\n send-sms-otp sendSmsOtp\n send-step-up-code sendStepUpCode\n send-verification-email sendVerificationEmail\n set-password setPassword\n set-principal-entities setPrincipalEntities\n set-principal-scope setPrincipalScope\n sign-in signIn\n sign-in-cross-origin signInCrossOrigin\n sign-in-magic-link signInMagicLink\n sign-in-sms-otp signInSmsOtp\n sign-out signOut\n sign-up signUp\n sign-up-magic-link signUpMagicLink\n sign-up-sms signUpSms\n update-principal updatePrincipal\n verify-email verifyEmail\n verify-password verifyPassword\n verify-phone verifyPhone\n verify-step-up-code verifyStepUpCode\n verify-totp verifyTotp\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
166
166
|
export const commands = async (argv, prompter, options) => {
|
|
167
167
|
if (argv.help || argv.h) {
|
|
168
168
|
console.log(usage);
|
|
@@ -1847,6 +1847,7 @@ export interface RequestCrossOriginTokenInput {
|
|
|
1847
1847
|
export interface RequestMagicLinkInput {
|
|
1848
1848
|
clientMutationId?: string;
|
|
1849
1849
|
email?: string;
|
|
1850
|
+
next?: string;
|
|
1850
1851
|
}
|
|
1851
1852
|
export interface ResetPasswordInput {
|
|
1852
1853
|
clientMutationId?: string;
|
|
@@ -1945,13 +1946,10 @@ export interface SignOutInput {
|
|
|
1945
1946
|
}
|
|
1946
1947
|
export interface SignUpInput {
|
|
1947
1948
|
clientMutationId?: string;
|
|
1948
|
-
credentialKind?: string;
|
|
1949
1949
|
csrfToken?: string;
|
|
1950
|
-
deviceToken?: string;
|
|
1951
1950
|
email?: string;
|
|
1952
1951
|
inviteToken?: string;
|
|
1953
1952
|
password?: string;
|
|
1954
|
-
rememberMe?: boolean;
|
|
1955
1953
|
}
|
|
1956
1954
|
export interface SignUpMagicLinkInput {
|
|
1957
1955
|
clientMutationId?: string;
|
|
@@ -3525,19 +3523,19 @@ export type MintAccessTokenPayloadSelect = {
|
|
|
3525
3523
|
};
|
|
3526
3524
|
};
|
|
3527
3525
|
export interface ProvisionBucketPayload {
|
|
3528
|
-
/** The logical bucket row
|
|
3526
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
3529
3527
|
bucketId: string;
|
|
3530
3528
|
bucketKey: string;
|
|
3531
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
3532
|
-
jobId: string;
|
|
3533
3529
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
3534
3530
|
physicalName?: string | null;
|
|
3531
|
+
/** When reconciliation was last requested for this bucket. */
|
|
3532
|
+
provisionRequestedAt: string;
|
|
3535
3533
|
}
|
|
3536
3534
|
export type ProvisionBucketPayloadSelect = {
|
|
3537
3535
|
bucketId?: boolean;
|
|
3538
3536
|
bucketKey?: boolean;
|
|
3539
|
-
jobId?: boolean;
|
|
3540
3537
|
physicalName?: boolean;
|
|
3538
|
+
provisionRequestedAt?: boolean;
|
|
3541
3539
|
};
|
|
3542
3540
|
export interface RefreshAccessTokenPayload {
|
|
3543
3541
|
clientMutationId?: string | null;
|
|
@@ -3715,13 +3713,9 @@ export type SignOutPayloadSelect = {
|
|
|
3715
3713
|
};
|
|
3716
3714
|
export interface SignUpPayload {
|
|
3717
3715
|
clientMutationId?: string | null;
|
|
3718
|
-
result?: SignUpRecord | null;
|
|
3719
3716
|
}
|
|
3720
3717
|
export type SignUpPayloadSelect = {
|
|
3721
3718
|
clientMutationId?: boolean;
|
|
3722
|
-
result?: {
|
|
3723
|
-
select: SignUpRecordSelect;
|
|
3724
|
-
};
|
|
3725
3719
|
};
|
|
3726
3720
|
export interface SignUpMagicLinkPayload {
|
|
3727
3721
|
clientMutationId?: string | null;
|
|
@@ -4362,24 +4356,6 @@ export type SignInSmsOtpRecordSelect = {
|
|
|
4362
4356
|
outDeviceToken?: boolean;
|
|
4363
4357
|
userId?: boolean;
|
|
4364
4358
|
};
|
|
4365
|
-
export interface SignUpRecord {
|
|
4366
|
-
accessToken?: string | null;
|
|
4367
|
-
accessTokenExpiresAt?: string | null;
|
|
4368
|
-
id?: string | null;
|
|
4369
|
-
isVerified?: boolean | null;
|
|
4370
|
-
outDeviceToken?: string | null;
|
|
4371
|
-
totpEnabled?: boolean | null;
|
|
4372
|
-
userId?: string | null;
|
|
4373
|
-
}
|
|
4374
|
-
export type SignUpRecordSelect = {
|
|
4375
|
-
accessToken?: boolean;
|
|
4376
|
-
accessTokenExpiresAt?: boolean;
|
|
4377
|
-
id?: boolean;
|
|
4378
|
-
isVerified?: boolean;
|
|
4379
|
-
outDeviceToken?: boolean;
|
|
4380
|
-
totpEnabled?: boolean;
|
|
4381
|
-
userId?: boolean;
|
|
4382
|
-
};
|
|
4383
4359
|
export interface SignUpMagicLinkRecord {
|
|
4384
4360
|
accessToken?: string | null;
|
|
4385
4361
|
accessTokenExpiresAt?: string | null;
|
|
@@ -82,10 +82,11 @@ export interface MintAccessTokenVariables {
|
|
|
82
82
|
/**
|
|
83
83
|
* Variables for provisionBucket
|
|
84
84
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
85
|
-
|
|
86
|
-
storage:provision_bucket job used
|
|
87
|
-
|
|
88
|
-
GraphQL
|
|
85
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
86
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
87
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
88
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
89
|
+
errors.
|
|
89
90
|
*/
|
|
90
91
|
export interface ProvisionBucketVariables {
|
|
91
92
|
input: ProvisionBucketInput;
|
|
@@ -23,11 +23,13 @@ const fieldSchema = {
|
|
|
23
23
|
graphExecutionId: 'uuid',
|
|
24
24
|
id: 'uuid',
|
|
25
25
|
jobId: 'int',
|
|
26
|
+
jobKey: 'string',
|
|
26
27
|
organizationId: 'uuid',
|
|
27
28
|
parentInvocationId: 'uuid',
|
|
28
29
|
payload: 'json',
|
|
29
30
|
principalId: 'uuid',
|
|
30
31
|
provenance: 'json',
|
|
32
|
+
queueName: 'string',
|
|
31
33
|
result: 'json',
|
|
32
34
|
startedAt: 'string',
|
|
33
35
|
status: 'string',
|
|
@@ -91,11 +93,13 @@ async function handleList(argv, _prompter) {
|
|
|
91
93
|
graphExecutionId: true,
|
|
92
94
|
id: true,
|
|
93
95
|
jobId: true,
|
|
96
|
+
jobKey: true,
|
|
94
97
|
organizationId: true,
|
|
95
98
|
parentInvocationId: true,
|
|
96
99
|
payload: true,
|
|
97
100
|
principalId: true,
|
|
98
101
|
provenance: true,
|
|
102
|
+
queueName: true,
|
|
99
103
|
result: true,
|
|
100
104
|
startedAt: true,
|
|
101
105
|
status: true,
|
|
@@ -133,11 +137,13 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
133
137
|
graphExecutionId: true,
|
|
134
138
|
id: true,
|
|
135
139
|
jobId: true,
|
|
140
|
+
jobKey: true,
|
|
136
141
|
organizationId: true,
|
|
137
142
|
parentInvocationId: true,
|
|
138
143
|
payload: true,
|
|
139
144
|
principalId: true,
|
|
140
145
|
provenance: true,
|
|
146
|
+
queueName: true,
|
|
141
147
|
result: true,
|
|
142
148
|
startedAt: true,
|
|
143
149
|
status: true,
|
|
@@ -187,11 +193,13 @@ async function handleGet(argv, prompter) {
|
|
|
187
193
|
graphExecutionId: true,
|
|
188
194
|
id: true,
|
|
189
195
|
jobId: true,
|
|
196
|
+
jobKey: true,
|
|
190
197
|
organizationId: true,
|
|
191
198
|
parentInvocationId: true,
|
|
192
199
|
payload: true,
|
|
193
200
|
principalId: true,
|
|
194
201
|
provenance: true,
|
|
202
|
+
queueName: true,
|
|
195
203
|
result: true,
|
|
196
204
|
startedAt: true,
|
|
197
205
|
status: true,
|
|
@@ -308,6 +316,13 @@ async function handleCreate(argv, prompter) {
|
|
|
308
316
|
required: false,
|
|
309
317
|
skipPrompt: true,
|
|
310
318
|
},
|
|
319
|
+
{
|
|
320
|
+
type: 'text',
|
|
321
|
+
name: 'jobKey',
|
|
322
|
+
message: 'jobKey',
|
|
323
|
+
required: false,
|
|
324
|
+
skipPrompt: true,
|
|
325
|
+
},
|
|
311
326
|
{
|
|
312
327
|
type: 'text',
|
|
313
328
|
name: 'organizationId',
|
|
@@ -343,6 +358,13 @@ async function handleCreate(argv, prompter) {
|
|
|
343
358
|
required: false,
|
|
344
359
|
skipPrompt: true,
|
|
345
360
|
},
|
|
361
|
+
{
|
|
362
|
+
type: 'text',
|
|
363
|
+
name: 'queueName',
|
|
364
|
+
message: 'queueName',
|
|
365
|
+
required: false,
|
|
366
|
+
skipPrompt: true,
|
|
367
|
+
},
|
|
346
368
|
{
|
|
347
369
|
type: 'json',
|
|
348
370
|
name: 'result',
|
|
@@ -391,11 +413,13 @@ async function handleCreate(argv, prompter) {
|
|
|
391
413
|
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
392
414
|
graphExecutionId: cleanedData.graphExecutionId,
|
|
393
415
|
jobId: cleanedData.jobId,
|
|
416
|
+
jobKey: cleanedData.jobKey,
|
|
394
417
|
organizationId: cleanedData.organizationId,
|
|
395
418
|
parentInvocationId: cleanedData.parentInvocationId,
|
|
396
419
|
payload: cleanedData.payload,
|
|
397
420
|
principalId: cleanedData.principalId,
|
|
398
421
|
provenance: cleanedData.provenance,
|
|
422
|
+
queueName: cleanedData.queueName,
|
|
399
423
|
result: cleanedData.result,
|
|
400
424
|
startedAt: cleanedData.startedAt,
|
|
401
425
|
status: cleanedData.status,
|
|
@@ -418,11 +442,13 @@ async function handleCreate(argv, prompter) {
|
|
|
418
442
|
graphExecutionId: true,
|
|
419
443
|
id: true,
|
|
420
444
|
jobId: true,
|
|
445
|
+
jobKey: true,
|
|
421
446
|
organizationId: true,
|
|
422
447
|
parentInvocationId: true,
|
|
423
448
|
payload: true,
|
|
424
449
|
principalId: true,
|
|
425
450
|
provenance: true,
|
|
451
|
+
queueName: true,
|
|
426
452
|
result: true,
|
|
427
453
|
startedAt: true,
|
|
428
454
|
status: true,
|
|
@@ -551,6 +577,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
551
577
|
required: false,
|
|
552
578
|
skipPrompt: true,
|
|
553
579
|
},
|
|
580
|
+
{
|
|
581
|
+
type: 'text',
|
|
582
|
+
name: 'jobKey',
|
|
583
|
+
message: 'jobKey',
|
|
584
|
+
required: false,
|
|
585
|
+
skipPrompt: true,
|
|
586
|
+
},
|
|
554
587
|
{
|
|
555
588
|
type: 'text',
|
|
556
589
|
name: 'organizationId',
|
|
@@ -586,6 +619,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
586
619
|
required: false,
|
|
587
620
|
skipPrompt: true,
|
|
588
621
|
},
|
|
622
|
+
{
|
|
623
|
+
type: 'text',
|
|
624
|
+
name: 'queueName',
|
|
625
|
+
message: 'queueName',
|
|
626
|
+
required: false,
|
|
627
|
+
skipPrompt: true,
|
|
628
|
+
},
|
|
589
629
|
{
|
|
590
630
|
type: 'json',
|
|
591
631
|
name: 'result',
|
|
@@ -638,11 +678,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
638
678
|
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
639
679
|
graphExecutionId: cleanedData.graphExecutionId,
|
|
640
680
|
jobId: cleanedData.jobId,
|
|
681
|
+
jobKey: cleanedData.jobKey,
|
|
641
682
|
organizationId: cleanedData.organizationId,
|
|
642
683
|
parentInvocationId: cleanedData.parentInvocationId,
|
|
643
684
|
payload: cleanedData.payload,
|
|
644
685
|
principalId: cleanedData.principalId,
|
|
645
686
|
provenance: cleanedData.provenance,
|
|
687
|
+
queueName: cleanedData.queueName,
|
|
646
688
|
result: cleanedData.result,
|
|
647
689
|
startedAt: cleanedData.startedAt,
|
|
648
690
|
status: cleanedData.status,
|
|
@@ -665,11 +707,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
665
707
|
graphExecutionId: true,
|
|
666
708
|
id: true,
|
|
667
709
|
jobId: true,
|
|
710
|
+
jobKey: true,
|
|
668
711
|
organizationId: true,
|
|
669
712
|
parentInvocationId: true,
|
|
670
713
|
payload: true,
|
|
671
714
|
principalId: true,
|
|
672
715
|
provenance: true,
|
|
716
|
+
queueName: true,
|
|
673
717
|
result: true,
|
|
674
718
|
startedAt: true,
|
|
675
719
|
status: true,
|
|
@@ -23,11 +23,13 @@ const fieldSchema = {
|
|
|
23
23
|
graphExecutionId: 'uuid',
|
|
24
24
|
id: 'uuid',
|
|
25
25
|
jobId: 'int',
|
|
26
|
+
jobKey: 'string',
|
|
26
27
|
organizationId: 'uuid',
|
|
27
28
|
parentInvocationId: 'uuid',
|
|
28
29
|
payload: 'json',
|
|
29
30
|
principalId: 'uuid',
|
|
30
31
|
provenance: 'json',
|
|
32
|
+
queueName: 'string',
|
|
31
33
|
result: 'json',
|
|
32
34
|
startedAt: 'string',
|
|
33
35
|
status: 'string',
|
|
@@ -91,11 +93,13 @@ async function handleList(argv, _prompter) {
|
|
|
91
93
|
graphExecutionId: true,
|
|
92
94
|
id: true,
|
|
93
95
|
jobId: true,
|
|
96
|
+
jobKey: true,
|
|
94
97
|
organizationId: true,
|
|
95
98
|
parentInvocationId: true,
|
|
96
99
|
payload: true,
|
|
97
100
|
principalId: true,
|
|
98
101
|
provenance: true,
|
|
102
|
+
queueName: true,
|
|
99
103
|
result: true,
|
|
100
104
|
startedAt: true,
|
|
101
105
|
status: true,
|
|
@@ -133,11 +137,13 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
133
137
|
graphExecutionId: true,
|
|
134
138
|
id: true,
|
|
135
139
|
jobId: true,
|
|
140
|
+
jobKey: true,
|
|
136
141
|
organizationId: true,
|
|
137
142
|
parentInvocationId: true,
|
|
138
143
|
payload: true,
|
|
139
144
|
principalId: true,
|
|
140
145
|
provenance: true,
|
|
146
|
+
queueName: true,
|
|
141
147
|
result: true,
|
|
142
148
|
startedAt: true,
|
|
143
149
|
status: true,
|
|
@@ -187,11 +193,13 @@ async function handleGet(argv, prompter) {
|
|
|
187
193
|
graphExecutionId: true,
|
|
188
194
|
id: true,
|
|
189
195
|
jobId: true,
|
|
196
|
+
jobKey: true,
|
|
190
197
|
organizationId: true,
|
|
191
198
|
parentInvocationId: true,
|
|
192
199
|
payload: true,
|
|
193
200
|
principalId: true,
|
|
194
201
|
provenance: true,
|
|
202
|
+
queueName: true,
|
|
195
203
|
result: true,
|
|
196
204
|
startedAt: true,
|
|
197
205
|
status: true,
|
|
@@ -309,6 +317,13 @@ async function handleCreate(argv, prompter) {
|
|
|
309
317
|
required: false,
|
|
310
318
|
skipPrompt: true,
|
|
311
319
|
},
|
|
320
|
+
{
|
|
321
|
+
type: 'text',
|
|
322
|
+
name: 'jobKey',
|
|
323
|
+
message: 'jobKey',
|
|
324
|
+
required: false,
|
|
325
|
+
skipPrompt: true,
|
|
326
|
+
},
|
|
312
327
|
{
|
|
313
328
|
type: 'text',
|
|
314
329
|
name: 'organizationId',
|
|
@@ -344,6 +359,13 @@ async function handleCreate(argv, prompter) {
|
|
|
344
359
|
required: false,
|
|
345
360
|
skipPrompt: true,
|
|
346
361
|
},
|
|
362
|
+
{
|
|
363
|
+
type: 'text',
|
|
364
|
+
name: 'queueName',
|
|
365
|
+
message: 'queueName',
|
|
366
|
+
required: false,
|
|
367
|
+
skipPrompt: true,
|
|
368
|
+
},
|
|
347
369
|
{
|
|
348
370
|
type: 'json',
|
|
349
371
|
name: 'result',
|
|
@@ -392,11 +414,13 @@ async function handleCreate(argv, prompter) {
|
|
|
392
414
|
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
393
415
|
graphExecutionId: cleanedData.graphExecutionId,
|
|
394
416
|
jobId: cleanedData.jobId,
|
|
417
|
+
jobKey: cleanedData.jobKey,
|
|
395
418
|
organizationId: cleanedData.organizationId,
|
|
396
419
|
parentInvocationId: cleanedData.parentInvocationId,
|
|
397
420
|
payload: cleanedData.payload,
|
|
398
421
|
principalId: cleanedData.principalId,
|
|
399
422
|
provenance: cleanedData.provenance,
|
|
423
|
+
queueName: cleanedData.queueName,
|
|
400
424
|
result: cleanedData.result,
|
|
401
425
|
startedAt: cleanedData.startedAt,
|
|
402
426
|
status: cleanedData.status,
|
|
@@ -419,11 +443,13 @@ async function handleCreate(argv, prompter) {
|
|
|
419
443
|
graphExecutionId: true,
|
|
420
444
|
id: true,
|
|
421
445
|
jobId: true,
|
|
446
|
+
jobKey: true,
|
|
422
447
|
organizationId: true,
|
|
423
448
|
parentInvocationId: true,
|
|
424
449
|
payload: true,
|
|
425
450
|
principalId: true,
|
|
426
451
|
provenance: true,
|
|
452
|
+
queueName: true,
|
|
427
453
|
result: true,
|
|
428
454
|
startedAt: true,
|
|
429
455
|
status: true,
|
|
@@ -553,6 +579,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
553
579
|
required: false,
|
|
554
580
|
skipPrompt: true,
|
|
555
581
|
},
|
|
582
|
+
{
|
|
583
|
+
type: 'text',
|
|
584
|
+
name: 'jobKey',
|
|
585
|
+
message: 'jobKey',
|
|
586
|
+
required: false,
|
|
587
|
+
skipPrompt: true,
|
|
588
|
+
},
|
|
556
589
|
{
|
|
557
590
|
type: 'text',
|
|
558
591
|
name: 'organizationId',
|
|
@@ -588,6 +621,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
588
621
|
required: false,
|
|
589
622
|
skipPrompt: true,
|
|
590
623
|
},
|
|
624
|
+
{
|
|
625
|
+
type: 'text',
|
|
626
|
+
name: 'queueName',
|
|
627
|
+
message: 'queueName',
|
|
628
|
+
required: false,
|
|
629
|
+
skipPrompt: true,
|
|
630
|
+
},
|
|
591
631
|
{
|
|
592
632
|
type: 'json',
|
|
593
633
|
name: 'result',
|
|
@@ -640,11 +680,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
640
680
|
functionDefinitionId: cleanedData.functionDefinitionId,
|
|
641
681
|
graphExecutionId: cleanedData.graphExecutionId,
|
|
642
682
|
jobId: cleanedData.jobId,
|
|
683
|
+
jobKey: cleanedData.jobKey,
|
|
643
684
|
organizationId: cleanedData.organizationId,
|
|
644
685
|
parentInvocationId: cleanedData.parentInvocationId,
|
|
645
686
|
payload: cleanedData.payload,
|
|
646
687
|
principalId: cleanedData.principalId,
|
|
647
688
|
provenance: cleanedData.provenance,
|
|
689
|
+
queueName: cleanedData.queueName,
|
|
648
690
|
result: cleanedData.result,
|
|
649
691
|
startedAt: cleanedData.startedAt,
|
|
650
692
|
status: cleanedData.status,
|
|
@@ -667,11 +709,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
667
709
|
graphExecutionId: true,
|
|
668
710
|
id: true,
|
|
669
711
|
jobId: true,
|
|
712
|
+
jobKey: true,
|
|
670
713
|
organizationId: true,
|
|
671
714
|
parentInvocationId: true,
|
|
672
715
|
payload: true,
|
|
673
716
|
principalId: true,
|
|
674
717
|
provenance: true,
|
|
718
|
+
queueName: true,
|
|
675
719
|
result: true,
|
|
676
720
|
startedAt: true,
|
|
677
721
|
status: true,
|
|
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
|
|
|
3
3
|
export default async (argv, prompter, _options) => {
|
|
4
4
|
try {
|
|
5
5
|
if (argv.help || argv.h) {
|
|
6
|
-
console.log(
|
|
6
|
+
console.log("provision-bucket - Reconcile an S3 bucket for a logical bucket in the database.\nRecords the request on the bucket row via RLS; the bucket's job\ntrigger then enqueues the same storage:provision_bucket job used on\nINSERT, and repeated requests collapse into one pending job. This is\nidempotent for an already-reconciled bucket; failures become GraphQL\nerrors.\n\nUsage: provision-bucket [OPTIONS]\n");
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
const answers = await prompter.prompt(argv, [
|