@constructive-io/sdk 0.29.8 → 0.30.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 (324) hide show
  1. package/README.md +1 -0
  2. package/agent/orm/input-types.d.ts +96 -8
  3. package/api/orm/index.d.ts +5 -15
  4. package/api/orm/index.js +2 -2
  5. package/api/orm/input-types.d.ts +250 -231
  6. package/api/orm/models/index.d.ts +1 -1
  7. package/api/orm/models/index.js +3 -3
  8. package/api/orm/mutation/index.d.ts +11 -36
  9. package/api/orm/mutation/index.js +6 -30
  10. package/auth/orm/index.d.ts +10 -5
  11. package/auth/orm/input-types.d.ts +54 -45
  12. package/auth/orm/models/principal.d.ts +1 -10
  13. package/auth/orm/models/principal.js +0 -13
  14. package/auth/orm/mutation/index.d.ts +17 -9
  15. package/auth/orm/mutation/index.js +24 -12
  16. package/compute/orm/index.d.ts +76 -17
  17. package/compute/orm/index.js +56 -12
  18. package/compute/orm/input-types.d.ts +5893 -1343
  19. package/compute/orm/input-types.js +17 -3
  20. package/compute/orm/models/dbPreset.d.ts +54 -0
  21. package/compute/orm/models/dbPreset.js +104 -0
  22. package/compute/orm/models/functionGraphCommit.d.ts +2 -2
  23. package/compute/orm/models/functionGraphCommit.js +2 -2
  24. package/compute/orm/models/functionGraphObject.d.ts +2 -2
  25. package/compute/orm/models/functionGraphObject.js +2 -2
  26. package/compute/orm/models/functionGraphRef.d.ts +2 -2
  27. package/compute/orm/models/functionGraphRef.js +2 -2
  28. package/compute/orm/models/index.d.ts +28 -6
  29. package/compute/orm/models/index.js +57 -13
  30. package/compute/orm/models/infraCommit.d.ts +56 -0
  31. package/compute/orm/models/infraCommit.js +107 -0
  32. package/compute/orm/models/infraGetAllRecord.d.ts +30 -0
  33. package/compute/orm/models/infraGetAllRecord.js +59 -0
  34. package/compute/orm/models/infraObject.d.ts +56 -0
  35. package/compute/orm/models/infraObject.js +97 -0
  36. package/compute/orm/models/infraRef.d.ts +56 -0
  37. package/compute/orm/models/infraRef.js +107 -0
  38. package/compute/orm/models/infraStore.d.ts +54 -0
  39. package/compute/orm/models/infraStore.js +104 -0
  40. package/compute/orm/models/integrationProvider.d.ts +54 -0
  41. package/{modules/orm/models/configSecretsModule.js → compute/orm/models/integrationProvider.js} +27 -27
  42. package/compute/orm/models/namespace.d.ts +54 -0
  43. package/compute/orm/models/namespace.js +104 -0
  44. package/compute/orm/models/namespaceEvent.d.ts +56 -0
  45. package/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +27 -27
  46. package/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
  47. package/compute/orm/models/platformFunctionApiBinding.js +104 -0
  48. package/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
  49. package/compute/orm/models/platformFunctionDefinition.js +104 -0
  50. package/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
  51. package/compute/orm/models/platformFunctionDeployment.js +104 -0
  52. package/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
  53. package/compute/orm/models/platformFunctionDeploymentEvent.js +107 -0
  54. package/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
  55. package/compute/orm/models/platformFunctionExecutionLog.js +107 -0
  56. package/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
  57. package/compute/orm/models/platformFunctionInvocation.js +107 -0
  58. package/compute/orm/models/platformResource.d.ts +54 -0
  59. package/compute/orm/models/{secretDefinition.js → platformResource.js} +27 -27
  60. package/compute/orm/models/platformResourceDefinition.d.ts +54 -0
  61. package/compute/orm/models/platformResourceDefinition.js +104 -0
  62. package/compute/orm/models/platformResourceEvent.d.ts +56 -0
  63. package/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +27 -27
  64. package/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
  65. package/compute/orm/models/platformResourceStatusCheck.js +104 -0
  66. package/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
  67. package/compute/orm/models/platformResourcesRequirementsState.js +59 -0
  68. package/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
  69. package/compute/orm/models/platformResourcesResolvedRequirement.js +59 -0
  70. package/compute/orm/models/resourceDefinition.d.ts +54 -0
  71. package/compute/orm/models/resourceDefinition.js +104 -0
  72. package/compute/orm/models/resourceStatusCheck.d.ts +54 -0
  73. package/compute/orm/models/resourceStatusCheck.js +104 -0
  74. package/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
  75. package/compute/orm/models/resourcesRequirementsState.js +59 -0
  76. package/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
  77. package/compute/orm/models/resourcesResolvedRequirement.js +59 -0
  78. package/compute/orm/mutation/index.d.ts +33 -9
  79. package/compute/orm/mutation/index.js +48 -12
  80. package/config/orm/index.d.ts +42 -16
  81. package/config/orm/index.js +8 -2
  82. package/config/orm/input-types.d.ts +595 -154
  83. package/config/orm/models/config.d.ts +54 -0
  84. package/{modules/orm/models/configSecretsOrgModule.js → config/orm/models/config.js} +27 -27
  85. package/config/orm/models/index.d.ts +4 -1
  86. package/config/orm/models/index.js +9 -3
  87. package/config/orm/models/platformInternalSecret.d.ts +36 -0
  88. package/config/orm/models/platformInternalSecret.js +80 -0
  89. package/config/orm/models/platformSecret.d.ts +36 -0
  90. package/config/orm/models/platformSecret.js +80 -0
  91. package/config/orm/models/secret.d.ts +36 -0
  92. package/config/orm/models/secret.js +80 -0
  93. package/config/orm/mutation/index.d.ts +56 -24
  94. package/config/orm/mutation/index.js +78 -30
  95. package/esm/agent/orm/input-types.d.ts +96 -8
  96. package/esm/api/orm/index.d.ts +5 -15
  97. package/esm/api/orm/index.js +2 -2
  98. package/esm/api/orm/input-types.d.ts +250 -231
  99. package/esm/api/orm/models/index.d.ts +1 -1
  100. package/esm/api/orm/models/index.js +1 -1
  101. package/esm/api/orm/mutation/index.d.ts +11 -36
  102. package/esm/api/orm/mutation/index.js +6 -30
  103. package/esm/auth/orm/index.d.ts +10 -5
  104. package/esm/auth/orm/input-types.d.ts +54 -45
  105. package/esm/auth/orm/models/principal.d.ts +1 -10
  106. package/esm/auth/orm/models/principal.js +1 -14
  107. package/esm/auth/orm/mutation/index.d.ts +17 -9
  108. package/esm/auth/orm/mutation/index.js +24 -12
  109. package/esm/compute/orm/index.d.ts +76 -17
  110. package/esm/compute/orm/index.js +56 -12
  111. package/esm/compute/orm/input-types.d.ts +5893 -1343
  112. package/esm/compute/orm/input-types.js +17 -3
  113. package/esm/compute/orm/models/dbPreset.d.ts +54 -0
  114. package/esm/compute/orm/models/dbPreset.js +100 -0
  115. package/esm/compute/orm/models/functionGraphCommit.d.ts +2 -2
  116. package/esm/compute/orm/models/functionGraphCommit.js +2 -2
  117. package/esm/compute/orm/models/functionGraphObject.d.ts +2 -2
  118. package/esm/compute/orm/models/functionGraphObject.js +2 -2
  119. package/esm/compute/orm/models/functionGraphRef.d.ts +2 -2
  120. package/esm/compute/orm/models/functionGraphRef.js +2 -2
  121. package/esm/compute/orm/models/index.d.ts +28 -6
  122. package/esm/compute/orm/models/index.js +28 -6
  123. package/esm/compute/orm/models/infraCommit.d.ts +56 -0
  124. package/esm/compute/orm/models/infraCommit.js +103 -0
  125. package/esm/compute/orm/models/infraGetAllRecord.d.ts +30 -0
  126. package/esm/compute/orm/models/infraGetAllRecord.js +55 -0
  127. package/esm/compute/orm/models/infraObject.d.ts +56 -0
  128. package/esm/compute/orm/models/infraObject.js +93 -0
  129. package/esm/compute/orm/models/infraRef.d.ts +56 -0
  130. package/esm/compute/orm/models/infraRef.js +103 -0
  131. package/esm/compute/orm/models/infraStore.d.ts +54 -0
  132. package/esm/compute/orm/models/infraStore.js +100 -0
  133. package/esm/compute/orm/models/integrationProvider.d.ts +54 -0
  134. package/esm/compute/orm/models/integrationProvider.js +100 -0
  135. package/esm/compute/orm/models/namespace.d.ts +54 -0
  136. package/esm/compute/orm/models/namespace.js +100 -0
  137. package/esm/compute/orm/models/namespaceEvent.d.ts +56 -0
  138. package/esm/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +25 -25
  139. package/esm/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
  140. package/esm/compute/orm/models/platformFunctionApiBinding.js +100 -0
  141. package/esm/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
  142. package/esm/compute/orm/models/platformFunctionDefinition.js +100 -0
  143. package/esm/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
  144. package/esm/compute/orm/models/platformFunctionDeployment.js +100 -0
  145. package/esm/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
  146. package/esm/compute/orm/models/platformFunctionDeploymentEvent.js +103 -0
  147. package/esm/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
  148. package/esm/compute/orm/models/platformFunctionExecutionLog.js +103 -0
  149. package/esm/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
  150. package/esm/compute/orm/models/platformFunctionInvocation.js +103 -0
  151. package/esm/compute/orm/models/platformResource.d.ts +54 -0
  152. package/esm/compute/orm/models/{secretDefinition.js → platformResource.js} +25 -25
  153. package/esm/compute/orm/models/platformResourceDefinition.d.ts +54 -0
  154. package/esm/compute/orm/models/platformResourceDefinition.js +100 -0
  155. package/esm/compute/orm/models/platformResourceEvent.d.ts +56 -0
  156. package/esm/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +25 -25
  157. package/esm/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
  158. package/esm/compute/orm/models/platformResourceStatusCheck.js +100 -0
  159. package/esm/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
  160. package/esm/compute/orm/models/platformResourcesRequirementsState.js +55 -0
  161. package/esm/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
  162. package/esm/compute/orm/models/platformResourcesResolvedRequirement.js +55 -0
  163. package/esm/compute/orm/models/resourceDefinition.d.ts +54 -0
  164. package/esm/{modules/orm/models/configSecretsOrgModule.js → compute/orm/models/resourceDefinition.js} +25 -25
  165. package/esm/compute/orm/models/resourceStatusCheck.d.ts +54 -0
  166. package/esm/compute/orm/models/resourceStatusCheck.js +100 -0
  167. package/esm/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
  168. package/esm/compute/orm/models/resourcesRequirementsState.js +55 -0
  169. package/esm/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
  170. package/esm/compute/orm/models/resourcesResolvedRequirement.js +55 -0
  171. package/esm/compute/orm/mutation/index.d.ts +33 -9
  172. package/esm/compute/orm/mutation/index.js +48 -12
  173. package/esm/config/orm/index.d.ts +42 -16
  174. package/esm/config/orm/index.js +8 -2
  175. package/esm/config/orm/input-types.d.ts +595 -154
  176. package/esm/config/orm/models/config.d.ts +54 -0
  177. package/esm/{modules/orm/models/configSecretsModule.js → config/orm/models/config.js} +25 -25
  178. package/esm/config/orm/models/index.d.ts +4 -1
  179. package/esm/config/orm/models/index.js +4 -1
  180. package/esm/config/orm/models/platformInternalSecret.d.ts +36 -0
  181. package/esm/config/orm/models/platformInternalSecret.js +76 -0
  182. package/esm/config/orm/models/platformSecret.d.ts +36 -0
  183. package/esm/config/orm/models/platformSecret.js +76 -0
  184. package/esm/config/orm/models/secret.d.ts +36 -0
  185. package/esm/config/orm/models/secret.js +76 -0
  186. package/esm/config/orm/mutation/index.d.ts +56 -24
  187. package/esm/config/orm/mutation/index.js +78 -30
  188. package/esm/index.d.ts +1 -0
  189. package/esm/index.js +1 -0
  190. package/esm/infra/index.d.ts +5 -0
  191. package/esm/infra/index.js +5 -0
  192. package/esm/infra/orm/client.d.ts +97 -0
  193. package/esm/infra/orm/client.js +145 -0
  194. package/esm/infra/orm/index.d.ts +74 -0
  195. package/esm/infra/orm/index.js +61 -0
  196. package/esm/infra/orm/input-types.d.ts +1953 -0
  197. package/esm/infra/orm/input-types.js +2 -0
  198. package/esm/infra/orm/models/dbPreset.d.ts +54 -0
  199. package/esm/infra/orm/models/dbPreset.js +100 -0
  200. package/esm/infra/orm/models/index.d.ts +15 -0
  201. package/esm/infra/orm/models/index.js +15 -0
  202. package/esm/infra/orm/models/infraCommit.d.ts +56 -0
  203. package/esm/infra/orm/models/infraCommit.js +103 -0
  204. package/esm/infra/orm/models/infraGetAllRecord.d.ts +30 -0
  205. package/esm/infra/orm/models/infraGetAllRecord.js +55 -0
  206. package/esm/infra/orm/models/infraObject.d.ts +56 -0
  207. package/esm/infra/orm/models/infraObject.js +93 -0
  208. package/esm/infra/orm/models/infraRef.d.ts +56 -0
  209. package/esm/infra/orm/models/infraRef.js +103 -0
  210. package/esm/infra/orm/models/infraStore.d.ts +54 -0
  211. package/esm/infra/orm/models/infraStore.js +100 -0
  212. package/esm/infra/orm/models/namespace.d.ts +54 -0
  213. package/esm/infra/orm/models/namespace.js +100 -0
  214. package/esm/infra/orm/models/namespaceEvent.d.ts +56 -0
  215. package/esm/infra/orm/models/namespaceEvent.js +103 -0
  216. package/esm/infra/orm/models/platformNamespace.d.ts +54 -0
  217. package/esm/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespace.js} +25 -25
  218. package/esm/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
  219. package/esm/infra/orm/models/platformNamespaceEvent.js +103 -0
  220. package/esm/infra/orm/mutation/index.d.ts +50 -0
  221. package/esm/infra/orm/mutation/index.js +54 -0
  222. package/esm/infra/orm/query-builder.d.ts +110 -0
  223. package/esm/infra/orm/query-builder.js +705 -0
  224. package/esm/infra/orm/realtime.d.ts +142 -0
  225. package/esm/infra/orm/realtime.js +100 -0
  226. package/esm/infra/orm/select-types.d.ts +125 -0
  227. package/esm/infra/orm/select-types.js +1 -0
  228. package/esm/infra/orm/types.d.ts +6 -0
  229. package/esm/infra/orm/types.js +7 -0
  230. package/esm/modules/orm/index.d.ts +48 -38
  231. package/esm/modules/orm/index.js +48 -38
  232. package/esm/modules/orm/input-types.d.ts +5378 -4022
  233. package/esm/modules/orm/input-types.js +1 -0
  234. package/esm/modules/orm/models/dbPool.d.ts +54 -0
  235. package/esm/modules/orm/models/dbPool.js +100 -0
  236. package/esm/modules/orm/models/dbPoolConfig.d.ts +54 -0
  237. package/esm/modules/orm/models/dbPoolConfig.js +100 -0
  238. package/esm/modules/orm/models/dbPresetModule.d.ts +54 -0
  239. package/esm/modules/orm/models/dbPresetModule.js +100 -0
  240. package/esm/modules/orm/models/index.d.ts +24 -19
  241. package/esm/modules/orm/models/index.js +24 -19
  242. package/esm/modules/orm/models/infraConfigModule.d.ts +54 -0
  243. package/esm/modules/orm/models/infraConfigModule.js +100 -0
  244. package/esm/modules/orm/models/infraSecretsModule.d.ts +54 -0
  245. package/esm/modules/orm/models/infraSecretsModule.js +100 -0
  246. package/esm/modules/orm/models/integrationProvidersModule.d.ts +54 -0
  247. package/esm/modules/orm/models/integrationProvidersModule.js +100 -0
  248. package/esm/modules/orm/models/internalSecretsModule.d.ts +54 -0
  249. package/esm/modules/orm/models/internalSecretsModule.js +100 -0
  250. package/index.d.ts +1 -0
  251. package/index.js +2 -1
  252. package/infra/index.d.ts +5 -0
  253. package/infra/index.js +21 -0
  254. package/infra/orm/client.d.ts +97 -0
  255. package/infra/orm/client.js +152 -0
  256. package/infra/orm/index.d.ts +74 -0
  257. package/infra/orm/index.js +83 -0
  258. package/infra/orm/input-types.d.ts +1953 -0
  259. package/infra/orm/input-types.js +5 -0
  260. package/infra/orm/models/dbPreset.d.ts +54 -0
  261. package/infra/orm/models/dbPreset.js +104 -0
  262. package/infra/orm/models/index.d.ts +15 -0
  263. package/infra/orm/models/index.js +28 -0
  264. package/infra/orm/models/infraCommit.d.ts +56 -0
  265. package/infra/orm/models/infraCommit.js +107 -0
  266. package/infra/orm/models/infraGetAllRecord.d.ts +30 -0
  267. package/infra/orm/models/infraGetAllRecord.js +59 -0
  268. package/infra/orm/models/infraObject.d.ts +56 -0
  269. package/infra/orm/models/infraObject.js +97 -0
  270. package/infra/orm/models/infraRef.d.ts +56 -0
  271. package/infra/orm/models/infraRef.js +107 -0
  272. package/infra/orm/models/infraStore.d.ts +54 -0
  273. package/infra/orm/models/infraStore.js +104 -0
  274. package/infra/orm/models/namespace.d.ts +54 -0
  275. package/infra/orm/models/namespace.js +104 -0
  276. package/infra/orm/models/namespaceEvent.d.ts +56 -0
  277. package/infra/orm/models/namespaceEvent.js +107 -0
  278. package/infra/orm/models/platformNamespace.d.ts +54 -0
  279. package/infra/orm/models/platformNamespace.js +104 -0
  280. package/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
  281. package/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespaceEvent.js} +30 -27
  282. package/infra/orm/mutation/index.d.ts +50 -0
  283. package/infra/orm/mutation/index.js +57 -0
  284. package/infra/orm/query-builder.d.ts +110 -0
  285. package/infra/orm/query-builder.js +757 -0
  286. package/infra/orm/realtime.d.ts +142 -0
  287. package/infra/orm/realtime.js +104 -0
  288. package/infra/orm/select-types.d.ts +125 -0
  289. package/infra/orm/select-types.js +2 -0
  290. package/infra/orm/types.d.ts +6 -0
  291. package/infra/orm/types.js +23 -0
  292. package/modules/orm/index.d.ts +48 -38
  293. package/modules/orm/index.js +48 -38
  294. package/modules/orm/input-types.d.ts +5378 -4022
  295. package/modules/orm/input-types.js +1 -0
  296. package/modules/orm/models/dbPool.d.ts +54 -0
  297. package/modules/orm/models/dbPool.js +104 -0
  298. package/modules/orm/models/dbPoolConfig.d.ts +54 -0
  299. package/modules/orm/models/dbPoolConfig.js +104 -0
  300. package/modules/orm/models/dbPresetModule.d.ts +54 -0
  301. package/modules/orm/models/dbPresetModule.js +104 -0
  302. package/modules/orm/models/index.d.ts +24 -19
  303. package/modules/orm/models/index.js +50 -40
  304. package/modules/orm/models/infraConfigModule.d.ts +54 -0
  305. package/modules/orm/models/infraConfigModule.js +104 -0
  306. package/modules/orm/models/infraSecretsModule.d.ts +54 -0
  307. package/modules/orm/models/infraSecretsModule.js +104 -0
  308. package/modules/orm/models/integrationProvidersModule.d.ts +54 -0
  309. package/modules/orm/models/integrationProvidersModule.js +104 -0
  310. package/modules/orm/models/internalSecretsModule.d.ts +54 -0
  311. package/modules/orm/models/internalSecretsModule.js +104 -0
  312. package/package.json +6 -6
  313. package/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
  314. package/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
  315. package/compute/orm/models/secretDefinition.d.ts +0 -54
  316. package/config/orm/models/platformConfigDefinition.d.ts +0 -54
  317. package/esm/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
  318. package/esm/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
  319. package/esm/compute/orm/models/secretDefinition.d.ts +0 -54
  320. package/esm/config/orm/models/platformConfigDefinition.d.ts +0 -54
  321. package/esm/modules/orm/models/configSecretsModule.d.ts +0 -54
  322. package/esm/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
  323. package/modules/orm/models/configSecretsModule.d.ts +0 -54
  324. package/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Config 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 { ConfigWithRelations, ConfigSelect, ConfigFilter, ConfigOrderBy, CreateConfigInput, ConfigPatch } from '../input-types';
