@constructive-io/react 0.6.1 → 0.6.3

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 (469) 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 +18 -18
  4. package/admin/hooks/invalidation.js +45 -45
  5. package/admin/hooks/mutation-keys.d.ts +36 -36
  6. package/admin/hooks/mutation-keys.js +22 -22
  7. package/admin/hooks/mutations/index.d.ts +9 -9
  8. package/admin/hooks/mutations/index.js +9 -9
  9. package/admin/hooks/queries/index.d.ts +6 -6
  10. package/admin/hooks/queries/index.js +6 -6
  11. package/admin/hooks/query-keys.d.ts +42 -42
  12. package/admin/hooks/query-keys.js +25 -25
  13. package/admin/orm/index.d.ts +6 -6
  14. package/admin/orm/index.js +6 -6
  15. package/admin/orm/input-types.d.ts +489 -667
  16. package/admin/orm/models/appAchievement.d.ts +1 -1
  17. package/admin/orm/models/appAdminGrant.d.ts +1 -1
  18. package/admin/orm/models/appGrant.d.ts +1 -1
  19. package/admin/orm/models/appLevel.d.ts +1 -1
  20. package/admin/orm/models/appLevelRequirement.d.ts +1 -1
  21. package/admin/orm/models/appLimit.d.ts +1 -1
  22. package/admin/orm/models/appLimitDefault.d.ts +1 -1
  23. package/admin/orm/models/appMembership.d.ts +1 -1
  24. package/admin/orm/models/appMembershipDefault.d.ts +1 -1
  25. package/admin/orm/models/appOwnerGrant.d.ts +1 -1
  26. package/admin/orm/models/appPermission.d.ts +1 -1
  27. package/admin/orm/models/appPermissionDefault.d.ts +1 -1
  28. package/admin/orm/models/appStep.d.ts +1 -1
  29. package/admin/orm/models/claimedInvite.d.ts +1 -1
  30. package/admin/orm/models/index.d.ts +3 -3
  31. package/admin/orm/models/index.js +7 -7
  32. package/admin/orm/models/invite.d.ts +1 -1
  33. package/admin/orm/models/membershipType.d.ts +1 -1
  34. package/admin/orm/models/orgAdminGrant.d.ts +1 -1
  35. package/admin/orm/models/orgChartEdge.d.ts +1 -1
  36. package/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
  37. package/admin/orm/models/orgClaimedInvite.d.ts +1 -1
  38. package/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
  39. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  40. package/admin/orm/models/orgGrant.d.ts +1 -1
  41. package/admin/orm/models/orgInvite.d.ts +1 -1
  42. package/admin/orm/models/orgLimit.d.ts +1 -1
  43. package/admin/orm/models/orgLimitDefault.d.ts +1 -1
  44. package/admin/orm/models/orgMember.d.ts +1 -1
  45. package/admin/orm/models/orgMembership.d.ts +1 -1
  46. package/admin/orm/models/orgMembershipDefault.d.ts +1 -1
  47. package/admin/orm/models/orgOwnerGrant.d.ts +1 -1
  48. package/admin/orm/models/orgPermission.d.ts +1 -1
  49. package/admin/orm/models/orgPermissionDefault.d.ts +1 -1
  50. package/admin/orm/query-builder.d.ts +6 -4
  51. package/admin/orm/query-builder.js +13 -5
  52. package/admin/orm/select-types.d.ts +4 -2
  53. package/admin/schema-types.d.ts +475 -983
  54. package/admin/types.d.ts +55 -29
  55. package/auth/hooks/index.d.ts +1 -1
  56. package/auth/hooks/index.js +1 -1
  57. package/auth/hooks/invalidation.d.ts +6 -6
  58. package/auth/hooks/invalidation.js +15 -15
  59. package/auth/hooks/mutation-keys.d.ts +12 -12
  60. package/auth/hooks/mutation-keys.js +8 -8
  61. package/auth/hooks/mutations/index.d.ts +3 -3
  62. package/auth/hooks/mutations/index.js +3 -3
  63. package/auth/hooks/queries/index.d.ts +2 -2
  64. package/auth/hooks/queries/index.js +2 -2
  65. package/auth/hooks/query-keys.d.ts +14 -14
  66. package/auth/hooks/query-keys.js +9 -9
  67. package/auth/orm/index.d.ts +2 -2
  68. package/auth/orm/index.js +2 -2
  69. package/auth/orm/input-types.d.ts +196 -162
  70. package/auth/orm/models/auditLog.d.ts +1 -1
  71. package/auth/orm/models/connectedAccount.d.ts +1 -1
  72. package/auth/orm/models/cryptoAddress.d.ts +1 -1
  73. package/auth/orm/models/email.d.ts +1 -1
  74. package/auth/orm/models/index.d.ts +1 -1
  75. package/auth/orm/models/index.js +3 -3
  76. package/auth/orm/models/phoneNumber.d.ts +1 -1
  77. package/auth/orm/models/roleType.d.ts +1 -1
  78. package/auth/orm/models/user.d.ts +1 -1
  79. package/auth/orm/query-builder.d.ts +6 -4
  80. package/auth/orm/query-builder.js +13 -5
  81. package/auth/orm/select-types.d.ts +4 -2
  82. package/auth/schema-types.d.ts +226 -270
  83. package/auth/types.d.ts +23 -4
  84. package/esm/admin/hooks/index.d.ts +1 -1
  85. package/esm/admin/hooks/index.js +1 -1
  86. package/esm/admin/hooks/invalidation.d.ts +18 -18
  87. package/esm/admin/hooks/invalidation.js +46 -46
  88. package/esm/admin/hooks/mutation-keys.d.ts +36 -36
  89. package/esm/admin/hooks/mutation-keys.js +21 -21
  90. package/esm/admin/hooks/mutations/index.d.ts +9 -9
  91. package/esm/admin/hooks/mutations/index.js +9 -9
  92. package/esm/admin/hooks/queries/index.d.ts +6 -6
  93. package/esm/admin/hooks/queries/index.js +6 -6
  94. package/esm/admin/hooks/query-keys.d.ts +42 -42
  95. package/esm/admin/hooks/query-keys.js +24 -24
  96. package/esm/admin/orm/index.d.ts +6 -6
  97. package/esm/admin/orm/index.js +6 -6
  98. package/esm/admin/orm/input-types.d.ts +489 -667
  99. package/esm/admin/orm/models/appAchievement.d.ts +1 -1
  100. package/esm/admin/orm/models/appAdminGrant.d.ts +1 -1
  101. package/esm/admin/orm/models/appGrant.d.ts +1 -1
  102. package/esm/admin/orm/models/appLevel.d.ts +1 -1
  103. package/esm/admin/orm/models/appLevelRequirement.d.ts +1 -1
  104. package/esm/admin/orm/models/appLimit.d.ts +1 -1
  105. package/esm/admin/orm/models/appLimitDefault.d.ts +1 -1
  106. package/esm/admin/orm/models/appMembership.d.ts +1 -1
  107. package/esm/admin/orm/models/appMembershipDefault.d.ts +1 -1
  108. package/esm/admin/orm/models/appOwnerGrant.d.ts +1 -1
  109. package/esm/admin/orm/models/appPermission.d.ts +1 -1
  110. package/esm/admin/orm/models/appPermissionDefault.d.ts +1 -1
  111. package/esm/admin/orm/models/appStep.d.ts +1 -1
  112. package/esm/admin/orm/models/claimedInvite.d.ts +1 -1
  113. package/esm/admin/orm/models/index.d.ts +3 -3
  114. package/esm/admin/orm/models/index.js +3 -3
  115. package/esm/admin/orm/models/invite.d.ts +1 -1
  116. package/esm/admin/orm/models/membershipType.d.ts +1 -1
  117. package/esm/admin/orm/models/orgAdminGrant.d.ts +1 -1
  118. package/esm/admin/orm/models/orgChartEdge.d.ts +1 -1
  119. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
  120. package/esm/admin/orm/models/orgClaimedInvite.d.ts +1 -1
  121. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
  122. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  123. package/esm/admin/orm/models/orgGrant.d.ts +1 -1
  124. package/esm/admin/orm/models/orgInvite.d.ts +1 -1
  125. package/esm/admin/orm/models/orgLimit.d.ts +1 -1
  126. package/esm/admin/orm/models/orgLimitDefault.d.ts +1 -1
  127. package/esm/admin/orm/models/orgMember.d.ts +1 -1
  128. package/esm/admin/orm/models/orgMembership.d.ts +1 -1
  129. package/esm/admin/orm/models/orgMembershipDefault.d.ts +1 -1
  130. package/esm/admin/orm/models/orgOwnerGrant.d.ts +1 -1
  131. package/esm/admin/orm/models/orgPermission.d.ts +1 -1
  132. package/esm/admin/orm/models/orgPermissionDefault.d.ts +1 -1
  133. package/esm/admin/orm/query-builder.d.ts +6 -4
  134. package/esm/admin/orm/query-builder.js +13 -5
  135. package/esm/admin/orm/select-types.d.ts +4 -2
  136. package/esm/admin/schema-types.d.ts +475 -983
  137. package/esm/admin/types.d.ts +55 -29
  138. package/esm/auth/hooks/index.d.ts +1 -1
  139. package/esm/auth/hooks/index.js +1 -1
  140. package/esm/auth/hooks/invalidation.d.ts +6 -6
  141. package/esm/auth/hooks/invalidation.js +16 -16
  142. package/esm/auth/hooks/mutation-keys.d.ts +12 -12
  143. package/esm/auth/hooks/mutation-keys.js +7 -7
  144. package/esm/auth/hooks/mutations/index.d.ts +3 -3
  145. package/esm/auth/hooks/mutations/index.js +3 -3
  146. package/esm/auth/hooks/queries/index.d.ts +2 -2
  147. package/esm/auth/hooks/queries/index.js +2 -2
  148. package/esm/auth/hooks/query-keys.d.ts +14 -14
  149. package/esm/auth/hooks/query-keys.js +8 -8
  150. package/esm/auth/orm/index.d.ts +2 -2
  151. package/esm/auth/orm/index.js +2 -2
  152. package/esm/auth/orm/input-types.d.ts +196 -162
  153. package/esm/auth/orm/models/auditLog.d.ts +1 -1
  154. package/esm/auth/orm/models/connectedAccount.d.ts +1 -1
  155. package/esm/auth/orm/models/cryptoAddress.d.ts +1 -1
  156. package/esm/auth/orm/models/email.d.ts +1 -1
  157. package/esm/auth/orm/models/index.d.ts +1 -1
  158. package/esm/auth/orm/models/index.js +1 -1
  159. package/esm/auth/orm/models/phoneNumber.d.ts +1 -1
  160. package/esm/auth/orm/models/roleType.d.ts +1 -1
  161. package/esm/auth/orm/models/user.d.ts +1 -1
  162. package/esm/auth/orm/query-builder.d.ts +6 -4
  163. package/esm/auth/orm/query-builder.js +13 -5
  164. package/esm/auth/orm/select-types.d.ts +4 -2
  165. package/esm/auth/schema-types.d.ts +226 -270
  166. package/esm/auth/types.d.ts +23 -4
  167. package/esm/objects/orm/input-types.d.ts +40 -42
  168. package/esm/objects/orm/models/commit.d.ts +1 -1
  169. package/esm/objects/orm/models/getAllRecord.d.ts +1 -1
  170. package/esm/objects/orm/models/object.d.ts +1 -1
  171. package/esm/objects/orm/models/ref.d.ts +1 -1
  172. package/esm/objects/orm/models/store.d.ts +1 -1
  173. package/esm/objects/orm/query-builder.d.ts +6 -4
  174. package/esm/objects/orm/query-builder.js +13 -5
  175. package/esm/objects/orm/select-types.d.ts +4 -2
  176. package/esm/objects/schema-types.d.ts +37 -67
  177. package/esm/objects/types.d.ts +13 -0
  178. package/esm/public/hooks/index.d.ts +1 -1
  179. package/esm/public/hooks/index.js +1 -1
  180. package/esm/public/hooks/invalidation.d.ts +34 -40
  181. package/esm/public/hooks/invalidation.js +80 -96
  182. package/esm/public/hooks/mutation-keys.d.ts +70 -82
  183. package/esm/public/hooks/mutation-keys.js +43 -50
  184. package/esm/public/hooks/mutations/index.d.ts +17 -20
  185. package/esm/public/hooks/mutations/index.js +17 -20
  186. package/esm/public/hooks/queries/index.d.ts +12 -14
  187. package/esm/public/hooks/queries/index.js +12 -14
  188. package/esm/public/hooks/query-keys.d.ts +80 -94
  189. package/esm/public/hooks/query-keys.js +46 -54
  190. package/esm/public/orm/index.d.ts +17 -19
  191. package/esm/public/orm/index.js +12 -14
  192. package/esm/public/orm/input-types.d.ts +2426 -2179
  193. package/esm/public/orm/input-types.js +0 -3
  194. package/esm/public/orm/models/api.d.ts +1 -1
  195. package/esm/public/orm/models/apiModule.d.ts +1 -1
  196. package/esm/public/orm/models/apiSchema.d.ts +1 -1
  197. package/esm/public/orm/models/app.d.ts +1 -1
  198. package/esm/public/orm/models/appAchievement.d.ts +1 -1
  199. package/esm/public/orm/models/appAdminGrant.d.ts +1 -1
  200. package/esm/public/orm/models/appGrant.d.ts +1 -1
  201. package/esm/public/orm/models/appLevel.d.ts +1 -1
  202. package/esm/public/orm/models/appLevelRequirement.d.ts +1 -1
  203. package/esm/public/orm/models/appLimit.d.ts +1 -1
  204. package/esm/public/orm/models/appLimitDefault.d.ts +1 -1
  205. package/esm/public/orm/models/appMembership.d.ts +1 -1
  206. package/esm/public/orm/models/appMembershipDefault.d.ts +1 -1
  207. package/esm/public/orm/models/appOwnerGrant.d.ts +1 -1
  208. package/esm/public/orm/models/appPermission.d.ts +1 -1
  209. package/esm/public/orm/models/appPermissionDefault.d.ts +1 -1
  210. package/esm/public/orm/models/appStep.d.ts +1 -1
  211. package/esm/public/orm/models/astMigration.d.ts +1 -1
  212. package/esm/public/orm/models/auditLog.d.ts +1 -1
  213. package/esm/public/orm/models/checkConstraint.d.ts +1 -1
  214. package/esm/public/orm/models/claimedInvite.d.ts +1 -1
  215. package/esm/public/orm/models/commit.d.ts +1 -1
  216. package/esm/public/orm/models/connectedAccount.d.ts +1 -1
  217. package/esm/public/orm/models/connectedAccountsModule.d.ts +1 -1
  218. package/esm/public/orm/models/cryptoAddress.d.ts +1 -1
  219. package/esm/public/orm/models/cryptoAddressesModule.d.ts +1 -1
  220. package/esm/public/orm/models/cryptoAuthModule.d.ts +1 -1
  221. package/esm/public/orm/models/database.d.ts +1 -1
  222. package/esm/public/orm/models/databaseProvisionModule.d.ts +1 -1
  223. package/esm/public/orm/models/defaultIdsModule.d.ts +1 -1
  224. package/esm/public/orm/models/defaultPrivilege.d.ts +1 -1
  225. package/esm/public/orm/models/denormalizedTableField.d.ts +1 -1
  226. package/esm/public/orm/models/domain.d.ts +1 -1
  227. package/esm/public/orm/models/email.d.ts +1 -1
  228. package/esm/public/orm/models/emailsModule.d.ts +1 -1
  229. package/esm/public/orm/models/encryptedSecretsModule.d.ts +1 -1
  230. package/esm/public/orm/models/field.d.ts +1 -1
  231. package/esm/public/orm/models/fieldModule.d.ts +1 -1
  232. package/esm/public/orm/models/foreignKeyConstraint.d.ts +1 -1
  233. package/esm/public/orm/models/fullTextSearch.d.ts +1 -1
  234. package/esm/public/orm/models/getAllRecord.d.ts +1 -1
  235. package/esm/public/orm/models/hierarchyModule.d.ts +1 -1
  236. package/esm/public/orm/models/index.d.ts +6 -7
  237. package/esm/public/orm/models/index.js +6 -7
  238. package/esm/public/orm/models/indexModel.d.ts +1 -1
  239. package/esm/public/orm/models/invite.d.ts +1 -1
  240. package/esm/public/orm/models/invitesModule.d.ts +1 -1
  241. package/esm/public/orm/models/levelsModule.d.ts +1 -1
  242. package/esm/public/orm/models/limitsModule.d.ts +1 -1
  243. package/esm/public/orm/models/membershipType.d.ts +1 -1
  244. package/esm/public/orm/models/membershipTypesModule.d.ts +1 -1
  245. package/esm/public/orm/models/membershipsModule.d.ts +1 -1
  246. package/esm/public/orm/models/nodeTypeRegistry.d.ts +1 -1
  247. package/esm/public/orm/models/object.d.ts +1 -1
  248. package/esm/public/orm/models/orgAdminGrant.d.ts +1 -1
  249. package/esm/public/orm/models/orgChartEdge.d.ts +1 -1
  250. package/esm/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
  251. package/esm/public/orm/models/orgClaimedInvite.d.ts +1 -1
  252. package/esm/public/orm/models/orgGetManagersRecord.d.ts +1 -1
  253. package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  254. package/esm/public/orm/models/orgGrant.d.ts +1 -1
  255. package/esm/public/orm/models/orgInvite.d.ts +1 -1
  256. package/esm/public/orm/models/orgLimit.d.ts +1 -1
  257. package/esm/public/orm/models/orgLimitDefault.d.ts +1 -1
  258. package/esm/public/orm/models/orgMember.d.ts +1 -1
  259. package/esm/public/orm/models/orgMembership.d.ts +1 -1
  260. package/esm/public/orm/models/orgMembershipDefault.d.ts +1 -1
  261. package/esm/public/orm/models/orgOwnerGrant.d.ts +1 -1
  262. package/esm/public/orm/models/orgPermission.d.ts +1 -1
  263. package/esm/public/orm/models/orgPermissionDefault.d.ts +1 -1
  264. package/esm/public/orm/models/permissionsModule.d.ts +1 -1
  265. package/esm/public/orm/models/phoneNumber.d.ts +1 -1
  266. package/esm/public/orm/models/phoneNumbersModule.d.ts +1 -1
  267. package/esm/public/orm/models/policy.d.ts +1 -1
  268. package/esm/public/orm/models/primaryKeyConstraint.d.ts +1 -1
  269. package/esm/public/orm/models/profilesModule.d.ts +1 -1
  270. package/esm/public/orm/models/ref.d.ts +1 -1
  271. package/esm/public/orm/models/relationProvision.d.ts +1 -1
  272. package/esm/public/orm/models/rlsModule.d.ts +1 -1
  273. package/esm/public/orm/models/roleType.d.ts +1 -1
  274. package/esm/public/orm/models/schema.d.ts +1 -1
  275. package/esm/public/orm/models/schemaGrant.d.ts +1 -1
  276. package/esm/public/orm/models/secretsModule.d.ts +1 -1
  277. package/esm/public/orm/models/secureTableProvision.d.ts +1 -1
  278. package/esm/public/orm/models/sessionsModule.d.ts +1 -1
  279. package/esm/public/orm/models/site.d.ts +1 -1
  280. package/esm/public/orm/models/siteMetadatum.d.ts +1 -1
  281. package/esm/public/orm/models/siteModule.d.ts +1 -1
  282. package/esm/public/orm/models/siteTheme.d.ts +1 -1
  283. package/esm/public/orm/models/sqlMigration.d.ts +1 -1
  284. package/esm/public/orm/models/store.d.ts +1 -1
  285. package/esm/public/orm/models/table.d.ts +1 -1
  286. package/esm/public/orm/models/tableGrant.d.ts +1 -1
  287. package/esm/public/orm/models/tableTemplateModule.d.ts +1 -1
  288. package/esm/public/orm/models/trigger.d.ts +1 -1
  289. package/esm/public/orm/models/triggerFunction.d.ts +1 -1
  290. package/esm/public/orm/models/uniqueConstraint.d.ts +1 -1
  291. package/esm/public/orm/models/user.d.ts +1 -1
  292. package/esm/public/orm/models/userAuthModule.d.ts +1 -1
  293. package/esm/public/orm/models/usersModule.d.ts +1 -1
  294. package/esm/public/orm/models/uuidModule.d.ts +1 -1
  295. package/esm/public/orm/models/view.d.ts +1 -1
  296. package/esm/public/orm/models/viewGrant.d.ts +1 -1
  297. package/esm/public/orm/models/viewRule.d.ts +1 -1
  298. package/esm/public/orm/models/viewTable.d.ts +1 -1
  299. package/esm/public/orm/mutation/index.d.ts +9 -9
  300. package/esm/public/orm/mutation/index.js +12 -12
  301. package/esm/public/orm/query-builder.d.ts +6 -4
  302. package/esm/public/orm/query-builder.js +13 -5
  303. package/esm/public/orm/select-types.d.ts +4 -2
  304. package/esm/public/schema-types.d.ts +6895 -6506
  305. package/esm/public/types.d.ts +369 -63
  306. package/objects/orm/input-types.d.ts +40 -42
  307. package/objects/orm/models/commit.d.ts +1 -1
  308. package/objects/orm/models/getAllRecord.d.ts +1 -1
  309. package/objects/orm/models/object.d.ts +1 -1
  310. package/objects/orm/models/ref.d.ts +1 -1
  311. package/objects/orm/models/store.d.ts +1 -1
  312. package/objects/orm/query-builder.d.ts +6 -4
  313. package/objects/orm/query-builder.js +13 -5
  314. package/objects/orm/select-types.d.ts +4 -2
  315. package/objects/schema-types.d.ts +37 -67
  316. package/objects/types.d.ts +13 -0
  317. package/package.json +3 -3
  318. package/public/hooks/index.d.ts +1 -1
  319. package/public/hooks/index.js +1 -1
  320. package/public/hooks/invalidation.d.ts +34 -40
  321. package/public/hooks/invalidation.js +79 -95
  322. package/public/hooks/mutation-keys.d.ts +70 -82
  323. package/public/hooks/mutation-keys.js +46 -53
  324. package/public/hooks/mutations/index.d.ts +17 -20
  325. package/public/hooks/mutations/index.js +17 -20
  326. package/public/hooks/queries/index.d.ts +12 -14
  327. package/public/hooks/queries/index.js +12 -14
  328. package/public/hooks/query-keys.d.ts +80 -94
  329. package/public/hooks/query-keys.js +49 -57
  330. package/public/orm/index.d.ts +17 -19
  331. package/public/orm/index.js +12 -14
  332. package/public/orm/input-types.d.ts +2426 -2179
  333. package/public/orm/input-types.js +0 -3
  334. package/public/orm/models/api.d.ts +1 -1
  335. package/public/orm/models/apiModule.d.ts +1 -1
  336. package/public/orm/models/apiSchema.d.ts +1 -1
  337. package/public/orm/models/app.d.ts +1 -1
  338. package/public/orm/models/appAchievement.d.ts +1 -1
  339. package/public/orm/models/appAdminGrant.d.ts +1 -1
  340. package/public/orm/models/appGrant.d.ts +1 -1
  341. package/public/orm/models/appLevel.d.ts +1 -1
  342. package/public/orm/models/appLevelRequirement.d.ts +1 -1
  343. package/public/orm/models/appLimit.d.ts +1 -1
  344. package/public/orm/models/appLimitDefault.d.ts +1 -1
  345. package/public/orm/models/appMembership.d.ts +1 -1
  346. package/public/orm/models/appMembershipDefault.d.ts +1 -1
  347. package/public/orm/models/appOwnerGrant.d.ts +1 -1
  348. package/public/orm/models/appPermission.d.ts +1 -1
  349. package/public/orm/models/appPermissionDefault.d.ts +1 -1
  350. package/public/orm/models/appStep.d.ts +1 -1
  351. package/public/orm/models/astMigration.d.ts +1 -1
  352. package/public/orm/models/auditLog.d.ts +1 -1
  353. package/public/orm/models/checkConstraint.d.ts +1 -1
  354. package/public/orm/models/claimedInvite.d.ts +1 -1
  355. package/public/orm/models/commit.d.ts +1 -1
  356. package/public/orm/models/connectedAccount.d.ts +1 -1
  357. package/public/orm/models/connectedAccountsModule.d.ts +1 -1
  358. package/public/orm/models/cryptoAddress.d.ts +1 -1
  359. package/public/orm/models/cryptoAddressesModule.d.ts +1 -1
  360. package/public/orm/models/cryptoAuthModule.d.ts +1 -1
  361. package/public/orm/models/database.d.ts +1 -1
  362. package/public/orm/models/databaseProvisionModule.d.ts +1 -1
  363. package/public/orm/models/defaultIdsModule.d.ts +1 -1
  364. package/public/orm/models/defaultPrivilege.d.ts +1 -1
  365. package/public/orm/models/denormalizedTableField.d.ts +1 -1
  366. package/public/orm/models/domain.d.ts +1 -1
  367. package/public/orm/models/email.d.ts +1 -1
  368. package/public/orm/models/emailsModule.d.ts +1 -1
  369. package/public/orm/models/encryptedSecretsModule.d.ts +1 -1
  370. package/public/orm/models/field.d.ts +1 -1
  371. package/public/orm/models/fieldModule.d.ts +1 -1
  372. package/public/orm/models/foreignKeyConstraint.d.ts +1 -1
  373. package/public/orm/models/fullTextSearch.d.ts +1 -1
  374. package/public/orm/models/getAllRecord.d.ts +1 -1
  375. package/public/orm/models/hierarchyModule.d.ts +1 -1
  376. package/public/orm/models/index.d.ts +6 -7
  377. package/public/orm/models/index.js +15 -17
  378. package/public/orm/models/indexModel.d.ts +1 -1
  379. package/public/orm/models/invite.d.ts +1 -1
  380. package/public/orm/models/invitesModule.d.ts +1 -1
  381. package/public/orm/models/levelsModule.d.ts +1 -1
  382. package/public/orm/models/limitsModule.d.ts +1 -1
  383. package/public/orm/models/membershipType.d.ts +1 -1
  384. package/public/orm/models/membershipTypesModule.d.ts +1 -1
  385. package/public/orm/models/membershipsModule.d.ts +1 -1
  386. package/public/orm/models/nodeTypeRegistry.d.ts +1 -1
  387. package/public/orm/models/object.d.ts +1 -1
  388. package/public/orm/models/orgAdminGrant.d.ts +1 -1
  389. package/public/orm/models/orgChartEdge.d.ts +1 -1
  390. package/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
  391. package/public/orm/models/orgClaimedInvite.d.ts +1 -1
  392. package/public/orm/models/orgGetManagersRecord.d.ts +1 -1
  393. package/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  394. package/public/orm/models/orgGrant.d.ts +1 -1
  395. package/public/orm/models/orgInvite.d.ts +1 -1
  396. package/public/orm/models/orgLimit.d.ts +1 -1
  397. package/public/orm/models/orgLimitDefault.d.ts +1 -1
  398. package/public/orm/models/orgMember.d.ts +1 -1
  399. package/public/orm/models/orgMembership.d.ts +1 -1
  400. package/public/orm/models/orgMembershipDefault.d.ts +1 -1
  401. package/public/orm/models/orgOwnerGrant.d.ts +1 -1
  402. package/public/orm/models/orgPermission.d.ts +1 -1
  403. package/public/orm/models/orgPermissionDefault.d.ts +1 -1
  404. package/public/orm/models/permissionsModule.d.ts +1 -1
  405. package/public/orm/models/phoneNumber.d.ts +1 -1
  406. package/public/orm/models/phoneNumbersModule.d.ts +1 -1
  407. package/public/orm/models/policy.d.ts +1 -1
  408. package/public/orm/models/primaryKeyConstraint.d.ts +1 -1
  409. package/public/orm/models/profilesModule.d.ts +1 -1
  410. package/public/orm/models/ref.d.ts +1 -1
  411. package/public/orm/models/relationProvision.d.ts +1 -1
  412. package/public/orm/models/rlsModule.d.ts +1 -1
  413. package/public/orm/models/roleType.d.ts +1 -1
  414. package/public/orm/models/schema.d.ts +1 -1
  415. package/public/orm/models/schemaGrant.d.ts +1 -1
  416. package/public/orm/models/secretsModule.d.ts +1 -1
  417. package/public/orm/models/secureTableProvision.d.ts +1 -1
  418. package/public/orm/models/sessionsModule.d.ts +1 -1
  419. package/public/orm/models/site.d.ts +1 -1
  420. package/public/orm/models/siteMetadatum.d.ts +1 -1
  421. package/public/orm/models/siteModule.d.ts +1 -1
  422. package/public/orm/models/siteTheme.d.ts +1 -1
  423. package/public/orm/models/sqlMigration.d.ts +1 -1
  424. package/public/orm/models/store.d.ts +1 -1
  425. package/public/orm/models/table.d.ts +1 -1
  426. package/public/orm/models/tableGrant.d.ts +1 -1
  427. package/public/orm/models/tableTemplateModule.d.ts +1 -1
  428. package/public/orm/models/trigger.d.ts +1 -1
  429. package/public/orm/models/triggerFunction.d.ts +1 -1
  430. package/public/orm/models/uniqueConstraint.d.ts +1 -1
  431. package/public/orm/models/user.d.ts +1 -1
  432. package/public/orm/models/userAuthModule.d.ts +1 -1
  433. package/public/orm/models/usersModule.d.ts +1 -1
  434. package/public/orm/models/uuidModule.d.ts +1 -1
  435. package/public/orm/models/view.d.ts +1 -1
  436. package/public/orm/models/viewGrant.d.ts +1 -1
  437. package/public/orm/models/viewRule.d.ts +1 -1
  438. package/public/orm/models/viewTable.d.ts +1 -1
  439. package/public/orm/mutation/index.d.ts +9 -9
  440. package/public/orm/mutation/index.js +12 -12
  441. package/public/orm/query-builder.d.ts +6 -4
  442. package/public/orm/query-builder.js +13 -5
  443. package/public/orm/select-types.d.ts +4 -2
  444. package/public/schema-types.d.ts +6895 -6506
  445. package/public/types.d.ts +369 -63
  446. package/esm/public/hooks/mutations/useCreateTableModuleMutation.d.ts +0 -34
  447. package/esm/public/hooks/mutations/useCreateTableModuleMutation.js +0 -31
  448. package/esm/public/hooks/mutations/useDeleteTableModuleMutation.d.ts +0 -38
  449. package/esm/public/hooks/mutations/useDeleteTableModuleMutation.js +0 -36
  450. package/esm/public/hooks/mutations/useUpdateTableModuleMutation.d.ts +0 -40
  451. package/esm/public/hooks/mutations/useUpdateTableModuleMutation.js +0 -37
  452. package/esm/public/hooks/queries/useTableModuleQuery.d.ts +0 -65
  453. package/esm/public/hooks/queries/useTableModuleQuery.js +0 -47
  454. package/esm/public/hooks/queries/useTableModulesQuery.d.ts +0 -69
  455. package/esm/public/hooks/queries/useTableModulesQuery.js +0 -32
  456. package/esm/public/orm/models/tableModule.d.ts +0 -56
  457. package/esm/public/orm/models/tableModule.js +0 -94
  458. package/public/hooks/mutations/useCreateTableModuleMutation.d.ts +0 -34
  459. package/public/hooks/mutations/useCreateTableModuleMutation.js +0 -34
  460. package/public/hooks/mutations/useDeleteTableModuleMutation.d.ts +0 -38
  461. package/public/hooks/mutations/useDeleteTableModuleMutation.js +0 -39
  462. package/public/hooks/mutations/useUpdateTableModuleMutation.d.ts +0 -40
  463. package/public/hooks/mutations/useUpdateTableModuleMutation.js +0 -40
  464. package/public/hooks/queries/useTableModuleQuery.d.ts +0 -65
  465. package/public/hooks/queries/useTableModuleQuery.js +0 -53
  466. package/public/hooks/queries/useTableModulesQuery.d.ts +0 -69
  467. package/public/hooks/queries/useTableModulesQuery.js +0 -38
  468. package/public/orm/models/tableModule.d.ts +0 -56
  469. package/public/orm/models/tableModule.js +0 -98
