@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.
Files changed (177) hide show
  1. package/admin/cli/commands/{app-achievement.d.ts → app-limit-warning.d.ts} +1 -1
  2. package/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
  3. package/{esm/admin/cli/commands/app-achievement.d.ts → admin/cli/commands/org-limit-warning.d.ts} +1 -1
  4. package/admin/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
  5. package/admin/cli/commands.js +7 -15
  6. package/admin/cli/executor.d.ts +3 -15
  7. package/admin/orm/index.d.ts +6 -20
  8. package/admin/orm/index.js +6 -10
  9. package/admin/orm/input-types.d.ts +488 -768
  10. package/admin/orm/models/appLimitWarning.d.ts +54 -0
  11. package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
  12. package/admin/orm/models/index.d.ts +3 -5
  13. package/admin/orm/models/index.js +7 -11
  14. package/admin/orm/models/orgLimitWarning.d.ts +54 -0
  15. package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
  16. package/admin/orm/query/index.d.ts +1 -28
  17. package/admin/orm/query/index.js +0 -44
  18. package/{admin/cli/commands/app-step.d.ts → esm/admin/cli/commands/app-limit-warning.d.ts} +1 -1
  19. package/esm/{public/cli/commands/app-step.js → admin/cli/commands/app-limit-warning.js} +58 -54
  20. package/esm/admin/cli/commands/org-limit-warning.d.ts +8 -0
  21. package/esm/{public/cli/commands/app-level.js → admin/cli/commands/org-limit-warning.js} +66 -62
  22. package/esm/admin/cli/commands.js +7 -15
  23. package/esm/admin/cli/executor.d.ts +3 -15
  24. package/esm/admin/orm/index.d.ts +6 -20
  25. package/esm/admin/orm/index.js +6 -10
  26. package/esm/admin/orm/input-types.d.ts +488 -768
  27. package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
  28. package/esm/{public/orm/models/appAchievement.js → admin/orm/models/appLimitWarning.js} +25 -25
  29. package/esm/admin/orm/models/index.d.ts +3 -5
  30. package/esm/admin/orm/models/index.js +3 -5
  31. package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
  32. package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
  33. package/esm/admin/orm/query/index.d.ts +1 -28
  34. package/esm/admin/orm/query/index.js +0 -44
  35. package/esm/public/cli/commands/app-limit-warning.d.ts +8 -0
  36. package/esm/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
  37. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  38. package/esm/public/cli/commands/create-user-database.js +1 -1
  39. package/esm/public/cli/commands/embedding-chunk.js +66 -0
  40. package/esm/public/cli/commands/entity-type-provision.js +22 -0
  41. package/esm/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
  42. package/esm/public/cli/commands/{levels-module.js → events-module.js} +438 -152
  43. package/esm/public/cli/commands/limits-module.js +88 -0
  44. package/esm/public/cli/commands/org-limit-warning.d.ts +8 -0
  45. package/esm/{admin/cli/commands/app-level.js → public/cli/commands/org-limit-warning.js} +66 -62
  46. package/esm/public/cli/commands/partition.js +24 -24
  47. package/{admin/cli/commands/app-level-requirement.d.ts → esm/public/cli/commands/rate-limit-meters-module.d.ts} +1 -1
  48. package/esm/public/cli/commands/rate-limit-meters-module.js +448 -0
  49. package/esm/public/cli/commands/realtime-module.js +24 -24
  50. package/esm/public/cli/commands/user-state-module.d.ts +8 -0
  51. package/esm/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
  52. package/esm/public/cli/commands.js +11 -17
  53. package/esm/public/cli/executor.d.ts +5 -16
  54. package/esm/public/orm/index.d.ts +10 -22
  55. package/esm/public/orm/index.js +10 -12
  56. package/esm/public/orm/input-types.d.ts +1024 -919
  57. package/esm/public/orm/input-types.js +3 -5
  58. package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
  59. package/esm/{admin/orm/models/appLevel.js → public/orm/models/appLimitWarning.js} +25 -25
  60. package/esm/public/orm/models/eventsModule.d.ts +54 -0
  61. package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
  62. package/esm/public/orm/models/index.d.ts +5 -6
  63. package/esm/public/orm/models/index.js +5 -6
  64. package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
  65. package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
  66. package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  67. package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
  68. package/esm/public/orm/models/userStateModule.d.ts +54 -0
  69. package/esm/public/orm/models/userStateModule.js +100 -0
  70. package/esm/public/orm/mutation/index.d.ts +2 -2
  71. package/esm/public/orm/query/index.d.ts +1 -28
  72. package/esm/public/orm/query/index.js +0 -44
  73. package/package.json +4 -4
  74. package/public/cli/commands/app-limit-warning.d.ts +8 -0
  75. package/{admin/cli/commands/app-step.js → public/cli/commands/app-limit-warning.js} +58 -54
  76. package/public/cli/commands/construct-blueprint.js +1 -1
  77. package/public/cli/commands/create-user-database.js +1 -1
  78. package/public/cli/commands/embedding-chunk.js +66 -0
  79. package/public/cli/commands/entity-type-provision.js +22 -0
  80. package/{admin/cli/commands/app-level.d.ts → public/cli/commands/events-module.d.ts} +1 -1
  81. package/public/cli/commands/{levels-module.js → events-module.js} +438 -152
  82. package/public/cli/commands/limits-module.js +88 -0
  83. package/public/cli/commands/org-limit-warning.d.ts +8 -0
  84. package/public/cli/commands/{app-level.js → org-limit-warning.js} +66 -62
  85. package/public/cli/commands/partition.js +24 -24
  86. package/public/cli/commands/rate-limit-meters-module.d.ts +8 -0
  87. package/public/cli/commands/rate-limit-meters-module.js +450 -0
  88. package/public/cli/commands/realtime-module.js +24 -24
  89. package/public/cli/commands/user-state-module.d.ts +8 -0
  90. package/public/cli/commands/{secrets-module.js → user-state-module.js} +8 -8
  91. package/public/cli/commands.js +11 -17
  92. package/public/cli/executor.d.ts +5 -16
  93. package/public/orm/index.d.ts +10 -22
  94. package/public/orm/index.js +10 -12
  95. package/public/orm/input-types.d.ts +1024 -919
  96. package/public/orm/input-types.js +3 -5
  97. package/public/orm/models/appLimitWarning.d.ts +54 -0
  98. package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
  99. package/public/orm/models/eventsModule.d.ts +54 -0
  100. package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
  101. package/public/orm/models/index.d.ts +5 -6
  102. package/public/orm/models/index.js +13 -15
  103. package/public/orm/models/orgLimitWarning.d.ts +54 -0
  104. package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
  105. package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  106. package/public/orm/models/{appAchievement.js → rateLimitMetersModule.js} +27 -27
  107. package/public/orm/models/userStateModule.d.ts +54 -0
  108. package/public/orm/models/userStateModule.js +104 -0
  109. package/public/orm/mutation/index.d.ts +2 -2
  110. package/public/orm/query/index.d.ts +1 -28
  111. package/public/orm/query/index.js +0 -44
  112. package/admin/cli/commands/app-achievement.js +0 -286
  113. package/admin/cli/commands/app-level-requirement.js +0 -328
  114. package/admin/cli/commands/steps-achieved.d.ts +0 -8
  115. package/admin/cli/commands/steps-achieved.js +0 -35
  116. package/admin/cli/commands/steps-required.d.ts +0 -8
  117. package/admin/cli/commands/steps-required.js +0 -54
  118. package/admin/orm/models/appAchievement.d.ts +0 -54
  119. package/admin/orm/models/appLevel.d.ts +0 -54
  120. package/admin/orm/models/appLevelRequirement.d.ts +0 -54
  121. package/admin/orm/models/appLevelRequirement.js +0 -104
  122. package/admin/orm/models/appStep.d.ts +0 -54
  123. package/esm/admin/cli/commands/app-achievement.js +0 -284
  124. package/esm/admin/cli/commands/app-level-requirement.d.ts +0 -8
  125. package/esm/admin/cli/commands/app-level-requirement.js +0 -326
  126. package/esm/admin/cli/commands/app-step.d.ts +0 -8
  127. package/esm/admin/cli/commands/steps-achieved.d.ts +0 -8
  128. package/esm/admin/cli/commands/steps-achieved.js +0 -33
  129. package/esm/admin/cli/commands/steps-required.d.ts +0 -8
  130. package/esm/admin/cli/commands/steps-required.js +0 -52
  131. package/esm/admin/orm/models/appAchievement.d.ts +0 -54
  132. package/esm/admin/orm/models/appLevel.d.ts +0 -54
  133. package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
  134. package/esm/admin/orm/models/appStep.d.ts +0 -54
  135. package/esm/public/cli/commands/app-achievement.d.ts +0 -8
  136. package/esm/public/cli/commands/app-achievement.js +0 -284
  137. package/esm/public/cli/commands/app-level-requirement.d.ts +0 -8
  138. package/esm/public/cli/commands/app-level-requirement.js +0 -326
  139. package/esm/public/cli/commands/app-level.d.ts +0 -8
  140. package/esm/public/cli/commands/app-step.d.ts +0 -8
  141. package/esm/public/cli/commands/levels-module.d.ts +0 -8
  142. package/esm/public/cli/commands/secrets-module.d.ts +0 -8
  143. package/esm/public/cli/commands/steps-achieved.d.ts +0 -8
  144. package/esm/public/cli/commands/steps-achieved.js +0 -33
  145. package/esm/public/cli/commands/steps-required.d.ts +0 -8
  146. package/esm/public/cli/commands/steps-required.js +0 -52
  147. package/esm/public/orm/models/appAchievement.d.ts +0 -54
  148. package/esm/public/orm/models/appLevel.d.ts +0 -54
  149. package/esm/public/orm/models/appLevel.js +0 -100
  150. package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
  151. package/esm/public/orm/models/appLevelRequirement.js +0 -100
  152. package/esm/public/orm/models/appStep.d.ts +0 -54
  153. package/esm/public/orm/models/appStep.js +0 -100
  154. package/esm/public/orm/models/levelsModule.d.ts +0 -54
  155. package/esm/public/orm/models/secretsModule.d.ts +0 -54
  156. package/esm/public/orm/models/secretsModule.js +0 -100
  157. package/public/cli/commands/app-achievement.d.ts +0 -8
  158. package/public/cli/commands/app-achievement.js +0 -286
  159. package/public/cli/commands/app-level-requirement.d.ts +0 -8
  160. package/public/cli/commands/app-level-requirement.js +0 -328
  161. package/public/cli/commands/app-level.d.ts +0 -8
  162. package/public/cli/commands/app-step.d.ts +0 -8
  163. package/public/cli/commands/levels-module.d.ts +0 -8
  164. package/public/cli/commands/secrets-module.d.ts +0 -8
  165. package/public/cli/commands/steps-achieved.d.ts +0 -8
  166. package/public/cli/commands/steps-achieved.js +0 -35
  167. package/public/cli/commands/steps-required.d.ts +0 -8
  168. package/public/cli/commands/steps-required.js +0 -54
  169. package/public/orm/models/appAchievement.d.ts +0 -54
  170. package/public/orm/models/appLevel.d.ts +0 -54
  171. package/public/orm/models/appLevel.js +0 -104
  172. package/public/orm/models/appLevelRequirement.d.ts +0 -54
  173. package/public/orm/models/appLevelRequirement.js +0 -104
  174. package/public/orm/models/appStep.d.ts +0 -54
  175. package/public/orm/models/appStep.js +0 -104
  176. package/public/orm/models/levelsModule.d.ts +0 -54
  177. 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 AppLevel
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
- description: 'string',
15
- image: 'string',
16
- ownerId: 'uuid',
17
- createdAt: 'string',
18
- updatedAt: 'string',
14
+ warningType: 'string',
15
+ thresholdValue: 'int',
16
+ taskIdentifier: 'string',
17
+ entityId: 'uuid',
19
18
  };
