@constructive-io/react 0.27.1 → 0.27.2

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 (373) hide show
  1. package/api/orm/input-types.d.ts +144 -171
  2. package/api/schema-types.d.ts +676 -678
  3. package/api/types.d.ts +9 -14
  4. package/auth/hooks/index.d.ts +1 -1
  5. package/auth/hooks/index.js +1 -1
  6. package/auth/hooks/invalidation.d.ts +24 -0
  7. package/auth/hooks/invalidation.js +64 -0
  8. package/auth/hooks/mutation-keys.d.ts +56 -0
  9. package/auth/hooks/mutation-keys.js +44 -1
  10. package/auth/hooks/mutations/index.d.ts +11 -0
  11. package/auth/hooks/mutations/index.js +11 -0
  12. package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
  13. package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +34 -0
  14. package/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
  15. package/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +26 -0
  16. package/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
  17. package/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +26 -0
  18. package/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
  19. package/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +34 -0
  20. package/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
  21. package/auth/hooks/mutations/useCreatePrincipalMutation.js +34 -0
  22. package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
  23. package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +34 -0
  24. package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
  25. package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +26 -0
  26. package/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
  27. package/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +39 -0
  28. package/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
  29. package/auth/hooks/mutations/useDeletePrincipalMutation.js +39 -0
  30. package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
  31. package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +26 -0
  32. package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
  33. package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +40 -0
  34. package/auth/hooks/queries/index.d.ts +9 -1
  35. package/auth/hooks/queries/index.js +9 -1
  36. package/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
  37. package/auth/hooks/queries/useOrgApiKeyListQuery.js +53 -0
  38. package/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
  39. package/auth/hooks/queries/useOrgApiKeyListsQuery.js +38 -0
  40. package/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
  41. package/auth/hooks/queries/usePrincipalEntitiesQuery.js +38 -0
  42. package/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
  43. package/auth/hooks/queries/usePrincipalEntityQuery.js +53 -0
  44. package/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
  45. package/auth/hooks/queries/usePrincipalQuery.js +53 -0
  46. package/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
  47. package/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +53 -0
  48. package/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
  49. package/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +38 -0
  50. package/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
  51. package/auth/hooks/queries/usePrincipalsQuery.js +38 -0
  52. package/auth/hooks/query-keys.d.ts +58 -2
  53. package/auth/hooks/query-keys.js +34 -2
  54. package/auth/orm/index.d.ts +32 -4
  55. package/auth/orm/index.js +8 -0
  56. package/auth/orm/input-types.d.ts +915 -145
  57. package/auth/orm/input-types.js +7 -0
  58. package/auth/orm/models/index.d.ts +4 -0
  59. package/auth/orm/models/index.js +9 -1
  60. package/auth/orm/models/orgApiKeyList.d.ts +36 -0
  61. package/auth/orm/models/orgApiKeyList.js +80 -0
  62. package/auth/orm/models/principal.d.ts +45 -0
  63. package/auth/orm/models/principal.js +93 -0
  64. package/auth/orm/models/principalEntity.d.ts +54 -0
  65. package/auth/orm/models/principalEntity.js +104 -0
  66. package/auth/orm/models/principalScopeOverride.d.ts +36 -0
  67. package/auth/orm/models/principalScopeOverride.js +80 -0
  68. package/auth/orm/mutation/index.d.ts +33 -1
  69. package/auth/orm/mutation/index.js +48 -0
  70. package/auth/orm/query/index.d.ts +4 -4
  71. package/auth/orm/query/index.js +7 -7
  72. package/auth/schema-types.d.ts +477 -93
  73. package/auth/types.d.ts +43 -0
  74. package/compute/hooks/index.d.ts +1 -1
  75. package/compute/hooks/index.js +1 -1
  76. package/compute/hooks/invalidation.d.ts +29 -5
  77. package/compute/hooks/invalidation.js +73 -9
  78. package/compute/hooks/mutation-keys.d.ts +60 -12
  79. package/compute/hooks/mutation-keys.js +41 -10
  80. package/compute/hooks/mutations/index.d.ts +16 -4
  81. package/compute/hooks/mutations/index.js +16 -4
  82. package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
  83. package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +34 -0
  84. package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
  85. package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +34 -0
  86. package/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
  87. package/compute/hooks/mutations/useCreateResourceEventMutation.js +34 -0
  88. package/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
  89. package/compute/hooks/mutations/useCreateResourceMutation.js +34 -0
  90. package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
  91. package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +40 -0
  92. package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
  93. package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +39 -0
  94. package/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
  95. package/compute/hooks/mutations/useDeleteResourceEventMutation.js +40 -0
  96. package/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
  97. package/compute/hooks/mutations/useDeleteResourceMutation.js +39 -0
  98. package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
  99. package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +41 -0
  100. package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
  101. package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +40 -0
  102. package/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
  103. package/compute/hooks/mutations/useUpdateResourceEventMutation.js +41 -0
  104. package/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
  105. package/compute/hooks/mutations/useUpdateResourceMutation.js +40 -0
  106. package/compute/hooks/queries/index.d.ts +10 -2
  107. package/compute/hooks/queries/index.js +10 -2
  108. package/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
  109. package/compute/hooks/queries/usePlatformNamespaceEventQuery.js +53 -0
  110. package/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
  111. package/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +38 -0
  112. package/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
  113. package/compute/hooks/queries/usePlatformNamespaceQuery.js +53 -0
  114. package/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
  115. package/compute/hooks/queries/usePlatformNamespacesQuery.js +38 -0
  116. package/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
  117. package/compute/hooks/queries/useResourceEventQuery.js +53 -0
  118. package/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
  119. package/compute/hooks/queries/useResourceEventsQuery.js +38 -0
  120. package/compute/hooks/queries/useResourceQuery.d.ts +65 -0
  121. package/compute/hooks/queries/useResourceQuery.js +53 -0
  122. package/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
  123. package/compute/hooks/queries/useResourcesQuery.js +38 -0
  124. package/compute/hooks/query-keys.d.ts +68 -12
  125. package/compute/hooks/query-keys.js +40 -8
  126. package/compute/orm/index.d.ts +15 -7
  127. package/compute/orm/index.js +10 -2
  128. package/compute/orm/input-types.d.ts +1159 -221
  129. package/compute/orm/input-types.js +4 -0
  130. package/compute/orm/models/index.d.ts +5 -1
  131. package/compute/orm/models/index.js +11 -3
  132. package/compute/orm/models/platformNamespace.d.ts +54 -0
  133. package/compute/orm/models/platformNamespace.js +104 -0
  134. package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  135. package/compute/orm/models/platformNamespaceEvent.js +107 -0
  136. package/compute/orm/models/resource.d.ts +54 -0
  137. package/compute/orm/models/resource.js +104 -0
  138. package/compute/orm/models/resourceEvent.d.ts +56 -0
  139. package/compute/orm/models/resourceEvent.js +107 -0
  140. package/compute/orm/mutation/index.d.ts +9 -9
  141. package/compute/orm/mutation/index.js +12 -12
  142. package/compute/schema-types.d.ts +691 -107
  143. package/compute/types.d.ts +71 -12
  144. package/esm/api/orm/input-types.d.ts +144 -171
  145. package/esm/api/schema-types.d.ts +676 -678
  146. package/esm/api/types.d.ts +9 -14
  147. package/esm/auth/hooks/index.d.ts +1 -1
  148. package/esm/auth/hooks/index.js +1 -1
  149. package/esm/auth/hooks/invalidation.d.ts +24 -0
  150. package/esm/auth/hooks/invalidation.js +65 -1
  151. package/esm/auth/hooks/mutation-keys.d.ts +56 -0
  152. package/esm/auth/hooks/mutation-keys.js +43 -0
  153. package/esm/auth/hooks/mutations/index.d.ts +11 -0
  154. package/esm/auth/hooks/mutations/index.js +11 -0
  155. package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
  156. package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +31 -0
  157. package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
  158. package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +23 -0
  159. package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
  160. package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +23 -0
  161. package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
  162. package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +31 -0
  163. package/esm/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
  164. package/esm/auth/hooks/mutations/useCreatePrincipalMutation.js +31 -0
  165. package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
  166. package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +31 -0
  167. package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
  168. package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +23 -0
  169. package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
  170. package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +36 -0
  171. package/esm/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
  172. package/esm/auth/hooks/mutations/useDeletePrincipalMutation.js +36 -0
  173. package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
  174. package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +23 -0
  175. package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
  176. package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +37 -0
  177. package/esm/auth/hooks/queries/index.d.ts +9 -1
  178. package/esm/auth/hooks/queries/index.js +9 -1
  179. package/esm/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
  180. package/esm/auth/hooks/queries/useOrgApiKeyListQuery.js +47 -0
  181. package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
  182. package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.js +32 -0
  183. package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
  184. package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.js +32 -0
  185. package/esm/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
  186. package/esm/auth/hooks/queries/usePrincipalEntityQuery.js +47 -0
  187. package/esm/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
  188. package/esm/auth/hooks/queries/usePrincipalQuery.js +47 -0
  189. package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
  190. package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +47 -0
  191. package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
  192. package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +32 -0
  193. package/esm/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
  194. package/esm/auth/hooks/queries/usePrincipalsQuery.js +32 -0
  195. package/esm/auth/hooks/query-keys.d.ts +58 -2
  196. package/esm/auth/hooks/query-keys.js +33 -1
  197. package/esm/auth/orm/index.d.ts +32 -4
  198. package/esm/auth/orm/index.js +8 -0
  199. package/esm/auth/orm/input-types.d.ts +915 -145
  200. package/esm/auth/orm/input-types.js +7 -0
  201. package/esm/auth/orm/models/index.d.ts +4 -0
  202. package/esm/auth/orm/models/index.js +4 -0
  203. package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
  204. package/esm/auth/orm/models/orgApiKeyList.js +76 -0
  205. package/esm/auth/orm/models/principal.d.ts +45 -0
  206. package/esm/auth/orm/models/principal.js +89 -0
  207. package/esm/auth/orm/models/principalEntity.d.ts +54 -0
  208. package/esm/auth/orm/models/principalEntity.js +100 -0
  209. package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
  210. package/esm/auth/orm/models/principalScopeOverride.js +76 -0
  211. package/esm/auth/orm/mutation/index.d.ts +33 -1
  212. package/esm/auth/orm/mutation/index.js +48 -0
  213. package/esm/auth/orm/query/index.d.ts +4 -4
  214. package/esm/auth/orm/query/index.js +7 -7
  215. package/esm/auth/schema-types.d.ts +477 -93
  216. package/esm/auth/types.d.ts +43 -0
  217. package/esm/compute/hooks/index.d.ts +1 -1
  218. package/esm/compute/hooks/index.js +1 -1
  219. package/esm/compute/hooks/invalidation.d.ts +29 -5
  220. package/esm/compute/hooks/invalidation.js +74 -10
  221. package/esm/compute/hooks/mutation-keys.d.ts +60 -12
  222. package/esm/compute/hooks/mutation-keys.js +40 -9
  223. package/esm/compute/hooks/mutations/index.d.ts +16 -4
  224. package/esm/compute/hooks/mutations/index.js +16 -4
  225. package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
  226. package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +31 -0
  227. package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
  228. package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +31 -0
  229. package/esm/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
  230. package/esm/compute/hooks/mutations/useCreateResourceEventMutation.js +31 -0
  231. package/esm/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
  232. package/esm/compute/hooks/mutations/useCreateResourceMutation.js +31 -0
  233. package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
  234. package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +37 -0
  235. package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
  236. package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +36 -0
  237. package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
  238. package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.js +37 -0
  239. package/esm/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
  240. package/esm/compute/hooks/mutations/useDeleteResourceMutation.js +36 -0
  241. package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
  242. package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +38 -0
  243. package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
  244. package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +37 -0
  245. package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
  246. package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.js +38 -0
  247. package/esm/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
  248. package/esm/compute/hooks/mutations/useUpdateResourceMutation.js +37 -0
  249. package/esm/compute/hooks/queries/index.d.ts +10 -2
  250. package/esm/compute/hooks/queries/index.js +10 -2
  251. package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
  252. package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.js +47 -0
  253. package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
  254. package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +32 -0
  255. package/esm/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
  256. package/esm/compute/hooks/queries/usePlatformNamespaceQuery.js +47 -0
  257. package/esm/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
  258. package/esm/compute/hooks/queries/usePlatformNamespacesQuery.js +32 -0
  259. package/esm/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
  260. package/esm/compute/hooks/queries/useResourceEventQuery.js +47 -0
  261. package/esm/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
  262. package/esm/compute/hooks/queries/useResourceEventsQuery.js +32 -0
  263. package/esm/compute/hooks/queries/useResourceQuery.d.ts +65 -0
  264. package/esm/compute/hooks/queries/useResourceQuery.js +47 -0
  265. package/esm/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
  266. package/esm/compute/hooks/queries/useResourcesQuery.js +32 -0
  267. package/esm/compute/hooks/query-keys.d.ts +68 -12
  268. package/esm/compute/hooks/query-keys.js +39 -7
  269. package/esm/compute/orm/index.d.ts +15 -7
  270. package/esm/compute/orm/index.js +10 -2
  271. package/esm/compute/orm/input-types.d.ts +1159 -221
  272. package/esm/compute/orm/input-types.js +4 -0
  273. package/esm/compute/orm/models/index.d.ts +5 -1
  274. package/esm/compute/orm/models/index.js +5 -1
  275. package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
  276. package/esm/compute/orm/models/platformNamespace.js +100 -0
  277. package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
  278. package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
  279. package/esm/compute/orm/models/resource.d.ts +54 -0
  280. package/esm/compute/orm/models/resource.js +100 -0
  281. package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
  282. package/esm/compute/orm/models/resourceEvent.js +103 -0
  283. package/esm/compute/orm/mutation/index.d.ts +9 -9
  284. package/esm/compute/orm/mutation/index.js +12 -12
  285. package/esm/compute/schema-types.d.ts +691 -107
  286. package/esm/compute/types.d.ts +71 -12
  287. package/esm/modules/hooks/index.d.ts +1 -1
  288. package/esm/modules/hooks/index.js +1 -1
  289. package/esm/modules/hooks/invalidation.d.ts +24 -12
  290. package/esm/modules/hooks/invalidation.js +63 -31
  291. package/esm/modules/hooks/mutation-keys.d.ts +48 -24
  292. package/esm/modules/hooks/mutation-keys.js +28 -14
  293. package/esm/modules/hooks/mutations/index.d.ts +12 -6
  294. package/esm/modules/hooks/mutations/index.js +12 -6
  295. package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
  296. package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +31 -0
  297. package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
  298. package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.js +31 -0
  299. package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
  300. package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +36 -0
  301. package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
  302. package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.js +36 -0
  303. package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
  304. package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +37 -0
  305. package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
  306. package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.js +37 -0
  307. package/esm/modules/hooks/queries/index.d.ts +8 -4
  308. package/esm/modules/hooks/queries/index.js +8 -4
  309. package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
  310. package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.js +47 -0
  311. package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
  312. package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.js +32 -0
  313. package/esm/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
  314. package/esm/modules/hooks/queries/useResourceModuleQuery.js +47 -0
  315. package/esm/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
  316. package/esm/modules/hooks/queries/useResourceModulesQuery.js +32 -0
  317. package/esm/modules/hooks/query-keys.d.ts +56 -28
  318. package/esm/modules/hooks/query-keys.js +32 -16
  319. package/esm/modules/orm/index.d.ts +8 -4
  320. package/esm/modules/orm/index.js +8 -4
  321. package/esm/modules/orm/input-types.d.ts +868 -411
  322. package/esm/modules/orm/models/index.d.ts +4 -2
  323. package/esm/modules/orm/models/index.js +4 -2
  324. package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
  325. package/esm/modules/orm/models/principalAuthModule.js +100 -0
  326. package/esm/modules/orm/models/resourceModule.d.ts +54 -0
  327. package/esm/modules/orm/models/resourceModule.js +100 -0
  328. package/esm/modules/schema-types.d.ts +451 -169
  329. package/esm/modules/types.d.ts +75 -33
  330. package/modules/hooks/index.d.ts +1 -1
  331. package/modules/hooks/index.js +1 -1
  332. package/modules/hooks/invalidation.d.ts +24 -12
  333. package/modules/hooks/invalidation.js +62 -30
  334. package/modules/hooks/mutation-keys.d.ts +48 -24
  335. package/modules/hooks/mutation-keys.js +30 -16
  336. package/modules/hooks/mutations/index.d.ts +12 -6
  337. package/modules/hooks/mutations/index.js +12 -6
  338. package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
  339. package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +34 -0
  340. package/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
  341. package/modules/hooks/mutations/useCreateResourceModuleMutation.js +34 -0
  342. package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
  343. package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +39 -0
  344. package/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
  345. package/modules/hooks/mutations/useDeleteResourceModuleMutation.js +39 -0
  346. package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
  347. package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +40 -0
  348. package/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
  349. package/modules/hooks/mutations/useUpdateResourceModuleMutation.js +40 -0
  350. package/modules/hooks/queries/index.d.ts +8 -4
  351. package/modules/hooks/queries/index.js +8 -4
  352. package/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
  353. package/modules/hooks/queries/usePrincipalAuthModuleQuery.js +53 -0
  354. package/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
  355. package/modules/hooks/queries/usePrincipalAuthModulesQuery.js +38 -0
  356. package/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
  357. package/modules/hooks/queries/useResourceModuleQuery.js +53 -0
  358. package/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
  359. package/modules/hooks/queries/useResourceModulesQuery.js +38 -0
  360. package/modules/hooks/query-keys.d.ts +56 -28
  361. package/modules/hooks/query-keys.js +34 -18
  362. package/modules/orm/index.d.ts +8 -4
  363. package/modules/orm/index.js +8 -4
  364. package/modules/orm/input-types.d.ts +868 -411
  365. package/modules/orm/models/index.d.ts +4 -2
  366. package/modules/orm/models/index.js +10 -6
  367. package/modules/orm/models/principalAuthModule.d.ts +54 -0
  368. package/modules/orm/models/principalAuthModule.js +104 -0
  369. package/modules/orm/models/resourceModule.d.ts +54 -0
  370. package/modules/orm/models/resourceModule.js +104 -0
  371. package/modules/schema-types.d.ts +451 -169
  372. package/modules/types.d.ts +75 -33
  373. package/package.json +4 -4
