@constructive-io/sdk 0.23.2 → 0.24.0

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 (160) hide show
  1. package/admin/orm/index.d.ts +31 -33
  2. package/admin/orm/index.js +32 -33
  3. package/admin/orm/input-types.d.ts +2090 -2039
  4. package/admin/orm/input-types.js +4 -4
  5. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  6. package/admin/orm/models/appLimitEvent.js +45 -0
  7. package/admin/orm/models/index.d.ts +15 -16
  8. package/admin/orm/models/index.js +31 -33
  9. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  10. package/admin/orm/models/orgLimitEvent.js +45 -0
  11. package/auth/orm/index.d.ts +8 -8
  12. package/auth/orm/index.js +4 -3
  13. package/auth/orm/input-types.d.ts +94 -94
  14. package/auth/orm/input-types.js +1 -1
  15. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  16. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  17. package/auth/orm/models/index.d.ts +1 -1
  18. package/auth/orm/models/index.js +3 -3
  19. package/auth/orm/mutation/index.d.ts +9 -9
  20. package/auth/orm/mutation/index.js +12 -12
  21. package/esm/admin/orm/index.d.ts +31 -33
  22. package/esm/admin/orm/index.js +31 -33
  23. package/esm/admin/orm/input-types.d.ts +2090 -2039
  24. package/esm/admin/orm/input-types.js +4 -4
  25. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  26. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  27. package/esm/admin/orm/models/index.d.ts +15 -16
  28. package/esm/admin/orm/models/index.js +15 -16
  29. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  30. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  31. package/esm/auth/orm/index.d.ts +8 -8
  32. package/esm/auth/orm/index.js +3 -3
  33. package/esm/auth/orm/input-types.d.ts +94 -94
  34. package/esm/auth/orm/input-types.js +1 -1
  35. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  36. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  37. package/esm/auth/orm/models/index.d.ts +1 -1
  38. package/esm/auth/orm/models/index.js +1 -1
  39. package/esm/auth/orm/mutation/index.d.ts +9 -9
  40. package/esm/auth/orm/mutation/index.js +12 -12
  41. package/esm/objects/orm/index.d.ts +1 -1
  42. package/esm/objects/orm/index.js +1 -1
  43. package/esm/public/orm/index.d.ts +102 -153
  44. package/esm/public/orm/index.js +59 -55
  45. package/esm/public/orm/input-types.d.ts +6255 -3877
  46. package/esm/public/orm/input-types.js +24 -15
  47. package/esm/public/orm/models/agentModule.d.ts +54 -0
  48. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  49. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  50. package/esm/public/orm/models/appLimitEvent.js +46 -1
  51. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  52. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  53. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  54. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  55. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  56. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  57. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  58. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  59. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  60. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  61. package/esm/public/orm/models/functionModule.d.ts +54 -0
  62. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  63. package/esm/public/orm/models/graphModule.d.ts +54 -0
  64. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  65. package/esm/public/orm/models/index.d.ts +29 -27
  66. package/esm/public/orm/models/index.js +29 -27
  67. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  68. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  69. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  70. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  71. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  72. package/esm/public/orm/models/namespaceModule.js +100 -0
  73. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  74. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  75. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  76. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  77. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  78. package/esm/public/orm/models/transferLogModule.js +100 -0
  79. package/esm/public/orm/mutation/index.d.ts +69 -133
  80. package/esm/public/orm/mutation/index.js +78 -174
  81. package/esm/public/orm/query/index.d.ts +22 -71
  82. package/esm/public/orm/query/index.js +36 -124
  83. package/objects/orm/index.d.ts +1 -1
  84. package/objects/orm/index.js +2 -1
  85. package/package.json +6 -6
  86. package/public/orm/index.d.ts +102 -153
  87. package/public/orm/index.js +60 -55
  88. package/public/orm/input-types.d.ts +6255 -3877
  89. package/public/orm/input-types.js +24 -15
  90. package/public/orm/models/agentModule.d.ts +54 -0
  91. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  92. package/public/orm/models/appLimitEvent.d.ts +26 -2
  93. package/public/orm/models/appLimitEvent.js +45 -0
  94. package/public/orm/models/auditLogAuth.d.ts +54 -0
  95. package/public/orm/models/{usageSnapshot.js → auditLogAuth.js} +27 -27
  96. package/public/orm/models/computeLogModule.d.ts +54 -0
  97. package/public/orm/models/computeLogModule.js +104 -0
  98. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  99. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  100. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  101. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  102. package/public/orm/models/dbUsageModule.d.ts +54 -0
  103. package/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +27 -27
  104. package/public/orm/models/functionModule.d.ts +54 -0
  105. package/{auth/orm/models/auditLog.js → public/orm/models/functionModule.js} +27 -27
  106. package/public/orm/models/graphModule.d.ts +54 -0
  107. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  108. package/public/orm/models/index.d.ts +29 -27
  109. package/public/orm/models/index.js +61 -57
  110. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  111. package/public/orm/models/inferenceLogModule.js +104 -0
  112. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  113. package/public/orm/models/merkleStoreModule.js +104 -0
  114. package/public/orm/models/namespaceModule.d.ts +54 -0
  115. package/public/orm/models/namespaceModule.js +104 -0
  116. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  117. package/public/orm/models/orgLimitEvent.js +45 -0
  118. package/public/orm/models/storageLogModule.d.ts +54 -0
  119. package/public/orm/models/storageLogModule.js +104 -0
  120. package/public/orm/models/transferLogModule.d.ts +54 -0
  121. package/public/orm/models/transferLogModule.js +104 -0
  122. package/public/orm/mutation/index.d.ts +69 -133
  123. package/public/orm/mutation/index.js +78 -174
  124. package/public/orm/query/index.d.ts +22 -71
  125. package/public/orm/query/index.js +36 -124
  126. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  127. package/auth/orm/models/auditLog.d.ts +0 -54
  128. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  129. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  130. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  131. package/esm/public/orm/models/agentTask.d.ts +0 -54
  132. package/esm/public/orm/models/agentThread.d.ts +0 -54
  133. package/esm/public/orm/models/auditLog.d.ts +0 -54
  134. package/esm/public/orm/models/commit.d.ts +0 -54
  135. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  136. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  137. package/esm/public/orm/models/getAllRecord.js +0 -55
  138. package/esm/public/orm/models/object.d.ts +0 -54
  139. package/esm/public/orm/models/object.js +0 -90
  140. package/esm/public/orm/models/ref.d.ts +0 -54
  141. package/esm/public/orm/models/ref.js +0 -100
  142. package/esm/public/orm/models/store.d.ts +0 -54
  143. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  144. package/esm/public/orm/models/usageSnapshot.js +0 -100
  145. package/public/orm/models/agentMessage.d.ts +0 -54
  146. package/public/orm/models/agentTask.d.ts +0 -54
  147. package/public/orm/models/agentThread.d.ts +0 -54
  148. package/public/orm/models/auditLog.d.ts +0 -54
  149. package/public/orm/models/auditLog.js +0 -104
  150. package/public/orm/models/commit.d.ts +0 -54
  151. package/public/orm/models/commit.js +0 -104
  152. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  153. package/public/orm/models/getAllRecord.d.ts +0 -30
  154. package/public/orm/models/getAllRecord.js +0 -59
  155. package/public/orm/models/object.d.ts +0 -54
  156. package/public/orm/models/object.js +0 -94
  157. package/public/orm/models/ref.d.ts +0 -54
  158. package/public/orm/models/store.d.ts +0 -54
  159. package/public/orm/models/store.js +0 -104
  160. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -1,100 +0,0 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
