@constructive-sdk/cli 0.29.1 → 0.29.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/api/cli/commands/api.js +44 -0
  2. package/api/cli/commands/check-constraint.js +0 -22
  3. package/api/cli/commands/composite-type.js +0 -22
  4. package/api/cli/commands/database-setting.js +44 -0
  5. package/api/cli/commands/domain.js +66 -0
  6. package/api/cli/commands/enum.js +0 -22
  7. package/api/cli/commands/field.js +0 -22
  8. package/api/cli/commands/foreign-key-constraint.js +0 -22
  9. package/api/cli/commands/index.js +0 -22
  10. package/api/cli/commands/policy.js +0 -22
  11. package/api/cli/commands/primary-key-constraint.js +0 -22
  12. package/api/cli/commands/schema.js +0 -22
  13. package/api/cli/commands/site.js +44 -0
  14. package/api/cli/commands/spatial-relation.js +0 -22
  15. package/api/cli/commands/table.js +0 -22
  16. package/api/cli/commands/trigger.js +0 -22
  17. package/api/cli/commands/unique-constraint.js +0 -22
  18. package/api/cli/commands/view.js +0 -22
  19. package/api/orm/input-types.d.ts +144 -171
  20. package/auth/cli/commands/create-org-api-key.d.ts +8 -0
  21. package/auth/cli/commands/create-org-api-key.js +36 -0
  22. package/auth/cli/commands/create-org-principal.d.ts +8 -0
  23. package/auth/cli/commands/create-org-principal.js +36 -0
  24. package/auth/cli/commands/delete-org-principal.d.ts +8 -0
  25. package/auth/cli/commands/delete-org-principal.js +36 -0
  26. package/auth/cli/commands/org-api-key-list.d.ts +8 -0
  27. package/auth/cli/commands/org-api-key-list.js +224 -0
  28. package/auth/cli/commands/principal-entity.d.ts +8 -0
  29. package/auth/cli/commands/principal-entity.js +282 -0
  30. package/auth/cli/commands/principal-scope-override.d.ts +8 -0
  31. package/auth/cli/commands/principal-scope-override.js +171 -0
  32. package/auth/cli/commands/principal.d.ts +8 -0
  33. package/auth/cli/commands/principal.js +171 -0
  34. package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  35. package/auth/cli/commands/revoke-org-api-key.js +36 -0
  36. package/auth/cli/commands.js +19 -3
  37. package/auth/cli/executor.d.ts +28 -4
  38. package/auth/orm/index.d.ts +32 -4
  39. package/auth/orm/index.js +8 -0
  40. package/auth/orm/input-types.d.ts +915 -145
  41. package/auth/orm/input-types.js +7 -0
  42. package/auth/orm/models/index.d.ts +4 -0
  43. package/auth/orm/models/index.js +9 -1
  44. package/auth/orm/models/orgApiKeyList.d.ts +36 -0
  45. package/auth/orm/models/orgApiKeyList.js +80 -0
  46. package/auth/orm/models/principal.d.ts +45 -0
  47. package/auth/orm/models/principal.js +93 -0
  48. package/auth/orm/models/principalEntity.d.ts +54 -0
  49. package/auth/orm/models/principalEntity.js +104 -0
  50. package/auth/orm/models/principalScopeOverride.d.ts +36 -0
  51. package/auth/orm/models/principalScopeOverride.js +80 -0
  52. package/auth/orm/mutation/index.d.ts +33 -1
  53. package/auth/orm/mutation/index.js +48 -0
  54. package/auth/orm/query/index.d.ts +4 -4
  55. package/auth/orm/query/index.js +7 -7
  56. package/compute/cli/commands/function-graph-execution.js +0 -22
  57. package/compute/cli/commands/function-graph.js +0 -20
  58. package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  59. package/compute/cli/commands/platform-namespace-event.js +510 -0
  60. package/compute/cli/commands/platform-namespace.d.ts +8 -0
  61. package/compute/cli/commands/platform-namespace.js +436 -0
  62. package/compute/cli/commands/resource-event.d.ts +8 -0
  63. package/compute/cli/commands/resource-event.js +356 -0
  64. package/compute/cli/commands/resource.d.ts +8 -0
  65. package/compute/cli/commands/resource.js +520 -0
  66. package/compute/cli/commands.js +13 -5
  67. package/compute/cli/executor.d.ts +10 -6
  68. package/compute/orm/index.d.ts +15 -7
  69. package/compute/orm/index.js +10 -2
  70. package/compute/orm/input-types.d.ts +1159 -221
  71. package/compute/orm/input-types.js +4 -0
  72. package/compute/orm/models/index.d.ts +5 -1
  73. package/compute/orm/models/index.js +11 -3
  74. package/compute/orm/models/platformNamespace.d.ts +54 -0
  75. package/compute/orm/models/platformNamespace.js +104 -0
  76. package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  77. package/compute/orm/models/platformNamespaceEvent.js +107 -0
  78. package/compute/orm/models/resource.d.ts +54 -0
  79. package/compute/orm/models/resource.js +104 -0
  80. package/compute/orm/models/resourceEvent.d.ts +56 -0
  81. package/compute/orm/models/resourceEvent.js +107 -0
  82. package/compute/orm/mutation/index.d.ts +9 -9
  83. package/compute/orm/mutation/index.js +12 -12
  84. package/esm/api/cli/commands/api.js +44 -0
  85. package/esm/api/cli/commands/check-constraint.js +0 -22
  86. package/esm/api/cli/commands/composite-type.js +0 -22
  87. package/esm/api/cli/commands/database-setting.js +44 -0
  88. package/esm/api/cli/commands/domain.js +66 -0
  89. package/esm/api/cli/commands/enum.js +0 -22
  90. package/esm/api/cli/commands/field.js +0 -22
  91. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  92. package/esm/api/cli/commands/index.js +0 -22
  93. package/esm/api/cli/commands/policy.js +0 -22
  94. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  95. package/esm/api/cli/commands/schema.js +0 -22
  96. package/esm/api/cli/commands/site.js +44 -0
  97. package/esm/api/cli/commands/spatial-relation.js +0 -22
  98. package/esm/api/cli/commands/table.js +0 -22
  99. package/esm/api/cli/commands/trigger.js +0 -22
  100. package/esm/api/cli/commands/unique-constraint.js +0 -22
  101. package/esm/api/cli/commands/view.js +0 -22
  102. package/esm/api/orm/input-types.d.ts +144 -171
  103. package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
  104. package/esm/auth/cli/commands/create-org-api-key.js +34 -0
  105. package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
  106. package/esm/auth/cli/commands/create-org-principal.js +34 -0
  107. package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
  108. package/esm/auth/cli/commands/delete-org-principal.js +34 -0
  109. package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
  110. package/esm/auth/cli/commands/org-api-key-list.js +222 -0
  111. package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
  112. package/esm/auth/cli/commands/principal-entity.js +280 -0
  113. package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
  114. package/esm/auth/cli/commands/principal-scope-override.js +169 -0
  115. package/esm/auth/cli/commands/principal.d.ts +8 -0
  116. package/esm/auth/cli/commands/principal.js +169 -0
  117. package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
  118. package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
  119. package/esm/auth/cli/commands.js +19 -3
  120. package/esm/auth/cli/executor.d.ts +28 -4
  121. package/esm/auth/orm/index.d.ts +32 -4
  122. package/esm/auth/orm/index.js +8 -0
  123. package/esm/auth/orm/input-types.d.ts +915 -145
  124. package/esm/auth/orm/input-types.js +7 -0
  125. package/esm/auth/orm/models/index.d.ts +4 -0
  126. package/esm/auth/orm/models/index.js +4 -0
  127. package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
  128. package/esm/auth/orm/models/orgApiKeyList.js +76 -0
  129. package/esm/auth/orm/models/principal.d.ts +45 -0
  130. package/esm/auth/orm/models/principal.js +89 -0
  131. package/esm/auth/orm/models/principalEntity.d.ts +54 -0
  132. package/esm/auth/orm/models/principalEntity.js +100 -0
  133. package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
  134. package/esm/auth/orm/models/principalScopeOverride.js +76 -0
  135. package/esm/auth/orm/mutation/index.d.ts +33 -1
  136. package/esm/auth/orm/mutation/index.js +48 -0
  137. package/esm/auth/orm/query/index.d.ts +4 -4
  138. package/esm/auth/orm/query/index.js +7 -7
  139. package/esm/compute/cli/commands/function-graph-execution.js +0 -22
  140. package/esm/compute/cli/commands/function-graph.js +0 -20
  141. package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
  142. package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
  143. package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
  144. package/esm/compute/cli/commands/platform-namespace.js +434 -0
  145. package/esm/compute/cli/commands/resource-event.d.ts +8 -0
  146. package/esm/compute/cli/commands/resource-event.js +354 -0
  147. package/esm/compute/cli/commands/resource.d.ts +8 -0
  148. package/esm/compute/cli/commands/resource.js +518 -0
  149. package/esm/compute/cli/commands.js +13 -5
  150. package/esm/compute/cli/executor.d.ts +10 -6
  151. package/esm/compute/orm/index.d.ts +15 -7
  152. package/esm/compute/orm/index.js +10 -2
  153. package/esm/compute/orm/input-types.d.ts +1159 -221
  154. package/esm/compute/orm/input-types.js +4 -0
  155. package/esm/compute/orm/models/index.d.ts +5 -1
  156. package/esm/compute/orm/models/index.js +5 -1
  157. package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
  158. package/esm/compute/orm/models/platformNamespace.js +100 -0
  159. package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  160. package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
  161. package/esm/compute/orm/models/resource.d.ts +54 -0
  162. package/esm/compute/orm/models/resource.js +100 -0
  163. package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
  164. package/esm/compute/orm/models/resourceEvent.js +103 -0
  165. package/esm/compute/orm/mutation/index.d.ts +9 -9
  166. package/esm/compute/orm/mutation/index.js +12 -12
  167. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  168. package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
  169. package/esm/modules/cli/commands/principal-auth-module.js +580 -0
  170. package/esm/modules/cli/commands/resource-module.d.ts +8 -0
  171. package/esm/modules/cli/commands/resource-module.js +602 -0
  172. package/esm/modules/cli/commands.js +9 -5
  173. package/esm/modules/cli/executor.d.ts +4 -2
  174. package/esm/modules/orm/index.d.ts +8 -4
  175. package/esm/modules/orm/index.js +8 -4
  176. package/esm/modules/orm/input-types.d.ts +868 -411
  177. package/esm/modules/orm/models/index.d.ts +4 -2
  178. package/esm/modules/orm/models/index.js +4 -2
  179. package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
  180. package/esm/modules/orm/models/principalAuthModule.js +100 -0
  181. package/esm/modules/orm/models/resourceModule.d.ts +54 -0
  182. package/esm/modules/orm/models/resourceModule.js +100 -0
  183. package/modules/cli/commands/merkle-store-module.js +22 -0
  184. package/modules/cli/commands/principal-auth-module.d.ts +8 -0
  185. package/modules/cli/commands/principal-auth-module.js +582 -0
  186. package/modules/cli/commands/resource-module.d.ts +8 -0
  187. package/modules/cli/commands/resource-module.js +604 -0
  188. package/modules/cli/commands.js +9 -5
  189. package/modules/cli/executor.d.ts +4 -2
  190. package/modules/orm/index.d.ts +8 -4
  191. package/modules/orm/index.js +8 -4
  192. package/modules/orm/input-types.d.ts +868 -411
  193. package/modules/orm/models/index.d.ts +4 -2
  194. package/modules/orm/models/index.js +10 -6
  195. package/modules/orm/models/principalAuthModule.d.ts +54 -0
  196. package/modules/orm/models/principalAuthModule.js +104 -0
  197. package/modules/orm/models/resourceModule.d.ts +54 -0
  198. package/modules/orm/models/resourceModule.js +104 -0
  199. package/package.json +4 -4