@@ -29,19 +29,21 @@ export { BlueprintConstructionModel } from './blueprintConstruction';
29
29
  export { CryptoAuthModuleModel } from './cryptoAuthModule';
30
30
  export { SessionsModuleModel } from './sessionsModule';
31
31
  export { SecureTableProvisionModel } from './secureTableProvision';
32
- export { MerkleStoreModuleModel } from './merkleStoreModule';
33
- export { GraphModuleModel } from './graphModule';
34
32
  export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
35
33
  export { ConfigSecretsModuleModel } from './configSecretsModule';
34
+ export { GraphModuleModel } from './graphModule';
35
+ export { MerkleStoreModuleModel } from './merkleStoreModule';
36
36
  export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
37
37
  export { RealtimeModuleModel } from './realtimeModule';
38
38
  export { WebauthnAuthModuleModel } from './webauthnAuthModule';
39
39
  export { FunctionInvocationModuleModel } from './functionInvocationModule';
40
40
  export { FunctionModuleModel } from './functionModule';
41
41
  export { InvitesModuleModel } from './invitesModule';
42
+ export { PrincipalAuthModuleModel } from './principalAuthModule';
42
43
  export { ComputeLogModuleModel } from './computeLogModule';
43
44
  export { InferenceLogModuleModel } from './inferenceLogModule';
