@constructive-io/sdk 0.10.0 → 0.10.1
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/README.md +0 -8
- package/admin/orm/input-types.d.ts +19 -95
- package/auth/orm/index.d.ts +6 -6
- package/auth/orm/index.js +6 -6
- package/auth/orm/input-types.d.ts +276 -311
- package/auth/orm/input-types.js +9 -1
- package/auth/orm/models/index.d.ts +3 -3
- package/auth/orm/models/index.js +7 -7
- package/esm/admin/orm/input-types.d.ts +19 -95
- package/esm/auth/orm/index.d.ts +6 -6
- package/esm/auth/orm/index.js +6 -6
- package/esm/auth/orm/input-types.d.ts +276 -311
- package/esm/auth/orm/input-types.js +9 -1
- package/esm/auth/orm/models/index.d.ts +3 -3
- package/esm/auth/orm/models/index.js +3 -3
- package/esm/objects/orm/input-types.d.ts +3 -27
- package/esm/public/orm/index.d.ts +81 -48
- package/esm/public/orm/index.js +26 -18
- package/esm/public/orm/input-types.d.ts +2318 -2557
- package/esm/public/orm/input-types.js +26 -1
- package/esm/public/orm/models/blueprint.d.ts +56 -0
- package/esm/public/orm/models/blueprint.js +94 -0
- package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/esm/public/orm/models/blueprintTemplate.js +94 -0
- package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
- package/esm/public/orm/models/databaseTransfer.js +94 -0
- package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
- package/esm/public/orm/models/embeddingChunk.js +94 -0
- package/esm/public/orm/models/enum.d.ts +56 -0
- package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
- package/esm/public/orm/models/index.d.ts +13 -9
- package/esm/public/orm/models/index.js +13 -9
- package/esm/public/orm/mutation/index.d.ts +98 -50
- package/esm/public/orm/mutation/index.js +126 -66
- package/index.js +8 -8
- package/objects/orm/input-types.d.ts +3 -27
- package/package.json +2 -2
- package/public/orm/index.d.ts +81 -48
- package/public/orm/index.js +26 -18
- package/public/orm/input-types.d.ts +2318 -2557
- package/public/orm/input-types.js +26 -1
- package/public/orm/models/blueprint.d.ts +56 -0
- package/public/orm/models/blueprint.js +98 -0
- package/public/orm/models/blueprintTemplate.d.ts +56 -0
- package/public/orm/models/blueprintTemplate.js +98 -0
- package/public/orm/models/databaseTransfer.d.ts +56 -0
- package/public/orm/models/databaseTransfer.js +98 -0
- package/public/orm/models/embeddingChunk.d.ts +56 -0
- package/public/orm/models/embeddingChunk.js +98 -0
- package/public/orm/models/enum.d.ts +56 -0
- package/public/orm/models/{uuidModule.js → enum.js} +25 -25
- package/public/orm/models/index.d.ts +13 -9
- package/public/orm/models/index.js +29 -21
- package/public/orm/mutation/index.d.ts +98 -50
- package/public/orm/mutation/index.js +126 -66
- package/esm/public/orm/models/uuidModule.d.ts +0 -56
- package/public/orm/models/uuidModule.d.ts +0 -56
|
@@ -22,6 +22,9 @@ exports.connectionFieldsMap = {
|
|
|
22
22
|
viewGrants: 'ViewGrant',
|
|
23
23
|
viewRules: 'ViewRule',
|
|
24
24
|
defaultPrivileges: 'DefaultPrivilege',
|
|
25
|
+
enums: 'Enum',
|
|
26
|
+
embeddingChunks: 'EmbeddingChunk',
|
|
27
|
+
databaseTransfers: 'DatabaseTransfer',
|
|
25
28
|
apis: 'Api',
|
|
26
29
|
apiModules: 'ApiModule',
|
|
27
30
|
apiSchemas: 'ApiSchema',
|
|
@@ -51,10 +54,10 @@ exports.connectionFieldsMap = {
|
|
|
51
54
|
sessionsModules: 'SessionsModule',
|
|
52
55
|
userAuthModules: 'UserAuthModule',
|
|
53
56
|
usersModules: 'UsersModule',
|
|
54
|
-
uuidModules: 'UuidModule',
|
|
55
57
|
tableTemplateModules: 'TableTemplateModule',
|
|
56
58
|
secureTableProvisions: 'SecureTableProvision',
|
|
57
59
|
relationProvisions: 'RelationProvision',
|
|
60
|
+
blueprints: 'Blueprint',
|
|
58
61
|
databaseProvisionModules: 'DatabaseProvisionModule',
|
|
59
62
|
},
|
|
60
63
|
Schema: {
|
|
@@ -62,6 +65,7 @@ exports.connectionFieldsMap = {
|
|
|
62
65
|
schemaGrants: 'SchemaGrant',
|
|
63
66
|
views: 'View',
|
|
64
67
|
defaultPrivileges: 'DefaultPrivilege',
|
|
68
|
+
enums: 'Enum',
|
|
65
69
|
apiSchemas: 'ApiSchema',
|
|
66
70
|
tableTemplateModulesByPrivateSchemaId: 'TableTemplateModule',
|
|
67
71
|
tableTemplateModules: 'TableTemplateModule',
|
|
@@ -79,6 +83,8 @@ exports.connectionFieldsMap = {
|
|
|
79
83
|
uniqueConstraints: 'UniqueConstraint',
|
|
80
84
|
views: 'View',
|
|
81
85
|
viewTables: 'ViewTable',
|
|
86
|
+
embeddingChunksByChunksTableId: 'EmbeddingChunk',
|
|
87
|
+
embeddingChunks: 'EmbeddingChunk',
|
|
82
88
|
tableTemplateModulesByOwnerTableId: 'TableTemplateModule',
|
|
83
89
|
tableTemplateModules: 'TableTemplateModule',
|
|
84
90
|
secureTableProvisions: 'SecureTableProvision',
|
|
@@ -101,19 +107,29 @@ exports.connectionFieldsMap = {
|
|
|
101
107
|
siteModules: 'SiteModule',
|
|
102
108
|
siteThemes: 'SiteTheme',
|
|
103
109
|
},
|
|
110
|
+
BlueprintTemplate: {
|
|
111
|
+
blueprintTemplatesByForkedFromId: 'BlueprintTemplate',
|
|
112
|
+
blueprintsByTemplateId: 'Blueprint',
|
|
113
|
+
},
|
|
104
114
|
User: {
|
|
105
115
|
ownedDatabases: 'Database',
|
|
116
|
+
appAdminGrantsByActorId: 'AppAdminGrant',
|
|
106
117
|
appAdminGrantsByGrantorId: 'AppAdminGrant',
|
|
118
|
+
appOwnerGrantsByActorId: 'AppOwnerGrant',
|
|
107
119
|
appOwnerGrantsByGrantorId: 'AppOwnerGrant',
|
|
120
|
+
appGrantsByActorId: 'AppGrant',
|
|
108
121
|
appGrantsByGrantorId: 'AppGrant',
|
|
109
122
|
orgMembershipsByActorId: 'OrgMembership',
|
|
110
123
|
orgMembershipsByEntityId: 'OrgMembership',
|
|
111
124
|
orgMembersByActorId: 'OrgMember',
|
|
112
125
|
orgMembersByEntityId: 'OrgMember',
|
|
126
|
+
orgAdminGrantsByActorId: 'OrgAdminGrant',
|
|
113
127
|
orgAdminGrantsByEntityId: 'OrgAdminGrant',
|
|
114
128
|
orgAdminGrantsByGrantorId: 'OrgAdminGrant',
|
|
129
|
+
orgOwnerGrantsByActorId: 'OrgOwnerGrant',
|
|
115
130
|
orgOwnerGrantsByEntityId: 'OrgOwnerGrant',
|
|
116
131
|
orgOwnerGrantsByGrantorId: 'OrgOwnerGrant',
|
|
132
|
+
orgGrantsByActorId: 'OrgGrant',
|
|
117
133
|
orgGrantsByEntityId: 'OrgGrant',
|
|
118
134
|
orgGrantsByGrantorId: 'OrgGrant',
|
|
119
135
|
parentOrgChartEdges: 'OrgChartEdge',
|
|
@@ -123,17 +139,26 @@ exports.connectionFieldsMap = {
|
|
|
123
139
|
orgChartEdgeGrantsByEntityId: 'OrgChartEdgeGrant',
|
|
124
140
|
orgChartEdgeGrantsByGrantorId: 'OrgChartEdgeGrant',
|
|
125
141
|
childOrgChartEdgeGrants: 'OrgChartEdgeGrant',
|
|
142
|
+
orgPermissionDefaultsByEntityId: 'OrgPermissionDefault',
|
|
126
143
|
appLimitsByActorId: 'AppLimit',
|
|
127
144
|
orgLimitsByActorId: 'OrgLimit',
|
|
128
145
|
orgLimitsByEntityId: 'OrgLimit',
|
|
129
146
|
appStepsByActorId: 'AppStep',
|
|
130
147
|
appAchievementsByActorId: 'AppAchievement',
|
|
148
|
+
ownedAppLevels: 'AppLevel',
|
|
149
|
+
ownedEmails: 'Email',
|
|
150
|
+
ownedPhoneNumbers: 'PhoneNumber',
|
|
151
|
+
ownedCryptoAddresses: 'CryptoAddress',
|
|
152
|
+
ownedConnectedAccounts: 'ConnectedAccount',
|
|
131
153
|
invitesBySenderId: 'Invite',
|
|
132
154
|
claimedInvitesByReceiverId: 'ClaimedInvite',
|
|
133
155
|
claimedInvitesBySenderId: 'ClaimedInvite',
|
|
134
156
|
orgInvitesByEntityId: 'OrgInvite',
|
|
157
|
+
orgInvitesByReceiverId: 'OrgInvite',
|
|
135
158
|
orgInvitesBySenderId: 'OrgInvite',
|
|
159
|
+
orgClaimedInvitesByEntityId: 'OrgClaimedInvite',
|
|
136
160
|
orgClaimedInvitesByReceiverId: 'OrgClaimedInvite',
|
|
137
161
|
orgClaimedInvitesBySenderId: 'OrgClaimedInvite',
|
|
162
|
+
auditLogsByActorId: 'AuditLog',
|
|
138
163
|
},
|
|
139
164
|
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blueprint 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 { BlueprintWithRelations, BlueprintSelect, BlueprintFilter, BlueprintOrderBy, CreateBlueprintInput, BlueprintPatch } from '../input-types';
|
|
10
|
+
export declare class BlueprintModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends BlueprintSelect>(args: FindManyArgs<S, BlueprintFilter, never, BlueprintOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
16
|
+
blueprints: ConnectionResult<InferSelectResult<BlueprintWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends BlueprintSelect>(args: FindFirstArgs<S, BlueprintFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
21
|
+
blueprints: {
|
|
22
|
+
nodes: InferSelectResult<BlueprintWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends BlueprintSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
29
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends BlueprintSelect>(args: CreateArgs<S, CreateBlueprintInput['blueprint']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
34
|
+
createBlueprint: {
|
|
35
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends BlueprintSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, BlueprintPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
43
|
+
updateBlueprint: {
|
|
44
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends BlueprintSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, BlueprintSelect>): QueryBuilder<{
|
|
52
|
+
deleteBlueprint: {
|
|
53
|
+
blueprint: InferSelectResult<BlueprintWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlueprintModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class BlueprintModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Blueprint', 'blueprints', 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
|
+
}, 'BlueprintFilter', 'BlueprintOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'Blueprint',
|
|
25
|
+
fieldName: 'blueprints',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Blueprint', 'blueprints', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'BlueprintFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'Blueprint',
|
|
38
|
+
fieldName: 'blueprints',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Blueprint', 'blueprints', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'BlueprintFilter', 'BlueprintOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'Blueprint',
|
|
56
|
+
fieldName: 'blueprint',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
blueprint: data.blueprints?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('Blueprint', 'createBlueprint', 'blueprint', args.select, args.data, 'CreateBlueprintInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'Blueprint',
|
|
70
|
+
fieldName: 'createBlueprint',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Blueprint', 'updateBlueprint', 'blueprint', args.select, args.where.id, args.data, 'UpdateBlueprintInput', 'id', 'blueprintPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'Blueprint',
|
|
81
|
+
fieldName: 'updateBlueprint',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Blueprint', 'deleteBlueprint', 'blueprint', args.where.id, 'DeleteBlueprintInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
|
+
return new query_builder_1.QueryBuilder({
|
|
89
|
+
client: this.client,
|
|
90
|
+
operation: 'mutation',
|
|
91
|
+
operationName: 'Blueprint',
|
|
92
|
+
fieldName: 'deleteBlueprint',
|
|
93
|
+
document,
|
|
94
|
+
variables,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.BlueprintModel = BlueprintModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BlueprintTemplate 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 { BlueprintTemplateWithRelations, BlueprintTemplateSelect, BlueprintTemplateFilter, BlueprintTemplateOrderBy, CreateBlueprintTemplateInput, BlueprintTemplatePatch } from '../input-types';
|
|
10
|
+
export declare class BlueprintTemplateModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends BlueprintTemplateSelect>(args: FindManyArgs<S, BlueprintTemplateFilter, never, BlueprintTemplateOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
16
|
+
blueprintTemplates: ConnectionResult<InferSelectResult<BlueprintTemplateWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends BlueprintTemplateSelect>(args: FindFirstArgs<S, BlueprintTemplateFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
21
|
+
blueprintTemplates: {
|
|
22
|
+
nodes: InferSelectResult<BlueprintTemplateWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends BlueprintTemplateSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
29
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends BlueprintTemplateSelect>(args: CreateArgs<S, CreateBlueprintTemplateInput['blueprintTemplate']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
34
|
+
createBlueprintTemplate: {
|
|
35
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends BlueprintTemplateSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, BlueprintTemplatePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
43
|
+
updateBlueprintTemplate: {
|
|
44
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends BlueprintTemplateSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, BlueprintTemplateSelect>): QueryBuilder<{
|
|
52
|
+
deleteBlueprintTemplate: {
|
|
53
|
+
blueprintTemplate: InferSelectResult<BlueprintTemplateWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlueprintTemplateModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class BlueprintTemplateModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BlueprintTemplate', 'blueprintTemplates', 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
|
+
}, 'BlueprintTemplateFilter', 'BlueprintTemplateOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'BlueprintTemplate',
|
|
25
|
+
fieldName: 'blueprintTemplates',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('BlueprintTemplate', 'blueprintTemplates', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'BlueprintTemplateFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'BlueprintTemplate',
|
|
38
|
+
fieldName: 'blueprintTemplates',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BlueprintTemplate', 'blueprintTemplates', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'BlueprintTemplateFilter', 'BlueprintTemplateOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'BlueprintTemplate',
|
|
56
|
+
fieldName: 'blueprintTemplate',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
blueprintTemplate: data.blueprintTemplates?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('BlueprintTemplate', 'createBlueprintTemplate', 'blueprintTemplate', args.select, args.data, 'CreateBlueprintTemplateInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'BlueprintTemplate',
|
|
70
|
+
fieldName: 'createBlueprintTemplate',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('BlueprintTemplate', 'updateBlueprintTemplate', 'blueprintTemplate', args.select, args.where.id, args.data, 'UpdateBlueprintTemplateInput', 'id', 'blueprintTemplatePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'BlueprintTemplate',
|
|
81
|
+
fieldName: 'updateBlueprintTemplate',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('BlueprintTemplate', 'deleteBlueprintTemplate', 'blueprintTemplate', args.where.id, 'DeleteBlueprintTemplateInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
|
+
return new query_builder_1.QueryBuilder({
|
|
89
|
+
client: this.client,
|
|
90
|
+
operation: 'mutation',
|
|
91
|
+
operationName: 'BlueprintTemplate',
|
|
92
|
+
fieldName: 'deleteBlueprintTemplate',
|
|
93
|
+
document,
|
|
94
|
+
variables,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.BlueprintTemplateModel = BlueprintTemplateModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DatabaseTransfer 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 { DatabaseTransferWithRelations, DatabaseTransferSelect, DatabaseTransferFilter, DatabaseTransferOrderBy, CreateDatabaseTransferInput, DatabaseTransferPatch } from '../input-types';
|
|
10
|
+
export declare class DatabaseTransferModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DatabaseTransferSelect>(args: FindManyArgs<S, DatabaseTransferFilter, never, DatabaseTransferOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
16
|
+
databaseTransfers: ConnectionResult<InferSelectResult<DatabaseTransferWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DatabaseTransferSelect>(args: FindFirstArgs<S, DatabaseTransferFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
21
|
+
databaseTransfers: {
|
|
22
|
+
nodes: InferSelectResult<DatabaseTransferWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends DatabaseTransferSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
29
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends DatabaseTransferSelect>(args: CreateArgs<S, CreateDatabaseTransferInput['databaseTransfer']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
34
|
+
createDatabaseTransfer: {
|
|
35
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends DatabaseTransferSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, DatabaseTransferPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
43
|
+
updateDatabaseTransfer: {
|
|
44
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends DatabaseTransferSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, DatabaseTransferSelect>): QueryBuilder<{
|
|
52
|
+
deleteDatabaseTransfer: {
|
|
53
|
+
databaseTransfer: InferSelectResult<DatabaseTransferWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatabaseTransferModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class DatabaseTransferModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DatabaseTransfer', 'databaseTransfers', 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
|
+
}, 'DatabaseTransferFilter', 'DatabaseTransferOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'DatabaseTransfer',
|
|
25
|
+
fieldName: 'databaseTransfers',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('DatabaseTransfer', 'databaseTransfers', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'DatabaseTransferFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'DatabaseTransfer',
|
|
38
|
+
fieldName: 'databaseTransfers',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DatabaseTransfer', 'databaseTransfers', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'DatabaseTransferFilter', 'DatabaseTransferOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'DatabaseTransfer',
|
|
56
|
+
fieldName: 'databaseTransfer',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
databaseTransfer: data.databaseTransfers?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('DatabaseTransfer', 'createDatabaseTransfer', 'databaseTransfer', args.select, args.data, 'CreateDatabaseTransferInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'DatabaseTransfer',
|
|
70
|
+
fieldName: 'createDatabaseTransfer',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('DatabaseTransfer', 'updateDatabaseTransfer', 'databaseTransfer', args.select, args.where.id, args.data, 'UpdateDatabaseTransferInput', 'id', 'databaseTransferPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'DatabaseTransfer',
|
|
81
|
+
fieldName: 'updateDatabaseTransfer',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('DatabaseTransfer', 'deleteDatabaseTransfer', 'databaseTransfer', args.where.id, 'DeleteDatabaseTransferInput', 'id', args.select, input_types_1.connectionFieldsMap);
|
|
88
|
+
return new query_builder_1.QueryBuilder({
|
|
89
|
+
client: this.client,
|
|
90
|
+
operation: 'mutation',
|
|
91
|
+
operationName: 'DatabaseTransfer',
|
|
92
|
+
fieldName: 'deleteDatabaseTransfer',
|
|
93
|
+
document,
|
|
94
|
+
variables,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.DatabaseTransferModel = DatabaseTransferModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmbeddingChunk 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 { EmbeddingChunkWithRelations, EmbeddingChunkSelect, EmbeddingChunkFilter, EmbeddingChunkOrderBy, CreateEmbeddingChunkInput, EmbeddingChunkPatch } from '../input-types';
|
|
10
|
+
export declare class EmbeddingChunkModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends EmbeddingChunkSelect>(args: FindManyArgs<S, EmbeddingChunkFilter, never, EmbeddingChunkOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
16
|
+
embeddingChunks: ConnectionResult<InferSelectResult<EmbeddingChunkWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends EmbeddingChunkSelect>(args: FindFirstArgs<S, EmbeddingChunkFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
21
|
+
embeddingChunks: {
|
|
22
|
+
nodes: InferSelectResult<EmbeddingChunkWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends EmbeddingChunkSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
29
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends EmbeddingChunkSelect>(args: CreateArgs<S, CreateEmbeddingChunkInput['embeddingChunk']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
34
|
+
createEmbeddingChunk: {
|
|
35
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends EmbeddingChunkSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, EmbeddingChunkPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
43
|
+
updateEmbeddingChunk: {
|
|
44
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends EmbeddingChunkSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, EmbeddingChunkSelect>): QueryBuilder<{
|
|
52
|
+
deleteEmbeddingChunk: {
|
|
53
|
+
embeddingChunk: InferSelectResult<EmbeddingChunkWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|