@constructive-io/sdk 0.23.3 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +4 -0
  2. package/admin/orm/index.d.ts +31 -33
  3. package/admin/orm/index.js +32 -33
  4. package/admin/orm/input-types.d.ts +2090 -2039
  5. package/admin/orm/input-types.js +4 -4
  6. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  7. package/admin/orm/models/appLimitEvent.js +45 -0
  8. package/admin/orm/models/index.d.ts +15 -16
  9. package/admin/orm/models/index.js +31 -33
  10. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  11. package/admin/orm/models/orgLimitEvent.js +45 -0
  12. package/auth/orm/index.d.ts +8 -8
  13. package/auth/orm/index.js +4 -3
  14. package/auth/orm/input-types.d.ts +94 -94
  15. package/auth/orm/input-types.js +1 -1
  16. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  17. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  18. package/auth/orm/models/index.d.ts +1 -1
  19. package/auth/orm/models/index.js +3 -3
  20. package/auth/orm/mutation/index.d.ts +9 -9
  21. package/auth/orm/mutation/index.js +12 -12
  22. package/esm/admin/orm/index.d.ts +31 -33
  23. package/esm/admin/orm/index.js +31 -33
  24. package/esm/admin/orm/input-types.d.ts +2090 -2039
  25. package/esm/admin/orm/input-types.js +4 -4
  26. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  27. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  28. package/esm/admin/orm/models/index.d.ts +15 -16
  29. package/esm/admin/orm/models/index.js +15 -16
  30. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  31. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  32. package/esm/auth/orm/index.d.ts +8 -8
  33. package/esm/auth/orm/index.js +3 -3
  34. package/esm/auth/orm/input-types.d.ts +94 -94
  35. package/esm/auth/orm/input-types.js +1 -1
  36. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  37. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  38. package/esm/auth/orm/models/index.d.ts +1 -1
  39. package/esm/auth/orm/models/index.js +1 -1
  40. package/esm/auth/orm/mutation/index.d.ts +9 -9
  41. package/esm/auth/orm/mutation/index.js +12 -12
  42. package/esm/objects/orm/index.d.ts +1 -1
  43. package/esm/objects/orm/index.js +1 -1
  44. package/esm/public/orm/index.d.ts +102 -153
  45. package/esm/public/orm/index.js +59 -55
  46. package/esm/public/orm/input-types.d.ts +6255 -3877
  47. package/esm/public/orm/input-types.js +24 -15
  48. package/esm/public/orm/models/agentModule.d.ts +54 -0
  49. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  50. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  51. package/esm/public/orm/models/appLimitEvent.js +46 -1
  52. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  53. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  54. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  55. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  56. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  57. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  58. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  59. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  60. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  61. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  62. package/esm/public/orm/models/functionModule.d.ts +54 -0
  63. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  64. package/esm/public/orm/models/graphModule.d.ts +54 -0
  65. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  66. package/esm/public/orm/models/index.d.ts +29 -27
  67. package/esm/public/orm/models/index.js +29 -27
  68. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  69. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  70. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  71. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  72. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  73. package/esm/public/orm/models/namespaceModule.js +100 -0
  74. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  75. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  76. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  77. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  78. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  79. package/esm/public/orm/models/transferLogModule.js +100 -0
  80. package/esm/public/orm/mutation/index.d.ts +69 -133
  81. package/esm/public/orm/mutation/index.js +78 -174
  82. package/esm/public/orm/query/index.d.ts +22 -71
  83. package/esm/public/orm/query/index.js +36 -124
  84. package/objects/orm/index.d.ts +1 -1
  85. package/objects/orm/index.js +2 -1
  86. package/package.json +6 -6
  87. package/public/orm/index.d.ts +102 -153
  88. package/public/orm/index.js +60 -55
  89. package/public/orm/input-types.d.ts +6255 -3877
  90. package/public/orm/input-types.js +24 -15
  91. package/public/orm/models/agentModule.d.ts +54 -0
  92. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  93. package/public/orm/models/appLimitEvent.d.ts +26 -2
  94. package/public/orm/models/appLimitEvent.js +45 -0
  95. package/public/orm/models/auditLogAuth.d.ts +54 -0
  96. package/public/orm/models/{usageSnapshot.js → auditLogAuth.js} +27 -27
  97. package/public/orm/models/computeLogModule.d.ts +54 -0
  98. package/public/orm/models/computeLogModule.js +104 -0
  99. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  100. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  101. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  102. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  103. package/public/orm/models/dbUsageModule.d.ts +54 -0
  104. package/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +27 -27
  105. package/public/orm/models/functionModule.d.ts +54 -0
  106. package/{auth/orm/models/auditLog.js → public/orm/models/functionModule.js} +27 -27
  107. package/public/orm/models/graphModule.d.ts +54 -0
  108. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  109. package/public/orm/models/index.d.ts +29 -27
  110. package/public/orm/models/index.js +61 -57
  111. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  112. package/public/orm/models/inferenceLogModule.js +104 -0
  113. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  114. package/public/orm/models/merkleStoreModule.js +104 -0
  115. package/public/orm/models/namespaceModule.d.ts +54 -0
  116. package/public/orm/models/namespaceModule.js +104 -0
  117. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  118. package/public/orm/models/orgLimitEvent.js +45 -0
  119. package/public/orm/models/storageLogModule.d.ts +54 -0
  120. package/public/orm/models/storageLogModule.js +104 -0
  121. package/public/orm/models/transferLogModule.d.ts +54 -0
  122. package/public/orm/models/transferLogModule.js +104 -0
  123. package/public/orm/mutation/index.d.ts +69 -133
  124. package/public/orm/mutation/index.js +78 -174
  125. package/public/orm/query/index.d.ts +22 -71
  126. package/public/orm/query/index.js +36 -124
  127. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  128. package/auth/orm/models/auditLog.d.ts +0 -54
  129. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  130. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  131. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  132. package/esm/public/orm/models/agentTask.d.ts +0 -54
  133. package/esm/public/orm/models/agentThread.d.ts +0 -54
  134. package/esm/public/orm/models/auditLog.d.ts +0 -54
  135. package/esm/public/orm/models/commit.d.ts +0 -54
  136. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  137. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  138. package/esm/public/orm/models/getAllRecord.js +0 -55
  139. package/esm/public/orm/models/object.d.ts +0 -54
  140. package/esm/public/orm/models/object.js +0 -90
  141. package/esm/public/orm/models/ref.d.ts +0 -54
  142. package/esm/public/orm/models/ref.js +0 -100
  143. package/esm/public/orm/models/store.d.ts +0 -54
  144. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  145. package/esm/public/orm/models/usageSnapshot.js +0 -100
  146. package/public/orm/models/agentMessage.d.ts +0 -54
  147. package/public/orm/models/agentTask.d.ts +0 -54
  148. package/public/orm/models/agentThread.d.ts +0 -54
  149. package/public/orm/models/auditLog.d.ts +0 -54
  150. package/public/orm/models/auditLog.js +0 -104
  151. package/public/orm/models/commit.d.ts +0 -54
  152. package/public/orm/models/commit.js +0 -104
  153. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  154. package/public/orm/models/getAllRecord.d.ts +0 -30
  155. package/public/orm/models/getAllRecord.js +0 -59
  156. package/public/orm/models/object.d.ts +0 -54
  157. package/public/orm/models/object.js +0 -94
  158. package/public/orm/models/ref.d.ts +0 -54
  159. package/public/orm/models/store.d.ts +0 -54
  160. package/public/orm/models/store.js +0 -104
  161. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamespaceModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class NamespaceModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('NamespaceModule', 'namespaceModules', 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
+ }, 'NamespaceModuleFilter', 'NamespaceModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'NamespaceModule',
25
+ fieldName: 'namespaceModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('NamespaceModule', 'namespaceModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'NamespaceModuleFilter', 'NamespaceModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'NamespaceModule',
39
+ fieldName: 'namespaceModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ namespaceModule: data.namespaceModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('NamespaceModule', 'namespaceModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'NamespaceModuleFilter', 'NamespaceModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'NamespaceModule',
60
+ fieldName: 'namespaceModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ namespaceModule: data.namespaceModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('NamespaceModule', 'createNamespaceModule', 'namespaceModule', args.select, args.data, 'CreateNamespaceModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'NamespaceModule',
74
+ fieldName: 'createNamespaceModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('NamespaceModule', 'updateNamespaceModule', 'namespaceModule', args.select, args.where.id, args.data, 'UpdateNamespaceModuleInput', 'id', 'namespaceModulePatch', input_types_1.connectionFieldsMap);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'NamespaceModule',
85
+ fieldName: 'updateNamespaceModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('NamespaceModule', 'deleteNamespaceModule', 'namespaceModule', {
92
+ id: args.where.id,
93
+ }, 'DeleteNamespaceModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'NamespaceModule',
98
+ fieldName: 'deleteNamespaceModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.NamespaceModuleModel = NamespaceModuleModel;
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { OrmClient } from '../client';
7
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';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { OrgLimitEventWithRelations, OrgLimitEventSelect, OrgLimitEventFilter, OrgLimitEventOrderBy, CreateOrgLimitEventInput, OrgLimitEventPatch } from '../input-types';
10
10
  export declare class OrgLimitEventModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -20,6 +20,12 @@ export declare class OrgLimitEventModel {
20
20
  } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
