@constructive-sdk/cli 1.21.4 → 1.21.6
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
|
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
|
|
|
5
5
|
exports.default = async (argv, prompter, _options) => {
|
|
6
6
|
try {
|
|
7
7
|
if (argv.help || argv.h) {
|
|
8
|
-
console.log(
|
|
8
|
+
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");
|
|
9
9
|
process.exit(0);
|
|
10
10
|
}
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
package/admin/cli/commands.js
CHANGED
|
@@ -94,7 +94,7 @@ const createCommandMap = () => ({
|
|
|
94
94
|
'submit-app-invite-code': submit_app_invite_code_1.default,
|
|
95
95
|
'submit-org-invite-code': submit_org_invite_code_1.default,
|
|
96
96
|
});
|
|
97
|
-
const usage =
|
|
97
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n app-admin-grant appAdminGrant CRUD operations\n app-capability-default-capability appCapabilityDefaultCapability CRUD operations\n app-capability-default-grant appCapabilityDefaultGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-invite appInvite CRUD operations\n app-membership appMembership CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n my-pending-app-invites-record myPendingAppInvitesRecord CRUD operations\n my-pending-org-invites-record myPendingOrgInvitesRecord CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-capability-default-capability orgCapabilityDefaultCapability CRUD operations\n org-capability-default-grant orgCapabilityDefaultGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n org-grant orgGrant CRUD operations\n org-invite orgInvite CRUD operations\n org-member orgMember CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership orgMembership CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n get-organization-id getOrganizationId\n org-is-manager-of orgIsManagerOf\n accept-app-invite acceptAppInvite\n accept-org-invite acceptOrgInvite\n provision-app-user provisionAppUser\n provision-app-users-bulk provisionAppUsersBulk\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 provision-org-user provisionOrgUser\n provision-org-users-bulk provisionOrgUsersBulk\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
98
98
|
const commands = async (argv, prompter, options) => {
|
|
99
99
|
if (argv.help || argv.h) {
|
|
100
100
|
console.log(usage);
|
|
@@ -3199,19 +3199,19 @@ export type ProvisionAppUsersBulkPayloadSelect = {
|
|
|
3199
3199
|
};
|
|
3200
3200
|
};
|
|
3201
3201
|
export interface ProvisionBucketPayload {
|
|
3202
|
-
/** The logical bucket row
|
|
3202
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
3203
3203
|
bucketId: string;
|
|
3204
3204
|
bucketKey: string;
|
|
3205
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
3206
|
-
jobId: string;
|
|
3207
3205
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
3208
3206
|
physicalName?: string | null;
|
|
3207
|
+
/** When reconciliation was last requested for this bucket. */
|
|
3208
|
+
provisionRequestedAt: string;
|
|
3209
3209
|
}
|
|
3210
3210
|
export type ProvisionBucketPayloadSelect = {
|
|
3211
3211
|
bucketId?: boolean;
|
|
3212
3212
|
bucketKey?: boolean;
|
|
3213
|
-
jobId?: boolean;
|
|
3214
3213
|
physicalName?: boolean;
|
|
3214
|
+
provisionRequestedAt?: boolean;
|
|
3215
3215
|
};
|
|
3216
3216
|
export interface ProvisionOrgUserPayload {
|
|
3217
3217
|
clientMutationId?: string | null;
|
|
@@ -22,10 +22,11 @@ export interface ProvisionAppUsersBulkVariables {
|
|
|
22
22
|
/**
|
|
23
23
|
* Variables for provisionBucket
|
|
24
24
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
25
|
-
|
|
26
|
-
storage:provision_bucket job used
|
|
27
|
-
|
|
28
|
-
GraphQL
|
|
25
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
26
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
27
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
28
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
29
|
+
errors.
|
|
29
30
|
*/
|
|
30
31
|
export interface ProvisionBucketVariables {
|
|
31
32
|
input: ProvisionBucketInput;
|
|
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
|
|
|
5
5
|
exports.default = async (argv, prompter, _options) => {
|
|
6
6
|
try {
|
|
7
7
|
if (argv.help || argv.h) {
|
|
8
|
-
console.log(
|
|
8
|
+
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");
|
|
9
9
|
process.exit(0);
|
|
10
10
|
}
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
package/agent/cli/commands.js
CHANGED
|
@@ -66,7 +66,7 @@ const createCommandMap = () => ({
|
|
|
66
66
|
'platform-agent-thread': platform_agent_thread_1.default,
|
|
67
67
|
'provision-bucket': provision_bucket_1.default,
|
|
68
68
|
});
|
|
69
|
-
const usage =
|
|
69
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n agent agent CRUD operations\n agent-event agentEvent CRUD operations\n agent-message agentMessage CRUD operations\n agent-persona agentPersona CRUD operations\n agent-plan agentPlan CRUD operations\n agent-prompt agentPrompt CRUD operations\n agent-resource-chunk agentResourceChunk CRUD operations\n agent-resource agentResource CRUD operations\n agent-run agentRun CRUD operations\n agent-run-workspace agentRunWorkspace CRUD operations\n agent-task agentTask CRUD operations\n agent-thread agentThread CRUD operations\n platform-agent platformAgent CRUD operations\n platform-agent-event platformAgentEvent CRUD operations\n platform-agent-message platformAgentMessage CRUD operations\n platform-agent-persona platformAgentPersona CRUD operations\n platform-agent-plan platformAgentPlan CRUD operations\n platform-agent-prompt platformAgentPrompt CRUD operations\n platform-agent-resource-chunk platformAgentResourceChunk CRUD operations\n platform-agent-resource platformAgentResource CRUD operations\n platform-agent-run platformAgentRun CRUD operations\n platform-agent-run-workspace platformAgentRunWorkspace CRUD operations\n platform-agent-task platformAgentTask CRUD operations\n platform-agent-thread platformAgentThread CRUD operations\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\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
70
70
|
const commands = async (argv, prompter, options) => {
|
|
71
71
|
if (argv.help || argv.h) {
|
|
72
72
|
console.log(usage);
|
|
@@ -6357,19 +6357,19 @@ export interface FullTextFilter {
|
|
|
6357
6357
|
notIn?: string[];
|
|
6358
6358
|
}
|
|
6359
6359
|
export interface ProvisionBucketPayload {
|
|
6360
|
-
/** The logical bucket row
|
|
6360
|
+
/** The logical bucket row whose reconciliation was requested. */
|
|
6361
6361
|
bucketId: string;
|
|
6362
6362
|
bucketKey: string;
|
|
6363
|
-
/** The reconciler job enqueued to provision this bucket. */
|
|
6364
|
-
jobId: string;
|
|
6365
6363
|
/** The physical bucket name already recorded, or null when reconciliation has not completed. */
|
|
6366
6364
|
physicalName?: string | null;
|
|
6365
|
+
/** When reconciliation was last requested for this bucket. */
|
|
6366
|
+
provisionRequestedAt: string;
|
|
6367
6367
|
}
|
|
6368
6368
|
export type ProvisionBucketPayloadSelect = {
|
|
6369
6369
|
bucketId?: boolean;
|
|
6370
6370
|
bucketKey?: boolean;
|
|
6371
|
-
jobId?: boolean;
|
|
6372
6371
|
physicalName?: boolean;
|
|
6372
|
+
provisionRequestedAt?: boolean;
|
|
6373
6373
|
};
|
|
6374
6374
|
export interface CreateAgentPayload {
|
|
6375
6375
|
/** The `Agent` that was created by this mutation. */
|
|
@@ -10,10 +10,11 @@ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPaylo
|
|
|
10
10
|
/**
|
|
11
11
|
* Variables for provisionBucket
|
|
12
12
|
* Reconcile an S3 bucket for a logical bucket in the database.
|
|
13
|
-
|
|
14
|
-
storage:provision_bucket job used
|
|
15
|
-
|
|
16
|
-
GraphQL
|
|
13
|
+
Records the request on the bucket row via RLS; the bucket's job
|
|
14
|
+
trigger then enqueues the same storage:provision_bucket job used on
|
|
15
|
+
INSERT, and repeated requests collapse into one pending job. This is
|
|
16
|
+
idempotent for an already-reconciled bucket; failures become GraphQL
|
|
17
|
+
errors.
|
|
17
18
|
*/
|
|
18
19
|
export interface ProvisionBucketVariables {
|
|
19
20
|
input: ProvisionBucketInput;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log('create-function-from-source - Creates a `Function` from its `CREATE FUNCTION` source text.\n\nUsage: create-function-from-source [OPTIONS]\n');
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.createFunctionFromSource(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: createFunctionFromSource');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
exports.default = async (argv, prompter, _options) => {
|
|
5
|
+
try {
|
|
6
|
+
if (argv.help || argv.h) {
|
|
7
|
+
console.log('email-shared-account - emailSharedAccount\n\nUsage: email-shared-account [OPTIONS]\n');
|
|
8
|
+
process.exit(0);
|
|
9
|
+
}
|
|
10
|
+
const client = (0, executor_1.getClient)();
|
|
11
|
+
const result = await client.query.emailSharedAccount().execute();
|
|
12
|
+
console.log(JSON.stringify(result, null, 2));
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.error('Failed: emailSharedAccount');
|
|
16
|
+
if (error instanceof Error) {
|
|
17
|
+
console.error(error.message);
|
|
18
|
+
}
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -18,6 +18,7 @@ const fieldSchema = {
|
|
|
18
18
|
domain: 'string',
|
|
19
19
|
id: 'uuid',
|
|
20
20
|
isWildcard: 'boolean',
|
|
21
|
+
publicPort: 'int',
|
|
21
22
|
tlsReadyAt: 'string',
|
|
22
23
|
tlsStatus: 'string',
|
|
23
24
|
updatedAt: 'string',
|
|
@@ -76,6 +77,7 @@ async function handleList(argv, _prompter) {
|
|
|
76
77
|
domain: true,
|
|
77
78
|
id: true,
|
|
78
79
|
isWildcard: true,
|
|
80
|
+
publicPort: true,
|
|
79
81
|
tlsReadyAt: true,
|
|
80
82
|
tlsStatus: true,
|
|
81
83
|
updatedAt: true,
|
|
@@ -108,6 +110,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
108
110
|
domain: true,
|
|
109
111
|
id: true,
|
|
110
112
|
isWildcard: true,
|
|
113
|
+
publicPort: true,
|
|
111
114
|
tlsReadyAt: true,
|
|
112
115
|
tlsStatus: true,
|
|
113
116
|
updatedAt: true,
|
|
@@ -152,6 +155,7 @@ async function handleGet(argv, prompter) {
|
|
|
152
155
|
domain: true,
|
|
153
156
|
id: true,
|
|
154
157
|
isWildcard: true,
|
|
158
|
+
publicPort: true,
|
|
155
159
|
tlsReadyAt: true,
|
|
156
160
|
tlsStatus: true,
|
|
157
161
|
updatedAt: true,
|
|
@@ -221,6 +225,13 @@ async function handleCreate(argv, prompter) {
|
|
|
221
225
|
required: false,
|
|
222
226
|
skipPrompt: true,
|
|
223
227
|
},
|
|
228
|
+
{
|
|
229
|
+
type: 'text',
|
|
230
|
+
name: 'publicPort',
|
|
231
|
+
message: 'publicPort',
|
|
232
|
+
required: false,
|
|
233
|
+
skipPrompt: true,
|
|
234
|
+
},
|
|
224
235
|
{
|
|
225
236
|
type: 'text',
|
|
226
237
|
name: 'tlsReadyAt',
|
|
@@ -270,6 +281,7 @@ async function handleCreate(argv, prompter) {
|
|
|
270
281
|
databaseId: cleanedData.databaseId,
|
|
271
282
|
domain: cleanedData.domain,
|
|
272
283
|
isWildcard: cleanedData.isWildcard,
|
|
284
|
+
publicPort: cleanedData.publicPort,
|
|
273
285
|
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
274
286
|
tlsStatus: cleanedData.tlsStatus,
|
|
275
287
|
updatedByPrincipal: cleanedData.updatedByPrincipal,
|
|
@@ -286,6 +298,7 @@ async function handleCreate(argv, prompter) {
|
|
|
286
298
|
domain: true,
|
|
287
299
|
id: true,
|
|
288
300
|
isWildcard: true,
|
|
301
|
+
publicPort: true,
|
|
289
302
|
tlsReadyAt: true,
|
|
290
303
|
tlsStatus: true,
|
|
291
304
|
updatedAt: true,
|
|
@@ -361,6 +374,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
361
374
|
required: false,
|
|
362
375
|
skipPrompt: true,
|
|
363
376
|
},
|
|
377
|
+
{
|
|
378
|
+
type: 'text',
|
|
379
|
+
name: 'publicPort',
|
|
380
|
+
message: 'publicPort',
|
|
381
|
+
required: false,
|
|
382
|
+
skipPrompt: true,
|
|
383
|
+
},
|
|
364
384
|
{
|
|
365
385
|
type: 'text',
|
|
366
386
|
name: 'tlsReadyAt',
|
|
@@ -413,6 +433,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
413
433
|
databaseId: cleanedData.databaseId,
|
|
414
434
|
domain: cleanedData.domain,
|
|
415
435
|
isWildcard: cleanedData.isWildcard,
|
|
436
|
+
publicPort: cleanedData.publicPort,
|
|
416
437
|
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
417
438
|
tlsStatus: cleanedData.tlsStatus,
|
|
418
439
|
updatedByPrincipal: cleanedData.updatedByPrincipal,
|
|
@@ -429,6 +450,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
429
450
|
domain: true,
|
|
430
451
|
id: true,
|
|
431
452
|
isWildcard: true,
|
|
453
|
+
publicPort: true,
|
|
432
454
|
tlsReadyAt: true,
|
|
433
455
|
tlsStatus: true,
|
|
434
456
|
updatedAt: true,
|
|
@@ -17,6 +17,7 @@ const fieldSchema = {
|
|
|
17
17
|
domain: 'string',
|
|
18
18
|
id: 'uuid',
|
|
19
19
|
isWildcard: 'boolean',
|
|
20
|
+
publicPort: 'int',
|
|
20
21
|
tlsReadyAt: 'string',
|
|
21
22
|
tlsStatus: 'string',
|
|
22
23
|
updatedAt: 'string',
|
|
@@ -74,6 +75,7 @@ async function handleList(argv, _prompter) {
|
|
|
74
75
|
domain: true,
|
|
75
76
|
id: true,
|
|
76
77
|
isWildcard: true,
|
|
78
|
+
publicPort: true,
|
|
77
79
|
tlsReadyAt: true,
|
|
78
80
|
tlsStatus: true,
|
|
79
81
|
updatedAt: true,
|
|
@@ -105,6 +107,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
105
107
|
domain: true,
|
|
106
108
|
id: true,
|
|
107
109
|
isWildcard: true,
|
|
110
|
+
publicPort: true,
|
|
108
111
|
tlsReadyAt: true,
|
|
109
112
|
tlsStatus: true,
|
|
110
113
|
updatedAt: true,
|
|
@@ -148,6 +151,7 @@ async function handleGet(argv, prompter) {
|
|
|
148
151
|
domain: true,
|
|
149
152
|
id: true,
|
|
150
153
|
isWildcard: true,
|
|
154
|
+
publicPort: true,
|
|
151
155
|
tlsReadyAt: true,
|
|
152
156
|
tlsStatus: true,
|
|
153
157
|
updatedAt: true,
|
|
@@ -211,6 +215,13 @@ async function handleCreate(argv, prompter) {
|
|
|
211
215
|
required: false,
|
|
212
216
|
skipPrompt: true,
|
|
213
217
|
},
|
|
218
|
+
{
|
|
219
|
+
type: 'text',
|
|
220
|
+
name: 'publicPort',
|
|
221
|
+
message: 'publicPort',
|
|
222
|
+
required: false,
|
|
223
|
+
skipPrompt: true,
|
|
224
|
+
},
|
|
214
225
|
{
|
|
215
226
|
type: 'text',
|
|
216
227
|
name: 'tlsReadyAt',
|
|
@@ -259,6 +270,7 @@ async function handleCreate(argv, prompter) {
|
|
|
259
270
|
createdByPrincipal: cleanedData.createdByPrincipal,
|
|
260
271
|
domain: cleanedData.domain,
|
|
261
272
|
isWildcard: cleanedData.isWildcard,
|
|
273
|
+
publicPort: cleanedData.publicPort,
|
|
262
274
|
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
263
275
|
tlsStatus: cleanedData.tlsStatus,
|
|
264
276
|
updatedByPrincipal: cleanedData.updatedByPrincipal,
|
|
@@ -274,6 +286,7 @@ async function handleCreate(argv, prompter) {
|
|
|
274
286
|
domain: true,
|
|
275
287
|
id: true,
|
|
276
288
|
isWildcard: true,
|
|
289
|
+
publicPort: true,
|
|
277
290
|
tlsReadyAt: true,
|
|
278
291
|
tlsStatus: true,
|
|
279
292
|
updatedAt: true,
|
|
@@ -343,6 +356,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
343
356
|
required: false,
|
|
344
357
|
skipPrompt: true,
|
|
345
358
|
},
|
|
359
|
+
{
|
|
360
|
+
type: 'text',
|
|
361
|
+
name: 'publicPort',
|
|
362
|
+
message: 'publicPort',
|
|
363
|
+
required: false,
|
|
364
|
+
skipPrompt: true,
|
|
365
|
+
},
|
|
346
366
|
{
|
|
347
367
|
type: 'text',
|
|
348
368
|
name: 'tlsReadyAt',
|
|
@@ -394,6 +414,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
394
414
|
createdByPrincipal: cleanedData.createdByPrincipal,
|
|
395
415
|
domain: cleanedData.domain,
|
|
396
416
|
isWildcard: cleanedData.isWildcard,
|
|
417
|
+
publicPort: cleanedData.publicPort,
|
|
397
418
|
tlsReadyAt: cleanedData.tlsReadyAt,
|
|
398
419
|
tlsStatus: cleanedData.tlsStatus,
|
|
399
420
|
updatedByPrincipal: cleanedData.updatedByPrincipal,
|
|
@@ -409,6 +430,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
409
430
|
domain: true,
|
|
410
431
|
id: true,
|
|
411
432
|
isWildcard: true,
|
|
433
|
+
publicPort: true,
|
|
412
434
|
tlsReadyAt: true,
|
|
413
435
|
tlsStatus: true,
|
|
414
436
|
updatedAt: true,
|
|
@@ -5,7 +5,7 @@ const utils_1 = require("../utils");
|
|
|
5
5
|
exports.default = async (argv, prompter, _options) => {
|
|
6
6
|
try {
|
|
7
7
|
if (argv.help || argv.h) {
|
|
8
|
-
console.log(
|
|
8
|
+
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");
|
|
9
9
|
process.exit(0);
|
|
10
10
|
}
|
|
11
11
|
const answers = await prompter.prompt(argv, [
|
|
@@ -18,6 +18,7 @@ const fieldSchema = {
|
|
|
18
18
|
initiallyDeferred: 'boolean',
|
|
19
19
|
isDeferrable: 'boolean',
|
|
20
20
|
name: 'string',
|
|
21
|
+
nullsNotDistinct: 'boolean',
|
|
21
22
|
smartTags: 'json',
|
|
22
23
|
tableId: 'uuid',
|
|
23
24
|
tags: 'string',
|
|
@@ -76,6 +77,7 @@ async function handleList(argv, _prompter) {
|
|
|
76
77
|
initiallyDeferred: true,
|
|
77
78
|
isDeferrable: true,
|
|
78
79
|
name: true,
|
|
80
|
+
nullsNotDistinct: true,
|
|
79
81
|
smartTags: true,
|
|
80
82
|
tableId: true,
|
|
81
83
|
tags: true,
|
|
@@ -108,6 +110,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
108
110
|
initiallyDeferred: true,
|
|
109
111
|
isDeferrable: true,
|
|
110
112
|
name: true,
|
|
113
|
+
nullsNotDistinct: true,
|
|
111
114
|
smartTags: true,
|
|
112
115
|
tableId: true,
|
|
113
116
|
tags: true,
|
|
@@ -152,6 +155,7 @@ async function handleGet(argv, prompter) {
|
|
|
152
155
|
initiallyDeferred: true,
|
|
153
156
|
isDeferrable: true,
|
|
154
157
|
name: true,
|
|
158
|
+
nullsNotDistinct: true,
|
|
155
159
|
smartTags: true,
|
|
156
160
|
tableId: true,
|
|
157
161
|
tags: true,
|
|
@@ -222,6 +226,13 @@ async function handleCreate(argv, prompter) {
|
|
|
222
226
|
required: false,
|
|
223
227
|
skipPrompt: true,
|
|
224
228
|
},
|
|
229
|
+
{
|
|
230
|
+
type: 'boolean',
|
|
231
|
+
name: 'nullsNotDistinct',
|
|
232
|
+
message: 'nullsNotDistinct',
|
|
233
|
+
required: false,
|
|
234
|
+
skipPrompt: true,
|
|
235
|
+
},
|
|
225
236
|
{
|
|
226
237
|
type: 'json',
|
|
227
238
|
name: 'smartTags',
|
|
@@ -270,6 +281,7 @@ async function handleCreate(argv, prompter) {
|
|
|
270
281
|
initiallyDeferred: cleanedData.initiallyDeferred,
|
|
271
282
|
isDeferrable: cleanedData.isDeferrable,
|
|
272
283
|
name: cleanedData.name,
|
|
284
|
+
nullsNotDistinct: cleanedData.nullsNotDistinct,
|
|
273
285
|
smartTags: cleanedData.smartTags,
|
|
274
286
|
tableId: cleanedData.tableId,
|
|
275
287
|
tags: cleanedData.tags,
|
|
@@ -286,6 +298,7 @@ async function handleCreate(argv, prompter) {
|
|
|
286
298
|
initiallyDeferred: true,
|
|
287
299
|
isDeferrable: true,
|
|
288
300
|
name: true,
|
|
301
|
+
nullsNotDistinct: true,
|
|
289
302
|
smartTags: true,
|
|
290
303
|
tableId: true,
|
|
291
304
|
tags: true,
|
|
@@ -362,6 +375,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
362
375
|
required: false,
|
|
363
376
|
skipPrompt: true,
|
|
364
377
|
},
|
|
378
|
+
{
|
|
379
|
+
type: 'boolean',
|
|
380
|
+
name: 'nullsNotDistinct',
|
|
381
|
+
message: 'nullsNotDistinct',
|
|
382
|
+
required: false,
|
|
383
|
+
skipPrompt: true,
|
|
384
|
+
},
|
|
365
385
|
{
|
|
366
386
|
type: 'json',
|
|
367
387
|
name: 'smartTags',
|
|
@@ -413,6 +433,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
413
433
|
initiallyDeferred: cleanedData.initiallyDeferred,
|
|
414
434
|
isDeferrable: cleanedData.isDeferrable,
|
|
415
435
|
name: cleanedData.name,
|
|
436
|
+
nullsNotDistinct: cleanedData.nullsNotDistinct,
|
|
416
437
|
smartTags: cleanedData.smartTags,
|
|
417
438
|
tableId: cleanedData.tableId,
|
|
418
439
|
tags: cleanedData.tags,
|
|
@@ -429,6 +450,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
429
450
|
initiallyDeferred: true,
|
|
430
451
|
isDeferrable: true,
|
|
431
452
|
name: true,
|
|
453
|
+
nullsNotDistinct: true,
|
|
432
454
|
smartTags: true,
|
|
433
455
|
tableId: true,
|
|
434
456
|
tags: true,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const executor_1 = require("../executor");
|
|
4
|
+
const utils_1 = require("../utils");
|
|
5
|
+
exports.default = async (argv, prompter, _options) => {
|
|
6
|
+
try {
|
|
7
|
+
if (argv.help || argv.h) {
|
|
8
|
+
console.log("update-function-from-source - Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.\n\nUsage: update-function-from-source [OPTIONS]\n");
|
|
9
|
+
process.exit(0);
|
|
10
|
+
}
|
|
11
|
+
const answers = await prompter.prompt(argv, [
|
|
12
|
+
{
|
|
13
|
+
type: 'text',
|
|
14
|
+
name: 'input',
|
|
15
|
+
message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
]);
|
|
19
|
+
const client = (0, executor_1.getClient)();
|
|
20
|
+
const parsedAnswers = (0, utils_1.unflattenDotNotation)(answers);
|
|
21
|
+
const selectFields = (0, utils_1.buildSelectFromPaths)(argv.select ?? 'clientMutationId');
|
|
22
|
+
const result = await client.mutation
|
|
23
|
+
.updateFunctionFromSource(parsedAnswers, {
|
|
24
|
+
select: selectFields,
|
|
25
|
+
})
|
|
26
|
+
.execute();
|
|
27
|
+
console.log(JSON.stringify(result, null, 2));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error('Failed: updateFunctionFromSource');
|
|
31
|
+
if (error instanceof Error) {
|
|
32
|
+
console.error(error.message);
|
|
33
|
+
}
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
};
|