@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.
Files changed (213) hide show
  1. package/admin/cli/commands/app-invite.js +22 -0
  2. package/admin/cli/commands/app-limit-default.js +22 -0
  3. package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-event.js +212 -0
  5. package/admin/cli/commands/app-limit.js +66 -0
  6. package/admin/cli/commands/app-membership.js +0 -22
  7. package/admin/cli/commands/org-invite.js +22 -0
  8. package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
  9. package/admin/cli/commands/org-limit-aggregate.js +362 -0
  10. package/admin/cli/commands/org-limit-default.js +22 -0
  11. package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
  12. package/admin/cli/commands/org-limit-event.js +212 -0
  13. package/admin/cli/commands/org-limit.js +66 -0
  14. package/admin/cli/commands/org-membership-setting.js +44 -0
  15. package/admin/cli/commands.js +25 -21
  16. package/admin/cli/executor.d.ts +12 -14
  17. package/admin/orm/index.d.ts +24 -23
  18. package/admin/orm/index.js +24 -18
  19. package/admin/orm/input-types.d.ts +1297 -839
  20. package/admin/orm/models/appLimitEvent.d.ts +32 -0
  21. package/admin/orm/models/appLimitEvent.js +55 -0
  22. package/admin/orm/models/index.d.ts +12 -9
  23. package/admin/orm/models/index.js +25 -19
  24. package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  25. package/admin/orm/models/orgLimitAggregate.js +100 -0
  26. package/admin/orm/models/orgLimitEvent.d.ts +32 -0
  27. package/admin/orm/models/orgLimitEvent.js +55 -0
  28. package/admin/orm/mutation/index.d.ts +1 -15
  29. package/admin/orm/mutation/index.js +0 -12
  30. package/auth/cli/commands.js +1 -3
  31. package/auth/cli/executor.d.ts +0 -5
  32. package/auth/orm/index.d.ts +0 -5
  33. package/auth/orm/input-types.d.ts +0 -20
  34. package/auth/orm/mutation/index.d.ts +1 -15
  35. package/auth/orm/mutation/index.js +0 -12
  36. package/esm/admin/cli/commands/app-invite.js +22 -0
  37. package/esm/admin/cli/commands/app-limit-default.js +22 -0
  38. package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
  39. package/esm/admin/cli/commands/app-limit-event.js +210 -0
  40. package/esm/admin/cli/commands/app-limit.js +66 -0
  41. package/esm/admin/cli/commands/app-membership.js +0 -22
  42. package/esm/admin/cli/commands/org-invite.js +22 -0
  43. package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
  44. package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
  45. package/esm/admin/cli/commands/org-limit-default.js +22 -0
  46. package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
  47. package/esm/admin/cli/commands/org-limit-event.js +210 -0
  48. package/esm/admin/cli/commands/org-limit.js +66 -0
  49. package/esm/admin/cli/commands/org-membership-setting.js +44 -0
  50. package/esm/admin/cli/commands.js +25 -21
  51. package/esm/admin/cli/executor.d.ts +12 -14
  52. package/esm/admin/orm/index.d.ts +24 -23
  53. package/esm/admin/orm/index.js +24 -18
  54. package/esm/admin/orm/input-types.d.ts +1297 -839
  55. package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
  56. package/esm/admin/orm/models/appLimitEvent.js +51 -0
  57. package/esm/admin/orm/models/index.d.ts +12 -9
  58. package/esm/admin/orm/models/index.js +12 -9
  59. package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  60. package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
  61. package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
  62. package/esm/admin/orm/models/orgLimitEvent.js +51 -0
  63. package/esm/admin/orm/mutation/index.d.ts +1 -15
  64. package/esm/admin/orm/mutation/index.js +0 -12
  65. package/esm/auth/cli/commands.js +1 -3
  66. package/esm/auth/cli/executor.d.ts +0 -5
  67. package/esm/auth/orm/index.d.ts +0 -5
  68. package/esm/auth/orm/input-types.d.ts +0 -20
  69. package/esm/auth/orm/mutation/index.d.ts +1 -15
  70. package/esm/auth/orm/mutation/index.js +0 -12
  71. package/esm/objects/cli/commands.js +1 -3
  72. package/esm/objects/cli/executor.d.ts +0 -5
  73. package/esm/objects/orm/index.d.ts +0 -5
  74. package/esm/objects/orm/input-types.d.ts +0 -20
  75. package/esm/objects/orm/mutation/index.d.ts +1 -15
  76. package/esm/objects/orm/mutation/index.js +0 -12
  77. package/esm/public/cli/commands/agent-message.d.ts +8 -0
  78. package/esm/public/cli/commands/agent-message.js +324 -0
  79. package/esm/public/cli/commands/agent-task.d.ts +8 -0
  80. package/esm/public/cli/commands/agent-task.js +368 -0
  81. package/esm/public/cli/commands/agent-thread.d.ts +8 -0
  82. package/esm/public/cli/commands/agent-thread.js +372 -0
  83. package/esm/public/cli/commands/app-invite.js +22 -0
  84. package/esm/public/cli/commands/app-limit-default.js +22 -0
  85. package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
  86. package/esm/public/cli/commands/app-limit-event.js +210 -0
  87. package/esm/public/cli/commands/app-limit.js +66 -0
  88. package/esm/public/cli/commands/app-membership.js +0 -22
  89. package/esm/public/cli/commands/billing-module.d.ts +8 -0
  90. package/esm/public/cli/commands/billing-module.js +492 -0
  91. package/esm/public/cli/commands/limits-module.js +22 -0
  92. package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
  93. package/esm/public/cli/commands/node-type-registry.js +343 -0
  94. package/esm/public/cli/commands/org-invite.js +22 -0
  95. package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  96. package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
  97. package/esm/public/cli/commands/org-limit-default.js +22 -0
  98. package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
  99. package/esm/public/cli/commands/org-limit-event.js +210 -0
  100. package/esm/public/cli/commands/org-limit.js +66 -0
  101. package/esm/public/cli/commands/org-membership-setting.js +44 -0
  102. package/esm/public/cli/commands/plans-module.d.ts +8 -0
  103. package/esm/public/cli/commands/plans-module.js +426 -0
  104. package/esm/public/cli/commands/profiles-module.js +44 -0
  105. package/esm/public/cli/commands/storage-module.js +22 -44
  106. package/esm/public/cli/commands.js +45 -29
  107. package/esm/public/cli/executor.d.ts +38 -34
  108. package/esm/public/orm/index.d.ts +56 -43
  109. package/esm/public/orm/index.js +36 -18
  110. package/esm/public/orm/input-types.d.ts +2983 -1112
  111. package/esm/public/orm/input-types.js +9 -0
  112. package/esm/public/orm/models/agentMessage.d.ts +56 -0
  113. package/esm/public/orm/models/agentMessage.js +96 -0
  114. package/esm/public/orm/models/agentTask.d.ts +56 -0
  115. package/esm/public/orm/models/agentTask.js +96 -0
  116. package/esm/public/orm/models/agentThread.d.ts +56 -0
  117. package/esm/public/orm/models/agentThread.js +96 -0
  118. package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
  119. package/esm/public/orm/models/appLimitEvent.js +51 -0
  120. package/esm/public/orm/models/billingModule.d.ts +56 -0
  121. package/esm/public/orm/models/billingModule.js +96 -0
  122. package/esm/public/orm/models/index.d.ts +18 -9
  123. package/esm/public/orm/models/index.js +18 -9
  124. package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  125. package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
  126. package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
  127. package/esm/public/orm/models/orgLimitAggregate.js +96 -0
  128. package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
  129. package/esm/public/orm/models/orgLimitEvent.js +51 -0
  130. package/esm/public/orm/models/plansModule.d.ts +56 -0
  131. package/esm/public/orm/models/plansModule.js +96 -0
  132. package/esm/public/orm/mutation/index.d.ts +17 -31
  133. package/esm/public/orm/mutation/index.js +24 -36
  134. package/esm/public/orm/query/index.d.ts +28 -28
  135. package/esm/public/orm/query/index.js +48 -48
  136. package/objects/cli/commands.js +1 -3
  137. package/objects/cli/executor.d.ts +0 -5
  138. package/objects/orm/index.d.ts +0 -5
  139. package/objects/orm/input-types.d.ts +0 -20
  140. package/objects/orm/mutation/index.d.ts +1 -15
  141. package/objects/orm/mutation/index.js +0 -12
  142. package/package.json +4 -4
  143. package/public/cli/commands/agent-message.d.ts +8 -0
  144. package/public/cli/commands/agent-message.js +326 -0
  145. package/public/cli/commands/agent-task.d.ts +8 -0
  146. package/public/cli/commands/agent-task.js +370 -0
  147. package/public/cli/commands/agent-thread.d.ts +8 -0
  148. package/public/cli/commands/agent-thread.js +374 -0
  149. package/public/cli/commands/app-invite.js +22 -0
  150. package/public/cli/commands/app-limit-default.js +22 -0
  151. package/public/cli/commands/app-limit-event.d.ts +8 -0
  152. package/public/cli/commands/app-limit-event.js +212 -0
  153. package/public/cli/commands/app-limit.js +66 -0
  154. package/public/cli/commands/app-membership.js +0 -22
  155. package/public/cli/commands/billing-module.d.ts +8 -0
  156. package/public/cli/commands/billing-module.js +494 -0
  157. package/public/cli/commands/limits-module.js +22 -0
  158. package/public/cli/commands/node-type-registry.d.ts +8 -0
  159. package/public/cli/commands/node-type-registry.js +345 -0
  160. package/public/cli/commands/org-invite.js +22 -0
  161. package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  162. package/public/cli/commands/org-limit-aggregate.js +362 -0
  163. package/public/cli/commands/org-limit-default.js +22 -0
  164. package/public/cli/commands/org-limit-event.d.ts +8 -0
  165. package/public/cli/commands/org-limit-event.js +212 -0
  166. package/public/cli/commands/org-limit.js +66 -0
  167. package/public/cli/commands/org-membership-setting.js +44 -0
  168. package/public/cli/commands/plans-module.d.ts +8 -0
  169. package/public/cli/commands/plans-module.js +428 -0
  170. package/public/cli/commands/profiles-module.js +44 -0
  171. package/public/cli/commands/storage-module.js +22 -44
  172. package/public/cli/commands.js +45 -29
  173. package/public/cli/executor.d.ts +38 -34
  174. package/public/orm/index.d.ts +56 -43
  175. package/public/orm/index.js +36 -18
  176. package/public/orm/input-types.d.ts +2983 -1112
  177. package/public/orm/input-types.js +9 -0
  178. package/public/orm/models/agentMessage.d.ts +56 -0
  179. package/public/orm/models/agentMessage.js +100 -0
  180. package/public/orm/models/agentTask.d.ts +56 -0
  181. package/public/orm/models/agentTask.js +100 -0
  182. package/public/orm/models/agentThread.d.ts +56 -0
  183. package/public/orm/models/agentThread.js +100 -0
  184. package/public/orm/models/appLimitEvent.d.ts +32 -0
  185. package/public/orm/models/appLimitEvent.js +55 -0
  186. package/public/orm/models/billingModule.d.ts +56 -0
  187. package/public/orm/models/billingModule.js +100 -0
  188. package/public/orm/models/index.d.ts +18 -9
  189. package/public/orm/models/index.js +39 -21
  190. package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  191. package/public/orm/models/nodeTypeRegistry.js +100 -0
  192. package/public/orm/models/orgLimitAggregate.d.ts +56 -0
  193. package/public/orm/models/orgLimitAggregate.js +100 -0
  194. package/public/orm/models/orgLimitEvent.d.ts +32 -0
  195. package/public/orm/models/orgLimitEvent.js +55 -0
  196. package/public/orm/models/plansModule.d.ts +56 -0
  197. package/public/orm/models/plansModule.js +100 -0
  198. package/public/orm/mutation/index.d.ts +17 -31
  199. package/public/orm/mutation/index.js +24 -36
  200. package/public/orm/query/index.d.ts +28 -28
  201. package/public/orm/query/index.js +48 -48
  202. package/admin/cli/commands/confirm-upload.js +0 -36
  203. package/auth/cli/commands/confirm-upload.js +0 -36
  204. package/esm/admin/cli/commands/confirm-upload.js +0 -34
  205. package/esm/auth/cli/commands/confirm-upload.js +0 -34
  206. package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
  207. package/esm/objects/cli/commands/confirm-upload.js +0 -34
  208. package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
  209. package/esm/public/cli/commands/confirm-upload.js +0 -34
  210. package/objects/cli/commands/confirm-upload.d.ts +0 -8
  211. package/objects/cli/commands/confirm-upload.js +0 -36
  212. package/public/cli/commands/confirm-upload.d.ts +0 -8
  213. package/public/cli/commands/confirm-upload.js +0 -36
