@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,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class BillingModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('BillingModule', 'billingModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'BillingModuleFilter', 'BillingModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'BillingModule',
|
|
22
|
+
fieldName: 'billingModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('BillingModule', 'billingModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'BillingModuleFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'BillingModule',
|
|
35
|
+
fieldName: 'billingModules',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('BillingModule', 'billingModules', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'BillingModuleFilter', 'BillingModuleOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'BillingModule',
|
|
53
|
+
fieldName: 'billingModule',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
billingModule: data.billingModules?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('BillingModule', 'createBillingModule', 'billingModule', args.select, args.data, 'CreateBillingModuleInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'BillingModule',
|
|
67
|
+
fieldName: 'createBillingModule',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('BillingModule', 'updateBillingModule', 'billingModule', args.select, args.where.id, args.data, 'UpdateBillingModuleInput', 'id', 'billingModulePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'BillingModule',
|
|
78
|
+
fieldName: 'updateBillingModule',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('BillingModule', 'deleteBillingModule', 'billingModule', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteBillingModuleInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'BillingModule',
|
|
91
|
+
fieldName: 'deleteBillingModule',
|
|
92
|
+
document,
|
|
93
|
+
variables,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class NodeTypeRegistryModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('NodeTypeRegistry', 'nodeTypeRegistries', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'NodeTypeRegistryFilter', 'NodeTypeRegistryOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'NodeTypeRegistry',
|
|
22
|
+
fieldName: 'nodeTypeRegistries',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('NodeTypeRegistry', 'nodeTypeRegistries', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'NodeTypeRegistryFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'NodeTypeRegistry',
|
|
35
|
+
fieldName: 'nodeTypeRegistries',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('NodeTypeRegistry', 'nodeTypeRegistries', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
name: {
|
|
44
|
+
equalTo: args.name,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'NodeTypeRegistryFilter', 'NodeTypeRegistryOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'NodeTypeRegistry',
|
|
53
|
+
fieldName: 'nodeTypeRegistry',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('NodeTypeRegistry', 'createNodeTypeRegistry', 'nodeTypeRegistry', args.select, args.data, 'CreateNodeTypeRegistryInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'NodeTypeRegistry',
|
|
67
|
+
fieldName: 'createNodeTypeRegistry',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('NodeTypeRegistry', 'updateNodeTypeRegistry', 'nodeTypeRegistry', args.select, args.where.name, args.data, 'UpdateNodeTypeRegistryInput', 'name', 'nodeTypeRegistryPatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'NodeTypeRegistry',
|
|
78
|
+
fieldName: 'updateNodeTypeRegistry',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('NodeTypeRegistry', 'deleteNodeTypeRegistry', 'nodeTypeRegistry', {
|
|
85
|
+
name: args.where.name,
|
|
86
|
+
}, 'DeleteNodeTypeRegistryInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'NodeTypeRegistry',
|
|
91
|
+
fieldName: 'deleteNodeTypeRegistry',
|
|
92
|
+
document,
|
|
93
|
+
variables,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -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,96 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgLimitAggregateModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgLimitAggregate',
|
|
22
|
+
fieldName: 'orgLimitAggregates',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'OrgLimitAggregateFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'OrgLimitAggregate',
|
|
35
|
+
fieldName: 'orgLimitAggregates',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
findOne(args) {
|
|
41
|
+
const { document, variables } = buildFindManyDocument('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
|
|
42
|
+
where: {
|
|
43
|
+
id: {
|
|
44
|
+
equalTo: args.id,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
first: 1,
|
|
48
|
+
}, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', connectionFieldsMap);
|
|
49
|
+
return new QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'OrgLimitAggregate',
|
|
53
|
+
fieldName: 'orgLimitAggregate',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
transform: (data) => ({
|
|
57
|
+
orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null,
|
|
58
|
+
}),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
create(args) {
|
|
62
|
+
const { document, variables } = buildCreateDocument('OrgLimitAggregate', 'createOrgLimitAggregate', 'orgLimitAggregate', args.select, args.data, 'CreateOrgLimitAggregateInput', connectionFieldsMap);
|
|
63
|
+
return new QueryBuilder({
|
|
64
|
+
client: this.client,
|
|
65
|
+
operation: 'mutation',
|
|
66
|
+
operationName: 'OrgLimitAggregate',
|
|
67
|
+
fieldName: 'createOrgLimitAggregate',
|
|
68
|
+
document,
|
|
69
|
+
variables,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
update(args) {
|
|
73
|
+
const { document, variables } = buildUpdateByPkDocument('OrgLimitAggregate', 'updateOrgLimitAggregate', 'orgLimitAggregate', args.select, args.where.id, args.data, 'UpdateOrgLimitAggregateInput', 'id', 'orgLimitAggregatePatch', connectionFieldsMap);
|
|
74
|
+
return new QueryBuilder({
|
|
75
|
+
client: this.client,
|
|
76
|
+
operation: 'mutation',
|
|
77
|
+
operationName: 'OrgLimitAggregate',
|
|
78
|
+
fieldName: 'updateOrgLimitAggregate',
|
|
79
|
+
document,
|
|
80
|
+
variables,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
delete(args) {
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('OrgLimitAggregate', 'deleteOrgLimitAggregate', 'orgLimitAggregate', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteOrgLimitAggregateInput', args.select, connectionFieldsMap);
|
|
87
|
+
return new QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'OrgLimitAggregate',
|
|
91
|
+
fieldName: 'deleteOrgLimitAggregate',
|
|
92
|
+
document,
|
|
93
|
+
variables,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class OrgLimitEventModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgLimitEvent', 'orgLimitEvents', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'OrgLimitEventFilter', 'OrgLimitEventOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'OrgLimitEvent',
|
|
22
|
+
fieldName: 'orgLimitEvents',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgLimitEvent', 'orgLimitEvents', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
}, 'OrgLimitEventFilter', connectionFieldsMap);
|
|
31
|
+
return new QueryBuilder({
|
|
32
|
+
client: this.client,
|
|
33
|
+
operation: 'query',
|
|
34
|
+
operationName: 'OrgLimitEvent',
|
|
35
|
+
fieldName: 'orgLimitEvents',
|
|
36
|
+
document,
|
|
37
|
+
variables,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
create(args) {
|
|
41
|
+
const { document, variables } = buildCreateDocument('OrgLimitEvent', 'createOrgLimitEvent', 'orgLimitEvent', args.select, args.data, 'CreateOrgLimitEventInput', connectionFieldsMap);
|
|
42
|
+
return new QueryBuilder({
|
|
43
|
+
client: this.client,
|
|
44
|
+
operation: 'mutation',
|
|
45
|
+
operationName: 'OrgLimitEvent',
|
|
46
|
+
fieldName: 'createOrgLimitEvent',
|
|
47
|
+
document,
|
|
48
|
+
variables,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PlansModule 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 { PlansModuleWithRelations, PlansModuleSelect, PlansModuleFilter, PlansModuleOrderBy, CreatePlansModuleInput, PlansModulePatch } from '../input-types';
|
|
10
|
+
export declare class PlansModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PlansModuleSelect>(args: FindManyArgs<S, PlansModuleFilter, PlansModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
16
|
+
plansModules: ConnectionResult<InferSelectResult<PlansModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PlansModuleSelect>(args: FindFirstArgs<S, PlansModuleFilter> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
21
|
+
plansModules: {
|
|
22
|
+
nodes: InferSelectResult<PlansModuleWithRelations, S>[];
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
findOne<S extends PlansModuleSelect>(args: {
|
|
26
|
+
id: string;
|
|
27
|
+
select: S;
|
|
28
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
29
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S> | null;
|
|
30
|
+
}>;
|
|
31
|
+
create<S extends PlansModuleSelect>(args: CreateArgs<S, CreatePlansModuleInput['plansModule']> & {
|
|
32
|
+
select: S;
|
|
33
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
34
|
+
createPlansModule: {
|
|
35
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
update<S extends PlansModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
+
id: string;
|
|
40
|
+
}, PlansModulePatch> & {
|
|
41
|
+
select: S;
|
|
42
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
43
|
+
updatePlansModule: {
|
|
44
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S>;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
delete<S extends PlansModuleSelect>(args: DeleteArgs<{
|
|
48
|
+
id: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, PlansModuleSelect>): QueryBuilder<{
|
|
52
|
+
deletePlansModule: {
|
|
53
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|