@constructive-sdk/cli 0.21.8 → 0.21.9
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/admin/cli/executor.js +1 -1
- package/admin/orm/select-types.d.ts +1 -1
- package/auth/cli/executor.js +1 -1
- package/auth/orm/select-types.d.ts +1 -1
- package/esm/admin/cli/executor.js +1 -1
- package/esm/admin/orm/select-types.d.ts +1 -1
- package/esm/auth/cli/executor.js +1 -1
- package/esm/auth/orm/select-types.d.ts +1 -1
- package/esm/objects/cli/executor.js +1 -1
- package/esm/objects/orm/select-types.d.ts +1 -1
- package/esm/public/cli/commands/api-setting.js +22 -0
- package/esm/public/cli/commands/database-setting.js +22 -0
- package/esm/public/cli/commands.js +3 -3
- package/esm/public/cli/executor.d.ts +1 -1
- package/esm/public/cli/executor.js +1 -1
- package/esm/public/orm/index.d.ts +2 -2
- package/esm/public/orm/index.js +2 -2
- package/esm/public/orm/input-types.d.ts +204 -186
- package/esm/public/orm/models/index.d.ts +1 -1
- package/esm/public/orm/models/index.js +1 -1
- package/esm/public/orm/select-types.d.ts +1 -1
- package/objects/cli/executor.js +1 -1
- package/objects/orm/select-types.d.ts +1 -1
- package/package.json +4 -4
- package/public/cli/commands/api-setting.js +22 -0
- package/public/cli/commands/database-setting.js +22 -0
- package/public/cli/commands.js +3 -3
- package/public/cli/executor.d.ts +1 -1
- package/public/cli/executor.js +1 -1
- package/public/orm/index.d.ts +2 -2
- package/public/orm/index.js +2 -2
- package/public/orm/input-types.d.ts +204 -186
- package/public/orm/models/index.d.ts +1 -1
- package/public/orm/models/index.js +3 -3
- package/public/orm/select-types.d.ts +1 -1
package/admin/cli/executor.js
CHANGED
|
@@ -14,7 +14,7 @@ export interface PageInfo {
|
|
|
14
14
|
startCursor?: string | null;
|
|
15
15
|
endCursor?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface FindManyArgs<TSelect, TWhere, TOrderBy
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
18
|
select?: TSelect;
|
|
19
19
|
where?: TWhere;
|
|
20
20
|
orderBy?: TOrderBy[];
|
package/auth/cli/executor.js
CHANGED
|
@@ -14,7 +14,7 @@ export interface PageInfo {
|
|
|
14
14
|
startCursor?: string | null;
|
|
15
15
|
endCursor?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface FindManyArgs<TSelect, TWhere, TOrderBy
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
18
|
select?: TSelect;
|
|
19
19
|
where?: TWhere;
|
|
20
20
|
orderBy?: TOrderBy[];
|
|
@@ -14,7 +14,7 @@ export interface PageInfo {
|
|
|
14
14
|
startCursor?: string | null;
|
|
15
15
|
endCursor?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface FindManyArgs<TSelect, TWhere, TOrderBy
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
18
|
select?: TSelect;
|
|
19
19
|
where?: TWhere;
|
|
20
20
|
orderBy?: TOrderBy[];
|
package/esm/auth/cli/executor.js
CHANGED
|
@@ -14,7 +14,7 @@ export interface PageInfo {
|
|
|
14
14
|
startCursor?: string | null;
|
|
15
15
|
endCursor?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface FindManyArgs<TSelect, TWhere, TOrderBy
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
18
|
select?: TSelect;
|
|
19
19
|
where?: TWhere;
|
|
20
20
|
orderBy?: TOrderBy[];
|
|
@@ -14,7 +14,7 @@ export interface PageInfo {
|
|
|
14
14
|
startCursor?: string | null;
|
|
15
15
|
endCursor?: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface FindManyArgs<TSelect, TWhere, TOrderBy
|
|
17
|
+
export interface FindManyArgs<TSelect, TWhere, TOrderBy> {
|
|
18
18
|
select?: TSelect;
|
|
19
19
|
where?: TWhere;
|
|
20
20
|
orderBy?: TOrderBy[];
|
|
@@ -20,6 +20,7 @@ const fieldSchema = {
|
|
|
20
20
|
enableLtree: 'boolean',
|
|
21
21
|
enableLlm: 'boolean',
|
|
22
22
|
enableRealtime: 'boolean',
|
|
23
|
+
enableBulk: 'boolean',
|
|
23
24
|
options: 'json',
|
|
24
25
|
};
|
|
25
26
|
const usage = '\napi-setting <command>\n\nCommands:\n list List apiSetting records\n find-first Find first matching apiSetting record\n get Get a apiSetting by ID\n create Create a new apiSetting\n update Update an existing apiSetting\n delete Delete a apiSetting\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';
|
|
@@ -77,6 +78,7 @@ async function handleList(argv, _prompter) {
|
|
|
77
78
|
enableLtree: true,
|
|
78
79
|
enableLlm: true,
|
|
79
80
|
enableRealtime: true,
|
|
81
|
+
enableBulk: true,
|
|
80
82
|
options: true,
|
|
81
83
|
};
|
|
82
84
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
@@ -108,6 +110,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
108
110
|
enableLtree: true,
|
|
109
111
|
enableLlm: true,
|
|
110
112
|
enableRealtime: true,
|
|
113
|
+
enableBulk: true,
|
|
111
114
|
options: true,
|
|
112
115
|
};
|
|
113
116
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
@@ -151,6 +154,7 @@ async function handleGet(argv, prompter) {
|
|
|
151
154
|
enableLtree: true,
|
|
152
155
|
enableLlm: true,
|
|
153
156
|
enableRealtime: true,
|
|
157
|
+
enableBulk: true,
|
|
154
158
|
options: true,
|
|
155
159
|
},
|
|
156
160
|
})
|
|
@@ -250,6 +254,13 @@ async function handleCreate(argv, prompter) {
|
|
|
250
254
|
required: false,
|
|
251
255
|
skipPrompt: true,
|
|
252
256
|
},
|
|
257
|
+
{
|
|
258
|
+
type: 'boolean',
|
|
259
|
+
name: 'enableBulk',
|
|
260
|
+
message: 'enableBulk',
|
|
261
|
+
required: false,
|
|
262
|
+
skipPrompt: true,
|
|
263
|
+
},
|
|
253
264
|
{
|
|
254
265
|
type: 'json',
|
|
255
266
|
name: 'options',
|
|
@@ -276,6 +287,7 @@ async function handleCreate(argv, prompter) {
|
|
|
276
287
|
enableLtree: cleanedData.enableLtree,
|
|
277
288
|
enableLlm: cleanedData.enableLlm,
|
|
278
289
|
enableRealtime: cleanedData.enableRealtime,
|
|
290
|
+
enableBulk: cleanedData.enableBulk,
|
|
279
291
|
options: cleanedData.options,
|
|
280
292
|
},
|
|
281
293
|
select: {
|
|
@@ -292,6 +304,7 @@ async function handleCreate(argv, prompter) {
|
|
|
292
304
|
enableLtree: true,
|
|
293
305
|
enableLlm: true,
|
|
294
306
|
enableRealtime: true,
|
|
307
|
+
enableBulk: true,
|
|
295
308
|
options: true,
|
|
296
309
|
},
|
|
297
310
|
})
|
|
@@ -397,6 +410,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
397
410
|
required: false,
|
|
398
411
|
skipPrompt: true,
|
|
399
412
|
},
|
|
413
|
+
{
|
|
414
|
+
type: 'boolean',
|
|
415
|
+
name: 'enableBulk',
|
|
416
|
+
message: 'enableBulk',
|
|
417
|
+
required: false,
|
|
418
|
+
skipPrompt: true,
|
|
419
|
+
},
|
|
400
420
|
{
|
|
401
421
|
type: 'json',
|
|
402
422
|
name: 'options',
|
|
@@ -426,6 +446,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
426
446
|
enableLtree: cleanedData.enableLtree,
|
|
427
447
|
enableLlm: cleanedData.enableLlm,
|
|
428
448
|
enableRealtime: cleanedData.enableRealtime,
|
|
449
|
+
enableBulk: cleanedData.enableBulk,
|
|
429
450
|
options: cleanedData.options,
|
|
430
451
|
},
|
|
431
452
|
select: {
|
|
@@ -442,6 +463,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
442
463
|
enableLtree: true,
|
|
443
464
|
enableLlm: true,
|
|
444
465
|
enableRealtime: true,
|
|
466
|
+
enableBulk: true,
|
|
445
467
|
options: true,
|
|
446
468
|
},
|
|
447
469
|
})
|
|
@@ -19,6 +19,7 @@ const fieldSchema = {
|
|
|
19
19
|
enableLtree: 'boolean',
|
|
20
20
|
enableLlm: 'boolean',
|
|
21
21
|
enableRealtime: 'boolean',
|
|
22
|
+
enableBulk: 'boolean',
|
|
22
23
|
options: 'json',
|
|
23
24
|
};
|
|
24
25
|
const usage = '\ndatabase-setting <command>\n\nCommands:\n list List databaseSetting records\n find-first Find first matching databaseSetting record\n get Get a databaseSetting by ID\n create Create a new databaseSetting\n update Update an existing databaseSetting\n delete Delete a databaseSetting\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';
|
|
@@ -75,6 +76,7 @@ async function handleList(argv, _prompter) {
|
|
|
75
76
|
enableLtree: true,
|
|
76
77
|
enableLlm: true,
|
|
77
78
|
enableRealtime: true,
|
|
79
|
+
enableBulk: true,
|
|
78
80
|
options: true,
|
|
79
81
|
};
|
|
80
82
|
const findManyArgs = parseFindManyArgs(argv, defaultSelect);
|
|
@@ -105,6 +107,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
105
107
|
enableLtree: true,
|
|
106
108
|
enableLlm: true,
|
|
107
109
|
enableRealtime: true,
|
|
110
|
+
enableBulk: true,
|
|
108
111
|
options: true,
|
|
109
112
|
};
|
|
110
113
|
const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
|
|
@@ -147,6 +150,7 @@ async function handleGet(argv, prompter) {
|
|
|
147
150
|
enableLtree: true,
|
|
148
151
|
enableLlm: true,
|
|
149
152
|
enableRealtime: true,
|
|
153
|
+
enableBulk: true,
|
|
150
154
|
options: true,
|
|
151
155
|
},
|
|
152
156
|
})
|
|
@@ -240,6 +244,13 @@ async function handleCreate(argv, prompter) {
|
|
|
240
244
|
required: false,
|
|
241
245
|
skipPrompt: true,
|
|
242
246
|
},
|
|
247
|
+
{
|
|
248
|
+
type: 'boolean',
|
|
249
|
+
name: 'enableBulk',
|
|
250
|
+
message: 'enableBulk',
|
|
251
|
+
required: false,
|
|
252
|
+
skipPrompt: true,
|
|
253
|
+
},
|
|
243
254
|
{
|
|
244
255
|
type: 'json',
|
|
245
256
|
name: 'options',
|
|
@@ -265,6 +276,7 @@ async function handleCreate(argv, prompter) {
|
|
|
265
276
|
enableLtree: cleanedData.enableLtree,
|
|
266
277
|
enableLlm: cleanedData.enableLlm,
|
|
267
278
|
enableRealtime: cleanedData.enableRealtime,
|
|
279
|
+
enableBulk: cleanedData.enableBulk,
|
|
268
280
|
options: cleanedData.options,
|
|
269
281
|
},
|
|
270
282
|
select: {
|
|
@@ -280,6 +292,7 @@ async function handleCreate(argv, prompter) {
|
|
|
280
292
|
enableLtree: true,
|
|
281
293
|
enableLlm: true,
|
|
282
294
|
enableRealtime: true,
|
|
295
|
+
enableBulk: true,
|
|
283
296
|
options: true,
|
|
284
297
|
},
|
|
285
298
|
})
|
|
@@ -379,6 +392,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
379
392
|
required: false,
|
|
380
393
|
skipPrompt: true,
|
|
381
394
|
},
|
|
395
|
+
{
|
|
396
|
+
type: 'boolean',
|
|
397
|
+
name: 'enableBulk',
|
|
398
|
+
message: 'enableBulk',
|
|
399
|
+
required: false,
|
|
400
|
+
skipPrompt: true,
|
|
401
|
+
},
|
|
382
402
|
{
|
|
383
403
|
type: 'json',
|
|
384
404
|
name: 'options',
|
|
@@ -407,6 +427,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
407
427
|
enableLtree: cleanedData.enableLtree,
|
|
408
428
|
enableLlm: cleanedData.enableLlm,
|
|
409
429
|
enableRealtime: cleanedData.enableRealtime,
|
|
430
|
+
enableBulk: cleanedData.enableBulk,
|
|
410
431
|
options: cleanedData.options,
|
|
411
432
|
},
|
|
412
433
|
select: {
|
|
@@ -422,6 +443,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
422
443
|
enableLtree: true,
|
|
423
444
|
enableLlm: true,
|
|
424
445
|
enableRealtime: true,
|
|
446
|
+
enableBulk: true,
|
|
425
447
|
options: true,
|
|
426
448
|
},
|
|
427
449
|
})
|
|
@@ -144,9 +144,9 @@ import rlsSettingCmd from './commands/rls-setting';
|
|
|
144
144
|
import appLimitEventCmd from './commands/app-limit-event';
|
|
145
145
|
import orgLimitEventCmd from './commands/org-limit-event';
|
|
146
146
|
import rlsModuleCmd from './commands/rls-module';
|
|
147
|
-
import databaseSettingCmd from './commands/database-setting';
|
|
148
147
|
import plansModuleCmd from './commands/plans-module';
|
|
149
148
|
import sqlActionCmd from './commands/sql-action';
|
|
149
|
+
import databaseSettingCmd from './commands/database-setting';
|
|
150
150
|
import billingModuleCmd from './commands/billing-module';
|
|
151
151
|
import astMigrationCmd from './commands/ast-migration';
|
|
152
152
|
import userCmd from './commands/user';
|
|
@@ -367,9 +367,9 @@ const createCommandMap = () => ({
|
|
|
367
367
|
'app-limit-event': appLimitEventCmd,
|
|
368
368
|
'org-limit-event': orgLimitEventCmd,
|
|
369
369
|
'rls-module': rlsModuleCmd,
|
|
370
|
-
'database-setting': databaseSettingCmd,
|
|
371
370
|
'plans-module': plansModuleCmd,
|
|
372
371
|
'sql-action': sqlActionCmd,
|
|
372
|
+
'database-setting': databaseSettingCmd,
|
|
373
373
|
'billing-module': billingModuleCmd,
|
|
374
374
|
'ast-migration': astMigrationCmd,
|
|
375
375
|
user: userCmd,
|
|
@@ -450,7 +450,7 @@ const createCommandMap = () => ({
|
|
|
450
450
|
'provision-table': provisionTableCmd,
|
|
451
451
|
'provision-bucket': provisionBucketCmd,
|
|
452
452
|
});
|
|
453
|
-
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table 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.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Seven phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\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\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
453
|
+
const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table 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.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Seven phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints, (6) provision_check_constraint() for top-level + deferred check constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\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\n --help, -h Show this help message\n --version, -v Show version\n";
|
|
454
454
|
export const commands = async (argv, prompter, options) => {
|
|
455
455
|
if (argv.help || argv.h) {
|
|
456
456
|
console.log(usage);
|
|
@@ -138,9 +138,9 @@ export declare function getClient(contextName?: string): {
|
|
|
138
138
|
appLimitEvent: import("..").AppLimitEventModel;
|
|
139
139
|
orgLimitEvent: import("..").OrgLimitEventModel;
|
|
140
140
|
rlsModule: import("..").RlsModuleModel;
|
|
141
|
-
databaseSetting: import("..").DatabaseSettingModel;
|
|
142
141
|
plansModule: import("..").PlansModuleModel;
|
|
143
142
|
sqlAction: import("..").SqlActionModel;
|
|
143
|
+
databaseSetting: import("..").DatabaseSettingModel;
|
|
144
144
|
billingModule: import("..").BillingModuleModel;
|
|
145
145
|
astMigration: import("..").AstMigrationModel;
|
|
146
146
|
user: import("..").UserModel;
|
|
@@ -137,9 +137,9 @@ import { RlsSettingModel } from './models/rlsSetting';
|
|
|
137
137
|
import { AppLimitEventModel } from './models/appLimitEvent';
|
|
138
138
|
import { OrgLimitEventModel } from './models/orgLimitEvent';
|
|
139
139
|
import { RlsModuleModel } from './models/rlsModule';
|
|
140
|
-
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
141
140
|
import { PlansModuleModel } from './models/plansModule';
|
|
142
141
|
import { SqlActionModel } from './models/sqlAction';
|
|
142
|
+
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
143
143
|
import { BillingModuleModel } from './models/billingModule';
|
|
144
144
|
import { AstMigrationModel } from './models/astMigration';
|
|
145
145
|
import { UserModel } from './models/user';
|
|
@@ -317,9 +317,9 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
317
317
|
appLimitEvent: AppLimitEventModel;
|
|
318
318
|
orgLimitEvent: OrgLimitEventModel;
|
|
319
319
|
rlsModule: RlsModuleModel;
|
|
320
|
-
databaseSetting: DatabaseSettingModel;
|
|
321
320
|
plansModule: PlansModuleModel;
|
|
322
321
|
sqlAction: SqlActionModel;
|
|
322
|
+
databaseSetting: DatabaseSettingModel;
|
|
323
323
|
billingModule: BillingModuleModel;
|
|
324
324
|
astMigration: AstMigrationModel;
|
|
325
325
|
user: UserModel;
|
package/esm/public/orm/index.js
CHANGED
|
@@ -142,9 +142,9 @@ import { RlsSettingModel } from './models/rlsSetting';
|
|
|
142
142
|
import { AppLimitEventModel } from './models/appLimitEvent';
|
|
143
143
|
import { OrgLimitEventModel } from './models/orgLimitEvent';
|
|
144
144
|
import { RlsModuleModel } from './models/rlsModule';
|
|
145
|
-
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
146
145
|
import { PlansModuleModel } from './models/plansModule';
|
|
147
146
|
import { SqlActionModel } from './models/sqlAction';
|
|
147
|
+
import { DatabaseSettingModel } from './models/databaseSetting';
|
|
148
148
|
import { BillingModuleModel } from './models/billingModule';
|
|
149
149
|
import { AstMigrationModel } from './models/astMigration';
|
|
150
150
|
import { UserModel } from './models/user';
|
|
@@ -325,9 +325,9 @@ export function createClient(config) {
|
|
|
325
325
|
appLimitEvent: new AppLimitEventModel(client),
|
|
326
326
|
orgLimitEvent: new OrgLimitEventModel(client),
|
|
327
327
|
rlsModule: new RlsModuleModel(client),
|
|
328
|
-
databaseSetting: new DatabaseSettingModel(client),
|
|
329
328
|
plansModule: new PlansModuleModel(client),
|
|
330
329
|
sqlAction: new SqlActionModel(client),
|
|
330
|
+
databaseSetting: new DatabaseSettingModel(client),
|
|
331
331
|
billingModule: new BillingModuleModel(client),
|
|
332
332
|
astMigration: new AstMigrationModel(client),
|
|
333
333
|
user: new UserModel(client),
|