10
+ export declare class ConfigModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends ConfigSelect>(args: FindManyArgs<S, ConfigFilter, ConfigOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
16
+ configs: ConnectionResult<InferSelectResult<ConfigWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends ConfigSelect>(args: FindFirstArgs<S, ConfigFilter, ConfigOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
21
+ config: InferSelectResult<ConfigWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends ConfigSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
27
+ config: InferSelectResult<ConfigWithRelations, S> | null;
28
+ }>;
29
+ create<S extends ConfigSelect>(args: CreateArgs<S, CreateConfigInput['config']> & {
30
+ select: S;
31
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
32
+ createConfig: {
33
+ config: InferSelectResult<ConfigWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends ConfigSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, ConfigPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
41
+ updateConfig: {
42
+ config: InferSelectResult<ConfigWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends ConfigSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, ConfigSelect>): QueryBuilder<{
50
+ deleteConfig: {
51
+ config: InferSelectResult<ConfigWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigSecretsOrgModuleModel = void 0;
3
+ exports.ConfigModel = void 0;
4
4
  const query_builder_1 = require("../query-builder");
5
5
  const input_types_1 = require("../input-types");
6
- class ConfigSecretsOrgModuleModel {
6
+ class ConfigModel {
7
7
  client;
8
8
  constructor(client) {
9
9
  this.client = client;
10
10
  }
11
11
  findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ConfigSecretsOrgModule', 'configSecretsOrgModules', args.select, {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Config', 'configs', args.select, {
13
13
  where: args?.where,
14
14
  orderBy: args?.orderBy,
15
15
  first: args?.first,
@@ -17,88 +17,88 @@ class ConfigSecretsOrgModuleModel {
17
17
  after: args?.after,
18
18
  before: args?.before,
19
19
  offset: args?.offset,
20
- }, 'ConfigSecretsOrgModuleFilter', 'ConfigSecretsOrgModuleOrderBy', input_types_1.connectionFieldsMap);
20
+ }, 'ConfigFilter', 'ConfigOrderBy', input_types_1.connectionFieldsMap);
21
21
  return new query_builder_1.QueryBuilder({
22
22
  client: this.client,
23
23
  operation: 'query',
24
- operationName: 'ConfigSecretsOrgModule',
25
- fieldName: 'configSecretsOrgModules',
24
+ operationName: 'Config',
25
+ fieldName: 'configs',
26
26
  document,
27
27
  variables,
28
28
  });
29
29
  }
30
30
  findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ConfigSecretsOrgModule', 'configSecretsOrgModules', args.select, {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Config', 'configs', args.select, {
32
32
  where: args?.where,
33
33
  orderBy: args?.orderBy,
34
- }, 'ConfigSecretsOrgModuleFilter', 'ConfigSecretsOrgModuleOrderBy', input_types_1.connectionFieldsMap);
34
+ }, 'ConfigFilter', 'ConfigOrderBy', input_types_1.connectionFieldsMap);
35
35
  return new query_builder_1.QueryBuilder({
36
36
  client: this.client,
37
37
  operation: 'query',
38
- operationName: 'ConfigSecretsOrgModule',
39
- fieldName: 'configSecretsOrgModule',
38
+ operationName: 'Config',
39
+ fieldName: 'config',
40
40
  document,
41
41
  variables,
42
42
  transform: (data) => ({
43
- configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null,
43
+ config: data.configs?.nodes?.[0] ?? null,
44
44
  }),
45
45
  });
46
46
  }
47
47
  findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ConfigSecretsOrgModule', 'configSecretsOrgModules', args.select, {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Config', 'configs', args.select, {
49
49
  where: {
50
50
  id: {
51
51
  equalTo: args.id,
52
52
  },
53
53
  },
54
54
  first: 1,
55
- }, 'ConfigSecretsOrgModuleFilter', 'ConfigSecretsOrgModuleOrderBy', input_types_1.connectionFieldsMap);
55
+ }, 'ConfigFilter', 'ConfigOrderBy', input_types_1.connectionFieldsMap);
56
56
  return new query_builder_1.QueryBuilder({
57
57
  client: this.client,
58
58
  operation: 'query',
59
- operationName: 'ConfigSecretsOrgModule',
60
- fieldName: 'configSecretsOrgModule',
59
+ operationName: 'Config',
60
+ fieldName: 'config',
61
61
  document,
62
62
  variables,
63
63
  transform: (data) => ({
64
- configSecretsOrgModule: data.configSecretsOrgModules?.nodes?.[0] ?? null,
64
+ config: data.configs?.nodes?.[0] ?? null,
65
65
  }),
66
66
  });
