@constructive-sdk/cli 0.29.0 → 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 +5 -5
@@ -28,7 +28,6 @@ const fieldSchema = {
28
28
  max: 'float',
29
29
  tags: 'string',
30
30
  category: 'string',
31
- scope: 'int',
32
31
  createdAt: 'string',
33
32
  updatedAt: 'string',
34
33
  };
@@ -93,7 +92,6 @@ async function handleList(argv, _prompter) {
93
92
  max: true,
94
93
  tags: true,
95
94
  category: true,
96
- scope: true,
97
95
  createdAt: true,
98
96
  updatedAt: true,
99
97
  };
@@ -132,7 +130,6 @@ async function handleFindFirst(argv, _prompter) {
132
130
  max: true,
133
131
  tags: true,
134
132
  category: true,
135
- scope: true,
136
133
  createdAt: true,
137
134
  updatedAt: true,
138
135
  };
@@ -183,7 +180,6 @@ async function handleGet(argv, prompter) {
183
180
  max: true,
184
181
  tags: true,
185
182
  category: true,
186
- scope: true,
187
183
  createdAt: true,
188
184
  updatedAt: true,
189
185
  },
@@ -325,13 +321,6 @@ async function handleCreate(argv, prompter) {
325
321
  required: false,
326
322
  skipPrompt: true,
327
323
  },
328
- {
329
- type: 'text',
330
- name: 'scope',
331
- message: 'scope',
332
- required: false,
333
- skipPrompt: true,
334
- },
335
324
  ]);
336
325
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
337
326
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -357,7 +346,6 @@ async function handleCreate(argv, prompter) {
357
346
  max: cleanedData.max,
358
347
  tags: cleanedData.tags,
359
348
  category: cleanedData.category,
360
- scope: cleanedData.scope,
361
349
  },
362
350
  select: {
363
351
  id: true,
@@ -379,7 +367,6 @@ async function handleCreate(argv, prompter) {
379
367
  max: true,
380
368
  tags: true,
381
369
  category: true,
382
- scope: true,
383
370
  createdAt: true,
384
371
  updatedAt: true,
385
372
  },
@@ -527,13 +514,6 @@ async function handleUpdate(argv, prompter) {
527
514
  required: false,
528
515
  skipPrompt: true,
529
516
  },
530
- {
531
- type: 'text',
532
- name: 'scope',
533
- message: 'scope',
534
- required: false,
535
- skipPrompt: true,
536
- },
537
517
  ]);
538
518
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
539
519
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -562,7 +542,6 @@ async function handleUpdate(argv, prompter) {
562
542
  max: cleanedData.max,
563
543
  tags: cleanedData.tags,
564
544
  category: cleanedData.category,
565
- scope: cleanedData.scope,
566
545
  },
