@constructive-sdk/cli 0.29.1 → 0.29.2

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 (199) hide show
  1. package/api/cli/commands/api.js +44 -0
  2. package/api/cli/commands/check-constraint.js +0 -22
  3. package/api/cli/commands/composite-type.js +0 -22
  4. package/api/cli/commands/database-setting.js +44 -0
  5. package/api/cli/commands/domain.js +66 -0
  6. package/api/cli/commands/enum.js +0 -22
  7. package/api/cli/commands/field.js +0 -22
  8. package/api/cli/commands/foreign-key-constraint.js +0 -22
  9. package/api/cli/commands/index.js +0 -22
  10. package/api/cli/commands/policy.js +0 -22
  11. package/api/cli/commands/primary-key-constraint.js +0 -22
  12. package/api/cli/commands/schema.js +0 -22
  13. package/api/cli/commands/site.js +44 -0
  14. package/api/cli/commands/spatial-relation.js +0 -22
  15. package/api/cli/commands/table.js +0 -22
  16. package/api/cli/commands/trigger.js +0 -22
  17. package/api/cli/commands/unique-constraint.js +0 -22
  18. package/api/cli/commands/view.js +0 -22
  19. package/api/orm/input-types.d.ts +144 -171
  20. package/auth/cli/commands/create-org-api-key.d.ts +8 -0
  21. package/auth/cli/commands/create-org-api-key.js +36 -0
  22. package/auth/cli/commands/create-org-principal.d.ts +8 -0
  23. package/auth/cli/commands/create-org-principal.js +36 -0
  24. package/auth/cli/commands/delete-org-principal.d.ts +8 -0
  25. package/auth/cli/commands/delete-org-principal.js +36 -0
  26. package/auth/cli/commands/org-api-key-list.d.ts +8 -0
  27. package/auth/cli/commands/org-api-key-list.js +224 -0
  28. package/auth/cli/commands/principal-entity.d.ts +8 -0
  29. package/auth/cli/commands/principal-entity.js +282 -0
  30. package/auth/cli/commands/principal-scope-override.d.ts +8 -0
  31. package/auth/cli/commands/principal-scope-override.js +171 -0
  32. package/auth/cli/commands/principal.d.ts +8 -0
  33. package/auth/cli/commands/principal.js +171 -0
  34. package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  35. package/auth/cli/commands/revoke-org-api-key.js +36 -0
  36. package/auth/cli/commands.js +19 -3
  37. package/auth/cli/executor.d.ts +28 -4
  38. package/auth/orm/index.d.ts +32 -4
  39. package/auth/orm/index.js +8 -0
  40. package/auth/orm/input-types.d.ts +915 -145
  41. package/auth/orm/input-types.js +7 -0
  42. package/auth/orm/models/index.d.ts +4 -0
  43. package/auth/orm/models/index.js +9 -1
  44. package/auth/orm/models/orgApiKeyList.d.ts +36 -0
  45. package/auth/orm/models/orgApiKeyList.js +80 -0
  46. package/auth/orm/models/principal.d.ts +45 -0
  47. package/auth/orm/models/principal.js +93 -0
  48. package/auth/orm/models/principalEntity.d.ts +54 -0
  49. package/auth/orm/models/principalEntity.js +104 -0
  50. package/auth/orm/models/principalScopeOverride.d.ts +36 -0
  51. package/auth/orm/models/principalScopeOverride.js +80 -0
  52. package/auth/orm/mutation/index.d.ts +33 -1
  53. package/auth/orm/mutation/index.js +48 -0
  54. package/auth/orm/query/index.d.ts +4 -4
  55. package/auth/orm/query/index.js +7 -7
  56. package/compute/cli/commands/function-graph-execution.js +0 -22
  57. package/compute/cli/commands/function-graph.js +0 -20
  58. package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  59. package/compute/cli/commands/platform-namespace-event.js +510 -0
  60. package/compute/cli/commands/platform-namespace.d.ts +8 -0
  61. package/compute/cli/commands/platform-namespace.js +436 -0
  62. package/compute/cli/commands/resource-event.d.ts +8 -0
  63. package/compute/cli/commands/resource-event.js +356 -0
  64. package/compute/cli/commands/resource.d.ts +8 -0
  65. package/compute/cli/commands/resource.js +520 -0
  66. package/compute/cli/commands.js +13 -5
  67. package/compute/cli/executor.d.ts +10 -6
  68. package/compute/orm/index.d.ts +15 -7
  69. package/compute/orm/index.js +10 -2
  70. package/compute/orm/input-types.d.ts +1159 -221
  71. package/compute/orm/input-types.js +4 -0
  72. package/compute/orm/models/index.d.ts +5 -1
  73. package/compute/orm/models/index.js +11 -3
  74. package/compute/orm/models/platformNamespace.d.ts +54 -0
  75. package/compute/orm/models/platformNamespace.js +104 -0
  76. package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  77. package/compute/orm/models/platformNamespaceEvent.js +107 -0
  78. package/compute/orm/models/resource.d.ts +54 -0
  79. package/compute/orm/models/resource.js +104 -0
  80. package/compute/orm/models/resourceEvent.d.ts +56 -0
  81. package/compute/orm/models/resourceEvent.js +107 -0
  82. package/compute/orm/mutation/index.d.ts +9 -9
  83. package/compute/orm/mutation/index.js +12 -12
  84. package/esm/api/cli/commands/api.js +44 -0
  85. package/esm/api/cli/commands/check-constraint.js +0 -22
  86. package/esm/api/cli/commands/composite-type.js +0 -22
  87. package/esm/api/cli/commands/database-setting.js +44 -0
  88. package/esm/api/cli/commands/domain.js +66 -0
  89. package/esm/api/cli/commands/enum.js +0 -22
  90. package/esm/api/cli/commands/field.js +0 -22
  91. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  92. package/esm/api/cli/commands/index.js +0 -22
  93. package/esm/api/cli/commands/policy.js +0 -22
  94. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  95. package/esm/api/cli/commands/schema.js +0 -22
  96. package/esm/api/cli/commands/site.js +44 -0
  97. package/esm/api/cli/commands/spatial-relation.js +0 -22
  98. package/esm/api/cli/commands/table.js +0 -22
  99. package/esm/api/cli/commands/trigger.js +0 -22
  100. package/esm/api/cli/commands/unique-constraint.js +0 -22
  101. package/esm/api/cli/commands/view.js +0 -22
  102. package/esm/api/orm/input-types.d.ts +144 -171
  103. package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
  104. package/esm/auth/cli/commands/create-org-api-key.js +34 -0
  105. package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
  106. package/esm/auth/cli/commands/create-org-principal.js +34 -0
  107. package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
  108. package/esm/auth/cli/commands/delete-org-principal.js +34 -0
  109. package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
  110. package/esm/auth/cli/commands/org-api-key-list.js +222 -0
  111. package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
  112. package/esm/auth/cli/commands/principal-entity.js +280 -0
  113. package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
  114. package/esm/auth/cli/commands/principal-scope-override.js +169 -0
  115. package/esm/auth/cli/commands/principal.d.ts +8 -0
  116. package/esm/auth/cli/commands/principal.js +169 -0
  117. package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  118. package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
  119. package/esm/auth/cli/commands.js +19 -3
  120. package/esm/auth/cli/executor.d.ts +28 -4
  121. package/esm/auth/orm/index.d.ts +32 -4
  122. package/esm/auth/orm/index.js +8 -0
  123. package/esm/auth/orm/input-types.d.ts +915 -145
  124. package/esm/auth/orm/input-types.js +7 -0
  125. package/esm/auth/orm/models/index.d.ts +4 -0
  126. package/esm/auth/orm/models/index.js +4 -0
  127. package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
  128. package/esm/auth/orm/models/orgApiKeyList.js +76 -0
  129. package/esm/auth/orm/models/principal.d.ts +45 -0
  130. package/esm/auth/orm/models/principal.js +89 -0
  131. package/esm/auth/orm/models/principalEntity.d.ts +54 -0
  132. package/esm/auth/orm/models/principalEntity.js +100 -0
  133. package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
  134. package/esm/auth/orm/models/principalScopeOverride.js +76 -0
  135. package/esm/auth/orm/mutation/index.d.ts +33 -1
  136. package/esm/auth/orm/mutation/index.js +48 -0
  137. package/esm/auth/orm/query/index.d.ts +4 -4
  138. package/esm/auth/orm/query/index.js +7 -7
  139. package/esm/compute/cli/commands/function-graph-execution.js +0 -22
  140. package/esm/compute/cli/commands/function-graph.js +0 -20
  141. package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  142. package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
  143. package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
  144. package/esm/compute/cli/commands/platform-namespace.js +434 -0
  145. package/esm/compute/cli/commands/resource-event.d.ts +8 -0
  146. package/esm/compute/cli/commands/resource-event.js +354 -0
  147. package/esm/compute/cli/commands/resource.d.ts +8 -0
  148. package/esm/compute/cli/commands/resource.js +518 -0
  149. package/esm/compute/cli/commands.js +13 -5
  150. package/esm/compute/cli/executor.d.ts +10 -6
  151. package/esm/compute/orm/index.d.ts +15 -7
  152. package/esm/compute/orm/index.js +10 -2
  153. package/esm/compute/orm/input-types.d.ts +1159 -221
  154. package/esm/compute/orm/input-types.js +4 -0
  155. package/esm/compute/orm/models/index.d.ts +5 -1
  156. package/esm/compute/orm/models/index.js +5 -1
  157. package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
  158. package/esm/compute/orm/models/platformNamespace.js +100 -0
  159. package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  160. package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
  161. package/esm/compute/orm/models/resource.d.ts +54 -0
  162. package/esm/compute/orm/models/resource.js +100 -0
  163. package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
  164. package/esm/compute/orm/models/resourceEvent.js +103 -0
  165. package/esm/compute/orm/mutation/index.d.ts +9 -9
  166. package/esm/compute/orm/mutation/index.js +12 -12
  167. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  168. package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
  169. package/esm/modules/cli/commands/principal-auth-module.js +580 -0
  170. package/esm/modules/cli/commands/resource-module.d.ts +8 -0
  171. package/esm/modules/cli/commands/resource-module.js +602 -0
  172. package/esm/modules/cli/commands.js +9 -5
  173. package/esm/modules/cli/executor.d.ts +4 -2
  174. package/esm/modules/orm/index.d.ts +8 -4
  175. package/esm/modules/orm/index.js +8 -4
  176. package/esm/modules/orm/input-types.d.ts +868 -411
  177. package/esm/modules/orm/models/index.d.ts +4 -2
  178. package/esm/modules/orm/models/index.js +4 -2
  179. package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
  180. package/esm/modules/orm/models/principalAuthModule.js +100 -0
  181. package/esm/modules/orm/models/resourceModule.d.ts +54 -0
  182. package/esm/modules/orm/models/resourceModule.js +100 -0
  183. package/modules/cli/commands/merkle-store-module.js +22 -0
  184. package/modules/cli/commands/principal-auth-module.d.ts +8 -0
  185. package/modules/cli/commands/principal-auth-module.js +582 -0
  186. package/modules/cli/commands/resource-module.d.ts +8 -0
  187. package/modules/cli/commands/resource-module.js +604 -0
  188. package/modules/cli/commands.js +9 -5
  189. package/modules/cli/executor.d.ts +4 -2
  190. package/modules/orm/index.d.ts +8 -4
  191. package/modules/orm/index.js +8 -4
  192. package/modules/orm/input-types.d.ts +868 -411
  193. package/modules/orm/models/index.d.ts +4 -2
  194. package/modules/orm/models/index.js +10 -6
  195. package/modules/orm/models/principalAuthModule.d.ts +54 -0
  196. package/modules/orm/models/principalAuthModule.js +104 -0
  197. package/modules/orm/models/resourceModule.d.ts +54 -0
  198. package/modules/orm/models/resourceModule.js +104 -0
  199. package/package.json +4 -4
