@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
@@ -15,7 +15,6 @@ const fieldSchema = {
15
15
  description: 'string',
16
16
  smartTags: 'json',
17
17
  category: 'string',
18
- scope: 'int',
19
18
  tags: 'string',
20
19
  isPublic: 'boolean',
21
20
  apiExposure: 'string',
@@ -72,7 +71,6 @@ async function handleList(argv, _prompter) {
72
71
  description: true,
73
72
  smartTags: true,
74
73
  category: true,
75
- scope: true,
76
74
  tags: true,
77
75
  isPublic: true,
78
76
  apiExposure: true,
@@ -103,7 +101,6 @@ async function handleFindFirst(argv, _prompter) {
103
101
  description: true,
104
102
  smartTags: true,
105
103
  category: true,
106
- scope: true,
107
104
  tags: true,
108
105
  isPublic: true,
109
106
  apiExposure: true,
@@ -146,7 +143,6 @@ async function handleGet(argv, prompter) {
146
143
  description: true,
147
144
  smartTags: true,
148
145
  category: true,
149
- scope: true,
150
146
  tags: true,
151
147
  isPublic: true,
152
148
  apiExposure: true,
@@ -214,13 +210,6 @@ async function handleCreate(argv, prompter) {
214
210
  required: false,
215
211
  skipPrompt: true,
216
212
  },
217
- {
218
- type: 'text',
219
- name: 'scope',
220
- message: 'scope',
221
- required: false,
222
- skipPrompt: true,
223
- },
224
213
  {
225
214
  type: 'text',
226
215
  name: 'tags',
@@ -256,7 +245,6 @@ async function handleCreate(argv, prompter) {
256
245
  description: cleanedData.description,
257
246
  smartTags: cleanedData.smartTags,
258
247
  category: cleanedData.category,
259
- scope: cleanedData.scope,
260
248
  tags: cleanedData.tags,
261
249
  isPublic: cleanedData.isPublic,
262
250
  apiExposure: cleanedData.apiExposure,
@@ -270,7 +258,6 @@ async function handleCreate(argv, prompter) {
270
258
  description: true,
271
259
  smartTags: true,
272
260
  category: true,
273
- scope: true,
274
261
  tags: true,
275
262
  isPublic: true,
276
263
  apiExposure: true,
@@ -344,13 +331,6 @@ async function handleUpdate(argv, prompter) {
344
331
  required: false,
345
332
  skipPrompt: true,
346
333
  },
347
- {
348
- type: 'text',
349
- name: 'scope',
350
- message: 'scope',
351
- required: false,
352
- skipPrompt: true,
353
- },
354
334
  {
355
335
  type: 'text',
356
336
  name: 'tags',
@@ -389,7 +369,6 @@ async function handleUpdate(argv, prompter) {
389
369
  description: cleanedData.description,
390
370
  smartTags: cleanedData.smartTags,
391
371
  category: cleanedData.category,
392
- scope: cleanedData.scope,
393
372
  tags: cleanedData.tags,
394
373
  isPublic: cleanedData.isPublic,
395
374
  apiExposure: cleanedData.apiExposure,
@@ -403,7 +382,6 @@ async function handleUpdate(argv, prompter) {
403
382
  description: true,
404
383
  smartTags: true,
405
384
  category: true,
406
- scope: true,
407
385
  tags: true,
408
386
  isPublic: true,
409
387
  apiExposure: true,
@@ -16,6 +16,8 @@ const fieldSchema = {
16
16
  appleTouchIcon: 'string',
17
17
  logo: 'string',
18
18
  dbname: 'string',
19
+ labels: 'json',
20
+ annotations: 'json',
19
21
  };
20
22
  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';
21
23
  export default async (argv, prompter, _options) => {
@@ -68,6 +70,8 @@ async function handleList(argv, _prompter) {
68
70
  appleTouchIcon: true,
69
71
  logo: true,
70
72
  dbname: true,
73
+ labels: true,
74
+ annotations: true,
71
75
  };
72
76
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
73
77
  const client = getClient();
@@ -94,6 +98,8 @@ async function handleFindFirst(argv, _prompter) {
94
98
  appleTouchIcon: true,
95
99
  logo: true,
96
100
  dbname: true,
101
+ labels: true,
102
+ annotations: true,
97
103
  };
98
104
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
99
105
  const client = getClient();
@@ -132,6 +138,8 @@ async function handleGet(argv, prompter) {
132
138
  appleTouchIcon: true,
133
139
  logo: true,
134
140
  dbname: true,
141
+ labels: true,
142
+ annotations: true,
135
143
  },
136
144
  })
137
145
  .execute();
@@ -203,6 +211,20 @@ async function handleCreate(argv, prompter) {
203
211
  required: false,
204
212
  skipPrompt: true,
205
213
  },
214
+ {
215
+ type: 'json',
216
+ name: 'labels',
217
+ message: 'labels',
218
+ required: false,
219
+ skipPrompt: true,
220
+ },
221
+ {
222
+ type: 'json',
223
+ name: 'annotations',
224
+ message: 'annotations',
225
+ required: false,
226
+ skipPrompt: true,
227
+ },
206
228
  ]);
207
229
  const answers = coerceAnswers(rawAnswers, fieldSchema);
208
230
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -218,6 +240,8 @@ async function handleCreate(argv, prompter) {
218
240
  appleTouchIcon: cleanedData.appleTouchIcon,
219
241
  logo: cleanedData.logo,
220
242
  dbname: cleanedData.dbname,
243
+ labels: cleanedData.labels,
244
+ annotations: cleanedData.annotations,
221
245
  },
222
246
  select: {
223
247
  id: true,
@@ -229,6 +253,8 @@ async function handleCreate(argv, prompter) {
229
253
  appleTouchIcon: true,
230
254
  logo: true,
231
255
  dbname: true,
256
+ labels: true,
257
+ annotations: true,
232
258
  },
233
259
  })
234
260
  .execute();
@@ -306,6 +332,20 @@ async function handleUpdate(argv, prompter) {
306
332
  required: false,
307
333
  skipPrompt: true,
308
334
  },
335
+ {
336
+ type: 'json',
337
+ name: 'labels',
338
+ message: 'labels',
339
+ required: false,
340
+ skipPrompt: true,
341
+ },
342
+ {
343
+ type: 'json',
344
+ name: 'annotations',
345
+ message: 'annotations',
346
+ required: false,
347
+ skipPrompt: true,
348
+ },
309
349
  ]);
310
350
  const answers = coerceAnswers(rawAnswers, fieldSchema);
311
351
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -324,6 +364,8 @@ async function handleUpdate(argv, prompter) {
324
364
  appleTouchIcon: cleanedData.appleTouchIcon,
325
365
  logo: cleanedData.logo,
326
366
  dbname: cleanedData.dbname,
367
+ labels: cleanedData.labels,
368
+ annotations: cleanedData.annotations,
327
369
  },
328
370
  select: {
329
371
  id: true,
@@ -335,6 +377,8 @@ async function handleUpdate(argv, prompter) {
335
377
  appleTouchIcon: true,
336
378
  logo: true,
337
379
  dbname: true,
380
+ labels: true,
381
+ annotations: true,
338
382
  },
339
383
  })
340
384
  .execute();
@@ -17,7 +17,6 @@ const fieldSchema = {
17
17
  operator: 'string',
18
18
  paramName: 'string',
19
19
  category: 'string',
20
- scope: 'int',
21
20
  tags: 'string',
22
21
  createdAt: 'string',
23
22
  updatedAt: 'string',
@@ -74,7 +73,6 @@ async function handleList(argv, _prompter) {
74
73
  operator: true,
75
74
  paramName: true,
76
75
  category: true,
77
- scope: true,
78
76
  tags: true,
79
77
  createdAt: true,
80
78
  updatedAt: true,
@@ -105,7 +103,6 @@ async function handleFindFirst(argv, _prompter) {
105
103
  operator: true,
106
104
  paramName: true,
107
105
  category: true,
108
- scope: true,
109
106
  tags: true,
110
107
  createdAt: true,
111
108
  updatedAt: true,
@@ -148,7 +145,6 @@ async function handleGet(argv, prompter) {
148
145
  operator: true,
149
146
  paramName: true,
150
147
  category: true,
151
- scope: true,
152
148
  tags: true,
153
149
  createdAt: true,
154
150
  updatedAt: true,
@@ -225,13 +221,6 @@ async function handleCreate(argv, prompter) {
225
221
  required: false,
226
222
  skipPrompt: true,
227
223
  },
228
- {
229
- type: 'text',
230
- name: 'scope',
231
- message: 'scope',
232
- required: false,
233
- skipPrompt: true,
234
- },
235
224
  {
236
225
  type: 'text',
237
226
  name: 'tags',
@@ -255,7 +244,6 @@ async function handleCreate(argv, prompter) {
255
244
  operator: cleanedData.operator,
256
245
  paramName: cleanedData.paramName,
257
246
  category: cleanedData.category,
258
- scope: cleanedData.scope,
259
247
  tags: cleanedData.tags,
260
248
  },
261
249
  select: {
@@ -269,7 +257,6 @@ async function handleCreate(argv, prompter) {
269
257
  operator: true,
270
258
  paramName: true,
271
259
  category: true,
272
- scope: true,
273
260
  tags: true,
274
261
  createdAt: true,
275
262
  updatedAt: true,
@@ -352,13 +339,6 @@ async function handleUpdate(argv, prompter) {
352
339
  required: false,
353
340
  skipPrompt: true,
354
341
  },
355
- {
356
- type: 'text',
357
- name: 'scope',
358
- message: 'scope',
359
- required: false,
360
- skipPrompt: true,
361
- },
362
342
  {
363
343
  type: 'text',
364
344
  name: 'tags',
@@ -385,7 +365,6 @@ async function handleUpdate(argv, prompter) {
385
365
  operator: cleanedData.operator,
386
366
  paramName: cleanedData.paramName,
387
367
  category: cleanedData.category,
388
- scope: cleanedData.scope,
389
368
  tags: cleanedData.tags,
390
369
  },
391
370
  select: {
@@ -399,7 +378,6 @@ async function handleUpdate(argv, prompter) {
399
378
  operator: true,
400
379
  paramName: true,
401
380
  category: true,
402
- scope: true,
403
381
  tags: true,
404
382
  createdAt: true,
405
383
  updatedAt: true,
@@ -15,7 +15,6 @@ const fieldSchema = {
15
15
  description: 'string',
16
16
  smartTags: 'json',
17
17
  category: 'string',
18
- scope: 'int',
19
18
  useRls: 'boolean',
20
19
  timestamps: 'boolean',
21
20
  peoplestamps: 'boolean',
@@ -80,7 +79,6 @@ async function handleList(argv, _prompter) {
80
79
  description: true,
81
80
  smartTags: true,
82
81
  category: true,
83
- scope: true,
84
82
  useRls: true,
85
83
  timestamps: true,
86
84
  peoplestamps: true,
@@ -119,7 +117,6 @@ async function handleFindFirst(argv, _prompter) {
119
117
  description: true,
120
118
  smartTags: true,
121
119
  category: true,
122
- scope: true,
123
120
  useRls: true,
124
121
  timestamps: true,
125
122
  peoplestamps: true,
@@ -170,7 +167,6 @@ async function handleGet(argv, prompter) {
170
167
  description: true,
171
168
  smartTags: true,
172
169
  category: true,
173
- scope: true,
174
170
  useRls: true,
175
171
  timestamps: true,
176
172
  peoplestamps: true,
@@ -247,13 +243,6 @@ async function handleCreate(argv, prompter) {
247
243
  required: false,
248
244
  skipPrompt: true,
249
245
  },
250
- {
251
- type: 'text',
252
- name: 'scope',
253
- message: 'scope',
254
- required: false,
255
- skipPrompt: true,
256
- },
257
246
  {
258
247
  type: 'boolean',
259
248
  name: 'useRls',
@@ -345,7 +334,6 @@ async function handleCreate(argv, prompter) {
345
334
  description: cleanedData.description,
346
335
  smartTags: cleanedData.smartTags,
347
336
  category: cleanedData.category,
348
- scope: cleanedData.scope,
349
337
  useRls: cleanedData.useRls,
350
338
  timestamps: cleanedData.timestamps,
351
339
  peoplestamps: cleanedData.peoplestamps,
@@ -367,7 +355,6 @@ async function handleCreate(argv, prompter) {
367
355
  description: true,
368
356
  smartTags: true,
369
357
  category: true,
370
- scope: true,
371
358
  useRls: true,
372
359
  timestamps: true,
373
360
  peoplestamps: true,
@@ -450,13 +437,6 @@ async function handleUpdate(argv, prompter) {
450
437
  required: false,
451
438
  skipPrompt: true,
452
439
  },
453
- {
454
- type: 'text',
455
- name: 'scope',
456
- message: 'scope',
457
- required: false,
458
- skipPrompt: true,
459
- },
460
440
  {
461
441
  type: 'boolean',
462
442
  name: 'useRls',
@@ -551,7 +531,6 @@ async function handleUpdate(argv, prompter) {
551
531
  description: cleanedData.description,
552
532
  smartTags: cleanedData.smartTags,
553
533
  category: cleanedData.category,
554
- scope: cleanedData.scope,
555
534
  useRls: cleanedData.useRls,
556
535
  timestamps: cleanedData.timestamps,
557
536
  peoplestamps: cleanedData.peoplestamps,
@@ -573,7 +552,6 @@ async function handleUpdate(argv, prompter) {
573
552
  description: true,
574
553
  smartTags: true,
575
554
  category: true,
576
- scope: true,
577
555
  useRls: true,
578
556
  timestamps: true,
579
557
  peoplestamps: true,
@@ -15,7 +15,6 @@ const fieldSchema = {
15
15
  functionName: 'string',
16
16
  smartTags: 'json',
17
17
  category: 'string',
18
- scope: 'int',
19
18
  tags: 'string',
20
19
  createdAt: 'string',
21
20
  updatedAt: 'string',
@@ -70,7 +69,6 @@ async function handleList(argv, _prompter) {
70
69
  functionName: true,
71
70
  smartTags: true,
72
71
  category: true,
73
- scope: true,
74
72
  tags: true,
75
73
  createdAt: true,
76
74
  updatedAt: true,
@@ -99,7 +97,6 @@ async function handleFindFirst(argv, _prompter) {
99
97
  functionName: true,
100
98
  smartTags: true,
101
99
  category: true,
102
- scope: true,
103
100
  tags: true,
104
101
  createdAt: true,
105
102
  updatedAt: true,
@@ -140,7 +137,6 @@ async function handleGet(argv, prompter) {
140
137
  functionName: true,
141
138
  smartTags: true,
142
139
  category: true,
143
- scope: true,
144
140
  tags: true,
145
141
  createdAt: true,
146
142
  updatedAt: true,
@@ -207,13 +203,6 @@ async function handleCreate(argv, prompter) {
207
203
  required: false,
208
204
  skipPrompt: true,
209
205
  },
210
- {
211
- type: 'text',
212
- name: 'scope',
213
- message: 'scope',
214
- required: false,
215
- skipPrompt: true,
216
- },
217
206
  {
218
207
  type: 'text',
219
208
  name: 'tags',
@@ -235,7 +224,6 @@ async function handleCreate(argv, prompter) {
235
224
  functionName: cleanedData.functionName,
236
225
  smartTags: cleanedData.smartTags,
237
226
  category: cleanedData.category,
238
- scope: cleanedData.scope,
239
227
  tags: cleanedData.tags,
240
228
  },
241
229
  select: {
@@ -247,7 +235,6 @@ async function handleCreate(argv, prompter) {
247
235
  functionName: true,
248
236
  smartTags: true,
249
237
  category: true,
250
- scope: true,
251
238
  tags: true,
252
239
  createdAt: true,
253
240
  updatedAt: true,
@@ -320,13 +307,6 @@ async function handleUpdate(argv, prompter) {
320
307
  required: false,
321
308
  skipPrompt: true,
322
309
  },
323
- {
324
- type: 'text',
325
- name: 'scope',
326
- message: 'scope',
327
- required: false,
328
- skipPrompt: true,
329
- },
330
310
  {
331
311
  type: 'text',
332
312
  name: 'tags',
@@ -351,7 +331,6 @@ async function handleUpdate(argv, prompter) {
351
331
  functionName: cleanedData.functionName,
352
332
  smartTags: cleanedData.smartTags,
353
333
  category: cleanedData.category,
354
- scope: cleanedData.scope,
355
334
  tags: cleanedData.tags,
356
335
  },
357
336
  select: {
@@ -363,7 +342,6 @@ async function handleUpdate(argv, prompter) {
363
342
  functionName: true,
364
343
  smartTags: true,
365
344
  category: true,
366
- scope: true,
367
345
  tags: true,
368
346
  createdAt: true,
369
347
  updatedAt: true,
@@ -16,7 +16,6 @@ const fieldSchema = {
16
16
  type: 'string',
17
17
  fieldIds: 'uuid',
18
18
  category: 'string',
19
- scope: 'int',
20
19
  tags: 'string',
21
20
  createdAt: 'string',
22
21
  updatedAt: 'string',
@@ -72,7 +71,6 @@ async function handleList(argv, _prompter) {
72
71
  type: true,
73
72
  fieldIds: true,
74
73
  category: true,
75
- scope: true,
76
74
  tags: true,
77
75
  createdAt: true,
78
76
  updatedAt: true,
@@ -102,7 +100,6 @@ async function handleFindFirst(argv, _prompter) {
102
100
  type: true,
103
101
  fieldIds: true,
104
102
  category: true,
105
- scope: true,
106
103
  tags: true,
107
104
  createdAt: true,
108
105
  updatedAt: true,
@@ -144,7 +141,6 @@ async function handleGet(argv, prompter) {
144
141
  type: true,
145
142
  fieldIds: true,
146
143
  category: true,
147
- scope: true,
148
144
  tags: true,
149
145
  createdAt: true,
150
146
  updatedAt: true,
@@ -218,13 +214,6 @@ async function handleCreate(argv, prompter) {
218
214
  required: false,
219
215
  skipPrompt: true,
220
216
  },
221
- {
222
- type: 'text',
223
- name: 'scope',
224
- message: 'scope',
225
- required: false,
226
- skipPrompt: true,
227
- },
228
217
  {
229
218
  type: 'text',
230
219
  name: 'tags',
@@ -247,7 +236,6 @@ async function handleCreate(argv, prompter) {
247
236
  type: cleanedData.type,
248
237
  fieldIds: cleanedData.fieldIds,
249
238
  category: cleanedData.category,
250
- scope: cleanedData.scope,
251
239
  tags: cleanedData.tags,
252
240
  },
253
241
  select: {
@@ -260,7 +248,6 @@ async function handleCreate(argv, prompter) {
260
248
  type: true,
261
249
  fieldIds: true,
262
250
  category: true,
263
- scope: true,
264
251
  tags: true,
265
252
  createdAt: true,
266
253
  updatedAt: true,
@@ -340,13 +327,6 @@ async function handleUpdate(argv, prompter) {
340
327
  required: false,
341
328
  skipPrompt: true,
342
329
  },
343
- {
344
- type: 'text',
345
- name: 'scope',
346
- message: 'scope',
347
- required: false,
348
- skipPrompt: true,
349
- },
350
330
  {
351
331
  type: 'text',
352
332
  name: 'tags',
@@ -372,7 +352,6 @@ async function handleUpdate(argv, prompter) {
372
352
  type: cleanedData.type,
373
353
  fieldIds: cleanedData.fieldIds,
374
354
  category: cleanedData.category,
375
- scope: cleanedData.scope,
376
355
  tags: cleanedData.tags,
377
356
  },
378
357
  select: {
@@ -385,7 +364,6 @@ async function handleUpdate(argv, prompter) {
385
364
  type: true,
386
365
  fieldIds: true,
387
366
  category: true,
388
- scope: true,
389
367
  tags: true,
390
368
  createdAt: true,
391
369
  updatedAt: true,
@@ -20,7 +20,6 @@ const fieldSchema = {
20
20
  isReadOnly: 'boolean',
21
21
  smartTags: 'json',
22
22
  category: 'string',
23
- scope: 'int',
24
23
  tags: 'string',
25
24
  };
26
25
  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';
@@ -78,7 +77,6 @@ async function handleList(argv, _prompter) {
78
77
  isReadOnly: true,
79
78
  smartTags: true,
80
79
  category: true,
81
- scope: true,
82
80
  tags: true,
83
81
  };
84
82
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -110,7 +108,6 @@ async function handleFindFirst(argv, _prompter) {
110
108
  isReadOnly: true,
111
109
  smartTags: true,
112
110
  category: true,
113
- scope: true,
114
111
  tags: true,
115
112
  };
116
113
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -154,7 +151,6 @@ async function handleGet(argv, prompter) {
154
151
  isReadOnly: true,
155
152
  smartTags: true,
156
153
  category: true,
157
- scope: true,
158
154
  tags: true,
159
155
  },
160
156
  })
@@ -253,13 +249,6 @@ async function handleCreate(argv, prompter) {
253
249
  required: false,
254
250
  skipPrompt: true,
255
251
  },
256
- {
257
- type: 'text',
258
- name: 'scope',
259
- message: 'scope',
260
- required: false,
261
- skipPrompt: true,
262
- },
263
252
  {
264
253
  type: 'text',
265
254
  name: 'tags',
@@ -286,7 +275,6 @@ async function handleCreate(argv, prompter) {
286
275
  isReadOnly: cleanedData.isReadOnly,
287
276
  smartTags: cleanedData.smartTags,
288
277
  category: cleanedData.category,
289
- scope: cleanedData.scope,
290
278
  tags: cleanedData.tags,
291
279
  },
292
280
  select: {
@@ -303,7 +291,6 @@ async function handleCreate(argv, prompter) {
303
291
  isReadOnly: true,
304
292
  smartTags: true,
305
293
  category: true,
306
- scope: true,
307
294
  tags: true,
308
295
  },
309
296
  })
@@ -408,13 +395,6 @@ async function handleUpdate(argv, prompter) {
408
395
  required: false,
409
396
  skipPrompt: true,
410
397
  },
411
- {
412
- type: 'text',
413
- name: 'scope',
414
- message: 'scope',
415
- required: false,
416
- skipPrompt: true,
417
- },
418
398
  {
419
399
  type: 'text',
420
400
  name: 'tags',
@@ -444,7 +424,6 @@ async function handleUpdate(argv, prompter) {
444
424
  isReadOnly: cleanedData.isReadOnly,
445
425
  smartTags: cleanedData.smartTags,
446
426
  category: cleanedData.category,
447
- scope: cleanedData.scope,
448
427
  tags: cleanedData.tags,
449
428
  },
450
429
  select: {
@@ -461,7 +440,6 @@ async function handleUpdate(argv, prompter) {
461
440
  isReadOnly: true,
462
441
  smartTags: true,
463
442
  category: true,
464
- scope: true,
465
443
  tags: true,
466
444
  },
467
445
  })