@constructive-sdk/cli 0.9.2 → 0.10.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 (276) hide show
  1. package/README.md +0 -8
  2. package/admin/cli/commands/app-level-requirement.js +0 -2
  3. package/admin/cli/commands/app-level.js +0 -2
  4. package/admin/cli/commands/app-permission.js +0 -2
  5. package/admin/cli/commands/invite.js +0 -2
  6. package/admin/cli/commands/membership-type.js +0 -3
  7. package/admin/cli/commands/org-chart-edge-grant.js +3 -3
  8. package/admin/cli/commands/org-chart-edge.js +0 -2
  9. package/admin/cli/commands/org-invite.js +0 -2
  10. package/admin/cli/commands/org-permission.js +0 -2
  11. package/admin/orm/input-types.d.ts +33 -127
  12. package/auth/cli/commands/audit-log.js +0 -2
  13. package/auth/cli/commands/connected-account.js +0 -3
  14. package/auth/cli/commands/crypto-address.js +0 -2
  15. package/auth/cli/commands/phone-number.js +0 -3
  16. package/auth/cli/commands.js +7 -7
  17. package/auth/cli/executor.d.ts +3 -3
  18. package/auth/orm/index.d.ts +6 -6
  19. package/auth/orm/index.js +6 -6
  20. package/auth/orm/input-types.d.ts +279 -327
  21. package/auth/orm/input-types.js +9 -1
  22. package/auth/orm/models/index.d.ts +3 -3
  23. package/auth/orm/models/index.js +7 -7
  24. package/esm/admin/cli/commands/app-level-requirement.js +0 -2
  25. package/esm/admin/cli/commands/app-level.js +0 -2
  26. package/esm/admin/cli/commands/app-permission.js +0 -2
  27. package/esm/admin/cli/commands/invite.js +0 -2
  28. package/esm/admin/cli/commands/membership-type.js +0 -3
  29. package/esm/admin/cli/commands/org-chart-edge-grant.js +3 -3
  30. package/esm/admin/cli/commands/org-chart-edge.js +0 -2
  31. package/esm/admin/cli/commands/org-invite.js +0 -2
  32. package/esm/admin/cli/commands/org-permission.js +0 -2
  33. package/esm/admin/orm/input-types.d.ts +33 -127
  34. package/esm/auth/cli/commands/audit-log.js +0 -2
  35. package/esm/auth/cli/commands/connected-account.js +0 -3
  36. package/esm/auth/cli/commands/crypto-address.js +0 -2
  37. package/esm/auth/cli/commands/phone-number.js +0 -3
  38. package/esm/auth/cli/commands.js +7 -7
  39. package/esm/auth/cli/executor.d.ts +3 -3
  40. package/esm/auth/orm/index.d.ts +6 -6
  41. package/esm/auth/orm/index.js +6 -6
  42. package/esm/auth/orm/input-types.d.ts +279 -327
  43. package/esm/auth/orm/input-types.js +9 -1
  44. package/esm/auth/orm/models/index.d.ts +3 -3
  45. package/esm/auth/orm/models/index.js +3 -3
  46. package/esm/index.d.ts +3 -3
  47. package/esm/index.js +3 -3
  48. package/esm/objects/cli/commands/commit.js +0 -2
  49. package/esm/objects/cli/commands/ref.js +0 -2
  50. package/esm/objects/cli/commands/store.js +0 -2
  51. package/esm/objects/orm/input-types.d.ts +17 -48
  52. package/esm/public/cli/commands/accept-database-transfer.d.ts +8 -0
  53. package/esm/public/cli/commands/accept-database-transfer.js +34 -0
  54. package/esm/public/cli/commands/api-module.js +0 -2
  55. package/esm/public/cli/commands/api.js +0 -5
  56. package/esm/public/cli/commands/app-level-requirement.js +0 -2
  57. package/esm/public/cli/commands/app-level.js +0 -2
  58. package/esm/public/cli/commands/app-permission.js +0 -2
  59. package/esm/public/cli/commands/app.js +0 -4
  60. package/esm/public/cli/commands/ast-migration.js +0 -2
  61. package/esm/public/cli/commands/audit-log.js +0 -2
  62. package/esm/public/cli/commands/blueprint-template.d.ts +8 -0
  63. package/esm/public/cli/commands/blueprint-template.js +549 -0
  64. package/esm/public/cli/commands/{uuid-module.d.ts → blueprint.d.ts} +1 -1
  65. package/esm/public/cli/commands/blueprint.js +484 -0
  66. package/esm/public/cli/commands/cancel-database-transfer.d.ts +8 -0
  67. package/esm/public/cli/commands/cancel-database-transfer.js +34 -0
  68. package/esm/public/cli/commands/check-constraint.js +0 -4
  69. package/esm/public/cli/commands/commit.js +0 -2
  70. package/esm/public/cli/commands/connected-account.js +0 -3
  71. package/esm/public/cli/commands/connected-accounts-module.js +0 -2
  72. package/esm/public/cli/commands/construct-blueprint.d.ts +8 -0
  73. package/esm/public/cli/commands/construct-blueprint.js +34 -0
  74. package/esm/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
  75. package/esm/public/cli/commands/copy-template-to-blueprint.js +34 -0
  76. package/esm/public/cli/commands/crypto-address.js +0 -2
  77. package/esm/public/cli/commands/crypto-addresses-module.js +0 -3
  78. package/esm/public/cli/commands/crypto-auth-module.js +0 -7
  79. package/esm/public/cli/commands/database-provision-module.js +0 -6
  80. package/esm/public/cli/commands/database-transfer.d.ts +8 -0
  81. package/esm/public/cli/commands/database-transfer.js +425 -0
  82. package/esm/public/cli/commands/database.js +0 -4
  83. package/esm/public/cli/commands/default-privilege.js +0 -4
  84. package/esm/public/cli/commands/denormalized-table-field.js +0 -2
  85. package/esm/public/cli/commands/emails-module.js +0 -2
  86. package/esm/public/cli/commands/embedding-chunk.d.ts +8 -0
  87. package/esm/public/cli/commands/embedding-chunk.js +513 -0
  88. package/esm/public/cli/commands/encrypted-secrets-module.js +0 -2
  89. package/{public/cli/commands/uuid-module.d.ts → esm/public/cli/commands/enum.d.ts} +1 -1
  90. package/esm/public/cli/commands/{uuid-module.js → enum.js} +175 -33
  91. package/esm/public/cli/commands/field-module.js +0 -2
  92. package/esm/public/cli/commands/field.js +21 -7
  93. package/esm/public/cli/commands/foreign-key-constraint.js +0 -7
  94. package/esm/public/cli/commands/hierarchy-module.js +0 -11
  95. package/esm/public/cli/commands/index.js +0 -4
  96. package/esm/public/cli/commands/invite.js +0 -2
  97. package/esm/public/cli/commands/invites-module.js +0 -5
  98. package/esm/public/cli/commands/levels-module.js +0 -16
  99. package/esm/public/cli/commands/limits-module.js +0 -10
  100. package/esm/public/cli/commands/membership-type.js +0 -3
  101. package/esm/public/cli/commands/membership-types-module.js +0 -2
  102. package/esm/public/cli/commands/memberships-module.js +0 -13
  103. package/esm/public/cli/commands/node-type-registry.js +0 -6
  104. package/esm/public/cli/commands/org-chart-edge-grant.js +3 -3
  105. package/esm/public/cli/commands/org-chart-edge.js +0 -2
  106. package/esm/public/cli/commands/org-invite.js +0 -2
  107. package/esm/public/cli/commands/org-permission.js +0 -2
  108. package/esm/public/cli/commands/permissions-module.js +0 -8
  109. package/esm/public/cli/commands/phone-number.js +0 -3
  110. package/esm/public/cli/commands/phone-numbers-module.js +0 -2
  111. package/esm/public/cli/commands/policy.js +0 -6
  112. package/esm/public/cli/commands/primary-key-constraint.js +0 -4
  113. package/esm/public/cli/commands/profiles-module.js +0 -6
  114. package/esm/public/cli/commands/ref.js +0 -2
  115. package/esm/public/cli/commands/reject-database-transfer.d.ts +8 -0
  116. package/esm/public/cli/commands/reject-database-transfer.js +34 -0
  117. package/esm/public/cli/commands/relation-provision.js +63 -11
  118. package/esm/public/cli/commands/rls-module.js +0 -5
  119. package/esm/public/cli/commands/schema-grant.js +0 -2
  120. package/esm/public/cli/commands/schema.js +0 -6
  121. package/esm/public/cli/commands/secrets-module.js +0 -2
  122. package/esm/public/cli/commands/secure-table-provision.js +0 -6
  123. package/esm/public/cli/commands/sessions-module.js +0 -4
  124. package/esm/public/cli/commands/site-metadatum.js +0 -3
  125. package/esm/public/cli/commands/site-module.js +0 -2
  126. package/esm/public/cli/commands/site.js +0 -4
  127. package/esm/public/cli/commands/sql-migration.js +0 -7
  128. package/esm/public/cli/commands/store.js +0 -2
  129. package/esm/public/cli/commands/table-grant.js +0 -3
  130. package/esm/public/cli/commands/table-template-module.js +0 -3
  131. package/esm/public/cli/commands/table.js +0 -7
  132. package/esm/public/cli/commands/trigger-function.js +0 -3
  133. package/esm/public/cli/commands/trigger.js +0 -5
  134. package/esm/public/cli/commands/unique-constraint.js +0 -5
  135. package/esm/public/cli/commands/user-auth-module.js +0 -17
  136. package/esm/public/cli/commands/users-module.js +0 -3
  137. package/esm/public/cli/commands/view-grant.js +0 -3
  138. package/esm/public/cli/commands/view-rule.js +0 -4
  139. package/esm/public/cli/commands/view.js +0 -5
  140. package/esm/public/cli/commands.js +53 -35
  141. package/esm/public/cli/executor.d.ts +68 -39
  142. package/esm/public/orm/index.d.ts +81 -48
  143. package/esm/public/orm/index.js +26 -18
  144. package/esm/public/orm/input-types.d.ts +2447 -2980
  145. package/esm/public/orm/input-types.js +26 -1
  146. package/esm/public/orm/models/blueprint.d.ts +56 -0
  147. package/esm/public/orm/models/blueprint.js +94 -0
  148. package/esm/public/orm/models/blueprintTemplate.d.ts +56 -0
  149. package/esm/public/orm/models/blueprintTemplate.js +94 -0
  150. package/esm/public/orm/models/databaseTransfer.d.ts +56 -0
  151. package/esm/public/orm/models/databaseTransfer.js +94 -0
  152. package/esm/public/orm/models/embeddingChunk.d.ts +56 -0
  153. package/esm/public/orm/models/embeddingChunk.js +94 -0
  154. package/esm/public/orm/models/enum.d.ts +56 -0
  155. package/esm/public/orm/models/{uuidModule.js → enum.js} +23 -23
  156. package/esm/public/orm/models/index.d.ts +13 -9
  157. package/esm/public/orm/models/index.js +13 -9
  158. package/esm/public/orm/mutation/index.d.ts +98 -50
  159. package/esm/public/orm/mutation/index.js +126 -66
  160. package/index.d.ts +3 -3
  161. package/index.js +8 -8
  162. package/objects/cli/commands/commit.js +0 -2
  163. package/objects/cli/commands/ref.js +0 -2
  164. package/objects/cli/commands/store.js +0 -2
  165. package/objects/orm/input-types.d.ts +17 -48
  166. package/package.json +3 -3
  167. package/public/cli/commands/accept-database-transfer.d.ts +8 -0
  168. package/public/cli/commands/accept-database-transfer.js +36 -0
  169. package/public/cli/commands/api-module.js +0 -2
  170. package/public/cli/commands/api.js +0 -5
  171. package/public/cli/commands/app-level-requirement.js +0 -2
  172. package/public/cli/commands/app-level.js +0 -2
  173. package/public/cli/commands/app-permission.js +0 -2
  174. package/public/cli/commands/app.js +0 -4
  175. package/public/cli/commands/ast-migration.js +0 -2
  176. package/public/cli/commands/audit-log.js +0 -2
  177. package/public/cli/commands/blueprint-template.d.ts +8 -0
  178. package/public/cli/commands/blueprint-template.js +551 -0
  179. package/public/cli/commands/blueprint.d.ts +8 -0
  180. package/public/cli/commands/blueprint.js +486 -0
  181. package/public/cli/commands/cancel-database-transfer.d.ts +8 -0
  182. package/public/cli/commands/cancel-database-transfer.js +36 -0
  183. package/public/cli/commands/check-constraint.js +0 -4
  184. package/public/cli/commands/commit.js +0 -2
  185. package/public/cli/commands/connected-account.js +0 -3
  186. package/public/cli/commands/connected-accounts-module.js +0 -2
  187. package/public/cli/commands/construct-blueprint.d.ts +8 -0
  188. package/public/cli/commands/construct-blueprint.js +36 -0
  189. package/public/cli/commands/copy-template-to-blueprint.d.ts +8 -0
  190. package/public/cli/commands/copy-template-to-blueprint.js +36 -0
  191. package/public/cli/commands/crypto-address.js +0 -2
  192. package/public/cli/commands/crypto-addresses-module.js +0 -3
  193. package/public/cli/commands/crypto-auth-module.js +0 -7
  194. package/public/cli/commands/database-provision-module.js +0 -6
  195. package/public/cli/commands/database-transfer.d.ts +8 -0
  196. package/public/cli/commands/database-transfer.js +427 -0
  197. package/public/cli/commands/database.js +0 -4
  198. package/public/cli/commands/default-privilege.js +0 -4
  199. package/public/cli/commands/denormalized-table-field.js +0 -2
  200. package/public/cli/commands/emails-module.js +0 -2
  201. package/public/cli/commands/embedding-chunk.d.ts +8 -0
  202. package/public/cli/commands/embedding-chunk.js +515 -0
  203. package/public/cli/commands/encrypted-secrets-module.js +0 -2
  204. package/public/cli/commands/enum.d.ts +8 -0
  205. package/public/cli/commands/{uuid-module.js → enum.js} +175 -33
  206. package/public/cli/commands/field-module.js +0 -2
  207. package/public/cli/commands/field.js +21 -7
  208. package/public/cli/commands/foreign-key-constraint.js +0 -7
  209. package/public/cli/commands/hierarchy-module.js +0 -11
  210. package/public/cli/commands/index.js +0 -4
  211. package/public/cli/commands/invite.js +0 -2
  212. package/public/cli/commands/invites-module.js +0 -5
  213. package/public/cli/commands/levels-module.js +0 -16
  214. package/public/cli/commands/limits-module.js +0 -10
  215. package/public/cli/commands/membership-type.js +0 -3
  216. package/public/cli/commands/membership-types-module.js +0 -2
  217. package/public/cli/commands/memberships-module.js +0 -13
  218. package/public/cli/commands/node-type-registry.js +0 -6
  219. package/public/cli/commands/org-chart-edge-grant.js +3 -3
  220. package/public/cli/commands/org-chart-edge.js +0 -2
  221. package/public/cli/commands/org-invite.js +0 -2
  222. package/public/cli/commands/org-permission.js +0 -2
  223. package/public/cli/commands/permissions-module.js +0 -8
  224. package/public/cli/commands/phone-number.js +0 -3
  225. package/public/cli/commands/phone-numbers-module.js +0 -2
  226. package/public/cli/commands/policy.js +0 -6
  227. package/public/cli/commands/primary-key-constraint.js +0 -4
  228. package/public/cli/commands/profiles-module.js +0 -6
  229. package/public/cli/commands/ref.js +0 -2
  230. package/public/cli/commands/reject-database-transfer.d.ts +8 -0
  231. package/public/cli/commands/reject-database-transfer.js +36 -0
  232. package/public/cli/commands/relation-provision.js +63 -11
  233. package/public/cli/commands/rls-module.js +0 -5
  234. package/public/cli/commands/schema-grant.js +0 -2
  235. package/public/cli/commands/schema.js +0 -6
  236. package/public/cli/commands/secrets-module.js +0 -2
  237. package/public/cli/commands/secure-table-provision.js +0 -6
  238. package/public/cli/commands/sessions-module.js +0 -4
  239. package/public/cli/commands/site-metadatum.js +0 -3
  240. package/public/cli/commands/site-module.js +0 -2
  241. package/public/cli/commands/site.js +0 -4
  242. package/public/cli/commands/sql-migration.js +0 -7
  243. package/public/cli/commands/store.js +0 -2
  244. package/public/cli/commands/table-grant.js +0 -3
  245. package/public/cli/commands/table-template-module.js +0 -3
  246. package/public/cli/commands/table.js +0 -7
  247. package/public/cli/commands/trigger-function.js +0 -3
  248. package/public/cli/commands/trigger.js +0 -5
  249. package/public/cli/commands/unique-constraint.js +0 -5
  250. package/public/cli/commands/user-auth-module.js +0 -17
  251. package/public/cli/commands/users-module.js +0 -3
  252. package/public/cli/commands/view-grant.js +0 -3
  253. package/public/cli/commands/view-rule.js +0 -4
  254. package/public/cli/commands/view.js +0 -5
  255. package/public/cli/commands.js +53 -35
  256. package/public/cli/executor.d.ts +68 -39
  257. package/public/orm/index.d.ts +81 -48
  258. package/public/orm/index.js +26 -18
  259. package/public/orm/input-types.d.ts +2447 -2980
  260. package/public/orm/input-types.js +26 -1
  261. package/public/orm/models/blueprint.d.ts +56 -0
  262. package/public/orm/models/blueprint.js +98 -0
  263. package/public/orm/models/blueprintTemplate.d.ts +56 -0
  264. package/public/orm/models/blueprintTemplate.js +98 -0
  265. package/public/orm/models/databaseTransfer.d.ts +56 -0
  266. package/public/orm/models/databaseTransfer.js +98 -0
  267. package/public/orm/models/embeddingChunk.d.ts +56 -0
  268. package/public/orm/models/embeddingChunk.js +98 -0
  269. package/public/orm/models/enum.d.ts +56 -0
  270. package/public/orm/models/{uuidModule.js → enum.js} +25 -25
  271. package/public/orm/models/index.d.ts +13 -9
  272. package/public/orm/models/index.js +29 -21
  273. package/public/orm/mutation/index.d.ts +98 -50
  274. package/public/orm/mutation/index.js +126 -66
  275. package/esm/public/orm/models/uuidModule.d.ts +0 -56
  276. package/public/orm/models/uuidModule.d.ts +0 -56