@@ -16,6 +16,8 @@ const fieldSchema = {
16
16
  roleName: 'string',
17
17
  anonRole: 'string',
18
18
  isPublic: 'boolean',
19
+ labels: 'json',
20
+ annotations: 'json',
19
21
  };
20
22
  const usage = '\napi <command>\n\nCommands:\n list List api records\n find-first Find first matching api record\n get Get a api by ID\n create Create a new api\n update Update an existing api\n delete Delete a api\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
23
  exports.default = async (argv, prompter, _options) => {
@@ -66,6 +68,8 @@ async function handleList(argv, _prompter) {
66
68
  roleName: true,
67
69
  anonRole: true,
68
70
  isPublic: true,
71
+ labels: true,
72
+ annotations: true,
69
73
  };
70
74
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
71
75
  const client = (0, executor_1.getClient)();
@@ -90,6 +94,8 @@ async function handleFindFirst(argv, _prompter) {
90
94
  roleName: true,
91
95
  anonRole: true,
92
96
  isPublic: true,
97
+ labels: true,
98
+ annotations: true,
93
99
  };
94
100
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
95
101
  const client = (0, executor_1.getClient)();
@@ -126,6 +132,8 @@ async function handleGet(argv, prompter) {
126
132
  roleName: true,
127
133
  anonRole: true,
128
134
  isPublic: true,
135
+ labels: true,
136
+ annotations: true,
129
137
  },
130
138
  })
