@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
@@ -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 AppLevel
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
- description: 'string',
13
- image: 'string',
14
- ownerId: 'uuid',
15
- createdAt: 'string',
16
- updatedAt: 'string',
12
+ warningType: 'string',
13
+ thresholdValue: 'int',
14
+ taskIdentifier: 'string',
15
+ entityId: 'uuid',
17
16
  };
18
- 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';
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
- description: true,
63
- image: true,
64
- ownerId: true,
65
- createdAt: true,
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.appLevel.findMany(findManyArgs).execute();
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
- description: true,
87
- image: true,
88
- ownerId: true,
89
- createdAt: true,
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.appLevel.findFirst(findFirstArgs).execute();
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.appLevel
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
- description: true,
123
- image: true,
124
- ownerId: true,
125
- createdAt: true,
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: 'description',
152
- message: 'description',
153
- required: false,
154
- skipPrompt: true,
147
+ name: 'warningType',
148
+ message: 'warningType',
149
+ required: true,
155
150
  },
156
151
  {
157
152
  type: 'text',
158
- name: 'image',
159
- message: 'image',
160
- required: false,
161
- skipPrompt: true,
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: 'ownerId',
166
- message: 'ownerId',
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.appLevel
174
+ const result = await client.orgLimitWarning
175
175
  .create({
176
176
  data: {
177
177
  name: cleanedData.name,
178
- description: cleanedData.description,
179
- image: cleanedData.image,
180
- ownerId: cleanedData.ownerId,
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
- description: true,
186
- image: true,
187
- ownerId: true,
188
- createdAt: true,
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: 'description',
221
- message: 'description',
220
+ name: 'warningType',
221
+ message: 'warningType',
222
222
  required: false,
223
- skipPrompt: true,
224
223
  },
225
224
  {
226
225
  type: 'text',
227
- name: 'image',
228
- message: 'image',
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: 'ownerId',
235
- message: 'ownerId',
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.appLevel
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
- description: cleanedData.description,
251
- image: cleanedData.image,
252
- ownerId: cleanedData.ownerId,
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
- description: true,
258
- image: true,
259
- ownerId: true,
260
- createdAt: true,
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.appLevel
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
- partitionKeyIds: 'uuid',
14
+ partitionKeyId: 'uuid',
15
15
  interval: 'string',
16
16
  retention: 'string',
17
- lookahead: 'int',
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
- partitionKeyIds: true,
68
+ partitionKeyId: true,
69
69
  interval: true,
70
70
  retention: true,
71
- lookahead: true,
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
- partitionKeyIds: true,
96
+ partitionKeyId: true,
97
97
  interval: true,
98
98
  retention: true,
99
- lookahead: true,
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
- partitionKeyIds: true,
136
+ partitionKeyId: true,
137
137
  interval: true,
138
138
  retention: true,
139
- lookahead: true,
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: 'partitionKeyIds',
180
- message: 'partitionKeyIds',
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: 'lookahead',
200
- message: 'lookahead',
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
- partitionKeyIds: cleanedData.partitionKeyIds,
221
+ partitionKeyId: cleanedData.partitionKeyId,
222
222
  interval: cleanedData.interval,
223
223
  retention: cleanedData.retention,
224
- lookahead: cleanedData.lookahead,
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
- partitionKeyIds: true,
232
+ partitionKeyId: true,
233
233
  interval: true,
234
234
  retention: true,
235
- lookahead: true,
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: 'partitionKeyIds',
282
- message: 'partitionKeyIds',
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: 'lookahead',
302
- message: 'lookahead',
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
- partitionKeyIds: cleanedData.partitionKeyIds,
326
+ partitionKeyId: cleanedData.partitionKeyId,
327
327
  interval: cleanedData.interval,
328
328
  retention: cleanedData.retention,
329
- lookahead: cleanedData.lookahead,
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
- partitionKeyIds: true,
337
+ partitionKeyId: true,
338
338
  interval: true,
339
339
  retention: true,
340
- lookahead: true,
340
+ premake: true,
341
341
  namingPattern: true,
342
342
  createdAt: true,
343
343
  updatedAt: true,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for AppLevelRequirement
2
+ * CLI commands for RateLimitMetersModule
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */