@constructive-io/sdk 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/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/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
|
@@ -194,30 +194,6 @@ export function createMutationOperations(client) {
|
|
|
194
194
|
},
|
|
195
195
|
], connectionFieldsMap, 'RemoveNodeAtPathPayload'),
|
|
196
196
|
}),
|
|
197
|
-
setDataAtPath: (args, options) => new QueryBuilder({
|
|
198
|
-
client,
|
|
199
|
-
operation: 'mutation',
|
|
200
|
-
operationName: 'SetDataAtPath',
|
|
201
|
-
fieldName: 'setDataAtPath',
|
|
202
|
-
...buildCustomDocument('mutation', 'SetDataAtPath', 'setDataAtPath', options.select, args, [
|
|
203
|
-
{
|
|
204
|
-
name: 'input',
|
|
205
|
-
type: 'SetDataAtPathInput!',
|
|
206
|
-
},
|
|
207
|
-
], connectionFieldsMap, 'SetDataAtPathPayload'),
|
|
208
|
-
}),
|
|
209
|
-
setPropsAndCommit: (args, options) => new QueryBuilder({
|
|
210
|
-
client,
|
|
211
|
-
operation: 'mutation',
|
|
212
|
-
operationName: 'SetPropsAndCommit',
|
|
213
|
-
fieldName: 'setPropsAndCommit',
|
|
214
|
-
...buildCustomDocument('mutation', 'SetPropsAndCommit', 'setPropsAndCommit', options.select, args, [
|
|
215
|
-
{
|
|
216
|
-
name: 'input',
|
|
217
|
-
type: 'SetPropsAndCommitInput!',
|
|
218
|
-
},
|
|
219
|
-
], connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
220
|
-
}),
|
|
221
197
|
copyTemplateToBlueprint: (args, options) => new QueryBuilder({
|
|
222
198
|
client,
|
|
223
199
|
operation: 'mutation',
|
|
@@ -230,18 +206,6 @@ export function createMutationOperations(client) {
|
|
|
230
206
|
},
|
|
231
207
|
], connectionFieldsMap, 'CopyTemplateToBlueprintPayload'),
|
|
232
208
|
}),
|
|
233
|
-
provisionDatabaseWithUser: (args, options) => new QueryBuilder({
|
|
234
|
-
client,
|
|
235
|
-
operation: 'mutation',
|
|
236
|
-
operationName: 'ProvisionDatabaseWithUser',
|
|
237
|
-
fieldName: 'provisionDatabaseWithUser',
|
|
238
|
-
...buildCustomDocument('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
239
|
-
{
|
|
240
|
-
name: 'input',
|
|
241
|
-
type: 'ProvisionDatabaseWithUserInput!',
|
|
242
|
-
},
|
|
243
|
-
], connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
244
|
-
}),
|
|
245
209
|
bootstrapUser: (args, options) => new QueryBuilder({
|
|
246
210
|
client,
|
|
247
211
|
operation: 'mutation',
|
|
@@ -266,6 +230,78 @@ export function createMutationOperations(client) {
|
|
|
266
230
|
},
|
|
267
231
|
], connectionFieldsMap, 'SetFieldOrderPayload'),
|
|
268
232
|
}),
|
|
233
|
+
provisionUniqueConstraint: (args, options) => new QueryBuilder({
|
|
234
|
+
client,
|
|
235
|
+
operation: 'mutation',
|
|
236
|
+
operationName: 'ProvisionUniqueConstraint',
|
|
237
|
+
fieldName: 'provisionUniqueConstraint',
|
|
238
|
+
...buildCustomDocument('mutation', 'ProvisionUniqueConstraint', 'provisionUniqueConstraint', options.select, args, [
|
|
239
|
+
{
|
|
240
|
+
name: 'input',
|
|
241
|
+
type: 'ProvisionUniqueConstraintInput!',
|
|
242
|
+
},
|
|
243
|
+
], connectionFieldsMap, 'ProvisionUniqueConstraintPayload'),
|
|
244
|
+
}),
|
|
245
|
+
provisionFullTextSearch: (args, options) => new QueryBuilder({
|
|
246
|
+
client,
|
|
247
|
+
operation: 'mutation',
|
|
248
|
+
operationName: 'ProvisionFullTextSearch',
|
|
249
|
+
fieldName: 'provisionFullTextSearch',
|
|
250
|
+
...buildCustomDocument('mutation', 'ProvisionFullTextSearch', 'provisionFullTextSearch', options.select, args, [
|
|
251
|
+
{
|
|
252
|
+
name: 'input',
|
|
253
|
+
type: 'ProvisionFullTextSearchInput!',
|
|
254
|
+
},
|
|
255
|
+
], connectionFieldsMap, 'ProvisionFullTextSearchPayload'),
|
|
256
|
+
}),
|
|
257
|
+
provisionIndex: (args, options) => new QueryBuilder({
|
|
258
|
+
client,
|
|
259
|
+
operation: 'mutation',
|
|
260
|
+
operationName: 'ProvisionIndex',
|
|
261
|
+
fieldName: 'provisionIndex',
|
|
262
|
+
...buildCustomDocument('mutation', 'ProvisionIndex', 'provisionIndex', options.select, args, [
|
|
263
|
+
{
|
|
264
|
+
name: 'input',
|
|
265
|
+
type: 'ProvisionIndexInput!',
|
|
266
|
+
},
|
|
267
|
+
], connectionFieldsMap, 'ProvisionIndexPayload'),
|
|
268
|
+
}),
|
|
269
|
+
setDataAtPath: (args, options) => new QueryBuilder({
|
|
270
|
+
client,
|
|
271
|
+
operation: 'mutation',
|
|
272
|
+
operationName: 'SetDataAtPath',
|
|
273
|
+
fieldName: 'setDataAtPath',
|
|
274
|
+
...buildCustomDocument('mutation', 'SetDataAtPath', 'setDataAtPath', options.select, args, [
|
|
275
|
+
{
|
|
276
|
+
name: 'input',
|
|
277
|
+
type: 'SetDataAtPathInput!',
|
|
278
|
+
},
|
|
279
|
+
], connectionFieldsMap, 'SetDataAtPathPayload'),
|
|
280
|
+
}),
|
|
281
|
+
setPropsAndCommit: (args, options) => new QueryBuilder({
|
|
282
|
+
client,
|
|
283
|
+
operation: 'mutation',
|
|
284
|
+
operationName: 'SetPropsAndCommit',
|
|
285
|
+
fieldName: 'setPropsAndCommit',
|
|
286
|
+
...buildCustomDocument('mutation', 'SetPropsAndCommit', 'setPropsAndCommit', options.select, args, [
|
|
287
|
+
{
|
|
288
|
+
name: 'input',
|
|
289
|
+
type: 'SetPropsAndCommitInput!',
|
|
290
|
+
},
|
|
291
|
+
], connectionFieldsMap, 'SetPropsAndCommitPayload'),
|
|
292
|
+
}),
|
|
293
|
+
provisionDatabaseWithUser: (args, options) => new QueryBuilder({
|
|
294
|
+
client,
|
|
295
|
+
operation: 'mutation',
|
|
296
|
+
operationName: 'ProvisionDatabaseWithUser',
|
|
297
|
+
fieldName: 'provisionDatabaseWithUser',
|
|
298
|
+
...buildCustomDocument('mutation', 'ProvisionDatabaseWithUser', 'provisionDatabaseWithUser', options.select, args, [
|
|
299
|
+
{
|
|
300
|
+
name: 'input',
|
|
301
|
+
type: 'ProvisionDatabaseWithUserInput!',
|
|
302
|
+
},
|
|
303
|
+
], connectionFieldsMap, 'ProvisionDatabaseWithUserPayload'),
|
|
304
|
+
}),
|
|
269
305
|
insertNodeAtPath: (args, options) => new QueryBuilder({
|
|
270
306
|
client,
|
|
271
307
|
operation: 'mutation',
|
|
@@ -302,6 +338,18 @@ export function createMutationOperations(client) {
|
|
|
302
338
|
},
|
|
303
339
|
], connectionFieldsMap, 'SetAndCommitPayload'),
|
|
304
340
|
}),
|
|
341
|
+
provisionRelation: (args, options) => new QueryBuilder({
|
|
342
|
+
client,
|
|
343
|
+
operation: 'mutation',
|
|
344
|
+
operationName: 'ProvisionRelation',
|
|
345
|
+
fieldName: 'provisionRelation',
|
|
346
|
+
...buildCustomDocument('mutation', 'ProvisionRelation', 'provisionRelation', options.select, args, [
|
|
347
|
+
{
|
|
348
|
+
name: 'input',
|
|
349
|
+
type: 'ProvisionRelationInput!',
|
|
350
|
+
},
|
|
351
|
+
], connectionFieldsMap, 'ProvisionRelationPayload'),
|
|
352
|
+
}),
|
|
305
353
|
applyRls: (args, options) => new QueryBuilder({
|
|
306
354
|
client,
|
|
307
355
|
operation: 'mutation',
|
|
@@ -386,6 +434,18 @@ export function createMutationOperations(client) {
|
|
|
386
434
|
},
|
|
387
435
|
], connectionFieldsMap, 'OneTimeTokenPayload'),
|
|
388
436
|
}),
|
|
437
|
+
provisionTable: (args, options) => new QueryBuilder({
|
|
438
|
+
client,
|
|
439
|
+
operation: 'mutation',
|
|
440
|
+
operationName: 'ProvisionTable',
|
|
441
|
+
fieldName: 'provisionTable',
|
|
442
|
+
...buildCustomDocument('mutation', 'ProvisionTable', 'provisionTable', options.select, args, [
|
|
443
|
+
{
|
|
444
|
+
name: 'input',
|
|
445
|
+
type: 'ProvisionTableInput!',
|
|
446
|
+
},
|
|
447
|
+
], connectionFieldsMap, 'ProvisionTablePayload'),
|
|
448
|
+
}),
|
|
389
449
|
sendVerificationEmail: (args, options) => new QueryBuilder({
|
|
390
450
|
client,
|
|
391
451
|
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<{
|
|
@@ -131,6 +131,34 @@ export function createQueryOperations(client) {
|
|
|
131
131
|
},
|
|
132
132
|
], connectionFieldsMap, undefined),
|
|
133
133
|
}),
|
|
134
|
+
resolveBlueprintTable: (args, options) => new QueryBuilder({
|
|
135
|
+
client,
|
|
136
|
+
operation: 'query',
|
|
137
|
+
operationName: 'ResolveBlueprintTable',
|
|
138
|
+
fieldName: 'resolveBlueprintTable',
|
|
139
|
+
...buildCustomDocument('query', 'ResolveBlueprintTable', 'resolveBlueprintTable', options?.select, args, [
|
|
140
|
+
{
|
|
141
|
+
name: 'databaseId',
|
|
142
|
+
type: 'UUID',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'tableName',
|
|
146
|
+
type: 'String',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'schemaName',
|
|
150
|
+
type: 'String',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'tableMap',
|
|
154
|
+
type: 'JSON',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'defaultSchemaId',
|
|
158
|
+
type: 'UUID',
|
|
159
|
+
},
|
|
160
|
+
], connectionFieldsMap, undefined),
|
|
161
|
+
}),
|
|
134
162
|
appPermissionsGetMaskByNames: (args, options) => new QueryBuilder({
|
|
135
163
|
client,
|
|
136
164
|
operation: 'query',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.17",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"tsx": "^4.19.0",
|
|
54
54
|
"typescript": "^5.9.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "89d640e8678153b3c5fa384e9ddd0a3c29f2775f"
|
|
57
57
|
}
|
package/public/orm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
-
import { GetAllRecordModel } from './models/getAllRecord';
|
|
3
2
|
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
4
3
|
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
4
|
+
import { GetAllRecordModel } from './models/getAllRecord';
|
|
5
5
|
import { ObjectModel } from './models/object';
|
|
6
6
|
import { AppPermissionModel } from './models/appPermission';
|
|
7
7
|
import { OrgPermissionModel } from './models/orgPermission';
|
|
@@ -62,6 +62,8 @@ import { UserAuthModuleModel } from './models/userAuthModule';
|
|
|
62
62
|
import { UsersModuleModel } from './models/usersModule';
|
|
63
63
|
import { BlueprintModel } from './models/blueprint';
|
|
64
64
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
65
|
+
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
66
|
+
import { StorageModuleModel } from './models/storageModule';
|
|
65
67
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
66
68
|
import { AppAdminGrantModel } from './models/appAdminGrant';
|
|
67
69
|
import { AppOwnerGrantModel } from './models/appOwnerGrant';
|
|
@@ -92,9 +94,9 @@ import { RefModel } from './models/ref';
|
|
|
92
94
|
import { StoreModel } from './models/store';
|
|
93
95
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
94
96
|
import { RoleTypeModel } from './models/roleType';
|
|
95
|
-
import { MigrateFileModel } from './models/migrateFile';
|
|
96
97
|
import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
97
98
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
99
|
+
import { MigrateFileModel } from './models/migrateFile';
|
|
98
100
|
import { MembershipTypeModel } from './models/membershipType';
|
|
99
101
|
import { CommitModel } from './models/commit';
|
|
100
102
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
@@ -137,9 +139,9 @@ export { createMutationOperations } from './mutation';
|
|
|
137
139
|
* ```
|
|
138
140
|
*/
|
|
139
141
|
export declare function createClient(config: OrmClientConfig): {
|
|
140
|
-
getAllRecord: GetAllRecordModel;
|
|
141
142
|
orgGetManagersRecord: OrgGetManagersRecordModel;
|
|
142
143
|
orgGetSubordinatesRecord: OrgGetSubordinatesRecordModel;
|
|
144
|
+
getAllRecord: GetAllRecordModel;
|
|
143
145
|
object: ObjectModel;
|
|
144
146
|
appPermission: AppPermissionModel;
|
|
145
147
|
orgPermission: OrgPermissionModel;
|
|
@@ -200,6 +202,8 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
200
202
|
usersModule: UsersModuleModel;
|
|
201
203
|
blueprint: BlueprintModel;
|
|
202
204
|
blueprintTemplate: BlueprintTemplateModel;
|
|
205
|
+
blueprintConstruction: BlueprintConstructionModel;
|
|
206
|
+
storageModule: StorageModuleModel;
|
|
203
207
|
databaseProvisionModule: DatabaseProvisionModuleModel;
|
|
204
208
|
appAdminGrant: AppAdminGrantModel;
|
|
205
209
|
appOwnerGrant: AppOwnerGrantModel;
|
|
@@ -230,9 +234,9 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
230
234
|
store: StoreModel;
|
|
231
235
|
appPermissionDefault: AppPermissionDefaultModel;
|
|
232
236
|
roleType: RoleTypeModel;
|
|
233
|
-
migrateFile: MigrateFileModel;
|
|
234
237
|
appLimitDefault: AppLimitDefaultModel;
|
|
235
238
|
orgLimitDefault: OrgLimitDefaultModel;
|
|
239
|
+
migrateFile: MigrateFileModel;
|
|
236
240
|
membershipType: MembershipTypeModel;
|
|
237
241
|
commit: CommitModel;
|
|
238
242
|
appMembershipDefault: AppMembershipDefaultModel;
|
|
@@ -295,6 +299,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
295
299
|
}) => import("./query-builder").QueryBuilder<{
|
|
296
300
|
orgPermissionsGetMask: string | null;
|
|
297
301
|
}>;
|
|
302
|
+
resolveBlueprintTable: (args: import("./query").ResolveBlueprintTableVariables, options?: {
|
|
303
|
+
select?: Record<string, unknown>;
|
|
304
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
305
|
+
resolveBlueprintTable: string | null;
|
|
306
|
+
}>;
|
|
298
307
|
appPermissionsGetMaskByNames: (args: import("./query").AppPermissionsGetMaskByNamesVariables, options?: {
|
|
299
308
|
select?: Record<string, unknown>;
|
|
300
309
|
}) => import("./query-builder").QueryBuilder<{
|
|
@@ -422,26 +431,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
422
431
|
} & import("./select-types").StrictSelect<S, import("./input-types").RemoveNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
423
432
|
removeNodeAtPath: import("./select-types").InferSelectResult<import("./input-types").RemoveNodeAtPathPayload, S> | null;
|
|
424
433
|
}>;
|
|
425
|
-
setDataAtPath: <S extends import("./input-types").SetDataAtPathPayloadSelect>(args: import("./mutation").SetDataAtPathVariables, options: {
|
|
426
|
-
select: S;
|
|
427
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").SetDataAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
428
|
-
setDataAtPath: import("./select-types").InferSelectResult<import("./input-types").SetDataAtPathPayload, S> | null;
|
|
429
|
-
}>;
|
|
430
|
-
setPropsAndCommit: <S extends import("./input-types").SetPropsAndCommitPayloadSelect>(args: import("./mutation").SetPropsAndCommitVariables, options: {
|
|
431
|
-
select: S;
|
|
432
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").SetPropsAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
433
|
-
setPropsAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetPropsAndCommitPayload, S> | null;
|
|
434
|
-
}>;
|
|
435
434
|
copyTemplateToBlueprint: <S extends import("./input-types").CopyTemplateToBlueprintPayloadSelect>(args: import("./mutation").CopyTemplateToBlueprintVariables, options: {
|
|
436
435
|
select: S;
|
|
437
436
|
} & import("./select-types").StrictSelect<S, import("./input-types").CopyTemplateToBlueprintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
438
437
|
copyTemplateToBlueprint: import("./select-types").InferSelectResult<import("./input-types").CopyTemplateToBlueprintPayload, S> | null;
|
|
439
438
|
}>;
|
|
440
|
-
provisionDatabaseWithUser: <S extends import("./input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("./mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
441
|
-
select: S;
|
|
442
|
-
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
443
|
-
provisionDatabaseWithUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
444
|
-
}>;
|
|
445
439
|
bootstrapUser: <S extends import("./input-types").BootstrapUserPayloadSelect>(args: import("./mutation").BootstrapUserVariables, options: {
|
|
446
440
|
select: S;
|
|
447
441
|
} & import("./select-types").StrictSelect<S, import("./input-types").BootstrapUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -452,6 +446,36 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
452
446
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetFieldOrderPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
453
447
|
setFieldOrder: import("./select-types").InferSelectResult<import("./input-types").SetFieldOrderPayload, S> | null;
|
|
454
448
|
}>;
|
|
449
|
+
provisionUniqueConstraint: <S extends import("./input-types").ProvisionUniqueConstraintPayloadSelect>(args: import("./mutation").ProvisionUniqueConstraintVariables, options: {
|
|
450
|
+
select: S;
|
|
451
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionUniqueConstraintPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
452
|
+
provisionUniqueConstraint: import("./select-types").InferSelectResult<import("./input-types").ProvisionUniqueConstraintPayload, S> | null;
|
|
453
|
+
}>;
|
|
454
|
+
provisionFullTextSearch: <S extends import("./input-types").ProvisionFullTextSearchPayloadSelect>(args: import("./mutation").ProvisionFullTextSearchVariables, options: {
|
|
455
|
+
select: S;
|
|
456
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionFullTextSearchPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
457
|
+
provisionFullTextSearch: import("./select-types").InferSelectResult<import("./input-types").ProvisionFullTextSearchPayload, S> | null;
|
|
458
|
+
}>;
|
|
459
|
+
provisionIndex: <S extends import("./input-types").ProvisionIndexPayloadSelect>(args: import("./mutation").ProvisionIndexVariables, options: {
|
|
460
|
+
select: S;
|
|
461
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionIndexPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
462
|
+
provisionIndex: import("./select-types").InferSelectResult<import("./input-types").ProvisionIndexPayload, S> | null;
|
|
463
|
+
}>;
|
|
464
|
+
setDataAtPath: <S extends import("./input-types").SetDataAtPathPayloadSelect>(args: import("./mutation").SetDataAtPathVariables, options: {
|
|
465
|
+
select: S;
|
|
466
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SetDataAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
467
|
+
setDataAtPath: import("./select-types").InferSelectResult<import("./input-types").SetDataAtPathPayload, S> | null;
|
|
468
|
+
}>;
|
|
469
|
+
setPropsAndCommit: <S extends import("./input-types").SetPropsAndCommitPayloadSelect>(args: import("./mutation").SetPropsAndCommitVariables, options: {
|
|
470
|
+
select: S;
|
|
471
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").SetPropsAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
472
|
+
setPropsAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetPropsAndCommitPayload, S> | null;
|
|
473
|
+
}>;
|
|
474
|
+
provisionDatabaseWithUser: <S extends import("./input-types").ProvisionDatabaseWithUserPayloadSelect>(args: import("./mutation").ProvisionDatabaseWithUserVariables, options: {
|
|
475
|
+
select: S;
|
|
476
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionDatabaseWithUserPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
477
|
+
provisionDatabaseWithUser: import("./select-types").InferSelectResult<import("./input-types").ProvisionDatabaseWithUserPayload, S> | null;
|
|
478
|
+
}>;
|
|
455
479
|
insertNodeAtPath: <S extends import("./input-types").InsertNodeAtPathPayloadSelect>(args: import("./mutation").InsertNodeAtPathVariables, options: {
|
|
456
480
|
select: S;
|
|
457
481
|
} & import("./select-types").StrictSelect<S, import("./input-types").InsertNodeAtPathPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -467,6 +491,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
467
491
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetAndCommitPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
468
492
|
setAndCommit: import("./select-types").InferSelectResult<import("./input-types").SetAndCommitPayload, S> | null;
|
|
469
493
|
}>;
|
|
494
|
+
provisionRelation: <S extends import("./input-types").ProvisionRelationPayloadSelect>(args: import("./mutation").ProvisionRelationVariables, options: {
|
|
495
|
+
select: S;
|
|
496
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionRelationPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
497
|
+
provisionRelation: import("./select-types").InferSelectResult<import("./input-types").ProvisionRelationPayload, S> | null;
|
|
498
|
+
}>;
|
|
470
499
|
applyRls: <S extends import("./input-types").ApplyRlsPayloadSelect>(args: import("./mutation").ApplyRlsVariables, options: {
|
|
471
500
|
select: S;
|
|
472
501
|
} & import("./select-types").StrictSelect<S, import("./input-types").ApplyRlsPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -502,6 +531,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
502
531
|
} & import("./select-types").StrictSelect<S, import("./input-types").OneTimeTokenPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
503
532
|
oneTimeToken: import("./select-types").InferSelectResult<import("./input-types").OneTimeTokenPayload, S> | null;
|
|
504
533
|
}>;
|
|
534
|
+
provisionTable: <S extends import("./input-types").ProvisionTablePayloadSelect>(args: import("./mutation").ProvisionTableVariables, options: {
|
|
535
|
+
select: S;
|
|
536
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").ProvisionTablePayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
537
|
+
provisionTable: import("./select-types").InferSelectResult<import("./input-types").ProvisionTablePayload, S> | null;
|
|
538
|
+
}>;
|
|
505
539
|
sendVerificationEmail: <S extends import("./input-types").SendVerificationEmailPayloadSelect>(args: import("./mutation").SendVerificationEmailVariables, options: {
|
|
506
540
|
select: S;
|
|
507
541
|
} & import("./select-types").StrictSelect<S, import("./input-types").SendVerificationEmailPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/public/orm/index.js
CHANGED
|
@@ -22,9 +22,9 @@ exports.createClient = createClient;
|
|
|
22
22
|
* DO NOT EDIT - changes will be overwritten
|
|
23
23
|
*/
|
|
24
24
|
const client_1 = require("./client");
|
|
25
|
-
const getAllRecord_1 = require("./models/getAllRecord");
|
|
26
25
|
const orgGetManagersRecord_1 = require("./models/orgGetManagersRecord");
|
|
27
26
|
const orgGetSubordinatesRecord_1 = require("./models/orgGetSubordinatesRecord");
|
|
27
|
+
const getAllRecord_1 = require("./models/getAllRecord");
|
|
28
28
|
const object_1 = require("./models/object");
|
|
29
29
|
const appPermission_1 = require("./models/appPermission");
|
|
30
30
|
const orgPermission_1 = require("./models/orgPermission");
|
|
@@ -85,6 +85,8 @@ const userAuthModule_1 = require("./models/userAuthModule");
|
|
|
85
85
|
const usersModule_1 = require("./models/usersModule");
|
|
86
86
|
const blueprint_1 = require("./models/blueprint");
|
|
87
87
|
const blueprintTemplate_1 = require("./models/blueprintTemplate");
|
|
88
|
+
const blueprintConstruction_1 = require("./models/blueprintConstruction");
|
|
89
|
+
const storageModule_1 = require("./models/storageModule");
|
|
88
90
|
const databaseProvisionModule_1 = require("./models/databaseProvisionModule");
|
|
89
91
|
const appAdminGrant_1 = require("./models/appAdminGrant");
|
|
90
92
|
const appOwnerGrant_1 = require("./models/appOwnerGrant");
|
|
@@ -115,9 +117,9 @@ const ref_1 = require("./models/ref");
|
|
|
115
117
|
const store_1 = require("./models/store");
|
|
116
118
|
const appPermissionDefault_1 = require("./models/appPermissionDefault");
|
|
117
119
|
const roleType_1 = require("./models/roleType");
|
|
118
|
-
const migrateFile_1 = require("./models/migrateFile");
|
|
119
120
|
const appLimitDefault_1 = require("./models/appLimitDefault");
|
|
120
121
|
const orgLimitDefault_1 = require("./models/orgLimitDefault");
|
|
122
|
+
const migrateFile_1 = require("./models/migrateFile");
|
|
121
123
|
const membershipType_1 = require("./models/membershipType");
|
|
122
124
|
const commit_1 = require("./models/commit");
|
|
123
125
|
const appMembershipDefault_1 = require("./models/appMembershipDefault");
|
|
@@ -167,9 +169,9 @@ Object.defineProperty(exports, "createMutationOperations", { enumerable: true, g
|
|
|
167
169
|
function createClient(config) {
|
|
168
170
|
const client = new client_1.OrmClient(config);
|
|
169
171
|
return {
|
|
170
|
-
getAllRecord: new getAllRecord_1.GetAllRecordModel(client),
|
|
171
172
|
orgGetManagersRecord: new orgGetManagersRecord_1.OrgGetManagersRecordModel(client),
|
|
172
173
|
orgGetSubordinatesRecord: new orgGetSubordinatesRecord_1.OrgGetSubordinatesRecordModel(client),
|
|
174
|
+
getAllRecord: new getAllRecord_1.GetAllRecordModel(client),
|
|
173
175
|
object: new object_1.ObjectModel(client),
|
|
174
176
|
appPermission: new appPermission_1.AppPermissionModel(client),
|
|
175
177
|
orgPermission: new orgPermission_1.OrgPermissionModel(client),
|
|
@@ -230,6 +232,8 @@ function createClient(config) {
|
|
|
230
232
|
usersModule: new usersModule_1.UsersModuleModel(client),
|
|
231
233
|
blueprint: new blueprint_1.BlueprintModel(client),
|
|
232
234
|
blueprintTemplate: new blueprintTemplate_1.BlueprintTemplateModel(client),
|
|
235
|
+
blueprintConstruction: new blueprintConstruction_1.BlueprintConstructionModel(client),
|
|
236
|
+
storageModule: new storageModule_1.StorageModuleModel(client),
|
|
233
237
|
databaseProvisionModule: new databaseProvisionModule_1.DatabaseProvisionModuleModel(client),
|
|
234
238
|
appAdminGrant: new appAdminGrant_1.AppAdminGrantModel(client),
|
|
235
239
|
appOwnerGrant: new appOwnerGrant_1.AppOwnerGrantModel(client),
|
|
@@ -260,9 +264,9 @@ function createClient(config) {
|
|
|
260
264
|
store: new store_1.StoreModel(client),
|
|
261
265
|
appPermissionDefault: new appPermissionDefault_1.AppPermissionDefaultModel(client),
|
|
262
266
|
roleType: new roleType_1.RoleTypeModel(client),
|
|
263
|
-
migrateFile: new migrateFile_1.MigrateFileModel(client),
|
|
264
267
|
appLimitDefault: new appLimitDefault_1.AppLimitDefaultModel(client),
|
|
265
268
|
orgLimitDefault: new orgLimitDefault_1.OrgLimitDefaultModel(client),
|
|
269
|
+
migrateFile: new migrateFile_1.MigrateFileModel(client),
|
|
266
270
|
membershipType: new membershipType_1.MembershipTypeModel(client),
|
|
267
271
|
commit: new commit_1.CommitModel(client),
|
|
268
272
|
appMembershipDefault: new appMembershipDefault_1.AppMembershipDefaultModel(client),
|