@@ -11,8 +11,11 @@ const fieldSchema = {
11
11
  databaseId: 'uuid',
12
12
  apiId: 'uuid',
13
13
  siteId: 'uuid',
14
+ serviceId: 'uuid',
14
15
  subdomain: 'string',
15
16
  domain: 'string',
17
+ labels: 'json',
18
+ annotations: 'json',
16
19
  };
17
20
  const usage = '\ndomain <command>\n\nCommands:\n list List domain records\n find-first Find first matching domain record\n get Get a domain by ID\n create Create a new domain\n update Update an existing domain\n delete Delete a domain\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
18
21
  export default async (argv, prompter, _options) => {
@@ -60,8 +63,11 @@ async function handleList(argv, _prompter) {
60
63
  databaseId: true,
61
64
  apiId: true,
62
65
  siteId: true,
66
+ serviceId: true,
63
67
  subdomain: true,
64
68
  domain: true,
69
+ labels: true,
70
+ annotations: true,
65
71
  };
66
72
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
67
73
  const client = getClient();
@@ -83,8 +89,11 @@ async function handleFindFirst(argv, _prompter) {
83
89
  databaseId: true,
84
90
  apiId: true,
85
91
  siteId: true,
92
+ serviceId: true,
86
93
  subdomain: true,
87
94
  domain: true,
95
+ labels: true,
96
+ annotations: true,
88
97
  };
89
98
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
90
99
  const client = getClient();
@@ -118,8 +127,11 @@ async function handleGet(argv, prompter) {
118
127
  databaseId: true,
119
128
  apiId: true,
120
129
  siteId: true,
130
+ serviceId: true,
121
131
  subdomain: true,
122
132
  domain: true,
133
+ labels: true,
134
+ annotations: true,
123
135
  },
124
136
  })
