@constructive-io/react 0.20.3 → 0.20.5

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 (445) 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 -30
  4. package/admin/hooks/invalidation.js +48 -80
  5. package/admin/hooks/mutation-keys.d.ts +36 -60
  6. package/admin/hooks/mutation-keys.js +22 -36
  7. package/admin/hooks/mutations/index.d.ts +9 -15
  8. package/admin/hooks/mutations/index.js +9 -15
  9. package/admin/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
  10. package/admin/hooks/mutations/{useCreateAppLevelMutation.js → useCreateAppLimitWarningMutation.js} +6 -6
  11. package/admin/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
  12. package/admin/hooks/mutations/{useCreateAppAchievementMutation.js → useCreateOrgLimitWarningMutation.js} +6 -6
  13. package/admin/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
  14. package/admin/hooks/mutations/{useDeleteAppAchievementMutation.js → useDeleteAppLimitWarningMutation.js} +7 -7
  15. package/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
  16. package/{public/hooks/mutations/useDeleteSecretsModuleMutation.js → admin/hooks/mutations/useDeleteOrgLimitWarningMutation.js} +7 -7
  17. package/admin/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
  18. package/admin/hooks/mutations/{useUpdateAppAchievementMutation.js → useUpdateAppLimitWarningMutation.js} +9 -9
  19. package/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
  20. package/admin/hooks/mutations/{useUpdateAppLevelRequirementMutation.js → useUpdateOrgLimitWarningMutation.js} +9 -9
  21. package/admin/hooks/queries/index.d.ts +6 -12
  22. package/admin/hooks/queries/index.js +6 -12
  23. package/admin/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
  24. package/admin/hooks/queries/{useAppAchievementQuery.js → useAppLimitWarningQuery.js} +14 -14
  25. package/admin/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
  26. package/{public/hooks/queries/useAppStepsQuery.js → admin/hooks/queries/useAppLimitWarningsQuery.js} +14 -14
  27. package/admin/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
  28. package/admin/hooks/queries/{useAppStepQuery.js → useOrgLimitWarningQuery.js} +14 -14
  29. package/admin/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
  30. package/admin/hooks/queries/useOrgLimitWarningsQuery.js +38 -0
  31. package/admin/hooks/query-keys.d.ts +42 -74
  32. package/admin/hooks/query-keys.js +25 -43
  33. package/admin/orm/index.d.ts +6 -20
  34. package/admin/orm/index.js +6 -10
  35. package/admin/orm/input-types.d.ts +488 -768
  36. package/admin/orm/models/appLimitWarning.d.ts +54 -0
  37. package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
  38. package/admin/orm/models/index.d.ts +3 -5
  39. package/admin/orm/models/index.js +7 -11
  40. package/admin/orm/models/orgLimitWarning.d.ts +54 -0
  41. package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
  42. package/admin/orm/query/index.d.ts +1 -28
  43. package/admin/orm/query/index.js +0 -44
  44. package/admin/schema-types.d.ts +372 -572
  45. package/admin/types.d.ts +28 -48
  46. package/esm/admin/hooks/index.d.ts +1 -1
  47. package/esm/admin/hooks/index.js +1 -1
  48. package/esm/admin/hooks/invalidation.d.ts +18 -30
  49. package/esm/admin/hooks/invalidation.js +49 -81
  50. package/esm/admin/hooks/mutation-keys.d.ts +36 -60
  51. package/esm/admin/hooks/mutation-keys.js +21 -35
  52. package/esm/admin/hooks/mutations/index.d.ts +9 -15
  53. package/esm/admin/hooks/mutations/index.js +9 -15
  54. package/esm/admin/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
  55. package/esm/admin/hooks/mutations/{useCreateAppAchievementMutation.js → useCreateAppLimitWarningMutation.js} +7 -7
  56. package/esm/admin/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
  57. package/esm/admin/hooks/mutations/{useCreateAppLevelRequirementMutation.js → useCreateOrgLimitWarningMutation.js} +7 -7
  58. package/esm/admin/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
  59. package/esm/admin/hooks/mutations/{useDeleteAppAchievementMutation.js → useDeleteAppLimitWarningMutation.js} +8 -8
  60. package/esm/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
  61. package/esm/admin/hooks/mutations/{useDeleteAppLevelRequirementMutation.js → useDeleteOrgLimitWarningMutation.js} +8 -8
  62. package/esm/admin/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
  63. package/esm/admin/hooks/mutations/{useUpdateAppAchievementMutation.js → useUpdateAppLimitWarningMutation.js} +10 -10
  64. package/esm/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
  65. package/esm/admin/hooks/mutations/{useUpdateAppLevelRequirementMutation.js → useUpdateOrgLimitWarningMutation.js} +10 -10
  66. package/esm/admin/hooks/queries/index.d.ts +6 -12
  67. package/esm/admin/hooks/queries/index.js +6 -12
  68. package/esm/admin/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
  69. package/esm/admin/hooks/queries/{useAppLevelRequirementQuery.js → useAppLimitWarningQuery.js} +11 -11
  70. package/esm/admin/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
  71. package/esm/admin/hooks/queries/useAppLimitWarningsQuery.js +32 -0
  72. package/esm/admin/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
  73. package/esm/admin/hooks/queries/{useAppStepQuery.js → useOrgLimitWarningQuery.js} +11 -11
  74. package/esm/admin/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
  75. package/esm/admin/hooks/queries/useOrgLimitWarningsQuery.js +32 -0
  76. package/esm/admin/hooks/query-keys.d.ts +42 -74
  77. package/esm/admin/hooks/query-keys.js +24 -42
  78. package/esm/admin/orm/index.d.ts +6 -20
  79. package/esm/admin/orm/index.js +6 -10
  80. package/esm/admin/orm/input-types.d.ts +488 -768
  81. package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
  82. package/esm/admin/orm/models/{appLevel.js → appLimitWarning.js} +25 -25
  83. package/esm/admin/orm/models/index.d.ts +3 -5
  84. package/esm/admin/orm/models/index.js +3 -5
  85. package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
  86. package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
  87. package/esm/admin/orm/query/index.d.ts +1 -28
  88. package/esm/admin/orm/query/index.js +0 -44
  89. package/esm/admin/schema-types.d.ts +372 -572
  90. package/esm/admin/types.d.ts +28 -48
  91. package/esm/public/hooks/index.d.ts +1 -1
  92. package/esm/public/hooks/index.js +1 -1
  93. package/esm/public/hooks/invalidation.d.ts +27 -33
  94. package/esm/public/hooks/invalidation.js +60 -76
  95. package/esm/public/hooks/mutation-keys.d.ts +54 -66
  96. package/esm/public/hooks/mutation-keys.js +35 -39
  97. package/esm/public/hooks/mutations/index.d.ts +15 -18
  98. package/esm/public/hooks/mutations/index.js +15 -18
  99. package/esm/public/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
  100. package/esm/{admin/hooks/mutations/useCreateAppStepMutation.js → public/hooks/mutations/useCreateAppLimitWarningMutation.js} +7 -7
  101. package/esm/public/hooks/mutations/useCreateEventsModuleMutation.d.ts +34 -0
  102. package/esm/public/hooks/mutations/{useCreateLevelsModuleMutation.js → useCreateEventsModuleMutation.js} +7 -7
  103. package/esm/public/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
  104. package/esm/public/hooks/mutations/useCreateOrgLimitWarningMutation.js +31 -0
  105. package/esm/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.d.ts +34 -0
  106. package/esm/public/hooks/mutations/{useCreateAppLevelMutation.js → useCreateRateLimitMetersModuleMutation.js} +7 -7
  107. package/esm/public/hooks/mutations/useCreateUserStateModuleMutation.d.ts +34 -0
  108. package/esm/{admin/hooks/mutations/useCreateAppLevelMutation.js → public/hooks/mutations/useCreateUserStateModuleMutation.js} +7 -7
  109. package/esm/public/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
  110. package/esm/{admin/hooks/mutations/useDeleteAppStepMutation.js → public/hooks/mutations/useDeleteAppLimitWarningMutation.js} +8 -8
  111. package/esm/public/hooks/mutations/useDeleteEventsModuleMutation.d.ts +38 -0
  112. package/esm/public/hooks/mutations/{useDeleteLevelsModuleMutation.js → useDeleteEventsModuleMutation.js} +8 -8
  113. package/esm/public/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
  114. package/esm/public/hooks/mutations/useDeleteOrgLimitWarningMutation.js +36 -0
  115. package/esm/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.d.ts +38 -0
  116. package/esm/{admin/hooks/mutations/useDeleteAppLevelMutation.js → public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.js} +8 -8
  117. package/esm/public/hooks/mutations/useDeleteUserStateModuleMutation.d.ts +38 -0
  118. package/esm/public/hooks/mutations/{useDeleteAppLevelMutation.js → useDeleteUserStateModuleMutation.js} +8 -8
  119. package/esm/public/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
  120. package/esm/{admin/hooks/mutations/useUpdateAppStepMutation.js → public/hooks/mutations/useUpdateAppLimitWarningMutation.js} +10 -10
  121. package/esm/public/hooks/mutations/useUpdateEventsModuleMutation.d.ts +40 -0
  122. package/esm/public/hooks/mutations/{useUpdateLevelsModuleMutation.js → useUpdateEventsModuleMutation.js} +10 -10
  123. package/esm/public/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
  124. package/esm/public/hooks/mutations/useUpdateOrgLimitWarningMutation.js +37 -0
  125. package/esm/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.d.ts +40 -0
  126. package/esm/public/hooks/mutations/{useUpdateSecretsModuleMutation.js → useUpdateRateLimitMetersModuleMutation.js} +10 -10
  127. package/esm/public/hooks/mutations/useUpdateUserStateModuleMutation.d.ts +40 -0
  128. package/esm/{admin/hooks/mutations/useUpdateAppLevelMutation.js → public/hooks/mutations/useUpdateUserStateModuleMutation.js} +10 -10
  129. package/esm/public/hooks/queries/index.d.ts +10 -14
  130. package/esm/public/hooks/queries/index.js +10 -14
  131. package/esm/public/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
  132. package/esm/{admin/hooks/queries/useAppAchievementQuery.js → public/hooks/queries/useAppLimitWarningQuery.js} +11 -11
  133. package/esm/public/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
  134. package/esm/public/hooks/queries/useAppLimitWarningsQuery.js +32 -0
  135. package/esm/public/hooks/queries/useEventsModuleQuery.d.ts +65 -0
  136. package/esm/public/hooks/queries/{useLevelsModuleQuery.js → useEventsModuleQuery.js} +11 -11
  137. package/esm/public/hooks/queries/useEventsModulesQuery.d.ts +69 -0
  138. package/esm/public/hooks/queries/{useLevelsModulesQuery.js → useEventsModulesQuery.js} +11 -11
  139. package/esm/public/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
  140. package/esm/public/hooks/queries/useOrgLimitWarningQuery.js +47 -0
  141. package/esm/public/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
  142. package/esm/public/hooks/queries/useOrgLimitWarningsQuery.js +32 -0
  143. package/esm/public/hooks/queries/useRateLimitMetersModuleQuery.d.ts +65 -0
  144. package/esm/public/hooks/queries/{useAppLevelQuery.js → useRateLimitMetersModuleQuery.js} +11 -11
  145. package/esm/public/hooks/queries/useRateLimitMetersModulesQuery.d.ts +69 -0
  146. package/esm/public/hooks/queries/useRateLimitMetersModulesQuery.js +32 -0
  147. package/esm/public/hooks/queries/useUserStateModuleQuery.d.ts +65 -0
  148. package/esm/{admin/hooks/queries/useAppLevelQuery.js → public/hooks/queries/useUserStateModuleQuery.js} +11 -11
  149. package/esm/public/hooks/queries/useUserStateModulesQuery.d.ts +69 -0
  150. package/esm/public/hooks/queries/{useAppLevelsQuery.js → useUserStateModulesQuery.js} +11 -11
  151. package/esm/public/hooks/query-keys.d.ts +64 -82
  152. package/esm/public/hooks/query-keys.js +37 -47
  153. package/esm/public/orm/index.d.ts +10 -22
  154. package/esm/public/orm/index.js +10 -12
  155. package/esm/public/orm/input-types.d.ts +1024 -919
  156. package/esm/public/orm/input-types.js +3 -5
  157. package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
  158. package/esm/public/orm/models/{appAchievement.js → appLimitWarning.js} +25 -25
  159. package/esm/public/orm/models/eventsModule.d.ts +54 -0
  160. package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
  161. package/esm/public/orm/models/index.d.ts +5 -6
  162. package/esm/public/orm/models/index.js +5 -6
  163. package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
  164. package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
  165. package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  166. package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
  167. package/esm/public/orm/models/userStateModule.d.ts +54 -0
  168. package/esm/public/orm/models/userStateModule.js +100 -0
  169. package/esm/public/orm/mutation/index.d.ts +2 -2
  170. package/esm/public/orm/query/index.d.ts +1 -28
  171. package/esm/public/orm/query/index.js +0 -44
  172. package/esm/public/schema-types.d.ts +750 -731
  173. package/esm/public/types.d.ts +65 -50
  174. package/package.json +4 -4
  175. package/public/hooks/index.d.ts +1 -1
  176. package/public/hooks/index.js +1 -1
  177. package/public/hooks/invalidation.d.ts +27 -33
  178. package/public/hooks/invalidation.js +59 -75
  179. package/public/hooks/mutation-keys.d.ts +54 -66
  180. package/public/hooks/mutation-keys.js +38 -43
  181. package/public/hooks/mutations/index.d.ts +15 -18
  182. package/public/hooks/mutations/index.js +15 -18
  183. package/public/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
  184. package/{admin/hooks/mutations/useCreateAppStepMutation.js → public/hooks/mutations/useCreateAppLimitWarningMutation.js} +6 -6
  185. package/public/hooks/mutations/useCreateEventsModuleMutation.d.ts +34 -0
  186. package/public/hooks/mutations/{useCreateLevelsModuleMutation.js → useCreateEventsModuleMutation.js} +6 -6
  187. package/public/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
  188. package/public/hooks/mutations/useCreateOrgLimitWarningMutation.js +34 -0
  189. package/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.d.ts +34 -0
  190. package/public/hooks/mutations/{useCreateAppStepMutation.js → useCreateRateLimitMetersModuleMutation.js} +6 -6
  191. package/public/hooks/mutations/useCreateUserStateModuleMutation.d.ts +34 -0
  192. package/public/hooks/mutations/{useCreateAppLevelMutation.js → useCreateUserStateModuleMutation.js} +6 -6
  193. package/public/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
  194. package/{admin/hooks/mutations/useDeleteAppLevelRequirementMutation.js → public/hooks/mutations/useDeleteAppLimitWarningMutation.js} +7 -7
  195. package/public/hooks/mutations/useDeleteEventsModuleMutation.d.ts +38 -0
  196. package/public/hooks/mutations/{useDeleteLevelsModuleMutation.js → useDeleteEventsModuleMutation.js} +7 -7
  197. package/public/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
  198. package/{admin/hooks/mutations/useDeleteAppStepMutation.js → public/hooks/mutations/useDeleteOrgLimitWarningMutation.js} +7 -7
  199. package/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.d.ts +38 -0
  200. package/{admin/hooks/mutations/useDeleteAppLevelMutation.js → public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.js} +7 -7
  201. package/public/hooks/mutations/useDeleteUserStateModuleMutation.d.ts +38 -0
  202. package/public/hooks/mutations/{useDeleteAppLevelMutation.js → useDeleteUserStateModuleMutation.js} +7 -7
  203. package/public/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
  204. package/{admin/hooks/mutations/useUpdateAppStepMutation.js → public/hooks/mutations/useUpdateAppLimitWarningMutation.js} +9 -9
  205. package/public/hooks/mutations/useUpdateEventsModuleMutation.d.ts +40 -0
  206. package/public/hooks/mutations/{useUpdateLevelsModuleMutation.js → useUpdateEventsModuleMutation.js} +9 -9
  207. package/public/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
  208. package/public/hooks/mutations/useUpdateOrgLimitWarningMutation.js +40 -0
  209. package/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.d.ts +40 -0
  210. package/public/hooks/mutations/{useUpdateAppLevelMutation.js → useUpdateRateLimitMetersModuleMutation.js} +9 -9
  211. package/public/hooks/mutations/useUpdateUserStateModuleMutation.d.ts +40 -0
  212. package/{admin/hooks/mutations/useUpdateAppLevelMutation.js → public/hooks/mutations/useUpdateUserStateModuleMutation.js} +9 -9
  213. package/public/hooks/queries/index.d.ts +10 -14
  214. package/public/hooks/queries/index.js +10 -14
  215. package/public/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
  216. package/{admin/hooks/queries/useAppLevelQuery.js → public/hooks/queries/useAppLimitWarningQuery.js} +14 -14
  217. package/public/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
  218. package/{admin/hooks/queries/useAppStepsQuery.js → public/hooks/queries/useAppLimitWarningsQuery.js} +14 -14
  219. package/public/hooks/queries/useEventsModuleQuery.d.ts +65 -0
  220. package/public/hooks/queries/{useLevelsModuleQuery.js → useEventsModuleQuery.js} +14 -14
  221. package/public/hooks/queries/useEventsModulesQuery.d.ts +69 -0
  222. package/public/hooks/queries/{useLevelsModulesQuery.js → useEventsModulesQuery.js} +14 -14
  223. package/public/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
  224. package/public/hooks/queries/{useAppAchievementQuery.js → useOrgLimitWarningQuery.js} +14 -14
  225. package/public/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
  226. package/public/hooks/queries/useOrgLimitWarningsQuery.js +38 -0
  227. package/public/hooks/queries/useRateLimitMetersModuleQuery.d.ts +65 -0
  228. package/public/hooks/queries/{useAppLevelRequirementQuery.js → useRateLimitMetersModuleQuery.js} +14 -14
  229. package/public/hooks/queries/useRateLimitMetersModulesQuery.d.ts +69 -0
  230. package/public/hooks/queries/useRateLimitMetersModulesQuery.js +38 -0
  231. package/public/hooks/queries/useUserStateModuleQuery.d.ts +65 -0
  232. package/public/hooks/queries/{useAppLevelQuery.js → useUserStateModuleQuery.js} +14 -14
  233. package/public/hooks/queries/useUserStateModulesQuery.d.ts +69 -0
  234. package/public/hooks/queries/useUserStateModulesQuery.js +38 -0
  235. package/public/hooks/query-keys.d.ts +64 -82
  236. package/public/hooks/query-keys.js +40 -51
  237. package/public/orm/index.d.ts +10 -22
  238. package/public/orm/index.js +10 -12
  239. package/public/orm/input-types.d.ts +1024 -919
  240. package/public/orm/input-types.js +3 -5
  241. package/public/orm/models/appLimitWarning.d.ts +54 -0
  242. package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
  243. package/public/orm/models/eventsModule.d.ts +54 -0
  244. package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
  245. package/public/orm/models/index.d.ts +5 -6
  246. package/public/orm/models/index.js +13 -15
  247. package/public/orm/models/orgLimitWarning.d.ts +54 -0
  248. package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
  249. package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
  250. package/public/orm/models/{appLevel.js → rateLimitMetersModule.js} +27 -27
  251. package/public/orm/models/userStateModule.d.ts +54 -0
  252. package/public/orm/models/{appAchievement.js → userStateModule.js} +27 -27
  253. package/public/orm/mutation/index.d.ts +2 -2
  254. package/public/orm/query/index.d.ts +1 -28
  255. package/public/orm/query/index.js +0 -44
  256. package/public/schema-types.d.ts +750 -731
  257. package/public/types.d.ts +65 -50
  258. package/admin/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
  259. package/admin/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
  260. package/admin/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
  261. package/admin/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -34
  262. package/admin/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
  263. package/admin/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
  264. package/admin/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
  265. package/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
  266. package/admin/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
  267. package/admin/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
  268. package/admin/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
  269. package/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
  270. package/admin/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
  271. package/admin/hooks/queries/useAppAchievementQuery.d.ts +0 -65
  272. package/admin/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
  273. package/admin/hooks/queries/useAppAchievementsQuery.js +0 -38
  274. package/admin/hooks/queries/useAppLevelQuery.d.ts +0 -65
  275. package/admin/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
  276. package/admin/hooks/queries/useAppLevelRequirementQuery.js +0 -53
  277. package/admin/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
  278. package/admin/hooks/queries/useAppLevelRequirementsQuery.js +0 -38
  279. package/admin/hooks/queries/useAppLevelsQuery.d.ts +0 -69
  280. package/admin/hooks/queries/useAppLevelsQuery.js +0 -38
  281. package/admin/hooks/queries/useAppStepQuery.d.ts +0 -65
  282. package/admin/hooks/queries/useAppStepsQuery.d.ts +0 -69
  283. package/admin/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
  284. package/admin/hooks/queries/useStepsAchievedQuery.js +0 -53
  285. package/admin/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
  286. package/admin/hooks/queries/useStepsRequiredQuery.js +0 -53
  287. package/admin/orm/models/appAchievement.d.ts +0 -54
  288. package/admin/orm/models/appLevel.d.ts +0 -54
  289. package/admin/orm/models/appLevelRequirement.d.ts +0 -54
  290. package/admin/orm/models/appLevelRequirement.js +0 -104
  291. package/admin/orm/models/appStep.d.ts +0 -54
  292. package/esm/admin/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
  293. package/esm/admin/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
  294. package/esm/admin/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
  295. package/esm/admin/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
  296. package/esm/admin/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
  297. package/esm/admin/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
  298. package/esm/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
  299. package/esm/admin/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
  300. package/esm/admin/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
  301. package/esm/admin/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
  302. package/esm/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
  303. package/esm/admin/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
  304. package/esm/admin/hooks/queries/useAppAchievementQuery.d.ts +0 -65
  305. package/esm/admin/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
  306. package/esm/admin/hooks/queries/useAppAchievementsQuery.js +0 -32
  307. package/esm/admin/hooks/queries/useAppLevelQuery.d.ts +0 -65
  308. package/esm/admin/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
  309. package/esm/admin/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
  310. package/esm/admin/hooks/queries/useAppLevelRequirementsQuery.js +0 -32
  311. package/esm/admin/hooks/queries/useAppLevelsQuery.d.ts +0 -69
  312. package/esm/admin/hooks/queries/useAppLevelsQuery.js +0 -32
  313. package/esm/admin/hooks/queries/useAppStepQuery.d.ts +0 -65
  314. package/esm/admin/hooks/queries/useAppStepsQuery.d.ts +0 -69
  315. package/esm/admin/hooks/queries/useAppStepsQuery.js +0 -32
  316. package/esm/admin/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
  317. package/esm/admin/hooks/queries/useStepsAchievedQuery.js +0 -47
  318. package/esm/admin/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
  319. package/esm/admin/hooks/queries/useStepsRequiredQuery.js +0 -47
  320. package/esm/admin/orm/models/appAchievement.d.ts +0 -54
  321. package/esm/admin/orm/models/appLevel.d.ts +0 -54
  322. package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
  323. package/esm/admin/orm/models/appStep.d.ts +0 -54
  324. package/esm/public/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
  325. package/esm/public/hooks/mutations/useCreateAppAchievementMutation.js +0 -31
  326. package/esm/public/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
  327. package/esm/public/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
  328. package/esm/public/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -31
  329. package/esm/public/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
  330. package/esm/public/hooks/mutations/useCreateAppStepMutation.js +0 -31
  331. package/esm/public/hooks/mutations/useCreateLevelsModuleMutation.d.ts +0 -34
  332. package/esm/public/hooks/mutations/useCreateSecretsModuleMutation.d.ts +0 -34
  333. package/esm/public/hooks/mutations/useCreateSecretsModuleMutation.js +0 -31
  334. package/esm/public/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
  335. package/esm/public/hooks/mutations/useDeleteAppAchievementMutation.js +0 -36
  336. package/esm/public/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
  337. package/esm/public/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
  338. package/esm/public/hooks/mutations/useDeleteAppLevelRequirementMutation.js +0 -36
  339. package/esm/public/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
  340. package/esm/public/hooks/mutations/useDeleteAppStepMutation.js +0 -36
  341. package/esm/public/hooks/mutations/useDeleteLevelsModuleMutation.d.ts +0 -38
  342. package/esm/public/hooks/mutations/useDeleteSecretsModuleMutation.d.ts +0 -38
  343. package/esm/public/hooks/mutations/useDeleteSecretsModuleMutation.js +0 -36
  344. package/esm/public/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
  345. package/esm/public/hooks/mutations/useUpdateAppAchievementMutation.js +0 -37
  346. package/esm/public/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
  347. package/esm/public/hooks/mutations/useUpdateAppLevelMutation.js +0 -37
  348. package/esm/public/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
  349. package/esm/public/hooks/mutations/useUpdateAppLevelRequirementMutation.js +0 -37
  350. package/esm/public/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
  351. package/esm/public/hooks/mutations/useUpdateAppStepMutation.js +0 -37
  352. package/esm/public/hooks/mutations/useUpdateLevelsModuleMutation.d.ts +0 -40
  353. package/esm/public/hooks/mutations/useUpdateSecretsModuleMutation.d.ts +0 -40
  354. package/esm/public/hooks/queries/useAppAchievementQuery.d.ts +0 -65
  355. package/esm/public/hooks/queries/useAppAchievementQuery.js +0 -47
  356. package/esm/public/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
  357. package/esm/public/hooks/queries/useAppAchievementsQuery.js +0 -32
  358. package/esm/public/hooks/queries/useAppLevelQuery.d.ts +0 -65
  359. package/esm/public/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
  360. package/esm/public/hooks/queries/useAppLevelRequirementQuery.js +0 -47
  361. package/esm/public/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
  362. package/esm/public/hooks/queries/useAppLevelRequirementsQuery.js +0 -32
  363. package/esm/public/hooks/queries/useAppLevelsQuery.d.ts +0 -69
  364. package/esm/public/hooks/queries/useAppStepQuery.d.ts +0 -65
  365. package/esm/public/hooks/queries/useAppStepQuery.js +0 -47
  366. package/esm/public/hooks/queries/useAppStepsQuery.d.ts +0 -69
  367. package/esm/public/hooks/queries/useAppStepsQuery.js +0 -32
  368. package/esm/public/hooks/queries/useLevelsModuleQuery.d.ts +0 -65
  369. package/esm/public/hooks/queries/useLevelsModulesQuery.d.ts +0 -69
  370. package/esm/public/hooks/queries/useSecretsModuleQuery.d.ts +0 -65
  371. package/esm/public/hooks/queries/useSecretsModuleQuery.js +0 -47
  372. package/esm/public/hooks/queries/useSecretsModulesQuery.d.ts +0 -69
  373. package/esm/public/hooks/queries/useSecretsModulesQuery.js +0 -32
  374. package/esm/public/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
  375. package/esm/public/hooks/queries/useStepsAchievedQuery.js +0 -47
  376. package/esm/public/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
  377. package/esm/public/hooks/queries/useStepsRequiredQuery.js +0 -47
  378. package/esm/public/orm/models/appAchievement.d.ts +0 -54
  379. package/esm/public/orm/models/appLevel.d.ts +0 -54
  380. package/esm/public/orm/models/appLevel.js +0 -100
  381. package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
  382. package/esm/public/orm/models/appLevelRequirement.js +0 -100
  383. package/esm/public/orm/models/appStep.d.ts +0 -54
  384. package/esm/public/orm/models/appStep.js +0 -100
  385. package/esm/public/orm/models/levelsModule.d.ts +0 -54
  386. package/esm/public/orm/models/secretsModule.d.ts +0 -54
  387. package/esm/public/orm/models/secretsModule.js +0 -100
  388. package/public/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
  389. package/public/hooks/mutations/useCreateAppAchievementMutation.js +0 -34
  390. package/public/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
  391. package/public/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
  392. package/public/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -34
  393. package/public/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
  394. package/public/hooks/mutations/useCreateLevelsModuleMutation.d.ts +0 -34
  395. package/public/hooks/mutations/useCreateSecretsModuleMutation.d.ts +0 -34
  396. package/public/hooks/mutations/useCreateSecretsModuleMutation.js +0 -34
  397. package/public/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
  398. package/public/hooks/mutations/useDeleteAppAchievementMutation.js +0 -39
  399. package/public/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
  400. package/public/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
  401. package/public/hooks/mutations/useDeleteAppLevelRequirementMutation.js +0 -39
  402. package/public/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
  403. package/public/hooks/mutations/useDeleteAppStepMutation.js +0 -39
  404. package/public/hooks/mutations/useDeleteLevelsModuleMutation.d.ts +0 -38
  405. package/public/hooks/mutations/useDeleteSecretsModuleMutation.d.ts +0 -38
  406. package/public/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
  407. package/public/hooks/mutations/useUpdateAppAchievementMutation.js +0 -40
  408. package/public/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
  409. package/public/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
  410. package/public/hooks/mutations/useUpdateAppLevelRequirementMutation.js +0 -40
  411. package/public/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
  412. package/public/hooks/mutations/useUpdateAppStepMutation.js +0 -40
  413. package/public/hooks/mutations/useUpdateLevelsModuleMutation.d.ts +0 -40
  414. package/public/hooks/mutations/useUpdateSecretsModuleMutation.d.ts +0 -40
  415. package/public/hooks/mutations/useUpdateSecretsModuleMutation.js +0 -40
  416. package/public/hooks/queries/useAppAchievementQuery.d.ts +0 -65
  417. package/public/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
  418. package/public/hooks/queries/useAppAchievementsQuery.js +0 -38
  419. package/public/hooks/queries/useAppLevelQuery.d.ts +0 -65
  420. package/public/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
  421. package/public/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
  422. package/public/hooks/queries/useAppLevelRequirementsQuery.js +0 -38
  423. package/public/hooks/queries/useAppLevelsQuery.d.ts +0 -69
  424. package/public/hooks/queries/useAppLevelsQuery.js +0 -38
  425. package/public/hooks/queries/useAppStepQuery.d.ts +0 -65
  426. package/public/hooks/queries/useAppStepQuery.js +0 -53
  427. package/public/hooks/queries/useAppStepsQuery.d.ts +0 -69
  428. package/public/hooks/queries/useLevelsModuleQuery.d.ts +0 -65
  429. package/public/hooks/queries/useLevelsModulesQuery.d.ts +0 -69
  430. package/public/hooks/queries/useSecretsModuleQuery.d.ts +0 -65
  431. package/public/hooks/queries/useSecretsModuleQuery.js +0 -53
  432. package/public/hooks/queries/useSecretsModulesQuery.d.ts +0 -69
  433. package/public/hooks/queries/useSecretsModulesQuery.js +0 -38
  434. package/public/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
  435. package/public/hooks/queries/useStepsAchievedQuery.js +0 -53
  436. package/public/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
  437. package/public/hooks/queries/useStepsRequiredQuery.js +0 -53
  438. package/public/orm/models/appAchievement.d.ts +0 -54
  439. package/public/orm/models/appLevel.d.ts +0 -54
  440. package/public/orm/models/appLevelRequirement.d.ts +0 -54
  441. package/public/orm/models/appLevelRequirement.js +0 -104
  442. package/public/orm/models/appStep.d.ts +0 -54
  443. package/public/orm/models/appStep.js +0 -104
  444. package/public/orm/models/levelsModule.d.ts +0 -54
  445. package/public/orm/models/secretsModule.d.ts +0 -54