21
21
  orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S> | null;
22
22
  }>;
23
+ findOne<S extends OrgLimitEventSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
27
+ orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S> | null;
28
+ }>;
23
29
  create<S extends OrgLimitEventSelect>(args: CreateArgs<S, CreateOrgLimitEventInput['orgLimitEvent']> & {
24
30
  select: S;
25
31
  } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
@@ -27,4 +33,22 @@ export declare class OrgLimitEventModel {
27
33
  orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
28
34
  };
29
35
  }>;
36
+ update<S extends OrgLimitEventSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, OrgLimitEventPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
41
+ updateOrgLimitEvent: {
42
+ orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends OrgLimitEventSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
50
+ deleteOrgLimitEvent: {
51
+ orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
52
+ };
53
+ }>;
30
54
  }
@@ -44,6 +44,27 @@ class OrgLimitEventModel {
44
44
  }),
45
45
  });
46
46
  }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgLimitEvent', 'orgLimitEvents', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'OrgLimitEventFilter', 'OrgLimitEventOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'OrgLimitEvent',
60
+ fieldName: 'orgLimitEvent',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ orgLimitEvent: data.orgLimitEvents?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
47
68
  create(args) {
48
69
  const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgLimitEvent', 'createOrgLimitEvent', 'orgLimitEvent', args.select, args.data, 'CreateOrgLimitEventInput', input_types_1.connectionFieldsMap);
49
70
  return new query_builder_1.QueryBuilder({
@@ -55,5 +76,29 @@ class OrgLimitEventModel {
55
76
  variables,
56
77
  });
57
78
  }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgLimitEvent', 'updateOrgLimitEvent', 'orgLimitEvent', args.select, args.where.id, args.data, 'UpdateOrgLimitEventInput', 'id', 'orgLimitEventPatch', input_types_1.connectionFieldsMap);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'OrgLimitEvent',
85
+ fieldName: 'updateOrgLimitEvent',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgLimitEvent', 'deleteOrgLimitEvent', 'orgLimitEvent', {
92
+ id: args.where.id,
93
+ }, 'DeleteOrgLimitEventInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'OrgLimitEvent',
98
+ fieldName: 'deleteOrgLimitEvent',
99
+ document,
100
+ variables,
101
+ });
102
+ }
58
103
  }