125
137
  .execute();
@@ -156,6 +168,13 @@ async function handleCreate(argv, prompter) {
156
168
  required: false,
157
169
  skipPrompt: true,
158
170
  },
171
+ {
172
+ type: 'text',
173
+ name: 'serviceId',
174
+ message: 'serviceId',
175
+ required: false,
176
+ skipPrompt: true,
177
+ },
159
178
  {
160
179
  type: 'text',
161
180
  name: 'subdomain',
@@ -170,6 +189,20 @@ async function handleCreate(argv, prompter) {
170
189
  required: false,
171
190
  skipPrompt: true,
172
191
  },
192
+ {
193
+ type: 'json',
194
+ name: 'labels',
195
+ message: 'labels',
196
+ required: false,
197
+ skipPrompt: true,
198
+ },
199
+ {
200
+ type: 'json',
201
+ name: 'annotations',
202
+ message: 'annotations',
203
+ required: false,
204
+ skipPrompt: true,
205
+ },
173
206
  ]);
174
207
  const answers = coerceAnswers(rawAnswers, fieldSchema);
175
208
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -180,16 +213,22 @@ async function handleCreate(argv, prompter) {
180
213
  databaseId: cleanedData.databaseId,
181
214
  apiId: cleanedData.apiId,
182
215
  siteId: cleanedData.siteId,
216
+ serviceId: cleanedData.serviceId,
183
217
  subdomain: cleanedData.subdomain,
184
218
  domain: cleanedData.domain,
219
+ labels: cleanedData.labels,
220
+ annotations: cleanedData.annotations,
185
221
  },
