@constructive-sdk/cli 0.12.16 → 0.12.17
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.
- package/esm/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/esm/public/cli/commands/blueprint-construction.js +392 -0
- package/esm/public/cli/commands/blueprint.js +0 -110
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/esm/public/cli/commands/provision-full-text-search.js +34 -0
- package/esm/public/cli/commands/provision-index.d.ts +8 -0
- package/esm/public/cli/commands/provision-index.js +34 -0
- package/esm/public/cli/commands/provision-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-relation.js +34 -0
- package/esm/public/cli/commands/provision-table.d.ts +8 -0
- package/esm/public/cli/commands/provision-table.js +34 -0
- package/esm/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/esm/public/cli/commands/provision-unique-constraint.js +34 -0
- package/esm/public/cli/commands/relation-provision.js +12 -34
- package/esm/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/esm/public/cli/commands/resolve-blueprint-table.js +48 -0
- package/esm/public/cli/commands/secure-table-provision.js +14 -36
- package/esm/public/cli/commands/storage-module.d.ts +8 -0
- package/esm/public/cli/commands/storage-module.js +536 -0
- package/esm/public/cli/commands.js +27 -11
- package/esm/public/cli/executor.d.ts +49 -17
- package/esm/public/orm/index.d.ts +53 -19
- package/esm/public/orm/index.js +8 -4
- package/esm/public/orm/input-types.d.ts +886 -249
- package/esm/public/orm/input-types.js +5 -0
- package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/esm/public/orm/models/blueprintConstruction.js +96 -0
- package/esm/public/orm/models/index.d.ts +4 -2
- package/esm/public/orm/models/index.js +4 -2
- package/esm/public/orm/models/storageModule.d.ts +56 -0
- package/esm/public/orm/models/storageModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +86 -26
- package/esm/public/orm/mutation/index.js +96 -36
- package/esm/public/orm/query/index.d.ts +16 -0
- package/esm/public/orm/query/index.js +28 -0
- package/package.json +2 -2
- package/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/public/cli/commands/blueprint-construction.js +394 -0
- package/public/cli/commands/blueprint.js +0 -110
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/public/cli/commands/provision-full-text-search.js +36 -0
- package/public/cli/commands/provision-index.d.ts +8 -0
- package/public/cli/commands/provision-index.js +36 -0
- package/public/cli/commands/provision-relation.d.ts +8 -0
- package/public/cli/commands/provision-relation.js +36 -0
- package/public/cli/commands/provision-table.d.ts +8 -0
- package/public/cli/commands/provision-table.js +36 -0
- package/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/public/cli/commands/provision-unique-constraint.js +36 -0
- package/public/cli/commands/relation-provision.js +12 -34
- package/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-table.js +50 -0
- package/public/cli/commands/secure-table-provision.js +14 -36
- package/public/cli/commands/storage-module.d.ts +8 -0
- package/public/cli/commands/storage-module.js +538 -0
- package/public/cli/commands.js +27 -11
- package/public/cli/executor.d.ts +49 -17
- package/public/orm/index.d.ts +53 -19
- package/public/orm/index.js +8 -4
- package/public/orm/input-types.d.ts +886 -249
- package/public/orm/input-types.js +5 -0
- package/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/public/orm/models/blueprintConstruction.js +100 -0
- package/public/orm/models/index.d.ts +4 -2
- package/public/orm/models/index.js +11 -7
- package/public/orm/models/storageModule.d.ts +56 -0
- package/public/orm/models/storageModule.js +100 -0
- package/public/orm/mutation/index.d.ts +86 -26
- package/public/orm/mutation/index.js +96 -36
- package/public/orm/query/index.d.ts +16 -0
- package/public/orm/query/index.js +28 -0
|
@@ -197,30 +197,6 @@ function createMutationOperations(client) {
|
|
|
197
197
|
},
|
|
198
198
|
], input_types_1.connectionFieldsMap, 'RemoveNodeAtPathPayload'),
|
|
199
199
|
}),
|
|
200
|
-
setDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
201
|
-
client,
|
|
202
|
-
operation: 'mutation',
|
|
203
|
-
operationName: 'SetDataAtPath',
|
|
204
|
-
fieldName: 'setDataAtPath',
|
|
205
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'SetDataAtPath', 'setDataAtPath', options.select, args, [
|
|
206
|
-
{
|
|
207
|
-
name: 'input',
|
|
208
|
-
type: 'SetDataAtPathInput!',
|
|
209
|
-
},
|
|
210
|
-
], input_types_1.connectionFieldsMap, 'SetDataAtPathPayload'),
|
|
211
|
-
}),
|
|
212
|
-
setPropsAndCommit: (args, options) => new query_builder_1.QueryBuilder({
|
|
213
|
-
client,
|
|
214
|
-
operation: 'mutation',
|
|
215
|
-
operationName: 'SetPropsAndCommit',
|
|
216
|
-
fieldName: 'setPropsAndCommit',
|
|
217
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'SetPropsAndCommit', 'setPropsAndCommit', options.select, args, [
|
|
218
|
-
{
|
|
219
|
-
name: 'input',
|
|
220
|
-
type: 'SetPropsAndCommitInput!',
|
|
221
|
-
},
|
|
222
|
-
], input_types_1.connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
223
|
-
}),
|
|
224
200
|
copyTemplateToBlueprint: (args, options) => new query_builder_1.QueryBuilder({
|
|
225
201
|
client,
|
|
226
202
|
operation: 'mutation',
|
|
@@ -233,18 +209,6 @@ function createMutationOperations(client) {
|
|
|
233
209
|
},
|
|
234
210
|
], input_types_1.connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
235
211
|
}),
|
|
236
|
-
provisionDatabaseWithUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
|
-
client,
|
|
238
|
-
operation: 'mutation',
|
|
239
|
-
operationName: 'ProvisionDatabaseWithUser',
|
|
240
|
-
fieldName: 'provisionDatabaseWithUser',
|
|
241
|
-
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
242
|
-
{
|
|
243
|
-
name: 'input',
|
|
244
|
-
type: 'ProvisionDatabaseWithUserInput!',
|
|
245
|
-
},
|
|
246
|
-
], input_types_1.connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
247
|
-
}),
|
|
248
212
|
bootstrapUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
249
213
|
client,
|
|
250
214
|
operation: 'mutation',
|
|
@@ -269,6 +233,78 @@ function createMutationOperations(client) {
|
|
|
269
233
|
},
|
|
270
234
|
], input_types_1.connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
271
235
|
}),
|
|
236
|
+
provisionUniqueConstraint: (args, options) => new query_builder_1.QueryBuilder({
|
|
237
|
+
client,
|
|
238
|
+
operation: 'mutation',
|
|
239
|
+
operationName: 'ProvisionUniqueConstraint',
|
|
240
|
+
fieldName: 'provisionUniqueConstraint',
|
|
241
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionUniqueConstraint', 'provisionUniqueConstraint', options.select, args, [
|
|
242
|
+
{
|
|
243
|
+
name: 'input',
|
|
244
|
+
type: 'ProvisionUniqueConstraintInput!',
|
|
245
|
+
},
|
|
246
|
+
], input_types_1.connectionFieldsMap, 'ProvisionUniqueConstraintPayload'),
|
|
247
|
+
}),
|
|
248
|
+
provisionFullTextSearch: (args, options) => new query_builder_1.QueryBuilder({
|
|
249
|
+
client,
|
|
250
|
+
operation: 'mutation',
|
|
251
|
+
operationName: 'ProvisionFullTextSearch',
|
|
252
|
+
fieldName: 'provisionFullTextSearch',
|
|
253
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionFullTextSearch', 'provisionFullTextSearch', options.select, args, [
|
|
254
|
+
{
|
|
255
|
+
name: 'input',
|
|
256
|
+
type: 'ProvisionFullTextSearchInput!',
|
|
257
|
+
},
|
|
258
|
+
], input_types_1.connectionFieldsMap, 'ProvisionFullTextSearchPayload'),
|
|
259
|
+
}),
|
|
260
|
+
provisionIndex: (args, options) => new query_builder_1.QueryBuilder({
|
|
261
|
+
client,
|
|
262
|
+
operation: 'mutation',
|
|
263
|
+
operationName: 'ProvisionIndex',
|
|
264
|
+
fieldName: 'provisionIndex',
|
|
265
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionIndex', 'provisionIndex', options.select, args, [
|
|
266
|
+
{
|
|
267
|
+
name: 'input',
|
|
268
|
+
type: 'ProvisionIndexInput!',
|
|
269
|
+
},
|
|
270
|
+
], input_types_1.connectionFieldsMap, 'ProvisionIndexPayload'),
|
|
271
|
+
}),
|
|
272
|
+
setDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
273
|
+
client,
|
|
274
|
+
operation: 'mutation',
|
|
275
|
+
operationName: 'SetDataAtPath',
|
|
276
|
+
fieldName: 'setDataAtPath',
|
|
277
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SetDataAtPath', 'setDataAtPath', options.select, args, [
|
|
278
|
+
{
|
|
279
|
+
name: 'input',
|
|
280
|
+
type: 'SetDataAtPathInput!',
|
|
281
|
+
},
|
|
282
|
+
], input_types_1.connectionFieldsMap, 'SetDataAtPathPayload'),
|
|
283
|
+
}),
|
|
284
|
+
setPropsAndCommit: (args, options) => new query_builder_1.QueryBuilder({
|
|
285
|
+
client,
|
|
286
|
+
operation: 'mutation',
|
|
287
|
+
operationName: 'SetPropsAndCommit',
|
|
288
|
+
fieldName: 'setPropsAndCommit',
|
|
289
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'SetPropsAndCommit', 'setPropsAndCommit', options.select, args, [
|
|
290
|
+
{
|
|
291
|
+
name: 'input',
|
|
292
|
+
type: 'SetPropsAndCommitInput!',
|
|
293
|
+
},
|
|
294
|
+
], input_types_1.connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
295
|
+
}),
|
|
296
|
+
provisionDatabaseWithUser: (args, options) => new query_builder_1.QueryBuilder({
|
|
297
|
+
client,
|
|
298
|
+
operation: 'mutation',
|
|
299
|
+
operationName: 'ProvisionDatabaseWithUser',
|
|
300
|
+
fieldName: 'provisionDatabaseWithUser',
|
|
301
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
302
|
+
{
|
|
303
|
+
name: 'input',
|
|
304
|
+
type: 'ProvisionDatabaseWithUserInput!',
|
|
305
|
+
},
|
|
306
|
+
], input_types_1.connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
307
|
+
}),
|
|
272
308
|
insertNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
|
|
273
309
|
client,
|
|
274
310
|
operation: 'mutation',
|
|
@@ -305,6 +341,18 @@ function createMutationOperations(client) {
|
|
|
305
341
|
},
|
|
306
342
|
], input_types_1.connectionFieldsMap, 'SetAndCommitPayload'),
|
|
307
343
|
}),
|
|
344
|
+
provisionRelation: (args, options) => new query_builder_1.QueryBuilder({
|
|
345
|
+
client,
|
|
346
|
+
operation: 'mutation',
|
|
347
|
+
operationName: 'ProvisionRelation',
|
|
348
|
+
fieldName: 'provisionRelation',
|
|
349
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionRelation', 'provisionRelation', options.select, args, [
|
|
350
|
+
{
|
|
351
|
+
name: 'input',
|
|
352
|
+
type: 'ProvisionRelationInput!',
|
|
353
|
+
},
|
|
354
|
+
], input_types_1.connectionFieldsMap, 'ProvisionRelationPayload'),
|
|
355
|
+
}),
|
|
308
356
|
applyRls: (args, options) => new query_builder_1.QueryBuilder({
|
|
309
357
|
client,
|
|
310
358
|
operation: 'mutation',
|
|
@@ -389,6 +437,18 @@ function createMutationOperations(client) {
|
|
|
389
437
|
},
|
|
390
438
|
], input_types_1.connectionFieldsMap, 'OneTimeTokenPayload'),
|
|
391
439
|
}),
|
|
440
|
+
provisionTable: (args, options) => new query_builder_1.QueryBuilder({
|
|
441
|
+
client,
|
|
442
|
+
operation: 'mutation',
|
|
443
|
+
operationName: 'ProvisionTable',
|
|
444
|
+
fieldName: 'provisionTable',
|
|
445
|
+
...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionTable', 'provisionTable', options.select, args, [
|
|
446
|
+
{
|
|
447
|
+
name: 'input',
|
|
448
|
+
type: 'ProvisionTableInput!',
|
|
449
|
+
},
|
|
450
|
+
], input_types_1.connectionFieldsMap, 'ProvisionTablePayload'),
|
|
451
|
+
}),
|
|
392
452
|
sendVerificationEmail: (args, options) => new query_builder_1.QueryBuilder({
|
|
393
453
|
client,
|
|
394
454
|
operation: 'mutation',
|
|
@@ -34,6 +34,17 @@ export interface AppPermissionsGetMaskVariables {
|
|
|
34
34
|
export interface OrgPermissionsGetMaskVariables {
|
|
35
35
|
ids?: string[];
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Variables for resolveBlueprintTable
|
|
39
|
+
* Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.
|
|
40
|
+
*/
|
|
41
|
+
export interface ResolveBlueprintTableVariables {
|
|
42
|
+
databaseId?: string;
|
|
43
|
+
tableName?: string;
|
|
44
|
+
schemaName?: string;
|
|
45
|
+
tableMap?: unknown;
|
|
46
|
+
defaultSchemaId?: string;
|
|
47
|
+
}
|
|
37
48
|
export interface AppPermissionsGetMaskByNamesVariables {
|
|
38
49
|
names?: string[];
|
|
39
50
|
}
|
|
@@ -161,6 +172,11 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
161
172
|
}) => QueryBuilder<{
|
|
162
173
|
orgPermissionsGetMask: string | null;
|
|
163
174
|
}>;
|
|
175
|
+
resolveBlueprintTable: (args: ResolveBlueprintTableVariables, options?: {
|
|
176
|
+
select?: Record<string, unknown>;
|
|
177
|
+
}) => QueryBuilder<{
|
|
178
|
+
resolveBlueprintTable: string | null;
|
|
179
|
+
}>;
|
|
164
180
|
appPermissionsGetMaskByNames: (args: AppPermissionsGetMaskByNamesVariables, options?: {
|
|
165
181
|
select?: Record<string, unknown>;
|
|
166
182
|
}) => QueryBuilder<{
|
|
@@ -134,6 +134,34 @@ function createQueryOperations(client) {
|
|
|
134
134
|
},
|
|
135
135
|
], input_types_1.connectionFieldsMap, undefined),
|
|
136
136
|
}),
|
|
137
|
+
resolveBlueprintTable: (args, options) => new query_builder_1.QueryBuilder({
|
|
138
|
+
client,
|
|
139
|
+
operation: 'query',
|
|
140
|
+
operationName: 'ResolveBlueprintTable',
|
|
141
|
+
fieldName: 'resolveBlueprintTable',
|
|
142
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'ResolveBlueprintTable', 'resolveBlueprintTable', options?.select, args, [
|
|
143
|
+
{
|
|
144
|
+
name: 'databaseId',
|
|
145
|
+
type: 'UUID',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'tableName',
|
|
149
|
+
type: 'String',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'schemaName',
|
|
153
|
+
type: 'String',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'tableMap',
|
|
157
|
+
type: 'JSON',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: 'defaultSchemaId',
|
|
161
|
+
type: 'UUID',
|
|
162
|
+
},
|
|
163
|
+
], input_types_1.connectionFieldsMap, undefined),
|
|
164
|
+
}),
|
|
137
165
|
appPermissionsGetMaskByNames: (args, options) => new query_builder_1.QueryBuilder({
|
|
138
166
|
client,
|
|
139
167
|
operation: 'query',
|