67
67
  }
68
68
  create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)('ConfigSecretsOrgModule', 'createConfigSecretsOrgModule', 'configSecretsOrgModule', args.select, args.data, 'CreateConfigSecretsOrgModuleInput', input_types_1.connectionFieldsMap);
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('Config', 'createConfig', 'config', args.select, args.data, 'CreateConfigInput', input_types_1.connectionFieldsMap);
70
70
  return new query_builder_1.QueryBuilder({
71
71
  client: this.client,
72
72
  operation: 'mutation',
73
- operationName: 'ConfigSecretsOrgModule',
74
- fieldName: 'createConfigSecretsOrgModule',
73
+ operationName: 'Config',
74
+ fieldName: 'createConfig',
75
75
  document,
76
76
  variables,
77
77
  });
78
78
  }
79
79
  update(args) {
80
- const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ConfigSecretsOrgModule', 'updateConfigSecretsOrgModule', 'configSecretsOrgModule', args.select, args.where.id, args.data, 'UpdateConfigSecretsOrgModuleInput', 'id', 'configSecretsOrgModulePatch', input_types_1.connectionFieldsMap, undefined);
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Config', 'updateConfig', 'config', args.select, args.where.id, args.data, 'UpdateConfigInput', 'id', 'configPatch', input_types_1.connectionFieldsMap, undefined);
81
81
  return new query_builder_1.QueryBuilder({
82
82
  client: this.client,
83
83
  operation: 'mutation',
84
- operationName: 'ConfigSecretsOrgModule',
85
- fieldName: 'updateConfigSecretsOrgModule',
84
+ operationName: 'Config',
85
+ fieldName: 'updateConfig',
86
86
  document,
87
87
  variables,
88
88
  });
89
89
  }