131
139
  .execute();
@@ -182,6 +190,20 @@ async function handleCreate(argv, prompter) {
182
190
  required: false,
183
191
  skipPrompt: true,
184
192
  },
193
+ {
194
+ type: 'json',
195
+ name: 'labels',
196
+ message: 'labels',
197
+ required: false,
198
+ skipPrompt: true,
199
+ },
200
+ {
201
+ type: 'json',
202
+ name: 'annotations',
203
+ message: 'annotations',
204
+ required: false,
205
+ skipPrompt: true,
206
+ },
185
207
  ]);
186
208
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
187
209
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -195,6 +217,8 @@ async function handleCreate(argv, prompter) {
195
217
  roleName: cleanedData.roleName,
196
218
  anonRole: cleanedData.anonRole,
197
219
  isPublic: cleanedData.isPublic,
220
+ labels: cleanedData.labels,
221
+ annotations: cleanedData.annotations,
198
222
  },
199
223
  select: {
200
224
  id: true,
@@ -204,6 +228,8 @@ async function handleCreate(argv, prompter) {
204
228
  roleName: true,
205
229
  anonRole: true,
206
230
  isPublic: true,
231
+ labels: true,
232
+ annotations: true,
207
233
  },
208
234
  })
209
235
  .execute();
@@ -266,6 +292,20 @@ async function handleUpdate(argv, prompter) {
266
292
  required: false,
267
293
  skipPrompt: true,
268
294
  },