44
45
  export { NamespaceModuleModel } from './namespaceModule';
46
+ export { ResourceModuleModel } from './resourceModule';
45
47
  export { StorageLogModuleModel } from './storageLogModule';
46
48
  export { TransferLogModuleModel } from './transferLogModule';
47
49
  export { FunctionDeploymentModuleModel } from './functionDeploymentModule';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProfilesModuleModel = exports.NotificationsModuleModel = exports.PermissionsModuleModel = exports.HierarchyModuleModel = exports.GraphExecutionModuleModel = exports.DbUsageModuleModel = exports.BillingProviderModuleModel = exports.PlansModuleModel = exports.FunctionDeploymentModuleModel = exports.TransferLogModuleModel = exports.StorageLogModuleModel = exports.NamespaceModuleModel = exports.InferenceLogModuleModel = exports.ComputeLogModuleModel = exports.InvitesModuleModel = exports.FunctionModuleModel = exports.FunctionInvocationModuleModel = exports.WebauthnAuthModuleModel = exports.RealtimeModuleModel = exports.RateLimitMetersModuleModel = exports.ConfigSecretsModuleModel = exports.DatabaseProvisionModuleModel = exports.GraphModuleModel = exports.MerkleStoreModuleModel = exports.SecureTableProvisionModel = exports.SessionsModuleModel = exports.CryptoAuthModuleModel = exports.BlueprintConstructionModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.RlsModuleModel = exports.IdentityProvidersModuleModel = exports.DenormalizedTableFieldModel = exports.CryptoAddressesModuleModel = exports.WebauthnCredentialsModuleModel = exports.UsersModuleModel = exports.RateLimitsModuleModel = exports.PhoneNumbersModuleModel = exports.EmailsModuleModel = exports.ConnectedAccountsModuleModel = exports.ConfigSecretsUserModuleModel = exports.UserSettingsModuleModel = exports.UserCredentialsModuleModel = exports.I18NModuleModel = exports.DevicesModuleModel = exports.ConfigSecretsOrgModuleModel = exports.SessionSecretsModuleModel = exports.UserStateModuleModel = exports.MembershipTypesModuleModel = exports.DefaultIdsModuleModel = void 0;