186
222
  select: {
187
223
  id: true,
188
224
  databaseId: true,
189
225
  apiId: true,
190
226
  siteId: true,
227
+ serviceId: true,
191
228
  subdomain: true,
192
229
  domain: true,
230
+ labels: true,
231
+ annotations: true,
193
232
  },
194
233
  })
195
234
  .execute();
@@ -232,6 +271,13 @@ async function handleUpdate(argv, prompter) {
232
271
  required: false,
233
272
  skipPrompt: true,
234
273
  },
274
+ {
275
+ type: 'text',
276
+ name: 'serviceId',
277
+ message: 'serviceId',
278
+ required: false,
279
+ skipPrompt: true,
280
+ },
235
281
  {
236
282
  type: 'text',
237
283
  name: 'subdomain',
@@ -246,6 +292,20 @@ async function handleUpdate(argv, prompter) {
246
292
  required: false,
247
293
  skipPrompt: true,
248
294
  },
295
+ {
296
+ type: 'json',
297
+ name: 'labels',
298
+ message: 'labels',
299
+ required: false,
300
+ skipPrompt: true,
301
+ },
302
+ {
303
+ type: 'json',
304
+ name: 'annotations',
305
+ message: 'annotations',
306
+ required: false,
307
+ skipPrompt: true,
308
+ },
249
309
  ]);
250
310
  const answers = coerceAnswers(rawAnswers, fieldSchema);