295
+ {
296
+ type: 'json',
297
+ name: 'labels',
298
+ message: 'labels',
299
+ required: false,
300
+ skipPrompt: true,
301
+ },
302
+ {
303
+ type: 'json',
304
+ name: 'annotations',
305
+ message: 'annotations',
306
+ required: false,
307
+ skipPrompt: true,
308
+ },
269
309
  ]);
270
310
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
271
311
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -282,6 +322,8 @@ async function handleUpdate(argv, prompter) {
282
322
  roleName: cleanedData.roleName,
283
323
  anonRole: cleanedData.anonRole,
284
324
  isPublic: cleanedData.isPublic,
325
+ labels: cleanedData.labels,
326
+ annotations: cleanedData.annotations,
285
327
  },
286
328
  select: {
287
329
  id: true,
@@ -291,6 +333,8 @@ async function handleUpdate(argv, prompter) {
291
333
  roleName: true,
292
334
  anonRole: true,
293
335
  isPublic: true,
336
+ labels: true,
337
+ annotations: true,
294
338
  },
295
339
  })
296
340
  .execute();
@@ -18,7 +18,6 @@ const fieldSchema = {
18
18
  expr: 'json',
19
19
  smartTags: 'json',
20
20
  category: 'string',
21
- scope: 'int',
22
21
  tags: 'string',
23
22
  createdAt: 'string',
24
23
  updatedAt: 'string',
@@ -74,7 +73,6 @@ async function handleList(argv, _prompter) {
74
73
  expr: true,
75
74
  smartTags: true,
76
75
  category: true,
77
- scope: true,
78
76
  tags: true,
79
77
  createdAt: true,
80
78
  updatedAt: true,
@@ -104,7 +102,6 @@ async function handleFindFirst(argv, _prompter) {
104
102
  expr: true,
105
103
  smartTags: true,
106
104
  category: true,
107
- scope: true,
108
105
  tags: true,
109
106
  createdAt: true,
110
107
  updatedAt: true,
@@ -146,7 +143,6 @@ async function handleGet(argv, prompter) {
146
143
  expr: true,
147
144
  smartTags: true,
148
145
  category: true,
149
- scope: true,
150
146
  tags: true,
151
147
  createdAt: true,
152
148
  updatedAt: true,
@@ -220,13 +216,6 @@ async function handleCreate(argv, prompter) {
220
216
  required: false,
221
217
  skipPrompt: true,
222
218
  },
223
- {
224
- type: 'text',
225
- name: 'scope',
226
- message: 'scope',
227
- required: false,
228
- skipPrompt: true,
229
- },
230
219
  {
231
220
  type: 'text',
232
221
  name: 'tags',
@@ -249,7 +238,6 @@ async function handleCreate(argv, prompter) {
249
238
  expr: cleanedData.expr,
250
239
  smartTags: cleanedData.smartTags,
251
240
  category: cleanedData.category,
252
- scope: cleanedData.scope,
253
241
  tags: cleanedData.tags,
254
242
  },
255
243
  select: {
@@ -262,7 +250,6 @@ async function handleCreate(argv, prompter) {
262
250
  expr: true,
263
251
  smartTags: true,
264
252
  category: true,
265
- scope: true,
266
253
  tags: true,
267
254
  createdAt: true,
268
255
  updatedAt: true,
@@ -342,13 +329,6 @@ async function handleUpdate(argv, prompter) {
342
329
  required: false,
343
330
  skipPrompt: true,
344
331
  },
345
- {
346
- type: 'text',
347
- name: 'scope',
348
- message: 'scope',
349
- required: false,
350
- skipPrompt: true,
351
- },
352
332
  {
353
333
  type: 'text',
354
334
  name: 'tags',
@@ -374,7 +354,6 @@ async function handleUpdate(argv, prompter) {
374
354
  expr: cleanedData.expr,
375
355
  smartTags: cleanedData.smartTags,
376
356
  category: cleanedData.category,
377
- scope: cleanedData.scope,
378
357
  tags: cleanedData.tags,
379
358
  },
380
359
  select: {
@@ -387,7 +366,6 @@ async function handleUpdate(argv, prompter) {
387
366
  expr: true,
388
367
  smartTags: true,
389
368
  category: true,
390
- scope: true,
391
369
  tags: true,
392
370
  createdAt: true,
393
371
  updatedAt: true,
@@ -18,7 +18,6 @@ const fieldSchema = {
18
18
  attributes: 'json',
19
19
  smartTags: 'json',
20
20
  category: 'string',
21
- scope: 'int',
22
21
  tags: 'string',
23
22
  };
24
23
  const usage = '\ncomposite-type <command>\n\nCommands:\n list List compositeType records\n find-first Find first matching compositeType record\n get Get a compositeType by ID\n create Create a new compositeType\n update Update an existing compositeType\n delete Delete a compositeType\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';
@@ -72,7 +71,6 @@ async function handleList(argv, _prompter) {
72
71
  attributes: true,
73
72
  smartTags: true,
74
73
  category: true,
75
- scope: true,
76
74
  tags: true,
77
75
  };
78
76
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
@@ -100,7 +98,6 @@ async function handleFindFirst(argv, _prompter) {
100
98
  attributes: true,
101
99
  smartTags: true,
102
100
  category: true,
103
- scope: true,
104
101
  tags: true,
105
102
  };
106
103
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
@@ -140,7 +137,6 @@ async function handleGet(argv, prompter) {
140
137
  attributes: true,
141
138
  smartTags: true,
142
139
  category: true,
143
- scope: true,
144
140
  tags: true,
145
141
  },
146
142
  })
@@ -211,13 +207,6 @@ async function handleCreate(argv, prompter) {
211
207
  required: false,
212
208
  skipPrompt: true,
213
209
  },
214
- {
215
- type: 'text',
216
- name: 'scope',
217
- message: 'scope',
218
- required: false,
219
- skipPrompt: true,
220
- },
221
210
  {
222
211
  type: 'text',
223
212
  name: 'tags',
@@ -240,7 +229,6 @@ async function handleCreate(argv, prompter) {
240
229
  attributes: cleanedData.attributes,
241
230
  smartTags: cleanedData.smartTags,
242
231
  category: cleanedData.category,
243
- scope: cleanedData.scope,
244
232
  tags: cleanedData.tags,
245
233
  },
246
234
  select: {
@@ -253,7 +241,6 @@ async function handleCreate(argv, prompter) {
253
241
  attributes: true,
254
242
  smartTags: true,
255
243
  category: true,
256
- scope: true,
257
244
  tags: true,
258
245
  },
259
246
  })
@@ -330,13 +317,6 @@ async function handleUpdate(argv, prompter) {
330
317
  required: false,
331
318
  skipPrompt: true,
332
319
  },
333
- {
334
- type: 'text',
335
- name: 'scope',
336
- message: 'scope',
337
- required: false,
338
- skipPrompt: true,
339
- },
340
320
  {
341
321
  type: 'text',
342
322
  name: 'tags',
@@ -362,7 +342,6 @@ async function handleUpdate(argv, prompter) {
362
342
  attributes: cleanedData.attributes,
363
343
  smartTags: cleanedData.smartTags,
364
344
  category: cleanedData.category,
365
- scope: cleanedData.scope,
366
345
  tags: cleanedData.tags,
367
346
  },
368
347
  select: {
@@ -375,7 +354,6 @@ async function handleUpdate(argv, prompter) {
375
354
  attributes: true,
376
355
  smartTags: true,
377
356
  category: true,
378
- scope: true,
379
357
  tags: true,
380
358
  },
381
359
  })
@@ -24,6 +24,8 @@ const fieldSchema = {
24
24
  enableBulk: 'boolean',
25
25
  enableI18N: 'boolean',
26
26
  options: 'json',
27
+ labels: 'json',
28
+ annotations: 'json',
27
29
  };
28
30
  const usage = '\ndatabase-setting <command>\n\nCommands:\n list List databaseSetting records\n find-first Find first matching databaseSetting record\n get Get a databaseSetting by ID\n create Create a new databaseSetting\n update Update an existing databaseSetting\n delete Delete a databaseSetting\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';
29
31
  exports.default = async (argv, prompter, _options) => {
@@ -82,6 +84,8 @@ async function handleList(argv, _prompter) {
82
84
  enableBulk: true,
83
85
  enableI18N: true,
84
86
  options: true,
87
+ labels: true,
88
+ annotations: true,
85
89
  };
86
90
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
87
91
  const client = (0, executor_1.getClient)();
@@ -114,6 +118,8 @@ async function handleFindFirst(argv, _prompter) {
114
118
  enableBulk: true,
115
119
  enableI18N: true,
116
120
  options: true,
121
+ labels: true,
122
+ annotations: true,
117
123
  };
118
124
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
119
125
  const client = (0, executor_1.getClient)();
@@ -158,6 +164,8 @@ async function handleGet(argv, prompter) {
158
164
  enableBulk: true,
159
165
  enableI18N: true,
160
166
  options: true,
167
+ labels: true,
168
+ annotations: true,
161
169
  },
162
170
  })
163
171
  .execute();
@@ -271,6 +279,20 @@ async function handleCreate(argv, prompter) {
271
279
  required: false,
272
280
  skipPrompt: true,
273
281
  },
282
+ {
283
+ type: 'json',
284
+ name: 'labels',
285
+ message: 'labels',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'json',
291
+ name: 'annotations',
292
+ message: 'annotations',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
274
296
  ]);
275
297
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
276
298
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -292,6 +314,8 @@ async function handleCreate(argv, prompter) {
292
314
  enableBulk: cleanedData.enableBulk,
293
315
  enableI18N: cleanedData.enableI18N,
294
316
  options: cleanedData.options,
317
+ labels: cleanedData.labels,
318
+ annotations: cleanedData.annotations,
295
319
  },
296
320
  select: {
297
321
  id: true,
@@ -309,6 +333,8 @@ async function handleCreate(argv, prompter) {
309
333
  enableBulk: true,
310
334
  enableI18N: true,
311
335
  options: true,
336
+ labels: true,
337
+ annotations: true,
312
338
  },
313
339
  })
314
340
  .execute();
@@ -428,6 +454,20 @@ async function handleUpdate(argv, prompter) {
428
454
  required: false,
429
455
  skipPrompt: true,
430
456
  },
457
+ {
458
+ type: 'json',
459
+ name: 'labels',
460
+ message: 'labels',
461
+ required: false,
462
+ skipPrompt: true,
463
+ },
464
+ {
465
+ type: 'json',
466
+ name: 'annotations',
467
+ message: 'annotations',
468
+ required: false,
469
+ skipPrompt: true,
470
+ },
431
471
  ]);
432
472
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
433
473
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -452,6 +492,8 @@ async function handleUpdate(argv, prompter) {
452
492
  enableBulk: cleanedData.enableBulk,
453
493
  enableI18N: cleanedData.enableI18N,
454
494
  options: cleanedData.options,
495
+ labels: cleanedData.labels,
496
+ annotations: cleanedData.annotations,
455
497
  },
456
498
  select: {
457
499
  id: true,
@@ -469,6 +511,8 @@ async function handleUpdate(argv, prompter) {
469
511
  enableBulk: true,
470
512
  enableI18N: true,
471
513
  options: true,
514
+ labels: true,
515
+ annotations: true,
472
516
  },
473
517
  })
474
518
  .execute();
@@ -13,8 +13,11 @@ const fieldSchema = {
13
13
  databaseId: 'uuid',
14
14
  apiId: 'uuid',
15
15
  siteId: 'uuid',
16
+ serviceId: 'uuid',
16
17
  subdomain: 'string',
17
18
  domain: 'string',
19
+ labels: 'json',
20
+ annotations: 'json',
18
21
  };
19
22
  const usage = '\ndomain <command>\n\nCommands:\n list List domain records\n find-first Find first matching domain record\n get Get a domain by ID\n create Create a new domain\n update Update an existing domain\n delete Delete a domain\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';
20
23
  exports.default = async (argv, prompter, _options) => {
@@ -62,8 +65,11 @@ async function handleList(argv, _prompter) {
62
65
  databaseId: true,
63
66
  apiId: true,
64
67
  siteId: true,
68
+ serviceId: true,
65
69
  subdomain: true,
66
70
  domain: true,
71
+ labels: true,
72
+ annotations: true,
67
73
  };
68
74
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
69
75
  const client = (0, executor_1.getClient)();
@@ -85,8 +91,11 @@ async function handleFindFirst(argv, _prompter) {
85
91
  databaseId: true,
86
92
  apiId: true,
87
93
  siteId: true,
94
+ serviceId: true,
88
95
  subdomain: true,
89
96
  domain: true,
97
+ labels: true,
98
+ annotations: true,
90
99
  };
91
100
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
92
101
  const client = (0, executor_1.getClient)();
@@ -120,8 +129,11 @@ async function handleGet(argv, prompter) {
120
129
  databaseId: true,
121
130
  apiId: true,
122
131
  siteId: true,
132
+ serviceId: true,
123
133
  subdomain: true,
124
134
  domain: true,
135
+ labels: true,
136
+ annotations: true,
125
137
  },
126
138
  })
127
139
  .execute();
@@ -158,6 +170,13 @@ async function handleCreate(argv, prompter) {
158
170
  required: false,
159
171
  skipPrompt: true,
160
172
  },
173
+ {
174
+ type: 'text',
175
+ name: 'serviceId',
176
+ message: 'serviceId',
177
+ required: false,
178
+ skipPrompt: true,
179
+ },
161
180
  {
162
181
  type: 'text',
163
182
  name: 'subdomain',
@@ -172,6 +191,20 @@ async function handleCreate(argv, prompter) {
172
191
  required: false,
173
192
  skipPrompt: true,
174
193
  },
194
+ {
195
+ type: 'json',
196
+ name: 'labels',
197
+ message: 'labels',
198
+ required: false,
199
+ skipPrompt: true,
200
+ },
201
+ {
202
+ type: 'json',
203
+ name: 'annotations',
204
+ message: 'annotations',
205
+ required: false,
206
+ skipPrompt: true,
207
+ },
175
208
  ]);