90
90
  delete(args) {
91
- const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ConfigSecretsOrgModule', 'deleteConfigSecretsOrgModule', 'configSecretsOrgModule', {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Config', 'deleteConfig', 'config', {
92
92
  id: args.where.id,
93
- }, 'DeleteConfigSecretsOrgModuleInput', args.select, input_types_1.connectionFieldsMap);
93
+ }, 'DeleteConfigInput', args.select, input_types_1.connectionFieldsMap);
94
94
  return new query_builder_1.QueryBuilder({
95
95
  client: this.client,
96
96
  operation: 'mutation',
97
- operationName: 'ConfigSecretsOrgModule',
98
- fieldName: 'deleteConfigSecretsOrgModule',
97
+ operationName: 'Config',
98
+ fieldName: 'deleteConfig',
99
99
  document,
100
100
  variables,
101
101
  });
102
102
  }
103
103
  }
104
- exports.ConfigSecretsOrgModuleModel = ConfigSecretsOrgModuleModel;
104
+ exports.ConfigModel = ConfigModel;
@@ -3,5 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { PlatformConfigDefinitionModel } from './platformConfigDefinition';
7
6
  export { PlatformConfigModel } from './platformConfig';
7
+ export { ConfigModel } from './config';
8
+ export { PlatformInternalSecretModel } from './platformInternalSecret';
9
+ export { PlatformSecretModel } from './platformSecret';
10
+ export { SecretModel } from './secret';
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlatformConfigModel = exports.PlatformConfigDefinitionModel = void 0;
3
+ exports.SecretModel = exports.PlatformSecretModel = exports.PlatformInternalSecretModel = exports.ConfigModel = exports.PlatformConfigModel = void 0;
4
4
  /**
5
5
  * Models barrel export
6
6
  * @generated by @constructive-io/graphql-codegen
7
7
  * DO NOT EDIT - changes will be overwritten
8
8
  */
