@constructive-sdk/cli 1.9.2 → 1.9.4

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 (99) hide show
  1. package/{api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge-grant.d.ts} +1 -1
  2. package/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
  3. package/{esm/api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge.d.ts} +1 -1
  4. package/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
  5. package/admin/cli/commands/org-get-managers-record.d.ts +8 -0
  6. package/admin/cli/commands/org-get-managers-record.js +126 -0
  7. package/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
  8. package/admin/cli/commands/org-get-subordinates-record.js +126 -0
  9. package/admin/cli/commands/org-is-manager-of.d.ts +8 -0
  10. package/admin/cli/commands/org-is-manager-of.js +45 -0
  11. package/admin/cli/commands.js +11 -1
  12. package/admin/cli/executor.d.ts +9 -0
  13. package/admin/orm/index.d.ts +13 -0
  14. package/admin/orm/index.js +8 -0
  15. package/admin/orm/input-types.d.ts +399 -0
  16. package/admin/orm/models/index.d.ts +4 -0
  17. package/admin/orm/models/index.js +9 -1
  18. package/admin/orm/models/orgChartEdge.d.ts +54 -0
  19. package/admin/orm/models/orgChartEdge.js +104 -0
  20. package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  21. package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
  22. package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  23. package/admin/orm/models/orgGetManagersRecord.js +59 -0
  24. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  25. package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
  26. package/admin/orm/query/index.d.ts +11 -0
  27. package/admin/orm/query/index.js +24 -0
  28. package/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
  29. package/api/cli/commands/domain-type.js +466 -0
  30. package/api/cli/commands/table.js +22 -0
  31. package/api/cli/commands.js +3 -5
  32. package/api/cli/executor.d.ts +1 -2
  33. package/api/orm/index.d.ts +2 -4
  34. package/api/orm/index.js +2 -4
  35. package/api/orm/input-types.d.ts +378 -468
  36. package/api/orm/input-types.js +2 -2
  37. package/api/orm/models/domainType.d.ts +54 -0
  38. package/api/orm/models/{apiModule.js → domainType.js} +27 -27
  39. package/api/orm/models/index.d.ts +1 -2
  40. package/api/orm/models/index.js +4 -6
  41. package/compute/cli/commands/function-api-binding.js +12 -0
  42. package/compute/cli/commands/platform-function-api-binding.js +12 -0
  43. package/compute/cli/commands/platform-function-invocation.js +22 -0
  44. package/compute/orm/input-types.d.ts +42 -3
  45. package/esm/admin/cli/commands/org-chart-edge-grant.d.ts +8 -0
  46. package/esm/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
  47. package/esm/admin/cli/commands/org-chart-edge.d.ts +8 -0
  48. package/esm/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
  49. package/esm/admin/cli/commands/org-get-managers-record.d.ts +8 -0
  50. package/esm/admin/cli/commands/org-get-managers-record.js +124 -0
  51. package/esm/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
  52. package/esm/admin/cli/commands/org-get-subordinates-record.js +124 -0
  53. package/esm/admin/cli/commands/org-is-manager-of.d.ts +8 -0
  54. package/esm/admin/cli/commands/org-is-manager-of.js +43 -0
  55. package/esm/admin/cli/commands.js +11 -1
  56. package/esm/admin/cli/executor.d.ts +9 -0
  57. package/esm/admin/orm/index.d.ts +13 -0
  58. package/esm/admin/orm/index.js +8 -0
  59. package/esm/admin/orm/input-types.d.ts +399 -0
  60. package/esm/admin/orm/models/index.d.ts +4 -0
  61. package/esm/admin/orm/models/index.js +4 -0
  62. package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
  63. package/esm/admin/orm/models/orgChartEdge.js +100 -0
  64. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  65. package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
  66. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  67. package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
  68. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  69. package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
  70. package/esm/admin/orm/query/index.d.ts +11 -0
  71. package/esm/admin/orm/query/index.js +24 -0
  72. package/esm/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
  73. package/esm/api/cli/commands/domain-type.js +464 -0
  74. package/esm/api/cli/commands/table.js +22 -0
  75. package/esm/api/cli/commands.js +3 -5
  76. package/esm/api/cli/executor.d.ts +1 -2
  77. package/esm/api/orm/index.d.ts +2 -4
  78. package/esm/api/orm/index.js +2 -4
  79. package/esm/api/orm/input-types.d.ts +378 -468
  80. package/esm/api/orm/input-types.js +2 -2
  81. package/esm/api/orm/models/domainType.d.ts +54 -0
  82. package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
  83. package/esm/api/orm/models/index.d.ts +1 -2
  84. package/esm/api/orm/models/index.js +1 -2
  85. package/esm/compute/cli/commands/function-api-binding.js +12 -0
  86. package/esm/compute/cli/commands/platform-function-api-binding.js +12 -0
  87. package/esm/compute/cli/commands/platform-function-invocation.js +22 -0
  88. package/esm/compute/orm/input-types.d.ts +42 -3
  89. package/esm/modules/cli/commands/api-surface-module.js +0 -44
  90. package/esm/modules/cli/commands/billing-module.js +22 -0
  91. package/esm/modules/orm/input-types.d.ts +9 -16
  92. package/modules/cli/commands/api-surface-module.js +0 -44
  93. package/modules/cli/commands/billing-module.js +22 -0
  94. package/modules/orm/input-types.d.ts +9 -16
  95. package/package.json +5 -5
  96. package/api/orm/models/apiModule.d.ts +0 -54
  97. package/api/orm/models/platformApiModule.d.ts +0 -54
  98. package/esm/api/orm/models/apiModule.d.ts +0 -54
  99. package/esm/api/orm/models/platformApiModule.d.ts +0 -54