176
209
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
177
210
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -182,16 +215,22 @@ async function handleCreate(argv, prompter) {
182
215
  databaseId: cleanedData.databaseId,
183
216
  apiId: cleanedData.apiId,
184
217
  siteId: cleanedData.siteId,
218
+ serviceId: cleanedData.serviceId,
185
219
  subdomain: cleanedData.subdomain,
186
220
  domain: cleanedData.domain,
221
+ labels: cleanedData.labels,
222
+ annotations: cleanedData.annotations,
187
223
  },
188
224
  select: {
189
225
  id: true,
190
226
  databaseId: true,
191
227
  apiId: true,
192
228
  siteId: true,
229
+ serviceId: true,
193
230
  subdomain: true,
194
231
  domain: true,
232
+ labels: true,
233
+ annotations: true,
195
234
  },
196
235
  })
197
236
  .execute();
@@ -234,6 +273,13 @@ async function handleUpdate(argv, prompter) {
234
273
  required: false,
235
274
  skipPrompt: true,
236
275
  },
276
+ {
277
+ type: 'text',
278
+ name: 'serviceId',
279
+ message: 'serviceId',
280
+ required: false,
281
+ skipPrompt: true,
282
+ },
237
283
  {
238
284
  type: 'text',
239
285
  name: 'subdomain',
@@ -248,6 +294,20 @@ async function handleUpdate(argv, prompter) {
248
294
  required: false,
249
295
  skipPrompt: true,
250
296
  },
297
+ {
298
+ type: 'json',
299
+ name: 'labels',
300
+ message: 'labels',
301
+ required: false,
302
+ skipPrompt: true,
303
+ },
304
+ {
305
+ type: 'json',
306
+ name: 'annotations',
307
+ message: 'annotations',
308
+ required: false,
309
+ skipPrompt: true,
310
+ },
251
311
  ]);
