@constructive-sdk/cli 0.17.1 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/cli/commands/app-invite.js +22 -0
- package/admin/cli/commands/app-limit-default.js +22 -0
- package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
- package/admin/cli/commands/app-limit-event.js +212 -0
- package/admin/cli/commands/app-limit.js +66 -0
- package/admin/cli/commands/app-membership.js +0 -22
- package/admin/cli/commands/org-invite.js +22 -0
- package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
- package/admin/cli/commands/org-limit-aggregate.js +362 -0
- package/admin/cli/commands/org-limit-default.js +22 -0
- package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
- package/admin/cli/commands/org-limit-event.js +212 -0
- package/admin/cli/commands/org-limit.js +66 -0
- package/admin/cli/commands/org-membership-setting.js +44 -0
- package/admin/cli/commands.js +25 -21
- package/admin/cli/executor.d.ts +12 -14
- package/admin/orm/index.d.ts +24 -23
- package/admin/orm/index.js +24 -18
- package/admin/orm/input-types.d.ts +1297 -839
- package/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/admin/orm/models/appLimitEvent.js +55 -0
- package/admin/orm/models/index.d.ts +12 -9
- package/admin/orm/models/index.js +25 -19
- package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/admin/orm/models/orgLimitAggregate.js +100 -0
- package/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/admin/orm/models/orgLimitEvent.js +55 -0
- package/admin/orm/mutation/index.d.ts +1 -15
- package/admin/orm/mutation/index.js +0 -12
- package/auth/cli/commands.js +1 -3
- package/auth/cli/executor.d.ts +0 -5
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -20
- package/auth/orm/mutation/index.d.ts +1 -15
- package/auth/orm/mutation/index.js +0 -12
- package/esm/admin/cli/commands/app-invite.js +22 -0
- package/esm/admin/cli/commands/app-limit-default.js +22 -0
- package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
- package/esm/admin/cli/commands/app-limit-event.js +210 -0
- package/esm/admin/cli/commands/app-limit.js +66 -0
- package/esm/admin/cli/commands/app-membership.js +0 -22
- package/esm/admin/cli/commands/org-invite.js +22 -0
- package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/admin/cli/commands/org-limit-default.js +22 -0
- package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/admin/cli/commands/org-limit-event.js +210 -0
- package/esm/admin/cli/commands/org-limit.js +66 -0
- package/esm/admin/cli/commands/org-membership-setting.js +44 -0
- package/esm/admin/cli/commands.js +25 -21
- package/esm/admin/cli/executor.d.ts +12 -14
- package/esm/admin/orm/index.d.ts +24 -23
- package/esm/admin/orm/index.js +24 -18
- package/esm/admin/orm/input-types.d.ts +1297 -839
- package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/appLimitEvent.js +51 -0
- package/esm/admin/orm/models/index.d.ts +12 -9
- package/esm/admin/orm/models/index.js +12 -9
- package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
- package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/orgLimitEvent.js +51 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -15
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/auth/cli/commands.js +1 -3
- package/esm/auth/cli/executor.d.ts +0 -5
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -20
- package/esm/auth/orm/mutation/index.d.ts +1 -15
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/objects/cli/commands.js +1 -3
- package/esm/objects/cli/executor.d.ts +0 -5
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -20
- package/esm/objects/orm/mutation/index.d.ts +1 -15
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/public/cli/commands/agent-message.d.ts +8 -0
- package/esm/public/cli/commands/agent-message.js +324 -0
- package/esm/public/cli/commands/agent-task.d.ts +8 -0
- package/esm/public/cli/commands/agent-task.js +368 -0
- package/esm/public/cli/commands/agent-thread.d.ts +8 -0
- package/esm/public/cli/commands/agent-thread.js +372 -0
- package/esm/public/cli/commands/app-invite.js +22 -0
- package/esm/public/cli/commands/app-limit-default.js +22 -0
- package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/app-limit-event.js +210 -0
- package/esm/public/cli/commands/app-limit.js +66 -0
- package/esm/public/cli/commands/app-membership.js +0 -22
- package/esm/public/cli/commands/billing-module.d.ts +8 -0
- package/esm/public/cli/commands/billing-module.js +492 -0
- package/esm/public/cli/commands/limits-module.js +22 -0
- package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
- package/esm/public/cli/commands/node-type-registry.js +343 -0
- package/esm/public/cli/commands/org-invite.js +22 -0
- package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
- package/esm/public/cli/commands/org-limit-default.js +22 -0
- package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
- package/esm/public/cli/commands/org-limit-event.js +210 -0
- package/esm/public/cli/commands/org-limit.js +66 -0
- package/esm/public/cli/commands/org-membership-setting.js +44 -0
- package/esm/public/cli/commands/plans-module.d.ts +8 -0
- package/esm/public/cli/commands/plans-module.js +426 -0
- package/esm/public/cli/commands/profiles-module.js +44 -0
- package/esm/public/cli/commands/storage-module.js +22 -44
- package/esm/public/cli/commands.js +45 -29
- package/esm/public/cli/executor.d.ts +38 -34
- package/esm/public/orm/index.d.ts +56 -43
- package/esm/public/orm/index.js +36 -18
- package/esm/public/orm/input-types.d.ts +2983 -1112
- package/esm/public/orm/input-types.js +9 -0
- package/esm/public/orm/models/agentMessage.d.ts +56 -0
- package/esm/public/orm/models/agentMessage.js +96 -0
- package/esm/public/orm/models/agentTask.d.ts +56 -0
- package/esm/public/orm/models/agentTask.js +96 -0
- package/esm/public/orm/models/agentThread.d.ts +56 -0
- package/esm/public/orm/models/agentThread.js +96 -0
- package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/appLimitEvent.js +51 -0
- package/esm/public/orm/models/billingModule.d.ts +56 -0
- package/esm/public/orm/models/billingModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +18 -9
- package/esm/public/orm/models/index.js +18 -9
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
- package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/public/orm/models/orgLimitAggregate.js +96 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/orgLimitEvent.js +51 -0
- package/esm/public/orm/models/plansModule.d.ts +56 -0
- package/esm/public/orm/models/plansModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +17 -31
- package/esm/public/orm/mutation/index.js +24 -36
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/objects/cli/commands.js +1 -3
- package/objects/cli/executor.d.ts +0 -5
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -20
- package/objects/orm/mutation/index.d.ts +1 -15
- package/objects/orm/mutation/index.js +0 -12
- package/package.json +4 -4
- package/public/cli/commands/agent-message.d.ts +8 -0
- package/public/cli/commands/agent-message.js +326 -0
- package/public/cli/commands/agent-task.d.ts +8 -0
- package/public/cli/commands/agent-task.js +370 -0
- package/public/cli/commands/agent-thread.d.ts +8 -0
- package/public/cli/commands/agent-thread.js +374 -0
- package/public/cli/commands/app-invite.js +22 -0
- package/public/cli/commands/app-limit-default.js +22 -0
- package/public/cli/commands/app-limit-event.d.ts +8 -0
- package/public/cli/commands/app-limit-event.js +212 -0
- package/public/cli/commands/app-limit.js +66 -0
- package/public/cli/commands/app-membership.js +0 -22
- package/public/cli/commands/billing-module.d.ts +8 -0
- package/public/cli/commands/billing-module.js +494 -0
- package/public/cli/commands/limits-module.js +22 -0
- package/public/cli/commands/node-type-registry.d.ts +8 -0
- package/public/cli/commands/node-type-registry.js +345 -0
- package/public/cli/commands/org-invite.js +22 -0
- package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
- package/public/cli/commands/org-limit-aggregate.js +362 -0
- package/public/cli/commands/org-limit-default.js +22 -0
- package/public/cli/commands/org-limit-event.d.ts +8 -0
- package/public/cli/commands/org-limit-event.js +212 -0
- package/public/cli/commands/org-limit.js +66 -0
- package/public/cli/commands/org-membership-setting.js +44 -0
- package/public/cli/commands/plans-module.d.ts +8 -0
- package/public/cli/commands/plans-module.js +428 -0
- package/public/cli/commands/profiles-module.js +44 -0
- package/public/cli/commands/storage-module.js +22 -44
- package/public/cli/commands.js +45 -29
- package/public/cli/executor.d.ts +38 -34
- package/public/orm/index.d.ts +56 -43
- package/public/orm/index.js +36 -18
- package/public/orm/input-types.d.ts +2983 -1112
- package/public/orm/input-types.js +9 -0
- package/public/orm/models/agentMessage.d.ts +56 -0
- package/public/orm/models/agentMessage.js +100 -0
- package/public/orm/models/agentTask.d.ts +56 -0
- package/public/orm/models/agentTask.js +100 -0
- package/public/orm/models/agentThread.d.ts +56 -0
- package/public/orm/models/agentThread.js +100 -0
- package/public/orm/models/appLimitEvent.d.ts +32 -0
- package/public/orm/models/appLimitEvent.js +55 -0
- package/public/orm/models/billingModule.d.ts +56 -0
- package/public/orm/models/billingModule.js +100 -0
- package/public/orm/models/index.d.ts +18 -9
- package/public/orm/models/index.js +39 -21
- package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/public/orm/models/nodeTypeRegistry.js +100 -0
- package/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/public/orm/models/orgLimitAggregate.js +100 -0
- package/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/public/orm/models/orgLimitEvent.js +55 -0
- package/public/orm/models/plansModule.d.ts +56 -0
- package/public/orm/models/plansModule.js +100 -0
- package/public/orm/mutation/index.d.ts +17 -31
- package/public/orm/mutation/index.js +24 -36
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
- package/admin/cli/commands/confirm-upload.js +0 -36
- package/auth/cli/commands/confirm-upload.js +0 -36
- package/esm/admin/cli/commands/confirm-upload.js +0 -34
- package/esm/auth/cli/commands/confirm-upload.js +0 -34
- package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/objects/cli/commands/confirm-upload.js +0 -34
- package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
- package/esm/public/cli/commands/confirm-upload.js +0 -34
- package/objects/cli/commands/confirm-upload.d.ts +0 -8
- package/objects/cli/commands/confirm-upload.js +0 -36
- package/public/cli/commands/confirm-upload.d.ts +0 -8
- package/public/cli/commands/confirm-upload.js +0 -36
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingModuleModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class BillingModuleModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BillingModule', 'billingModules', 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
|
+
}, 'BillingModuleFilter', 'BillingModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'BillingModule',
|
|
25
|
+
fieldName: 'billingModules',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('BillingModule', 'billingModules', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'BillingModuleFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'BillingModule',
|
|
38
|
+
fieldName: 'billingModules',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('BillingModule', 'billingModules', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'BillingModuleFilter', 'BillingModuleOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'BillingModule',
|
|
56
|
+
fieldName: 'billingModule',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
billingModule: data.billingModules?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('BillingModule', 'createBillingModule', 'billingModule', args.select, args.data, 'CreateBillingModuleInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'BillingModule',
|
|
70
|
+
fieldName: 'createBillingModule',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('BillingModule', 'updateBillingModule', 'billingModule', args.select, args.where.id, args.data, 'UpdateBillingModuleInput', 'id', 'billingModulePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'BillingModule',
|
|
81
|
+
fieldName: 'updateBillingModule',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('BillingModule', 'deleteBillingModule', 'billingModule', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteBillingModuleInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'BillingModule',
|
|
94
|
+
fieldName: 'deleteBillingModule',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.BillingModuleModel = BillingModuleModel;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
7
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
8
|
export { GetAllRecordModel } from './getAllRecord';
|
|
9
|
-
export { ObjectModel } from './object';
|
|
10
9
|
export { AppPermissionModel } from './appPermission';
|
|
11
10
|
export { OrgPermissionModel } from './orgPermission';
|
|
11
|
+
export { ObjectModel } from './object';
|
|
12
12
|
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
13
13
|
export { DatabaseModel } from './database';
|
|
14
14
|
export { SchemaModel } from './schema';
|
|
@@ -89,6 +89,7 @@ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
|
89
89
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
90
90
|
export { AppLimitModel } from './appLimit';
|
|
91
91
|
export { OrgLimitModel } from './orgLimit';
|
|
92
|
+
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
92
93
|
export { AppStepModel } from './appStep';
|
|
93
94
|
export { AppAchievementModel } from './appAchievement';
|
|
94
95
|
export { AppLevelModel } from './appLevel';
|
|
@@ -101,25 +102,33 @@ export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
|
101
102
|
export { OrgInviteModel } from './orgInvite';
|
|
102
103
|
export { OrgClaimedInviteModel } from './orgClaimedInvite';
|
|
103
104
|
export { AuditLogModel } from './auditLog';
|
|
104
|
-
export {
|
|
105
|
+
export { AgentThreadModel } from './agentThread';
|
|
106
|
+
export { AgentMessageModel } from './agentMessage';
|
|
107
|
+
export { AgentTaskModel } from './agentTask';
|
|
108
|
+
export { RoleTypeModel } from './roleType';
|
|
105
109
|
export { IdentityProviderModel } from './identityProvider';
|
|
106
110
|
export { RefModel } from './ref';
|
|
107
111
|
export { StoreModel } from './store';
|
|
108
|
-
export {
|
|
112
|
+
export { AppPermissionDefaultModel } from './appPermissionDefault';
|
|
113
|
+
export { MembershipTypeModel } from './membershipType';
|
|
109
114
|
export { MigrateFileModel } from './migrateFile';
|
|
115
|
+
export { DevicesModuleModel } from './devicesModule';
|
|
116
|
+
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
110
117
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
111
118
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
112
|
-
export { DevicesModuleModel } from './devicesModule';
|
|
113
119
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
114
|
-
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
115
|
-
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
116
120
|
export { CommitModel } from './commit';
|
|
117
121
|
export { RateLimitsModuleModel } from './rateLimitsModule';
|
|
118
|
-
export {
|
|
122
|
+
export { AppMembershipDefaultModel } from './appMembershipDefault';
|
|
123
|
+
export { OrgMembershipDefaultModel } from './orgMembershipDefault';
|
|
124
|
+
export { AppLimitEventModel } from './appLimitEvent';
|
|
125
|
+
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
126
|
+
export { PlansModuleModel } from './plansModule';
|
|
119
127
|
export { RlsModuleModel } from './rlsModule';
|
|
120
128
|
export { SqlActionModel } from './sqlAction';
|
|
121
|
-
export {
|
|
122
|
-
export { UserModel } from './user';
|
|
129
|
+
export { BillingModuleModel } from './billingModule';
|
|
123
130
|
export { AstMigrationModel } from './astMigration';
|
|
131
|
+
export { UserModel } from './user';
|
|
132
|
+
export { OrgMembershipSettingModel } from './orgMembershipSetting';
|
|
124
133
|
export { AppMembershipModel } from './appMembership';
|
|
125
134
|
export { HierarchyModuleModel } from './hierarchyModule';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.IdentityProvidersModuleModel = exports.SessionSecretsModuleModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = 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.SpatialRelationModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.
|
|
3
|
+
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.IdentityProvidersModuleModel = exports.SessionSecretsModuleModel = exports.RelationProvisionModel = exports.SecureTableProvisionModel = 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.SpatialRelationModel = exports.FieldModel = exports.CheckConstraintModel = exports.TableModel = exports.SchemaModel = exports.DatabaseModel = exports.AppLevelRequirementModel = exports.ObjectModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.GetAllRecordModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
|
|
4
|
+
exports.AgentThreadModel = exports.AuditLogModel = exports.OrgClaimedInviteModel = exports.OrgInviteModel = exports.AppClaimedInviteModel = exports.AppInviteModel = exports.WebauthnCredentialModel = exports.CryptoAddressModel = exports.PhoneNumberModel = exports.EmailModel = exports.AppLevelModel = exports.AppAchievementModel = exports.AppStepModel = exports.OrgLimitAggregateModel = exports.OrgLimitModel = exports.AppLimitModel = exports.OrgPermissionDefaultModel = exports.OrgChartEdgeGrantModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgMemberProfileModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgMemberModel = exports.OrgMembershipModel = exports.AppGrantModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.DatabaseProvisionModuleModel = exports.NotificationsModuleModel = exports.WebauthnAuthModuleModel = exports.WebauthnCredentialsModuleModel = exports.EntityTypeProvisionModel = 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 = exports.InvitesModuleModel = exports.EncryptedSecretsModuleModel = void 0;
|
|
5
|
+
exports.HierarchyModuleModel = exports.AppMembershipModel = exports.OrgMembershipSettingModel = exports.UserModel = exports.AstMigrationModel = exports.BillingModuleModel = exports.SqlActionModel = exports.RlsModuleModel = exports.PlansModuleModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgMembershipDefaultModel = exports.AppMembershipDefaultModel = exports.RateLimitsModuleModel = exports.CommitModel = exports.UserConnectedAccountModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.NodeTypeRegistryModel = exports.DevicesModuleModel = exports.MigrateFileModel = exports.MembershipTypeModel = exports.AppPermissionDefaultModel = exports.StoreModel = exports.RefModel = exports.IdentityProviderModel = exports.RoleTypeModel = exports.AgentTaskModel = exports.AgentMessageModel = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* Models barrel export
|
|
8
8
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -14,12 +14,12 @@ var orgGetSubordinatesRecord_1 = require("./orgGetSubordinatesRecord");
|
|
|
14
14
|
Object.defineProperty(exports, "OrgGetSubordinatesRecordModel", { enumerable: true, get: function () { return orgGetSubordinatesRecord_1.OrgGetSubordinatesRecordModel; } });
|
|
15
15
|
var getAllRecord_1 = require("./getAllRecord");
|
|
16
16
|
Object.defineProperty(exports, "GetAllRecordModel", { enumerable: true, get: function () { return getAllRecord_1.GetAllRecordModel; } });
|
|
17
|
-
var object_1 = require("./object");
|
|
18
|
-
Object.defineProperty(exports, "ObjectModel", { enumerable: true, get: function () { return object_1.ObjectModel; } });
|
|
19
17
|
var appPermission_1 = require("./appPermission");
|
|
20
18
|
Object.defineProperty(exports, "AppPermissionModel", { enumerable: true, get: function () { return appPermission_1.AppPermissionModel; } });
|
|
21
19
|
var orgPermission_1 = require("./orgPermission");
|
|
22
20
|
Object.defineProperty(exports, "OrgPermissionModel", { enumerable: true, get: function () { return orgPermission_1.OrgPermissionModel; } });
|
|
21
|
+
var object_1 = require("./object");
|
|
22
|
+
Object.defineProperty(exports, "ObjectModel", { enumerable: true, get: function () { return object_1.ObjectModel; } });
|
|
23
23
|
var appLevelRequirement_1 = require("./appLevelRequirement");
|
|
24
24
|
Object.defineProperty(exports, "AppLevelRequirementModel", { enumerable: true, get: function () { return appLevelRequirement_1.AppLevelRequirementModel; } });
|
|
25
25
|
var database_1 = require("./database");
|
|
@@ -180,6 +180,8 @@ var appLimit_1 = require("./appLimit");
|
|
|
180
180
|
Object.defineProperty(exports, "AppLimitModel", { enumerable: true, get: function () { return appLimit_1.AppLimitModel; } });
|
|
181
181
|
var orgLimit_1 = require("./orgLimit");
|
|
182
182
|
Object.defineProperty(exports, "OrgLimitModel", { enumerable: true, get: function () { return orgLimit_1.OrgLimitModel; } });
|
|
183
|
+
var orgLimitAggregate_1 = require("./orgLimitAggregate");
|
|
184
|
+
Object.defineProperty(exports, "OrgLimitAggregateModel", { enumerable: true, get: function () { return orgLimitAggregate_1.OrgLimitAggregateModel; } });
|
|
183
185
|
var appStep_1 = require("./appStep");
|
|
184
186
|
Object.defineProperty(exports, "AppStepModel", { enumerable: true, get: function () { return appStep_1.AppStepModel; } });
|
|
185
187
|
var appAchievement_1 = require("./appAchievement");
|
|
@@ -204,46 +206,62 @@ var orgClaimedInvite_1 = require("./orgClaimedInvite");
|
|
|
204
206
|
Object.defineProperty(exports, "OrgClaimedInviteModel", { enumerable: true, get: function () { return orgClaimedInvite_1.OrgClaimedInviteModel; } });
|
|
205
207
|
var auditLog_1 = require("./auditLog");
|
|
206
208
|
Object.defineProperty(exports, "AuditLogModel", { enumerable: true, get: function () { return auditLog_1.AuditLogModel; } });
|
|
207
|
-
var
|
|
208
|
-
Object.defineProperty(exports, "
|
|
209
|
+
var agentThread_1 = require("./agentThread");
|
|
210
|
+
Object.defineProperty(exports, "AgentThreadModel", { enumerable: true, get: function () { return agentThread_1.AgentThreadModel; } });
|
|
211
|
+
var agentMessage_1 = require("./agentMessage");
|
|
212
|
+
Object.defineProperty(exports, "AgentMessageModel", { enumerable: true, get: function () { return agentMessage_1.AgentMessageModel; } });
|
|
213
|
+
var agentTask_1 = require("./agentTask");
|
|
214
|
+
Object.defineProperty(exports, "AgentTaskModel", { enumerable: true, get: function () { return agentTask_1.AgentTaskModel; } });
|
|
215
|
+
var roleType_1 = require("./roleType");
|
|
216
|
+
Object.defineProperty(exports, "RoleTypeModel", { enumerable: true, get: function () { return roleType_1.RoleTypeModel; } });
|
|
209
217
|
var identityProvider_1 = require("./identityProvider");
|
|
210
218
|
Object.defineProperty(exports, "IdentityProviderModel", { enumerable: true, get: function () { return identityProvider_1.IdentityProviderModel; } });
|
|
211
219
|
var ref_1 = require("./ref");
|
|
212
220
|
Object.defineProperty(exports, "RefModel", { enumerable: true, get: function () { return ref_1.RefModel; } });
|
|
213
221
|
var store_1 = require("./store");
|
|
214
222
|
Object.defineProperty(exports, "StoreModel", { enumerable: true, get: function () { return store_1.StoreModel; } });
|
|
215
|
-
var
|
|
216
|
-
Object.defineProperty(exports, "
|
|
223
|
+
var appPermissionDefault_1 = require("./appPermissionDefault");
|
|
224
|
+
Object.defineProperty(exports, "AppPermissionDefaultModel", { enumerable: true, get: function () { return appPermissionDefault_1.AppPermissionDefaultModel; } });
|
|
225
|
+
var membershipType_1 = require("./membershipType");
|
|
226
|
+
Object.defineProperty(exports, "MembershipTypeModel", { enumerable: true, get: function () { return membershipType_1.MembershipTypeModel; } });
|
|
217
227
|
var migrateFile_1 = require("./migrateFile");
|
|
218
228
|
Object.defineProperty(exports, "MigrateFileModel", { enumerable: true, get: function () { return migrateFile_1.MigrateFileModel; } });
|
|
229
|
+
var devicesModule_1 = require("./devicesModule");
|
|
230
|
+
Object.defineProperty(exports, "DevicesModuleModel", { enumerable: true, get: function () { return devicesModule_1.DevicesModuleModel; } });
|
|
231
|
+
var nodeTypeRegistry_1 = require("./nodeTypeRegistry");
|
|
232
|
+
Object.defineProperty(exports, "NodeTypeRegistryModel", { enumerable: true, get: function () { return nodeTypeRegistry_1.NodeTypeRegistryModel; } });
|
|
219
233
|
var appLimitDefault_1 = require("./appLimitDefault");
|
|
220
234
|
Object.defineProperty(exports, "AppLimitDefaultModel", { enumerable: true, get: function () { return appLimitDefault_1.AppLimitDefaultModel; } });
|
|
221
235
|
var orgLimitDefault_1 = require("./orgLimitDefault");
|
|
222
236
|
Object.defineProperty(exports, "OrgLimitDefaultModel", { enumerable: true, get: function () { return orgLimitDefault_1.OrgLimitDefaultModel; } });
|
|
223
|
-
var devicesModule_1 = require("./devicesModule");
|
|
224
|
-
Object.defineProperty(exports, "DevicesModuleModel", { enumerable: true, get: function () { return devicesModule_1.DevicesModuleModel; } });
|
|
225
237
|
var userConnectedAccount_1 = require("./userConnectedAccount");
|
|
226
238
|
Object.defineProperty(exports, "UserConnectedAccountModel", { enumerable: true, get: function () { return userConnectedAccount_1.UserConnectedAccountModel; } });
|
|
227
|
-
var appMembershipDefault_1 = require("./appMembershipDefault");
|
|
228
|
-
Object.defineProperty(exports, "AppMembershipDefaultModel", { enumerable: true, get: function () { return appMembershipDefault_1.AppMembershipDefaultModel; } });
|
|
229
|
-
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
230
|
-
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
231
239
|
var commit_1 = require("./commit");
|
|
232
240
|
Object.defineProperty(exports, "CommitModel", { enumerable: true, get: function () { return commit_1.CommitModel; } });
|
|
233
241
|
var rateLimitsModule_1 = require("./rateLimitsModule");
|
|
234
242
|
Object.defineProperty(exports, "RateLimitsModuleModel", { enumerable: true, get: function () { return rateLimitsModule_1.RateLimitsModuleModel; } });
|
|
235
|
-
var
|
|
236
|
-
Object.defineProperty(exports, "
|
|
243
|
+
var appMembershipDefault_1 = require("./appMembershipDefault");
|
|
244
|
+
Object.defineProperty(exports, "AppMembershipDefaultModel", { enumerable: true, get: function () { return appMembershipDefault_1.AppMembershipDefaultModel; } });
|
|
245
|
+
var orgMembershipDefault_1 = require("./orgMembershipDefault");
|
|
246
|
+
Object.defineProperty(exports, "OrgMembershipDefaultModel", { enumerable: true, get: function () { return orgMembershipDefault_1.OrgMembershipDefaultModel; } });
|
|
247
|
+
var appLimitEvent_1 = require("./appLimitEvent");
|
|
248
|
+
Object.defineProperty(exports, "AppLimitEventModel", { enumerable: true, get: function () { return appLimitEvent_1.AppLimitEventModel; } });
|
|
249
|
+
var orgLimitEvent_1 = require("./orgLimitEvent");
|
|
250
|
+
Object.defineProperty(exports, "OrgLimitEventModel", { enumerable: true, get: function () { return orgLimitEvent_1.OrgLimitEventModel; } });
|
|
251
|
+
var plansModule_1 = require("./plansModule");
|
|
252
|
+
Object.defineProperty(exports, "PlansModuleModel", { enumerable: true, get: function () { return plansModule_1.PlansModuleModel; } });
|
|
237
253
|
var rlsModule_1 = require("./rlsModule");
|
|
238
254
|
Object.defineProperty(exports, "RlsModuleModel", { enumerable: true, get: function () { return rlsModule_1.RlsModuleModel; } });
|
|
239
255
|
var sqlAction_1 = require("./sqlAction");
|
|
240
256
|
Object.defineProperty(exports, "SqlActionModel", { enumerable: true, get: function () { return sqlAction_1.SqlActionModel; } });
|
|
241
|
-
var
|
|
242
|
-
Object.defineProperty(exports, "
|
|
243
|
-
var user_1 = require("./user");
|
|
244
|
-
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
257
|
+
var billingModule_1 = require("./billingModule");
|
|
258
|
+
Object.defineProperty(exports, "BillingModuleModel", { enumerable: true, get: function () { return billingModule_1.BillingModuleModel; } });
|
|
245
259
|
var astMigration_1 = require("./astMigration");
|
|
246
260
|
Object.defineProperty(exports, "AstMigrationModel", { enumerable: true, get: function () { return astMigration_1.AstMigrationModel; } });
|
|
261
|
+
var user_1 = require("./user");
|
|
262
|
+
Object.defineProperty(exports, "UserModel", { enumerable: true, get: function () { return user_1.UserModel; } });
|
|
263
|
+
var orgMembershipSetting_1 = require("./orgMembershipSetting");
|
|
264
|
+
Object.defineProperty(exports, "OrgMembershipSettingModel", { enumerable: true, get: function () { return orgMembershipSetting_1.OrgMembershipSettingModel; } });
|
|
247
265
|
var appMembership_1 = require("./appMembership");
|
|
248
266
|
Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
|
|
249
267
|
var hierarchyModule_1 = require("./hierarchyModule");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NodeTypeRegistry 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 { NodeTypeRegistryWithRelations, NodeTypeRegistrySelect, NodeTypeRegistryFilter, NodeTypeRegistryOrderBy, CreateNodeTypeRegistryInput, NodeTypeRegistryPatch } from '../input-types';
|
|
10
|
+
export declare class NodeTypeRegistryModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends NodeTypeRegistrySelect>(args: FindManyArgs<S, NodeTypeRegistryFilter, NodeTypeRegistryOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
16
|
+
nodeTypeRegistries: ConnectionResult<InferSelectResult<NodeTypeRegistryWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends NodeTypeRegistrySelect>(args: FindFirstArgs<S, NodeTypeRegistryFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
21
|
+
nodeTypeRegistries: {
|
|
22
|
+
nodes: InferSelectResult<NodeTypeRegistryWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends NodeTypeRegistrySelect>(args: {
|
|
26
|
+
name: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
29
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends NodeTypeRegistrySelect>(args: CreateArgs<S, CreateNodeTypeRegistryInput['nodeTypeRegistry']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
34
|
+
createNodeTypeRegistry: {
|
|
35
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends NodeTypeRegistrySelect>(args: UpdateArgs<S, {
|
|
39
|
+
name: string;
|
|
40
|
+
}, NodeTypeRegistryPatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
43
|
+
updateNodeTypeRegistry: {
|
|
44
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends NodeTypeRegistrySelect>(args: DeleteArgs<{
|
|
48
|
+
name: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, NodeTypeRegistrySelect>): QueryBuilder<{
|
|
52
|
+
deleteNodeTypeRegistry: {
|
|
53
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeTypeRegistryModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class NodeTypeRegistryModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('NodeTypeRegistry', 'nodeTypeRegistries', 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
|
+
}, 'NodeTypeRegistryFilter', 'NodeTypeRegistryOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'NodeTypeRegistry',
|
|
25
|
+
fieldName: 'nodeTypeRegistries',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('NodeTypeRegistry', 'nodeTypeRegistries', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'NodeTypeRegistryFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'NodeTypeRegistry',
|
|
38
|
+
fieldName: 'nodeTypeRegistries',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('NodeTypeRegistry', 'nodeTypeRegistries', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
name: {
|
|
47
|
+
equalTo: args.name,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'NodeTypeRegistryFilter', 'NodeTypeRegistryOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'NodeTypeRegistry',
|
|
56
|
+
fieldName: 'nodeTypeRegistry',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('NodeTypeRegistry', 'createNodeTypeRegistry', 'nodeTypeRegistry', args.select, args.data, 'CreateNodeTypeRegistryInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'NodeTypeRegistry',
|
|
70
|
+
fieldName: 'createNodeTypeRegistry',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('NodeTypeRegistry', 'updateNodeTypeRegistry', 'nodeTypeRegistry', args.select, args.where.name, args.data, 'UpdateNodeTypeRegistryInput', 'name', 'nodeTypeRegistryPatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'NodeTypeRegistry',
|
|
81
|
+
fieldName: 'updateNodeTypeRegistry',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('NodeTypeRegistry', 'deleteNodeTypeRegistry', 'nodeTypeRegistry', {
|
|
88
|
+
name: args.where.name,
|
|
89
|
+
}, 'DeleteNodeTypeRegistryInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'NodeTypeRegistry',
|
|
94
|
+
fieldName: 'deleteNodeTypeRegistry',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.NodeTypeRegistryModel = NodeTypeRegistryModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgLimitAggregate 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 { OrgLimitAggregateWithRelations, OrgLimitAggregateSelect, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy, CreateOrgLimitAggregateInput, OrgLimitAggregatePatch } from '../input-types';
|
|
10
|
+
export declare class OrgLimitAggregateModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgLimitAggregateSelect>(args: FindManyArgs<S, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
16
|
+
orgLimitAggregates: ConnectionResult<InferSelectResult<OrgLimitAggregateWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgLimitAggregateSelect>(args: FindFirstArgs<S, OrgLimitAggregateFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
21
|
+
orgLimitAggregates: {
|
|
22
|
+
nodes: InferSelectResult<OrgLimitAggregateWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends OrgLimitAggregateSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
29
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends OrgLimitAggregateSelect>(args: CreateArgs<S, CreateOrgLimitAggregateInput['orgLimitAggregate']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
34
|
+
createOrgLimitAggregate: {
|
|
35
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends OrgLimitAggregateSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, OrgLimitAggregatePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
43
|
+
updateOrgLimitAggregate: {
|
|
44
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends OrgLimitAggregateSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
|
|
52
|
+
deleteOrgLimitAggregate: {
|
|
53
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrgLimitAggregateModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class OrgLimitAggregateModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitAggregate', 'orgLimitAggregates', 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
|
+
}, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'OrgLimitAggregate',
|
|
25
|
+
fieldName: 'orgLimitAggregates',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
}, 'OrgLimitAggregateFilter', input_types_1.connectionFieldsMap);
|
|
34
|
+
return new query_builder_1.QueryBuilder({
|
|
35
|
+
client: this.client,
|
|
36
|
+
operation: 'query',
|
|
37
|
+
operationName: 'OrgLimitAggregate',
|
|
38
|
+
fieldName: 'orgLimitAggregates',
|
|
39
|
+
document,
|
|
40
|
+
variables,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
findOne(args) {
|
|
44
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
|
|
45
|
+
where: {
|
|
46
|
+
id: {
|
|
47
|
+
equalTo: args.id,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
first: 1,
|
|
51
|
+
}, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', input_types_1.connectionFieldsMap);
|
|
52
|
+
return new query_builder_1.QueryBuilder({
|
|
53
|
+
client: this.client,
|
|
54
|
+
operation: 'query',
|
|
55
|
+
operationName: 'OrgLimitAggregate',
|
|
56
|
+
fieldName: 'orgLimitAggregate',
|
|
57
|
+
document,
|
|
58
|
+
variables,
|
|
59
|
+
transform: (data) => ({
|
|
60
|
+
orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null,
|
|
61
|
+
}),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
create(args) {
|
|
65
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgLimitAggregate', 'createOrgLimitAggregate', 'orgLimitAggregate', args.select, args.data, 'CreateOrgLimitAggregateInput', input_types_1.connectionFieldsMap);
|
|
66
|
+
return new query_builder_1.QueryBuilder({
|
|
67
|
+
client: this.client,
|
|
68
|
+
operation: 'mutation',
|
|
69
|
+
operationName: 'OrgLimitAggregate',
|
|
70
|
+
fieldName: 'createOrgLimitAggregate',
|
|
71
|
+
document,
|
|
72
|
+
variables,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
update(args) {
|
|
76
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgLimitAggregate', 'updateOrgLimitAggregate', 'orgLimitAggregate', args.select, args.where.id, args.data, 'UpdateOrgLimitAggregateInput', 'id', 'orgLimitAggregatePatch', input_types_1.connectionFieldsMap);
|
|
77
|
+
return new query_builder_1.QueryBuilder({
|
|
78
|
+
client: this.client,
|
|
79
|
+
operation: 'mutation',
|
|
80
|
+
operationName: 'OrgLimitAggregate',
|
|
81
|
+
fieldName: 'updateOrgLimitAggregate',
|
|
82
|
+
document,
|
|
83
|
+
variables,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
delete(args) {
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgLimitAggregate', 'deleteOrgLimitAggregate', 'orgLimitAggregate', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteOrgLimitAggregateInput', args.select, input_types_1.connectionFieldsMap);
|
|
90
|
+
return new query_builder_1.QueryBuilder({
|
|
91
|
+
client: this.client,
|
|
92
|
+
operation: 'mutation',
|
|
93
|
+
operationName: 'OrgLimitAggregate',
|
|
94
|
+
fieldName: 'deleteOrgLimitAggregate',
|
|
95
|
+
document,
|
|
96
|
+
variables,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.OrgLimitAggregateModel = OrgLimitAggregateModel;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgLimitEvent 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, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { OrgLimitEventWithRelations, OrgLimitEventSelect, OrgLimitEventFilter, OrgLimitEventOrderBy, CreateOrgLimitEventInput } from '../input-types';
|
|
10
|
+
export declare class OrgLimitEventModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgLimitEventSelect>(args: FindManyArgs<S, OrgLimitEventFilter, OrgLimitEventOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
16
|
+
orgLimitEvents: ConnectionResult<InferSelectResult<OrgLimitEventWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgLimitEventSelect>(args: FindFirstArgs<S, OrgLimitEventFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
21
|
+
orgLimitEvents: {
|
|
22
|
+
nodes: InferSelectResult<OrgLimitEventWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
create<S extends OrgLimitEventSelect>(args: CreateArgs<S, CreateOrgLimitEventInput['orgLimitEvent']> & {
|
|
26
|
+
select: S;
|
|
27
|
+
} & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
|
|
28
|
+
createOrgLimitEvent: {
|
|
29
|
+
orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|