@@ -0,0 +1,466 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * CLI commands for DomainType
5
+ * @generated by @constructive-io/graphql-codegen
6
+ * DO NOT EDIT - changes will be overwritten
7
+ */
8
+ const inquirerer_1 = require("inquirerer");
9
+ const executor_1 = require("../executor");
10
+ const utils_1 = require("../utils");
11
+ const fieldSchema = {
12
+ baseType: 'json',
13
+ category: 'string',
14
+ checkExpr: 'json',
15
+ databaseId: 'uuid',
16
+ defaultExpr: 'json',
17
+ description: 'string',
18
+ id: 'uuid',
19
+ label: 'string',
20
+ name: 'string',
21
+ notNull: 'boolean',
22
+ schemaId: 'uuid',
23
+ smartTags: 'json',
24
+ tags: 'string',
25
+ };
26
+ const usage = '\ndomain-type <command>\n\nCommands:\n list List domainType records\n find-first Find first matching domainType record\n get Get a domainType by ID\n create Create a new domainType\n update Update an existing domainType\n delete Delete a domainType\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';
27
+ exports.default = async (argv, prompter, _options) => {
28
+ if (argv.help || argv.h) {
29
+ console.log(usage);
30
+ process.exit(0);
31
+ }
32
+ const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
33
+ if (!subcommand) {
34
+ const answer = await prompter.prompt(argv, [
35
+ {
36
+ type: 'autocomplete',
37
+ name: 'subcommand',
38
+ message: 'What do you want to do?',
39
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
40
+ },
41
+ ]);
42
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
43
+ }
44
+ return handleTableSubcommand(subcommand, newArgv, prompter);
45
+ };
46
+ async function handleTableSubcommand(subcommand, argv, prompter) {
47
+ switch (subcommand) {
48
+ case 'list':
49
+ return handleList(argv, prompter);
50
+ case 'find-first':
51
+ return handleFindFirst(argv, prompter);
52
+ case 'get':
53
+ return handleGet(argv, prompter);
54
+ case 'create':
55
+ return handleCreate(argv, prompter);
56
+ case 'update':
57
+ return handleUpdate(argv, prompter);
58
+ case 'delete':
59
+ return handleDelete(argv, prompter);
60
+ default:
61
+ console.log(usage);
62
+ process.exit(1);
63
+ }
64
+ }
65
+ async function handleList(argv, _prompter) {
66
+ try {
67
+ const defaultSelect = {
68
+ baseType: true,
69
+ category: true,
70
+ checkExpr: true,
71
+ databaseId: true,
72
+ defaultExpr: true,
73
+ description: true,
74
+ id: true,
75
+ label: true,
76
+ name: true,
77
+ notNull: true,
78
+ schemaId: true,
79
+ smartTags: true,
80
+ tags: true,
81
+ };
82
+ const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
83
+ const client = (0, executor_1.getClient)();
84
+ const result = await client.domainType.findMany(findManyArgs).execute();
85
+ console.log(JSON.stringify(result, null, 2));
86
+ }
87
+ catch (error) {
88
+ console.error('Failed to list records.');
89
+ if (error instanceof Error) {
90
+ console.error(error.message);
91
+ }
92
+ process.exit(1);
93
+ }
94
+ }
95
+ async function handleFindFirst(argv, _prompter) {
96
+ try {
97
+ const defaultSelect = {
98
+ baseType: true,
99
+ category: true,
100
+ checkExpr: true,
101
+ databaseId: true,
102
+ defaultExpr: true,
103
+ description: true,
104
+ id: true,
105
+ label: true,
106
+ name: true,
107
+ notNull: true,
108
+ schemaId: true,
109
+ smartTags: true,
110
+ tags: true,
111
+ };
112
+ const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
113
+ const client = (0, executor_1.getClient)();
114
+ const result = await client.domainType.findFirst(findFirstArgs).execute();
115
+ console.log(JSON.stringify(result, null, 2));
116
+ }
117
+ catch (error) {
118
+ console.error('Failed to find record.');
119
+ if (error instanceof Error) {
120
+ console.error(error.message);
121
+ }
122
+ process.exit(1);
123
+ }
124
+ }
125
+ async function handleGet(argv, prompter) {
126
+ try {
127
+ const answers = await prompter.prompt(argv, [
128
+ {
129
+ type: 'text',
130
+ name: 'id',
131
+ message: 'id',
132
+ required: true,
133
+ },
134
+ ]);
135
+ const client = (0, executor_1.getClient)();
136
+ const result = await client.domainType
137
+ .findOne({
138
+ id: answers.id,
139
+ select: {
140
+ baseType: true,
141
+ category: true,
142
+ checkExpr: true,
143
+ databaseId: true,
144
+ defaultExpr: true,
145
+ description: true,
146
+ id: true,
147
+ label: true,
148
+ name: true,
149
+ notNull: true,
150
+ schemaId: true,
151
+ smartTags: true,
152
+ tags: true,
153
+ },
154
+ })
155
+ .execute();
156
+ console.log(JSON.stringify(result, null, 2));
157
+ }
158
+ catch (error) {
159
+ console.error('Record not found.');
160
+ if (error instanceof Error) {
161
+ console.error(error.message);
162
+ }
163
+ process.exit(1);
164
+ }
165
+ }
166
+ async function handleCreate(argv, prompter) {
167
+ try {
168
+ const rawAnswers = await prompter.prompt(argv, [
169
+ {
170
+ type: 'json',
171
+ name: 'baseType',
172
+ message: 'baseType',
173
+ required: true,
174
+ },
175
+ {
176
+ type: 'text',
177
+ name: 'category',
178
+ message: 'category',
179
+ required: false,
180
+ skipPrompt: true,
181
+ },
182
+ {
183
+ type: 'json',
184
+ name: 'checkExpr',
185
+ message: 'checkExpr',
186
+ required: false,
187
+ skipPrompt: true,
188
+ },
189
+ {
190
+ type: 'text',
191
+ name: 'databaseId',
192
+ message: 'databaseId',
193
+ required: true,
194
+ },
195
+ {
196
+ type: 'json',
197
+ name: 'defaultExpr',
198
+ message: 'defaultExpr',
199
+ required: false,
200
+ skipPrompt: true,
201
+ },
202
+ {
203
+ type: 'text',
204
+ name: 'description',
205
+ message: 'description',
206
+ required: false,
207
+ skipPrompt: true,
208
+ },
209
+ {
210
+ type: 'text',
211
+ name: 'label',
212
+ message: 'label',
213
+ required: false,
214
+ skipPrompt: true,
215
+ },
216
+ {
217
+ type: 'text',
218
+ name: 'name',
219
+ message: 'name',
220
+ required: true,
221
+ },
222
+ {
223
+ type: 'boolean',
224
+ name: 'notNull',
225
+ message: 'notNull',
226
+ required: false,
227
+ skipPrompt: true,
228
+ },
229
+ {
230
+ type: 'text',
231
+ name: 'schemaId',
232
+ message: 'schemaId',
233
+ required: true,
234
+ },
235
+ {
236
+ type: 'json',
237
+ name: 'smartTags',
238
+ message: 'smartTags',
239
+ required: false,
240
+ skipPrompt: true,
241
+ },
242
+ {
243
+ type: 'text',
244
+ name: 'tags',
245
+ message: 'tags',
246
+ required: false,
247
+ skipPrompt: true,
248
+ },
249
+ ]);
250
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
251
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
252
+ const client = (0, executor_1.getClient)();
253
+ const result = await client.domainType
254
+ .create({
255
+ data: {
256
+ baseType: cleanedData.baseType,
257
+ category: cleanedData.category,
258
+ checkExpr: cleanedData.checkExpr,
259
+ databaseId: cleanedData.databaseId,
260
+ defaultExpr: cleanedData.defaultExpr,
261
+ description: cleanedData.description,
262
+ label: cleanedData.label,
263
+ name: cleanedData.name,
264
+ notNull: cleanedData.notNull,
265
+ schemaId: cleanedData.schemaId,
266
+ smartTags: cleanedData.smartTags,
267
+ tags: cleanedData.tags,
268
+ },
269
+ select: {
270
+ baseType: true,
271
+ category: true,
272
+ checkExpr: true,
273
+ databaseId: true,
274
+ defaultExpr: true,
275
+ description: true,
276
+ id: true,
277
+ label: true,
278
+ name: true,
279
+ notNull: true,
280
+ schemaId: true,
281
+ smartTags: true,
282
+ tags: true,
283
+ },
284
+ })
285
+ .execute();
286
+ console.log(JSON.stringify(result, null, 2));
287
+ }
288
+ catch (error) {
289
+ console.error('Failed to create record.');
290
+ if (error instanceof Error) {
291
+ console.error(error.message);
292
+ }
293
+ process.exit(1);
294
+ }
295
+ }
296
+ async function handleUpdate(argv, prompter) {
297
+ try {
298
+ const rawAnswers = await prompter.prompt(argv, [
299
+ {
300
+ type: 'text',
301
+ name: 'id',
302
+ message: 'id',
303
+ required: true,
304
+ },
305
+ {
306
+ type: 'json',
307
+ name: 'baseType',
308
+ message: 'baseType',
309
+ required: false,
310
+ },
311
+ {
312
+ type: 'text',
313
+ name: 'category',
314
+ message: 'category',
315
+ required: false,
316
+ skipPrompt: true,
317
+ },
318
+ {
319
+ type: 'json',
320
+ name: 'checkExpr',
321
+ message: 'checkExpr',
322
+ required: false,
323
+ skipPrompt: true,
324
+ },
325
+ {
326
+ type: 'text',
327
+ name: 'databaseId',
328
+ message: 'databaseId',
329
+ required: false,
330
+ },
331
+ {
332
+ type: 'json',
333
+ name: 'defaultExpr',
334
+ message: 'defaultExpr',
335
+ required: false,
336
+ skipPrompt: true,
337
+ },
338
+ {
339
+ type: 'text',
340
+ name: 'description',
341
+ message: 'description',
342
+ required: false,
343
+ skipPrompt: true,
344
+ },
345
+ {
346
+ type: 'text',
347
+ name: 'label',
348
+ message: 'label',
349
+ required: false,
350
+ skipPrompt: true,
351
+ },
352
+ {
353
+ type: 'text',
354
+ name: 'name',
355
+ message: 'name',
356
+ required: false,
357
+ },
358
+ {
359
+ type: 'boolean',
360
+ name: 'notNull',
361
+ message: 'notNull',
362
+ required: false,
363
+ skipPrompt: true,
364
+ },
365
+ {
366
+ type: 'text',
367
+ name: 'schemaId',
368
+ message: 'schemaId',
369
+ required: false,
370
+ },
371
+ {
372
+ type: 'json',
373
+ name: 'smartTags',
374
+ message: 'smartTags',
375
+ required: false,
376
+ skipPrompt: true,
377
+ },
378
+ {
379
+ type: 'text',
380
+ name: 'tags',
381
+ message: 'tags',
382
+ required: false,
383
+ skipPrompt: true,
384
+ },
385
+ ]);
386
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
387
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
388
+ const client = (0, executor_1.getClient)();
389
+ const result = await client.domainType
390
+ .update({
391
+ where: {
392
+ id: answers.id,
393
+ },
394
+ data: {
395
+ baseType: cleanedData.baseType,
396
+ category: cleanedData.category,
397
+ checkExpr: cleanedData.checkExpr,
398
+ databaseId: cleanedData.databaseId,
399
+ defaultExpr: cleanedData.defaultExpr,
400
+ description: cleanedData.description,
401
+ label: cleanedData.label,
402
+ name: cleanedData.name,
403
+ notNull: cleanedData.notNull,
404
+ schemaId: cleanedData.schemaId,
405
+ smartTags: cleanedData.smartTags,
406
+ tags: cleanedData.tags,
407
+ },
408
+ select: {
409
+ baseType: true,
410
+ category: true,
411
+ checkExpr: true,
412
+ databaseId: true,
413
+ defaultExpr: true,
414
+ description: true,
415
+ id: true,
416
+ label: true,
417
+ name: true,
418
+ notNull: true,
419
+ schemaId: true,
420
+ smartTags: true,
421
+ tags: true,
422
+ },
423
+ })
424
+ .execute();
425
+ console.log(JSON.stringify(result, null, 2));
426
+ }
427
+ catch (error) {
428
+ console.error('Failed to update record.');
429
+ if (error instanceof Error) {
430
+ console.error(error.message);
431
+ }
432
+ process.exit(1);
433
+ }
434
+ }
435
+ async function handleDelete(argv, prompter) {
436
+ try {
437
+ const rawAnswers = await prompter.prompt(argv, [
438
+ {
439
+ type: 'text',
440
+ name: 'id',
441
+ message: 'id',
442
+ required: true,
443
+ },
444
+ ]);
445
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
446
+ const client = (0, executor_1.getClient)();
447
+ const result = await client.domainType
448
+ .delete({
449
+ where: {
450
+ id: answers.id,
451
+ },
452
+ select: {
453
+ id: true,
454
+ },
455
+ })
456
+ .execute();
457
+ console.log(JSON.stringify(result, null, 2));
458
+ }
459
+ catch (error) {
460
+ console.error('Failed to delete record.');
461
+ if (error instanceof Error) {
462
+ console.error(error.message);
463
+ }
464
+ process.exit(1);
465
+ }
466
+ }
@@ -23,6 +23,7 @@ const fieldSchema = {
23
23
  partitioned: 'boolean',
24
24
  peoplestamps: 'boolean',
25
25
  pluralName: 'string',
26
+ principalstamps: 'boolean',
26
27
  schemaId: 'uuid',
27
28
  singularName: 'string',
28
29
  smartTags: 'json',
@@ -88,6 +89,7 @@ async function handleList(argv, _prompter) {
88
89
  partitioned: true,
89
90
  peoplestamps: true,
90
91
  pluralName: true,
92
+ principalstamps: true,
91
93
  schemaId: true,
92
94
  singularName: true,
93
95
  smartTags: true,
@@ -127,6 +129,7 @@ async function handleFindFirst(argv, _prompter) {
127
129
  partitioned: true,
128
130
  peoplestamps: true,
129
131
  pluralName: true,
132
+ principalstamps: true,
130
133
  schemaId: true,
131
134
  singularName: true,
132
135
  smartTags: true,
@@ -178,6 +181,7 @@ async function handleGet(argv, prompter) {
178
181
  partitioned: true,
179
182
  peoplestamps: true,
180
183
  pluralName: true,
184
+ principalstamps: true,
181
185
  schemaId: true,
182
186
  singularName: true,
183
187
  smartTags: true,
@@ -285,6 +289,13 @@ async function handleCreate(argv, prompter) {
285
289
  required: false,
286
290
  skipPrompt: true,
287
291
  },
292
+ {
293
+ type: 'boolean',
294
+ name: 'principalstamps',
295
+ message: 'principalstamps',
296
+ required: false,
297
+ skipPrompt: true,
298
+ },
288
299
  {
289
300
  type: 'text',
290
301
  name: 'schemaId',
@@ -352,6 +363,7 @@ async function handleCreate(argv, prompter) {
352
363
  partitioned: cleanedData.partitioned,
353
364
  peoplestamps: cleanedData.peoplestamps,
354
365
  pluralName: cleanedData.pluralName,
366
+ principalstamps: cleanedData.principalstamps,
355
367
  schemaId: cleanedData.schemaId,
356
368
  singularName: cleanedData.singularName,
357
369
  smartTags: cleanedData.smartTags,
@@ -375,6 +387,7 @@ async function handleCreate(argv, prompter) {
375
387
  partitioned: true,
376
388
  peoplestamps: true,
377
389
  pluralName: true,
390
+ principalstamps: true,
378
391
  schemaId: true,
379
392
  singularName: true,
380
393
  smartTags: true,
@@ -488,6 +501,13 @@ async function handleUpdate(argv, prompter) {
488
501
  required: false,
489
502
  skipPrompt: true,
490
503
  },
504
+ {
505
+ type: 'boolean',
506
+ name: 'principalstamps',
507
+ message: 'principalstamps',
508
+ required: false,
509
+ skipPrompt: true,
510
+ },
491
511
  {
492
512
  type: 'text',
493
513
  name: 'schemaId',
@@ -558,6 +578,7 @@ async function handleUpdate(argv, prompter) {
558
578
  partitioned: cleanedData.partitioned,
559
579
  peoplestamps: cleanedData.peoplestamps,
560
580
  pluralName: cleanedData.pluralName,
581
+ principalstamps: cleanedData.principalstamps,
561
582
  schemaId: cleanedData.schemaId,
562
583
  singularName: cleanedData.singularName,
563
584
  smartTags: cleanedData.smartTags,
@@ -581,6 +602,7 @@ async function handleUpdate(argv, prompter) {
581
602
  partitioned: true,
582
603
  peoplestamps: true,
583
604
  pluralName: true,
605
+ principalstamps: true,
584
606
  schemaId: true,
585
607
  singularName: true,
586
608
  smartTags: true,
@@ -13,7 +13,6 @@ const inquirerer_1 = require("inquirerer");
13
13
  const context_1 = __importDefault(require("./commands/context"));
14
14
  const auth_1 = __importDefault(require("./commands/auth"));
15
15
  const api_1 = __importDefault(require("./commands/api"));
16
- const api_module_1 = __importDefault(require("./commands/api-module"));
17
16
  const api_schema_1 = __importDefault(require("./commands/api-schema"));
18
17
  const api_setting_1 = __importDefault(require("./commands/api-setting"));
19
18
  const ast_migration_1 = __importDefault(require("./commands/ast-migration"));
@@ -26,6 +25,7 @@ const database_transfer_1 = __importDefault(require("./commands/database-transfe
26
25
  const default_privilege_1 = __importDefault(require("./commands/default-privilege"));
27
26
  const domain_1 = __importDefault(require("./commands/domain"));
28
27
  const domain_event_1 = __importDefault(require("./commands/domain-event"));
28
+ const domain_type_1 = __importDefault(require("./commands/domain-type"));
29
29
  const domain_verification_1 = __importDefault(require("./commands/domain-verification"));
30
30
  const embedding_chunk_1 = __importDefault(require("./commands/embedding-chunk"));
31
31
  const enum_1 = __importDefault(require("./commands/enum"));
@@ -41,7 +41,6 @@ const managed_domain_1 = __importDefault(require("./commands/managed-domain"));
41
41
  const node_type_registry_1 = __importDefault(require("./commands/node-type-registry"));
42
42
  const partition_1 = __importDefault(require("./commands/partition"));
43
43
  const platform_api_1 = __importDefault(require("./commands/platform-api"));
44
- const platform_api_module_1 = __importDefault(require("./commands/platform-api-module"));
45
44
  const platform_api_schema_1 = __importDefault(require("./commands/platform-api-schema"));
46
45
  const platform_api_setting_1 = __importDefault(require("./commands/platform-api-setting"));
47
46
  const platform_cors_setting_1 = __importDefault(require("./commands/platform-cors-setting"));
@@ -92,7 +91,6 @@ const createCommandMap = () => ({
92
91
  context: context_1.default,
93
92
  auth: auth_1.default,
94
93
  api: api_1.default,
95
- 'api-module': api_module_1.default,
96
94
  'api-schema': api_schema_1.default,
97
95
  'api-setting': api_setting_1.default,
98
96
  'ast-migration': ast_migration_1.default,
@@ -105,6 +103,7 @@ const createCommandMap = () => ({
105
103
  'default-privilege': default_privilege_1.default,
106
104
  domain: domain_1.default,
107
105
  'domain-event': domain_event_1.default,
106
+ 'domain-type': domain_type_1.default,
108
107
  'domain-verification': domain_verification_1.default,
109
108
  'embedding-chunk': embedding_chunk_1.default,
110
109
  enum: enum_1.default,
@@ -120,7 +119,6 @@ const createCommandMap = () => ({
120
119
  'node-type-registry': node_type_registry_1.default,
121
120
  partition: partition_1.default,
122
121
  'platform-api': platform_api_1.default,
123
- 'platform-api-module': platform_api_module_1.default,
124
122
  'platform-api-schema': platform_api_schema_1.default,
125
123
  'platform-api-setting': platform_api_setting_1.default,
126
124
  'platform-cors-setting': platform_cors_setting_1.default,
@@ -168,7 +166,7 @@ const createCommandMap = () => ({
168
166
  'request-database': request_database_1.default,
169
167
  'set-field-order': set_field_order_1.default,
170
168
  });
171
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-module apiModule CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-verification domainVerification CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field field CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-module platformApiModule CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-site platformSite CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site site CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n resolve-http-route resolveHttpRoute\n resolve-route resolveRoute\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n\n --help, -h Show this help message\n --version, -v Show version\n";
169
+ const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n api api CRUD operations\n api-schema apiSchema CRUD operations\n api-setting apiSetting CRUD operations\n ast-migration astMigration CRUD operations\n check-constraint checkConstraint CRUD operations\n composite-type compositeType CRUD operations\n cors-setting corsSetting CRUD operations\n database database CRUD operations\n database-setting databaseSetting CRUD operations\n database-transfer databaseTransfer CRUD operations\n default-privilege defaultPrivilege CRUD operations\n domain domain CRUD operations\n domain-event domainEvent CRUD operations\n domain-type domainType CRUD operations\n domain-verification domainVerification CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n enum enum CRUD operations\n exclusion-constraint exclusionConstraint CRUD operations\n field field CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n function function CRUD operations\n hostname-binding hostnameBinding CRUD operations\n http-route httpRoute CRUD operations\n index index CRUD operations\n managed-domain managedDomain CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n partition partition CRUD operations\n platform-api platformApi CRUD operations\n platform-api-schema platformApiSchema CRUD operations\n platform-api-setting platformApiSetting CRUD operations\n platform-cors-setting platformCorsSetting CRUD operations\n platform-domain platformDomain CRUD operations\n platform-domain-event platformDomainEvent CRUD operations\n platform-domain-verification platformDomainVerification CRUD operations\n platform-managed-domain platformManagedDomain CRUD operations\n platform-site platformSite CRUD operations\n platform-site-metadatum platformSiteMetadatum CRUD operations\n platform-site-module platformSiteModule CRUD operations\n platform-site-theme platformSiteTheme CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rls-setting rlsSetting CRUD operations\n route-binding routeBinding CRUD operations\n route route CRUD operations\n schema schema CRUD operations\n schema-grant schemaGrant CRUD operations\n site site CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n spatial-relation spatialRelation CRUD operations\n sql-action sqlAction CRUD operations\n table table CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n trigger-function triggerFunction CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n view-table viewTable CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n api-schema-names apiSchemaNames\n apply-registry-defaults applyRegistryDefaults\n resolve-http-route resolveHttpRoute\n resolve-route resolveRoute\n accept-database-transfer acceptDatabaseTransfer\n apply-rls applyRls\n cancel-database-transfer cancelDatabaseTransfer\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n reject-database-transfer rejectDatabaseTransfer\n request-database Requests a database and returns a ticket (database_provision_module row) to poll.\n\nPass exactly one of preset_slug or modules. The pool, presets, and owner bootstrap are private implementation details: a warm pool hit fulfills the ticket immediately (fulfilled_at set, deferred owner bootstrap), otherwise the database is cold-provisioned asynchronously with exactly the requested modules. Poll the ticket until status = 'completed'; it then carries database_id and fulfilled_at.\n\nExample usage:\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', preset_slug := 'full');\n SELECT * FROM metaschema_public.request_database('my_app', 'example.com', modules := '[\"users_module\", \"emails_module\"]'::jsonb);\n set-field-order setFieldOrder\n\n --help, -h Show this help message\n --version, -v Show version\n";
172
170
  const commands = async (argv, prompter, options) => {
173
171
  if (argv.help || argv.h) {
174
172
  console.log(usage);
@@ -1,7 +1,6 @@
1
1
  export declare const getStore: () => import("appstash").ConfigStore;
2
2
  export declare function getClient(contextName?: string): {
3
3
  api: import("../orm").ApiModel;
4
- apiModule: import("../orm").ApiModuleModel;
5
4
  apiSchema: import("../orm").ApiSchemaModel;
6
5
  apiSetting: import("../orm").ApiSettingModel;
7
6
  astMigration: import("../orm").AstMigrationModel;
@@ -14,6 +13,7 @@ export declare function getClient(contextName?: string): {
14
13
  defaultPrivilege: import("../orm").DefaultPrivilegeModel;
15
14
  domain: import("../orm").DomainModel;
16
15
  domainEvent: import("../orm").DomainEventModel;
16
+ domainType: import("../orm").DomainTypeModel;
17
17
  domainVerification: import("../orm").DomainVerificationModel;
18
18
  embeddingChunk: import("../orm").EmbeddingChunkModel;
19
19
  enum: import("../orm").EnumModel;
@@ -29,7 +29,6 @@ export declare function getClient(contextName?: string): {
29
29
  nodeTypeRegistry: import("../orm").NodeTypeRegistryModel;
30
30
  partition: import("../orm").PartitionModel;
31
31
  platformApi: import("../orm").PlatformApiModel;
32
- platformApiModule: import("../orm").PlatformApiModuleModel;
33
32
  platformApiSchema: import("../orm").PlatformApiSchemaModel;
34
33
  platformApiSetting: import("../orm").PlatformApiSettingModel;
35
34
  platformCorsSetting: import("../orm").PlatformCorsSettingModel;