9
- var platformConfigDefinition_1 = require("./platformConfigDefinition");
10
- Object.defineProperty(exports, "PlatformConfigDefinitionModel", { enumerable: true, get: function () { return platformConfigDefinition_1.PlatformConfigDefinitionModel; } });
11
9
  var platformConfig_1 = require("./platformConfig");
12
10
  Object.defineProperty(exports, "PlatformConfigModel", { enumerable: true, get: function () { return platformConfig_1.PlatformConfigModel; } });
11
+ var config_1 = require("./config");
12
+ Object.defineProperty(exports, "ConfigModel", { enumerable: true, get: function () { return config_1.ConfigModel; } });
13
+ var platformInternalSecret_1 = require("./platformInternalSecret");
14
+ Object.defineProperty(exports, "PlatformInternalSecretModel", { enumerable: true, get: function () { return platformInternalSecret_1.PlatformInternalSecretModel; } });
15
+ var platformSecret_1 = require("./platformSecret");
16
+ Object.defineProperty(exports, "PlatformSecretModel", { enumerable: true, get: function () { return platformSecret_1.PlatformSecretModel; } });
17
+ var secret_1 = require("./secret");
18
+ Object.defineProperty(exports, "SecretModel", { enumerable: true, get: function () { return secret_1.SecretModel; } });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * PlatformInternalSecret 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 { PlatformInternalSecretWithRelations, PlatformInternalSecretSelect, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy, CreatePlatformInternalSecretInput } from '../input-types';
10
+ export declare class PlatformInternalSecretModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformInternalSecretSelect>(args: FindManyArgs<S, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformInternalSecretSelect>): QueryBuilder<{
16
+ platformInternalSecrets: ConnectionResult<InferSelectResult<PlatformInternalSecretWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformInternalSecretSelect>(args: FindFirstArgs<S, PlatformInternalSecretFilter, PlatformInternalSecretOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformInternalSecretSelect>): QueryBuilder<{
21
+ platformInternalSecret: InferSelectResult<PlatformInternalSecretWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformInternalSecretSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformInternalSecretSelect>): QueryBuilder<{
27
+ platformInternalSecret: InferSelectResult<PlatformInternalSecretWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformInternalSecretSelect>(args: CreateArgs<S, CreatePlatformInternalSecretInput['platformInternalSecret']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformInternalSecretSelect>): QueryBuilder<{
32
+ createPlatformInternalSecret: {
33
+ platformInternalSecret: InferSelectResult<PlatformInternalSecretWithRelations, S>;
34
+ };
35
+ }>;
36
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformInternalSecretModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class PlatformInternalSecretModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformInternalSecret', 'platformInternalSecrets', 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
+ }, 'PlatformInternalSecretFilter', 'PlatformInternalSecretOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'PlatformInternalSecret',
25
+ fieldName: 'platformInternalSecrets',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PlatformInternalSecret', 'platformInternalSecrets', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'PlatformInternalSecretFilter', 'PlatformInternalSecretOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'PlatformInternalSecret',
39
+ fieldName: 'platformInternalSecret',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformInternalSecret', 'platformInternalSecrets', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'PlatformInternalSecretFilter', 'PlatformInternalSecretOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'PlatformInternalSecret',
60
+ fieldName: 'platformInternalSecret',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ platformInternalSecret: data.platformInternalSecrets?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('PlatformInternalSecret', 'createPlatformInternalSecret', 'platformInternalSecret', args.select, args.data, 'CreatePlatformInternalSecretInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'PlatformInternalSecret',
74
+ fieldName: 'createPlatformInternalSecret',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ }
80
+ exports.PlatformInternalSecretModel = PlatformInternalSecretModel;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * PlatformSecret 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 { PlatformSecretWithRelations, PlatformSecretSelect, PlatformSecretFilter, PlatformSecretOrderBy, CreatePlatformSecretInput } from '../input-types';
10
+ export declare class PlatformSecretModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformSecretSelect>(args: FindManyArgs<S, PlatformSecretFilter, PlatformSecretOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformSecretSelect>): QueryBuilder<{
16
+ platformSecrets: ConnectionResult<InferSelectResult<PlatformSecretWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformSecretSelect>(args: FindFirstArgs<S, PlatformSecretFilter, PlatformSecretOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformSecretSelect>): QueryBuilder<{
21
+ platformSecret: InferSelectResult<PlatformSecretWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformSecretSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformSecretSelect>): QueryBuilder<{
27
+ platformSecret: InferSelectResult<PlatformSecretWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformSecretSelect>(args: CreateArgs<S, CreatePlatformSecretInput['platformSecret']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformSecretSelect>): QueryBuilder<{
32
+ createPlatformSecret: {
33
+ platformSecret: InferSelectResult<PlatformSecretWithRelations, S>;
34
+ };
35
+ }>;
36
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformSecretModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class PlatformSecretModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformSecret', 'platformSecrets', 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
+ }, 'PlatformSecretFilter', 'PlatformSecretOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'PlatformSecret',
25
+ fieldName: 'platformSecrets',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PlatformSecret', 'platformSecrets', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'PlatformSecretFilter', 'PlatformSecretOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'PlatformSecret',
39
+ fieldName: 'platformSecret',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ platformSecret: data.platformSecrets?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformSecret', 'platformSecrets', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'PlatformSecretFilter', 'PlatformSecretOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'PlatformSecret',
60
+ fieldName: 'platformSecret',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ platformSecret: data.platformSecrets?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('PlatformSecret', 'createPlatformSecret', 'platformSecret', args.select, args.data, 'CreatePlatformSecretInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'PlatformSecret',
74
+ fieldName: 'createPlatformSecret',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ }
80
+ exports.PlatformSecretModel = PlatformSecretModel;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Secret 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 { SecretWithRelations, SecretSelect, SecretFilter, SecretOrderBy, CreateSecretInput } from '../input-types';
10
+ export declare class SecretModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends SecretSelect>(args: FindManyArgs<S, SecretFilter, SecretOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, SecretSelect>): QueryBuilder<{
16
+ secrets: ConnectionResult<InferSelectResult<SecretWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends SecretSelect>(args: FindFirstArgs<S, SecretFilter, SecretOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, SecretSelect>): QueryBuilder<{
21
+ secret: InferSelectResult<SecretWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends SecretSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, SecretSelect>): QueryBuilder<{
27
+ secret: InferSelectResult<SecretWithRelations, S> | null;
28
+ }>;
29
+ create<S extends SecretSelect>(args: CreateArgs<S, CreateSecretInput['secret']> & {
30
+ select: S;
31
+ } & StrictSelect<S, SecretSelect>): QueryBuilder<{
32
+ createSecret: {
33
+ secret: InferSelectResult<SecretWithRelations, S>;
34
+ };
35
+ }>;
36
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecretModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class SecretModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Secret', 'secrets', 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
+ }, 'SecretFilter', 'SecretOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'Secret',
25
+ fieldName: 'secrets',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Secret', 'secrets', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'SecretFilter', 'SecretOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'Secret',
39
+ fieldName: 'secret',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ secret: data.secrets?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Secret', 'secrets', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'SecretFilter', 'SecretOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'Secret',
60
+ fieldName: 'secret',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ secret: data.secrets?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('Secret', 'createSecret', 'secret', args.select, args.data, 'CreateSecretInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'Secret',
74
+ fieldName: 'createSecret',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ }
80
+ exports.SecretModel = SecretModel;