@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
|
@@ -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/esm/public/orm/index.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from './client';
|
|
7
|
-
import { GetAllRecordModel } from './models/getAllRecord';
|
|
8
7
|
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
|
|
9
8
|
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
|
|
9
|
+
import { GetAllRecordModel } from './models/getAllRecord';
|
|
10
10
|
import { ObjectModel } from './models/object';
|
|
11
11
|
import { AppPermissionModel } from './models/appPermission';
|
|
12
12
|
import { OrgPermissionModel } from './models/orgPermission';
|
|
@@ -67,6 +67,8 @@ import { UserAuthModuleModel } from './models/userAuthModule';
|
|
|
67
67
|
import { UsersModuleModel } from './models/usersModule';
|
|
68
68
|
import { BlueprintModel } from './models/blueprint';
|
|
69
69
|
import { BlueprintTemplateModel } from './models/blueprintTemplate';
|
|
70
|
+
import { BlueprintConstructionModel } from './models/blueprintConstruction';
|
|
71
|
+
import { StorageModuleModel } from './models/storageModule';
|
|
70
72
|
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
|
|
71
73
|
import { AppAdminGrantModel } from './models/appAdminGrant';
|
|
72
74
|
import { AppOwnerGrantModel } from './models/appOwnerGrant';
|
|
@@ -97,9 +99,9 @@ import { RefModel } from './models/ref';
|
|
|
97
99
|
import { StoreModel } from './models/store';
|
|
98
100
|
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
|
|
99
101
|
import { RoleTypeModel } from './models/roleType';
|
|
100
|
-
import { MigrateFileModel } from './models/migrateFile';
|
|
101
102
|
import { AppLimitDefaultModel } from './models/appLimitDefault';
|
|
102
103
|
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
|
|
104
|
+
import { MigrateFileModel } from './models/migrateFile';
|
|
103
105
|
import { MembershipTypeModel } from './models/membershipType';
|
|
104
106
|
import { CommitModel } from './models/commit';
|
|
105
107
|
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
|
|
@@ -145,9 +147,9 @@ export { createMutationOperations } from './mutation';
|
|
|
145
147
|
export function createClient(config) {
|
|
146
148
|
const client = new OrmClient(config);
|
|
147
149
|
return {
|
|
148
|
-
getAllRecord: new GetAllRecordModel(client),
|
|
149
150
|
orgGetManagersRecord: new OrgGetManagersRecordModel(client),
|
|
150
151
|
orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client),
|
|
152
|
+
getAllRecord: new GetAllRecordModel(client),
|
|
151
153
|
object: new ObjectModel(client),
|
|
152
154
|
appPermission: new AppPermissionModel(client),
|
|
153
155
|
orgPermission: new OrgPermissionModel(client),
|
|
@@ -208,6 +210,8 @@ export function createClient(config) {
|
|
|
208
210
|
usersModule: new UsersModuleModel(client),
|
|
209
211
|
blueprint: new BlueprintModel(client),
|
|
210
212
|
blueprintTemplate: new BlueprintTemplateModel(client),
|
|
213
|
+
blueprintConstruction: new BlueprintConstructionModel(client),
|
|
214
|
+
storageModule: new StorageModuleModel(client),
|
|
211
215
|
databaseProvisionModule: new DatabaseProvisionModuleModel(client),
|
|
212
216
|
appAdminGrant: new AppAdminGrantModel(client),
|
|
213
217
|
appOwnerGrant: new AppOwnerGrantModel(client),
|
|
@@ -238,9 +242,9 @@ export function createClient(config) {
|
|
|
238
242
|
store: new StoreModel(client),
|
|
239
243
|
appPermissionDefault: new AppPermissionDefaultModel(client),
|
|
240
244
|
roleType: new RoleTypeModel(client),
|
|
241
|
-
migrateFile: new MigrateFileModel(client),
|
|
242
245
|
appLimitDefault: new AppLimitDefaultModel(client),
|
|
243
246
|
orgLimitDefault: new OrgLimitDefaultModel(client),
|
|
247
|
+
migrateFile: new MigrateFileModel(client),
|
|
244
248
|
membershipType: new MembershipTypeModel(client),
|
|
245
249
|
commit: new CommitModel(client),
|
|
246
250
|
appMembershipDefault: new AppMembershipDefaultModel(client),
|