@constructive-sdk/cli 1.20.7 → 1.20.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/orm/input-types.d.ts +4 -4
- package/api/cli/commands/email-provider-account.js +0 -22
- package/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/api/cli/commands/list-suspended-databases-record.js +152 -0
- package/api/cli/commands/platform-email-provider-account.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +60 -30
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +4 -2
- package/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/api/orm/models/listSuspendedDatabasesRecord.js +80 -0
- package/auth/cli/commands/{provision-new-user.d.ts → request-magic-link.d.ts} +1 -1
- package/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/auth/cli/commands/send-mfa-challenge-code.js +36 -0
- package/{esm/auth/cli/commands/provision-new-user.d.ts → auth/cli/commands/send-sms-otp.d.ts} +1 -1
- package/auth/cli/commands/send-sms-otp.js +36 -0
- package/auth/cli/commands.js +7 -3
- package/auth/cli/executor.d.ts +15 -5
- package/auth/orm/index.d.ts +15 -5
- package/auth/orm/input-types.d.ts +44 -14
- package/auth/orm/mutation/index.d.ts +25 -9
- package/auth/orm/mutation/index.js +36 -12
- package/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/function-execution-logs-append.js +36 -0
- package/compute/cli/commands/function-schedule.d.ts +8 -0
- package/compute/cli/commands/function-schedule.js +434 -0
- package/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/compute/cli/commands/platform-function-execution-logs-append.js +36 -0
- package/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/compute/cli/commands/platform-function-schedule.js +414 -0
- package/compute/cli/commands.js +9 -1
- package/compute/cli/executor.d.ts +12 -0
- package/compute/orm/index.d.ts +14 -0
- package/compute/orm/index.js +4 -0
- package/compute/orm/input-types.d.ts +553 -4
- package/compute/orm/input-types.js +2 -0
- package/compute/orm/models/functionSchedule.d.ts +54 -0
- package/compute/orm/models/functionSchedule.js +104 -0
- package/compute/orm/models/index.d.ts +2 -0
- package/compute/orm/models/index.js +7 -3
- package/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/compute/orm/models/platformFunctionSchedule.js +104 -0
- package/compute/orm/mutation/index.d.ts +17 -1
- package/compute/orm/mutation/index.js +24 -0
- package/esm/agent/orm/input-types.d.ts +4 -4
- package/esm/api/cli/commands/email-provider-account.js +0 -22
- package/esm/api/cli/commands/list-suspended-databases-record.d.ts +8 -0
- package/esm/api/cli/commands/list-suspended-databases-record.js +150 -0
- package/esm/api/cli/commands/platform-email-provider-account.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +60 -30
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +36 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.js +76 -0
- package/esm/auth/cli/commands/request-magic-link.d.ts +8 -0
- package/esm/auth/cli/commands/{provision-new-user.js → request-magic-link.js} +3 -3
- package/esm/auth/cli/commands/send-mfa-challenge-code.d.ts +8 -0
- package/esm/auth/cli/commands/send-mfa-challenge-code.js +34 -0
- package/esm/auth/cli/commands/send-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/send-sms-otp.js +34 -0
- package/esm/auth/cli/commands.js +7 -3
- package/esm/auth/cli/executor.d.ts +15 -5
- package/esm/auth/orm/index.d.ts +15 -5
- package/esm/auth/orm/input-types.d.ts +44 -14
- package/esm/auth/orm/mutation/index.d.ts +25 -9
- package/esm/auth/orm/mutation/index.js +36 -12
- package/esm/compute/cli/commands/function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/function-schedule.js +432 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-execution-logs-append.js +34 -0
- package/esm/compute/cli/commands/platform-function-schedule.d.ts +8 -0
- package/esm/compute/cli/commands/platform-function-schedule.js +412 -0
- package/esm/compute/cli/commands.js +9 -1
- package/esm/compute/cli/executor.d.ts +12 -0
- package/esm/compute/orm/index.d.ts +14 -0
- package/esm/compute/orm/index.js +4 -0
- package/esm/compute/orm/input-types.d.ts +553 -4
- package/esm/compute/orm/input-types.js +2 -0
- package/esm/compute/orm/models/functionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/functionSchedule.js +100 -0
- package/esm/compute/orm/models/index.d.ts +2 -0
- package/esm/compute/orm/models/index.js +2 -0
- package/esm/compute/orm/models/platformFunctionSchedule.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionSchedule.js +100 -0
- package/esm/compute/orm/mutation/index.d.ts +17 -1
- package/esm/compute/orm/mutation/index.js +24 -0
- package/esm/modules/cli/commands/billing-provider-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -88
- package/esm/modules/cli/commands/plans-module.js +0 -22
- package/esm/modules/orm/input-types.d.ts +26 -48
- package/esm/remote/cli/commands/machine.js +22 -0
- package/esm/remote/orm/input-types.d.ts +13 -1
- package/modules/cli/commands/billing-provider-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -88
- package/modules/cli/commands/plans-module.js +0 -22
- package/modules/orm/input-types.d.ts +26 -48
- package/package.json +5 -5
- package/remote/cli/commands/machine.js +22 -0
- package/remote/orm/input-types.d.ts +13 -1
|
@@ -32,6 +32,7 @@ const fieldSchema = {
|
|
|
32
32
|
billingSubscriptionsTableName: 'string',
|
|
33
33
|
billingWebhookEventsTableId: 'uuid',
|
|
34
34
|
billingWebhookEventsTableName: 'string',
|
|
35
|
+
bindCheckoutSessionFunction: 'string',
|
|
35
36
|
clearScheduledChangeFunction: 'string',
|
|
36
37
|
databaseId: 'uuid',
|
|
37
38
|
finishBillingOperationFunction: 'string',
|
|
@@ -46,6 +47,7 @@ const fieldSchema = {
|
|
|
46
47
|
getBillingSubscriptionFunction: 'string',
|
|
47
48
|
getFallbackFreePlanFunction: 'string',
|
|
48
49
|
getPlanPricingByExternalPriceFunction: 'string',
|
|
50
|
+
hasDueReconciliationsFunction: 'string',
|
|
49
51
|
id: 'uuid',
|
|
50
52
|
listDueReconciliationsFunction: 'string',
|
|
51
53
|
listPendingUsageSyncFunction: 'string',
|
|
@@ -70,6 +72,7 @@ const fieldSchema = {
|
|
|
70
72
|
upsertBillingProductFunction: 'string',
|
|
71
73
|
upsertBillingSubscriptionFunction: 'string',
|
|
72
74
|
upsertInvoiceFunction: 'string',
|
|
75
|
+
usageSyncShardCount: 'int',
|
|
73
76
|
};
|
|
74
77
|
const usage = '\nbilling-provider-module <command>\n\nCommands:\n list List billingProviderModule records\n find-first Find first matching billingProviderModule record\n get Get a billingProviderModule by ID\n create Create a new billingProviderModule\n update Update an existing billingProviderModule\n delete Delete a billingProviderModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
75
78
|
export default async (argv, prompter, _options) => {
|
|
@@ -138,6 +141,7 @@ async function handleList(argv, _prompter) {
|
|
|
138
141
|
billingSubscriptionsTableName: true,
|
|
139
142
|
billingWebhookEventsTableId: true,
|
|
140
143
|
billingWebhookEventsTableName: true,
|
|
144
|
+
bindCheckoutSessionFunction: true,
|
|
141
145
|
clearScheduledChangeFunction: true,
|
|
142
146
|
databaseId: true,
|
|
143
147
|
finishBillingOperationFunction: true,
|
|
@@ -152,6 +156,7 @@ async function handleList(argv, _prompter) {
|
|
|
152
156
|
getBillingSubscriptionFunction: true,
|
|
153
157
|
getFallbackFreePlanFunction: true,
|
|
154
158
|
getPlanPricingByExternalPriceFunction: true,
|
|
159
|
+
hasDueReconciliationsFunction: true,
|
|
155
160
|
id: true,
|
|
156
161
|
listDueReconciliationsFunction: true,
|
|
157
162
|
listPendingUsageSyncFunction: true,
|
|
@@ -176,6 +181,7 @@ async function handleList(argv, _prompter) {
|
|
|
176
181
|
upsertBillingProductFunction: true,
|
|
177
182
|
upsertBillingSubscriptionFunction: true,
|
|
178
183
|
upsertInvoiceFunction: true,
|
|
184
|
+
usageSyncShardCount: true,
|
|
179
185
|
};
|
|
180
186
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
181
187
|
const client = getClient();
|
|
@@ -218,6 +224,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
218
224
|
billingSubscriptionsTableName: true,
|
|
219
225
|
billingWebhookEventsTableId: true,
|
|
220
226
|
billingWebhookEventsTableName: true,
|
|
227
|
+
bindCheckoutSessionFunction: true,
|
|
221
228
|
clearScheduledChangeFunction: true,
|
|
222
229
|
databaseId: true,
|
|
223
230
|
finishBillingOperationFunction: true,
|
|
@@ -232,6 +239,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
232
239
|
getBillingSubscriptionFunction: true,
|
|
233
240
|
getFallbackFreePlanFunction: true,
|
|
234
241
|
getPlanPricingByExternalPriceFunction: true,
|
|
242
|
+
hasDueReconciliationsFunction: true,
|
|
235
243
|
id: true,
|
|
236
244
|
listDueReconciliationsFunction: true,
|
|
237
245
|
listPendingUsageSyncFunction: true,
|
|
@@ -256,6 +264,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
256
264
|
upsertBillingProductFunction: true,
|
|
257
265
|
upsertBillingSubscriptionFunction: true,
|
|
258
266
|
upsertInvoiceFunction: true,
|
|
267
|
+
usageSyncShardCount: true,
|
|
259
268
|
};
|
|
260
269
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
261
270
|
const client = getClient();
|
|
@@ -310,6 +319,7 @@ async function handleGet(argv, prompter) {
|
|
|
310
319
|
billingSubscriptionsTableName: true,
|
|
311
320
|
billingWebhookEventsTableId: true,
|
|
312
321
|
billingWebhookEventsTableName: true,
|
|
322
|
+
bindCheckoutSessionFunction: true,
|
|
313
323
|
clearScheduledChangeFunction: true,
|
|
314
324
|
databaseId: true,
|
|
315
325
|
finishBillingOperationFunction: true,
|
|
@@ -324,6 +334,7 @@ async function handleGet(argv, prompter) {
|
|
|
324
334
|
getBillingSubscriptionFunction: true,
|
|
325
335
|
getFallbackFreePlanFunction: true,
|
|
326
336
|
getPlanPricingByExternalPriceFunction: true,
|
|
337
|
+
hasDueReconciliationsFunction: true,
|
|
327
338
|
id: true,
|
|
328
339
|
listDueReconciliationsFunction: true,
|
|
329
340
|
listPendingUsageSyncFunction: true,
|
|
@@ -348,6 +359,7 @@ async function handleGet(argv, prompter) {
|
|
|
348
359
|
upsertBillingProductFunction: true,
|
|
349
360
|
upsertBillingSubscriptionFunction: true,
|
|
350
361
|
upsertInvoiceFunction: true,
|
|
362
|
+
usageSyncShardCount: true,
|
|
351
363
|
},
|
|
352
364
|
})
|
|
353
365
|
.execute();
|
|
@@ -539,6 +551,13 @@ async function handleCreate(argv, prompter) {
|
|
|
539
551
|
required: false,
|
|
540
552
|
skipPrompt: true,
|
|
541
553
|
},
|
|
554
|
+
{
|
|
555
|
+
type: 'text',
|
|
556
|
+
name: 'bindCheckoutSessionFunction',
|
|
557
|
+
message: 'bindCheckoutSessionFunction',
|
|
558
|
+
required: false,
|
|
559
|
+
skipPrompt: true,
|
|
560
|
+
},
|
|
542
561
|
{
|
|
543
562
|
type: 'text',
|
|
544
563
|
name: 'clearScheduledChangeFunction',
|
|
@@ -636,6 +655,13 @@ async function handleCreate(argv, prompter) {
|
|
|
636
655
|
required: false,
|
|
637
656
|
skipPrompt: true,
|
|
638
657
|
},
|
|
658
|
+
{
|
|
659
|
+
type: 'text',
|
|
660
|
+
name: 'hasDueReconciliationsFunction',
|
|
661
|
+
message: 'hasDueReconciliationsFunction',
|
|
662
|
+
required: false,
|
|
663
|
+
skipPrompt: true,
|
|
664
|
+
},
|
|
639
665
|
{
|
|
640
666
|
type: 'text',
|
|
641
667
|
name: 'listDueReconciliationsFunction',
|
|
@@ -797,6 +823,13 @@ async function handleCreate(argv, prompter) {
|
|
|
797
823
|
required: false,
|
|
798
824
|
skipPrompt: true,
|
|
799
825
|
},
|
|
826
|
+
{
|
|
827
|
+
type: 'text',
|
|
828
|
+
name: 'usageSyncShardCount',
|
|
829
|
+
message: 'usageSyncShardCount',
|
|
830
|
+
required: false,
|
|
831
|
+
skipPrompt: true,
|
|
832
|
+
},
|
|
800
833
|
]);
|
|
801
834
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
802
835
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -829,6 +862,7 @@ async function handleCreate(argv, prompter) {
|
|
|
829
862
|
billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName,
|
|
830
863
|
billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId,
|
|
831
864
|
billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName,
|
|
865
|
+
bindCheckoutSessionFunction: cleanedData.bindCheckoutSessionFunction,
|
|
832
866
|
clearScheduledChangeFunction: cleanedData.clearScheduledChangeFunction,
|
|
833
867
|
databaseId: cleanedData.databaseId,
|
|
834
868
|
finishBillingOperationFunction: cleanedData.finishBillingOperationFunction,
|
|
@@ -843,6 +877,7 @@ async function handleCreate(argv, prompter) {
|
|
|
843
877
|
getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction,
|
|
844
878
|
getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction,
|
|
845
879
|
getPlanPricingByExternalPriceFunction: cleanedData.getPlanPricingByExternalPriceFunction,
|
|
880
|
+
hasDueReconciliationsFunction: cleanedData.hasDueReconciliationsFunction,
|
|
846
881
|
listDueReconciliationsFunction: cleanedData.listDueReconciliationsFunction,
|
|
847
882
|
listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction,
|
|
848
883
|
markUsageSyncedFunction: cleanedData.markUsageSyncedFunction,
|
|
@@ -866,6 +901,7 @@ async function handleCreate(argv, prompter) {
|
|
|
866
901
|
upsertBillingProductFunction: cleanedData.upsertBillingProductFunction,
|
|
867
902
|
upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction,
|
|
868
903
|
upsertInvoiceFunction: cleanedData.upsertInvoiceFunction,
|
|
904
|
+
usageSyncShardCount: cleanedData.usageSyncShardCount,
|
|
869
905
|
},
|
|
870
906
|
select: {
|
|
871
907
|
activatePlanSubscriptionFunction: true,
|
|
@@ -893,6 +929,7 @@ async function handleCreate(argv, prompter) {
|
|
|
893
929
|
billingSubscriptionsTableName: true,
|
|
894
930
|
billingWebhookEventsTableId: true,
|
|
895
931
|
billingWebhookEventsTableName: true,
|
|
932
|
+
bindCheckoutSessionFunction: true,
|
|
896
933
|
clearScheduledChangeFunction: true,
|
|
897
934
|
databaseId: true,
|
|
898
935
|
finishBillingOperationFunction: true,
|
|
@@ -907,6 +944,7 @@ async function handleCreate(argv, prompter) {
|
|
|
907
944
|
getBillingSubscriptionFunction: true,
|
|
908
945
|
getFallbackFreePlanFunction: true,
|
|
909
946
|
getPlanPricingByExternalPriceFunction: true,
|
|
947
|
+
hasDueReconciliationsFunction: true,
|
|
910
948
|
id: true,
|
|
911
949
|
listDueReconciliationsFunction: true,
|
|
912
950
|
listPendingUsageSyncFunction: true,
|
|
@@ -931,6 +969,7 @@ async function handleCreate(argv, prompter) {
|
|
|
931
969
|
upsertBillingProductFunction: true,
|
|
932
970
|
upsertBillingSubscriptionFunction: true,
|
|
933
971
|
upsertInvoiceFunction: true,
|
|
972
|
+
usageSyncShardCount: true,
|
|
934
973
|
},
|
|
935
974
|
})
|
|
936
975
|
.execute();
|
|
@@ -1128,6 +1167,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
1128
1167
|
required: false,
|
|
1129
1168
|
skipPrompt: true,
|
|
1130
1169
|
},
|
|
1170
|
+
{
|
|
1171
|
+
type: 'text',
|
|
1172
|
+
name: 'bindCheckoutSessionFunction',
|
|
1173
|
+
message: 'bindCheckoutSessionFunction',
|
|
1174
|
+
required: false,
|
|
1175
|
+
skipPrompt: true,
|
|
1176
|
+
},
|
|
1131
1177
|
{
|
|
1132
1178
|
type: 'text',
|
|
1133
1179
|
name: 'clearScheduledChangeFunction',
|
|
@@ -1225,6 +1271,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
1225
1271
|
required: false,
|
|
1226
1272
|
skipPrompt: true,
|
|
1227
1273
|
},
|
|
1274
|
+
{
|
|
1275
|
+
type: 'text',
|
|
1276
|
+
name: 'hasDueReconciliationsFunction',
|
|
1277
|
+
message: 'hasDueReconciliationsFunction',
|
|
1278
|
+
required: false,
|
|
1279
|
+
skipPrompt: true,
|
|
1280
|
+
},
|
|
1228
1281
|
{
|
|
1229
1282
|
type: 'text',
|
|
1230
1283
|
name: 'listDueReconciliationsFunction',
|
|
@@ -1386,6 +1439,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
1386
1439
|
required: false,
|
|
1387
1440
|
skipPrompt: true,
|
|
1388
1441
|
},
|
|
1442
|
+
{
|
|
1443
|
+
type: 'text',
|
|
1444
|
+
name: 'usageSyncShardCount',
|
|
1445
|
+
message: 'usageSyncShardCount',
|
|
1446
|
+
required: false,
|
|
1447
|
+
skipPrompt: true,
|
|
1448
|
+
},
|
|
1389
1449
|
]);
|
|
1390
1450
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
1391
1451
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
@@ -1421,6 +1481,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1421
1481
|
billingSubscriptionsTableName: cleanedData.billingSubscriptionsTableName,
|
|
1422
1482
|
billingWebhookEventsTableId: cleanedData.billingWebhookEventsTableId,
|
|
1423
1483
|
billingWebhookEventsTableName: cleanedData.billingWebhookEventsTableName,
|
|
1484
|
+
bindCheckoutSessionFunction: cleanedData.bindCheckoutSessionFunction,
|
|
1424
1485
|
clearScheduledChangeFunction: cleanedData.clearScheduledChangeFunction,
|
|
1425
1486
|
databaseId: cleanedData.databaseId,
|
|
1426
1487
|
finishBillingOperationFunction: cleanedData.finishBillingOperationFunction,
|
|
@@ -1435,6 +1496,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1435
1496
|
getBillingSubscriptionFunction: cleanedData.getBillingSubscriptionFunction,
|
|
1436
1497
|
getFallbackFreePlanFunction: cleanedData.getFallbackFreePlanFunction,
|
|
1437
1498
|
getPlanPricingByExternalPriceFunction: cleanedData.getPlanPricingByExternalPriceFunction,
|
|
1499
|
+
hasDueReconciliationsFunction: cleanedData.hasDueReconciliationsFunction,
|
|
1438
1500
|
listDueReconciliationsFunction: cleanedData.listDueReconciliationsFunction,
|
|
1439
1501
|
listPendingUsageSyncFunction: cleanedData.listPendingUsageSyncFunction,
|
|
1440
1502
|
markUsageSyncedFunction: cleanedData.markUsageSyncedFunction,
|
|
@@ -1458,6 +1520,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1458
1520
|
upsertBillingProductFunction: cleanedData.upsertBillingProductFunction,
|
|
1459
1521
|
upsertBillingSubscriptionFunction: cleanedData.upsertBillingSubscriptionFunction,
|
|
1460
1522
|
upsertInvoiceFunction: cleanedData.upsertInvoiceFunction,
|
|
1523
|
+
usageSyncShardCount: cleanedData.usageSyncShardCount,
|
|
1461
1524
|
},
|
|
1462
1525
|
select: {
|
|
1463
1526
|
activatePlanSubscriptionFunction: true,
|
|
@@ -1485,6 +1548,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1485
1548
|
billingSubscriptionsTableName: true,
|
|
1486
1549
|
billingWebhookEventsTableId: true,
|
|
1487
1550
|
billingWebhookEventsTableName: true,
|
|
1551
|
+
bindCheckoutSessionFunction: true,
|
|
1488
1552
|
clearScheduledChangeFunction: true,
|
|
1489
1553
|
databaseId: true,
|
|
1490
1554
|
finishBillingOperationFunction: true,
|
|
@@ -1499,6 +1563,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1499
1563
|
getBillingSubscriptionFunction: true,
|
|
1500
1564
|
getFallbackFreePlanFunction: true,
|
|
1501
1565
|
getPlanPricingByExternalPriceFunction: true,
|
|
1566
|
+
hasDueReconciliationsFunction: true,
|
|
1502
1567
|
id: true,
|
|
1503
1568
|
listDueReconciliationsFunction: true,
|
|
1504
1569
|
listPendingUsageSyncFunction: true,
|
|
@@ -1523,6 +1588,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
1523
1588
|
upsertBillingProductFunction: true,
|
|
1524
1589
|
upsertBillingSubscriptionFunction: true,
|
|
1525
1590
|
upsertInvoiceFunction: true,
|
|
1591
|
+
usageSyncShardCount: true,
|
|
1526
1592
|
},
|
|
1527
1593
|
})
|
|
1528
1594
|
.execute();
|
|
@@ -22,12 +22,10 @@ const fieldSchema = {
|
|
|
22
22
|
name: 'string',
|
|
23
23
|
namespaces: 'json',
|
|
24
24
|
outAgentModuleId: 'uuid',
|
|
25
|
-
outBucketsTableId: 'uuid',
|
|
26
25
|
outDefinitionsTableId: 'uuid',
|
|
27
26
|
outEntityTableId: 'uuid',
|
|
28
27
|
outEntityTableName: 'string',
|
|
29
28
|
outExecutionLogsTableId: 'uuid',
|
|
30
|
-
outFilesTableId: 'uuid',
|
|
31
29
|
outFunctionModuleId: 'uuid',
|
|
32
30
|
outGraphModuleId: 'uuid',
|
|
33
31
|
outGraphsTableId: 'uuid',
|
|
@@ -38,8 +36,6 @@ const fieldSchema = {
|
|
|
38
36
|
outNamespaceEventsTableId: 'uuid',
|
|
39
37
|
outNamespaceModuleId: 'uuid',
|
|
40
38
|
outNamespacesTableId: 'uuid',
|
|
41
|
-
outPathSharesTableId: 'uuid',
|
|
42
|
-
outStorageModuleId: 'uuid',
|
|
43
39
|
parentEntity: 'string',
|
|
44
40
|
prefix: 'string',
|
|
45
41
|
skipEntityPolicies: 'boolean',
|
|
@@ -104,12 +100,10 @@ async function handleList(argv, _prompter) {
|
|
|
104
100
|
name: true,
|
|
105
101
|
namespaces: true,
|
|
106
102
|
outAgentModuleId: true,
|
|
107
|
-
outBucketsTableId: true,
|
|
108
103
|
outDefinitionsTableId: true,
|
|
109
104
|
outEntityTableId: true,
|
|
110
105
|
outEntityTableName: true,
|
|
111
106
|
outExecutionLogsTableId: true,
|
|
112
|
-
outFilesTableId: true,
|
|
113
107
|
outFunctionModuleId: true,
|
|
114
108
|
outGraphModuleId: true,
|
|
115
109
|
outGraphsTableId: true,
|
|
@@ -120,8 +114,6 @@ async function handleList(argv, _prompter) {
|
|
|
120
114
|
outNamespaceEventsTableId: true,
|
|
121
115
|
outNamespaceModuleId: true,
|
|
122
116
|
outNamespacesTableId: true,
|
|
123
|
-
outPathSharesTableId: true,
|
|
124
|
-
outStorageModuleId: true,
|
|
125
117
|
parentEntity: true,
|
|
126
118
|
prefix: true,
|
|
127
119
|
skipEntityPolicies: true,
|
|
@@ -160,12 +152,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
160
152
|
name: true,
|
|
161
153
|
namespaces: true,
|
|
162
154
|
outAgentModuleId: true,
|
|
163
|
-
outBucketsTableId: true,
|
|
164
155
|
outDefinitionsTableId: true,
|
|
165
156
|
outEntityTableId: true,
|
|
166
157
|
outEntityTableName: true,
|
|
167
158
|
outExecutionLogsTableId: true,
|
|
168
|
-
outFilesTableId: true,
|
|
169
159
|
outFunctionModuleId: true,
|
|
170
160
|
outGraphModuleId: true,
|
|
171
161
|
outGraphsTableId: true,
|
|
@@ -176,8 +166,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
176
166
|
outNamespaceEventsTableId: true,
|
|
177
167
|
outNamespaceModuleId: true,
|
|
178
168
|
outNamespacesTableId: true,
|
|
179
|
-
outPathSharesTableId: true,
|
|
180
|
-
outStorageModuleId: true,
|
|
181
169
|
parentEntity: true,
|
|
182
170
|
prefix: true,
|
|
183
171
|
skipEntityPolicies: true,
|
|
@@ -228,12 +216,10 @@ async function handleGet(argv, prompter) {
|
|
|
228
216
|
name: true,
|
|
229
217
|
namespaces: true,
|
|
230
218
|
outAgentModuleId: true,
|
|
231
|
-
outBucketsTableId: true,
|
|
232
219
|
outDefinitionsTableId: true,
|
|
233
220
|
outEntityTableId: true,
|
|
234
221
|
outEntityTableName: true,
|
|
235
222
|
outExecutionLogsTableId: true,
|
|
236
|
-
outFilesTableId: true,
|
|
237
223
|
outFunctionModuleId: true,
|
|
238
224
|
outGraphModuleId: true,
|
|
239
225
|
outGraphsTableId: true,
|
|
@@ -244,8 +230,6 @@ async function handleGet(argv, prompter) {
|
|
|
244
230
|
outNamespaceEventsTableId: true,
|
|
245
231
|
outNamespaceModuleId: true,
|
|
246
232
|
outNamespacesTableId: true,
|
|
247
|
-
outPathSharesTableId: true,
|
|
248
|
-
outStorageModuleId: true,
|
|
249
233
|
parentEntity: true,
|
|
250
234
|
prefix: true,
|
|
251
235
|
skipEntityPolicies: true,
|
|
@@ -364,13 +348,6 @@ async function handleCreate(argv, prompter) {
|
|
|
364
348
|
required: false,
|
|
365
349
|
skipPrompt: true,
|
|
366
350
|
},
|
|
367
|
-
{
|
|
368
|
-
type: 'text',
|
|
369
|
-
name: 'outBucketsTableId',
|
|
370
|
-
message: 'outBucketsTableId',
|
|
371
|
-
required: false,
|
|
372
|
-
skipPrompt: true,
|
|
373
|
-
},
|
|
374
351
|
{
|
|
375
352
|
type: 'text',
|
|
376
353
|
name: 'outDefinitionsTableId',
|
|
@@ -399,13 +376,6 @@ async function handleCreate(argv, prompter) {
|
|
|
399
376
|
required: false,
|
|
400
377
|
skipPrompt: true,
|
|
401
378
|
},
|
|
402
|
-
{
|
|
403
|
-
type: 'text',
|
|
404
|
-
name: 'outFilesTableId',
|
|
405
|
-
message: 'outFilesTableId',
|
|
406
|
-
required: false,
|
|
407
|
-
skipPrompt: true,
|
|
408
|
-
},
|
|
409
379
|
{
|
|
410
380
|
type: 'text',
|
|
411
381
|
name: 'outFunctionModuleId',
|
|
@@ -476,20 +446,6 @@ async function handleCreate(argv, prompter) {
|
|
|
476
446
|
required: false,
|
|
477
447
|
skipPrompt: true,
|
|
478
448
|
},
|
|
479
|
-
{
|
|
480
|
-
type: 'text',
|
|
481
|
-
name: 'outPathSharesTableId',
|
|
482
|
-
message: 'outPathSharesTableId',
|
|
483
|
-
required: false,
|
|
484
|
-
skipPrompt: true,
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
type: 'text',
|
|
488
|
-
name: 'outStorageModuleId',
|
|
489
|
-
message: 'outStorageModuleId',
|
|
490
|
-
required: false,
|
|
491
|
-
skipPrompt: true,
|
|
492
|
-
},
|
|
493
449
|
{
|
|
494
450
|
type: 'text',
|
|
495
451
|
name: 'parentEntity',
|
|
@@ -552,12 +508,10 @@ async function handleCreate(argv, prompter) {
|
|
|
552
508
|
name: cleanedData.name,
|
|
553
509
|
namespaces: cleanedData.namespaces,
|
|
554
510
|
outAgentModuleId: cleanedData.outAgentModuleId,
|
|
555
|
-
outBucketsTableId: cleanedData.outBucketsTableId,
|
|
556
511
|
outDefinitionsTableId: cleanedData.outDefinitionsTableId,
|
|
557
512
|
outEntityTableId: cleanedData.outEntityTableId,
|
|
558
513
|
outEntityTableName: cleanedData.outEntityTableName,
|
|
559
514
|
outExecutionLogsTableId: cleanedData.outExecutionLogsTableId,
|
|
560
|
-
outFilesTableId: cleanedData.outFilesTableId,
|
|
561
515
|
outFunctionModuleId: cleanedData.outFunctionModuleId,
|
|
562
516
|
outGraphModuleId: cleanedData.outGraphModuleId,
|
|
563
517
|
outGraphsTableId: cleanedData.outGraphsTableId,
|
|
@@ -568,8 +522,6 @@ async function handleCreate(argv, prompter) {
|
|
|
568
522
|
outNamespaceEventsTableId: cleanedData.outNamespaceEventsTableId,
|
|
569
523
|
outNamespaceModuleId: cleanedData.outNamespaceModuleId,
|
|
570
524
|
outNamespacesTableId: cleanedData.outNamespacesTableId,
|
|
571
|
-
outPathSharesTableId: cleanedData.outPathSharesTableId,
|
|
572
|
-
outStorageModuleId: cleanedData.outStorageModuleId,
|
|
573
525
|
parentEntity: cleanedData.parentEntity,
|
|
574
526
|
prefix: cleanedData.prefix,
|
|
575
527
|
skipEntityPolicies: cleanedData.skipEntityPolicies,
|
|
@@ -593,12 +545,10 @@ async function handleCreate(argv, prompter) {
|
|
|
593
545
|
name: true,
|
|
594
546
|
namespaces: true,
|
|
595
547
|
outAgentModuleId: true,
|
|
596
|
-
outBucketsTableId: true,
|
|
597
548
|
outDefinitionsTableId: true,
|
|
598
549
|
outEntityTableId: true,
|
|
599
550
|
outEntityTableName: true,
|
|
600
551
|
outExecutionLogsTableId: true,
|
|
601
|
-
outFilesTableId: true,
|
|
602
552
|
outFunctionModuleId: true,
|
|
603
553
|
outGraphModuleId: true,
|
|
604
554
|
outGraphsTableId: true,
|
|
@@ -609,8 +559,6 @@ async function handleCreate(argv, prompter) {
|
|
|
609
559
|
outNamespaceEventsTableId: true,
|
|
610
560
|
outNamespaceModuleId: true,
|
|
611
561
|
outNamespacesTableId: true,
|
|
612
|
-
outPathSharesTableId: true,
|
|
613
|
-
outStorageModuleId: true,
|
|
614
562
|
parentEntity: true,
|
|
615
563
|
prefix: true,
|
|
616
564
|
skipEntityPolicies: true,
|
|
@@ -735,13 +683,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
735
683
|
required: false,
|
|
736
684
|
skipPrompt: true,
|
|
737
685
|
},
|
|
738
|
-
{
|
|
739
|
-
type: 'text',
|
|
740
|
-
name: 'outBucketsTableId',
|
|
741
|
-
message: 'outBucketsTableId',
|
|
742
|
-
required: false,
|
|
743
|
-
skipPrompt: true,
|
|
744
|
-
},
|
|
745
686
|
{
|
|
746
687
|
type: 'text',
|
|
747
688
|
name: 'outDefinitionsTableId',
|
|
@@ -770,13 +711,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
770
711
|
required: false,
|
|
771
712
|
skipPrompt: true,
|
|
772
713
|
},
|
|
773
|
-
{
|
|
774
|
-
type: 'text',
|
|
775
|
-
name: 'outFilesTableId',
|
|
776
|
-
message: 'outFilesTableId',
|
|
777
|
-
required: false,
|
|
778
|
-
skipPrompt: true,
|
|
779
|
-
},
|
|
780
714
|
{
|
|
781
715
|
type: 'text',
|
|
782
716
|
name: 'outFunctionModuleId',
|
|
@@ -847,20 +781,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
847
781
|
required: false,
|
|
848
782
|
skipPrompt: true,
|
|
849
783
|
},
|
|
850
|
-
{
|
|
851
|
-
type: 'text',
|
|
852
|
-
name: 'outPathSharesTableId',
|
|
853
|
-
message: 'outPathSharesTableId',
|
|
854
|
-
required: false,
|
|
855
|
-
skipPrompt: true,
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
type: 'text',
|
|
859
|
-
name: 'outStorageModuleId',
|
|
860
|
-
message: 'outStorageModuleId',
|
|
861
|
-
required: false,
|
|
862
|
-
skipPrompt: true,
|
|
863
|
-
},
|
|
864
784
|
{
|
|
865
785
|
type: 'text',
|
|
866
786
|
name: 'parentEntity',
|
|
@@ -926,12 +846,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
926
846
|
name: cleanedData.name,
|
|
927
847
|
namespaces: cleanedData.namespaces,
|
|
928
848
|
outAgentModuleId: cleanedData.outAgentModuleId,
|
|
929
|
-
outBucketsTableId: cleanedData.outBucketsTableId,
|
|
930
849
|
outDefinitionsTableId: cleanedData.outDefinitionsTableId,
|
|
931
850
|
outEntityTableId: cleanedData.outEntityTableId,
|
|
932
851
|
outEntityTableName: cleanedData.outEntityTableName,
|
|
933
852
|
outExecutionLogsTableId: cleanedData.outExecutionLogsTableId,
|
|
934
|
-
outFilesTableId: cleanedData.outFilesTableId,
|
|
935
853
|
outFunctionModuleId: cleanedData.outFunctionModuleId,
|
|
936
854
|
outGraphModuleId: cleanedData.outGraphModuleId,
|
|
937
855
|
outGraphsTableId: cleanedData.outGraphsTableId,
|
|
@@ -942,8 +860,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
942
860
|
outNamespaceEventsTableId: cleanedData.outNamespaceEventsTableId,
|
|
943
861
|
outNamespaceModuleId: cleanedData.outNamespaceModuleId,
|
|
944
862
|
outNamespacesTableId: cleanedData.outNamespacesTableId,
|
|
945
|
-
outPathSharesTableId: cleanedData.outPathSharesTableId,
|
|
946
|
-
outStorageModuleId: cleanedData.outStorageModuleId,
|
|
947
863
|
parentEntity: cleanedData.parentEntity,
|
|
948
864
|
prefix: cleanedData.prefix,
|
|
949
865
|
skipEntityPolicies: cleanedData.skipEntityPolicies,
|
|
@@ -967,12 +883,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
967
883
|
name: true,
|
|
968
884
|
namespaces: true,
|
|
969
885
|
outAgentModuleId: true,
|
|
970
|
-
outBucketsTableId: true,
|
|
971
886
|
outDefinitionsTableId: true,
|
|
972
887
|
outEntityTableId: true,
|
|
973
888
|
outEntityTableName: true,
|
|
974
889
|
outExecutionLogsTableId: true,
|
|
975
|
-
outFilesTableId: true,
|
|
976
890
|
outFunctionModuleId: true,
|
|
977
891
|
outGraphModuleId: true,
|
|
978
892
|
outGraphsTableId: true,
|
|
@@ -983,8 +897,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
983
897
|
outNamespaceEventsTableId: true,
|
|
984
898
|
outNamespaceModuleId: true,
|
|
985
899
|
outNamespacesTableId: true,
|
|
986
|
-
outPathSharesTableId: true,
|
|
987
|
-
outStorageModuleId: true,
|
|
988
900
|
parentEntity: true,
|
|
989
901
|
prefix: true,
|
|
990
902
|
skipEntityPolicies: true,
|
|
@@ -18,7 +18,6 @@ const fieldSchema = {
|
|
|
18
18
|
planLimitsTableId: 'uuid',
|
|
19
19
|
planLimitsTableName: 'string',
|
|
20
20
|
planMeterLimitsTableId: 'uuid',
|
|
21
|
-
planOverridesTableId: 'uuid',
|
|
22
21
|
planPricingTableId: 'uuid',
|
|
23
22
|
plansTableId: 'uuid',
|
|
24
23
|
plansTableName: 'string',
|
|
@@ -82,7 +81,6 @@ async function handleList(argv, _prompter) {
|
|
|
82
81
|
planLimitsTableId: true,
|
|
83
82
|
planLimitsTableName: true,
|
|
84
83
|
planMeterLimitsTableId: true,
|
|
85
|
-
planOverridesTableId: true,
|
|
86
84
|
planPricingTableId: true,
|
|
87
85
|
plansTableId: true,
|
|
88
86
|
plansTableName: true,
|
|
@@ -120,7 +118,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
120
118
|
planLimitsTableId: true,
|
|
121
119
|
planLimitsTableName: true,
|
|
122
120
|
planMeterLimitsTableId: true,
|
|
123
|
-
planOverridesTableId: true,
|
|
124
121
|
planPricingTableId: true,
|
|
125
122
|
plansTableId: true,
|
|
126
123
|
plansTableName: true,
|
|
@@ -170,7 +167,6 @@ async function handleGet(argv, prompter) {
|
|
|
170
167
|
planLimitsTableId: true,
|
|
171
168
|
planLimitsTableName: true,
|
|
172
169
|
planMeterLimitsTableId: true,
|
|
173
|
-
planOverridesTableId: true,
|
|
174
170
|
planPricingTableId: true,
|
|
175
171
|
plansTableId: true,
|
|
176
172
|
plansTableName: true,
|
|
@@ -265,13 +261,6 @@ async function handleCreate(argv, prompter) {
|
|
|
265
261
|
required: false,
|
|
266
262
|
skipPrompt: true,
|
|
267
263
|
},
|
|
268
|
-
{
|
|
269
|
-
type: 'text',
|
|
270
|
-
name: 'planOverridesTableId',
|
|
271
|
-
message: 'planOverridesTableId',
|
|
272
|
-
required: false,
|
|
273
|
-
skipPrompt: true,
|
|
274
|
-
},
|
|
275
264
|
{
|
|
276
265
|
type: 'text',
|
|
277
266
|
name: 'planPricingTableId',
|
|
@@ -352,7 +341,6 @@ async function handleCreate(argv, prompter) {
|
|
|
352
341
|
planLimitsTableId: cleanedData.planLimitsTableId,
|
|
353
342
|
planLimitsTableName: cleanedData.planLimitsTableName,
|
|
354
343
|
planMeterLimitsTableId: cleanedData.planMeterLimitsTableId,
|
|
355
|
-
planOverridesTableId: cleanedData.planOverridesTableId,
|
|
356
344
|
planPricingTableId: cleanedData.planPricingTableId,
|
|
357
345
|
plansTableId: cleanedData.plansTableId,
|
|
358
346
|
plansTableName: cleanedData.plansTableName,
|
|
@@ -375,7 +363,6 @@ async function handleCreate(argv, prompter) {
|
|
|
375
363
|
planLimitsTableId: true,
|
|
376
364
|
planLimitsTableName: true,
|
|
377
365
|
planMeterLimitsTableId: true,
|
|
378
|
-
planOverridesTableId: true,
|
|
379
366
|
planPricingTableId: true,
|
|
380
367
|
plansTableId: true,
|
|
381
368
|
plansTableName: true,
|
|
@@ -476,13 +463,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
476
463
|
required: false,
|
|
477
464
|
skipPrompt: true,
|
|
478
465
|
},
|
|
479
|
-
{
|
|
480
|
-
type: 'text',
|
|
481
|
-
name: 'planOverridesTableId',
|
|
482
|
-
message: 'planOverridesTableId',
|
|
483
|
-
required: false,
|
|
484
|
-
skipPrompt: true,
|
|
485
|
-
},
|
|
486
466
|
{
|
|
487
467
|
type: 'text',
|
|
488
468
|
name: 'planPricingTableId',
|
|
@@ -566,7 +546,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
566
546
|
planLimitsTableId: cleanedData.planLimitsTableId,
|
|
567
547
|
planLimitsTableName: cleanedData.planLimitsTableName,
|
|
568
548
|
planMeterLimitsTableId: cleanedData.planMeterLimitsTableId,
|
|
569
|
-
planOverridesTableId: cleanedData.planOverridesTableId,
|
|
570
549
|
planPricingTableId: cleanedData.planPricingTableId,
|
|
571
550
|
plansTableId: cleanedData.plansTableId,
|
|
572
551
|
plansTableName: cleanedData.plansTableName,
|
|
@@ -589,7 +568,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
589
568
|
planLimitsTableId: true,
|
|
590
569
|
planLimitsTableName: true,
|
|
591
570
|
planMeterLimitsTableId: true,
|
|
592
|
-
planOverridesTableId: true,
|
|
593
571
|
planPricingTableId: true,
|
|
594
572
|
plansTableId: true,
|
|
595
573
|
plansTableName: true,
|