567
546
  select: {
568
547
  id: true,
@@ -584,7 +563,6 @@ async function handleUpdate(argv, prompter) {
584
563
  max: true,
585
564
  tags: true,
586
565
  category: true,
587
- scope: true,
588
566
  createdAt: true,
589
567
  updatedAt: true,
590
568
  },
@@ -22,7 +22,6 @@ const fieldSchema = {
22
22
  deleteAction: 'string',
23
23
  updateAction: 'string',
24
24
  category: 'string',
25
- scope: 'int',
26
25
  tags: 'string',
27
26
  createdAt: 'string',
28
27
  updatedAt: 'string',
@@ -82,7 +81,6 @@ async function handleList(argv, _prompter) {
82
81
  deleteAction: true,
83
82
  updateAction: true,
84
83
  category: true,
85
- scope: true,
86
84
  tags: true,
87
85
  createdAt: true,
88
86
  updatedAt: true,
@@ -116,7 +114,6 @@ async function handleFindFirst(argv, _prompter) {
116
114
  deleteAction: true,
117
115
  updateAction: true,
118
116
  category: true,
119
- scope: true,
120
117
  tags: true,
121
118
  createdAt: true,
122
119
  updatedAt: true,
@@ -162,7 +159,6 @@ async function handleGet(argv, prompter) {
162
159
  deleteAction: true,
163
160
  updateAction: true,
164
161
  category: true,
165
- scope: true,
166
162
  tags: true,
167
163
  createdAt: true,
168
164
  updatedAt: true,
@@ -262,13 +258,6 @@ async function handleCreate(argv, prompter) {
262
258
  required: false,
263
259
  skipPrompt: true,
264
260
  },
265
- {
266
- type: 'text',
267
- name: 'scope',
268
- message: 'scope',
269
- required: false,
270
- skipPrompt: true,
271
- },
272
261
  {
273
262
  type: 'text',
274
263
  name: 'tags',
@@ -295,7 +284,6 @@ async function handleCreate(argv, prompter) {
295
284
  deleteAction: cleanedData.deleteAction,
296
285
  updateAction: cleanedData.updateAction,
297
286
  category: cleanedData.category,
298
- scope: cleanedData.scope,
299
287
  tags: cleanedData.tags,
300
288
  },
301
289
  select: {
@@ -312,7 +300,6 @@ async function handleCreate(argv, prompter) {
312
300
  deleteAction: true,
313
301
  updateAction: true,
314
302
  category: true,
315
- scope: true,
316
303
  tags: true,
317
304
  createdAt: true,
318
305
  updatedAt: true,
@@ -418,13 +405,6 @@ async function handleUpdate(argv, prompter) {
418
405
  required: false,
419
406
  skipPrompt: true,
420
407
  },
421
- {
422
- type: 'text',
423
- name: 'scope',
424
- message: 'scope',
425
- required: false,
426
- skipPrompt: true,
427
- },
428
408
  {
429
409
  type: 'text',
430
410
  name: 'tags',
@@ -454,7 +434,6 @@ async function handleUpdate(argv, prompter) {
454
434
  deleteAction: cleanedData.deleteAction,
455
435
  updateAction: cleanedData.updateAction,
456
436
  category: cleanedData.category,
457
- scope: cleanedData.scope,
458
437
  tags: cleanedData.tags,
459
438
  },
460
439
  select: {
@@ -471,7 +450,6 @@ async function handleUpdate(argv, prompter) {
471
450
  deleteAction: true,
472
451
  updateAction: true,
473
452
  category: true,
474
- scope: true,
475
453
  tags: true,
476
454
  createdAt: true,
477
455
  updatedAt: true,
@@ -23,7 +23,6 @@ const fieldSchema = {
23
23
  opClasses: 'string',
24
24
  smartTags: 'json',
25
25
  category: 'string',
26
- scope: 'int',
27
26
  tags: 'string',
28
27
  createdAt: 'string',
29
28
  updatedAt: 'string',
@@ -84,7 +83,6 @@ async function handleList(argv, _prompter) {
84
83
  opClasses: true,
85
84
  smartTags: true,
86
85
  category: true,
87
- scope: true,
88
86
  tags: true,
89
87
  createdAt: true,
90
88
  updatedAt: true,
@@ -119,7 +117,6 @@ async function handleFindFirst(argv, _prompter) {
119
117
  opClasses: true,
120
118
  smartTags: true,
121
119
  category: true,
122
- scope: true,
123
120
  tags: true,
124
121
  createdAt: true,
125
122
  updatedAt: true,
@@ -166,7 +163,6 @@ async function handleGet(argv, prompter) {
166
163
  opClasses: true,
167
164
  smartTags: true,
168
165
  category: true,
169
- scope: true,
170
166
  tags: true,
171
167
  createdAt: true,
172
168
  updatedAt: true,
@@ -275,13 +271,6 @@ async function handleCreate(argv, prompter) {
275
271
  required: false,
276
272
  skipPrompt: true,
277
273
  },
278
- {
279
- type: 'text',
280
- name: 'scope',
281
- message: 'scope',
282
- required: false,
283
- skipPrompt: true,
284
- },
285
274
  {
286
275
  type: 'text',
287
276
  name: 'tags',
@@ -309,7 +298,6 @@ async function handleCreate(argv, prompter) {
309
298
  opClasses: cleanedData.opClasses,
310
299
  smartTags: cleanedData.smartTags,
311
300
  category: cleanedData.category,
312
- scope: cleanedData.scope,
313
301
  tags: cleanedData.tags,
314
302
  },
315
303
  select: {
@@ -327,7 +315,6 @@ async function handleCreate(argv, prompter) {
327
315
  opClasses: true,
328
316
  smartTags: true,
329
317
  category: true,
330
- scope: true,
331
318
  tags: true,
332
319
  createdAt: true,
333
320
  updatedAt: true,
@@ -442,13 +429,6 @@ async function handleUpdate(argv, prompter) {
442
429
  required: false,
443
430
  skipPrompt: true,
444
431
  },
445
- {
446
- type: 'text',
447
- name: 'scope',
448
- message: 'scope',
449
- required: false,
450
- skipPrompt: true,
451
- },
452
432
  {
453
433
  type: 'text',
454
434
  name: 'tags',
@@ -479,7 +459,6 @@ async function handleUpdate(argv, prompter) {
479
459
  opClasses: cleanedData.opClasses,
480
460
  smartTags: cleanedData.smartTags,
481
461
  category: cleanedData.category,
482
- scope: cleanedData.scope,
483
462
  tags: cleanedData.tags,
484
463
  },
485
464
  select: {
@@ -497,7 +476,6 @@ async function handleUpdate(argv, prompter) {
497
476
  opClasses: true,
498
477
  smartTags: true,
499
478
  category: true,
500
- scope: true,
501
479
  tags: true,
502
480
  createdAt: true,
503
481
  updatedAt: true,
@@ -21,7 +21,6 @@ const fieldSchema = {
21
21
  data: 'json',
22
22
  smartTags: 'json',
23
23
  category: 'string',
24
- scope: 'int',
25
24
  tags: 'string',
26
25
  createdAt: 'string',
27
26
  updatedAt: 'string',
@@ -80,7 +79,6 @@ async function handleList(argv, _prompter) {
80
79
  data: true,
81
80
  smartTags: true,
82
81
  category: true,
83
- scope: true,
84
82
  tags: true,
85
83
  createdAt: true,
86
84
  updatedAt: true,
@@ -113,7 +111,6 @@ async function handleFindFirst(argv, _prompter) {
113
111
  data: true,
114
112
  smartTags: true,
115
113
  category: true,
116
- scope: true,
117
114
  tags: true,
118
115
  createdAt: true,
119
116
  updatedAt: true,
@@ -158,7 +155,6 @@ async function handleGet(argv, prompter) {
158
155
  data: true,
159
156
  smartTags: true,
160
157
  category: true,
161
- scope: true,
162
158
  tags: true,
163
159
  createdAt: true,
164
160
  updatedAt: true,
@@ -254,13 +250,6 @@ async function handleCreate(argv, prompter) {
254
250
  required: false,
255
251
  skipPrompt: true,
256
252
  },
257
- {
258
- type: 'text',
259
- name: 'scope',
260
- message: 'scope',
261
- required: false,
262
- skipPrompt: true,
263
- },
264
253
  {
265
254
  type: 'text',
266
255
  name: 'tags',
@@ -286,7 +275,6 @@ async function handleCreate(argv, prompter) {
286
275
  data: cleanedData.data,
287
276
  smartTags: cleanedData.smartTags,
288
277
  category: cleanedData.category,
289
- scope: cleanedData.scope,
290
278
  tags: cleanedData.tags,
291
279
  },
292
280
  select: {
@@ -302,7 +290,6 @@ async function handleCreate(argv, prompter) {
302
290
  data: true,
303
291
  smartTags: true,
304
292
  category: true,
305
- scope: true,
306
293
  tags: true,
307
294
  createdAt: true,
308
295
  updatedAt: true,
@@ -404,13 +391,6 @@ async function handleUpdate(argv, prompter) {
404
391
  required: false,
405
392
  skipPrompt: true,
406
393
  },
407
- {
408
- type: 'text',
409
- name: 'scope',
410
- message: 'scope',
411
- required: false,
412
- skipPrompt: true,
413
- },
414
394
  {
415
395
  type: 'text',
416
396
  name: 'tags',
@@ -439,7 +419,6 @@ async function handleUpdate(argv, prompter) {
439
419
  data: cleanedData.data,
440
420
  smartTags: cleanedData.smartTags,
441
421
  category: cleanedData.category,
442
- scope: cleanedData.scope,
443
422
  tags: cleanedData.tags,
444
423
  },
445
424
  select: {
@@ -455,7 +434,6 @@ async function handleUpdate(argv, prompter) {
455
434
  data: true,
456
435
  smartTags: true,
457
436
  category: true,
458
- scope: true,
459
437
  tags: true,
460
438
  createdAt: true,
461
439
  updatedAt: true,
@@ -17,7 +17,6 @@ const fieldSchema = {
17
17
  fieldIds: 'uuid',
18
18
  smartTags: 'json',
19
19
  category: 'string',
20
- scope: 'int',
21
20
  tags: 'string',
22
21
  createdAt: 'string',
23
22
  updatedAt: 'string',
@@ -72,7 +71,6 @@ async function handleList(argv, _prompter) {
72
71
  fieldIds: true,
73
72
  smartTags: true,
74
73
  category: true,
75
- scope: true,
76
74
  tags: true,
77
75
  createdAt: true,
78
76
  updatedAt: true,
@@ -101,7 +99,6 @@ async function handleFindFirst(argv, _prompter) {
101
99
  fieldIds: true,
102
100
  smartTags: true,
103
101
  category: true,
104
- scope: true,
105
102
  tags: true,
106
103
  createdAt: true,
107
104
  updatedAt: true,
@@ -142,7 +139,6 @@ async function handleGet(argv, prompter) {
142
139
  fieldIds: true,
143
140
  smartTags: true,
144
141
  category: true,
145
- scope: true,
146
142
  tags: true,
147
143
  createdAt: true,
148
144
  updatedAt: true,
@@ -209,13 +205,6 @@ async function handleCreate(argv, prompter) {
209
205
  required: false,
210
206
  skipPrompt: true,
211
207
  },
212
- {
213
- type: 'text',
214
- name: 'scope',
215
- message: 'scope',
216
- required: false,
217
- skipPrompt: true,
218
- },
219
208
  {
220
209
  type: 'text',
221
210
  name: 'tags',
@@ -237,7 +226,6 @@ async function handleCreate(argv, prompter) {
237
226
  fieldIds: cleanedData.fieldIds,
238
227
  smartTags: cleanedData.smartTags,
239
228
  category: cleanedData.category,
240
- scope: cleanedData.scope,
241
229
  tags: cleanedData.tags,
242
230
  },
243
231
  select: {
@@ -249,7 +237,6 @@ async function handleCreate(argv, prompter) {
249
237
  fieldIds: true,
250
238
  smartTags: true,
251
239
  category: true,
252
- scope: true,
253
240
  tags: true,
254
241
  createdAt: true,
255
242
  updatedAt: true,
@@ -322,13 +309,6 @@ async function handleUpdate(argv, prompter) {
322
309
  required: false,
323
310
  skipPrompt: true,
324
311
  },
325
- {
326
- type: 'text',
327
- name: 'scope',
328
- message: 'scope',
329
- required: false,
330
- skipPrompt: true,
331
- },
332
312
  {
333
313
  type: 'text',
334
314
  name: 'tags',
@@ -353,7 +333,6 @@ async function handleUpdate(argv, prompter) {
353
333
  fieldIds: cleanedData.fieldIds,
354
334
  smartTags: cleanedData.smartTags,
355
335
  category: cleanedData.category,
356
- scope: cleanedData.scope,
357
336
  tags: cleanedData.tags,
358
337
  },
359
338
  select: {
@@ -365,7 +344,6 @@ async function handleUpdate(argv, prompter) {
365
344
  fieldIds: true,
366
345
  smartTags: true,
367
346
  category: true,
368
- scope: true,
369
347
  tags: true,
370
348
  createdAt: true,
371
349
  updatedAt: true,
@@ -17,7 +17,6 @@ const fieldSchema = {
17
17
  description: 'string',
18
18
  smartTags: 'json',
19
19
  category: 'string',
20
- scope: 'int',
21
20
  tags: 'string',
22
21
  isPublic: 'boolean',
23
22
  apiExposure: 'string',
@@ -74,7 +73,6 @@ async function handleList(argv, _prompter) {
74
73
  description: true,
75
74
  smartTags: true,
76
75
  category: true,
77
- scope: true,
78
76
  tags: true,
79
77
  isPublic: true,
80
78
  apiExposure: true,
@@ -105,7 +103,6 @@ async function handleFindFirst(argv, _prompter) {
105
103
  description: true,
106
104
  smartTags: true,
107
105
  category: true,
108
- scope: true,
109
106
  tags: true,
110
107
  isPublic: true,
111
108
  apiExposure: true,
@@ -148,7 +145,6 @@ async function handleGet(argv, prompter) {
148
145
  description: true,
149
146
  smartTags: true,
150
147
  category: true,
151
- scope: true,
152
148
  tags: true,
153
149
  isPublic: true,
154
150
  apiExposure: true,
@@ -216,13 +212,6 @@ async function handleCreate(argv, prompter) {
216
212
  required: false,
217
213
  skipPrompt: true,
218
214
  },
219
- {
220
- type: 'text',
221
- name: 'scope',
222
- message: 'scope',
223
- required: false,
224
- skipPrompt: true,
225
- },
226
215
  {
227
216
  type: 'text',
228
217
  name: 'tags',
@@ -258,7 +247,6 @@ async function handleCreate(argv, prompter) {
258
247
  description: cleanedData.description,
259
248
  smartTags: cleanedData.smartTags,
260
249
  category: cleanedData.category,
261
- scope: cleanedData.scope,
262
250
  tags: cleanedData.tags,
263
251
  isPublic: cleanedData.isPublic,
264
252
  apiExposure: cleanedData.apiExposure,
@@ -272,7 +260,6 @@ async function handleCreate(argv, prompter) {
272
260
  description: true,
273
261
  smartTags: true,
274
262
  category: true,
275
- scope: true,
276
263
  tags: true,
277
264
  isPublic: true,
278
265
  apiExposure: true,
@@ -346,13 +333,6 @@ async function handleUpdate(argv, prompter) {
346
333
  required: false,
347
334
  skipPrompt: true,
348
335
  },
349
- {
350
- type: 'text',
351
- name: 'scope',
352
- message: 'scope',
353
- required: false,
354
- skipPrompt: true,
355
- },
356
336
  {
357
337
  type: 'text',
358
338
  name: 'tags',
@@ -391,7 +371,6 @@ async function handleUpdate(argv, prompter) {
391
371
  description: cleanedData.description,
392
372
  smartTags: cleanedData.smartTags,
393
373
  category: cleanedData.category,
394
- scope: cleanedData.scope,
395
374
  tags: cleanedData.tags,
396
375
  isPublic: cleanedData.isPublic,
397
376
  apiExposure: cleanedData.apiExposure,
@@ -405,7 +384,6 @@ async function handleUpdate(argv, prompter) {
405
384
  description: true,
406
385
  smartTags: true,
407
386
  category: true,
408
- scope: true,
409
387
  tags: true,
410
388
  isPublic: true,
411
389
  apiExposure: true,
@@ -18,6 +18,8 @@ const fieldSchema = {
18
18
  appleTouchIcon: 'string',
19
19
  logo: 'string',
20
20
  dbname: 'string',
21
+ labels: 'json',
22
+ annotations: 'json',
21
23
  };
22
24
  const usage = '\nsite <command>\n\nCommands:\n list List site records\n find-first Find first matching site record\n get Get a site by ID\n create Create a new site\n update Update an existing site\n delete Delete a site\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';
23
25
  exports.default = async (argv, prompter, _options) => {
@@ -70,6 +72,8 @@ async function handleList(argv, _prompter) {
70
72
  appleTouchIcon: true,
71
73
  logo: true,
72
74
  dbname: true,
75
+ labels: true,
76
+ annotations: true,
73
77
  };
74
78
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
75
79
  const client = (0, executor_1.getClient)();
@@ -96,6 +100,8 @@ async function handleFindFirst(argv, _prompter) {
96
100
  appleTouchIcon: true,
97
101
  logo: true,
98
102
  dbname: true,
103
+ labels: true,
104
+ annotations: true,
99
105
  };
100
106
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
101
107
  const client = (0, executor_1.getClient)();
@@ -134,6 +140,8 @@ async function handleGet(argv, prompter) {
134
140
  appleTouchIcon: true,
135
141
  logo: true,
136
142
  dbname: true,
143
+ labels: true,
144
+ annotations: true,
137
145
  },
138
146
  })
139
147
  .execute();
@@ -205,6 +213,20 @@ async function handleCreate(argv, prompter) {
205
213
  required: false,
206
214
  skipPrompt: true,
207
215
  },
216
+ {
217
+ type: 'json',
218
+ name: 'labels',
219
+ message: 'labels',
220
+ required: false,
221
+ skipPrompt: true,
222
+ },
223
+ {
224
+ type: 'json',
225
+ name: 'annotations',
226
+ message: 'annotations',
227
+ required: false,
228
+ skipPrompt: true,
229
+ },
208
230
  ]);
209
231
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
210
232
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -220,6 +242,8 @@ async function handleCreate(argv, prompter) {
220
242
  appleTouchIcon: cleanedData.appleTouchIcon,
221
243
  logo: cleanedData.logo,
222
244
  dbname: cleanedData.dbname,
245
+ labels: cleanedData.labels,
246
+ annotations: cleanedData.annotations,
223
247
  },
224
248
  select: {
225
249
  id: true,
@@ -231,6 +255,8 @@ async function handleCreate(argv, prompter) {
231
255
  appleTouchIcon: true,
232
256
  logo: true,
233
257
  dbname: true,
258
+ labels: true,
259
+ annotations: true,
234
260
  },
235
261
  })
236
262
  .execute();
@@ -308,6 +334,20 @@ async function handleUpdate(argv, prompter) {
308
334
  required: false,
309
335
  skipPrompt: true,
310
336
  },
337
+ {
338
+ type: 'json',
339
+ name: 'labels',
340
+ message: 'labels',
341
+ required: false,
342
+ skipPrompt: true,
343
+ },
344
+ {
345
+ type: 'json',
346
+ name: 'annotations',
347
+ message: 'annotations',
348
+ required: false,
349
+ skipPrompt: true,
350
+ },
311
351
  ]);
312
352
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
313
353
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -326,6 +366,8 @@ async function handleUpdate(argv, prompter) {
326
366
  appleTouchIcon: cleanedData.appleTouchIcon,
327
367
  logo: cleanedData.logo,
328
368
  dbname: cleanedData.dbname,
369
+ labels: cleanedData.labels,
370
+ annotations: cleanedData.annotations,
329
371
  },
330
372
  select: {
331
373
  id: true,
@@ -337,6 +379,8 @@ async function handleUpdate(argv, prompter) {
337
379
  appleTouchIcon: true,
338
380
  logo: true,
339
381
  dbname: true,
382
+ labels: true,
383
+ annotations: true,
340
384
  },
341
385
  })
342
386
  .execute();