@@ -1,34 +0,0 @@
1
- /**
2
- * Create mutation hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput, } from '../../orm/input-types';
10
- /**
11
- * Mutation hook for creating a TableModule
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateTableModuleMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateTableModuleMutation<S extends TableModuleSelect>(params: {
23
- selection: {
24
- fields: S & TableModuleSelect;
25
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createTableModule: {
28
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
29
- };
30
- }, Error, CreateTableModuleInput['tableModule']>, 'mutationFn'>): UseMutationResult<{
31
- createTableModule: {
32
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
33
- };
34
- }, Error, CreateTableModuleInput['tableModule']>;
@@ -1,31 +0,0 @@
1
- /**
2
- * Create mutation hook for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { tableModuleKeys } from '../query-keys';
10
- import { tableModuleMutationKeys } from '../mutation-keys';
11
- export function useCreateTableModuleMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: tableModuleMutationKeys.create(),
18
- mutationFn: (data) => getClient()
19
- .tableModule.create({
20
- data,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- onSuccess: () => {
25
- queryClient.invalidateQueries({
26
- queryKey: tableModuleKeys.lists(),
27
- });
28
- },
29
- ...mutationOptions,
30
- });
31
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Delete mutation hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
10
- /**
11
- * Mutation hook for deleting a TableModule with typed selection
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useDeleteTableModuleMutation({
16
- * selection: { fields: { id: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-to-delete' });
20
- * ```
21
- */
22
- export declare function useDeleteTableModuleMutation<S extends TableModuleSelect>(params: {
23
- selection: {
24
- fields: S & TableModuleSelect;
25
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
26
- } & Omit<UseMutationOptions<{
27
- deleteTableModule: {
28
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- }>, 'mutationFn'>): UseMutationResult<{
33
- deleteTableModule: {
34
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
35
- };
36
- }, Error, {
37
- id: string;
38
- }>;
@@ -1,36 +0,0 @@
1
- /**
2
- * Delete mutation hook for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { tableModuleKeys } from '../query-keys';
10
- import { tableModuleMutationKeys } from '../mutation-keys';
11
- export function useDeleteTableModuleMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: tableModuleMutationKeys.all,
18
- mutationFn: ({ id }) => getClient()
19
- .tableModule.delete({
20
- where: {
21
- id,
22
- },
23
- select: args.select,
24
- })
25
- .unwrap(),
26
- onSuccess: (_, variables) => {
27
- queryClient.removeQueries({
28
- queryKey: tableModuleKeys.detail(variables.id),
29
- });
30
- queryClient.invalidateQueries({
31
- queryKey: tableModuleKeys.lists(),
32
- });
33
- },
34
- ...mutationOptions,
35
- });
36
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * Update mutation hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations, TableModulePatch } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { TableModuleSelect, TableModuleWithRelations, TableModulePatch, } from '../../orm/input-types';
10
- /**
11
- * Mutation hook for updating a TableModule
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useUpdateTableModuleMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-here', tableModulePatch: { name: 'Updated' } });
20
- * ```
21
- */
22
- export declare function useUpdateTableModuleMutation<S extends TableModuleSelect>(params: {
23
- selection: {
24
- fields: S & TableModuleSelect;
25
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
26
- } & Omit<UseMutationOptions<{
27
- updateTableModule: {
28
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- tableModulePatch: TableModulePatch;
33
- }>, 'mutationFn'>): UseMutationResult<{
34
- updateTableModule: {
35
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
36
- };
37
- }, Error, {
38
- id: string;
39
- tableModulePatch: TableModulePatch;
40
- }>;
@@ -1,37 +0,0 @@
1
- /**
2
- * Update mutation hook for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { tableModuleKeys } from '../query-keys';
10
- import { tableModuleMutationKeys } from '../mutation-keys';
11
- export function useUpdateTableModuleMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: tableModuleMutationKeys.all,
18
- mutationFn: ({ id, tableModulePatch }) => getClient()
19
- .tableModule.update({
20
- where: {
21
- id,
22
- },
23
- data: tableModulePatch,
24
- select: args.select,
25
- })
26
- .unwrap(),
27
- onSuccess: (_, variables) => {
28
- queryClient.invalidateQueries({
29
- queryKey: tableModuleKeys.detail(variables.id),
30
- });
31
- queryClient.invalidateQueries({
32
- queryKey: tableModuleKeys.lists(),
33
- });
34
- },
35
- ...mutationOptions,
36
- });
37
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Single item query hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const tableModuleQueryKey: (id: string | number) => readonly ["tablemodule", "detail", string | number];
12
- /**
13
- * Query hook for fetching a single TableModule
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useTableModuleQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useTableModuleQuery<S extends TableModuleSelect, TData = {
24
- tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
30
- } & Omit<UseQueryOptions<{
31
- tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Fetch a single TableModule without React hooks
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchTableModuleQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchTableModuleQuery<S extends TableModuleSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
49
- }): Promise<{
50
- tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Prefetch a single TableModule for SSR or cache warming
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchTableModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchTableModuleQuery<S extends TableModuleSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
65
- }): Promise<void>;
@@ -1,47 +0,0 @@
1
- /**
2
- * Single item query hook for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { tableModuleKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const tableModuleQueryKey = tableModuleKeys.detail;
12
- export function useTableModuleQuery(params) {
13
- const args = buildSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: tableModuleKeys.detail(params.id),
18
- queryFn: () => getClient()
19
- .tableModule.findOne({
20
- id: params.id,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- ...queryOptions,
25
- });
26
- }
27
- export async function fetchTableModuleQuery(params) {
28
- const args = buildSelectionArgs(params.selection);
29
- return getClient()
30
- .tableModule.findOne({
31
- id: params.id,
32
- select: args.select,
33
- })
34
- .unwrap();
35
- }
36
- export async function prefetchTableModuleQuery(queryClient, params) {
37
- const args = buildSelectionArgs(params.selection);
38
- await queryClient.prefetchQuery({
39
- queryKey: tableModuleKeys.detail(params.id),
40
- queryFn: () => getClient()
41
- .tableModule.findOne({
42
- id: params.id,
43
- select: args.select,
44
- })
45
- .unwrap(),
46
- });
47
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * List query hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations, TableModuleFilter, TableModuleOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { TableModuleSelect, TableModuleWithRelations, TableModuleFilter, TableModuleOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const tableModulesQueryKey: (variables?: object) => readonly ["tablemodule", "list", object];
13
- /**
14
- * Query hook for fetching TableModule list
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useTableModulesQuery({
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 useTableModulesQuery<S extends TableModuleSelect, TData = {
29
- tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
34
- } & Omit<UseQueryOptions<{
35
- tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Fetch TableModule list without React hooks
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchTableModulesQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchTableModulesQuery<S extends TableModuleSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
54
- }): Promise<{
55
- tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
56
- }>;
57
- /**
58
- * Prefetch TableModule list for SSR or cache warming
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchTableModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchTableModulesQuery<S extends TableModuleSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
69
- }): Promise<void>;
@@ -1,32 +0,0 @@
1
- /**
2
- * List query hook for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useQuery } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildListSelectionArgs } from '../selection';
9
- import { tableModuleKeys } from '../query-keys';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export const tableModulesQueryKey = tableModuleKeys.list;
12
- export function useTableModulesQuery(params) {
13
- const args = buildListSelectionArgs(params.selection);
14
- const { selection: _selection, ...queryOptions } = params ?? {};
15
- void _selection;
16
- return useQuery({
17
- queryKey: tableModuleKeys.list(args),
18
- queryFn: () => getClient().tableModule.findMany(args).unwrap(),
19
- ...queryOptions,
20
- });
21
- }
22
- export async function fetchTableModulesQuery(params) {
23
- const args = buildListSelectionArgs(params.selection);
24
- return getClient().tableModule.findMany(args).unwrap();
25
- }
26
- export async function prefetchTableModulesQuery(queryClient, params) {
27
- const args = buildListSelectionArgs(params.selection);
28
- await queryClient.prefetchQuery({
29
- queryKey: tableModuleKeys.list(args),
30
- queryFn: () => getClient().tableModule.findMany(args).unwrap(),
31
- });
32
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * TableModule model for ORM client
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { OrmClient } from '../client';
7
- import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { TableModuleWithRelations, TableModuleSelect, TableModuleFilter, TableModuleOrderBy, CreateTableModuleInput, TableModulePatch } from '../input-types';
10
- export declare class TableModuleModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends TableModuleSelect>(args: FindManyArgs<S, TableModuleFilter, TableModuleOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
16
- tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
17
- }>;
18
- findFirst<S extends TableModuleSelect>(args: FindFirstArgs<S, TableModuleFilter> & {
19
- select: S;
20
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
21
- tableModules: {
22
- nodes: InferSelectResult<TableModuleWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends TableModuleSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
29
- tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
30
- }>;
31
- create<S extends TableModuleSelect>(args: CreateArgs<S, CreateTableModuleInput['tableModule']> & {
32
- select: S;
33
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
34
- createTableModule: {
35
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends TableModuleSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, TableModulePatch> & {
41
- select: S;
42
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
43
- updateTableModule: {
44
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends TableModuleSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
52
- deleteTableModule: {
53
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
54
- };
55
- }>;
56
- }
@@ -1,94 +0,0 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
- import { connectionFieldsMap } from '../input-types';
3
- export class TableModuleModel {
4
- client;
5
- constructor(client) {
6
- this.client = client;
7
- }
8
- findMany(args) {
9
- const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
10
- where: args?.where,
11
- orderBy: args?.orderBy,
12
- first: args?.first,
13
- last: args?.last,
14
- after: args?.after,
15
- before: args?.before,
16
- offset: args?.offset,
17
- }, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
18
- return new QueryBuilder({
19
- client: this.client,
20
- operation: 'query',
21
- operationName: 'TableModule',
22
- fieldName: 'tableModules',
23
- document,
24
- variables,
25
- });
26
- }
27
- findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('TableModule', 'tableModules', args.select, {
29
- where: args?.where,
30
- }, 'TableModuleFilter', connectionFieldsMap);
31
- return new QueryBuilder({
32
- client: this.client,
33
- operation: 'query',
34
- operationName: 'TableModule',
35
- fieldName: 'tableModules',
36
- document,
37
- variables,
38
- });
39
- }
40
- findOne(args) {
41
- const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
42
- where: {
43
- id: {
44
- equalTo: args.id,
45
- },
46
- },
47
- first: 1,
48
- }, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
49
- return new QueryBuilder({
50
- client: this.client,
51
- operation: 'query',
52
- operationName: 'TableModule',
53
- fieldName: 'tableModule',
54
- document,
55
- variables,
56
- transform: (data) => ({
57
- tableModule: data.tableModules?.nodes?.[0] ?? null,
58
- }),
59
- });
60
- }
61
- create(args) {
62
- const { document, variables } = buildCreateDocument('TableModule', 'createTableModule', 'tableModule', args.select, args.data, 'CreateTableModuleInput', connectionFieldsMap);
63
- return new QueryBuilder({
64
- client: this.client,
65
- operation: 'mutation',
66
- operationName: 'TableModule',
67
- fieldName: 'createTableModule',
68
- document,
69
- variables,
70
- });
71
- }
72
- update(args) {
73
- const { document, variables } = buildUpdateByPkDocument('TableModule', 'updateTableModule', 'tableModule', args.select, args.where.id, args.data, 'UpdateTableModuleInput', 'id', 'tableModulePatch', connectionFieldsMap);
74
- return new QueryBuilder({
75
- client: this.client,
76
- operation: 'mutation',
77
- operationName: 'TableModule',
78
- fieldName: 'updateTableModule',
79
- document,
80
- variables,
81
- });
82
- }
83
- delete(args) {
84
- const { document, variables } = buildDeleteByPkDocument('TableModule', 'deleteTableModule', 'tableModule', args.where.id, 'DeleteTableModuleInput', 'id', args.select, connectionFieldsMap);
85
- return new QueryBuilder({
86
- client: this.client,
87
- operation: 'mutation',
88
- operationName: 'TableModule',
89
- fieldName: 'deleteTableModule',
90
- document,
91
- variables,
92
- });
93
- }
94
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * Create mutation hook for TableModule
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 { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput, } from '../../orm/input-types';
10
- /**
11
- * Mutation hook for creating a TableModule
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateTableModuleMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateTableModuleMutation<S extends TableModuleSelect>(params: {
23
- selection: {
24
- fields: S & TableModuleSelect;
25
- } & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createTableModule: {
28
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
29
- };
30
- }, Error, CreateTableModuleInput['tableModule']>, 'mutationFn'>): UseMutationResult<{
31
- createTableModule: {
32
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
33
- };
34
- }, Error, CreateTableModuleInput['tableModule']>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- /**
3
- * Create mutation hook for TableModule
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.useCreateTableModuleMutation = useCreateTableModuleMutation;
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 useCreateTableModuleMutation(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.tableModuleMutationKeys.create(),
21
- mutationFn: (data) => (0, client_1.getClient)()
22
- .tableModule.create({
23
- data,
24
- select: args.select,
25
- })
26
- .unwrap(),
27
- onSuccess: () => {
28
- queryClient.invalidateQueries({
29
- queryKey: query_keys_1.tableModuleKeys.lists(),
30
- });
31
- },
32
- ...mutationOptions,
33
- });
34
- }