@@ -1,69 +0,0 @@
1
- /**
2
- * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
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 { AppAchievementSelect, AppAchievementWithRelations, AppAchievementFilter, AppAchievementOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { AppAchievementSelect, AppAchievementWithRelations, AppAchievementFilter, AppAchievementOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const appAchievementsQueryKey: (variables?: object) => readonly ["appachievement", "list", object];
13
- /**
14
- * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useAppAchievementsQuery({
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 useAppAchievementsQuery<S extends AppAchievementSelect, TData = {
29
- appAchievements: ConnectionResult<InferSelectResult<AppAchievementWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, AppAchievementFilter, AppAchievementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
34
- } & Omit<UseQueryOptions<{
35
- appAchievements: ConnectionResult<InferSelectResult<AppAchievementWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchAppAchievementsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchAppAchievementsQuery<S extends AppAchievementSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, AppAchievementFilter, AppAchievementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
54
- }): Promise<{
55
- appAchievements: ConnectionResult<InferSelectResult<AppAchievementWithRelations, S>>;
56
- }>;
57
- /**
58
- * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchAppAchievementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchAppAchievementsQuery<S extends AppAchievementSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, AppAchievementFilter, AppAchievementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppAchievementSelect>;
69
- }): Promise<void>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- /**
3
- * Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually
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.appAchievementsQueryKey = void 0;
9
- exports.useAppAchievementsQuery = useAppAchievementsQuery;
10
- exports.fetchAppAchievementsQuery = fetchAppAchievementsQuery;
11
- exports.prefetchAppAchievementsQuery = prefetchAppAchievementsQuery;
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.appAchievementsQueryKey = query_keys_1.appAchievementKeys.list;
18
- function useAppAchievementsQuery(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.appAchievementKeys.list(args),
24
- queryFn: () => (0, client_1.getClient)().appAchievement.findMany(args).unwrap(),
25
- ...queryOptions,
26
- });
27
- }
28
- async function fetchAppAchievementsQuery(params) {
29
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
- return (0, client_1.getClient)().appAchievement.findMany(args).unwrap();
31
- }
32
- async function prefetchAppAchievementsQuery(queryClient, params) {
33
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
- await queryClient.prefetchQuery({
35
- queryKey: query_keys_1.appAchievementKeys.list(args),
36
- queryFn: () => (0, client_1.getClient)().appAchievement.findMany(args).unwrap(),
37
- });
38
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Defines available levels that users can achieve by completing requirements
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 { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { AppLevelSelect, AppLevelWithRelations } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const appLevelQueryKey: (id: string | number) => readonly ["applevel", "detail", string | number];
12
- /**
13
- * Defines available levels that users can achieve by completing requirements
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useAppLevelQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useAppLevelQuery<S extends AppLevelSelect, TData = {
24
- appLevel: InferSelectResult<AppLevelWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
30
- } & Omit<UseQueryOptions<{
31
- appLevel: InferSelectResult<AppLevelWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Defines available levels that users can achieve by completing requirements
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchAppLevelQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchAppLevelQuery<S extends AppLevelSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
49
- }): Promise<{
50
- appLevel: InferSelectResult<AppLevelWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Defines available levels that users can achieve by completing requirements
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchAppLevelQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchAppLevelQuery<S extends AppLevelSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
65
- }): Promise<void>;
@@ -1,65 +0,0 @@
1
- /**
2
- * Defines the specific requirements that must be met to achieve a level
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 { AppLevelRequirementSelect, AppLevelRequirementWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { AppLevelRequirementSelect, AppLevelRequirementWithRelations, } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const appLevelRequirementQueryKey: (id: string | number) => readonly ["applevelrequirement", "detail", string | number];
12
- /**
13
- * Defines the specific requirements that must be met to achieve a level
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useAppLevelRequirementQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useAppLevelRequirementQuery<S extends AppLevelRequirementSelect, TData = {
24
- appLevelRequirement: InferSelectResult<AppLevelRequirementWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
30
- } & Omit<UseQueryOptions<{
31
- appLevelRequirement: InferSelectResult<AppLevelRequirementWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Defines the specific requirements that must be met to achieve a level
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchAppLevelRequirementQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchAppLevelRequirementQuery<S extends AppLevelRequirementSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
49
- }): Promise<{
50
- appLevelRequirement: InferSelectResult<AppLevelRequirementWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Defines the specific requirements that must be met to achieve a level
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchAppLevelRequirementQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchAppLevelRequirementQuery<S extends AppLevelRequirementSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
65
- }): Promise<void>;
@@ -1,69 +0,0 @@
1
- /**
2
- * Defines the specific requirements that must be met to achieve a level
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 { AppLevelRequirementSelect, AppLevelRequirementWithRelations, AppLevelRequirementFilter, AppLevelRequirementOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { AppLevelRequirementSelect, AppLevelRequirementWithRelations, AppLevelRequirementFilter, AppLevelRequirementOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const appLevelRequirementsQueryKey: (variables?: object) => readonly ["applevelrequirement", "list", object];
13
- /**
14
- * Defines the specific requirements that must be met to achieve a level
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useAppLevelRequirementsQuery({
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 useAppLevelRequirementsQuery<S extends AppLevelRequirementSelect, TData = {
29
- appLevelRequirements: ConnectionResult<InferSelectResult<AppLevelRequirementWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, AppLevelRequirementFilter, AppLevelRequirementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
34
- } & Omit<UseQueryOptions<{
35
- appLevelRequirements: ConnectionResult<InferSelectResult<AppLevelRequirementWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Defines the specific requirements that must be met to achieve a level
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchAppLevelRequirementsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchAppLevelRequirementsQuery<S extends AppLevelRequirementSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, AppLevelRequirementFilter, AppLevelRequirementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
54
- }): Promise<{
55
- appLevelRequirements: ConnectionResult<InferSelectResult<AppLevelRequirementWithRelations, S>>;
56
- }>;
57
- /**
58
- * Defines the specific requirements that must be met to achieve a level
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchAppLevelRequirementsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchAppLevelRequirementsQuery<S extends AppLevelRequirementSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, AppLevelRequirementFilter, AppLevelRequirementOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelRequirementSelect>;
69
- }): Promise<void>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- /**
3
- * Defines the specific requirements that must be met to achieve a level
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.appLevelRequirementsQueryKey = void 0;
9
- exports.useAppLevelRequirementsQuery = useAppLevelRequirementsQuery;
10
- exports.fetchAppLevelRequirementsQuery = fetchAppLevelRequirementsQuery;
11
- exports.prefetchAppLevelRequirementsQuery = prefetchAppLevelRequirementsQuery;
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.appLevelRequirementsQueryKey = query_keys_1.appLevelRequirementKeys.list;
18
- function useAppLevelRequirementsQuery(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.appLevelRequirementKeys.list(args),
24
- queryFn: () => (0, client_1.getClient)().appLevelRequirement.findMany(args).unwrap(),
25
- ...queryOptions,
26
- });
27
- }
28
- async function fetchAppLevelRequirementsQuery(params) {
29
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
- return (0, client_1.getClient)().appLevelRequirement.findMany(args).unwrap();
31
- }
32
- async function prefetchAppLevelRequirementsQuery(queryClient, params) {
33
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
- await queryClient.prefetchQuery({
35
- queryKey: query_keys_1.appLevelRequirementKeys.list(args),
36
- queryFn: () => (0, client_1.getClient)().appLevelRequirement.findMany(args).unwrap(),
37
- });
38
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * Defines available levels that users can achieve by completing requirements
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 { AppLevelSelect, AppLevelWithRelations, AppLevelFilter, AppLevelOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { AppLevelSelect, AppLevelWithRelations, AppLevelFilter, AppLevelOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const appLevelsQueryKey: (variables?: object) => readonly ["applevel", "list", object];
13
- /**
14
- * Defines available levels that users can achieve by completing requirements
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useAppLevelsQuery({
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 useAppLevelsQuery<S extends AppLevelSelect, TData = {
29
- appLevels: ConnectionResult<InferSelectResult<AppLevelWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, AppLevelFilter, AppLevelOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
34
- } & Omit<UseQueryOptions<{
35
- appLevels: ConnectionResult<InferSelectResult<AppLevelWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Defines available levels that users can achieve by completing requirements
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchAppLevelsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchAppLevelsQuery<S extends AppLevelSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, AppLevelFilter, AppLevelOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
54
- }): Promise<{
55
- appLevels: ConnectionResult<InferSelectResult<AppLevelWithRelations, S>>;
56
- }>;
57
- /**
58
- * Defines available levels that users can achieve by completing requirements
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchAppLevelsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchAppLevelsQuery<S extends AppLevelSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, AppLevelFilter, AppLevelOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLevelSelect>;
69
- }): Promise<void>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- /**
3
- * Defines available levels that users can achieve by completing requirements
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.appLevelsQueryKey = void 0;
9
- exports.useAppLevelsQuery = useAppLevelsQuery;
10
- exports.fetchAppLevelsQuery = fetchAppLevelsQuery;
11
- exports.prefetchAppLevelsQuery = prefetchAppLevelsQuery;
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.appLevelsQueryKey = query_keys_1.appLevelKeys.list;
18
- function useAppLevelsQuery(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.appLevelKeys.list(args),
24
- queryFn: () => (0, client_1.getClient)().appLevel.findMany(args).unwrap(),
25
- ...queryOptions,
26
- });
27
- }
28
- async function fetchAppLevelsQuery(params) {
29
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
30
- return (0, client_1.getClient)().appLevel.findMany(args).unwrap();
31
- }
32
- async function prefetchAppLevelsQuery(queryClient, params) {
33
- const args = (0, selection_1.buildListSelectionArgs)(params.selection);
34
- await queryClient.prefetchQuery({
35
- queryKey: query_keys_1.appLevelKeys.list(args),
36
- queryFn: () => (0, client_1.getClient)().appLevel.findMany(args).unwrap(),
37
- });
38
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
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 { AppStepSelect, AppStepWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types';
10
- /** Query key factory - re-exported from query-keys.ts */
11
- export declare const appStepQueryKey: (id: string | number) => readonly ["appstep", "detail", string | number];
12
- /**
13
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
14
- *
15
- * @example
16
- * ```tsx
17
- * const { data, isLoading } = useAppStepQuery({
18
- * id: 'some-id',
19
- * selection: { fields: { id: true, name: true } },
20
- * });
21
- * ```
22
- */
23
- export declare function useAppStepQuery<S extends AppStepSelect, TData = {
24
- appStep: InferSelectResult<AppStepWithRelations, S> | null;
25
- }>(params: {
26
- id: string;
27
- selection: {
28
- fields: S;
29
- } & HookStrictSelect<NoInfer<S>, AppStepSelect>;
30
- } & Omit<UseQueryOptions<{
31
- appStep: InferSelectResult<AppStepWithRelations, S> | null;
32
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
33
- /**
34
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
35
- *
36
- * @example
37
- * ```ts
38
- * const data = await fetchAppStepQuery({
39
- * id: 'some-id',
40
- * selection: { fields: { id: true } },
41
- * });
42
- * ```
43
- */
44
- export declare function fetchAppStepQuery<S extends AppStepSelect>(params: {
45
- id: string;
46
- selection: {
47
- fields: S;
48
- } & HookStrictSelect<NoInfer<S>, AppStepSelect>;
49
- }): Promise<{
50
- appStep: InferSelectResult<AppStepWithRelations, S> | null;
51
- }>;
52
- /**
53
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
54
- *
55
- * @example
56
- * ```ts
57
- * await prefetchAppStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
58
- * ```
59
- */
60
- export declare function prefetchAppStepQuery<S extends AppStepSelect>(queryClient: QueryClient, params: {
61
- id: string;
62
- selection: {
63
- fields: S;
64
- } & HookStrictSelect<NoInfer<S>, AppStepSelect>;
65
- }): Promise<void>;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /**
3
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
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.appStepQueryKey = void 0;
9
- exports.useAppStepQuery = useAppStepQuery;
10
- exports.fetchAppStepQuery = fetchAppStepQuery;
11
- exports.prefetchAppStepQuery = prefetchAppStepQuery;
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.appStepQueryKey = query_keys_1.appStepKeys.detail;
18
- function useAppStepQuery(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.appStepKeys.detail(params.id),
24
- queryFn: () => (0, client_1.getClient)()
25
- .appStep.findOne({
26
- id: params.id,
27
- select: args.select,
28
- })
29
- .unwrap(),
30
- ...queryOptions,
31
- });
32
- }
33
- async function fetchAppStepQuery(params) {
34
- const args = (0, selection_1.buildSelectionArgs)(params.selection);
35
- return (0, client_1.getClient)()
36
- .appStep.findOne({
37
- id: params.id,
38
- select: args.select,
39
- })
40
- .unwrap();
41
- }
42
- async function prefetchAppStepQuery(queryClient, params) {
43
- const args = (0, selection_1.buildSelectionArgs)(params.selection);
44
- await queryClient.prefetchQuery({
45
- queryKey: query_keys_1.appStepKeys.detail(params.id),
46
- queryFn: () => (0, client_1.getClient)()
47
- .appStep.findOne({
48
- id: params.id,
49
- select: args.select,
50
- })
51
- .unwrap(),
52
- });
53
- }
@@ -1,69 +0,0 @@
1
- /**
2
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
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 { AppStepSelect, AppStepWithRelations, AppStepFilter, AppStepOrderBy } from '../../orm/input-types';
9
- import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
10
- export type { AppStepSelect, AppStepWithRelations, AppStepFilter, AppStepOrderBy, } from '../../orm/input-types';
11
- /** Query key factory - re-exported from query-keys.ts */
12
- export declare const appStepsQueryKey: (variables?: object) => readonly ["appstep", "list", object];
13
- /**
14
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
15
- *
16
- * @example
17
- * ```tsx
18
- * const { data, isLoading } = useAppStepsQuery({
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 useAppStepsQuery<S extends AppStepSelect, TData = {
29
- appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
30
- }>(params: {
31
- selection: {
32
- fields: S;
33
- } & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
34
- } & Omit<UseQueryOptions<{
35
- appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
36
- }, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
37
- /**
38
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
39
- *
40
- * @example
41
- * ```ts
42
- * const data = await fetchAppStepsQuery({
43
- * selection: {
44
- * fields: { id: true },
45
- * first: 10,
46
- * },
47
- * });
48
- * ```
49
- */
50
- export declare function fetchAppStepsQuery<S extends AppStepSelect>(params: {
51
- selection: {
52
- fields: S;
53
- } & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
54
- }): Promise<{
55
- appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
56
- }>;
57
- /**
58
- * Log of individual user actions toward level requirements; every single step ever taken is recorded here
59
- *
60
- * @example
61
- * ```ts
62
- * await prefetchAppStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
63
- * ```
64
- */
65
- export declare function prefetchAppStepsQuery<S extends AppStepSelect>(queryClient: QueryClient, params: {
66
- selection: {
67
- fields: S;
68
- } & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
69
- }): Promise<void>;