@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
@@ -19,7 +19,6 @@ const fieldSchema = {
19
19
  operator: 'string',
20
20
  paramName: 'string',
21
21
  category: 'string',
22
- scope: 'int',
23
22
  tags: 'string',
24
23
  createdAt: 'string',
25
24
  updatedAt: 'string',
@@ -76,7 +75,6 @@ async function handleList(argv, _prompter) {
76
75
  operator: true,
77
76
  paramName: true,
78
77
  category: true,
79
- scope: true,
80
78
  tags: true,
81
79
  createdAt: true,
82
80
  updatedAt: true,
@@ -107,7 +105,6 @@ async function handleFindFirst(argv, _prompter) {
107
105
  operator: true,
108
106
  paramName: true,
109
107
  category: true,
110
- scope: true,
111
108
  tags: true,
112
109
  createdAt: true,
113
110
  updatedAt: true,
@@ -150,7 +147,6 @@ async function handleGet(argv, prompter) {
150
147
  operator: true,
151
148
  paramName: true,
152
149
  category: true,
153
- scope: true,
154
150
  tags: true,
155
151
  createdAt: true,
156
152
  updatedAt: true,
@@ -227,13 +223,6 @@ async function handleCreate(argv, prompter) {
227
223
  required: false,
228
224
  skipPrompt: true,
229
225
  },
230
- {
231
- type: 'text',
232
- name: 'scope',
233
- message: 'scope',
234
- required: false,
235
- skipPrompt: true,
236
- },
237
226
  {
238
227
  type: 'text',
239
228
  name: 'tags',
@@ -257,7 +246,6 @@ async function handleCreate(argv, prompter) {
257
246
  operator: cleanedData.operator,
258
247
  paramName: cleanedData.paramName,
259
248
  category: cleanedData.category,
260
- scope: cleanedData.scope,
261
249
  tags: cleanedData.tags,
262
250
  },
263
251
  select: {
@@ -271,7 +259,6 @@ async function handleCreate(argv, prompter) {
271
259
  operator: true,
272
260
  paramName: true,
273
261
  category: true,
274
- scope: true,
275
262
  tags: true,
276
263
  createdAt: true,
277
264
  updatedAt: true,
@@ -354,13 +341,6 @@ async function handleUpdate(argv, prompter) {
354
341
  required: false,
355
342
  skipPrompt: true,
356
343
  },
357
- {
358
- type: 'text',
359
- name: 'scope',
360
- message: 'scope',
361
- required: false,
362
- skipPrompt: true,
363
- },
364
344
  {
365
345
  type: 'text',
366
346
  name: 'tags',
@@ -387,7 +367,6 @@ async function handleUpdate(argv, prompter) {
387
367
  operator: cleanedData.operator,
388
368
  paramName: cleanedData.paramName,
389
369
  category: cleanedData.category,
390
- scope: cleanedData.scope,
391
370
  tags: cleanedData.tags,
392
371
  },
393
372
  select: {
@@ -401,7 +380,6 @@ async function handleUpdate(argv, prompter) {
401
380
  operator: true,
402
381
  paramName: true,
403
382
  category: true,
404
- scope: true,
405
383
  tags: true,
406
384
  createdAt: true,
407
385
  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
  useRls: 'boolean',
22
21
  timestamps: 'boolean',
23
22
  peoplestamps: 'boolean',
@@ -82,7 +81,6 @@ async function handleList(argv, _prompter) {
82
81
  description: true,
83
82
  smartTags: true,
84
83
  category: true,
85
- scope: true,
86
84
  useRls: true,
87
85
  timestamps: true,
88
86
  peoplestamps: true,
@@ -121,7 +119,6 @@ async function handleFindFirst(argv, _prompter) {
121
119
  description: true,
122
120
  smartTags: true,
123
121
  category: true,
124
- scope: true,
125
122
  useRls: true,
126
123
  timestamps: true,
127
124
  peoplestamps: true,
@@ -172,7 +169,6 @@ async function handleGet(argv, prompter) {
172
169
  description: true,
173
170
  smartTags: true,
174
171
  category: true,
175
- scope: true,
176
172
  useRls: true,
177
173
  timestamps: true,
178
174
  peoplestamps: true,
@@ -249,13 +245,6 @@ async function handleCreate(argv, prompter) {
249
245
  required: false,
250
246
  skipPrompt: true,
251
247
  },
252
- {
253
- type: 'text',
254
- name: 'scope',
255
- message: 'scope',
256
- required: false,
257
- skipPrompt: true,
258
- },
259
248
  {
260
249
  type: 'boolean',
261
250
  name: 'useRls',
@@ -347,7 +336,6 @@ async function handleCreate(argv, prompter) {
347
336
  description: cleanedData.description,
348
337
  smartTags: cleanedData.smartTags,
349
338
  category: cleanedData.category,
350
- scope: cleanedData.scope,
351
339
  useRls: cleanedData.useRls,
352
340
  timestamps: cleanedData.timestamps,
353
341
  peoplestamps: cleanedData.peoplestamps,
@@ -369,7 +357,6 @@ async function handleCreate(argv, prompter) {
369
357
  description: true,
370
358
  smartTags: true,
371
359
  category: true,
372
- scope: true,
373
360
  useRls: true,
374
361
  timestamps: true,
375
362
  peoplestamps: true,
@@ -452,13 +439,6 @@ async function handleUpdate(argv, prompter) {
452
439
  required: false,
453
440
  skipPrompt: true,
454
441
  },
455
- {
456
- type: 'text',
457
- name: 'scope',
458
- message: 'scope',
459
- required: false,
460
- skipPrompt: true,
461
- },
462
442
  {
463
443
  type: 'boolean',
464
444
  name: 'useRls',
@@ -553,7 +533,6 @@ async function handleUpdate(argv, prompter) {
553
533
  description: cleanedData.description,
554
534
  smartTags: cleanedData.smartTags,
555
535
  category: cleanedData.category,
556
- scope: cleanedData.scope,
557
536
  useRls: cleanedData.useRls,
558
537
  timestamps: cleanedData.timestamps,
559
538
  peoplestamps: cleanedData.peoplestamps,
@@ -575,7 +554,6 @@ async function handleUpdate(argv, prompter) {
575
554
  description: true,
576
555
  smartTags: true,
577
556
  category: true,
578
- scope: true,
579
557
  useRls: true,
580
558
  timestamps: true,
581
559
  peoplestamps: true,
@@ -17,7 +17,6 @@ const fieldSchema = {
17
17
  functionName: 'string',
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
  functionName: 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
  functionName: 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
  functionName: 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
  functionName: cleanedData.functionName,
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
  functionName: 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
  functionName: cleanedData.functionName,
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
  functionName: true,
366
345
  smartTags: true,
367
346
  category: true,
368
- scope: true,
369
347
  tags: true,
370
348
  createdAt: true,
371
349
  updatedAt: true,
@@ -18,7 +18,6 @@ const fieldSchema = {
18
18
  type: 'string',
19
19
  fieldIds: 'uuid',
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
  type: true,
75
74
  fieldIds: 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
  type: true,
105
103
  fieldIds: 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
  type: true,
147
144
  fieldIds: 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
  type: cleanedData.type,
250
239
  fieldIds: cleanedData.fieldIds,
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
  type: true,
263
251
  fieldIds: 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
  type: cleanedData.type,
375
355
  fieldIds: cleanedData.fieldIds,
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
  type: true,
388
367
  fieldIds: true,
389
368
  category: true,
390
- scope: true,
391
369
  tags: true,
392
370
  createdAt: true,
393
371
  updatedAt: true,
@@ -22,7 +22,6 @@ const fieldSchema = {
22
22
  isReadOnly: 'boolean',
23
23
  smartTags: 'json',
24
24
  category: 'string',
25
- scope: 'int',
26
25
  tags: 'string',
27
26
  };
28
27
  const usage = '\nview <command>\n\nCommands:\n list List view records\n find-first Find first matching view record\n get Get a view by ID\n create Create a new view\n update Update an existing view\n delete Delete a view\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';
@@ -80,7 +79,6 @@ async function handleList(argv, _prompter) {
80
79
  isReadOnly: true,
81
80
  smartTags: true,
82
81
  category: true,
83
- scope: true,
84
82
  tags: true,
85
83
  };
86
84
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
@@ -112,7 +110,6 @@ async function handleFindFirst(argv, _prompter) {
112
110
  isReadOnly: true,
113
111
  smartTags: true,
114
112
  category: true,
115
- scope: true,
116
113
  tags: true,
117
114
  };
118
115
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
@@ -156,7 +153,6 @@ async function handleGet(argv, prompter) {
156
153
  isReadOnly: true,
157
154
  smartTags: true,
158
155
  category: true,
159
- scope: true,
160
156
  tags: true,
161
157
  },
162
158
  })
@@ -255,13 +251,6 @@ async function handleCreate(argv, prompter) {
255
251
  required: false,
256
252
  skipPrompt: true,
257
253
  },
258
- {
259
- type: 'text',
260
- name: 'scope',
261
- message: 'scope',
262
- required: false,
263
- skipPrompt: true,
264
- },
265
254
  {
266
255
  type: 'text',
267
256
  name: 'tags',
@@ -288,7 +277,6 @@ async function handleCreate(argv, prompter) {
288
277
  isReadOnly: cleanedData.isReadOnly,
289
278
  smartTags: cleanedData.smartTags,
290
279
  category: cleanedData.category,
291
- scope: cleanedData.scope,
292
280
  tags: cleanedData.tags,
293
281
  },
294
282
  select: {
@@ -305,7 +293,6 @@ async function handleCreate(argv, prompter) {
305
293
  isReadOnly: true,
306
294
  smartTags: true,
307
295
  category: true,
308
- scope: true,
309
296
  tags: true,
310
297
  },
311
298
  })
@@ -410,13 +397,6 @@ async function handleUpdate(argv, prompter) {
410
397
  required: false,
411
398
  skipPrompt: true,
412
399
  },
413
- {
414
- type: 'text',
415
- name: 'scope',
416
- message: 'scope',
417
- required: false,
418
- skipPrompt: true,
419
- },
420
400
  {
421
401
  type: 'text',
422
402
  name: 'tags',
@@ -446,7 +426,6 @@ async function handleUpdate(argv, prompter) {
446
426
  isReadOnly: cleanedData.isReadOnly,
447
427
  smartTags: cleanedData.smartTags,
448
428
  category: cleanedData.category,
449
- scope: cleanedData.scope,
450
429
  tags: cleanedData.tags,
451
430
  },
452
431
  select: {
@@ -463,7 +442,6 @@ async function handleUpdate(argv, prompter) {
463
442
  isReadOnly: true,
464
443
  smartTags: true,
465
444
  category: true,
466
- scope: true,
467
445
  tags: true,
468
446
  },
469
447
  })