@constructive-sdk/cli 0.22.3 → 0.22.5
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
|
@@ -31,6 +31,10 @@ const fieldSchema = {
|
|
|
31
31
|
limitCapsDefaultsTableId: 'uuid',
|
|
32
32
|
capCheckTrigger: 'string',
|
|
33
33
|
resolveCapFunction: 'string',
|
|
34
|
+
limitWarningsTableId: 'uuid',
|
|
35
|
+
limitWarningStateTableId: 'uuid',
|
|
36
|
+
limitCheckSoftFunction: 'string',
|
|
37
|
+
limitAggregateCheckSoftFunction: 'string',
|
|
34
38
|
prefix: 'string',
|
|
35
39
|
membershipType: 'int',
|
|
36
40
|
entityTableId: 'uuid',
|
|
@@ -102,6 +106,10 @@ async function handleList(argv, _prompter) {
|
|
|
102
106
|
limitCapsDefaultsTableId: true,
|
|
103
107
|
capCheckTrigger: true,
|
|
104
108
|
resolveCapFunction: true,
|
|
109
|
+
limitWarningsTableId: true,
|
|
110
|
+
limitWarningStateTableId: true,
|
|
111
|
+
limitCheckSoftFunction: true,
|
|
112
|
+
limitAggregateCheckSoftFunction: true,
|
|
105
113
|
prefix: true,
|
|
106
114
|
membershipType: true,
|
|
107
115
|
entityTableId: true,
|
|
@@ -147,6 +155,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
147
155
|
limitCapsDefaultsTableId: true,
|
|
148
156
|
capCheckTrigger: true,
|
|
149
157
|
resolveCapFunction: true,
|
|
158
|
+
limitWarningsTableId: true,
|
|
159
|
+
limitWarningStateTableId: true,
|
|
160
|
+
limitCheckSoftFunction: true,
|
|
161
|
+
limitAggregateCheckSoftFunction: true,
|
|
150
162
|
prefix: true,
|
|
151
163
|
membershipType: true,
|
|
152
164
|
entityTableId: true,
|
|
@@ -204,6 +216,10 @@ async function handleGet(argv, prompter) {
|
|
|
204
216
|
limitCapsDefaultsTableId: true,
|
|
205
217
|
capCheckTrigger: true,
|
|
206
218
|
resolveCapFunction: true,
|
|
219
|
+
limitWarningsTableId: true,
|
|
220
|
+
limitWarningStateTableId: true,
|
|
221
|
+
limitCheckSoftFunction: true,
|
|
222
|
+
limitAggregateCheckSoftFunction: true,
|
|
207
223
|
prefix: true,
|
|
208
224
|
membershipType: true,
|
|
209
225
|
entityTableId: true,
|
|
@@ -384,6 +400,34 @@ async function handleCreate(argv, prompter) {
|
|
|
384
400
|
required: false,
|
|
385
401
|
skipPrompt: true,
|
|
386
402
|
},
|
|
403
|
+
{
|
|
404
|
+
type: 'text',
|
|
405
|
+
name: 'limitWarningsTableId',
|
|
406
|
+
message: 'limitWarningsTableId',
|
|
407
|
+
required: false,
|
|
408
|
+
skipPrompt: true,
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
type: 'text',
|
|
412
|
+
name: 'limitWarningStateTableId',
|
|
413
|
+
message: 'limitWarningStateTableId',
|
|
414
|
+
required: false,
|
|
415
|
+
skipPrompt: true,
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
type: 'text',
|
|
419
|
+
name: 'limitCheckSoftFunction',
|
|
420
|
+
message: 'limitCheckSoftFunction',
|
|
421
|
+
required: false,
|
|
422
|
+
skipPrompt: true,
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type: 'text',
|
|
426
|
+
name: 'limitAggregateCheckSoftFunction',
|
|
427
|
+
message: 'limitAggregateCheckSoftFunction',
|
|
428
|
+
required: false,
|
|
429
|
+
skipPrompt: true,
|
|
430
|
+
},
|
|
387
431
|
{
|
|
388
432
|
type: 'text',
|
|
389
433
|
name: 'prefix',
|
|
@@ -441,6 +485,10 @@ async function handleCreate(argv, prompter) {
|
|
|
441
485
|
limitCapsDefaultsTableId: cleanedData.limitCapsDefaultsTableId,
|
|
442
486
|
capCheckTrigger: cleanedData.capCheckTrigger,
|
|
443
487
|
resolveCapFunction: cleanedData.resolveCapFunction,
|
|
488
|
+
limitWarningsTableId: cleanedData.limitWarningsTableId,
|
|
489
|
+
limitWarningStateTableId: cleanedData.limitWarningStateTableId,
|
|
490
|
+
limitCheckSoftFunction: cleanedData.limitCheckSoftFunction,
|
|
491
|
+
limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction,
|
|
444
492
|
prefix: cleanedData.prefix,
|
|
445
493
|
membershipType: cleanedData.membershipType,
|
|
446
494
|
entityTableId: cleanedData.entityTableId,
|
|
@@ -471,6 +519,10 @@ async function handleCreate(argv, prompter) {
|
|
|
471
519
|
limitCapsDefaultsTableId: true,
|
|
472
520
|
capCheckTrigger: true,
|
|
473
521
|
resolveCapFunction: true,
|
|
522
|
+
limitWarningsTableId: true,
|
|
523
|
+
limitWarningStateTableId: true,
|
|
524
|
+
limitCheckSoftFunction: true,
|
|
525
|
+
limitAggregateCheckSoftFunction: true,
|
|
474
526
|
prefix: true,
|
|
475
527
|
membershipType: true,
|
|
476
528
|
entityTableId: true,
|
|
@@ -657,6 +709,34 @@ async function handleUpdate(argv, prompter) {
|
|
|
657
709
|
required: false,
|
|
658
710
|
skipPrompt: true,
|
|
659
711
|
},
|
|
712
|
+
{
|
|
713
|
+
type: 'text',
|
|
714
|
+
name: 'limitWarningsTableId',
|
|
715
|
+
message: 'limitWarningsTableId',
|
|
716
|
+
required: false,
|
|
717
|
+
skipPrompt: true,
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
type: 'text',
|
|
721
|
+
name: 'limitWarningStateTableId',
|
|
722
|
+
message: 'limitWarningStateTableId',
|
|
723
|
+
required: false,
|
|
724
|
+
skipPrompt: true,
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
type: 'text',
|
|
728
|
+
name: 'limitCheckSoftFunction',
|
|
729
|
+
message: 'limitCheckSoftFunction',
|
|
730
|
+
required: false,
|
|
731
|
+
skipPrompt: true,
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
type: 'text',
|
|
735
|
+
name: 'limitAggregateCheckSoftFunction',
|
|
736
|
+
message: 'limitAggregateCheckSoftFunction',
|
|
737
|
+
required: false,
|
|
738
|
+
skipPrompt: true,
|
|
739
|
+
},
|
|
660
740
|
{
|
|
661
741
|
type: 'text',
|
|
662
742
|
name: 'prefix',
|
|
@@ -717,6 +797,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
717
797
|
limitCapsDefaultsTableId: cleanedData.limitCapsDefaultsTableId,
|
|
718
798
|
capCheckTrigger: cleanedData.capCheckTrigger,
|
|
719
799
|
resolveCapFunction: cleanedData.resolveCapFunction,
|
|
800
|
+
limitWarningsTableId: cleanedData.limitWarningsTableId,
|
|
801
|
+
limitWarningStateTableId: cleanedData.limitWarningStateTableId,
|
|
802
|
+
limitCheckSoftFunction: cleanedData.limitCheckSoftFunction,
|
|
803
|
+
limitAggregateCheckSoftFunction: cleanedData.limitAggregateCheckSoftFunction,
|
|
720
804
|
prefix: cleanedData.prefix,
|
|
721
805
|
membershipType: cleanedData.membershipType,
|
|
722
806
|
entityTableId: cleanedData.entityTableId,
|
|
@@ -747,6 +831,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
747
831
|
limitCapsDefaultsTableId: true,
|
|
748
832
|
capCheckTrigger: true,
|
|
749
833
|
resolveCapFunction: true,
|
|
834
|
+
limitWarningsTableId: true,
|
|
835
|
+
limitWarningStateTableId: true,
|
|
836
|
+
limitCheckSoftFunction: true,
|
|
837
|
+
limitAggregateCheckSoftFunction: true,
|
|
750
838
|
prefix: true,
|
|
751
839
|
membershipType: true,
|
|
752
840
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CLI commands for
|
|
2
|
+
* CLI commands for OrgLimitWarning
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -9,13 +9,12 @@ import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined }
|
|
|
9
9
|
const fieldSchema = {
|
|
10
10
|
id: 'uuid',
|
|
11
11
|
name: 'string',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
updatedAt: 'string',
|
|
12
|
+
warningType: 'string',
|
|
13
|
+
thresholdValue: 'int',
|
|
14
|
+
taskIdentifier: 'string',
|
|
15
|
+
entityId: 'uuid',
|
|
17
16
|
};
|
|
18
|
-
const usage = '\
|
|
17
|
+
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';
|
|
19
18
|
export default async (argv, prompter, _options) => {
|
|
20
19
|
if (argv.help || argv.h) {
|
|
21
20
|
console.log(usage);
|
|
@@ -59,15 +58,14 @@ async function handleList(argv, _prompter) {
|
|
|
59
58
|
const defaultSelect = {
|
|
60
59
|
id: true,
|
|
61
60
|
name: true,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
updatedAt: true,
|
|
61
|
+
warningType: true,
|
|
62
|
+
thresholdValue: true,
|
|
63
|
+
taskIdentifier: true,
|
|
64
|
+
entityId: true,
|
|
67
65
|
};
|
|
68
66
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
69
67
|
const client = getClient();
|
|
70
|
-
const result = await client.
|
|
68
|
+
const result = await client.orgLimitWarning.findMany(findManyArgs).execute();
|
|
71
69
|
console.log(JSON.stringify(result, null, 2));
|
|
72
70
|
}
|
|
73
71
|
catch (error) {
|
|
@@ -83,15 +81,14 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
83
81
|
const defaultSelect = {
|
|
84
82
|
id: true,
|
|
85
83
|
name: true,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
updatedAt: true,
|
|
84
|
+
warningType: true,
|
|
85
|
+
thresholdValue: true,
|
|
86
|
+
taskIdentifier: true,
|
|
87
|
+
entityId: true,
|
|
91
88
|
};
|
|
92
89
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
93
90
|
const client = getClient();
|
|
94
|
-
const result = await client.
|
|
91
|
+
const result = await client.orgLimitWarning.findFirst(findFirstArgs).execute();
|
|
95
92
|
console.log(JSON.stringify(result, null, 2));
|
|
96
93
|
}
|
|
97
94
|
catch (error) {
|
|
@@ -113,17 +110,16 @@ async function handleGet(argv, prompter) {
|
|
|
113
110
|
},
|
|
114
111
|
]);
|
|
115
112
|
const client = getClient();
|
|
116
|
-
const result = await client.
|
|
113
|
+
const result = await client.orgLimitWarning
|
|
117
114
|
.findOne({
|
|
118
115
|
id: answers.id,
|
|
119
116
|
select: {
|
|
120
117
|
id: true,
|
|
121
118
|
name: true,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
updatedAt: true,
|
|
119
|
+
warningType: true,
|
|
120
|
+
thresholdValue: true,
|
|
121
|
+
taskIdentifier: true,
|
|
122
|
+
entityId: true,
|
|
127
123
|
},
|
|
128
124
|
})
|
|
129
125
|
.execute();
|
|
@@ -148,22 +144,26 @@ async function handleCreate(argv, prompter) {
|
|
|
148
144
|
},
|
|
149
145
|
{
|
|
150
146
|
type: 'text',
|
|
151
|
-
name: '
|
|
152
|
-
message: '
|
|
153
|
-
required:
|
|
154
|
-
skipPrompt: true,
|
|
147
|
+
name: 'warningType',
|
|
148
|
+
message: 'warningType',
|
|
149
|
+
required: true,
|
|
155
150
|
},
|
|
156
151
|
{
|
|
157
152
|
type: 'text',
|
|
158
|
-
name: '
|
|
159
|
-
message: '
|
|
160
|
-
required:
|
|
161
|
-
|
|
153
|
+
name: 'thresholdValue',
|
|
154
|
+
message: 'thresholdValue',
|
|
155
|
+
required: true,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: 'text',
|
|
159
|
+
name: 'taskIdentifier',
|
|
160
|
+
message: 'taskIdentifier',
|
|
161
|
+
required: true,
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
type: 'text',
|
|
165
|
-
name: '
|
|
166
|
-
message: '
|
|
165
|
+
name: 'entityId',
|
|
166
|
+
message: 'entityId',
|
|
167
167
|
required: false,
|
|
168
168
|
skipPrompt: true,
|
|
169
169
|
},
|
|
@@ -171,22 +171,22 @@ async function handleCreate(argv, prompter) {
|
|
|
171
171
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
172
172
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
173
173
|
const client = getClient();
|
|
174
|
-
const result = await client.
|
|
174
|
+
const result = await client.orgLimitWarning
|
|
175
175
|
.create({
|
|
176
176
|
data: {
|
|
177
177
|
name: cleanedData.name,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
warningType: cleanedData.warningType,
|
|
179
|
+
thresholdValue: cleanedData.thresholdValue,
|
|
180
|
+
taskIdentifier: cleanedData.taskIdentifier,
|
|
181
|
+
entityId: cleanedData.entityId,
|
|
181
182
|
},
|
|
182
183
|
select: {
|
|
183
184
|
id: true,
|
|
184
185
|
name: true,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
updatedAt: true,
|
|
186
|
+
warningType: true,
|
|
187
|
+
thresholdValue: true,
|
|
188
|
+
taskIdentifier: true,
|
|
189
|
+
entityId: true,
|
|
190
190
|
},
|
|
191
191
|
})
|
|
192
192
|
.execute();
|
|
@@ -217,22 +217,26 @@ async function handleUpdate(argv, prompter) {
|
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
type: 'text',
|
|
220
|
-
name: '
|
|
221
|
-
message: '
|
|
220
|
+
name: 'warningType',
|
|
221
|
+
message: 'warningType',
|
|
222
222
|
required: false,
|
|
223
|
-
skipPrompt: true,
|
|
224
223
|
},
|
|
225
224
|
{
|
|
226
225
|
type: 'text',
|
|
227
|
-
name: '
|
|
228
|
-
message: '
|
|
226
|
+
name: 'thresholdValue',
|
|
227
|
+
message: 'thresholdValue',
|
|
228
|
+
required: false,
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'text',
|
|
232
|
+
name: 'taskIdentifier',
|
|
233
|
+
message: 'taskIdentifier',
|
|
229
234
|
required: false,
|
|
230
|
-
skipPrompt: true,
|
|
231
235
|
},
|
|
232
236
|
{
|
|
233
237
|
type: 'text',
|
|
234
|
-
name: '
|
|
235
|
-
message: '
|
|
238
|
+
name: 'entityId',
|
|
239
|
+
message: 'entityId',
|
|
236
240
|
required: false,
|
|
237
241
|
skipPrompt: true,
|
|
238
242
|
},
|
|
@@ -240,25 +244,25 @@ async function handleUpdate(argv, prompter) {
|
|
|
240
244
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
241
245
|
const cleanedData = stripUndefined(answers, fieldSchema);
|
|
242
246
|
const client = getClient();
|
|
243
|
-
const result = await client.
|
|
247
|
+
const result = await client.orgLimitWarning
|
|
244
248
|
.update({
|
|
245
249
|
where: {
|
|
246
250
|
id: answers.id,
|
|
247
251
|
},
|
|
248
252
|
data: {
|
|
249
253
|
name: cleanedData.name,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
254
|
+
warningType: cleanedData.warningType,
|
|
255
|
+
thresholdValue: cleanedData.thresholdValue,
|
|
256
|
+
taskIdentifier: cleanedData.taskIdentifier,
|
|
257
|
+
entityId: cleanedData.entityId,
|
|
253
258
|
},
|
|
254
259
|
select: {
|
|
255
260
|
id: true,
|
|
256
261
|
name: true,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
updatedAt: true,
|
|
262
|
+
warningType: true,
|
|
263
|
+
thresholdValue: true,
|
|
264
|
+
taskIdentifier: true,
|
|
265
|
+
entityId: true,
|
|
262
266
|
},
|
|
263
267
|
})
|
|
264
268
|
.execute();
|
|
@@ -284,7 +288,7 @@ async function handleDelete(argv, prompter) {
|
|
|
284
288
|
]);
|
|
285
289
|
const answers = coerceAnswers(rawAnswers, fieldSchema);
|
|
286
290
|
const client = getClient();
|
|
287
|
-
const result = await client.
|
|
291
|
+
const result = await client.orgLimitWarning
|
|
288
292
|
.delete({
|
|
289
293
|
where: {
|
|
290
294
|
id: answers.id,
|
|
@@ -11,10 +11,10 @@ const fieldSchema = {
|
|
|
11
11
|
databaseId: 'uuid',
|
|
12
12
|
tableId: 'uuid',
|
|
13
13
|
strategy: 'string',
|
|
14
|
-
|
|
14
|
+
partitionKeyId: 'uuid',
|
|
15
15
|
interval: 'string',
|
|
16
16
|
retention: 'string',
|
|
17
|
-
|
|
17
|
+
premake: 'int',
|
|
18
18
|
namingPattern: 'string',
|
|
19
19
|
createdAt: 'string',
|
|
20
20
|
updatedAt: 'string',
|
|
@@ -65,10 +65,10 @@ async function handleList(argv, _prompter) {
|
|
|
65
65
|
databaseId: true,
|
|
66
66
|
tableId: true,
|
|
67
67
|
strategy: true,
|
|
68
|
-
|
|
68
|
+
partitionKeyId: true,
|
|
69
69
|
interval: true,
|
|
70
70
|
retention: true,
|
|
71
|
-
|
|
71
|
+
premake: true,
|
|
72
72
|
namingPattern: true,
|
|
73
73
|
createdAt: true,
|
|
74
74
|
updatedAt: true,
|
|
@@ -93,10 +93,10 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
93
93
|
databaseId: true,
|
|
94
94
|
tableId: true,
|
|
95
95
|
strategy: true,
|
|
96
|
-
|
|
96
|
+
partitionKeyId: true,
|
|
97
97
|
interval: true,
|
|
98
98
|
retention: true,
|
|
99
|
-
|
|
99
|
+
premake: true,
|
|
100
100
|
namingPattern: true,
|
|
101
101
|
createdAt: true,
|
|
102
102
|
updatedAt: true,
|
|
@@ -133,10 +133,10 @@ async function handleGet(argv, prompter) {
|
|
|
133
133
|
databaseId: true,
|
|
134
134
|
tableId: true,
|
|
135
135
|
strategy: true,
|
|
136
|
-
|
|
136
|
+
partitionKeyId: true,
|
|
137
137
|
interval: true,
|
|
138
138
|
retention: true,
|
|
139
|
-
|
|
139
|
+
premake: true,
|
|
140
140
|
namingPattern: true,
|
|
141
141
|
createdAt: true,
|
|
142
142
|
updatedAt: true,
|
|
@@ -176,8 +176,8 @@ async function handleCreate(argv, prompter) {
|
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
type: 'text',
|
|
179
|
-
name: '
|
|
180
|
-
message: '
|
|
179
|
+
name: 'partitionKeyId',
|
|
180
|
+
message: 'partitionKeyId',
|
|
181
181
|
required: true,
|
|
182
182
|
},
|
|
183
183
|
{
|
|
@@ -196,8 +196,8 @@ async function handleCreate(argv, prompter) {
|
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
type: 'text',
|
|
199
|
-
name: '
|
|
200
|
-
message: '
|
|
199
|
+
name: 'premake',
|
|
200
|
+
message: 'premake',
|
|
201
201
|
required: false,
|
|
202
202
|
skipPrompt: true,
|
|
203
203
|
},
|
|
@@ -218,10 +218,10 @@ async function handleCreate(argv, prompter) {
|
|
|
218
218
|
databaseId: cleanedData.databaseId,
|
|
219
219
|
tableId: cleanedData.tableId,
|
|
220
220
|
strategy: cleanedData.strategy,
|
|
221
|
-
|
|
221
|
+
partitionKeyId: cleanedData.partitionKeyId,
|
|
222
222
|
interval: cleanedData.interval,
|
|
223
223
|
retention: cleanedData.retention,
|
|
224
|
-
|
|
224
|
+
premake: cleanedData.premake,
|
|
225
225
|
namingPattern: cleanedData.namingPattern,
|
|
226
226
|
},
|
|
227
227
|
select: {
|
|
@@ -229,10 +229,10 @@ async function handleCreate(argv, prompter) {
|
|
|
229
229
|
databaseId: true,
|
|
230
230
|
tableId: true,
|
|
231
231
|
strategy: true,
|
|
232
|
-
|
|
232
|
+
partitionKeyId: true,
|
|
233
233
|
interval: true,
|
|
234
234
|
retention: true,
|
|
235
|
-
|
|
235
|
+
premake: true,
|
|
236
236
|
namingPattern: true,
|
|
237
237
|
createdAt: true,
|
|
238
238
|
updatedAt: true,
|
|
@@ -278,8 +278,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
280
|
type: 'text',
|
|
281
|
-
name: '
|
|
282
|
-
message: '
|
|
281
|
+
name: 'partitionKeyId',
|
|
282
|
+
message: 'partitionKeyId',
|
|
283
283
|
required: false,
|
|
284
284
|
},
|
|
285
285
|
{
|
|
@@ -298,8 +298,8 @@ async function handleUpdate(argv, prompter) {
|
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
type: 'text',
|
|
301
|
-
name: '
|
|
302
|
-
message: '
|
|
301
|
+
name: 'premake',
|
|
302
|
+
message: 'premake',
|
|
303
303
|
required: false,
|
|
304
304
|
skipPrompt: true,
|
|
305
305
|
},
|
|
@@ -323,10 +323,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
323
323
|
databaseId: cleanedData.databaseId,
|
|
324
324
|
tableId: cleanedData.tableId,
|
|
325
325
|
strategy: cleanedData.strategy,
|
|
326
|
-
|
|
326
|
+
partitionKeyId: cleanedData.partitionKeyId,
|
|
327
327
|
interval: cleanedData.interval,
|
|
328
328
|
retention: cleanedData.retention,
|
|
329
|
-
|
|
329
|
+
premake: cleanedData.premake,
|
|
330
330
|
namingPattern: cleanedData.namingPattern,
|
|
331
331
|
},
|
|
332
332
|
select: {
|
|
@@ -334,10 +334,10 @@ async function handleUpdate(argv, prompter) {
|
|
|
334
334
|
databaseId: true,
|
|
335
335
|
tableId: true,
|
|
336
336
|
strategy: true,
|
|
337
|
-
|
|
337
|
+
partitionKeyId: true,
|
|
338
338
|
interval: true,
|
|
339
339
|
retention: true,
|
|
340
|
-
|
|
340
|
+
premake: true,
|
|
341
341
|
namingPattern: true,
|
|
342
342
|
createdAt: true,
|
|
343
343
|
updatedAt: true,
|