252
312
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
253
313
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -261,16 +321,22 @@ async function handleUpdate(argv, prompter) {
261
321
  databaseId: cleanedData.databaseId,
262
322
  apiId: cleanedData.apiId,
263
323
  siteId: cleanedData.siteId,
324
+ serviceId: cleanedData.serviceId,
264
325
  subdomain: cleanedData.subdomain,
265
326
  domain: cleanedData.domain,
327
+ labels: cleanedData.labels,
328
+ annotations: cleanedData.annotations,
266
329
  },
267
330
  select: {
268
331
  id: true,
269
332
  databaseId: true,
270
333
  apiId: true,
271
334
  siteId: true,
335
+ serviceId: true,
272
336
  subdomain: true,
273
337
  domain: true,
338
+ labels: true,
339
+ annotations: true,
274
340
  },
275
341
  })
276
342
  .execute();
@@ -18,7 +18,6 @@ const fieldSchema = {
18
18
  values: 'string',
19
19
  smartTags: 'json',
20
20
  category: 'string',
21
- scope: 'int',
22
21
  tags: 'string',
23
22
  };
24
23
  const usage = '\nenum <command>\n\nCommands:\n list List enum records\n find-first Find first matching enum record\n get Get a enum by ID\n create Create a new enum\n update Update an existing enum\n delete Delete a enum\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';
