@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.
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for AppStep
2
+ * CLI commands for AppLimitWarning
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -8,13 +8,12 @@ import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
10
  id: 'uuid',
11
- actorId: 'uuid',
12
11
  name: 'string',
13
- count: 'int',
14
- createdAt: 'string',
15
- updatedAt: 'string',
12
+ warningType: 'string',
13
+ thresholdValue: 'int',
14
+ taskIdentifier: 'string',
16
15
  };
17
- const usage = '\napp-step <command>\n\nCommands:\n list List appStep records\n find-first Find first matching appStep record\n get Get a appStep by ID\n create Create a new appStep\n update Update an existing appStep\n delete Delete a appStep\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';
16
+ const usage = '\napp-limit-warning <command>\n\nCommands:\n list List appLimitWarning records\n find-first Find first matching appLimitWarning record\n get Get a appLimitWarning by ID\n create Create a new appLimitWarning\n update Update an existing appLimitWarning\n delete Delete a appLimitWarning\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';
18
17
  export default async (argv, prompter, _options) => {
19
18
  if (argv.help || argv.h) {
20
19
  console.log(usage);
@@ -57,15 +56,14 @@ async function handleList(argv, _prompter) {
57
56
  try {
58
57
  const defaultSelect = {
59
58
  id: true,
60
- actorId: true,
61
59
  name: true,
62
- count: true,
63
- createdAt: true,
64
- updatedAt: true,
60
+ warningType: true,
61
+ thresholdValue: true,
62
+ taskIdentifier: true,
65
63
  };
66
64
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
67
65
  const client = getClient();
68
- const result = await client.appStep.findMany(findManyArgs).execute();
66
+ const result = await client.appLimitWarning.findMany(findManyArgs).execute();
69
67
  console.log(JSON.stringify(result, null, 2));
70
68
  }
71
69
  catch (error) {
@@ -80,15 +78,14 @@ async function handleFindFirst(argv, _prompter) {
80
78
  try {
81
79
  const defaultSelect = {
82
80
  id: true,
83
- actorId: true,
84
81
  name: true,
85
- count: true,
86
- createdAt: true,
87
- updatedAt: true,
82
+ warningType: true,
83
+ thresholdValue: true,
84
+ taskIdentifier: true,
88
85
  };
89
86
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
90
87
  const client = getClient();
91
- const result = await client.appStep.findFirst(findFirstArgs).execute();
88
+ const result = await client.appLimitWarning.findFirst(findFirstArgs).execute();
92
89
  console.log(JSON.stringify(result, null, 2));
93
90
  }
94
91
  catch (error) {
@@ -110,16 +107,15 @@ async function handleGet(argv, prompter) {
110
107
  },
111
108
  ]);
112
109
  const client = getClient();
113
- const result = await client.appStep
110
+ const result = await client.appLimitWarning
114
111
  .findOne({
115
112
  id: answers.id,
116
113
  select: {
117
114
  id: true,
118
- actorId: true,
119
115
  name: true,
120
- count: true,
121
- createdAt: true,
122
- updatedAt: true,
116
+ warningType: true,
117
+ thresholdValue: true,
118
+ taskIdentifier: true,
123
119
  },
124
120
  })
125
121
  .execute();
@@ -138,42 +134,46 @@ async function handleCreate(argv, prompter) {
138
134
  const rawAnswers = await prompter.prompt(argv, [
139
135
  {
140
136
  type: 'text',
141
- name: 'actorId',
142
- message: 'actorId',
143
- required: false,
144
- skipPrompt: true,
137
+ name: 'name',
138
+ message: 'name',
139
+ required: true,
145
140
  },
146
141
  {
147
142
  type: 'text',
148
- name: 'name',
149
- message: 'name',
143
+ name: 'warningType',
144
+ message: 'warningType',
150
145
  required: true,
151
146
  },
152
147
  {
153
148
  type: 'text',
154
- name: 'count',
155
- message: 'count',
156
- required: false,
157
- skipPrompt: true,
149
+ name: 'thresholdValue',
150
+ message: 'thresholdValue',
151
+ required: true,
152
+ },
153
+ {
154
+ type: 'text',
155
+ name: 'taskIdentifier',
156
+ message: 'taskIdentifier',
157
+ required: true,
158
158
  },
159
159
  ]);
160
160
  const answers = coerceAnswers(rawAnswers, fieldSchema);
161
161
  const cleanedData = stripUndefined(answers, fieldSchema);
162
162
  const client = getClient();
163
- const result = await client.appStep
163
+ const result = await client.appLimitWarning
164
164
  .create({
165
165
  data: {
166
- actorId: cleanedData.actorId,
167
166
  name: cleanedData.name,
168
- count: cleanedData.count,
167
+ warningType: cleanedData.warningType,
168
+ thresholdValue: cleanedData.thresholdValue,
169
+ taskIdentifier: cleanedData.taskIdentifier,
169
170
  },
170
171
  select: {
171
172
  id: true,
172
- actorId: true,
173
173
  name: true,
174
- count: true,
175
- createdAt: true,
176
- updatedAt: true,
174
+ warningType: true,
175
+ thresholdValue: true,
176
+ taskIdentifier: true,
177
177
  },
178
178
  })
179
179
  .execute();
@@ -198,45 +198,49 @@ async function handleUpdate(argv, prompter) {
198
198
  },
199
199
  {
200
200
  type: 'text',
201
- name: 'actorId',
202
- message: 'actorId',
201
+ name: 'name',
202
+ message: 'name',
203
203
  required: false,
204
- skipPrompt: true,
205
204
  },
206
205
  {
207
206
  type: 'text',
208
- name: 'name',
209
- message: 'name',
207
+ name: 'warningType',
208
+ message: 'warningType',
209
+ required: false,
210
+ },
211
+ {
212
+ type: 'text',
213
+ name: 'thresholdValue',
214
+ message: 'thresholdValue',
210
215
  required: false,
211
216
  },
212
217
  {
213
218
  type: 'text',
214
- name: 'count',
215
- message: 'count',
219
+ name: 'taskIdentifier',
220
+ message: 'taskIdentifier',
216
221
  required: false,
217
- skipPrompt: true,
218
222
  },
219
223
  ]);
220
224
  const answers = coerceAnswers(rawAnswers, fieldSchema);
221
225
  const cleanedData = stripUndefined(answers, fieldSchema);
222
226
  const client = getClient();
223
- const result = await client.appStep
227
+ const result = await client.appLimitWarning
224
228
  .update({
225
229
  where: {
226
230
  id: answers.id,
227
231
  },
228
232
  data: {
229
- actorId: cleanedData.actorId,
230
233
  name: cleanedData.name,
231
- count: cleanedData.count,
234
+ warningType: cleanedData.warningType,
235
+ thresholdValue: cleanedData.thresholdValue,
236
+ taskIdentifier: cleanedData.taskIdentifier,
232
237
  },
233
238
  select: {
234
239
  id: true,
235
- actorId: true,
236
240
  name: true,
237
- count: true,
238
- createdAt: true,
239
- updatedAt: true,
241
+ warningType: true,
242
+ thresholdValue: true,
243
+ taskIdentifier: true,
240
244
  },
241
245
  })
242
246
  .execute();
@@ -262,7 +266,7 @@ async function handleDelete(argv, prompter) {
262
266
  ]);
263
267
  const answers = coerceAnswers(rawAnswers, fieldSchema);
264
268
  const client = getClient();
265
- const result = await client.appStep
269
+ const result = await client.appLimitWarning
266
270
  .delete({
267
271
  where: {
268
272
  id: answers.id,
@@ -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,
@@ -10,7 +10,6 @@ import orgGetManagersRecordCmd from './commands/org-get-managers-record';
10
10
  import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record';
11
11
  import appPermissionCmd from './commands/app-permission';
12
12
  import orgPermissionCmd from './commands/org-permission';
13
- import appLevelRequirementCmd from './commands/app-level-requirement';
14
13
  import appLimitCreditRedemptionCmd from './commands/app-limit-credit-redemption';
15
14
  import appLimitCreditCodeItemCmd from './commands/app-limit-credit-code-item';
16
15
  import appLimitCreditCmd from './commands/app-limit-credit';
@@ -20,8 +19,6 @@ import appLimitCreditCodeCmd from './commands/app-limit-credit-code';
20
19
  import orgPermissionDefaultCmd from './commands/org-permission-default';
21
20
  import appAdminGrantCmd from './commands/app-admin-grant';
22
21
  import appOwnerGrantCmd from './commands/app-owner-grant';
23
- import appAchievementCmd from './commands/app-achievement';
24
- import appStepCmd from './commands/app-step';
25
22
  import appLimitCapsDefaultCmd from './commands/app-limit-caps-default';
26
23
  import orgLimitCapsDefaultCmd from './commands/org-limit-caps-default';
27
24
  import appLimitCapCmd from './commands/app-limit-cap';
@@ -32,6 +29,8 @@ import membershipTypeCmd from './commands/membership-type';
32
29
  import appLimitDefaultCmd from './commands/app-limit-default';
33
30
  import orgLimitDefaultCmd from './commands/org-limit-default';
34
31
  import orgLimitCreditCmd from './commands/org-limit-credit';
32
+ import appLimitWarningCmd from './commands/app-limit-warning';
33
+ import orgLimitWarningCmd from './commands/org-limit-warning';
35
34
  import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant';
36
35
  import appClaimedInviteCmd from './commands/app-claimed-invite';
37
36
  import appGrantCmd from './commands/app-grant';
@@ -43,13 +42,12 @@ import orgLimitEventCmd from './commands/org-limit-event';
43
42
  import orgGrantCmd from './commands/org-grant';
44
43
  import orgChartEdgeCmd from './commands/org-chart-edge';
45
44
  import usageSnapshotCmd from './commands/usage-snapshot';
46
- import orgMemberProfileCmd from './commands/org-member-profile';
47
- import appLevelCmd from './commands/app-level';
48
45
  import appLimitCmd from './commands/app-limit';
49
46
  import appInviteCmd from './commands/app-invite';
50
47
  import orgMembershipSettingCmd from './commands/org-membership-setting';
51
48
  import orgLimitAggregateCmd from './commands/org-limit-aggregate';
52
49
  import orgLimitCmd from './commands/org-limit';
50
+ import orgMemberProfileCmd from './commands/org-member-profile';
53
51
  import appMembershipCmd from './commands/app-membership';
54
52
  import orgInviteCmd from './commands/org-invite';
55
53
  import orgMembershipCmd from './commands/org-membership';
@@ -58,12 +56,10 @@ import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padde
58
56
  import orgIsManagerOfCmd from './commands/org-is-manager-of';
59
57
  import appPermissionsGetMaskCmd from './commands/app-permissions-get-mask';
60
58
  import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask';
61
- import stepsAchievedCmd from './commands/steps-achieved';
62
59
  import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names';
63
60
  import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names';
64
61
  import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask';
65
62
  import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask';
66
- import stepsRequiredCmd from './commands/steps-required';
67
63
  import submitAppInviteCodeCmd from './commands/submit-app-invite-code';
68
64
  import submitOrgInviteCodeCmd from './commands/submit-org-invite-code';
69
65
  import provisionBucketCmd from './commands/provision-bucket';
@@ -74,7 +70,6 @@ const createCommandMap = () => ({
74
70
  'org-get-subordinates-record': orgGetSubordinatesRecordCmd,
75
71
  'app-permission': appPermissionCmd,
76
72
  'org-permission': orgPermissionCmd,
77
- 'app-level-requirement': appLevelRequirementCmd,
78
73
  'app-limit-credit-redemption': appLimitCreditRedemptionCmd,
79
74
  'app-limit-credit-code-item': appLimitCreditCodeItemCmd,
80
75
  'app-limit-credit': appLimitCreditCmd,
@@ -84,8 +79,6 @@ const createCommandMap = () => ({
84
79
  'org-permission-default': orgPermissionDefaultCmd,
85
80
  'app-admin-grant': appAdminGrantCmd,
86
81
  'app-owner-grant': appOwnerGrantCmd,
87
- 'app-achievement': appAchievementCmd,
88
- 'app-step': appStepCmd,
89
82
  'app-limit-caps-default': appLimitCapsDefaultCmd,
90
83
  'org-limit-caps-default': orgLimitCapsDefaultCmd,
91
84
  'app-limit-cap': appLimitCapCmd,
@@ -96,6 +89,8 @@ const createCommandMap = () => ({
96
89
  'app-limit-default': appLimitDefaultCmd,
97
90
  'org-limit-default': orgLimitDefaultCmd,
98
91
  'org-limit-credit': orgLimitCreditCmd,
92
+ 'app-limit-warning': appLimitWarningCmd,
93
+ 'org-limit-warning': orgLimitWarningCmd,
99
94
  'org-chart-edge-grant': orgChartEdgeGrantCmd,
100
95
  'app-claimed-invite': appClaimedInviteCmd,
101
96
  'app-grant': appGrantCmd,
@@ -107,13 +102,12 @@ const createCommandMap = () => ({
107
102
  'org-grant': orgGrantCmd,
108
103
  'org-chart-edge': orgChartEdgeCmd,
109
104
  'usage-snapshot': usageSnapshotCmd,
110
- 'org-member-profile': orgMemberProfileCmd,
111
- 'app-level': appLevelCmd,
112
105
  'app-limit': appLimitCmd,
113
106
  'app-invite': appInviteCmd,
114
107
  'org-membership-setting': orgMembershipSettingCmd,
115
108
  'org-limit-aggregate': orgLimitAggregateCmd,
116
109
  'org-limit': orgLimitCmd,
110
+ 'org-member-profile': orgMemberProfileCmd,
117
111
  'app-membership': appMembershipCmd,
118
112
  'org-invite': orgInviteCmd,
119
113
  'org-membership': orgMembershipCmd,
@@ -122,17 +116,15 @@ const createCommandMap = () => ({
122
116
  'org-is-manager-of': orgIsManagerOfCmd,
123
117
  'app-permissions-get-mask': appPermissionsGetMaskCmd,
124
118
  'org-permissions-get-mask': orgPermissionsGetMaskCmd,
125
- 'steps-achieved': stepsAchievedCmd,
126
119
  'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd,
127
120
  'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd,
128
121
  'app-permissions-get-by-mask': appPermissionsGetByMaskCmd,
129
122
  'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd,
130
- 'steps-required': stepsRequiredCmd,
131
123
  'submit-app-invite-code': submitAppInviteCodeCmd,
132
124
  'submit-org-invite-code': submitOrgInviteCodeCmd,
133
125
  'provision-bucket': provisionBucketCmd,
134
126
  });
135
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-level appLevel CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n app-membership appMembership CRUD operations\n org-invite orgInvite CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
127
+ const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n app-limit-warning appLimitWarning CRUD operations\n org-limit-warning orgLimitWarning CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-membership appMembership CRUD operations\n org-invite orgInvite CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
136
128
  export const commands = async (argv, prompter, options) => {
137
129
  if (argv.help || argv.h) {
138
130
  console.log(usage);