@constructive-sdk/cli 0.12.16 → 0.12.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/esm/public/cli/commands/blueprint-construction.js +392 -0
- package/esm/public/cli/commands/blueprint.js +0 -110
- package/esm/public/cli/commands/construct-blueprint.js +1 -1
- package/esm/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/esm/public/cli/commands/provision-full-text-search.js +34 -0
- package/esm/public/cli/commands/provision-index.d.ts +8 -0
- package/esm/public/cli/commands/provision-index.js +34 -0
- package/esm/public/cli/commands/provision-relation.d.ts +8 -0
- package/esm/public/cli/commands/provision-relation.js +34 -0
- package/esm/public/cli/commands/provision-table.d.ts +8 -0
- package/esm/public/cli/commands/provision-table.js +34 -0
- package/esm/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/esm/public/cli/commands/provision-unique-constraint.js +34 -0
- package/esm/public/cli/commands/relation-provision.js +12 -34
- package/esm/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/esm/public/cli/commands/resolve-blueprint-table.js +48 -0
- package/esm/public/cli/commands/secure-table-provision.js +14 -36
- package/esm/public/cli/commands/storage-module.d.ts +8 -0
- package/esm/public/cli/commands/storage-module.js +536 -0
- package/esm/public/cli/commands.js +27 -11
- package/esm/public/cli/executor.d.ts +49 -17
- package/esm/public/orm/index.d.ts +53 -19
- package/esm/public/orm/index.js +8 -4
- package/esm/public/orm/input-types.d.ts +886 -249
- package/esm/public/orm/input-types.js +5 -0
- package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/esm/public/orm/models/blueprintConstruction.js +96 -0
- package/esm/public/orm/models/index.d.ts +4 -2
- package/esm/public/orm/models/index.js +4 -2
- package/esm/public/orm/models/storageModule.d.ts +56 -0
- package/esm/public/orm/models/storageModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +86 -26
- package/esm/public/orm/mutation/index.js +96 -36
- package/esm/public/orm/query/index.d.ts +16 -0
- package/esm/public/orm/query/index.js +28 -0
- package/package.json +2 -2
- package/public/cli/commands/blueprint-construction.d.ts +8 -0
- package/public/cli/commands/blueprint-construction.js +394 -0
- package/public/cli/commands/blueprint.js +0 -110
- package/public/cli/commands/construct-blueprint.js +1 -1
- package/public/cli/commands/provision-full-text-search.d.ts +8 -0
- package/public/cli/commands/provision-full-text-search.js +36 -0
- package/public/cli/commands/provision-index.d.ts +8 -0
- package/public/cli/commands/provision-index.js +36 -0
- package/public/cli/commands/provision-relation.d.ts +8 -0
- package/public/cli/commands/provision-relation.js +36 -0
- package/public/cli/commands/provision-table.d.ts +8 -0
- package/public/cli/commands/provision-table.js +36 -0
- package/public/cli/commands/provision-unique-constraint.d.ts +8 -0
- package/public/cli/commands/provision-unique-constraint.js +36 -0
- package/public/cli/commands/relation-provision.js +12 -34
- package/public/cli/commands/resolve-blueprint-table.d.ts +8 -0
- package/public/cli/commands/resolve-blueprint-table.js +50 -0
- package/public/cli/commands/secure-table-provision.js +14 -36
- package/public/cli/commands/storage-module.d.ts +8 -0
- package/public/cli/commands/storage-module.js +538 -0
- package/public/cli/commands.js +27 -11
- package/public/cli/executor.d.ts +49 -17
- package/public/orm/index.d.ts +53 -19
- package/public/orm/index.js +8 -4
- package/public/orm/input-types.d.ts +886 -249
- package/public/orm/input-types.js +5 -0
- package/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/public/orm/models/blueprintConstruction.js +100 -0
- package/public/orm/models/index.d.ts +4 -2
- package/public/orm/models/index.js +11 -7
- package/public/orm/models/storageModule.d.ts +56 -0
- package/public/orm/models/storageModule.js +100 -0
- package/public/orm/mutation/index.d.ts +86 -26
- package/public/orm/mutation/index.js +96 -36
- package/public/orm/query/index.d.ts +16 -0
- package/public/orm/query/index.js +28 -0
|
@@ -57,6 +57,8 @@ exports.connectionFieldsMap = {
|
|
|
57
57
|
secureTableProvisions: 'SecureTableProvision',
|
|
58
58
|
relationProvisions: 'RelationProvision',
|
|
59
59
|
blueprints: 'Blueprint',
|
|
60
|
+
blueprintConstructions: 'BlueprintConstruction',
|
|
61
|
+
storageModules: 'StorageModule',
|
|
60
62
|
databaseProvisionModules: 'DatabaseProvisionModule',
|
|
61
63
|
},
|
|
62
64
|
Schema: {
|
|
@@ -106,6 +108,9 @@ exports.connectionFieldsMap = {
|
|
|
106
108
|
siteModules: 'SiteModule',
|
|
107
109
|
siteThemes: 'SiteTheme',
|
|
108
110
|
},
|
|
111
|
+
Blueprint: {
|
|
112
|
+
blueprintConstructions: 'BlueprintConstruction',
|
|
113
|
+
},
|
|
109
114
|
BlueprintTemplate: {
|
|
110
115
|
blueprintTemplatesByForkedFromId: 'BlueprintTemplate',
|
|
111
116
|
blueprintsByTemplateId: 'Blueprint',
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BlueprintConstruction model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { BlueprintConstructionWithRelations, BlueprintConstructionSelect, BlueprintConstructionFilter, BlueprintConstructionOrderBy, CreateBlueprintConstructionInput, BlueprintConstructionPatch } from '../input-types';
|
|
10
|
+
export declare class BlueprintConstructionModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends BlueprintConstructionSelect>(args: FindManyArgs<S, BlueprintConstructionFilter, never, BlueprintConstructionOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
16
|
+
blueprintConstructions: ConnectionResult<InferSelectResult<BlueprintConstructionWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends BlueprintConstructionSelect>(args: FindFirstArgs<S, BlueprintConstructionFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
21
|
+
blueprintConstructions: {
|
|
22
|
+
nodes: InferSelectResult<BlueprintConstructionWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends BlueprintConstructionSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
29
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends BlueprintConstructionSelect>(args: CreateArgs<S, CreateBlueprintConstructionInput['blueprintConstruction']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
34
|
+
createBlueprintConstruction: {
|
|
35
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends BlueprintConstructionSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, BlueprintConstructionPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
43
|
+
updateBlueprintConstruction: {
|
|
44
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends BlueprintConstructionSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, BlueprintConstructionSelect>): QueryBuilder<{
|
|
52
|
+
deleteBlueprintConstruction: {
|
|
53
|
+
blueprintConstruction: InferSelectResult<BlueprintConstructionWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlueprintConstructionModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class BlueprintConstructionModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BlueprintConstruction', 'blueprintConstructions', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'BlueprintConstructionFilter', 'BlueprintConstructionOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'BlueprintConstruction',
|
|
25
|
+
fieldName: 'blueprintConstructions',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('BlueprintConstruction', 'blueprintConstructions', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'BlueprintConstructionFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'BlueprintConstruction',
|
|
38
|
+
fieldName: 'blueprintConstructions',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BlueprintConstruction', 'blueprintConstructions', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'BlueprintConstructionFilter', 'BlueprintConstructionOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'BlueprintConstruction',
|
|
56
|
+
fieldName: 'blueprintConstruction',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
blueprintConstruction: data.blueprintConstructions?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('BlueprintConstruction', 'createBlueprintConstruction', 'blueprintConstruction', args.select, args.data, 'CreateBlueprintConstructionInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'BlueprintConstruction',
|
|
70
|
+
fieldName: 'createBlueprintConstruction',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('BlueprintConstruction', 'updateBlueprintConstruction', 'blueprintConstruction', args.select, args.where.id, args.data, 'UpdateBlueprintConstructionInput', 'id', 'blueprintConstructionPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'BlueprintConstruction',
|
|
81
|
+
fieldName: 'updateBlueprintConstruction',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('BlueprintConstruction', 'deleteBlueprintConstruction', 'blueprintConstruction', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteBlueprintConstructionInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'BlueprintConstruction',
|
|
94
|
+
fieldName: 'deleteBlueprintConstruction',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.BlueprintConstructionModel = BlueprintConstructionModel;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
-
export { GetAllRecordModel } from './getAllRecord';
|
|
7
6
|
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
8
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
|
+
export { GetAllRecordModel } from './getAllRecord';
|
|
9
9
|
export { ObjectModel } from './object';
|
|
10
10
|
export { AppPermissionModel } from './appPermission';
|
|
11
11
|
export { OrgPermissionModel } from './orgPermission';
|
|
@@ -66,6 +66,8 @@ export { UserAuthModuleModel } from './userAuthModule';
|
|
|
66
66
|
export { UsersModuleModel } from './usersModule';
|
|
67
67
|
export { BlueprintModel } from './blueprint';
|
|
68
68
|
export { BlueprintTemplateModel } from './blueprintTemplate';
|
|
69
|
+
export { BlueprintConstructionModel } from './blueprintConstruction';
|
|
70
|
+
export { StorageModuleModel } from './storageModule';
|
|
69
71
|
export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
|
|
70
72
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
71
73
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
@@ -96,9 +98,9 @@ export { RefModel } from './ref';
|
|
|
96
98
|
export { StoreModel } from './store';
|
|
97
99
|
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
98
100
|
export { RoleTypeModel } from './roleType';
|
|
99
|
-
export { MigrateFileModel } from './migrateFile';
|
|
100
101
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
101
102
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
103
|
+
export { MigrateFileModel } from './migrateFile';
|
|
102
104
|
export { MembershipTypeModel } from './membershipType';
|
|
103
105
|
export { CommitModel } from './commit';
|
|
104
106
|
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvitesModuleModel = exports.EncryptedSecretsModuleModel = exports.EmailsModuleModel = exports.DenormalizedTableFieldModel = exports.DefaultIdsModuleModel = exports.CryptoAuthModuleModel = exports.CryptoAddressesModuleModel = exports.ConnectedAccountsModuleModel = exports.AppModel = exports.SiteModel = exports.ApiModel = exports.DatabaseTransferModel = exports.TriggerFunctionModel = exports.SiteThemeModel = exports.SiteModuleModel = exports.SiteMetadatumModel = exports.DomainModel = exports.ApiModuleModel = exports.ApiSchemaModel = exports.EnumModel = exports.DefaultPrivilegeModel = exports.SchemaGrantModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = exports.TableTemplateModuleModel = exports.EmbeddingChunkModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewTableModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerModel = exports.TableGrantModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.IndexModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.ObjectModel = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.SqlActionModel = exports.OrgMembershipDefaultModel = exports.NodeTypeRegistryModel = void 0;
|
|
3
|
+
exports.InvitesModuleModel = exports.EncryptedSecretsModuleModel = exports.EmailsModuleModel = exports.DenormalizedTableFieldModel = exports.DefaultIdsModuleModel = exports.CryptoAuthModuleModel = exports.CryptoAddressesModuleModel = exports.ConnectedAccountsModuleModel = exports.AppModel = exports.SiteModel = exports.ApiModel = exports.DatabaseTransferModel = exports.TriggerFunctionModel = exports.SiteThemeModel = exports.SiteModuleModel = exports.SiteMetadatumModel = exports.DomainModel = exports.ApiModuleModel = exports.ApiSchemaModel = exports.EnumModel = exports.DefaultPrivilegeModel = exports.SchemaGrantModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = exports.TableTemplateModuleModel = exports.EmbeddingChunkModel = exports.ViewRuleModel = exports.ViewGrantModel = exports.ViewTableModel = exports.ViewModel = exports.UniqueConstraintModel = exports.TriggerModel = exports.TableGrantModel = exports.PrimaryKeyConstraintModel = exports.PolicyModel = exports.IndexModel = exports.FullTextSearchModel = exports.ForeignKeyConstraintModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.ObjectModel = exports.GetAllRecordModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
|
+
exports.CommitModel = exports.MembershipTypeModel = exports.MigrateFileModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.RoleTypeModel = exports.AppPermissionDefaultModel = exports.StoreModel = exports.RefModel = exports.AuditLogModel = exports.OrgClaimedInviteModel = exports.OrgInviteModel = exports.ClaimedInviteModel = exports.InviteModel = exports.ConnectedAccountModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.AppLevelModel = exports.AppAchievementModel = exports.AppStepModel = exports.OrgLimitModel = exports.AppLimitModel = exports.OrgPermissionDefaultModel = exports.OrgChartEdgeGrantModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgMemberModel = exports.OrgMembershipModel = exports.AppGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.DatabaseProvisionModuleModel = exports.StorageModuleModel = exports.BlueprintConstructionModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.UsersModuleModel = exports.UserAuthModuleModel = exports.SessionsModuleModel = exports.SecretsModuleModel = exports.ProfilesModuleModel = exports.PhoneNumbersModuleModel = exports.PermissionsModuleModel = exports.MembershipsModuleModel = exports.MembershipTypesModuleModel = exports.LimitsModuleModel = exports.LevelsModuleModel = void 0;
|
|
5
|
+
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.AstMigrationModel = exports.UserModel = exports.SqlActionModel = exports.OrgMembershipDefaultModel = exports.NodeTypeRegistryModel = exports.RlsModuleModel = exports.AppMembershipDefaultModel = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Models barrel export
|
|
8
8
|
* @generated by @constructive-io/graphql-codegen
|
|
9
9
|
* DO NOT EDIT - changes will be overwritten
|
|
10
10
|
*/
|
|
11
|
-
var getAllRecord_1 = require("./getAllRecord");
|
|
12
|
-
Object.defineProperty(exports, "GetAllRecordModel", { enumerable: true, get: function () { return getAllRecord_1.GetAllRecordModel; } });
|
|
13
11
|
var orgGetManagersRecord_1 = require("./orgGetManagersRecord");
|
|
14
12
|
Object.defineProperty(exports, "OrgGetManagersRecordModel", { enumerable: true, get: function () { return orgGetManagersRecord_1.OrgGetManagersRecordModel; } });
|
|
15
13
|
var orgGetSubordinatesRecord_1 = require("./orgGetSubordinatesRecord");
|
|
16
14
|
Object.defineProperty(exports, "OrgGetSubordinatesRecordModel", { enumerable: true, get: function () { return orgGetSubordinatesRecord_1.OrgGetSubordinatesRecordModel; } });
|
|
15
|
+
var getAllRecord_1 = require("./getAllRecord");
|
|
16
|
+
Object.defineProperty(exports, "GetAllRecordModel", { enumerable: true, get: function () { return getAllRecord_1.GetAllRecordModel; } });
|
|
17
17
|
var object_1 = require("./object");
|
|
18
18
|
Object.defineProperty(exports, "ObjectModel", { enumerable: true, get: function () { return object_1.ObjectModel; } });
|
|
19
19
|
var appPermission_1 = require("./appPermission");
|
|
@@ -134,6 +134,10 @@ var blueprint_1 = require("./blueprint");
|
|
|
134
134
|
Object.defineProperty(exports, "BlueprintModel", { enumerable: true, get: function () { return blueprint_1.BlueprintModel; } });
|
|
135
135
|
var blueprintTemplate_1 = require("./blueprintTemplate");
|
|
136
136
|
Object.defineProperty(exports, "BlueprintTemplateModel", { enumerable: true, get: function () { return blueprintTemplate_1.BlueprintTemplateModel; } });
|
|
137
|
+
var blueprintConstruction_1 = require("./blueprintConstruction");
|
|
138
|
+
Object.defineProperty(exports, "BlueprintConstructionModel", { enumerable: true, get: function () { return blueprintConstruction_1.BlueprintConstructionModel; } });
|
|
139
|
+
var storageModule_1 = require("./storageModule");
|
|
140
|
+
Object.defineProperty(exports, "StorageModuleModel", { enumerable: true, get: function () { return storageModule_1.StorageModuleModel; } });
|
|
137
141
|
var databaseProvisionModule_1 = require("./databaseProvisionModule");
|
|
138
142
|
Object.defineProperty(exports, "DatabaseProvisionModuleModel", { enumerable: true, get: function () { return databaseProvisionModule_1.DatabaseProvisionModuleModel; } });
|
|
139
143
|
var appAdminGrant_1 = require("./appAdminGrant");
|
|
@@ -194,12 +198,12 @@ var appPermissionDefault_1 = require("./appPermissionDefault");
|
|
|
194
198
|
Object.defineProperty(exports, "AppPermissionDefaultModel", { enumerable: true, get: function () { return appPermissionDefault_1.AppPermissionDefaultModel; } });
|
|
195
199
|
var roleType_1 = require("./roleType");
|
|
196
200
|
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
197
|
-
var migrateFile_1 = require("./migrateFile");
|
|
198
|
-
Object.defineProperty(exports, "MigrateFileModel", { enumerable: true, get: function () { return migrateFile_1.MigrateFileModel; } });
|
|
199
201
|
var appLimitDefault_1 = require("./appLimitDefault");
|
|
200
202
|
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
201
203
|
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
202
204
|
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
205
|
+
var migrateFile_1 = require("./migrateFile");
|
|
206
|
+
Object.defineProperty(exports, "MigrateFileModel", { enumerable: true, get: function () { return migrateFile_1.MigrateFileModel; } });
|
|
203
207
|
var membershipType_1 = require("./membershipType");
|
|
204
208
|
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
205
209
|
var commit_1 = require("./commit");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StorageModule model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { StorageModuleWithRelations, StorageModuleSelect, StorageModuleFilter, StorageModuleOrderBy, CreateStorageModuleInput, StorageModulePatch } from '../input-types';
|
|
10
|
+
export declare class StorageModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends StorageModuleSelect>(args: FindManyArgs<S, StorageModuleFilter, never, StorageModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
16
|
+
storageModules: ConnectionResult<InferSelectResult<StorageModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends StorageModuleSelect>(args: FindFirstArgs<S, StorageModuleFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
21
|
+
storageModules: {
|
|
22
|
+
nodes: InferSelectResult<StorageModuleWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends StorageModuleSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
29
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends StorageModuleSelect>(args: CreateArgs<S, CreateStorageModuleInput['storageModule']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
34
|
+
createStorageModule: {
|
|
35
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends StorageModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, StorageModulePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
43
|
+
updateStorageModule: {
|
|
44
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends StorageModuleSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, StorageModuleSelect>): QueryBuilder<{
|
|
52
|
+
deleteStorageModule: {
|
|
53
|
+
storageModule: InferSelectResult<StorageModuleWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageModuleModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class StorageModuleModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('StorageModule', 'storageModules', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'StorageModuleFilter', 'StorageModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'StorageModule',
|
|
25
|
+
fieldName: 'storageModules',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('StorageModule', 'storageModules', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'StorageModuleFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'StorageModule',
|
|
38
|
+
fieldName: 'storageModules',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('StorageModule', 'storageModules', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'StorageModuleFilter', 'StorageModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'StorageModule',
|
|
56
|
+
fieldName: 'storageModule',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
storageModule: data.storageModules?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('StorageModule', 'createStorageModule', 'storageModule', args.select, args.data, 'CreateStorageModuleInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'StorageModule',
|
|
70
|
+
fieldName: 'createStorageModule',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('StorageModule', 'updateStorageModule', 'storageModule', args.select, args.where.id, args.data, 'UpdateStorageModuleInput', 'id', 'storageModulePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'StorageModule',
|
|
81
|
+
fieldName: 'updateStorageModule',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('StorageModule', 'deleteStorageModule', 'storageModule', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteStorageModuleInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'StorageModule',
|
|
94
|
+
fieldName: 'deleteStorageModule',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.StorageModuleModel = StorageModuleModel;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
8
|
import type { InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ResetPasswordInput, RemoveNodeAtPathInput,
|
|
9
|
+
import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInOneTimeTokenInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignInInput, SignUpInput, OneTimeTokenInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, VerifyPasswordInput, VerifyTotpInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInOneTimeTokenPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignInPayload, SignUpPayload, OneTimeTokenPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, VerifyPasswordPayload, VerifyTotpPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInOneTimeTokenPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignInPayloadSelect, SignUpPayloadSelect, OneTimeTokenPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
|
|
10
10
|
export interface SendAccountDeletionEmailVariables {
|
|
11
11
|
input: SendAccountDeletionEmailInput;
|
|
12
12
|
}
|
|
@@ -48,7 +48,7 @@ export interface InitEmptyRepoVariables {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Variables for constructBlueprint
|
|
51
|
-
* Executes a
|
|
51
|
+
* Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Five phases: (1) provision_table() for each table with all nodes[], fields[], policies[], grants, and table-level indexes/fts/unique_constraints in a single call, (2) provision_relation() for each relation, (3) provision_index() for top-level indexes, (4) provision_full_text_search() for top-level FTS, (5) provision_unique_constraint() for top-level unique constraints. Tables are identified by table_name with optional per-table schema_name. Relations use $type for relation_type with source_table/target_table. Returns the construction record ID on success, NULL on failure.
|
|
52
52
|
*/
|
|
53
53
|
export interface ConstructBlueprintVariables {
|
|
54
54
|
input: ConstructBlueprintInput;
|
|
@@ -59,12 +59,6 @@ export interface ResetPasswordVariables {
|
|
|
59
59
|
export interface RemoveNodeAtPathVariables {
|
|
60
60
|
input: RemoveNodeAtPathInput;
|
|
61
61
|
}
|
|
62
|
-
export interface SetDataAtPathVariables {
|
|
63
|
-
input: SetDataAtPathInput;
|
|
64
|
-
}
|
|
65
|
-
export interface SetPropsAndCommitVariables {
|
|
66
|
-
input: SetPropsAndCommitInput;
|
|
67
|
-
}
|
|
68
62
|
/**
|
|
69
63
|
* Variables for copyTemplateToBlueprint
|
|
70
64
|
* 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.
|
|
@@ -72,15 +66,42 @@ export interface SetPropsAndCommitVariables {
|
|
|
72
66
|
export interface CopyTemplateToBlueprintVariables {
|
|
73
67
|
input: CopyTemplateToBlueprintInput;
|
|
74
68
|
}
|
|
75
|
-
export interface ProvisionDatabaseWithUserVariables {
|
|
76
|
-
input: ProvisionDatabaseWithUserInput;
|
|
77
|
-
}
|
|
78
69
|
export interface BootstrapUserVariables {
|
|
79
70
|
input: BootstrapUserInput;
|
|
80
71
|
}
|
|
81
72
|
export interface SetFieldOrderVariables {
|
|
82
73
|
input: SetFieldOrderInput;
|
|
83
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Variables for provisionUniqueConstraint
|
|
77
|
+
* 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.
|
|
78
|
+
*/
|
|
79
|
+
export interface ProvisionUniqueConstraintVariables {
|
|
80
|
+
input: ProvisionUniqueConstraintInput;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Variables for provisionFullTextSearch
|
|
84
|
+
* 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.
|
|
85
|
+
*/
|
|
86
|
+
export interface ProvisionFullTextSearchVariables {
|
|
87
|
+
input: ProvisionFullTextSearchInput;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Variables for provisionIndex
|
|
91
|
+
* 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.
|
|
92
|
+
*/
|
|
93
|
+
export interface ProvisionIndexVariables {
|
|
94
|
+
input: ProvisionIndexInput;
|
|
95
|
+
}
|
|
96
|
+
export interface SetDataAtPathVariables {
|
|
97
|
+
input: SetDataAtPathInput;
|
|
98
|
+
}
|
|
99
|
+
export interface SetPropsAndCommitVariables {
|
|
100
|
+
input: SetPropsAndCommitInput;
|
|
101
|
+
}
|
|
102
|
+
export interface ProvisionDatabaseWithUserVariables {
|
|
103
|
+
input: ProvisionDatabaseWithUserInput;
|
|
104
|
+
}
|
|
84
105
|
export interface InsertNodeAtPathVariables {
|
|
85
106
|
input: InsertNodeAtPathInput;
|
|
86
107
|
}
|
|
@@ -90,6 +111,13 @@ export interface UpdateNodeAtPathVariables {
|
|
|
90
111
|
export interface SetAndCommitVariables {
|
|
91
112
|
input: SetAndCommitInput;
|
|
92
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Variables for provisionRelation
|
|
116
|
+
* 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).
|
|
117
|
+
*/
|
|
118
|
+
export interface ProvisionRelationVariables {
|
|
119
|
+
input: ProvisionRelationInput;
|
|
120
|
+
}
|
|
93
121
|
export interface ApplyRlsVariables {
|
|
94
122
|
input: ApplyRlsInput;
|
|
95
123
|
}
|
|
@@ -130,6 +158,13 @@ export interface SignUpVariables {
|
|
|
130
158
|
export interface OneTimeTokenVariables {
|
|
131
159
|
input: OneTimeTokenInput;
|
|
132
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Variables for provisionTable
|
|
163
|
+
* Composable table provisioning: creates or finds a table, then applies N nodes (Data* modules), creates fields, 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).
|
|
164
|
+
*/
|
|
165
|
+
export interface ProvisionTableVariables {
|
|
166
|
+
input: ProvisionTableInput;
|
|
167
|
+
}
|
|
133
168
|
export interface SendVerificationEmailVariables {
|
|
134
169
|
input: SendVerificationEmailInput;
|
|
135
170
|
}
|
|
@@ -223,26 +258,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
223
258
|
} & StrictSelect<S, RemoveNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
224
259
|
removeNodeAtPath: InferSelectResult<RemoveNodeAtPathPayload, S> | null;
|
|
225
260
|
}>;
|
|
226
|
-
setDataAtPath: <S extends SetDataAtPathPayloadSelect>(args: SetDataAtPathVariables, options: {
|
|
227
|
-
select: S;
|
|
228
|
-
} & StrictSelect<S, SetDataAtPathPayloadSelect>) => QueryBuilder<{
|
|
229
|
-
setDataAtPath: InferSelectResult<SetDataAtPathPayload, S> | null;
|
|
230
|
-
}>;
|
|
231
|
-
setPropsAndCommit: <S extends SetPropsAndCommitPayloadSelect>(args: SetPropsAndCommitVariables, options: {
|
|
232
|
-
select: S;
|
|
233
|
-
} & StrictSelect<S, SetPropsAndCommitPayloadSelect>) => QueryBuilder<{
|
|
234
|
-
setPropsAndCommit: InferSelectResult<SetPropsAndCommitPayload, S> | null;
|
|
235
|
-
}>;
|
|
236
261
|
copyTemplateToBlueprint: <S extends CopyTemplateToBlueprintPayloadSelect>(args: CopyTemplateToBlueprintVariables, options: {
|
|
237
262
|
select: S;
|
|
238
263
|
} & StrictSelect<S, CopyTemplateToBlueprintPayloadSelect>) => QueryBuilder<{
|
|
239
264
|
copyTemplateToBlueprint: InferSelectResult<CopyTemplateToBlueprintPayload, S> | null;
|
|
240
265
|
}>;
|
|
241
|
-
provisionDatabaseWithUser: <S extends ProvisionDatabaseWithUserPayloadSelect>(args: ProvisionDatabaseWithUserVariables, options: {
|
|
242
|
-
select: S;
|
|
243
|
-
} & StrictSelect<S, ProvisionDatabaseWithUserPayloadSelect>) => QueryBuilder<{
|
|
244
|
-
provisionDatabaseWithUser: InferSelectResult<ProvisionDatabaseWithUserPayload, S> | null;
|
|
245
|
-
}>;
|
|
246
266
|
bootstrapUser: <S extends BootstrapUserPayloadSelect>(args: BootstrapUserVariables, options: {
|
|
247
267
|
select: S;
|
|
248
268
|
} & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
|
|
@@ -253,6 +273,36 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
253
273
|
} & StrictSelect<S, SetFieldOrderPayloadSelect>) => QueryBuilder<{
|
|
254
274
|
setFieldOrder: InferSelectResult<SetFieldOrderPayload, S> | null;
|
|
255
275
|
}>;
|
|
276
|
+
provisionUniqueConstraint: <S extends ProvisionUniqueConstraintPayloadSelect>(args: ProvisionUniqueConstraintVariables, options: {
|
|
277
|
+
select: S;
|
|
278
|
+
} & StrictSelect<S, ProvisionUniqueConstraintPayloadSelect>) => QueryBuilder<{
|
|
279
|
+
provisionUniqueConstraint: InferSelectResult<ProvisionUniqueConstraintPayload, S> | null;
|
|
280
|
+
}>;
|
|
281
|
+
provisionFullTextSearch: <S extends ProvisionFullTextSearchPayloadSelect>(args: ProvisionFullTextSearchVariables, options: {
|
|
282
|
+
select: S;
|
|
283
|
+
} & StrictSelect<S, ProvisionFullTextSearchPayloadSelect>) => QueryBuilder<{
|
|
284
|
+
provisionFullTextSearch: InferSelectResult<ProvisionFullTextSearchPayload, S> | null;
|
|
285
|
+
}>;
|
|
286
|
+
provisionIndex: <S extends ProvisionIndexPayloadSelect>(args: ProvisionIndexVariables, options: {
|
|
287
|
+
select: S;
|
|
288
|
+
} & StrictSelect<S, ProvisionIndexPayloadSelect>) => QueryBuilder<{
|
|
289
|
+
provisionIndex: InferSelectResult<ProvisionIndexPayload, S> | null;
|
|
290
|
+
}>;
|
|
291
|
+
setDataAtPath: <S extends SetDataAtPathPayloadSelect>(args: SetDataAtPathVariables, options: {
|
|
292
|
+
select: S;
|
|
293
|
+
} & StrictSelect<S, SetDataAtPathPayloadSelect>) => QueryBuilder<{
|
|
294
|
+
setDataAtPath: InferSelectResult<SetDataAtPathPayload, S> | null;
|
|
295
|
+
}>;
|
|
296
|
+
setPropsAndCommit: <S extends SetPropsAndCommitPayloadSelect>(args: SetPropsAndCommitVariables, options: {
|
|
297
|
+
select: S;
|
|
298
|
+
} & StrictSelect<S, SetPropsAndCommitPayloadSelect>) => QueryBuilder<{
|
|
299
|
+
setPropsAndCommit: InferSelectResult<SetPropsAndCommitPayload, S> | null;
|
|
300
|
+
}>;
|
|
301
|
+
provisionDatabaseWithUser: <S extends ProvisionDatabaseWithUserPayloadSelect>(args: ProvisionDatabaseWithUserVariables, options: {
|
|
302
|
+
select: S;
|
|
303
|
+
} & StrictSelect<S, ProvisionDatabaseWithUserPayloadSelect>) => QueryBuilder<{
|
|
304
|
+
provisionDatabaseWithUser: InferSelectResult<ProvisionDatabaseWithUserPayload, S> | null;
|
|
305
|
+
}>;
|
|
256
306
|
insertNodeAtPath: <S extends InsertNodeAtPathPayloadSelect>(args: InsertNodeAtPathVariables, options: {
|
|
257
307
|
select: S;
|
|
258
308
|
} & StrictSelect<S, InsertNodeAtPathPayloadSelect>) => QueryBuilder<{
|
|
@@ -268,6 +318,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
268
318
|
} & StrictSelect<S, SetAndCommitPayloadSelect>) => QueryBuilder<{
|
|
269
319
|
setAndCommit: InferSelectResult<SetAndCommitPayload, S> | null;
|
|
270
320
|
}>;
|
|
321
|
+
provisionRelation: <S extends ProvisionRelationPayloadSelect>(args: ProvisionRelationVariables, options: {
|
|
322
|
+
select: S;
|
|
323
|
+
} & StrictSelect<S, ProvisionRelationPayloadSelect>) => QueryBuilder<{
|
|
324
|
+
provisionRelation: InferSelectResult<ProvisionRelationPayload, S> | null;
|
|
325
|
+
}>;
|
|
271
326
|
applyRls: <S extends ApplyRlsPayloadSelect>(args: ApplyRlsVariables, options: {
|
|
272
327
|
select: S;
|
|
273
328
|
} & StrictSelect<S, ApplyRlsPayloadSelect>) => QueryBuilder<{
|
|
@@ -303,6 +358,11 @@ export declare function createMutationOperations(client: OrmClient): {
|
|
|
303
358
|
} & StrictSelect<S, OneTimeTokenPayloadSelect>) => QueryBuilder<{
|
|
304
359
|
oneTimeToken: InferSelectResult<OneTimeTokenPayload, S> | null;
|
|
305
360
|
}>;
|
|
361
|
+
provisionTable: <S extends ProvisionTablePayloadSelect>(args: ProvisionTableVariables, options: {
|
|
362
|
+
select: S;
|
|
363
|
+
} & StrictSelect<S, ProvisionTablePayloadSelect>) => QueryBuilder<{
|
|
364
|
+
provisionTable: InferSelectResult<ProvisionTablePayload, S> | null;
|
|
365
|
+
}>;
|
|
306
366
|
sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
|
|
307
367
|
select: S;
|
|
308
368
|
} & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
|