@constructive-sdk/cli 0.22.3 → 0.22.4
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/{app-achievement.d.ts → app-limit-warning.d.ts} +1 -1
- package/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
- package/{esm/admin/cli/commands/app-achievement.d.ts → admin/cli/commands/org-limit-warning.d.ts} +1 -1
- package/admin/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
- package/admin/cli/commands.js +7 -15
- package/admin/cli/executor.d.ts +3 -15
- package/admin/orm/index.d.ts +6 -20
- package/admin/orm/index.js +6 -10
- package/admin/orm/input-types.d.ts +488 -768
- package/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
- package/admin/orm/models/index.d.ts +3 -5
- package/admin/orm/models/index.js +7 -11
- package/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
- package/admin/orm/query/index.d.ts +1 -28
- package/admin/orm/query/index.js +0 -44
- package/{admin/cli/commands/app-step.d.ts → esm/admin/cli/commands/app-limit-warning.d.ts} +1 -1
- package/esm/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
- package/esm/admin/cli/commands/org-limit-warning.d.ts +8 -0
- package/esm/{public/cli/commands/app-level.js → admin/cli/commands/org-limit-warning.js} +66 -62
- package/esm/admin/cli/commands.js +7 -15
- package/esm/admin/cli/executor.d.ts +3 -15
- package/esm/admin/orm/index.d.ts +6 -20
- package/esm/admin/orm/index.js +6 -10
- package/esm/admin/orm/input-types.d.ts +488 -768
- package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/{public/orm/models/appAchievement.js → admin/orm/models/appLimitWarning.js} +25 -25
- package/esm/admin/orm/models/index.d.ts +3 -5
- package/esm/admin/orm/models/index.js +3 -5
- package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
- package/esm/admin/orm/query/index.d.ts +1 -28
- package/esm/admin/orm/query/index.js +0 -44
- package/esm/public/cli/commands/app-limit-warning.d.ts +8 -0
- package/esm/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/create-user-database.js +1 -1
- package/esm/public/cli/commands/embedding-chunk.js +66 -0
- package/esm/public/cli/commands/entity-type-provision.js +22 -0
- package/esm/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
- package/esm/public/cli/commands/{levels-module.js → events-module.js} +438 -152
- package/esm/public/cli/commands/limits-module.js +88 -0
- package/esm/public/cli/commands/org-limit-warning.d.ts +8 -0
- package/esm/{admin/cli/commands/app-level.js → public/cli/commands/org-limit-warning.js} +66 -62
- package/esm/public/cli/commands/partition.js +24 -24
- package/{admin/cli/commands/app-level-requirement.d.ts → esm/public/cli/commands/rate-limit-meters-module.d.ts} +1 -1
- package/esm/public/cli/commands/rate-limit-meters-module.js +448 -0
- package/esm/public/cli/commands/realtime-module.js +24 -24
- package/esm/public/cli/commands/user-state-module.d.ts +8 -0
- package/esm/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
- package/esm/public/cli/commands.js +11 -17
- package/esm/public/cli/executor.d.ts +5 -16
- package/esm/public/orm/index.d.ts +10 -22
- package/esm/public/orm/index.js +10 -12
- package/esm/public/orm/input-types.d.ts +1024 -919
- package/esm/public/orm/input-types.js +3 -5
- package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/{admin/orm/models/appLevel.js → public/orm/models/appLimitWarning.js} +25 -25
- package/esm/public/orm/models/eventsModule.d.ts +54 -0
- package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
- package/esm/public/orm/models/index.d.ts +5 -6
- package/esm/public/orm/models/index.js +5 -6
- package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
- package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
- package/esm/public/orm/models/userStateModule.d.ts +54 -0
- package/esm/public/orm/models/userStateModule.js +100 -0
- package/esm/public/orm/mutation/index.d.ts +2 -2
- package/esm/public/orm/query/index.d.ts +1 -28
- package/esm/public/orm/query/index.js +0 -44
- package/package.json +4 -4
- package/public/cli/commands/app-limit-warning.d.ts +8 -0
- package/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/create-user-database.js +1 -1
- package/public/cli/commands/embedding-chunk.js +66 -0
- package/public/cli/commands/entity-type-provision.js +22 -0
- package/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
- package/public/cli/commands/{levels-module.js → events-module.js} +438 -152
- package/public/cli/commands/limits-module.js +88 -0
- package/public/cli/commands/org-limit-warning.d.ts +8 -0
- package/public/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
- package/public/cli/commands/partition.js +24 -24
- package/public/cli/commands/rate-limit-meters-module.d.ts +8 -0
- package/public/cli/commands/rate-limit-meters-module.js +450 -0
- package/public/cli/commands/realtime-module.js +24 -24
- package/public/cli/commands/user-state-module.d.ts +8 -0
- package/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
- package/public/cli/commands.js +11 -17
- package/public/cli/executor.d.ts +5 -16
- package/public/orm/index.d.ts +10 -22
- package/public/orm/index.js +10 -12
- package/public/orm/input-types.d.ts +1024 -919
- package/public/orm/input-types.js +3 -5
- package/public/orm/models/appLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
- package/public/orm/models/eventsModule.d.ts +54 -0
- package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
- package/public/orm/models/index.d.ts +5 -6
- package/public/orm/models/index.js +13 -15
- package/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
- package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/public/orm/models/{appAchievement.js → rateLimitMetersModule.js} +27 -27
- package/public/orm/models/userStateModule.d.ts +54 -0
- package/public/orm/models/userStateModule.js +104 -0
- package/public/orm/mutation/index.d.ts +2 -2
- package/public/orm/query/index.d.ts +1 -28
- package/public/orm/query/index.js +0 -44
- package/admin/cli/commands/app-achievement.js +0 -286
- package/admin/cli/commands/app-level-requirement.js +0 -328
- package/admin/cli/commands/steps-achieved.d.ts +0 -8
- package/admin/cli/commands/steps-achieved.js +0 -35
- package/admin/cli/commands/steps-required.d.ts +0 -8
- package/admin/cli/commands/steps-required.js +0 -54
- package/admin/orm/models/appAchievement.d.ts +0 -54
- package/admin/orm/models/appLevel.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.js +0 -104
- package/admin/orm/models/appStep.d.ts +0 -54
- package/esm/admin/cli/commands/app-achievement.js +0 -284
- package/esm/admin/cli/commands/app-level-requirement.d.ts +0 -8
- package/esm/admin/cli/commands/app-level-requirement.js +0 -326
- package/esm/admin/cli/commands/app-step.d.ts +0 -8
- package/esm/admin/cli/commands/steps-achieved.d.ts +0 -8
- package/esm/admin/cli/commands/steps-achieved.js +0 -33
- package/esm/admin/cli/commands/steps-required.d.ts +0 -8
- package/esm/admin/cli/commands/steps-required.js +0 -52
- package/esm/admin/orm/models/appAchievement.d.ts +0 -54
- package/esm/admin/orm/models/appLevel.d.ts +0 -54
- package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/admin/orm/models/appStep.d.ts +0 -54
- package/esm/public/cli/commands/app-achievement.d.ts +0 -8
- package/esm/public/cli/commands/app-achievement.js +0 -284
- package/esm/public/cli/commands/app-level-requirement.d.ts +0 -8
- package/esm/public/cli/commands/app-level-requirement.js +0 -326
- package/esm/public/cli/commands/app-level.d.ts +0 -8
- package/esm/public/cli/commands/app-step.d.ts +0 -8
- package/esm/public/cli/commands/levels-module.d.ts +0 -8
- package/esm/public/cli/commands/secrets-module.d.ts +0 -8
- package/esm/public/cli/commands/steps-achieved.d.ts +0 -8
- package/esm/public/cli/commands/steps-achieved.js +0 -33
- package/esm/public/cli/commands/steps-required.d.ts +0 -8
- package/esm/public/cli/commands/steps-required.js +0 -52
- package/esm/public/orm/models/appAchievement.d.ts +0 -54
- package/esm/public/orm/models/appLevel.d.ts +0 -54
- package/esm/public/orm/models/appLevel.js +0 -100
- package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/public/orm/models/appLevelRequirement.js +0 -100
- package/esm/public/orm/models/appStep.d.ts +0 -54
- package/esm/public/orm/models/appStep.js +0 -100
- package/esm/public/orm/models/levelsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.js +0 -100
- package/public/cli/commands/app-achievement.d.ts +0 -8
- package/public/cli/commands/app-achievement.js +0 -286
- package/public/cli/commands/app-level-requirement.d.ts +0 -8
- package/public/cli/commands/app-level-requirement.js +0 -328
- package/public/cli/commands/app-level.d.ts +0 -8
- package/public/cli/commands/app-step.d.ts +0 -8
- package/public/cli/commands/levels-module.d.ts +0 -8
- package/public/cli/commands/secrets-module.d.ts +0 -8
- package/public/cli/commands/steps-achieved.d.ts +0 -8
- package/public/cli/commands/steps-achieved.js +0 -35
- package/public/cli/commands/steps-required.d.ts +0 -8
- package/public/cli/commands/steps-required.js +0 -54
- package/public/orm/models/appAchievement.d.ts +0 -54
- package/public/orm/models/appLevel.d.ts +0 -54
- package/public/orm/models/appLevel.js +0 -104
- package/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/public/orm/models/appLevelRequirement.js +0 -104
- package/public/orm/models/appStep.d.ts +0 -54
- package/public/orm/models/appStep.js +0 -104
- package/public/orm/models/levelsModule.d.ts +0 -54
- package/public/orm/models/secretsModule.d.ts +0 -54
|
@@ -33,6 +33,10 @@ const fieldSchema = {
|
|
|
33
33
|
limitCapsDefaultsTableId: 'uuid',
|
|
34
34
|
capCheckTrigger: 'string',
|
|
35
35
|
resolveCapFunction: 'string',
|
|
36
|
+
limitWarningsTableId: 'uuid',
|
|
37
|
+
limitWarningStateTableId: 'uuid',
|
|
38
|
+
limitCheckSoftFunction: 'string',
|
|
39
|
+
limitAggregateCheckSoftFunction: 'string',
|
|
36
40
|
prefix: 'string',
|
|
37
41
|
membershipType: 'int',
|
|
38
42
|
entityTableId: 'uuid',
|
|
@@ -104,6 +108,10 @@ async function handleList(argv, _prompter) {
|
|
|
104
108
|
limitCapsDefaultsTableId: true,
|
|
105
109
|
capCheckTrigger: true,
|
|
106
110
|
resolveCapFunction: true,
|
|
111
|
+
limitWarningsTableId: true,
|
|
112
|
+
limitWarningStateTableId: true,
|
|
113
|
+
limitCheckSoftFunction: true,
|
|
114
|
+
limitAggregateCheckSoftFunction: true,
|
|
107
115
|
prefix: true,
|
|
108
116
|
membershipType: true,
|
|
109
117
|
entityTableId: true,
|
|
@@ -149,6 +157,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
149
157
|
limitCapsDefaultsTableId: true,
|
|
150
158
|
capCheckTrigger: true,
|
|
151
159
|
resolveCapFunction: true,
|
|
160
|
+
limitWarningsTableId: true,
|
|
161
|
+
limitWarningStateTableId: true,
|
|
162
|
+
limitCheckSoftFunction: true,
|
|
163
|
+
limitAggregateCheckSoftFunction: true,
|
|
152
164
|
prefix: true,
|
|
153
165
|
membershipType: true,
|
|
154
166
|
entityTableId: true,
|
|
@@ -206,6 +218,10 @@ async function handleGet(argv, prompter) {
|
|
|
206
218
|
limitCapsDefaultsTableId: true,
|
|
207
219
|
capCheckTrigger: true,
|
|
208
220
|
resolveCapFunction: true,
|
|
221
|
+
limitWarningsTableId: true,
|
|
222
|
+
limitWarningStateTableId: true,
|
|
223
|
+
limitCheckSoftFunction: true,
|
|
224
|
+
limitAggregateCheckSoftFunction: true,
|
|
209
225
|
prefix: true,
|
|
210
226
|
membershipType: true,
|
|
211
227
|
entityTableId: true,
|
|
@@ -386,6 +402,34 @@ async function handleCreate(argv, prompter) {
|
|
|
386
402
|
required: false,
|
|
387
403
|
skipPrompt: true,
|
|
388
404
|
},
|
|
405
|
+
{
|
|
406
|
+
type: 'text',
|
|
407
|
+
name: 'limitWarningsTableId',
|
|
408
|
+
message: 'limitWarningsTableId',
|
|
409
|
+
required: false,
|
|
410
|
+
skipPrompt: true,
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
type: 'text',
|
|
414
|
+
name: 'limitWarningStateTableId',
|
|
415
|
+
message: 'limitWarningStateTableId',
|
|
416
|
+
required: false,
|
|
417
|
+
skipPrompt: true,
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
type: 'text',
|
|
421
|
+
name: 'limitCheckSoftFunction',
|
|
422
|
+
message: 'limitCheckSoftFunction',
|
|
423
|
+
required: false,
|
|
424
|
+
skipPrompt: true,
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
type: 'text',
|
|
428
|
+
name: 'limitAggregateCheckSoftFunction',
|
|
429
|
+
message: 'limitAggregateCheckSoftFunction',
|
|
430
|
+
required: false,
|
|
431
|
+
skipPrompt: true,
|
|
432
|
+
},
|
|
389
433
|
{
|
|
390
434
|
type: 'text',
|
|
391
435
|
name: 'prefix',
|
|
@@ -443,6 +487,10 @@ async function handleCreate(argv, prompter) {
|
|
|
443
487
|
limitCapsDefaultsTableId: cleanedData.limitCapsDefaultsTableId,
|
|
444
488
|
capCheckTrigger: cleanedData.capCheckTrigger,
|
|
445
489
|
resolveCapFunction: cleanedData.resolveCapFunction,
|
|
490
|
+
limitWarningsTableId: cleanedData.limitWarningsTableId,
|
|
491
|
+
limitWarningStateTableId: cleanedData.limitWarningStateTableId,
|
|
492
|
+
limitCheckSoftFunction: cleanedData.limitCheckSoftFunction,
|
|
493
|
+
limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction,
|
|
446
494
|
prefix: cleanedData.prefix,
|
|
447
495
|
membershipType: cleanedData.membershipType,
|
|
448
496
|
entityTableId: cleanedData.entityTableId,
|
|
@@ -473,6 +521,10 @@ async function handleCreate(argv, prompter) {
|
|
|
473
521
|
limitCapsDefaultsTableId: true,
|
|
474
522
|
capCheckTrigger: true,
|
|
475
523
|
resolveCapFunction: true,
|
|
524
|
+
limitWarningsTableId: true,
|
|
525
|
+
limitWarningStateTableId: true,
|
|
526
|
+
limitCheckSoftFunction: true,
|
|
527
|
+
limitAggregateCheckSoftFunction: true,
|
|
476
528
|
prefix: true,
|
|
477
529
|
membershipType: true,
|
|
478
530
|
entityTableId: true,
|
|
@@ -659,6 +711,34 @@ async function handleUpdate(argv, prompter) {
|
|
|
659
711
|
required: false,
|
|
660
712
|
skipPrompt: true,
|
|
661
713
|
},
|
|
714
|
+
{
|
|
715
|
+
type: 'text',
|
|
716
|
+
name: 'limitWarningsTableId',
|
|
717
|
+
message: 'limitWarningsTableId',
|
|
718
|
+
required: false,
|
|
719
|
+
skipPrompt: true,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
type: 'text',
|
|
723
|
+
name: 'limitWarningStateTableId',
|
|
724
|
+
message: 'limitWarningStateTableId',
|
|
725
|
+
required: false,
|
|
726
|
+
skipPrompt: true,
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
type: 'text',
|
|
730
|
+
name: 'limitCheckSoftFunction',
|
|
731
|
+
message: 'limitCheckSoftFunction',
|
|
732
|
+
required: false,
|
|
733
|
+
skipPrompt: true,
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
type: 'text',
|
|
737
|
+
name: 'limitAggregateCheckSoftFunction',
|
|
738
|
+
message: 'limitAggregateCheckSoftFunction',
|
|
739
|
+
required: false,
|
|
740
|
+
skipPrompt: true,
|
|
741
|
+
},
|
|
662
742
|
{
|
|
663
743
|
type: 'text',
|
|
664
744
|
name: 'prefix',
|
|
@@ -719,6 +799,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
719
799
|
limitCapsDefaultsTableId: cleanedData.limitCapsDefaultsTableId,
|
|
720
800
|
capCheckTrigger: cleanedData.capCheckTrigger,
|
|
721
801
|
resolveCapFunction: cleanedData.resolveCapFunction,
|
|
802
|
+
limitWarningsTableId: cleanedData.limitWarningsTableId,
|
|
803
|
+
limitWarningStateTableId: cleanedData.limitWarningStateTableId,
|
|
804
|
+
limitCheckSoftFunction: cleanedData.limitCheckSoftFunction,
|
|
805
|
+
limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction,
|
|
722
806
|
prefix: cleanedData.prefix,
|
|
723
807
|
membershipType: cleanedData.membershipType,
|
|
724
808
|
entityTableId: cleanedData.entityTableId,
|
|
@@ -749,6 +833,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
749
833
|
limitCapsDefaultsTableId: true,
|
|
750
834
|
capCheckTrigger: true,
|
|
751
835
|
resolveCapFunction: true,
|
|
836
|
+
limitWarningsTableId: true,
|
|
837
|
+
limitWarningStateTableId: true,
|
|
838
|
+
limitCheckSoftFunction: true,
|
|
839
|
+
limitAggregateCheckSoftFunction: true,
|
|
752
840
|
prefix: true,
|
|
753
841
|
membershipType: true,
|
|
754
842
|
entityTableId: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for OrgLimitWarning
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* CLI commands for
|
|
4
|
+
* CLI commands for OrgLimitWarning
|
|
5
5
|
* @generated by @constructive-io/graphql-codegen
|
|
6
6
|
* DO NOT EDIT - changes will be overwritten
|
|
7
7
|
*/
|
|
@@ -11,13 +11,12 @@ const utils_1 = require("../utils");
|
|
|
11
11
|
const fieldSchema = {
|
|
12
12
|
id: 'uuid',
|
|
13
13
|
name: 'string',
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
updatedAt: 'string',
|
|
14
|
+
warningType: 'string',
|
|
15
|
+
thresholdValue: 'int',
|
|
16
|
+
taskIdentifier: 'string',
|
|
17
|
+
entityId: 'uuid',
|
|
19
18
|
};
|
|
20
|
-
const usage = '\
|
|
19
|
+
const usage = '\norg-limit-warning <command>\n\nCommands:\n list List orgLimitWarning records\n find-first Find first matching orgLimitWarning record\n get Get a orgLimitWarning by ID\n create Create a new orgLimitWarning\n update Update an existing orgLimitWarning\n delete Delete a orgLimitWarning\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';
|
|
21
20
|
exports.default = async (argv, prompter, _options) => {
|
|
22
21
|
if (argv.help || argv.h) {
|
|
23
22
|
console.log(usage);
|
|
@@ -61,15 +60,14 @@ async function handleList(argv, _prompter) {
|
|
|
61
60
|
const defaultSelect = {
|
|
62
61
|
id: true,
|
|
63
62
|
name: true,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
updatedAt: true,
|
|
63
|
+
warningType: true,
|
|
64
|
+
thresholdValue: true,
|
|
65
|
+
taskIdentifier: true,
|
|
66
|
+
entityId: true,
|
|
69
67
|
};
|
|
70
68
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
71
69
|
const client = (0, executor_1.getClient)();
|
|
72
|
-
const result = await client.
|
|
70
|
+
const result = await client.orgLimitWarning.findMany(findManyArgs).execute();
|
|
73
71
|
console.log(JSON.stringify(result, null, 2));
|
|
74
72
|
}
|
|
75
73
|
catch (error) {
|
|
@@ -85,15 +83,14 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
85
83
|
const defaultSelect = {
|
|
86
84
|
id: true,
|
|
87
85
|
name: true,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
updatedAt: true,
|
|
86
|
+
warningType: true,
|
|
87
|
+
thresholdValue: true,
|
|
88
|
+
taskIdentifier: true,
|
|
89
|
+
entityId: true,
|
|
93
90
|
};
|
|
94
91
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
95
92
|
const client = (0, executor_1.getClient)();
|
|
96
|
-
const result = await client.
|
|
93
|
+
const result = await client.orgLimitWarning.findFirst(findFirstArgs).execute();
|
|
97
94
|
console.log(JSON.stringify(result, null, 2));
|
|
98
95
|
}
|
|
99
96
|
catch (error) {
|
|
@@ -115,17 +112,16 @@ async function handleGet(argv, prompter) {
|
|
|
115
112
|
},
|
|
116
113
|
]);
|
|
117
114
|
const client = (0, executor_1.getClient)();
|
|
118
|
-
const result = await client.
|
|
115
|
+
const result = await client.orgLimitWarning
|
|
119
116
|
.findOne({
|
|
120
117
|
id: answers.id,
|
|
121
118
|
select: {
|
|
122
119
|
id: true,
|
|
123
120
|
name: true,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
updatedAt: true,
|
|
121
|
+
warningType: true,
|
|
122
|
+
thresholdValue: true,
|
|
123
|
+
taskIdentifier: true,
|
|
124
|
+
entityId: true,
|
|
129
125
|
},
|
|
130
126
|
})
|
|
131
127
|
.execute();
|
|
@@ -150,22 +146,26 @@ async function handleCreate(argv, prompter) {
|
|
|
150
146
|
},
|
|
151
147
|
{
|
|
152
148
|
type: 'text',
|
|
153
|
-
name: '
|
|
154
|
-
message: '
|
|
155
|
-
required:
|
|
156
|
-
skipPrompt: true,
|
|
149
|
+
name: 'warningType',
|
|
150
|
+
message: 'warningType',
|
|
151
|
+
required: true,
|
|
157
152
|
},
|
|
158
153
|
{
|
|
159
154
|
type: 'text',
|
|
160
|
-
name: '
|
|
161
|
-
message: '
|
|
162
|
-
required:
|
|
163
|
-
|
|
155
|
+
name: 'thresholdValue',
|
|
156
|
+
message: 'thresholdValue',
|
|
157
|
+
required: true,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'text',
|
|
161
|
+
name: 'taskIdentifier',
|
|
162
|
+
message: 'taskIdentifier',
|
|
163
|
+
required: true,
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
type: 'text',
|
|
167
|
-
name: '
|
|
168
|
-
message: '
|
|
167
|
+
name: 'entityId',
|
|
168
|
+
message: 'entityId',
|
|
169
169
|
required: false,
|
|
170
170
|
skipPrompt: true,
|
|
171
171
|
},
|
|
@@ -173,22 +173,22 @@ async function handleCreate(argv, prompter) {
|
|
|
173
173
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
174
174
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
175
175
|
const client = (0, executor_1.getClient)();
|
|
176
|
-
const result = await client.
|
|
176
|
+
const result = await client.orgLimitWarning
|
|
177
177
|
.create({
|
|
178
178
|
data: {
|
|
179
179
|
name: cleanedData.name,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
warningType: cleanedData.warningType,
|
|
181
|
+
thresholdValue: cleanedData.thresholdValue,
|
|
182
|
+
taskIdentifier: cleanedData.taskIdentifier,
|
|
183
|
+
entityId: cleanedData.entityId,
|
|
183
184
|
},
|
|
184
185
|
select: {
|
|
185
186
|
id: true,
|
|
186
187
|
name: true,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
updatedAt: true,
|
|
188
|
+
warningType: true,
|
|
189
|
+
thresholdValue: true,
|
|
190
|
+
taskIdentifier: true,
|
|
191
|
+
entityId: true,
|
|
192
192
|
},
|
|
193
193
|
})
|
|
194
194
|
.execute();
|
|
@@ -219,22 +219,26 @@ async function handleUpdate(argv, prompter) {
|
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
type: 'text',
|
|
222
|
-
name: '
|
|
223
|
-
message: '
|
|
222
|
+
name: 'warningType',
|
|
223
|
+
message: 'warningType',
|
|
224
224
|
required: false,
|
|
225
|
-
skipPrompt: true,
|
|
226
225
|
},
|
|
227
226
|
{
|
|
228
227
|
type: 'text',
|
|
229
|
-
name: '
|
|
230
|
-
message: '
|
|
228
|
+
name: 'thresholdValue',
|
|
229
|
+
message: 'thresholdValue',
|
|
230
|
+
required: false,
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: 'text',
|
|
234
|
+
name: 'taskIdentifier',
|
|
235
|
+
message: 'taskIdentifier',
|
|
231
236
|
required: false,
|
|
232
|
-
skipPrompt: true,
|
|
233
237
|
},
|
|
234
238
|
{
|
|
235
239
|
type: 'text',
|
|
236
|
-
name: '
|
|
237
|
-
message: '
|
|
240
|
+
name: 'entityId',
|
|
241
|
+
message: 'entityId',
|
|
238
242
|
required: false,
|
|
239
243
|
skipPrompt: true,
|
|
240
244
|
},
|
|
@@ -242,25 +246,25 @@ async function handleUpdate(argv, prompter) {
|
|
|
242
246
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
243
247
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
244
248
|
const client = (0, executor_1.getClient)();
|
|
245
|
-
const result = await client.
|
|
249
|
+
const result = await client.orgLimitWarning
|
|
246
250
|
.update({
|
|
247
251
|
where: {
|
|
248
252
|
id: answers.id,
|
|
249
253
|
},
|
|
250
254
|
data: {
|
|
251
255
|
name: cleanedData.name,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
warningType: cleanedData.warningType,
|
|
257
|
+
thresholdValue: cleanedData.thresholdValue,
|
|
258
|
+
taskIdentifier: cleanedData.taskIdentifier,
|
|
259
|
+
entityId: cleanedData.entityId,
|
|
255
260
|
},
|
|
256
261
|
select: {
|
|
257
262
|
id: true,
|
|
258
263
|
name: true,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
updatedAt: true,
|
|
264
|
+
warningType: true,
|
|
265
|
+
thresholdValue: true,
|
|
266
|
+
taskIdentifier: true,
|
|
267
|
+
entityId: true,
|
|
264
268
|
},
|
|
265
269
|
})
|
|
266
270
|
.execute();
|
|
@@ -286,7 +290,7 @@ async function handleDelete(argv, prompter) {
|
|
|
286
290
|
]);
|
|
287
291
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
288
292
|
const client = (0, executor_1.getClient)();
|
|
289
|
-
const result = await client.
|
|
293
|
+
const result = await client.orgLimitWarning
|
|
290
294
|
.delete({
|
|
291
295
|
where: {
|
|
292
296
|
id: answers.id,
|
|
@@ -13,10 +13,10 @@ const fieldSchema = {
|
|
|
13
13
|
databaseId: 'uuid',
|
|
14
14
|
tableId: 'uuid',
|
|
15
15
|
strategy: 'string',
|
|
16
|
-
|
|
16
|
+
partitionKeyId: 'uuid',
|
|
17
17
|
interval: 'string',
|
|
18
18
|
retention: 'string',
|
|
19
|
-
|
|
19
|
+
premake: 'int',
|
|
20
20
|
namingPattern: 'string',
|
|
21
21
|
createdAt: 'string',
|
|
22
22
|
updatedAt: 'string',
|
|
@@ -67,10 +67,10 @@ async function handleList(argv, _prompter) {
|
|
|
67
67
|
databaseId: true,
|
|
68
68
|
tableId: true,
|
|
69
69
|
strategy: true,
|
|
70
|
-
|
|
70
|
+
partitionKeyId: true,
|
|
71
71
|
interval: true,
|
|
72
72
|
retention: true,
|
|
73
|
-
|
|
73
|
+
premake: true,
|
|
74
74
|
namingPattern: true,
|
|
75
75
|
createdAt: true,
|
|
76
76
|
updatedAt: true,
|
|
@@ -95,10 +95,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
95
95
|
databaseId: true,
|
|
96
96
|
tableId: true,
|
|
97
97
|
strategy: true,
|
|
98
|
-
|
|
98
|
+
partitionKeyId: true,
|
|
99
99
|
interval: true,
|
|
100
100
|
retention: true,
|
|
101
|
-
|
|
101
|
+
premake: true,
|
|
102
102
|
namingPattern: true,
|
|
103
103
|
createdAt: true,
|
|
104
104
|
updatedAt: true,
|
|
@@ -135,10 +135,10 @@ async function handleGet(argv, prompter) {
|
|
|
135
135
|
databaseId: true,
|
|
136
136
|
tableId: true,
|
|
137
137
|
strategy: true,
|
|
138
|
-
|
|
138
|
+
partitionKeyId: true,
|
|
139
139
|
interval: true,
|
|
140
140
|
retention: true,
|
|
141
|
-
|
|
141
|
+
premake: true,
|
|
142
142
|
namingPattern: true,
|
|
143
143
|
createdAt: true,
|
|
144
144
|
updatedAt: true,
|
|
@@ -178,8 +178,8 @@ async function handleCreate(argv, prompter) {
|
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
type: 'text',
|
|
181
|
-
name: '
|
|
182
|
-
message: '
|
|
181
|
+
name: 'partitionKeyId',
|
|
182
|
+
message: 'partitionKeyId',
|
|
183
183
|
required: true,
|
|
184
184
|
},
|
|
185
185
|
{
|
|
@@ -198,8 +198,8 @@ async function handleCreate(argv, prompter) {
|
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
type: 'text',
|
|
201
|
-
name: '
|
|
202
|
-
message: '
|
|
201
|
+
name: 'premake',
|
|
202
|
+
message: 'premake',
|
|
203
203
|
required: false,
|
|
204
204
|
skipPrompt: true,
|
|
205
205
|
},
|
|
@@ -220,10 +220,10 @@ async function handleCreate(argv, prompter) {
|
|
|
220
220
|
databaseId: cleanedData.databaseId,
|
|
221
221
|
tableId: cleanedData.tableId,
|
|
222
222
|
strategy: cleanedData.strategy,
|
|
223
|
-
|
|
223
|
+
partitionKeyId: cleanedData.partitionKeyId,
|
|
224
224
|
interval: cleanedData.interval,
|
|
225
225
|
retention: cleanedData.retention,
|
|
226
|
-
|
|
226
|
+
premake: cleanedData.premake,
|
|
227
227
|
namingPattern: cleanedData.namingPattern,
|
|
228
228
|
},
|
|
229
229
|
select: {
|
|
@@ -231,10 +231,10 @@ async function handleCreate(argv, prompter) {
|
|
|
231
231
|
databaseId: true,
|
|
232
232
|
tableId: true,
|
|
233
233
|
strategy: true,
|
|
234
|
-
|
|
234
|
+
partitionKeyId: true,
|
|
235
235
|
interval: true,
|
|
236
236
|
retention: true,
|
|
237
|
-
|
|
237
|
+
premake: true,
|
|
238
238
|
namingPattern: true,
|
|
239
239
|
createdAt: true,
|
|
240
240
|
updatedAt: true,
|
|
@@ -280,8 +280,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
type: 'text',
|
|
283
|
-
name: '
|
|
284
|
-
message: '
|
|
283
|
+
name: 'partitionKeyId',
|
|
284
|
+
message: 'partitionKeyId',
|
|
285
285
|
required: false,
|
|
286
286
|
},
|
|
287
287
|
{
|
|
@@ -300,8 +300,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
type: 'text',
|
|
303
|
-
name: '
|
|
304
|
-
message: '
|
|
303
|
+
name: 'premake',
|
|
304
|
+
message: 'premake',
|
|
305
305
|
required: false,
|
|
306
306
|
skipPrompt: true,
|
|
307
307
|
},
|
|
@@ -325,10 +325,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
325
325
|
databaseId: cleanedData.databaseId,
|
|
326
326
|
tableId: cleanedData.tableId,
|
|
327
327
|
strategy: cleanedData.strategy,
|
|
328
|
-
|
|
328
|
+
partitionKeyId: cleanedData.partitionKeyId,
|
|
329
329
|
interval: cleanedData.interval,
|
|
330
330
|
retention: cleanedData.retention,
|
|
331
|
-
|
|
331
|
+
premake: cleanedData.premake,
|
|
332
332
|
namingPattern: cleanedData.namingPattern,
|
|
333
333
|
},
|
|
334
334
|
select: {
|
|
@@ -336,10 +336,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
336
336
|
databaseId: true,
|
|
337
337
|
tableId: true,
|
|
338
338
|
strategy: true,
|
|
339
|
-
|
|
339
|
+
partitionKeyId: true,
|
|
340
340
|
interval: true,
|
|
341
341
|
retention: true,
|
|
342
|
-
|
|
342
|
+
premake: true,
|
|
343
343
|
namingPattern: true,
|
|
344
344
|
createdAt: true,
|
|
345
345
|
updatedAt: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for RateLimitMetersModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|