251
311
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -259,16 +319,22 @@ async function handleUpdate(argv, prompter) {
259
319
  databaseId: cleanedData.databaseId,
260
320
  apiId: cleanedData.apiId,
261
321
  siteId: cleanedData.siteId,
322
+ serviceId: cleanedData.serviceId,
262
323
  subdomain: cleanedData.subdomain,
263
324
  domain: cleanedData.domain,
325
+ labels: cleanedData.labels,
326
+ annotations: cleanedData.annotations,
264
327
  },
265
328
  select: {
266
329
  id: true,
267
330
  databaseId: true,
268
331
  apiId: true,
269
332
  siteId: true,
333
+ serviceId: true,
270
334
  subdomain: true,
271
335
  domain: true,
336
+ labels: true,
337
+ annotations: true,
272
338
  },
273
339
  })
274
340
  .execute();
@@ -16,7 +16,6 @@ const fieldSchema = {
16
16
  values: 'string',
17
17
  smartTags: 'json',
18
18
  category: 'string',
19
- scope: 'int',
20
19
  tags: 'string',
21
20
  };
22
21
  const usage = '\nenum <command>\n\nCommands:\n list List enum records\n find-first Find first matching enum record\n get Get a enum by ID\n create Create a new enum\n update Update an existing enum\n delete Delete a enum\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
@@ -70,7 +69,6 @@ async function handleList(argv, _prompter) {
70
69
  values: true,
71
70
  smartTags: true,
72
71
  category: true,
73
- scope: true,
74
72
  tags: true,
75
73
  };
76
74
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
@@ -98,7 +96,6 @@ async function handleFindFirst(argv, _prompter) {
98
96
  values: true,
99
97
  smartTags: true,
100
98
  category: true,
101
- scope: true,
102
99
  tags: true,
103
100
  };
104
101
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
@@ -138,7 +135,6 @@ async function handleGet(argv, prompter) {
138
135
  values: true,
139
136
  smartTags: true,
140
137
  category: true,
141
- scope: true,
142
138
  tags: true,
143
139
  },
144
140
  })
@@ -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',
@@ -238,7 +227,6 @@ async function handleCreate(argv, prompter) {
238
227
  values: cleanedData.values,
239
228
  smartTags: cleanedData.smartTags,
240
229
  category: cleanedData.category,
241
- scope: cleanedData.scope,
242
230
  tags: cleanedData.tags,
243
231
  },
244
232
  select: {
@@ -251,7 +239,6 @@ async function handleCreate(argv, prompter) {
251
239
  values: true,
252
240
  smartTags: true,
253
241
  category: true,
254
- scope: true,
255
242
  tags: true,
256
243
  },
257
244
  })
@@ -328,13 +315,6 @@ async function handleUpdate(argv, prompter) {
328
315
  required: false,
329
316
  skipPrompt: true,
330
317
  },
331
- {
332
- type: 'text',
333
- name: 'scope',
334
- message: 'scope',
335
- required: false,
336
- skipPrompt: true,
337
- },
338
318
  {
339
319
  type: 'text',
340
320
  name: 'tags',
@@ -360,7 +340,6 @@ async function handleUpdate(argv, prompter) {
360
340
  values: cleanedData.values,
361
341
  smartTags: cleanedData.smartTags,
362
342
  category: cleanedData.category,
363
- scope: cleanedData.scope,
364
343
  tags: cleanedData.tags,
365
344
  },
366
345
  select: {
@@ -373,7 +352,6 @@ async function handleUpdate(argv, prompter) {
373
352
  values: true,
374
353
  smartTags: true,
375
354
  category: true,
376
- scope: true,
377
355
  tags: true,
378
356
  },
379
357
  })
@@ -26,7 +26,6 @@ const fieldSchema = {
26
26
  max: 'float',
27
27
  tags: 'string',
28
28
  category: 'string',
29
- scope: 'int',
30
29
  createdAt: 'string',
31
30
  updatedAt: 'string',
32
31
  };
@@ -91,7 +90,6 @@ async function handleList(argv, _prompter) {
91
90
  max: true,
92
91
  tags: true,
93
92
  category: true,
94
- scope: true,
95
93
  createdAt: true,
96
94
  updatedAt: true,
97
95
  };
@@ -130,7 +128,6 @@ async function handleFindFirst(argv, _prompter) {
130
128
  max: true,
131
129
  tags: true,
132
130
  category: true,
133
- scope: true,
134
131
  createdAt: true,
135
132
  updatedAt: true,
136
133
  };