4
- exports.EventsModuleModel = exports.StorageModuleModel = exports.EntityTypeProvisionModel = exports.MembershipsModuleModel = exports.LimitsModuleModel = exports.AgentModuleModel = exports.UserAuthModuleModel = exports.RelationProvisionModel = exports.BillingModuleModel = void 0;
3
+ exports.PermissionsModuleModel = exports.HierarchyModuleModel = exports.GraphExecutionModuleModel = exports.DbUsageModuleModel = exports.BillingProviderModuleModel = exports.PlansModuleModel = exports.FunctionDeploymentModuleModel = exports.TransferLogModuleModel = exports.StorageLogModuleModel = exports.ResourceModuleModel = exports.NamespaceModuleModel = exports.InferenceLogModuleModel = exports.ComputeLogModuleModel = exports.PrincipalAuthModuleModel = exports.InvitesModuleModel = exports.FunctionModuleModel = exports.FunctionInvocationModuleModel = exports.WebauthnAuthModuleModel = exports.RealtimeModuleModel = exports.RateLimitMetersModuleModel = exports.MerkleStoreModuleModel = exports.GraphModuleModel = exports.ConfigSecretsModuleModel = exports.DatabaseProvisionModuleModel = exports.SecureTableProvisionModel = exports.SessionsModuleModel = exports.CryptoAuthModuleModel = exports.BlueprintConstructionModel = exports.BlueprintTemplateModel = exports.BlueprintModel = exports.RlsModuleModel = exports.IdentityProvidersModuleModel = exports.DenormalizedTableFieldModel = exports.CryptoAddressesModuleModel = exports.WebauthnCredentialsModuleModel = exports.UsersModuleModel = exports.RateLimitsModuleModel = exports.PhoneNumbersModuleModel = exports.EmailsModuleModel = exports.ConnectedAccountsModuleModel = exports.ConfigSecretsUserModuleModel = exports.UserSettingsModuleModel = exports.UserCredentialsModuleModel = exports.I18NModuleModel = exports.DevicesModuleModel = exports.ConfigSecretsOrgModuleModel = exports.SessionSecretsModuleModel = exports.UserStateModuleModel = exports.MembershipTypesModuleModel = exports.DefaultIdsModuleModel = void 0;
4
+ exports.EventsModuleModel = exports.StorageModuleModel = exports.EntityTypeProvisionModel = exports.MembershipsModuleModel = exports.LimitsModuleModel = exports.AgentModuleModel = exports.UserAuthModuleModel = exports.RelationProvisionModel = exports.BillingModuleModel = exports.ProfilesModuleModel = exports.NotificationsModuleModel = void 0;
5
5
  /**
6
6
  * Models barrel export
7
7
  * @generated by @constructive-io/graphql-codegen
@@ -59,14 +59,14 @@ var sessionsModule_1 = require("./sessionsModule");
59
59
  Object.defineProperty(exports, "SessionsModuleModel", { enumerable: true, get: function () { return sessionsModule_1.SessionsModuleModel; } });
60
60
  var secureTableProvision_1 = require("./secureTableProvision");
61
61
  Object.defineProperty(exports, "SecureTableProvisionModel", { enumerable: true, get: function () { return secureTableProvision_1.SecureTableProvisionModel; } });
62
- var merkleStoreModule_1 = require("./merkleStoreModule");
63
- Object.defineProperty(exports, "MerkleStoreModuleModel", { enumerable: true, get: function () { return merkleStoreModule_1.MerkleStoreModuleModel; } });
64
- var graphModule_1 = require("./graphModule");
65
- Object.defineProperty(exports, "GraphModuleModel", { enumerable: true, get: function () { return graphModule_1.GraphModuleModel; } });
66
62
  var databaseProvisionModule_1 = require("./databaseProvisionModule");
67
63
  Object.defineProperty(exports, "DatabaseProvisionModuleModel", { enumerable: true, get: function () { return databaseProvisionModule_1.DatabaseProvisionModuleModel; } });
68
64
  var configSecretsModule_1 = require("./configSecretsModule");
69
65
  Object.defineProperty(exports, "ConfigSecretsModuleModel", { enumerable: true, get: function () { return configSecretsModule_1.ConfigSecretsModuleModel; } });
66
+ var graphModule_1 = require("./graphModule");
67
+ Object.defineProperty(exports, "GraphModuleModel", { enumerable: true, get: function () { return graphModule_1.GraphModuleModel; } });
68
+ var merkleStoreModule_1 = require("./merkleStoreModule");
69
+ Object.defineProperty(exports, "MerkleStoreModuleModel", { enumerable: true, get: function () { return merkleStoreModule_1.MerkleStoreModuleModel; } });
70
70
  var rateLimitMetersModule_1 = require("./rateLimitMetersModule");
71
71
  Object.defineProperty(exports, "RateLimitMetersModuleModel", { enumerable: true, get: function () { return rateLimitMetersModule_1.RateLimitMetersModuleModel; } });
72
72
  var realtimeModule_1 = require("./realtimeModule");
@@ -79,12 +79,16 @@ var functionModule_1 = require("./functionModule");
79
79
  Object.defineProperty(exports, "FunctionModuleModel", { enumerable: true, get: function () { return functionModule_1.FunctionModuleModel; } });
80
80
  var invitesModule_1 = require("./invitesModule");
81
81
  Object.defineProperty(exports, "InvitesModuleModel", { enumerable: true, get: function () { return invitesModule_1.InvitesModuleModel; } });
82
+ var principalAuthModule_1 = require("./principalAuthModule");
83
+ Object.defineProperty(exports, "PrincipalAuthModuleModel", { enumerable: true, get: function () { return principalAuthModule_1.PrincipalAuthModuleModel; } });
82
84
  var computeLogModule_1 = require("./computeLogModule");
83
85
  Object.defineProperty(exports, "ComputeLogModuleModel", { enumerable: true, get: function () { return computeLogModule_1.ComputeLogModuleModel; } });
84
86
  var inferenceLogModule_1 = require("./inferenceLogModule");
85
87
  Object.defineProperty(exports, "InferenceLogModuleModel", { enumerable: true, get: function () { return inferenceLogModule_1.InferenceLogModuleModel; } });
86
88
  var namespaceModule_1 = require("./namespaceModule");
87
89
  Object.defineProperty(exports, "NamespaceModuleModel", { enumerable: true, get: function () { return namespaceModule_1.NamespaceModuleModel; } });
90
+ var resourceModule_1 = require("./resourceModule");
91
+ Object.defineProperty(exports, "ResourceModuleModel", { enumerable: true, get: function () { return resourceModule_1.ResourceModuleModel; } });
88
92
  var storageLogModule_1 = require("./storageLogModule");
89
93
  Object.defineProperty(exports, "StorageLogModuleModel", { enumerable: true, get: function () { return storageLogModule_1.StorageLogModuleModel; } });
90
94
  var transferLogModule_1 = require("./transferLogModule");
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PrincipalAuthModule 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 { PrincipalAuthModuleWithRelations, PrincipalAuthModuleSelect, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy, CreatePrincipalAuthModuleInput, PrincipalAuthModulePatch } from '../input-types';
10
+ export declare class PrincipalAuthModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PrincipalAuthModuleSelect>(args: FindManyArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
16
+ principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PrincipalAuthModuleSelect>(args: FindFirstArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
21
+ principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PrincipalAuthModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
27
+ principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PrincipalAuthModuleSelect>(args: CreateArgs<S, CreatePrincipalAuthModuleInput['principalAuthModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
32
+ createPrincipalAuthModule: {
33
+ principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PrincipalAuthModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PrincipalAuthModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
41
+ updatePrincipalAuthModule: {
42
+ principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PrincipalAuthModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
50
+ deletePrincipalAuthModule: {
51
+ principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrincipalAuthModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class PrincipalAuthModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalAuthModule', 'principalAuthModules', 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
+ }, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'PrincipalAuthModule',
25
+ fieldName: 'principalAuthModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PrincipalAuthModule', 'principalAuthModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'PrincipalAuthModule',
39
+ fieldName: 'principalAuthModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PrincipalAuthModule', 'principalAuthModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'PrincipalAuthModule',
60
+ fieldName: 'principalAuthModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('PrincipalAuthModule', 'createPrincipalAuthModule', 'principalAuthModule', args.select, args.data, 'CreatePrincipalAuthModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'PrincipalAuthModule',
74
+ fieldName: 'createPrincipalAuthModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PrincipalAuthModule', 'updatePrincipalAuthModule', 'principalAuthModule', args.select, args.where.id, args.data, 'UpdatePrincipalAuthModuleInput', 'id', 'principalAuthModulePatch', input_types_1.connectionFieldsMap, undefined);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'PrincipalAuthModule',
85
+ fieldName: 'updatePrincipalAuthModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('PrincipalAuthModule', 'deletePrincipalAuthModule', 'principalAuthModule', {
92
+ id: args.where.id,
93
+ }, 'DeletePrincipalAuthModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'PrincipalAuthModule',
98
+ fieldName: 'deletePrincipalAuthModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.PrincipalAuthModuleModel = PrincipalAuthModuleModel;
@@ -0,0 +1,54 @@
1
+ /**
2
+ * ResourceModule 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 { ResourceModuleWithRelations, ResourceModuleSelect, ResourceModuleFilter, ResourceModuleOrderBy, CreateResourceModuleInput, ResourceModulePatch } from '../input-types';
10
+ export declare class ResourceModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends ResourceModuleSelect>(args: FindManyArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
16
+ resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends ResourceModuleSelect>(args: FindFirstArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
21
+ resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends ResourceModuleSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
27
+ resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
28
+ }>;
29
+ create<S extends ResourceModuleSelect>(args: CreateArgs<S, CreateResourceModuleInput['resourceModule']> & {
30
+ select: S;
31
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
32
+ createResourceModule: {
33
+ resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends ResourceModuleSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, ResourceModulePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
41
+ updateResourceModule: {
42
+ resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends ResourceModuleSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
50
+ deleteResourceModule: {
51
+ resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceModuleModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class ResourceModuleModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceModule', 'resourceModules', 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
+ }, 'ResourceModuleFilter', 'ResourceModuleOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'ResourceModule',
25
+ fieldName: 'resourceModules',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ResourceModule', 'resourceModules', args.select, {
32
+ where: args?.where,
33
+ orderBy: args?.orderBy,
34
+ }, 'ResourceModuleFilter', 'ResourceModuleOrderBy', input_types_1.connectionFieldsMap);
35
+ return new query_builder_1.QueryBuilder({
36
+ client: this.client,
37
+ operation: 'query',
38
+ operationName: 'ResourceModule',
39
+ fieldName: 'resourceModule',
40
+ document,
41
+ variables,
42
+ transform: (data) => ({
43
+ resourceModule: data.resourceModules?.nodes?.[0] ?? null,
44
+ }),
45
+ });
46
+ }
47
+ findOne(args) {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceModule', 'resourceModules', args.select, {
49
+ where: {
50
+ id: {
51
+ equalTo: args.id,
52
+ },
53
+ },
54
+ first: 1,
55
+ }, 'ResourceModuleFilter', 'ResourceModuleOrderBy', input_types_1.connectionFieldsMap);
56
+ return new query_builder_1.QueryBuilder({
57
+ client: this.client,
58
+ operation: 'query',
59
+ operationName: 'ResourceModule',
60
+ fieldName: 'resourceModule',
61
+ document,
62
+ variables,
63
+ transform: (data) => ({
64
+ resourceModule: data.resourceModules?.nodes?.[0] ?? null,
65
+ }),
66
+ });
67
+ }
68
+ create(args) {
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('ResourceModule', 'createResourceModule', 'resourceModule', args.select, args.data, 'CreateResourceModuleInput', input_types_1.connectionFieldsMap);
70
+ return new query_builder_1.QueryBuilder({
71
+ client: this.client,
72
+ operation: 'mutation',
73
+ operationName: 'ResourceModule',
74
+ fieldName: 'createResourceModule',
75
+ document,
76
+ variables,
77
+ });
78
+ }
79
+ update(args) {
80
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ResourceModule', 'updateResourceModule', 'resourceModule', args.select, args.where.id, args.data, 'UpdateResourceModuleInput', 'id', 'resourceModulePatch', input_types_1.connectionFieldsMap, undefined);
81
+ return new query_builder_1.QueryBuilder({
82
+ client: this.client,
83
+ operation: 'mutation',
84
+ operationName: 'ResourceModule',
85
+ fieldName: 'updateResourceModule',
86
+ document,
87
+ variables,
88
+ });
89
+ }
90
+ delete(args) {
91
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ResourceModule', 'deleteResourceModule', 'resourceModule', {
92
+ id: args.where.id,
93
+ }, 'DeleteResourceModuleInput', args.select, input_types_1.connectionFieldsMap);
94
+ return new query_builder_1.QueryBuilder({
95
+ client: this.client,
96
+ operation: 'mutation',
97
+ operationName: 'ResourceModule',
98
+ fieldName: 'deleteResourceModule',
99
+ document,
100
+ variables,
101
+ });
102
+ }
103
+ }
104
+ exports.ResourceModuleModel = ResourceModuleModel;