@@ -0,0 +1,94 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class EmbeddingChunkModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('EmbeddingChunk', 'embeddingChunks', 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
+ }, 'EmbeddingChunkFilter', 'EmbeddingChunkOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'EmbeddingChunk',
22
+ fieldName: 'embeddingChunks',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('EmbeddingChunk', 'embeddingChunks', args.select, {
29
+ where: args?.where,
30
+ }, 'EmbeddingChunkFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'EmbeddingChunk',
35
+ fieldName: 'embeddingChunks',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('EmbeddingChunk', 'embeddingChunks', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'EmbeddingChunkFilter', 'EmbeddingChunkOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'EmbeddingChunk',
53
+ fieldName: 'embeddingChunk',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ embeddingChunk: data.embeddingChunks?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('EmbeddingChunk', 'createEmbeddingChunk', 'embeddingChunk', args.select, args.data, 'CreateEmbeddingChunkInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'EmbeddingChunk',
67
+ fieldName: 'createEmbeddingChunk',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('EmbeddingChunk', 'updateEmbeddingChunk', 'embeddingChunk', args.select, args.where.id, args.data, 'UpdateEmbeddingChunkInput', 'id', 'embeddingChunkPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'EmbeddingChunk',
78
+ fieldName: 'updateEmbeddingChunk',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('EmbeddingChunk', 'deleteEmbeddingChunk', 'embeddingChunk', args.where.id, 'DeleteEmbeddingChunkInput', 'id', args.select, connectionFieldsMap);
85
+ return new QueryBuilder({
86
+ client: this.client,
87
+ operation: 'mutation',
88
+ operationName: 'EmbeddingChunk',
89
+ fieldName: 'deleteEmbeddingChunk',
90
+ document,
91
+ variables,
92
+ });
93
+ }
94
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Enum 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 { EnumWithRelations, EnumSelect, EnumFilter, EnumOrderBy, CreateEnumInput, EnumPatch } from '../input-types';
10
+ export declare class EnumModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends EnumSelect>(args: FindManyArgs<S, EnumFilter, never, EnumOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
16
+ enums: ConnectionResult<InferSelectResult<EnumWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends EnumSelect>(args: FindFirstArgs<S, EnumFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
21
+ enums: {
22
+ nodes: InferSelectResult<EnumWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends EnumSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
29
+ enum: InferSelectResult<EnumWithRelations, S> | null;
30
+ }>;
31
+ create<S extends EnumSelect>(args: CreateArgs<S, CreateEnumInput['enum']> & {
32
+ select: S;
33
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
34
+ createEnum: {
35
+ enum: InferSelectResult<EnumWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends EnumSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, EnumPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
43
+ updateEnum: {
44
+ enum: InferSelectResult<EnumWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends EnumSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, EnumSelect>): QueryBuilder<{
52
+ deleteEnum: {
53
+ enum: InferSelectResult<EnumWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -1,12 +1,12 @@
1
1
  import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
- export class UuidModuleModel {
3
+ export class EnumModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('UuidModule', 'uuidModules', args.select, {
9
+ const { document, variables } = buildFindManyDocument('Enum', 'enums', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,79 +14,79 @@ export class UuidModuleModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'UuidModuleFilter', 'UuidModuleOrderBy', connectionFieldsMap);
17
+ }, 'EnumFilter', 'EnumOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'UuidModule',
22
- fieldName: 'uuidModules',
21
+ operationName: 'Enum',
22
+ fieldName: 'enums',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('UuidModule', 'uuidModules', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('Enum', 'enums', args.select, {
29
29
  where: args?.where,
30
- }, 'UuidModuleFilter', connectionFieldsMap);
30
+ }, 'EnumFilter', connectionFieldsMap);
31
31
  return new QueryBuilder({
32
32
  client: this.client,
33
33
  operation: 'query',
34
- operationName: 'UuidModule',
35
- fieldName: 'uuidModules',
34
+ operationName: 'Enum',
35
+ fieldName: 'enums',
36
36
  document,
37
37
  variables,
38
38
  });
39
39
  }
40
40
  findOne(args) {
41
- const { document, variables } = buildFindManyDocument('UuidModule', 'uuidModules', args.select, {
41
+ const { document, variables } = buildFindManyDocument('Enum', 'enums', args.select, {
42
42
  where: {
43
43
  id: {
44
44
  equalTo: args.id,
45
45
  },
46
46
  },
47
47
  first: 1,
48
- }, 'UuidModuleFilter', 'UuidModuleOrderBy', connectionFieldsMap);
48
+ }, 'EnumFilter', 'EnumOrderBy', connectionFieldsMap);
49
49
  return new QueryBuilder({
50
50
  client: this.client,
51
51
  operation: 'query',
52
- operationName: 'UuidModule',
53
- fieldName: 'uuidModule',
52
+ operationName: 'Enum',
53
+ fieldName: 'enum',
54
54
  document,
55
55
  variables,
56
56
  transform: (data) => ({
57
- uuidModule: data.uuidModules?.nodes?.[0] ?? null,
57
+ enum: data.enums?.nodes?.[0] ?? null,
58
58
  }),
59
59
  });
60
60
  }
61
61
  create(args) {
62
- const { document, variables } = buildCreateDocument('UuidModule', 'createUuidModule', 'uuidModule', args.select, args.data, 'CreateUuidModuleInput', connectionFieldsMap);
62
+ const { document, variables } = buildCreateDocument('Enum', 'createEnum', 'enum', args.select, args.data, 'CreateEnumInput', connectionFieldsMap);
63
63
  return new QueryBuilder({
64
64
  client: this.client,
65
65
  operation: 'mutation',
66
- operationName: 'UuidModule',
67
- fieldName: 'createUuidModule',
66
+ operationName: 'Enum',
67
+ fieldName: 'createEnum',
68
68
  document,
69
69
  variables,
70
70
  });
71
71
  }
72
72
  update(args) {
73
- const { document, variables } = buildUpdateByPkDocument('UuidModule', 'updateUuidModule', 'uuidModule', args.select, args.where.id, args.data, 'UpdateUuidModuleInput', 'id', 'uuidModulePatch', connectionFieldsMap);
73
+ const { document, variables } = buildUpdateByPkDocument('Enum', 'updateEnum', 'enum', args.select, args.where.id, args.data, 'UpdateEnumInput', 'id', 'enumPatch', connectionFieldsMap);
74
74
  return new QueryBuilder({
75
75
  client: this.client,
76
76
  operation: 'mutation',
77
- operationName: 'UuidModule',
78
- fieldName: 'updateUuidModule',
77
+ operationName: 'Enum',
78
+ fieldName: 'updateEnum',
79
79
  document,
80
80
  variables,
81
81
  });
82
82
  }
83
83
  delete(args) {
84
- const { document, variables } = buildDeleteByPkDocument('UuidModule', 'deleteUuidModule', 'uuidModule', args.where.id, 'DeleteUuidModuleInput', 'id', args.select, connectionFieldsMap);
84
+ const { document, variables } = buildDeleteByPkDocument('Enum', 'deleteEnum', 'enum', args.where.id, 'DeleteEnumInput', 'id', args.select, connectionFieldsMap);
85
85
  return new QueryBuilder({
86
86
  client: this.client,
87
87
  operation: 'mutation',
88
- operationName: 'UuidModule',
89
- fieldName: 'deleteUuidModule',
88
+ operationName: 'Enum',
89
+ fieldName: 'deleteEnum',
90
90
  document,
91
91
  variables,
92
92
  });
@@ -3,9 +3,9 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
+ export { GetAllRecordModel } from './getAllRecord';
6
7
  export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
7
8
  export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
8
- export { GetAllRecordModel } from './getAllRecord';
9
9
  export { ObjectModel } from './object';
10
10
  export { AppPermissionModel } from './appPermission';
11
11
  export { OrgPermissionModel } from './orgPermission';
@@ -27,11 +27,13 @@ export { ViewModel } from './view';
27
27
  export { ViewTableModel } from './viewTable';
28
28
  export { ViewGrantModel } from './viewGrant';
29
29
  export { ViewRuleModel } from './viewRule';
30
+ export { EmbeddingChunkModel } from './embeddingChunk';
30
31
  export { TableTemplateModuleModel } from './tableTemplateModule';
31
32
  export { SecureTableProvisionModel } from './secureTableProvision';
32
33
  export { RelationProvisionModel } from './relationProvision';
33
34
  export { SchemaGrantModel } from './schemaGrant';
34
35
  export { DefaultPrivilegeModel } from './defaultPrivilege';
36
+ export { EnumModel } from './enum';
35
37
  export { ApiSchemaModel } from './apiSchema';
36
38
  export { ApiModuleModel } from './apiModule';
37
39
  export { DomainModel } from './domain';
@@ -39,6 +41,7 @@ export { SiteMetadatumModel } from './siteMetadatum';
39
41
  export { SiteModuleModel } from './siteModule';
40
42
  export { SiteThemeModel } from './siteTheme';
41
43
  export { TriggerFunctionModel } from './triggerFunction';
44
+ export { DatabaseTransferModel } from './databaseTransfer';
42
45
  export { ApiModel } from './api';
43
46
  export { SiteModel } from './site';
44
47
  export { AppModel } from './app';
@@ -62,7 +65,8 @@ export { SecretsModuleModel } from './secretsModule';
62
65
  export { SessionsModuleModel } from './sessionsModule';
63
66
  export { UserAuthModuleModel } from './userAuthModule';
64
67
  export { UsersModuleModel } from './usersModule';
65
- export { UuidModuleModel } from './uuidModule';
68
+ export { BlueprintModel } from './blueprint';
69
+ export { BlueprintTemplateModel } from './blueprintTemplate';
66
70
  export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
67
71
  export { AppAdminGrantModel } from './appAdminGrant';
68
72
  export { AppOwnerGrantModel } from './appOwnerGrant';
@@ -74,34 +78,34 @@ export { OrgOwnerGrantModel } from './orgOwnerGrant';
74
78
  export { OrgGrantModel } from './orgGrant';
75
79
  export { OrgChartEdgeModel } from './orgChartEdge';
76
80
  export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
81
+ export { OrgPermissionDefaultModel } from './orgPermissionDefault';
77
82
  export { AppLimitModel } from './appLimit';
78
83
  export { OrgLimitModel } from './orgLimit';
79
84
  export { AppStepModel } from './appStep';
80
85
  export { AppAchievementModel } from './appAchievement';
86
+ export { AppLevelModel } from './appLevel';
87
+ export { EmailModel } from './email';
88
+ export { PhoneNumberModel } from './phoneNumber';
89
+ export { CryptoAddressModel } from './cryptoAddress';
90
+ export { ConnectedAccountModel } from './connectedAccount';
81
91
  export { InviteModel } from './invite';
82
92
  export { ClaimedInviteModel } from './claimedInvite';
83
93
  export { OrgInviteModel } from './orgInvite';
84
94
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
95
+ export { AuditLogModel } from './auditLog';
85
96
  export { RefModel } from './ref';
86
97
  export { StoreModel } from './store';
87
98
  export { AppPermissionDefaultModel } from './appPermissionDefault';
88
- export { CryptoAddressModel } from './cryptoAddress';
89
99
  export { RoleTypeModel } from './roleType';
90
- export { OrgPermissionDefaultModel } from './orgPermissionDefault';
91
- export { PhoneNumberModel } from './phoneNumber';
92
100
  export { AppLimitDefaultModel } from './appLimitDefault';
93
101
  export { OrgLimitDefaultModel } from './orgLimitDefault';
94
- export { ConnectedAccountModel } from './connectedAccount';
95
102
  export { NodeTypeRegistryModel } from './nodeTypeRegistry';
96
103
  export { MembershipTypeModel } from './membershipType';
97
104
  export { CommitModel } from './commit';
98
105
  export { AppMembershipDefaultModel } from './appMembershipDefault';
99
106
  export { RlsModuleModel } from './rlsModule';
100
107
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
101
- export { AuditLogModel } from './auditLog';
102
- export { AppLevelModel } from './appLevel';
103
108
  export { SqlMigrationModel } from './sqlMigration';
104
- export { EmailModel } from './email';
105
109
  export { UserModel } from './user';
106
110
  export { AstMigrationModel } from './astMigration';
107
111
  export { AppMembershipModel } from './appMembership';
@@ -3,9 +3,9 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
+ export { GetAllRecordModel } from './getAllRecord';
6
7
  export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
7
8
  export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
8
- export { GetAllRecordModel } from './getAllRecord';
9
9
  export { ObjectModel } from './object';
10
10
  export { AppPermissionModel } from './appPermission';
11
11
  export { OrgPermissionModel } from './orgPermission';
@@ -27,11 +27,13 @@ export { ViewModel } from './view';
27
27
  export { ViewTableModel } from './viewTable';
28
28
  export { ViewGrantModel } from './viewGrant';
29
29
  export { ViewRuleModel } from './viewRule';
30
+ export { EmbeddingChunkModel } from './embeddingChunk';
30
31
  export { TableTemplateModuleModel } from './tableTemplateModule';
31
32
  export { SecureTableProvisionModel } from './secureTableProvision';
32
33
  export { RelationProvisionModel } from './relationProvision';
33
34
  export { SchemaGrantModel } from './schemaGrant';
34
35
  export { DefaultPrivilegeModel } from './defaultPrivilege';
36
+ export { EnumModel } from './enum';
35
37
  export { ApiSchemaModel } from './apiSchema';
36
38
  export { ApiModuleModel } from './apiModule';
37
39
  export { DomainModel } from './domain';
@@ -39,6 +41,7 @@ export { SiteMetadatumModel } from './siteMetadatum';
39
41
  export { SiteModuleModel } from './siteModule';
40
42
  export { SiteThemeModel } from './siteTheme';
41
43
  export { TriggerFunctionModel } from './triggerFunction';
44
+ export { DatabaseTransferModel } from './databaseTransfer';
42
45
  export { ApiModel } from './api';
43
46
  export { SiteModel } from './site';
44
47
  export { AppModel } from './app';
@@ -62,7 +65,8 @@ export { SecretsModuleModel } from './secretsModule';
62
65
  export { SessionsModuleModel } from './sessionsModule';
63
66
  export { UserAuthModuleModel } from './userAuthModule';
64
67
  export { UsersModuleModel } from './usersModule';
65
- export { UuidModuleModel } from './uuidModule';
68
+ export { BlueprintModel } from './blueprint';
69
+ export { BlueprintTemplateModel } from './blueprintTemplate';
66
70
  export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
67
71
  export { AppAdminGrantModel } from './appAdminGrant';
68
72
  export { AppOwnerGrantModel } from './appOwnerGrant';
@@ -74,34 +78,34 @@ export { OrgOwnerGrantModel } from './orgOwnerGrant';
74
78
  export { OrgGrantModel } from './orgGrant';
75
79
  export { OrgChartEdgeModel } from './orgChartEdge';
76
80
  export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
81
+ export { OrgPermissionDefaultModel } from './orgPermissionDefault';
77
82
  export { AppLimitModel } from './appLimit';
78
83
  export { OrgLimitModel } from './orgLimit';
79
84
  export { AppStepModel } from './appStep';
80
85
  export { AppAchievementModel } from './appAchievement';
86
+ export { AppLevelModel } from './appLevel';
87
+ export { EmailModel } from './email';
88
+ export { PhoneNumberModel } from './phoneNumber';
89
+ export { CryptoAddressModel } from './cryptoAddress';
90
+ export { ConnectedAccountModel } from './connectedAccount';
81
91
  export { InviteModel } from './invite';
82
92
  export { ClaimedInviteModel } from './claimedInvite';
83
93
  export { OrgInviteModel } from './orgInvite';
84
94
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
95
+ export { AuditLogModel } from './auditLog';
85
96
  export { RefModel } from './ref';
86
97
  export { StoreModel } from './store';
87
98
  export { AppPermissionDefaultModel } from './appPermissionDefault';
88
- export { CryptoAddressModel } from './cryptoAddress';
89
99
  export { RoleTypeModel } from './roleType';
90
- export { OrgPermissionDefaultModel } from './orgPermissionDefault';
91
- export { PhoneNumberModel } from './phoneNumber';
92
100
  export { AppLimitDefaultModel } from './appLimitDefault';
93
101
  export { OrgLimitDefaultModel } from './orgLimitDefault';
94
- export { ConnectedAccountModel } from './connectedAccount';
95
102
  export { NodeTypeRegistryModel } from './nodeTypeRegistry';
96
103
  export { MembershipTypeModel } from './membershipType';
97
104
  export { CommitModel } from './commit';
98
105
  export { AppMembershipDefaultModel } from './appMembershipDefault';
99
106
  export { RlsModuleModel } from './rlsModule';
100
107
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
101
- export { AuditLogModel } from './auditLog';
102
- export { AppLevelModel } from './appLevel';
103
108
  export { SqlMigrationModel } from './sqlMigration';
104
- export { EmailModel } from './email';
105
109
  export { UserModel } from './user';
106
110
  export { AstMigrationModel } from './astMigration';
107
111
  export { AppMembershipModel } from './appMembership';