@@ -181,7 +178,6 @@ async function handleGet(argv, prompter) {
181
178
  max: true,
182
179
  tags: true,
183
180
  category: true,
184
- scope: true,
185
181
  createdAt: true,
186
182
  updatedAt: true,
187
183
  },
@@ -323,13 +319,6 @@ async function handleCreate(argv, prompter) {
323
319
  required: false,
324
320
  skipPrompt: true,
325
321
  },
326
- {
327
- type: 'text',
328
- name: 'scope',
329
- message: 'scope',
330
- required: false,
331
- skipPrompt: true,
332
- },
333
322
  ]);
334
323
  const answers = coerceAnswers(rawAnswers, fieldSchema);
335
324
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -355,7 +344,6 @@ async function handleCreate(argv, prompter) {
355
344
  max: cleanedData.max,
356
345
  tags: cleanedData.tags,
357
346
  category: cleanedData.category,
358
- scope: cleanedData.scope,
359
347
  },
360
348
  select: {
361
349
  id: true,
@@ -377,7 +365,6 @@ async function handleCreate(argv, prompter) {
377
365
  max: true,
378
366
  tags: true,
379
367
  category: true,
380
- scope: true,
381
368
  createdAt: true,
382
369
  updatedAt: true,
383
370
  },
@@ -525,13 +512,6 @@ async function handleUpdate(argv, prompter) {
525
512
  required: false,
526
513
  skipPrompt: true,
527
514
  },
528
- {
529
- type: 'text',
530
- name: 'scope',
531
- message: 'scope',
532
- required: false,
533
- skipPrompt: true,
534
- },
535
515
  ]);
536
516
  const answers = coerceAnswers(rawAnswers, fieldSchema);
537
517
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -560,7 +540,6 @@ async function handleUpdate(argv, prompter) {
560
540
  max: cleanedData.max,
561
541
  tags: cleanedData.tags,
562
542
  category: cleanedData.category,
563
- scope: cleanedData.scope,
564
543
  },