- import { connectionFieldsMap } from '../input-types';
3
- export class UsageSnapshotModel {
4
- client;
5
- constructor(client) {
6
- this.client = client;
7
- }
8
- findMany(args) {
9
- const { document, variables } = buildFindManyDocument('UsageSnapshot', 'usageSnapshots', 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
- }, 'UsageSnapshotFilter', 'UsageSnapshotOrderBy', connectionFieldsMap);
18
- return new QueryBuilder({
19
- client: this.client,
20
- operation: 'query',
21
- operationName: 'UsageSnapshot',
22
- fieldName: 'usageSnapshots',
23
- document,
24
- variables,
25
- });
26
- }
27
- findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('UsageSnapshot', 'usageSnapshots', args.select, {
29
- where: args?.where,
30
- orderBy: args?.orderBy,
31
- }, 'UsageSnapshotFilter', 'UsageSnapshotOrderBy', connectionFieldsMap);
32
- return new QueryBuilder({
33
- client: this.client,
34
- operation: 'query',
35
- operationName: 'UsageSnapshot',
36
- fieldName: 'usageSnapshot',
37
- document,
38
- variables,
39
- transform: (data) => ({
40
- usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null,
41
- }),
42
- });
43
- }
44
- findOne(args) {
45
- const { document, variables } = buildFindManyDocument('UsageSnapshot', 'usageSnapshots', args.select, {
46
- where: {
47
- id: {
48
- equalTo: args.id,
49
- },
50
- },
51
- first: 1,
52
- }, 'UsageSnapshotFilter', 'UsageSnapshotOrderBy', connectionFieldsMap);
53
- return new QueryBuilder({
54
- client: this.client,
55
- operation: 'query',
56
- operationName: 'UsageSnapshot',
57
- fieldName: 'usageSnapshot',
58
- document,
59
- variables,
60
- transform: (data) => ({
61
- usageSnapshot: data.usageSnapshots?.nodes?.[0] ?? null,
62
- }),
63
- });
64
- }
65
- create(args) {
66
- const { document, variables } = buildCreateDocument('UsageSnapshot', 'createUsageSnapshot', 'usageSnapshot', args.select, args.data, 'CreateUsageSnapshotInput', connectionFieldsMap);
67
- return new QueryBuilder({
68
- client: this.client,
69
- operation: 'mutation',
70
- operationName: 'UsageSnapshot',
71
- fieldName: 'createUsageSnapshot',
72
- document,
73
- variables,
74
- });
75
- }
76
- update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('UsageSnapshot', 'updateUsageSnapshot', 'usageSnapshot', args.select, args.where.id, args.data, 'UpdateUsageSnapshotInput', 'id', 'usageSnapshotPatch', connectionFieldsMap);
78
- return new QueryBuilder({
79
- client: this.client,
80
- operation: 'mutation',
81
- operationName: 'UsageSnapshot',
82
- fieldName: 'updateUsageSnapshot',
83
- document,
84
- variables,
85
- });
86
- }
87
- delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('UsageSnapshot', 'deleteUsageSnapshot', 'usageSnapshot', {
89
- id: args.where.id,
90
- }, 'DeleteUsageSnapshotInput', args.select, connectionFieldsMap);
91
- return new QueryBuilder({
92
- client: this.client,
93
- operation: 'mutation',
94
- operationName: 'UsageSnapshot',
95
- fieldName: 'deleteUsageSnapshot',
96
- document,
97
- variables,
98
- });
99
- }
100
- }
@@ -1,54 +0,0 @@
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, AgentMessageOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
21
- agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
22
- }>;
23
- findOne<S extends AgentMessageSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
27
- agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
28
- }>;
29
- create<S extends AgentMessageSelect>(args: CreateArgs<S, CreateAgentMessageInput['agentMessage']> & {
30
- select: S;
31
- } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
32
- createAgentMessage: {
33
- agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends AgentMessageSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, AgentMessagePatch> & {
39
- select: S;
40
- } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
41
- updateAgentMessage: {
42
- agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends AgentMessageSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, AgentMessageSelect>): QueryBuilder<{
50
- deleteAgentMessage: {
51
- agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,54 +0,0 @@
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, AgentTaskOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
21
- agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
22
- }>;
23
- findOne<S extends AgentTaskSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
27
- agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
28
- }>;
29
- create<S extends AgentTaskSelect>(args: CreateArgs<S, CreateAgentTaskInput['agentTask']> & {
30
- select: S;
31
- } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
32
- createAgentTask: {
33
- agentTask: InferSelectResult<AgentTaskWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends AgentTaskSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, AgentTaskPatch> & {
39
- select: S;
40
- } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
41
- updateAgentTask: {
42
- agentTask: InferSelectResult<AgentTaskWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends AgentTaskSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, AgentTaskSelect>): QueryBuilder<{
50
- deleteAgentTask: {
51
- agentTask: InferSelectResult<AgentTaskWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,54 +0,0 @@
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, AgentThreadOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
21
- agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
22
- }>;
23
- findOne<S extends AgentThreadSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
27
- agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
28
- }>;
29
- create<S extends AgentThreadSelect>(args: CreateArgs<S, CreateAgentThreadInput['agentThread']> & {
30
- select: S;
31
- } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
32
- createAgentThread: {
33
- agentThread: InferSelectResult<AgentThreadWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends AgentThreadSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, AgentThreadPatch> & {
39
- select: S;
40
- } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
41
- updateAgentThread: {
42
- agentThread: InferSelectResult<AgentThreadWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends AgentThreadSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, AgentThreadSelect>): QueryBuilder<{
50
- deleteAgentThread: {
51
- agentThread: InferSelectResult<AgentThreadWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,54 +0,0 @@
1
- /**
2
- * AuditLog 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 { AuditLogWithRelations, AuditLogSelect, AuditLogFilter, AuditLogOrderBy, CreateAuditLogInput, AuditLogPatch } from '../input-types';
10
- export declare class AuditLogModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends AuditLogSelect>(args: FindManyArgs<S, AuditLogFilter, AuditLogOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
16
- auditLogs: ConnectionResult<InferSelectResult<AuditLogWithRelations, S>>;
17
- }>;
18
- findFirst<S extends AuditLogSelect>(args: FindFirstArgs<S, AuditLogFilter, AuditLogOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
21
- auditLog: InferSelectResult<AuditLogWithRelations, S> | null;
22
- }>;
23
- findOne<S extends AuditLogSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
27
- auditLog: InferSelectResult<AuditLogWithRelations, S> | null;
28
- }>;
29
- create<S extends AuditLogSelect>(args: CreateArgs<S, CreateAuditLogInput['auditLog']> & {
30
- select: S;
31
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
32
- createAuditLog: {
33
- auditLog: InferSelectResult<AuditLogWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends AuditLogSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, AuditLogPatch> & {
39
- select: S;
40
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
41
- updateAuditLog: {
42
- auditLog: InferSelectResult<AuditLogWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends AuditLogSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, AuditLogSelect>): QueryBuilder<{
50
- deleteAuditLog: {
51
- auditLog: InferSelectResult<AuditLogWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuditLogModel = void 0;
4
- const query_builder_1 = require("../query-builder");
5
- const input_types_1 = require("../input-types");
6
- class AuditLogModel {
7
- client;
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AuditLog', 'auditLogs', 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
- }, 'AuditLogFilter', 'AuditLogOrderBy', input_types_1.connectionFieldsMap);
21
- return new query_builder_1.QueryBuilder({
22
- client: this.client,
23
- operation: 'query',
24
- operationName: 'AuditLog',
25
- fieldName: 'auditLogs',
26
- document,
27
- variables,
28
- });
29
- }
30
- findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AuditLog', 'auditLogs', args.select, {
32
- where: args?.where,
33
- orderBy: args?.orderBy,
34
- }, 'AuditLogFilter', 'AuditLogOrderBy', input_types_1.connectionFieldsMap);
35
- return new query_builder_1.QueryBuilder({
36
- client: this.client,
37
- operation: 'query',
38
- operationName: 'AuditLog',
39
- fieldName: 'auditLog',
40
- document,
41
- variables,
42
- transform: (data) => ({
43
- auditLog: data.auditLogs?.nodes?.[0] ?? null,
44
- }),
45
- });
46
- }
47
- findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AuditLog', 'auditLogs', args.select, {
49
- where: {
50
- id: {
51
- equalTo: args.id,
52
- },
53
- },
54
- first: 1,
55
- }, 'AuditLogFilter', 'AuditLogOrderBy', input_types_1.connectionFieldsMap);
56
- return new query_builder_1.QueryBuilder({
57
- client: this.client,
58
- operation: 'query',
59
- operationName: 'AuditLog',
60
- fieldName: 'auditLog',
61
- document,
62
- variables,
63
- transform: (data) => ({
64
- auditLog: data.auditLogs?.nodes?.[0] ?? null,
65
- }),
66
- });
67
- }
68
- create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)('AuditLog', 'createAuditLog', 'auditLog', args.select, args.data, 'CreateAuditLogInput', input_types_1.connectionFieldsMap);
70
- return new query_builder_1.QueryBuilder({
71
- client: this.client,
72
- operation: 'mutation',
73
- operationName: 'AuditLog',
74
- fieldName: 'createAuditLog',
75
- document,
76
- variables,
77
- });
78
- }
79
- update(args) {
80
- const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('AuditLog', 'updateAuditLog', 'auditLog', args.select, args.where.id, args.data, 'UpdateAuditLogInput', 'id', 'auditLogPatch', input_types_1.connectionFieldsMap);
81
- return new query_builder_1.QueryBuilder({
82
- client: this.client,
83
- operation: 'mutation',
84
- operationName: 'AuditLog',
85
- fieldName: 'updateAuditLog',
86
- document,
87
- variables,
88
- });
89
- }
90
- delete(args) {
91
- const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('AuditLog', 'deleteAuditLog', 'auditLog', {
92
- id: args.where.id,
93
- }, 'DeleteAuditLogInput', args.select, input_types_1.connectionFieldsMap);
94
- return new query_builder_1.QueryBuilder({
95
- client: this.client,
96
- operation: 'mutation',
97
- operationName: 'AuditLog',
98
- fieldName: 'deleteAuditLog',
99
- document,
100
- variables,
101
- });
102
- }
103
- }
104
- exports.AuditLogModel = AuditLogModel;
@@ -1,54 +0,0 @@
1
- /**
2
- * Commit 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 { CommitWithRelations, CommitSelect, CommitFilter, CommitOrderBy, CreateCommitInput, CommitPatch } from '../input-types';
10
- export declare class CommitModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends CommitSelect>(args: FindManyArgs<S, CommitFilter, CommitOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
16
- commits: ConnectionResult<InferSelectResult<CommitWithRelations, S>>;
17
- }>;
18
- findFirst<S extends CommitSelect>(args: FindFirstArgs<S, CommitFilter, CommitOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
21
- commit: InferSelectResult<CommitWithRelations, S> | null;
22
- }>;
23
- findOne<S extends CommitSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
27
- commit: InferSelectResult<CommitWithRelations, S> | null;
28
- }>;
29
- create<S extends CommitSelect>(args: CreateArgs<S, CreateCommitInput['commit']> & {
30
- select: S;
31
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
32
- createCommit: {
33
- commit: InferSelectResult<CommitWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends CommitSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, CommitPatch> & {
39
- select: S;
40
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
41
- updateCommit: {
42
- commit: InferSelectResult<CommitWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends CommitSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, CommitSelect>): QueryBuilder<{
50
- deleteCommit: {
51
- commit: InferSelectResult<CommitWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommitModel = void 0;
4
- const query_builder_1 = require("../query-builder");
5
- const input_types_1 = require("../input-types");
6
- class CommitModel {
7
- client;
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Commit', 'commits', 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
- }, 'CommitFilter', 'CommitOrderBy', input_types_1.connectionFieldsMap);
21
- return new query_builder_1.QueryBuilder({
22
- client: this.client,
23
- operation: 'query',
24
- operationName: 'Commit',
25
- fieldName: 'commits',
26
- document,
27
- variables,
28
- });
29
- }
30
- findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Commit', 'commits', args.select, {
32
- where: args?.where,
33
- orderBy: args?.orderBy,
34
- }, 'CommitFilter', 'CommitOrderBy', input_types_1.connectionFieldsMap);
35
- return new query_builder_1.QueryBuilder({
36
- client: this.client,
37
- operation: 'query',
38
- operationName: 'Commit',
39
- fieldName: 'commit',
40
- document,
41
- variables,
42
- transform: (data) => ({
43
- commit: data.commits?.nodes?.[0] ?? null,
44
- }),
45
- });
46
- }
47
- findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Commit', 'commits', args.select, {
49
- where: {
50
- id: {
51
- equalTo: args.id,
52
- },
53
- },
54
- first: 1,
55
- }, 'CommitFilter', 'CommitOrderBy', input_types_1.connectionFieldsMap);
56
- return new query_builder_1.QueryBuilder({
57
- client: this.client,
58
- operation: 'query',
59
- operationName: 'Commit',
60
- fieldName: 'commit',
61
- document,
62
- variables,
63
- transform: (data) => ({
64
- commit: data.commits?.nodes?.[0] ?? null,
65
- }),
66
- });
67
- }
68
- create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)('Commit', 'createCommit', 'commit', args.select, args.data, 'CreateCommitInput', input_types_1.connectionFieldsMap);
70
- return new query_builder_1.QueryBuilder({
71
- client: this.client,
72
- operation: 'mutation',
73
- operationName: 'Commit',
74
- fieldName: 'createCommit',
75
- document,
76
- variables,
77
- });
78
- }
79
- update(args) {
80
- const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Commit', 'updateCommit', 'commit', args.select, args.where.id, args.data, 'UpdateCommitInput', 'id', 'commitPatch', input_types_1.connectionFieldsMap);
81
- return new query_builder_1.QueryBuilder({
82
- client: this.client,
83
- operation: 'mutation',
84
- operationName: 'Commit',
85
- fieldName: 'updateCommit',
86
- document,
87
- variables,
88
- });
89
- }
90
- delete(args) {
91
- const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Commit', 'deleteCommit', 'commit', {
92
- id: args.where.id,
93
- }, 'DeleteCommitInput', args.select, input_types_1.connectionFieldsMap);
94
- return new query_builder_1.QueryBuilder({
95
- client: this.client,
96
- operation: 'mutation',
97
- operationName: 'Commit',
98
- fieldName: 'deleteCommit',
99
- document,
100
- variables,
101
- });
102
- }
103
- }
104
- exports.CommitModel = CommitModel;
@@ -1,54 +0,0 @@
1
- /**
2
- * EncryptedSecretsModule 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 { EncryptedSecretsModuleWithRelations, EncryptedSecretsModuleSelect, EncryptedSecretsModuleFilter, EncryptedSecretsModuleOrderBy, CreateEncryptedSecretsModuleInput, EncryptedSecretsModulePatch } from '../input-types';
10
- export declare class EncryptedSecretsModuleModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends EncryptedSecretsModuleSelect>(args: FindManyArgs<S, EncryptedSecretsModuleFilter, EncryptedSecretsModuleOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
16
- encryptedSecretsModules: ConnectionResult<InferSelectResult<EncryptedSecretsModuleWithRelations, S>>;
17
- }>;
18
- findFirst<S extends EncryptedSecretsModuleSelect>(args: FindFirstArgs<S, EncryptedSecretsModuleFilter, EncryptedSecretsModuleOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
21
- encryptedSecretsModule: InferSelectResult<EncryptedSecretsModuleWithRelations, S> | null;
22
- }>;
23
- findOne<S extends EncryptedSecretsModuleSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
27
- encryptedSecretsModule: InferSelectResult<EncryptedSecretsModuleWithRelations, S> | null;
28
- }>;
29
- create<S extends EncryptedSecretsModuleSelect>(args: CreateArgs<S, CreateEncryptedSecretsModuleInput['encryptedSecretsModule']> & {
30
- select: S;
31
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
32
- createEncryptedSecretsModule: {
33
- encryptedSecretsModule: InferSelectResult<EncryptedSecretsModuleWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends EncryptedSecretsModuleSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, EncryptedSecretsModulePatch> & {
39
- select: S;
40
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
41
- updateEncryptedSecretsModule: {
42
- encryptedSecretsModule: InferSelectResult<EncryptedSecretsModuleWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends EncryptedSecretsModuleSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, EncryptedSecretsModuleSelect>): QueryBuilder<{
50
- deleteEncryptedSecretsModule: {
51
- encryptedSecretsModule: InferSelectResult<EncryptedSecretsModuleWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,30 +0,0 @@
1
- /**
2
- * GetAllRecord 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 { GetAllRecordWithRelations, GetAllRecordSelect, GetAllRecordFilter, GetAllRecordsOrderBy, CreateGetAllRecordInput } from '../input-types';
10
- export declare class GetAllRecordModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends GetAllRecordSelect>(args: FindManyArgs<S, GetAllRecordFilter, GetAllRecordsOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, GetAllRecordSelect>): QueryBuilder<{
16
- getAll: ConnectionResult<InferSelectResult<GetAllRecordWithRelations, S>>;
17
- }>;
18
- findFirst<S extends GetAllRecordSelect>(args: FindFirstArgs<S, GetAllRecordFilter, GetAllRecordsOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, GetAllRecordSelect>): QueryBuilder<{
21
- getAllRecord: InferSelectResult<GetAllRecordWithRelations, S> | null;
22
- }>;
23
- create<S extends GetAllRecordSelect>(args: CreateArgs<S, CreateGetAllRecordInput['getAllRecord']> & {
24
- select: S;
25
- } & StrictSelect<S, GetAllRecordSelect>): QueryBuilder<{
26
- createGetAllRecord: {
27
- getAllRecord: InferSelectResult<GetAllRecordWithRelations, S>;
28
- };
29
- }>;
30
- }