@@ -126,6 +126,10 @@ export const connectionFieldsMap = {
126
126
  blueprintTemplatesByForkedFromId: 'BlueprintTemplate',
127
127
  blueprintsByTemplateId: 'Blueprint',
128
128
  },
129
+ AgentThread: {
130
+ agentMessagesByThreadId: 'AgentMessage',
131
+ agentTasksByThreadId: 'AgentTask',
132
+ },
129
133
  User: {
130
134
  ownedDatabases: 'Database',
131
135
  appAdminGrantsByActorId: 'AppAdminGrant',
@@ -160,6 +164,7 @@ export const connectionFieldsMap = {
160
164
  appLimitsByActorId: 'AppLimit',
161
165
  orgLimitsByActorId: 'OrgLimit',
162
166
  orgLimitsByEntityId: 'OrgLimit',
167
+ orgLimitAggregatesByEntityId: 'OrgLimitAggregate',
163
168
  appStepsByActorId: 'AppStep',
164
169
  appAchievementsByActorId: 'AppAchievement',
165
170
  ownedAppLevels: 'AppLevel',
@@ -177,5 +182,9 @@ export const connectionFieldsMap = {
177
182
  orgClaimedInvitesByReceiverId: 'OrgClaimedInvite',
178
183
  orgClaimedInvitesBySenderId: 'OrgClaimedInvite',
179
184
  auditLogsByActorId: 'AuditLog',
185
+ agentThreadsByEntityId: 'AgentThread',
186
+ ownedAgentThreads: 'AgentThread',
187
+ ownedAgentMessages: 'AgentMessage',
188
+ ownedAgentTasks: 'AgentTask',
180
189
  },
181
190
  };
@@ -0,0 +1,56 @@
1
+ /**
2
+ * AgentMessage 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 { AgentMessageWithRelations, AgentMessageSelect, AgentMessageFilter, AgentMessageOrderBy, CreateAgentMessageInput, AgentMessagePatch } from '../input-types';
10
+ export declare class AgentMessageModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AgentMessageSelect>(args: FindManyArgs<S, AgentMessageFilter, AgentMessageOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
16
+ agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AgentMessageSelect>(args: FindFirstArgs<S, AgentMessageFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
21
+ agentMessages: {
22
+ nodes: InferSelectResult<AgentMessageWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends AgentMessageSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
29
+ agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
30
+ }>;
31
+ create<S extends AgentMessageSelect>(args: CreateArgs<S, CreateAgentMessageInput['agentMessage']> & {
32
+ select: S;
33
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
34
+ createAgentMessage: {
35
+ agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends AgentMessageSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, AgentMessagePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
43
+ updateAgentMessage: {
44
+ agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends AgentMessageSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
52
+ deleteAgentMessage: {
53
+ agentMessage: InferSelectResult<AgentMessageWithRelations, 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 AgentMessageModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('AgentMessage', 'agentMessages', 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
+ }, 'AgentMessageFilter', 'AgentMessageOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'AgentMessage',
22
+ fieldName: 'agentMessages',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('AgentMessage', 'agentMessages', args.select, {
29
+ where: args?.where,
30
+ }, 'AgentMessageFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'AgentMessage',
35
+ fieldName: 'agentMessages',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('AgentMessage', 'agentMessages', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'AgentMessageFilter', 'AgentMessageOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'AgentMessage',
53
+ fieldName: 'agentMessage',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ agentMessage: data.agentMessages?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('AgentMessage', 'createAgentMessage', 'agentMessage', args.select, args.data, 'CreateAgentMessageInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'AgentMessage',
67
+ fieldName: 'createAgentMessage',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('AgentMessage', 'updateAgentMessage', 'agentMessage', args.select, args.where.id, args.data, 'UpdateAgentMessageInput', 'id', 'agentMessagePatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'AgentMessage',
78
+ fieldName: 'updateAgentMessage',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('AgentMessage', 'deleteAgentMessage', 'agentMessage', {
85
+ id: args.where.id,
86
+ }, 'DeleteAgentMessageInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'AgentMessage',
91
+ fieldName: 'deleteAgentMessage',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * AgentTask 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 { AgentTaskWithRelations, AgentTaskSelect, AgentTaskFilter, AgentTaskOrderBy, CreateAgentTaskInput, AgentTaskPatch } from '../input-types';
10
+ export declare class AgentTaskModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AgentTaskSelect>(args: FindManyArgs<S, AgentTaskFilter, AgentTaskOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
16
+ agentTasks: ConnectionResult<InferSelectResult<AgentTaskWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AgentTaskSelect>(args: FindFirstArgs<S, AgentTaskFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
21
+ agentTasks: {
22
+ nodes: InferSelectResult<AgentTaskWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends AgentTaskSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
29
+ agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
30
+ }>;
31
+ create<S extends AgentTaskSelect>(args: CreateArgs<S, CreateAgentTaskInput['agentTask']> & {
32
+ select: S;
33
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
34
+ createAgentTask: {
35
+ agentTask: InferSelectResult<AgentTaskWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends AgentTaskSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, AgentTaskPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
43
+ updateAgentTask: {
44
+ agentTask: InferSelectResult<AgentTaskWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends AgentTaskSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
52
+ deleteAgentTask: {
53
+ agentTask: InferSelectResult<AgentTaskWithRelations, 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 AgentTaskModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('AgentTask', 'agentTasks', 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
+ }, 'AgentTaskFilter', 'AgentTaskOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'AgentTask',
22
+ fieldName: 'agentTasks',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('AgentTask', 'agentTasks', args.select, {
29
+ where: args?.where,
30
+ }, 'AgentTaskFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'AgentTask',
35
+ fieldName: 'agentTasks',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('AgentTask', 'agentTasks', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'AgentTaskFilter', 'AgentTaskOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'AgentTask',
53
+ fieldName: 'agentTask',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ agentTask: data.agentTasks?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('AgentTask', 'createAgentTask', 'agentTask', args.select, args.data, 'CreateAgentTaskInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'AgentTask',
67
+ fieldName: 'createAgentTask',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('AgentTask', 'updateAgentTask', 'agentTask', args.select, args.where.id, args.data, 'UpdateAgentTaskInput', 'id', 'agentTaskPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'AgentTask',
78
+ fieldName: 'updateAgentTask',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('AgentTask', 'deleteAgentTask', 'agentTask', {
85
+ id: args.where.id,
86
+ }, 'DeleteAgentTaskInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'AgentTask',
91
+ fieldName: 'deleteAgentTask',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * AgentThread 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 { AgentThreadWithRelations, AgentThreadSelect, AgentThreadFilter, AgentThreadOrderBy, CreateAgentThreadInput, AgentThreadPatch } from '../input-types';
10
+ export declare class AgentThreadModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AgentThreadSelect>(args: FindManyArgs<S, AgentThreadFilter, AgentThreadOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
16
+ agentThreads: ConnectionResult<InferSelectResult<AgentThreadWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AgentThreadSelect>(args: FindFirstArgs<S, AgentThreadFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
21
+ agentThreads: {
22
+ nodes: InferSelectResult<AgentThreadWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends AgentThreadSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
29
+ agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
30
+ }>;
31
+ create<S extends AgentThreadSelect>(args: CreateArgs<S, CreateAgentThreadInput['agentThread']> & {
32
+ select: S;
33
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
34
+ createAgentThread: {
35
+ agentThread: InferSelectResult<AgentThreadWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends AgentThreadSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, AgentThreadPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
43
+ updateAgentThread: {
44
+ agentThread: InferSelectResult<AgentThreadWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends AgentThreadSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
52
+ deleteAgentThread: {
53
+ agentThread: InferSelectResult<AgentThreadWithRelations, 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 AgentThreadModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('AgentThread', 'agentThreads', 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
+ }, 'AgentThreadFilter', 'AgentThreadOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'AgentThread',
22
+ fieldName: 'agentThreads',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('AgentThread', 'agentThreads', args.select, {
29
+ where: args?.where,
30
+ }, 'AgentThreadFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'AgentThread',
35
+ fieldName: 'agentThreads',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('AgentThread', 'agentThreads', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'AgentThreadFilter', 'AgentThreadOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'AgentThread',
53
+ fieldName: 'agentThread',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ agentThread: data.agentThreads?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('AgentThread', 'createAgentThread', 'agentThread', args.select, args.data, 'CreateAgentThreadInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'AgentThread',
67
+ fieldName: 'createAgentThread',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('AgentThread', 'updateAgentThread', 'agentThread', args.select, args.where.id, args.data, 'UpdateAgentThreadInput', 'id', 'agentThreadPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'AgentThread',
78
+ fieldName: 'updateAgentThread',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('AgentThread', 'deleteAgentThread', 'agentThread', {
85
+ id: args.where.id,
86
+ }, 'DeleteAgentThreadInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'AgentThread',
91
+ fieldName: 'deleteAgentThread',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * AppLimitEvent 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 { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput } from '../input-types';
10
+ export declare class AppLimitEventModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AppLimitEventSelect>(args: FindManyArgs<S, AppLimitEventFilter, AppLimitEventOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
16
+ appLimitEvents: ConnectionResult<InferSelectResult<AppLimitEventWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AppLimitEventSelect>(args: FindFirstArgs<S, AppLimitEventFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
21
+ appLimitEvents: {
22
+ nodes: InferSelectResult<AppLimitEventWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends AppLimitEventSelect>(args: CreateArgs<S, CreateAppLimitEventInput['appLimitEvent']> & {
26
+ select: S;
27
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
28
+ createAppLimitEvent: {
29
+ appLimitEvent: InferSelectResult<AppLimitEventWithRelations, 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 AppLimitEventModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('AppLimitEvent', 'appLimitEvents', 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
+ }, 'AppLimitEventFilter', 'AppLimitEventOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'AppLimitEvent',
22
+ fieldName: 'appLimitEvents',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('AppLimitEvent', 'appLimitEvents', args.select, {
29
+ where: args?.where,
30
+ }, 'AppLimitEventFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'AppLimitEvent',
35
+ fieldName: 'appLimitEvents',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('AppLimitEvent', 'createAppLimitEvent', 'appLimitEvent', args.select, args.data, 'CreateAppLimitEventInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'AppLimitEvent',
46
+ fieldName: 'createAppLimitEvent',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * BillingModule 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 { BillingModuleWithRelations, BillingModuleSelect, BillingModuleFilter, BillingModuleOrderBy, CreateBillingModuleInput, BillingModulePatch } from '../input-types';
10
+ export declare class BillingModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends BillingModuleSelect>(args: FindManyArgs<S, BillingModuleFilter, BillingModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
16
+ billingModules: ConnectionResult<InferSelectResult<BillingModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends BillingModuleSelect>(args: FindFirstArgs<S, BillingModuleFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
21
+ billingModules: {
22
+ nodes: InferSelectResult<BillingModuleWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends BillingModuleSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
29
+ billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
30
+ }>;
31
+ create<S extends BillingModuleSelect>(args: CreateArgs<S, CreateBillingModuleInput['billingModule']> & {
32
+ select: S;
33
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
34
+ createBillingModule: {
35
+ billingModule: InferSelectResult<BillingModuleWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends BillingModuleSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, BillingModulePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
43
+ updateBillingModule: {
44
+ billingModule: InferSelectResult<BillingModuleWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends BillingModuleSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, BillingModuleSelect>): QueryBuilder<{
52
+ deleteBillingModule: {
53
+ billingModule: InferSelectResult<BillingModuleWithRelations, S>;
54
+ };
55
+ }>;
56
+ }