20
- const usage = '\napp-level <command>\n\nCommands:\n list List appLevel records\n find-first Find first matching appLevel record\n get Get a appLevel by ID\n create Create a new appLevel\n update Update an existing appLevel\n delete Delete a appLevel\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
+ 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
- description: true,
65
- image: true,
66
- ownerId: true,
67
- createdAt: true,
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.appLevel.findMany(findManyArgs).execute();
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
- description: true,
89
- image: true,
90
- ownerId: true,
91
- createdAt: true,
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.appLevel.findFirst(findFirstArgs).execute();
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.appLevel
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
- description: true,
125
- image: true,
126
- ownerId: true,
127
- createdAt: true,
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: 'description',
154
- message: 'description',
155
- required: false,
156
- skipPrompt: true,
149
+ name: 'warningType',
150
+ message: 'warningType',
151
+ required: true,
157
152
  },
158
153
  {
159
154
  type: 'text',
160
- name: 'image',
161
- message: 'image',
162
- required: false,
163
- skipPrompt: true,
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: 'ownerId',
168
- message: 'ownerId',
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.appLevel
176
+ const result = await client.orgLimitWarning
177
177
  .create({
178
178
  data: {
179
179
  name: cleanedData.name,
180
- description: cleanedData.description,
181
- image: cleanedData.image,
182
- ownerId: cleanedData.ownerId,
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
- description: true,
188
- image: true,
189
- ownerId: true,
190
- createdAt: true,
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: 'description',
223
- message: 'description',
222
+ name: 'warningType',
223
+ message: 'warningType',
224
224
  required: false,
225
- skipPrompt: true,
226
225
  },
227
226
  {
228
227
  type: 'text',
229
- name: 'image',
230
- message: 'image',
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: 'ownerId',
237
- message: 'ownerId',
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.appLevel
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
- description: cleanedData.description,
253
- image: cleanedData.image,
254
- ownerId: cleanedData.ownerId,
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
- description: true,
260
- image: true,
261
- ownerId: true,
262
- createdAt: true,
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.appLevel
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
- partitionKeyIds: 'uuid',
16
+ partitionKeyId: 'uuid',
17
17
  interval: 'string',
18
18
  retention: 'string',
19
- lookahead: 'int',
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
- partitionKeyIds: true,
70
+ partitionKeyId: true,
71
71
  interval: true,
72
72
  retention: true,
73
- lookahead: true,
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
- partitionKeyIds: true,
98
+ partitionKeyId: true,
99
99
  interval: true,
100
100
  retention: true,
101
- lookahead: true,
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
- partitionKeyIds: true,
138
+ partitionKeyId: true,
139
139
  interval: true,
140
140
  retention: true,
141
- lookahead: true,
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: 'partitionKeyIds',
182
- message: 'partitionKeyIds',
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: 'lookahead',
202
- message: 'lookahead',
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
- partitionKeyIds: cleanedData.partitionKeyIds,
223
+ partitionKeyId: cleanedData.partitionKeyId,
224
224
  interval: cleanedData.interval,
225
225
  retention: cleanedData.retention,
226
- lookahead: cleanedData.lookahead,
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
- partitionKeyIds: true,
234
+ partitionKeyId: true,
235
235
  interval: true,
236
236
  retention: true,
237
- lookahead: true,
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: 'partitionKeyIds',
284
- message: 'partitionKeyIds',
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: 'lookahead',
304
- message: 'lookahead',
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
- partitionKeyIds: cleanedData.partitionKeyIds,
328
+ partitionKeyId: cleanedData.partitionKeyId,
329
329
  interval: cleanedData.interval,
330
330
  retention: cleanedData.retention,
331
- lookahead: cleanedData.lookahead,
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
- partitionKeyIds: true,
339
+ partitionKeyId: true,
340
340
  interval: true,
341
341
  retention: true,
342
- lookahead: true,
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;