@constructive-io/react 0.27.0 → 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
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Association table scoping principals to specific organizations
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
+ import type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityPatch } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityPatch, } from '../../orm/input-types';
10
+ /**
11
+ * Association table scoping principals to specific organizations
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const { mutate, isPending } = useUpdatePrincipalEntityMutation({
16
+ * selection: { fields: { id: true, name: true } },
17
+ * });
18
+ *
19
+ * mutate({ id: 'value-here', principalEntityPatch: { name: 'Updated' } });
20
+ * ```
21
+ */
22
+ export declare function useUpdatePrincipalEntityMutation<S extends PrincipalEntitySelect>(params: {
23
+ selection: {
24
+ fields: S & PrincipalEntitySelect;
25
+ } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
26
+ } & Omit<UseMutationOptions<{
27
+ updatePrincipalEntity: {
28
+ principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
29
+ };
30
+ }, Error, {
31
+ id: string;
32
+ principalEntityPatch: PrincipalEntityPatch;
33
+ }>, 'mutationFn'>): UseMutationResult<{
34
+ updatePrincipalEntity: {
35
+ principalEntity: InferSelectResult<PrincipalEntityWithRelations, S>;
36
+ };
37
+ }, Error, {
38
+ id: string;
39
+ principalEntityPatch: PrincipalEntityPatch;
40
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * Association table scoping principals to specific organizations
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.useUpdatePrincipalEntityMutation = useUpdatePrincipalEntityMutation;
9
+ const react_query_1 = require("@tanstack/react-query");
10
+ const client_1 = require("../client");
11
+ const selection_1 = require("../selection");
12
+ const query_keys_1 = require("../query-keys");
13
+ const mutation_keys_1 = require("../mutation-keys");
14
+ function useUpdatePrincipalEntityMutation(params) {
15
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
16
+ const { selection: _selection, ...mutationOptions } = params ?? {};
17
+ void _selection;
18
+ const queryClient = (0, react_query_1.useQueryClient)();
19
+ return (0, react_query_1.useMutation)({
20
+ mutationKey: mutation_keys_1.principalEntityMutationKeys.all,
21
+ mutationFn: ({ id, principalEntityPatch, }) => (0, client_1.getClient)()
22
+ .principalEntity.update({
23
+ where: {
24
+ id,
25
+ },
26
+ data: principalEntityPatch,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ onSuccess: (_, variables) => {
31
+ queryClient.invalidateQueries({
32
+ queryKey: query_keys_1.principalEntityKeys.detail(variables.id),
33
+ });
34
+ queryClient.invalidateQueries({
35
+ queryKey: query_keys_1.principalEntityKeys.lists(),
36
+ });
37
+ },
38
+ ...mutationOptions,
39
+ });
40
+ }
@@ -3,6 +3,12 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
+ export * from './usePrincipalsQuery';
7
+ export * from './usePrincipalQuery';
8
+ export * from './usePrincipalEntitiesQuery';
9
+ export * from './usePrincipalEntityQuery';
10
+ export * from './usePrincipalScopeOverridesQuery';
11
+ export * from './usePrincipalScopeOverrideQuery';
6
12
  export * from './useEmailsQuery';
7
13
  export * from './useEmailQuery';
8
14
  export * from './usePhoneNumbersQuery';
@@ -18,10 +24,12 @@ export * from './useRoleTypesQuery';
18
24
  export * from './useRoleTypeQuery';
19
25
  export * from './useUserConnectedAccountsQuery';
20
26
  export * from './useUserConnectedAccountQuery';
27
+ export * from './useOrgApiKeyListsQuery';
28
+ export * from './useOrgApiKeyListQuery';
21
29
  export * from './useUsersQuery';
22
30
  export * from './useUserQuery';
23
31
  export * from './useCurrentUserAgentQuery';
24
- export * from './useCurrentIpAddressQuery';
25
32
  export * from './useCurrentUserIdQuery';
33
+ export * from './useCurrentIpAddressQuery';
26
34
  export * from './useRequireStepUpQuery';
27
35
  export * from './useCurrentUserQuery';
@@ -19,6 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  * @generated by @constructive-io/graphql-codegen
20
20
  * DO NOT EDIT - changes will be overwritten
21
21
  */
22
+ __exportStar(require("./usePrincipalsQuery"), exports);
23
+ __exportStar(require("./usePrincipalQuery"), exports);
24
+ __exportStar(require("./usePrincipalEntitiesQuery"), exports);
25
+ __exportStar(require("./usePrincipalEntityQuery"), exports);
26
+ __exportStar(require("./usePrincipalScopeOverridesQuery"), exports);
27
+ __exportStar(require("./usePrincipalScopeOverrideQuery"), exports);
22
28
  __exportStar(require("./useEmailsQuery"), exports);
23
29
  __exportStar(require("./useEmailQuery"), exports);
24
30
  __exportStar(require("./usePhoneNumbersQuery"), exports);
@@ -34,10 +40,12 @@ __exportStar(require("./useRoleTypesQuery"), exports);
34
40
  __exportStar(require("./useRoleTypeQuery"), exports);
35
41
  __exportStar(require("./useUserConnectedAccountsQuery"), exports);
36
42
  __exportStar(require("./useUserConnectedAccountQuery"), exports);
43
+ __exportStar(require("./useOrgApiKeyListsQuery"), exports);
44
+ __exportStar(require("./useOrgApiKeyListQuery"), exports);
37
45
  __exportStar(require("./useUsersQuery"), exports);
38
46
  __exportStar(require("./useUserQuery"), exports);
39
47
  __exportStar(require("./useCurrentUserAgentQuery"), exports);
40
- __exportStar(require("./useCurrentIpAddressQuery"), exports);
41
48
  __exportStar(require("./useCurrentUserIdQuery"), exports);
49
+ __exportStar(require("./useCurrentIpAddressQuery"), exports);
42
50
  __exportStar(require("./useRequireStepUpQuery"), exports);
43
51
  __exportStar(require("./useCurrentUserQuery"), exports);
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Single item query hook for OrgApiKeyList
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
+ import type { OrgApiKeyListSelect, OrgApiKeyListWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { OrgApiKeyListSelect, OrgApiKeyListWithRelations } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const orgApiKeyListQueryKey: (id: string | number) => readonly ["orgapikeylist", "detail", string | number];
12
+ /**
13
+ * Query hook for fetching a single OrgApiKeyList
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = useOrgApiKeyListQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function useOrgApiKeyListQuery<S extends OrgApiKeyListSelect, TData = {
24
+ orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Fetch a single OrgApiKeyList without React hooks
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchOrgApiKeyListQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchOrgApiKeyListQuery<S extends OrgApiKeyListSelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
49
+ }): Promise<{
50
+ orgApiKeyList: InferSelectResult<OrgApiKeyListWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Prefetch a single OrgApiKeyList for SSR or cache warming
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchOrgApiKeyListQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchOrgApiKeyListQuery<S extends OrgApiKeyListSelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * Single item query hook for OrgApiKeyList
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.orgApiKeyListQueryKey = void 0;
9
+ exports.useOrgApiKeyListQuery = useOrgApiKeyListQuery;
10
+ exports.fetchOrgApiKeyListQuery = fetchOrgApiKeyListQuery;
11
+ exports.prefetchOrgApiKeyListQuery = prefetchOrgApiKeyListQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.orgApiKeyListQueryKey = query_keys_1.orgApiKeyListKeys.detail;
18
+ function useOrgApiKeyListQuery(params) {
19
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.orgApiKeyListKeys.detail(params.id),
24
+ queryFn: () => (0, client_1.getClient)()
25
+ .orgApiKeyList.findOne({
26
+ id: params.id,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ ...queryOptions,
31
+ });
32
+ }
33
+ async function fetchOrgApiKeyListQuery(params) {
34
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
+ return (0, client_1.getClient)()
36
+ .orgApiKeyList.findOne({
37
+ id: params.id,
38
+ select: args.select,
39
+ })
40
+ .unwrap();
41
+ }
42
+ async function prefetchOrgApiKeyListQuery(queryClient, params) {
43
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
+ await queryClient.prefetchQuery({
45
+ queryKey: query_keys_1.orgApiKeyListKeys.detail(params.id),
46
+ queryFn: () => (0, client_1.getClient)()
47
+ .orgApiKeyList.findOne({
48
+ id: params.id,
49
+ select: args.select,
50
+ })
51
+ .unwrap(),
52
+ });
53
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * List query hook for OrgApiKeyList
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
+ import type { ListSelectionConfig } from '../selection';
8
+ import type { OrgApiKeyListSelect, OrgApiKeyListWithRelations, OrgApiKeyListFilter, OrgApiKeyListOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { OrgApiKeyListSelect, OrgApiKeyListWithRelations, OrgApiKeyListFilter, OrgApiKeyListOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const orgApiKeyListsQueryKey: (variables?: object) => readonly ["orgapikeylist", "list", object];
13
+ /**
14
+ * Query hook for fetching OrgApiKeyList list
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = useOrgApiKeyListsQuery({
19
+ * selection: {
20
+ * fields: { id: true, name: true },
21
+ * where: { name: { equalTo: "example" } },
22
+ * orderBy: ['CREATED_AT_DESC'],
23
+ * first: 10,
24
+ * },
25
+ * });
26
+ * ```
27
+ */
28
+ export declare function useOrgApiKeyListsQuery<S extends OrgApiKeyListSelect, TData = {
29
+ orgApiKeyLists: ConnectionResult<InferSelectResult<OrgApiKeyListWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, OrgApiKeyListFilter, OrgApiKeyListOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ orgApiKeyLists: ConnectionResult<InferSelectResult<OrgApiKeyListWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Fetch OrgApiKeyList list without React hooks
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchOrgApiKeyListsQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchOrgApiKeyListsQuery<S extends OrgApiKeyListSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, OrgApiKeyListFilter, OrgApiKeyListOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
54
+ }): Promise<{
55
+ orgApiKeyLists: ConnectionResult<InferSelectResult<OrgApiKeyListWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Prefetch OrgApiKeyList list for SSR or cache warming
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchOrgApiKeyListsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchOrgApiKeyListsQuery<S extends OrgApiKeyListSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, OrgApiKeyListFilter, OrgApiKeyListOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, OrgApiKeyListSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * List query hook for OrgApiKeyList
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.orgApiKeyListsQueryKey = void 0;
9
+ exports.useOrgApiKeyListsQuery = useOrgApiKeyListsQuery;
10
+ exports.fetchOrgApiKeyListsQuery = fetchOrgApiKeyListsQuery;
11
+ exports.prefetchOrgApiKeyListsQuery = prefetchOrgApiKeyListsQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.orgApiKeyListsQueryKey = query_keys_1.orgApiKeyListKeys.list;
18
+ function useOrgApiKeyListsQuery(params) {
19
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.orgApiKeyListKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().orgApiKeyList.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchOrgApiKeyListsQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().orgApiKeyList.findMany(args).unwrap();
31
+ }
32
+ async function prefetchOrgApiKeyListsQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.orgApiKeyListKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().orgApiKeyList.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Association table scoping principals to specific organizations
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
+ import type { ListSelectionConfig } from '../selection';
8
+ import type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityFilter, PrincipalEntityOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { PrincipalEntitySelect, PrincipalEntityWithRelations, PrincipalEntityFilter, PrincipalEntityOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const principalEntitiesQueryKey: (variables?: object) => readonly ["principalentity", "list", object];
13
+ /**
14
+ * Association table scoping principals to specific organizations
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = usePrincipalEntitiesQuery({
19
+ * selection: {
20
+ * fields: { id: true, name: true },
21
+ * where: { name: { equalTo: "example" } },
22
+ * orderBy: ['CREATED_AT_DESC'],
23
+ * first: 10,
24
+ * },
25
+ * });
26
+ * ```
27
+ */
28
+ export declare function usePrincipalEntitiesQuery<S extends PrincipalEntitySelect, TData = {
29
+ principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Association table scoping principals to specific organizations
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchPrincipalEntitiesQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchPrincipalEntitiesQuery<S extends PrincipalEntitySelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
54
+ }): Promise<{
55
+ principalEntities: ConnectionResult<InferSelectResult<PrincipalEntityWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Association table scoping principals to specific organizations
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchPrincipalEntitiesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchPrincipalEntitiesQuery<S extends PrincipalEntitySelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, PrincipalEntityFilter, PrincipalEntityOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Association table scoping principals to specific organizations
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.principalEntitiesQueryKey = void 0;
9
+ exports.usePrincipalEntitiesQuery = usePrincipalEntitiesQuery;
10
+ exports.fetchPrincipalEntitiesQuery = fetchPrincipalEntitiesQuery;
11
+ exports.prefetchPrincipalEntitiesQuery = prefetchPrincipalEntitiesQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.principalEntitiesQueryKey = query_keys_1.principalEntityKeys.list;
18
+ function usePrincipalEntitiesQuery(params) {
19
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.principalEntityKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().principalEntity.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchPrincipalEntitiesQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().principalEntity.findMany(args).unwrap();
31
+ }
32
+ async function prefetchPrincipalEntitiesQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.principalEntityKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().principalEntity.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Association table scoping principals to specific organizations
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
+ import type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { PrincipalEntitySelect, PrincipalEntityWithRelations } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const principalEntityQueryKey: (id: string | number) => readonly ["principalentity", "detail", string | number];
12
+ /**
13
+ * Association table scoping principals to specific organizations
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = usePrincipalEntityQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function usePrincipalEntityQuery<S extends PrincipalEntitySelect, TData = {
24
+ principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Association table scoping principals to specific organizations
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchPrincipalEntityQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchPrincipalEntityQuery<S extends PrincipalEntitySelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
49
+ }): Promise<{
50
+ principalEntity: InferSelectResult<PrincipalEntityWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Association table scoping principals to specific organizations
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchPrincipalEntityQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchPrincipalEntityQuery<S extends PrincipalEntitySelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, PrincipalEntitySelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * Association table scoping principals to specific organizations
4
+ * @generated by @constructive-io/graphql-codegen
5
+ * DO NOT EDIT - changes will be overwritten
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.principalEntityQueryKey = void 0;
9
+ exports.usePrincipalEntityQuery = usePrincipalEntityQuery;
10
+ exports.fetchPrincipalEntityQuery = fetchPrincipalEntityQuery;
11
+ exports.prefetchPrincipalEntityQuery = prefetchPrincipalEntityQuery;
12
+ const react_query_1 = require("@tanstack/react-query");
13
+ const client_1 = require("../client");
14
+ const selection_1 = require("../selection");
15
+ const query_keys_1 = require("../query-keys");
16
+ /** Query key factory - re-exported from query-keys.ts */
17
+ exports.principalEntityQueryKey = query_keys_1.principalEntityKeys.detail;
18
+ function usePrincipalEntityQuery(params) {
19
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
20
+ const { selection: _selection, ...queryOptions } = params ?? {};
21
+ void _selection;
22
+ return (0, react_query_1.useQuery)({
23
+ queryKey: query_keys_1.principalEntityKeys.detail(params.id),
24
+ queryFn: () => (0, client_1.getClient)()
25
+ .principalEntity.findOne({
26
+ id: params.id,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ ...queryOptions,
31
+ });
32
+ }
33
+ async function fetchPrincipalEntityQuery(params) {
34
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
+ return (0, client_1.getClient)()
36
+ .principalEntity.findOne({
37
+ id: params.id,
38
+ select: args.select,
39
+ })
40
+ .unwrap();
41
+ }
42
+ async function prefetchPrincipalEntityQuery(queryClient, params) {
43
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
+ await queryClient.prefetchQuery({
45
+ queryKey: query_keys_1.principalEntityKeys.detail(params.id),
46
+ queryFn: () => (0, client_1.getClient)()
47
+ .principalEntity.findOne({
48
+ id: params.id,
49
+ select: args.select,
50
+ })
51
+ .unwrap(),
52
+ });
53
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Scoped sub-identities (API keys and agents) with precomputed SPRT
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
7
+ import type { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { PrincipalSelect, PrincipalWithRelations } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const principalQueryKey: (id: string | number) => readonly ["principal", "detail", string | number];
12
+ /**
13
+ * Scoped sub-identities (API keys and agents) with precomputed SPRT
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = usePrincipalQuery({
18
+ * principalId: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function usePrincipalQuery<S extends PrincipalSelect, TData = {
24
+ principal: InferSelectResult<PrincipalWithRelations, S> | null;
25
+ }>(params: {
26
+ principalId: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ principal: InferSelectResult<PrincipalWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Scoped sub-identities (API keys and agents) with precomputed SPRT
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchPrincipalQuery({
39
+ * principalId: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchPrincipalQuery<S extends PrincipalSelect>(params: {
45
+ principalId: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
49
+ }): Promise<{
50
+ principal: InferSelectResult<PrincipalWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Scoped sub-identities (API keys and agents) with precomputed SPRT
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchPrincipalQuery(queryClient, { principalId: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchPrincipalQuery<S extends PrincipalSelect>(queryClient: QueryClient, params: {
61
+ principalId: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
65
+ }): Promise<void>;