@@ -72,7 +71,6 @@ async function handleList(argv, _prompter) {
72
71
  values: true,
73
72
  smartTags: true,
74
73
  category: true,
75
- scope: true,
76
74
  tags: true,
77
75
  };
78
76
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
@@ -100,7 +98,6 @@ async function handleFindFirst(argv, _prompter) {
100
98
  values: true,
101
99
  smartTags: true,
102
100
  category: true,
103
- scope: true,
104
101
  tags: true,
105
102
  };
106
103
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
@@ -140,7 +137,6 @@ async function handleGet(argv, prompter) {
140
137
  values: true,
141
138
  smartTags: true,
142
139
  category: true,
143
- scope: true,
144
140
  tags: true,
145
141
  },
146
142
  })
@@ -211,13 +207,6 @@ async function handleCreate(argv, prompter) {
211
207
  required: false,
212
208
  skipPrompt: true,
213
209
  },
214
- {
215
- type: 'text',
216
- name: 'scope',
217
- message: 'scope',
218
- required: false,
219
- skipPrompt: true,
220
- },
221
210
  {
222
211
  type: 'text',
223
212
  name: 'tags',
@@ -240,7 +229,6 @@ async function handleCreate(argv, prompter) {
240
229
  values: cleanedData.values,
241
230
  smartTags: cleanedData.smartTags,
242
231
  category: cleanedData.category,
243
- scope: cleanedData.scope,
244
232
  tags: cleanedData.tags,
245
233
  },
246
234
  select: {
@@ -253,7 +241,6 @@ async function handleCreate(argv, prompter) {
253
241
  values: true,
254
242
  smartTags: true,
255
243
  category: true,
256
- scope: true,
257
244
  tags: true,
258
245
  },
259
246
  })
@@ -330,13 +317,6 @@ async function handleUpdate(argv, prompter) {
330
317
  required: false,
331
318
  skipPrompt: true,
332
319
  },
333
- {
334
- type: 'text',
335
- name: 'scope',
336
- message: 'scope',
337
- required: false,
338
- skipPrompt: true,
339
- },
340
320
  {
341
321
  type: 'text',
342
322
  name: 'tags',
@@ -362,7 +342,6 @@ async function handleUpdate(argv, prompter) {
362
342
  values: cleanedData.values,
363
343
  smartTags: cleanedData.smartTags,
364
344
  category: cleanedData.category,
365
- scope: cleanedData.scope,
366
345
  tags: cleanedData.tags,
367
346
  },
368
347
  select: {
@@ -375,7 +354,6 @@ async function handleUpdate(argv, prompter) {
375
354
  values: true,
376
355
  smartTags: true,
377
356
  category: true,
378
- scope: true,
379
357
  tags: true,
380
358
  },
381
359
  })