@constructive-io/react 0.15.2 → 0.15.4

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 (379) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +65 -47
  4. package/admin/hooks/invalidation.js +143 -95
  5. package/admin/hooks/mutation-keys.d.ts +130 -96
  6. package/admin/hooks/mutation-keys.js +78 -60
  7. package/admin/hooks/mutations/index.d.ts +32 -28
  8. package/admin/hooks/mutations/index.js +32 -28
  9. package/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
  10. package/{auth/hooks/mutations/useConfirmUploadMutation.js → admin/hooks/mutations/useCreateAppLimitEventMutation.js} +14 -6
  11. package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
  12. package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
  13. package/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
  14. package/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
  15. package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
  16. package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
  17. package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
  18. package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
  19. package/admin/hooks/queries/index.d.ts +22 -18
  20. package/admin/hooks/queries/index.js +22 -18
  21. package/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
  22. package/admin/hooks/queries/useAppLimitEventsQuery.js +38 -0
  23. package/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
  24. package/admin/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
  25. package/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
  26. package/admin/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
  27. package/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
  28. package/admin/hooks/queries/useOrgLimitEventsQuery.js +38 -0
  29. package/admin/hooks/query-keys.d.ts +154 -112
  30. package/admin/hooks/query-keys.js +90 -66
  31. package/admin/orm/index.d.ts +24 -23
  32. package/admin/orm/index.js +24 -18
  33. package/admin/orm/input-types.d.ts +1297 -839
  34. package/admin/orm/models/appLimitEvent.d.ts +32 -0
  35. package/admin/orm/models/appLimitEvent.js +55 -0
  36. package/admin/orm/models/index.d.ts +12 -9
  37. package/admin/orm/models/index.js +25 -19
  38. package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  39. package/admin/orm/models/orgLimitAggregate.js +100 -0
  40. package/admin/orm/models/orgLimitEvent.d.ts +32 -0
  41. package/admin/orm/models/orgLimitEvent.js +55 -0
  42. package/admin/orm/mutation/index.d.ts +1 -15
  43. package/admin/orm/mutation/index.js +0 -12
  44. package/admin/schema-types.d.ts +1207 -856
  45. package/admin/types.d.ts +96 -53
  46. package/auth/hooks/mutation-keys.d.ts +0 -2
  47. package/auth/hooks/mutation-keys.js +0 -3
  48. package/auth/hooks/mutations/index.d.ts +0 -1
  49. package/auth/hooks/mutations/index.js +0 -1
  50. package/auth/orm/index.d.ts +0 -5
  51. package/auth/orm/input-types.d.ts +0 -20
  52. package/auth/orm/mutation/index.d.ts +1 -15
  53. package/auth/orm/mutation/index.js +0 -12
  54. package/auth/schema-types.d.ts +0 -14
  55. package/esm/admin/hooks/index.d.ts +1 -1
  56. package/esm/admin/hooks/index.js +1 -1
  57. package/esm/admin/hooks/invalidation.d.ts +65 -47
  58. package/esm/admin/hooks/invalidation.js +144 -96
  59. package/esm/admin/hooks/mutation-keys.d.ts +130 -96
  60. package/esm/admin/hooks/mutation-keys.js +77 -59
  61. package/esm/admin/hooks/mutations/index.d.ts +32 -28
  62. package/esm/admin/hooks/mutations/index.js +32 -28
  63. package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
  64. package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
  65. package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
  66. package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
  67. package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
  68. package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
  69. package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
  70. package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
  71. package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
  72. package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
  73. package/esm/admin/hooks/queries/index.d.ts +22 -18
  74. package/esm/admin/hooks/queries/index.js +22 -18
  75. package/esm/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
  76. package/esm/admin/hooks/queries/useAppLimitEventsQuery.js +32 -0
  77. package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
  78. package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
  79. package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
  80. package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
  81. package/esm/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
  82. package/esm/admin/hooks/queries/useOrgLimitEventsQuery.js +32 -0
  83. package/esm/admin/hooks/query-keys.d.ts +154 -112
  84. package/esm/admin/hooks/query-keys.js +89 -65
  85. package/esm/admin/orm/index.d.ts +24 -23
  86. package/esm/admin/orm/index.js +24 -18
  87. package/esm/admin/orm/input-types.d.ts +1297 -839
  88. package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
  89. package/esm/admin/orm/models/appLimitEvent.js +51 -0
  90. package/esm/admin/orm/models/index.d.ts +12 -9
  91. package/esm/admin/orm/models/index.js +12 -9
  92. package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  93. package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
  94. package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
  95. package/esm/admin/orm/models/orgLimitEvent.js +51 -0
  96. package/esm/admin/orm/mutation/index.d.ts +1 -15
  97. package/esm/admin/orm/mutation/index.js +0 -12
  98. package/esm/admin/schema-types.d.ts +1207 -856
  99. package/esm/admin/types.d.ts +96 -53
  100. package/esm/auth/hooks/mutation-keys.d.ts +0 -2
  101. package/esm/auth/hooks/mutation-keys.js +0 -3
  102. package/esm/auth/hooks/mutations/index.d.ts +0 -1
  103. package/esm/auth/hooks/mutations/index.js +0 -1
  104. package/esm/auth/orm/index.d.ts +0 -5
  105. package/esm/auth/orm/input-types.d.ts +0 -20
  106. package/esm/auth/orm/mutation/index.d.ts +1 -15
  107. package/esm/auth/orm/mutation/index.js +0 -12
  108. package/esm/auth/schema-types.d.ts +0 -14
  109. package/esm/objects/hooks/mutation-keys.d.ts +0 -2
  110. package/esm/objects/hooks/mutation-keys.js +0 -3
  111. package/esm/objects/hooks/mutations/index.d.ts +0 -1
  112. package/esm/objects/hooks/mutations/index.js +0 -1
  113. package/esm/objects/orm/index.d.ts +0 -5
  114. package/esm/objects/orm/input-types.d.ts +0 -20
  115. package/esm/objects/orm/mutation/index.d.ts +1 -15
  116. package/esm/objects/orm/mutation/index.js +0 -12
  117. package/esm/objects/schema-types.d.ts +0 -14
  118. package/esm/public/hooks/index.d.ts +1 -1
  119. package/esm/public/hooks/index.js +1 -1
  120. package/esm/public/hooks/invalidation.d.ts +101 -47
  121. package/esm/public/hooks/invalidation.js +239 -95
  122. package/esm/public/hooks/mutation-keys.d.ts +206 -100
  123. package/esm/public/hooks/mutation-keys.js +125 -65
  124. package/esm/public/hooks/mutations/index.d.ts +50 -28
  125. package/esm/public/hooks/mutations/index.js +50 -28
  126. package/esm/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
  127. package/esm/public/hooks/mutations/useCreateAgentMessageMutation.js +31 -0
  128. package/esm/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
  129. package/esm/public/hooks/mutations/useCreateAgentTaskMutation.js +31 -0
  130. package/esm/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
  131. package/esm/public/hooks/mutations/useCreateAgentThreadMutation.js +31 -0
  132. package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
  133. package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
  134. package/esm/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
  135. package/esm/public/hooks/mutations/useCreateBillingModuleMutation.js +31 -0
  136. package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
  137. package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.js +31 -0
  138. package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
  139. package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
  140. package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
  141. package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
  142. package/esm/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
  143. package/esm/public/hooks/mutations/useCreatePlansModuleMutation.js +31 -0
  144. package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
  145. package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.js +36 -0
  146. package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
  147. package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.js +36 -0
  148. package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
  149. package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.js +36 -0
  150. package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
  151. package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.js +36 -0
  152. package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
  153. package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +36 -0
  154. package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
  155. package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
  156. package/esm/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
  157. package/esm/public/hooks/mutations/useDeletePlansModuleMutation.js +36 -0
  158. package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
  159. package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.js +37 -0
  160. package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
  161. package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.js +37 -0
  162. package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
  163. package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.js +37 -0
  164. package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
  165. package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.js +37 -0
  166. package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
  167. package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +37 -0
  168. package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
  169. package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
  170. package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
  171. package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.js +37 -0
  172. package/esm/public/hooks/queries/index.d.ts +36 -20
  173. package/esm/public/hooks/queries/index.js +36 -20
  174. package/esm/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
  175. package/esm/public/hooks/queries/useAgentMessageQuery.js +47 -0
  176. package/esm/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
  177. package/esm/public/hooks/queries/useAgentMessagesQuery.js +32 -0
  178. package/esm/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
  179. package/esm/public/hooks/queries/useAgentTaskQuery.js +47 -0
  180. package/esm/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
  181. package/esm/public/hooks/queries/useAgentTasksQuery.js +32 -0
  182. package/esm/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
  183. package/esm/public/hooks/queries/useAgentThreadQuery.js +47 -0
  184. package/esm/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
  185. package/esm/public/hooks/queries/useAgentThreadsQuery.js +32 -0
  186. package/esm/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
  187. package/esm/public/hooks/queries/useAppLimitEventsQuery.js +32 -0
  188. package/esm/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
  189. package/esm/public/hooks/queries/useBillingModuleQuery.js +47 -0
  190. package/esm/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
  191. package/esm/public/hooks/queries/useBillingModulesQuery.js +32 -0
  192. package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
  193. package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.js +32 -0
  194. package/esm/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
  195. package/esm/public/hooks/queries/useNodeTypeRegistryQuery.js +47 -0
  196. package/esm/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
  197. package/esm/public/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
  198. package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
  199. package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
  200. package/esm/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
  201. package/esm/public/hooks/queries/useOrgLimitEventsQuery.js +32 -0
  202. package/esm/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
  203. package/esm/public/hooks/queries/usePlansModuleQuery.js +47 -0
  204. package/esm/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
  205. package/esm/public/hooks/queries/usePlansModulesQuery.js +32 -0
  206. package/esm/public/hooks/query-keys.d.ts +246 -120
  207. package/esm/public/hooks/query-keys.js +141 -69
  208. package/esm/public/orm/index.d.ts +56 -43
  209. package/esm/public/orm/index.js +36 -18
  210. package/esm/public/orm/input-types.d.ts +2983 -1112
  211. package/esm/public/orm/input-types.js +9 -0
  212. package/esm/public/orm/models/agentMessage.d.ts +56 -0
  213. package/esm/public/orm/models/agentMessage.js +96 -0
  214. package/esm/public/orm/models/agentTask.d.ts +56 -0
  215. package/esm/public/orm/models/agentTask.js +96 -0
  216. package/esm/public/orm/models/agentThread.d.ts +56 -0
  217. package/esm/public/orm/models/agentThread.js +96 -0
  218. package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
  219. package/esm/public/orm/models/appLimitEvent.js +51 -0
  220. package/esm/public/orm/models/billingModule.d.ts +56 -0
  221. package/esm/public/orm/models/billingModule.js +96 -0
  222. package/esm/public/orm/models/index.d.ts +18 -9
  223. package/esm/public/orm/models/index.js +18 -9
  224. package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  225. package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
  226. package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
  227. package/esm/public/orm/models/orgLimitAggregate.js +96 -0
  228. package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
  229. package/esm/public/orm/models/orgLimitEvent.js +51 -0
  230. package/esm/public/orm/models/plansModule.d.ts +56 -0
  231. package/esm/public/orm/models/plansModule.js +96 -0
  232. package/esm/public/orm/mutation/index.d.ts +17 -31
  233. package/esm/public/orm/mutation/index.js +24 -36
  234. package/esm/public/orm/query/index.d.ts +28 -28
  235. package/esm/public/orm/query/index.js +48 -48
  236. package/esm/public/schema-types.d.ts +3948 -2833
  237. package/esm/public/types.d.ts +194 -77
  238. package/objects/hooks/mutation-keys.d.ts +0 -2
  239. package/objects/hooks/mutation-keys.js +0 -3
  240. package/objects/hooks/mutations/index.d.ts +0 -1
  241. package/objects/hooks/mutations/index.js +0 -1
  242. package/objects/orm/index.d.ts +0 -5
  243. package/objects/orm/input-types.d.ts +0 -20
  244. package/objects/orm/mutation/index.d.ts +1 -15
  245. package/objects/orm/mutation/index.js +0 -12
  246. package/objects/schema-types.d.ts +0 -14
  247. package/package.json +4 -4
  248. package/public/hooks/index.d.ts +1 -1
  249. package/public/hooks/index.js +1 -1
  250. package/public/hooks/invalidation.d.ts +101 -47
  251. package/public/hooks/invalidation.js +238 -94
  252. package/public/hooks/mutation-keys.d.ts +206 -100
  253. package/public/hooks/mutation-keys.js +128 -68
  254. package/public/hooks/mutations/index.d.ts +50 -28
  255. package/public/hooks/mutations/index.js +50 -28
  256. package/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
  257. package/public/hooks/mutations/useCreateAgentMessageMutation.js +34 -0
  258. package/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
  259. package/public/hooks/mutations/useCreateAgentTaskMutation.js +34 -0
  260. package/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
  261. package/public/hooks/mutations/useCreateAgentThreadMutation.js +34 -0
  262. package/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
  263. package/public/hooks/mutations/useCreateAppLimitEventMutation.js +34 -0
  264. package/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
  265. package/{admin/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreateBillingModuleMutation.js} +14 -6
  266. package/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
  267. package/public/hooks/mutations/{useConfirmUploadMutation.js → useCreateNodeTypeRegistryMutation.js} +14 -6
  268. package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
  269. package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
  270. package/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
  271. package/public/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
  272. package/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
  273. package/{objects/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreatePlansModuleMutation.js} +14 -6
  274. package/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
  275. package/public/hooks/mutations/useDeleteAgentMessageMutation.js +39 -0
  276. package/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
  277. package/public/hooks/mutations/useDeleteAgentTaskMutation.js +39 -0
  278. package/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
  279. package/public/hooks/mutations/useDeleteAgentThreadMutation.js +39 -0
  280. package/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
  281. package/public/hooks/mutations/useDeleteBillingModuleMutation.js +39 -0
  282. package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
  283. package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +39 -0
  284. package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
  285. package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
  286. package/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
  287. package/public/hooks/mutations/useDeletePlansModuleMutation.js +39 -0
  288. package/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
  289. package/public/hooks/mutations/useUpdateAgentMessageMutation.js +40 -0
  290. package/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
  291. package/public/hooks/mutations/useUpdateAgentTaskMutation.js +40 -0
  292. package/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
  293. package/public/hooks/mutations/useUpdateAgentThreadMutation.js +40 -0
  294. package/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
  295. package/public/hooks/mutations/useUpdateBillingModuleMutation.js +40 -0
  296. package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
  297. package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +40 -0
  298. package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
  299. package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
  300. package/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
  301. package/public/hooks/mutations/useUpdatePlansModuleMutation.js +40 -0
  302. package/public/hooks/queries/index.d.ts +36 -20
  303. package/public/hooks/queries/index.js +36 -20
  304. package/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
  305. package/public/hooks/queries/useAgentMessageQuery.js +53 -0
  306. package/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
  307. package/public/hooks/queries/useAgentMessagesQuery.js +38 -0
  308. package/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
  309. package/public/hooks/queries/useAgentTaskQuery.js +53 -0
  310. package/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
  311. package/public/hooks/queries/useAgentTasksQuery.js +38 -0
  312. package/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
  313. package/public/hooks/queries/useAgentThreadQuery.js +53 -0
  314. package/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
  315. package/public/hooks/queries/useAgentThreadsQuery.js +38 -0
  316. package/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
  317. package/public/hooks/queries/useAppLimitEventsQuery.js +38 -0
  318. package/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
  319. package/public/hooks/queries/useBillingModuleQuery.js +53 -0
  320. package/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
  321. package/public/hooks/queries/useBillingModulesQuery.js +38 -0
  322. package/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
  323. package/public/hooks/queries/useNodeTypeRegistriesQuery.js +38 -0
  324. package/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
  325. package/public/hooks/queries/useNodeTypeRegistryQuery.js +53 -0
  326. package/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
  327. package/public/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
  328. package/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
  329. package/public/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
  330. package/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
  331. package/public/hooks/queries/useOrgLimitEventsQuery.js +38 -0
  332. package/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
  333. package/public/hooks/queries/usePlansModuleQuery.js +53 -0
  334. package/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
  335. package/public/hooks/queries/usePlansModulesQuery.js +38 -0
  336. package/public/hooks/query-keys.d.ts +246 -120
  337. package/public/hooks/query-keys.js +144 -72
  338. package/public/orm/index.d.ts +56 -43
  339. package/public/orm/index.js +36 -18
  340. package/public/orm/input-types.d.ts +2983 -1112
  341. package/public/orm/input-types.js +9 -0
  342. package/public/orm/models/agentMessage.d.ts +56 -0
  343. package/public/orm/models/agentMessage.js +100 -0
  344. package/public/orm/models/agentTask.d.ts +56 -0
  345. package/public/orm/models/agentTask.js +100 -0
  346. package/public/orm/models/agentThread.d.ts +56 -0
  347. package/public/orm/models/agentThread.js +100 -0
  348. package/public/orm/models/appLimitEvent.d.ts +32 -0
  349. package/public/orm/models/appLimitEvent.js +55 -0
  350. package/public/orm/models/billingModule.d.ts +56 -0
  351. package/public/orm/models/billingModule.js +100 -0
  352. package/public/orm/models/index.d.ts +18 -9
  353. package/public/orm/models/index.js +39 -21
  354. package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  355. package/public/orm/models/nodeTypeRegistry.js +100 -0
  356. package/public/orm/models/orgLimitAggregate.d.ts +56 -0
  357. package/public/orm/models/orgLimitAggregate.js +100 -0
  358. package/public/orm/models/orgLimitEvent.d.ts +32 -0
  359. package/public/orm/models/orgLimitEvent.js +55 -0
  360. package/public/orm/models/plansModule.d.ts +56 -0
  361. package/public/orm/models/plansModule.js +100 -0
  362. package/public/orm/mutation/index.d.ts +17 -31
  363. package/public/orm/mutation/index.js +24 -36
  364. package/public/orm/query/index.d.ts +28 -28
  365. package/public/orm/query/index.js +48 -48
  366. package/public/schema-types.d.ts +3948 -2833
  367. package/public/types.d.ts +194 -77
  368. package/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  369. package/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  370. package/esm/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  371. package/esm/admin/hooks/mutations/useConfirmUploadMutation.js +0 -23
  372. package/esm/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  373. package/esm/auth/hooks/mutations/useConfirmUploadMutation.js +0 -23
  374. package/esm/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  375. package/esm/objects/hooks/mutations/useConfirmUploadMutation.js +0 -23
  376. package/esm/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  377. package/esm/public/hooks/mutations/useConfirmUploadMutation.js +0 -23
  378. package/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
  379. package/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
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.agentTasksQueryKey = void 0;
9
+ exports.useAgentTasksQuery = useAgentTasksQuery;
10
+ exports.fetchAgentTasksQuery = fetchAgentTasksQuery;
11
+ exports.prefetchAgentTasksQuery = prefetchAgentTasksQuery;
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.agentTasksQueryKey = query_keys_1.agentTaskKeys.list;
18
+ function useAgentTasksQuery(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.agentTaskKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().agentTask.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchAgentTasksQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().agentTask.findMany(args).unwrap();
31
+ }
32
+ async function prefetchAgentTasksQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.agentTaskKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().agentTask.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
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 { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const agentThreadQueryKey: (id: string | number) => readonly ["agentthread", "detail", string | number];
12
+ /**
13
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = useAgentThreadQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function useAgentThreadQuery<S extends AgentThreadSelect, TData = {
24
+ agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchAgentThreadQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchAgentThreadQuery<S extends AgentThreadSelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
49
+ }): Promise<{
50
+ agentThread: InferSelectResult<AgentThreadWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchAgentThreadQuery<S extends AgentThreadSelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
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.agentThreadQueryKey = void 0;
9
+ exports.useAgentThreadQuery = useAgentThreadQuery;
10
+ exports.fetchAgentThreadQuery = fetchAgentThreadQuery;
11
+ exports.prefetchAgentThreadQuery = prefetchAgentThreadQuery;
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.agentThreadQueryKey = query_keys_1.agentThreadKeys.detail;
18
+ function useAgentThreadQuery(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.agentThreadKeys.detail(params.id),
24
+ queryFn: () => (0, client_1.getClient)()
25
+ .agentThread.findOne({
26
+ id: params.id,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ ...queryOptions,
31
+ });
32
+ }
33
+ async function fetchAgentThreadQuery(params) {
34
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
+ return (0, client_1.getClient)()
36
+ .agentThread.findOne({
37
+ id: params.id,
38
+ select: args.select,
39
+ })
40
+ .unwrap();
41
+ }
42
+ async function prefetchAgentThreadQuery(queryClient, params) {
43
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
+ await queryClient.prefetchQuery({
45
+ queryKey: query_keys_1.agentThreadKeys.detail(params.id),
46
+ queryFn: () => (0, client_1.getClient)()
47
+ .agentThread.findOne({
48
+ id: params.id,
49
+ select: args.select,
50
+ })
51
+ .unwrap(),
52
+ });
53
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
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 { AgentThreadSelect, AgentThreadWithRelations, AgentThreadFilter, AgentThreadOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { AgentThreadSelect, AgentThreadWithRelations, AgentThreadFilter, AgentThreadOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const agentThreadsQueryKey: (variables?: object) => readonly ["agentthread", "list", object];
13
+ /**
14
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = useAgentThreadsQuery({
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 useAgentThreadsQuery<S extends AgentThreadSelect, TData = {
29
+ agentThreads: ConnectionResult<InferSelectResult<AgentThreadWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, AgentThreadFilter, AgentThreadOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ agentThreads: ConnectionResult<InferSelectResult<AgentThreadWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchAgentThreadsQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchAgentThreadsQuery<S extends AgentThreadSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, AgentThreadFilter, AgentThreadOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
54
+ }): Promise<{
55
+ agentThreads: ConnectionResult<InferSelectResult<AgentThreadWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchAgentThreadsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchAgentThreadsQuery<S extends AgentThreadSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, AgentThreadFilter, AgentThreadOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
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.agentThreadsQueryKey = void 0;
9
+ exports.useAgentThreadsQuery = useAgentThreadsQuery;
10
+ exports.fetchAgentThreadsQuery = fetchAgentThreadsQuery;
11
+ exports.prefetchAgentThreadsQuery = prefetchAgentThreadsQuery;
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.agentThreadsQueryKey = query_keys_1.agentThreadKeys.list;
18
+ function useAgentThreadsQuery(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.agentThreadKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().agentThread.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchAgentThreadsQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().agentThread.findMany(args).unwrap();
31
+ }
32
+ async function prefetchAgentThreadsQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.agentThreadKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().agentThread.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Append-only log of limit events for historical reporting and audit
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 { AppLimitEventSelect, AppLimitEventWithRelations, AppLimitEventFilter, AppLimitEventOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { AppLimitEventSelect, AppLimitEventWithRelations, AppLimitEventFilter, AppLimitEventOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const appLimitEventsQueryKey: (variables?: object) => readonly ["applimitevent", "list", object];
13
+ /**
14
+ * Append-only log of limit events for historical reporting and audit
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = useAppLimitEventsQuery({
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 useAppLimitEventsQuery<S extends AppLimitEventSelect, TData = {
29
+ appLimitEvents: ConnectionResult<InferSelectResult<AppLimitEventWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, AppLimitEventFilter, AppLimitEventOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitEventSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ appLimitEvents: ConnectionResult<InferSelectResult<AppLimitEventWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Append-only log of limit events for historical reporting and audit
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchAppLimitEventsQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchAppLimitEventsQuery<S extends AppLimitEventSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, AppLimitEventFilter, AppLimitEventOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitEventSelect>;
54
+ }): Promise<{
55
+ appLimitEvents: ConnectionResult<InferSelectResult<AppLimitEventWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Append-only log of limit events for historical reporting and audit
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchAppLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchAppLimitEventsQuery<S extends AppLimitEventSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, AppLimitEventFilter, AppLimitEventOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitEventSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Append-only log of limit events for historical reporting and audit
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.appLimitEventsQueryKey = void 0;
9
+ exports.useAppLimitEventsQuery = useAppLimitEventsQuery;
10
+ exports.fetchAppLimitEventsQuery = fetchAppLimitEventsQuery;
11
+ exports.prefetchAppLimitEventsQuery = prefetchAppLimitEventsQuery;
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.appLimitEventsQueryKey = query_keys_1.appLimitEventKeys.list;
18
+ function useAppLimitEventsQuery(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.appLimitEventKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().appLimitEvent.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchAppLimitEventsQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().appLimitEvent.findMany(args).unwrap();
31
+ }
32
+ async function prefetchAppLimitEventsQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.appLimitEventKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().appLimitEvent.findMany(args).unwrap(),
37
+ });
38
+ }
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Single item query hook for BillingModule
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 { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types';
8
+ import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
+ export type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types';
10
+ /** Query key factory - re-exported from query-keys.ts */
11
+ export declare const billingModuleQueryKey: (id: string | number) => readonly ["billingmodule", "detail", string | number];
12
+ /**
13
+ * Query hook for fetching a single BillingModule
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const { data, isLoading } = useBillingModuleQuery({
18
+ * id: 'some-id',
19
+ * selection: { fields: { id: true, name: true } },
20
+ * });
21
+ * ```
22
+ */
23
+ export declare function useBillingModuleQuery<S extends BillingModuleSelect, TData = {
24
+ billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
25
+ }>(params: {
26
+ id: string;
27
+ selection: {
28
+ fields: S;
29
+ } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
30
+ } & Omit<UseQueryOptions<{
31
+ billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
32
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
+ /**
34
+ * Fetch a single BillingModule without React hooks
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const data = await fetchBillingModuleQuery({
39
+ * id: 'some-id',
40
+ * selection: { fields: { id: true } },
41
+ * });
42
+ * ```
43
+ */
44
+ export declare function fetchBillingModuleQuery<S extends BillingModuleSelect>(params: {
45
+ id: string;
46
+ selection: {
47
+ fields: S;
48
+ } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
49
+ }): Promise<{
50
+ billingModule: InferSelectResult<BillingModuleWithRelations, S> | null;
51
+ }>;
52
+ /**
53
+ * Prefetch a single BillingModule for SSR or cache warming
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * await prefetchBillingModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
+ * ```
59
+ */
60
+ export declare function prefetchBillingModuleQuery<S extends BillingModuleSelect>(queryClient: QueryClient, params: {
61
+ id: string;
62
+ selection: {
63
+ fields: S;
64
+ } & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
65
+ }): Promise<void>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * Single item query hook for BillingModule
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.billingModuleQueryKey = void 0;
9
+ exports.useBillingModuleQuery = useBillingModuleQuery;
10
+ exports.fetchBillingModuleQuery = fetchBillingModuleQuery;
11
+ exports.prefetchBillingModuleQuery = prefetchBillingModuleQuery;
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.billingModuleQueryKey = query_keys_1.billingModuleKeys.detail;
18
+ function useBillingModuleQuery(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.billingModuleKeys.detail(params.id),
24
+ queryFn: () => (0, client_1.getClient)()
25
+ .billingModule.findOne({
26
+ id: params.id,
27
+ select: args.select,
28
+ })
29
+ .unwrap(),
30
+ ...queryOptions,
31
+ });
32
+ }
33
+ async function fetchBillingModuleQuery(params) {
34
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
+ return (0, client_1.getClient)()
36
+ .billingModule.findOne({
37
+ id: params.id,
38
+ select: args.select,
39
+ })
40
+ .unwrap();
41
+ }
42
+ async function prefetchBillingModuleQuery(queryClient, params) {
43
+ const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
+ await queryClient.prefetchQuery({
45
+ queryKey: query_keys_1.billingModuleKeys.detail(params.id),
46
+ queryFn: () => (0, client_1.getClient)()
47
+ .billingModule.findOne({
48
+ id: params.id,
49
+ select: args.select,
50
+ })
51
+ .unwrap(),
52
+ });
53
+ }
@@ -0,0 +1,69 @@
1
+ /**
2
+ * List query hook for BillingModule
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 { BillingModuleSelect, BillingModuleWithRelations, BillingModuleFilter, BillingModuleOrderBy } from '../../orm/input-types';
9
+ import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
+ export type { BillingModuleSelect, BillingModuleWithRelations, BillingModuleFilter, BillingModuleOrderBy, } from '../../orm/input-types';
11
+ /** Query key factory - re-exported from query-keys.ts */
12
+ export declare const billingModulesQueryKey: (variables?: object) => readonly ["billingmodule", "list", object];
13
+ /**
14
+ * Query hook for fetching BillingModule list
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * const { data, isLoading } = useBillingModulesQuery({
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 useBillingModulesQuery<S extends BillingModuleSelect, TData = {
29
+ billingModules: ConnectionResult<InferSelectResult<BillingModuleWithRelations, S>>;
30
+ }>(params: {
31
+ selection: {
32
+ fields: S;
33
+ } & Omit<ListSelectionConfig<S, BillingModuleFilter, BillingModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
34
+ } & Omit<UseQueryOptions<{
35
+ billingModules: ConnectionResult<InferSelectResult<BillingModuleWithRelations, S>>;
36
+ }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
+ /**
38
+ * Fetch BillingModule list without React hooks
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const data = await fetchBillingModulesQuery({
43
+ * selection: {
44
+ * fields: { id: true },
45
+ * first: 10,
46
+ * },
47
+ * });
48
+ * ```
49
+ */
50
+ export declare function fetchBillingModulesQuery<S extends BillingModuleSelect>(params: {
51
+ selection: {
52
+ fields: S;
53
+ } & Omit<ListSelectionConfig<S, BillingModuleFilter, BillingModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
54
+ }): Promise<{
55
+ billingModules: ConnectionResult<InferSelectResult<BillingModuleWithRelations, S>>;
56
+ }>;
57
+ /**
58
+ * Prefetch BillingModule list for SSR or cache warming
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await prefetchBillingModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
+ * ```
64
+ */
65
+ export declare function prefetchBillingModulesQuery<S extends BillingModuleSelect>(queryClient: QueryClient, params: {
66
+ selection: {
67
+ fields: S;
68
+ } & Omit<ListSelectionConfig<S, BillingModuleFilter, BillingModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
69
+ }): Promise<void>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * List query hook for BillingModule
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.billingModulesQueryKey = void 0;
9
+ exports.useBillingModulesQuery = useBillingModulesQuery;
10
+ exports.fetchBillingModulesQuery = fetchBillingModulesQuery;
11
+ exports.prefetchBillingModulesQuery = prefetchBillingModulesQuery;
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.billingModulesQueryKey = query_keys_1.billingModuleKeys.list;
18
+ function useBillingModulesQuery(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.billingModuleKeys.list(args),
24
+ queryFn: () => (0, client_1.getClient)().billingModule.findMany(args).unwrap(),
25
+ ...queryOptions,
26
+ });
27
+ }
28
+ async function fetchBillingModulesQuery(params) {
29
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
+ return (0, client_1.getClient)().billingModule.findMany(args).unwrap();
31
+ }
32
+ async function prefetchBillingModulesQuery(queryClient, params) {
33
+ const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
+ await queryClient.prefetchQuery({
35
+ queryKey: query_keys_1.billingModuleKeys.list(args),
36
+ queryFn: () => (0, client_1.getClient)().billingModule.findMany(args).unwrap(),
37
+ });
38
+ }