565
544
  select: {
566
545
  id: true,
@@ -582,7 +561,6 @@ async function handleUpdate(argv, prompter) {
582
561
  max: true,
583
562
  tags: true,
584
563
  category: true,
585
- scope: true,
586
564
  createdAt: true,
587
565
  updatedAt: true,
588
566
  },
@@ -20,7 +20,6 @@ const fieldSchema = {
20
20
  deleteAction: 'string',
21
21
  updateAction: 'string',
22
22
  category: 'string',
23
- scope: 'int',
24
23
  tags: 'string',
25
24
  createdAt: 'string',
26
25
  updatedAt: 'string',
@@ -80,7 +79,6 @@ async function handleList(argv, _prompter) {
80
79
  deleteAction: true,
81
80
  updateAction: true,
82
81
  category: true,
83
- scope: true,
84
82
  tags: true,
85
83
  createdAt: true,
86
84
  updatedAt: true,
@@ -114,7 +112,6 @@ async function handleFindFirst(argv, _prompter) {
114
112
  deleteAction: true,
115
113
  updateAction: true,
116
114
  category: true,
117
- scope: true,
118
115
  tags: true,
119
116
  createdAt: true,
120
117
  updatedAt: true,
@@ -160,7 +157,6 @@ async function handleGet(argv, prompter) {
160
157
  deleteAction: true,
161
158
  updateAction: true,
162
159
  category: true,
163
- scope: true,
164
160
  tags: true,
165
161
  createdAt: true,
166
162
  updatedAt: true,
@@ -260,13 +256,6 @@ async function handleCreate(argv, prompter) {
260
256
  required: false,
261
257
  skipPrompt: true,
262
258
  },
263
- {
264
- type: 'text',
265
- name: 'scope',
266
- message: 'scope',
267
- required: false,
268
- skipPrompt: true,
269
- },
270
259
  {
271
260
  type: 'text',
272
261
  name: 'tags',
@@ -293,7 +282,6 @@ async function handleCreate(argv, prompter) {
293
282
  deleteAction: cleanedData.deleteAction,
294
283
  updateAction: cleanedData.updateAction,
295
284
  category: cleanedData.category,
296
- scope: cleanedData.scope,
297
285
  tags: cleanedData.tags,
298
286
  },
299
287
  select: {
@@ -310,7 +298,6 @@ async function handleCreate(argv, prompter) {
310
298
  deleteAction: true,
311
299
  updateAction: true,
312
300
  category: true,
313
- scope: true,
314
301
  tags: true,
315
302
  createdAt: true,
316
303
  updatedAt: true,
@@ -416,13 +403,6 @@ async function handleUpdate(argv, prompter) {
416
403
  required: false,
417
404
  skipPrompt: true,
418
405
  },
419
- {
420
- type: 'text',
421
- name: 'scope',
422
- message: 'scope',
423
- required: false,
424
- skipPrompt: true,
425
- },
426
406
  {
427
407
  type: 'text',
428
408
  name: 'tags',
@@ -452,7 +432,6 @@ async function handleUpdate(argv, prompter) {
452
432
  deleteAction: cleanedData.deleteAction,
453
433
  updateAction: cleanedData.updateAction,
454
434
  category: cleanedData.category,
455
- scope: cleanedData.scope,
456
435
  tags: cleanedData.tags,
457
436
  },
458
437
  select: {
@@ -469,7 +448,6 @@ async function handleUpdate(argv, prompter) {
469
448
  deleteAction: true,
470
449
  updateAction: true,
471
450
  category: true,
472
- scope: true,
473
451
  tags: true,
474
452
  createdAt: true,
475
453
  updatedAt: true,
@@ -21,7 +21,6 @@ const fieldSchema = {
21
21
  opClasses: 'string',
22
22
  smartTags: 'json',
23
23
  category: 'string',
24
- scope: 'int',
25
24
  tags: 'string',
26
25
  createdAt: 'string',
27
26
  updatedAt: 'string',
@@ -82,7 +81,6 @@ async function handleList(argv, _prompter) {
82
81
  opClasses: true,
83
82
  smartTags: true,
84
83
  category: true,
85
- scope: true,
86
84
  tags: true,
87
85
  createdAt: true,
88
86
  updatedAt: true,
@@ -117,7 +115,6 @@ async function handleFindFirst(argv, _prompter) {
117
115
  opClasses: true,
118
116
  smartTags: true,
119
117
  category: true,
120
- scope: true,
121
118
  tags: true,
122
119
  createdAt: true,
123
120
  updatedAt: true,
@@ -164,7 +161,6 @@ async function handleGet(argv, prompter) {
164
161
  opClasses: true,
165
162
  smartTags: true,
166
163
  category: true,
167
- scope: true,
168
164
  tags: true,
169
165
  createdAt: true,
170
166
  updatedAt: true,
@@ -273,13 +269,6 @@ async function handleCreate(argv, prompter) {
273
269
  required: false,
274
270
  skipPrompt: true,
275
271
  },
276
- {
277
- type: 'text',
278
- name: 'scope',
279
- message: 'scope',
280
- required: false,
281
- skipPrompt: true,
282
- },
283
272
  {
284
273
  type: 'text',
285
274
  name: 'tags',
@@ -307,7 +296,6 @@ async function handleCreate(argv, prompter) {
307
296
  opClasses: cleanedData.opClasses,
308
297
  smartTags: cleanedData.smartTags,
309
298
  category: cleanedData.category,
310
- scope: cleanedData.scope,
311
299
  tags: cleanedData.tags,
312
300
  },
313
301
  select: {
@@ -325,7 +313,6 @@ async function handleCreate(argv, prompter) {
325
313
  opClasses: true,
326
314
  smartTags: true,
327
315
  category: true,
328
- scope: true,
329
316
  tags: true,
330
317
  createdAt: true,
331
318
  updatedAt: true,
@@ -440,13 +427,6 @@ async function handleUpdate(argv, prompter) {
440
427
  required: false,
441
428
  skipPrompt: true,
442
429
  },
443
- {
444
- type: 'text',
445
- name: 'scope',
446
- message: 'scope',
447
- required: false,
448
- skipPrompt: true,
449
- },
450
430
  {
451
431
  type: 'text',
452
432
  name: 'tags',
@@ -477,7 +457,6 @@ async function handleUpdate(argv, prompter) {
477
457
  opClasses: cleanedData.opClasses,
478
458
  smartTags: cleanedData.smartTags,
479
459
  category: cleanedData.category,
480
- scope: cleanedData.scope,
481
460
  tags: cleanedData.tags,
482
461
  },
483
462
  select: {
@@ -495,7 +474,6 @@ async function handleUpdate(argv, prompter) {
495
474
  opClasses: true,
496
475
  smartTags: true,
497
476
  category: true,
498
- scope: true,
499
477
  tags: true,
500
478
  createdAt: true,
501
479
  updatedAt: true,
@@ -19,7 +19,6 @@ const fieldSchema = {
19
19
  data: 'json',
20
20
  smartTags: 'json',
21
21
  category: 'string',
22
- scope: 'int',
23
22
  tags: 'string',
24
23
  createdAt: 'string',
25
24
  updatedAt: 'string',
@@ -78,7 +77,6 @@ async function handleList(argv, _prompter) {
78
77
  data: true,
79
78
  smartTags: true,
80
79
  category: true,
81
- scope: true,
82
80
  tags: true,
83
81
  createdAt: true,
84
82
  updatedAt: true,
@@ -111,7 +109,6 @@ async function handleFindFirst(argv, _prompter) {
111
109
  data: true,
112
110
  smartTags: true,
113
111
  category: true,
114
- scope: true,
115
112
  tags: true,
116
113
  createdAt: true,
117
114
  updatedAt: true,
@@ -156,7 +153,6 @@ async function handleGet(argv, prompter) {
156
153
  data: true,
157
154
  smartTags: true,
158
155
  category: true,
159
- scope: true,
160
156
  tags: true,
161
157
  createdAt: true,
162
158
  updatedAt: true,
@@ -252,13 +248,6 @@ async function handleCreate(argv, prompter) {
252
248
  required: false,
253
249
  skipPrompt: true,
254
250
  },
255
- {
256
- type: 'text',
257
- name: 'scope',
258
- message: 'scope',
259
- required: false,
260
- skipPrompt: true,
261
- },
262
251
  {
263
252
  type: 'text',
264
253
  name: 'tags',
@@ -284,7 +273,6 @@ async function handleCreate(argv, prompter) {
284
273
  data: cleanedData.data,
285
274
  smartTags: cleanedData.smartTags,
286
275
  category: cleanedData.category,
287
- scope: cleanedData.scope,
288
276
  tags: cleanedData.tags,
289
277
  },
290
278
  select: {
@@ -300,7 +288,6 @@ async function handleCreate(argv, prompter) {
300
288
  data: true,
301
289
  smartTags: true,
302
290
  category: true,
303
- scope: true,
304
291
  tags: true,
305
292
  createdAt: true,
306
293
  updatedAt: true,
@@ -402,13 +389,6 @@ async function handleUpdate(argv, prompter) {
402
389
  required: false,
403
390
  skipPrompt: true,
404
391
  },
405
- {
406
- type: 'text',
407
- name: 'scope',
408
- message: 'scope',
409
- required: false,
410
- skipPrompt: true,
411
- },
412
392
  {
413
393
  type: 'text',
414
394
  name: 'tags',
@@ -437,7 +417,6 @@ async function handleUpdate(argv, prompter) {
437
417
  data: cleanedData.data,
438
418
  smartTags: cleanedData.smartTags,
439
419
  category: cleanedData.category,
440
- scope: cleanedData.scope,
441
420
  tags: cleanedData.tags,
442
421
  },
443
422
  select: {
@@ -453,7 +432,6 @@ async function handleUpdate(argv, prompter) {
453
432
  data: true,
454
433
  smartTags: true,
455
434
  category: true,
456
- scope: true,
457
435
  tags: true,
458
436
  createdAt: true,
459
437
  updatedAt: true,
@@ -15,7 +15,6 @@ const fieldSchema = {
15
15
  fieldIds: 'uuid',
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
  fieldIds: 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
  fieldIds: 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
  fieldIds: 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
  fieldIds: cleanedData.fieldIds,
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
  fieldIds: 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
  fieldIds: cleanedData.fieldIds,
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
  fieldIds: true,
364
343
  smartTags: true,
365
344
  category: true,
366
- scope: true,
367
345
  tags: true,
368
346
  createdAt: true,
369
347
  updatedAt: true,