59
104
  exports.OrgLimitEventModel = OrgLimitEventModel;
@@ -0,0 +1,54 @@
1
+ /**
2
+ * StorageLogModule 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 { StorageLogModuleWithRelations, StorageLogModuleSelect, StorageLogModuleFilter, StorageLogModuleOrderBy, CreateStorageLogModuleInput, StorageLogModulePatch } from '../input-types';
10
+ export declare class StorageLogModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends StorageLogModuleSelect>(args: FindManyArgs<S, StorageLogModuleFilter, StorageLogModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
16
+ storageLogModules: ConnectionResult<InferSelectResult<StorageLogModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends StorageLogModuleSelect>(args: FindFirstArgs<S, StorageLogModuleFilter, StorageLogModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
21
+ storageLogModule: InferSelectResult<StorageLogModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends StorageLogModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
27
+ storageLogModule: InferSelectResult<StorageLogModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends StorageLogModuleSelect>(args: CreateArgs<S, CreateStorageLogModuleInput['storageLogModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
32
+ createStorageLogModule: {
33
+ storageLogModule: InferSelectResult<StorageLogModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends StorageLogModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, StorageLogModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
41
+ updateStorageLogModule: {
42
+ storageLogModule: InferSelectResult<StorageLogModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends StorageLogModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, StorageLogModuleSelect>): QueryBuilder<{
50
+ deleteStorageLogModule: {
51
+ storageLogModule: InferSelectResult<StorageLogModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StorageLogModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class StorageLogModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('StorageLogModule', 'storageLogModules', 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
+ }, 'StorageLogModuleFilter', 'StorageLogModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'StorageLogModule',
25
+ fieldName: 'storageLogModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('StorageLogModule', 'storageLogModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'StorageLogModuleFilter', 'StorageLogModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'StorageLogModule',
39
+ fieldName: 'storageLogModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ storageLogModule: data.storageLogModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('StorageLogModule', 'storageLogModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'StorageLogModuleFilter', 'StorageLogModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'StorageLogModule',
60
+ fieldName: 'storageLogModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ storageLogModule: data.storageLogModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('StorageLogModule', 'createStorageLogModule', 'storageLogModule', args.select, args.data, 'CreateStorageLogModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'StorageLogModule',
74
+ fieldName: 'createStorageLogModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('StorageLogModule', 'updateStorageLogModule', 'storageLogModule', args.select, args.where.id, args.data, 'UpdateStorageLogModuleInput', 'id', 'storageLogModulePatch', input_types_1.connectionFieldsMap);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'StorageLogModule',
85
+ fieldName: 'updateStorageLogModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('StorageLogModule', 'deleteStorageLogModule', 'storageLogModule', {
92
+ id: args.where.id,
93
+ }, 'DeleteStorageLogModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'StorageLogModule',
98
+ fieldName: 'deleteStorageLogModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.StorageLogModuleModel = StorageLogModuleModel;
@@ -0,0 +1,54 @@
1
+ /**
2
+ * TransferLogModule 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 { TransferLogModuleWithRelations, TransferLogModuleSelect, TransferLogModuleFilter, TransferLogModuleOrderBy, CreateTransferLogModuleInput, TransferLogModulePatch } from '../input-types';
10
+ export declare class TransferLogModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends TransferLogModuleSelect>(args: FindManyArgs<S, TransferLogModuleFilter, TransferLogModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
16
+ transferLogModules: ConnectionResult<InferSelectResult<TransferLogModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends TransferLogModuleSelect>(args: FindFirstArgs<S, TransferLogModuleFilter, TransferLogModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
21
+ transferLogModule: InferSelectResult<TransferLogModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends TransferLogModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
27
+ transferLogModule: InferSelectResult<TransferLogModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends TransferLogModuleSelect>(args: CreateArgs<S, CreateTransferLogModuleInput['transferLogModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
32
+ createTransferLogModule: {
33
+ transferLogModule: InferSelectResult<TransferLogModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends TransferLogModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, TransferLogModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
41
+ updateTransferLogModule: {
42
+ transferLogModule: InferSelectResult<TransferLogModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends TransferLogModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, TransferLogModuleSelect>): QueryBuilder<{
50
+ deleteTransferLogModule: {
51
+ transferLogModule: InferSelectResult<TransferLogModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferLogModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class TransferLogModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('TransferLogModule', 'transferLogModules', 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
+ }, 'TransferLogModuleFilter', 'TransferLogModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'TransferLogModule',
25
+ fieldName: 'transferLogModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('TransferLogModule', 'transferLogModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'TransferLogModuleFilter', 'TransferLogModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'TransferLogModule',
39
+ fieldName: 'transferLogModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ transferLogModule: data.transferLogModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('TransferLogModule', 'transferLogModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'TransferLogModuleFilter', 'TransferLogModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'TransferLogModule',
60
+ fieldName: 'transferLogModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ transferLogModule: data.transferLogModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('TransferLogModule', 'createTransferLogModule', 'transferLogModule', args.select, args.data, 'CreateTransferLogModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'TransferLogModule',
74
+ fieldName: 'createTransferLogModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('TransferLogModule', 'updateTransferLogModule', 'transferLogModule', args.select, args.where.id, args.data, 'UpdateTransferLogModuleInput', 'id', 'transferLogModulePatch', input_types_1.connectionFieldsMap);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'TransferLogModule',
85
+ fieldName: 'updateTransferLogModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('TransferLogModule', 'deleteTransferLogModule', 'transferLogModule', {
92
+ id: args.where.id,
93
+ }, 'DeleteTransferLogModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'TransferLogModule',
98
+ fieldName: 'deleteTransferLogModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.TransferLogModuleModel = TransferLogModuleModel;