@refinedev/core 4.0.0

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 (711) hide show
  1. package/CHANGELOG.md +2577 -0
  2. package/README.md +257 -0
  3. package/dist/components/authenticated/index.d.ts +41 -0
  4. package/dist/components/authenticated/index.d.ts.map +1 -0
  5. package/dist/components/canAccess/index.d.ts +11 -0
  6. package/dist/components/canAccess/index.d.ts.map +1 -0
  7. package/dist/components/containers/index.d.ts +2 -0
  8. package/dist/components/containers/index.d.ts.map +1 -0
  9. package/dist/components/containers/refine/index.d.ts +144 -0
  10. package/dist/components/containers/refine/index.d.ts.map +1 -0
  11. package/dist/components/gh-banner/index.d.ts +3 -0
  12. package/dist/components/gh-banner/index.d.ts.map +1 -0
  13. package/dist/components/gh-banner/styles.d.ts +2 -0
  14. package/dist/components/gh-banner/styles.d.ts.map +1 -0
  15. package/dist/components/index.d.ts +9 -0
  16. package/dist/components/index.d.ts.map +1 -0
  17. package/dist/components/layoutWrapper/defaultLayout/index.d.ts +4 -0
  18. package/dist/components/layoutWrapper/defaultLayout/index.d.ts.map +1 -0
  19. package/dist/components/layoutWrapper/index.d.ts +46 -0
  20. package/dist/components/layoutWrapper/index.d.ts.map +1 -0
  21. package/dist/components/pages/auth/components/forgotPassword/index.d.ts +7 -0
  22. package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -0
  23. package/dist/components/pages/auth/components/index.d.ts +5 -0
  24. package/dist/components/pages/auth/components/index.d.ts.map +1 -0
  25. package/dist/components/pages/auth/components/login/index.d.ts +7 -0
  26. package/dist/components/pages/auth/components/login/index.d.ts.map +1 -0
  27. package/dist/components/pages/auth/components/register/index.d.ts +7 -0
  28. package/dist/components/pages/auth/components/register/index.d.ts.map +1 -0
  29. package/dist/components/pages/auth/components/updatePassword/index.d.ts +7 -0
  30. package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -0
  31. package/dist/components/pages/auth/index.d.ts +12 -0
  32. package/dist/components/pages/auth/index.d.ts.map +1 -0
  33. package/dist/components/pages/error/index.d.ts +9 -0
  34. package/dist/components/pages/error/index.d.ts.map +1 -0
  35. package/dist/components/pages/index.d.ts +7 -0
  36. package/dist/components/pages/index.d.ts.map +1 -0
  37. package/dist/components/pages/login/index.d.ts +13 -0
  38. package/dist/components/pages/login/index.d.ts.map +1 -0
  39. package/dist/components/pages/ready/index.d.ts +9 -0
  40. package/dist/components/pages/ready/index.d.ts.map +1 -0
  41. package/dist/components/pages/welcome/index.d.ts +6 -0
  42. package/dist/components/pages/welcome/index.d.ts.map +1 -0
  43. package/dist/components/routeChangeHandler/index.d.ts +3 -0
  44. package/dist/components/routeChangeHandler/index.d.ts.map +1 -0
  45. package/dist/components/telemetry/index.d.ts +3 -0
  46. package/dist/components/telemetry/index.d.ts.map +1 -0
  47. package/dist/components/undoableQueue/index.d.ts +6 -0
  48. package/dist/components/undoableQueue/index.d.ts.map +1 -0
  49. package/dist/contexts/accessControl/IAccessControlContext.d.ts +31 -0
  50. package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +1 -0
  51. package/dist/contexts/accessControl/index.d.ts +9 -0
  52. package/dist/contexts/accessControl/index.d.ts.map +1 -0
  53. package/dist/contexts/auditLog/IAuditLogContext.d.ts +29 -0
  54. package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +1 -0
  55. package/dist/contexts/auditLog/index.d.ts +7 -0
  56. package/dist/contexts/auditLog/index.d.ts.map +1 -0
  57. package/dist/contexts/auth/IAuthContext.d.ts +26 -0
  58. package/dist/contexts/auth/IAuthContext.d.ts.map +1 -0
  59. package/dist/contexts/auth/index.d.ts +20 -0
  60. package/dist/contexts/auth/index.d.ts.map +1 -0
  61. package/dist/contexts/data/IDataContext.d.ts +193 -0
  62. package/dist/contexts/data/IDataContext.d.ts.map +1 -0
  63. package/dist/contexts/data/index.d.ts +52 -0
  64. package/dist/contexts/data/index.d.ts.map +1 -0
  65. package/dist/contexts/legacy-router/IRouterContext.d.ts +35 -0
  66. package/dist/contexts/legacy-router/IRouterContext.d.ts.map +1 -0
  67. package/dist/contexts/legacy-router/index.d.ts +9 -0
  68. package/dist/contexts/legacy-router/index.d.ts.map +1 -0
  69. package/dist/contexts/live/ILiveContext.d.ts +39 -0
  70. package/dist/contexts/live/ILiveContext.d.ts.map +1 -0
  71. package/dist/contexts/live/index.d.ts +5 -0
  72. package/dist/contexts/live/index.d.ts.map +1 -0
  73. package/dist/contexts/notification/INotificationContext.d.ts +14 -0
  74. package/dist/contexts/notification/INotificationContext.d.ts.map +1 -0
  75. package/dist/contexts/notification/index.d.ts +9 -0
  76. package/dist/contexts/notification/index.d.ts.map +1 -0
  77. package/dist/contexts/refine/IRefineContext.d.ts +106 -0
  78. package/dist/contexts/refine/IRefineContext.d.ts.map +1 -0
  79. package/dist/contexts/refine/index.d.ts +6 -0
  80. package/dist/contexts/refine/index.d.ts.map +1 -0
  81. package/dist/contexts/resource/IResourceContext.d.ts +49 -0
  82. package/dist/contexts/resource/IResourceContext.d.ts.map +1 -0
  83. package/dist/contexts/resource/index.d.ts +9 -0
  84. package/dist/contexts/resource/index.d.ts.map +1 -0
  85. package/dist/contexts/router/index.d.ts +7 -0
  86. package/dist/contexts/router/index.d.ts.map +1 -0
  87. package/dist/contexts/router-picker/index.d.ts +15 -0
  88. package/dist/contexts/router-picker/index.d.ts.map +1 -0
  89. package/dist/contexts/translation/ITranslationContext.d.ts +11 -0
  90. package/dist/contexts/translation/ITranslationContext.d.ts.map +1 -0
  91. package/dist/contexts/translation/index.d.ts +9 -0
  92. package/dist/contexts/translation/index.d.ts.map +1 -0
  93. package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +7 -0
  94. package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +1 -0
  95. package/dist/contexts/undoableQueue/actionTypes.d.ts +6 -0
  96. package/dist/contexts/undoableQueue/actionTypes.d.ts.map +1 -0
  97. package/dist/contexts/undoableQueue/index.d.ts +3 -0
  98. package/dist/contexts/undoableQueue/index.d.ts.map +1 -0
  99. package/dist/contexts/undoableQueue/undoableQueueContext.d.ts +8 -0
  100. package/dist/contexts/undoableQueue/undoableQueueContext.d.ts.map +1 -0
  101. package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts +5 -0
  102. package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts.map +1 -0
  103. package/dist/contexts/unsavedWarn/index.d.ts +7 -0
  104. package/dist/contexts/unsavedWarn/index.d.ts.map +1 -0
  105. package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts +3 -0
  106. package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts.map +1 -0
  107. package/dist/definitions/helpers/handleMultiple/index.d.ts +6 -0
  108. package/dist/definitions/helpers/handleMultiple/index.d.ts.map +1 -0
  109. package/dist/definitions/helpers/handlePaginationParams/index.d.ts +9 -0
  110. package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -0
  111. package/dist/definitions/helpers/handleRefineOptions/index.d.ts +26 -0
  112. package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -0
  113. package/dist/definitions/helpers/handleUseParams/index.d.ts +2 -0
  114. package/dist/definitions/helpers/handleUseParams/index.d.ts.map +1 -0
  115. package/dist/definitions/helpers/hasPermission/index.d.ts +2 -0
  116. package/dist/definitions/helpers/hasPermission/index.d.ts.map +1 -0
  117. package/dist/definitions/helpers/humanizeString/index.d.ts +2 -0
  118. package/dist/definitions/helpers/humanizeString/index.d.ts.map +1 -0
  119. package/dist/definitions/helpers/importCSVMapper/index.d.ts +3 -0
  120. package/dist/definitions/helpers/importCSVMapper/index.d.ts.map +1 -0
  121. package/dist/definitions/helpers/index.d.ts +23 -0
  122. package/dist/definitions/helpers/index.d.ts.map +1 -0
  123. package/dist/definitions/helpers/legacy-resource-transform/index.d.ts +9 -0
  124. package/dist/definitions/helpers/legacy-resource-transform/index.d.ts.map +1 -0
  125. package/dist/definitions/helpers/menu/create-resource-key.d.ts +3 -0
  126. package/dist/definitions/helpers/menu/create-resource-key.d.ts.map +1 -0
  127. package/dist/definitions/helpers/menu/create-tree.d.ts +13 -0
  128. package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -0
  129. package/dist/definitions/helpers/pick-resource/index.d.ts +8 -0
  130. package/dist/definitions/helpers/pick-resource/index.d.ts.map +1 -0
  131. package/dist/definitions/helpers/pickDataProvider/index.d.ts +6 -0
  132. package/dist/definitions/helpers/pickDataProvider/index.d.ts.map +1 -0
  133. package/dist/definitions/helpers/pickNotDeprecated/index.d.ts +2 -0
  134. package/dist/definitions/helpers/pickNotDeprecated/index.d.ts.map +1 -0
  135. package/dist/definitions/helpers/queryKeys/index.d.ts +4 -0
  136. package/dist/definitions/helpers/queryKeys/index.d.ts.map +1 -0
  137. package/dist/definitions/helpers/redirectPage/index.d.ts +9 -0
  138. package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -0
  139. package/dist/definitions/helpers/routeGenerator/index.d.ts +7 -0
  140. package/dist/definitions/helpers/routeGenerator/index.d.ts.map +1 -0
  141. package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts +2 -0
  142. package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts.map +1 -0
  143. package/dist/definitions/helpers/router/__tests__/compose-route.d.ts +2 -0
  144. package/dist/definitions/helpers/router/__tests__/compose-route.d.ts.map +1 -0
  145. package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts +2 -0
  146. package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts.map +1 -0
  147. package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts +2 -0
  148. package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts.map +1 -0
  149. package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts +2 -0
  150. package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts.map +1 -0
  151. package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts +2 -0
  152. package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts.map +1 -0
  153. package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts +2 -0
  154. package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts.map +1 -0
  155. package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts +2 -0
  156. package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts.map +1 -0
  157. package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts +2 -0
  158. package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts.map +1 -0
  159. package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts +2 -0
  160. package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts.map +1 -0
  161. package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts +2 -0
  162. package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts.map +1 -0
  163. package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts +2 -0
  164. package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts.map +1 -0
  165. package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts +2 -0
  166. package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts.map +1 -0
  167. package/dist/definitions/helpers/router/check-by-segments.d.ts +9 -0
  168. package/dist/definitions/helpers/router/check-by-segments.d.ts.map +1 -0
  169. package/dist/definitions/helpers/router/compose-route.d.ts +10 -0
  170. package/dist/definitions/helpers/router/compose-route.d.ts.map +1 -0
  171. package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +15 -0
  172. package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -0
  173. package/dist/definitions/helpers/router/get-default-action-path.d.ts +8 -0
  174. package/dist/definitions/helpers/router/get-default-action-path.d.ts.map +1 -0
  175. package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts +7 -0
  176. package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts.map +1 -0
  177. package/dist/definitions/helpers/router/get-parent-resource.d.ts +7 -0
  178. package/dist/definitions/helpers/router/get-parent-resource.d.ts.map +1 -0
  179. package/dist/definitions/helpers/router/index.d.ts +10 -0
  180. package/dist/definitions/helpers/router/index.d.ts.map +1 -0
  181. package/dist/definitions/helpers/router/is-parameter.d.ts +5 -0
  182. package/dist/definitions/helpers/router/is-parameter.d.ts.map +1 -0
  183. package/dist/definitions/helpers/router/is-segment-counts-same.d.ts +5 -0
  184. package/dist/definitions/helpers/router/is-segment-counts-same.d.ts.map +1 -0
  185. package/dist/definitions/helpers/router/match-resource-from-route.d.ts +14 -0
  186. package/dist/definitions/helpers/router/match-resource-from-route.d.ts.map +1 -0
  187. package/dist/definitions/helpers/router/pick-matched-route.d.ts +8 -0
  188. package/dist/definitions/helpers/router/pick-matched-route.d.ts.map +1 -0
  189. package/dist/definitions/helpers/router/pick-route-params.d.ts +6 -0
  190. package/dist/definitions/helpers/router/pick-route-params.d.ts.map +1 -0
  191. package/dist/definitions/helpers/router/prepare-route-params.d.ts +9 -0
  192. package/dist/definitions/helpers/router/prepare-route-params.d.ts.map +1 -0
  193. package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts +5 -0
  194. package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts.map +1 -0
  195. package/dist/definitions/helpers/router/split-to-segments.d.ts +5 -0
  196. package/dist/definitions/helpers/router/split-to-segments.d.ts.map +1 -0
  197. package/dist/definitions/helpers/sanitize-resource/index.d.ts +8 -0
  198. package/dist/definitions/helpers/sanitize-resource/index.d.ts.map +1 -0
  199. package/dist/definitions/helpers/sequentialPromises/index.d.ts +5 -0
  200. package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -0
  201. package/dist/definitions/helpers/treeView/createTreeView/index.d.ts +6 -0
  202. package/dist/definitions/helpers/treeView/createTreeView/index.d.ts.map +1 -0
  203. package/dist/definitions/helpers/treeView/index.d.ts +2 -0
  204. package/dist/definitions/helpers/treeView/index.d.ts.map +1 -0
  205. package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +34 -0
  206. package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts.map +1 -0
  207. package/dist/definitions/helpers/useInfinitePagination/index.d.ts +4 -0
  208. package/dist/definitions/helpers/useInfinitePagination/index.d.ts.map +1 -0
  209. package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts +6 -0
  210. package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts.map +1 -0
  211. package/dist/definitions/helpers/userFriendlySeconds/index.d.ts +2 -0
  212. package/dist/definitions/helpers/userFriendlySeconds/index.d.ts.map +1 -0
  213. package/dist/definitions/index.d.ts +4 -0
  214. package/dist/definitions/index.d.ts.map +1 -0
  215. package/dist/definitions/table/index.d.ts +34 -0
  216. package/dist/definitions/table/index.d.ts.map +1 -0
  217. package/dist/definitions/upload/file2Base64/index.d.ts +2 -0
  218. package/dist/definitions/upload/file2Base64/index.d.ts.map +1 -0
  219. package/dist/definitions/upload/index.d.ts +2 -0
  220. package/dist/definitions/upload/index.d.ts.map +1 -0
  221. package/dist/esm/index.js +56 -0
  222. package/dist/esm/index.js.map +1 -0
  223. package/dist/hooks/accessControl/index.d.ts +3 -0
  224. package/dist/hooks/accessControl/index.d.ts.map +1 -0
  225. package/dist/hooks/accessControl/useCan/index.d.ts +18 -0
  226. package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -0
  227. package/dist/hooks/accessControl/useCanWithoutCache.d.ts +3 -0
  228. package/dist/hooks/accessControl/useCanWithoutCache.d.ts.map +1 -0
  229. package/dist/hooks/auditLog/index.d.ts +3 -0
  230. package/dist/hooks/auditLog/index.d.ts.map +1 -0
  231. package/dist/hooks/auditLog/useLog/index.d.ts +26 -0
  232. package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -0
  233. package/dist/hooks/auditLog/useLogList/index.d.ts +16 -0
  234. package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -0
  235. package/dist/hooks/auth/index.d.ts +11 -0
  236. package/dist/hooks/auth/index.d.ts.map +1 -0
  237. package/dist/hooks/auth/useForgotPassword/index.d.ts +21 -0
  238. package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -0
  239. package/dist/hooks/auth/useGetIdentity/index.d.ts +21 -0
  240. package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -0
  241. package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts +2 -0
  242. package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts.map +1 -0
  243. package/dist/hooks/auth/useIsAuthenticated/index.d.ts +25 -0
  244. package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -0
  245. package/dist/hooks/auth/useIsExistAuthentication/index.d.ts +6 -0
  246. package/dist/hooks/auth/useIsExistAuthentication/index.d.ts.map +1 -0
  247. package/dist/hooks/auth/useLogin/index.d.ts +22 -0
  248. package/dist/hooks/auth/useLogin/index.d.ts.map +1 -0
  249. package/dist/hooks/auth/useLogout/index.d.ts +26 -0
  250. package/dist/hooks/auth/useLogout/index.d.ts.map +1 -0
  251. package/dist/hooks/auth/useOnError/index.d.ts +22 -0
  252. package/dist/hooks/auth/useOnError/index.d.ts.map +1 -0
  253. package/dist/hooks/auth/usePermissions/index.d.ts +21 -0
  254. package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -0
  255. package/dist/hooks/auth/useRegister/index.d.ts +21 -0
  256. package/dist/hooks/auth/useRegister/index.d.ts.map +1 -0
  257. package/dist/hooks/auth/useUpdatePassword/index.d.ts +21 -0
  258. package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -0
  259. package/dist/hooks/breadcrumb/index.d.ts +18 -0
  260. package/dist/hooks/breadcrumb/index.d.ts.map +1 -0
  261. package/dist/hooks/data/index.d.ts +15 -0
  262. package/dist/hooks/data/index.d.ts.map +1 -0
  263. package/dist/hooks/data/useApiUrl.d.ts +2 -0
  264. package/dist/hooks/data/useApiUrl.d.ts.map +1 -0
  265. package/dist/hooks/data/useCreate.d.ts +48 -0
  266. package/dist/hooks/data/useCreate.d.ts.map +1 -0
  267. package/dist/hooks/data/useCreateMany.d.ts +29 -0
  268. package/dist/hooks/data/useCreateMany.d.ts.map +1 -0
  269. package/dist/hooks/data/useCustom.d.ts +60 -0
  270. package/dist/hooks/data/useCustom.d.ts.map +1 -0
  271. package/dist/hooks/data/useCustomMutation.d.ts +40 -0
  272. package/dist/hooks/data/useCustomMutation.d.ts.map +1 -0
  273. package/dist/hooks/data/useDataProvider.d.ts +3 -0
  274. package/dist/hooks/data/useDataProvider.d.ts.map +1 -0
  275. package/dist/hooks/data/useDelete.d.ts +35 -0
  276. package/dist/hooks/data/useDelete.d.ts.map +1 -0
  277. package/dist/hooks/data/useDeleteMany.d.ts +35 -0
  278. package/dist/hooks/data/useDeleteMany.d.ts.map +1 -0
  279. package/dist/hooks/data/useInfiniteList.d.ts +67 -0
  280. package/dist/hooks/data/useInfiniteList.d.ts.map +1 -0
  281. package/dist/hooks/data/useList.d.ts +67 -0
  282. package/dist/hooks/data/useList.d.ts.map +1 -0
  283. package/dist/hooks/data/useMany.d.ts +44 -0
  284. package/dist/hooks/data/useMany.d.ts.map +1 -0
  285. package/dist/hooks/data/useOne.d.ts +44 -0
  286. package/dist/hooks/data/useOne.d.ts.map +1 -0
  287. package/dist/hooks/data/useUpdate.d.ts +64 -0
  288. package/dist/hooks/data/useUpdate.d.ts.map +1 -0
  289. package/dist/hooks/data/useUpdateMany.d.ts +40 -0
  290. package/dist/hooks/data/useUpdateMany.d.ts.map +1 -0
  291. package/dist/hooks/deepMemo/index.d.ts +7 -0
  292. package/dist/hooks/deepMemo/index.d.ts.map +1 -0
  293. package/dist/hooks/export/csvDownload.interface.d.ts +20 -0
  294. package/dist/hooks/export/csvDownload.interface.d.ts.map +1 -0
  295. package/dist/hooks/export/index.d.ts +75 -0
  296. package/dist/hooks/export/index.d.ts.map +1 -0
  297. package/dist/hooks/form/index.d.ts +2 -0
  298. package/dist/hooks/form/index.d.ts.map +1 -0
  299. package/dist/hooks/form/useForm.d.ts +103 -0
  300. package/dist/hooks/form/useForm.d.ts.map +1 -0
  301. package/dist/hooks/import/index.d.ts +100 -0
  302. package/dist/hooks/import/index.d.ts.map +1 -0
  303. package/dist/hooks/index.d.ts +25 -0
  304. package/dist/hooks/index.d.ts.map +1 -0
  305. package/dist/hooks/invalidate/index.d.ts +9 -0
  306. package/dist/hooks/invalidate/index.d.ts.map +1 -0
  307. package/dist/hooks/legacy-router/index.d.ts +2 -0
  308. package/dist/hooks/legacy-router/index.d.ts.map +1 -0
  309. package/dist/hooks/legacy-router/useRouterContext.d.ts +10 -0
  310. package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -0
  311. package/dist/hooks/live/index.d.ts +5 -0
  312. package/dist/hooks/live/index.d.ts.map +1 -0
  313. package/dist/hooks/live/useLiveMode/index.d.ts +3 -0
  314. package/dist/hooks/live/useLiveMode/index.d.ts.map +1 -0
  315. package/dist/hooks/live/usePublish/index.d.ts +3 -0
  316. package/dist/hooks/live/usePublish/index.d.ts.map +1 -0
  317. package/dist/hooks/live/useResourceSubscription/index.d.ts +34 -0
  318. package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -0
  319. package/dist/hooks/live/useSubscription/index.d.ts +46 -0
  320. package/dist/hooks/live/useSubscription/index.d.ts.map +1 -0
  321. package/dist/hooks/memoized/index.d.ts +6 -0
  322. package/dist/hooks/memoized/index.d.ts.map +1 -0
  323. package/dist/hooks/menu/index.d.ts +2 -0
  324. package/dist/hooks/menu/index.d.ts.map +1 -0
  325. package/dist/hooks/menu/useMenu.d.ts +28 -0
  326. package/dist/hooks/menu/useMenu.d.ts.map +1 -0
  327. package/dist/hooks/modal/index.d.ts +2 -0
  328. package/dist/hooks/modal/index.d.ts.map +1 -0
  329. package/dist/hooks/modal/useModal/index.d.ts +13 -0
  330. package/dist/hooks/modal/useModal/index.d.ts.map +1 -0
  331. package/dist/hooks/navigation/index.d.ts +27 -0
  332. package/dist/hooks/navigation/index.d.ts.map +1 -0
  333. package/dist/hooks/notification/index.d.ts +4 -0
  334. package/dist/hooks/notification/index.d.ts.map +1 -0
  335. package/dist/hooks/notification/useCancelNotification/index.d.ts +8 -0
  336. package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -0
  337. package/dist/hooks/notification/useHandleNotification/index.d.ts +3 -0
  338. package/dist/hooks/notification/useHandleNotification/index.d.ts.map +1 -0
  339. package/dist/hooks/notification/useNotification/index.d.ts +3 -0
  340. package/dist/hooks/notification/useNotification/index.d.ts.map +1 -0
  341. package/dist/hooks/redirection/index.d.ts +9 -0
  342. package/dist/hooks/redirection/index.d.ts.map +1 -0
  343. package/dist/hooks/refine/index.d.ts +6 -0
  344. package/dist/hooks/refine/index.d.ts.map +1 -0
  345. package/dist/hooks/refine/useMutationMode.d.ts +15 -0
  346. package/dist/hooks/refine/useMutationMode.d.ts.map +1 -0
  347. package/dist/hooks/refine/useRefineContext.d.ts +19 -0
  348. package/dist/hooks/refine/useRefineContext.d.ts.map +1 -0
  349. package/dist/hooks/refine/useSyncWithLocation.d.ts +13 -0
  350. package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -0
  351. package/dist/hooks/refine/useTitle.d.ts +10 -0
  352. package/dist/hooks/refine/useTitle.d.ts.map +1 -0
  353. package/dist/hooks/refine/useWarnAboutChange/index.d.ts +15 -0
  354. package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -0
  355. package/dist/hooks/resource/index.d.ts +3 -0
  356. package/dist/hooks/resource/index.d.ts.map +1 -0
  357. package/dist/hooks/resource/useResource/index.d.ts +45 -0
  358. package/dist/hooks/resource/useResource/index.d.ts.map +1 -0
  359. package/dist/hooks/resource/useResourceWithRoute/index.d.ts +8 -0
  360. package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -0
  361. package/dist/hooks/router/index.d.ts +8 -0
  362. package/dist/hooks/router/index.d.ts.map +1 -0
  363. package/dist/hooks/router/use-back/index.d.ts +2 -0
  364. package/dist/hooks/router/use-back/index.d.ts.map +1 -0
  365. package/dist/hooks/router/use-get-to-path/index.d.ts +18 -0
  366. package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -0
  367. package/dist/hooks/router/use-go/index.d.ts +2 -0
  368. package/dist/hooks/router/use-go/index.d.ts.map +1 -0
  369. package/dist/hooks/router/use-link/index.d.ts +6 -0
  370. package/dist/hooks/router/use-link/index.d.ts.map +1 -0
  371. package/dist/hooks/router/use-parse/index.d.ts +3 -0
  372. package/dist/hooks/router/use-parse/index.d.ts.map +1 -0
  373. package/dist/hooks/router/use-parsed/index.d.ts +2 -0
  374. package/dist/hooks/router/use-parsed/index.d.ts.map +1 -0
  375. package/dist/hooks/router/use-router-misuse-warning/index.d.ts +3 -0
  376. package/dist/hooks/router/use-router-misuse-warning/index.d.ts.map +1 -0
  377. package/dist/hooks/router/use-to-path/index.d.ts +17 -0
  378. package/dist/hooks/router/use-to-path/index.d.ts.map +1 -0
  379. package/dist/hooks/show/index.d.ts +2 -0
  380. package/dist/hooks/show/index.d.ts.map +1 -0
  381. package/dist/hooks/show/useShow.d.ts +47 -0
  382. package/dist/hooks/show/useShow.d.ts.map +1 -0
  383. package/dist/hooks/translate/index.d.ts +4 -0
  384. package/dist/hooks/translate/index.d.ts.map +1 -0
  385. package/dist/hooks/translate/useGetLocale.d.ts +9 -0
  386. package/dist/hooks/translate/useGetLocale.d.ts.map +1 -0
  387. package/dist/hooks/translate/useSetLocale.d.ts +8 -0
  388. package/dist/hooks/translate/useSetLocale.d.ts.map +1 -0
  389. package/dist/hooks/translate/useTranslate.d.ts +11 -0
  390. package/dist/hooks/translate/useTranslate.d.ts.map +1 -0
  391. package/dist/hooks/useSelect/index.d.ts +100 -0
  392. package/dist/hooks/useSelect/index.d.ts.map +1 -0
  393. package/dist/hooks/useTable/index.d.ts +153 -0
  394. package/dist/hooks/useTable/index.d.ts.map +1 -0
  395. package/dist/hooks/useTelemetryData/index.d.ts +3 -0
  396. package/dist/hooks/useTelemetryData/index.d.ts.map +1 -0
  397. package/dist/iife/index.js +56 -0
  398. package/dist/iife/index.js.map +1 -0
  399. package/dist/index.d.ts +9 -0
  400. package/dist/index.d.ts.map +1 -0
  401. package/dist/index.js +56 -0
  402. package/dist/index.js.map +1 -0
  403. package/dist/interfaces/HttpError.d.ts +5 -0
  404. package/dist/interfaces/HttpError.d.ts.map +1 -0
  405. package/dist/interfaces/actions.d.ts +10 -0
  406. package/dist/interfaces/actions.d.ts.map +1 -0
  407. package/dist/interfaces/auditLog/index.d.ts +2 -0
  408. package/dist/interfaces/auditLog/index.d.ts.map +1 -0
  409. package/dist/interfaces/auditLog/logData.d.ts +14 -0
  410. package/dist/interfaces/auditLog/logData.d.ts.map +1 -0
  411. package/dist/interfaces/auth.d.ts +158 -0
  412. package/dist/interfaces/auth.d.ts.map +1 -0
  413. package/dist/interfaces/bindings/access-control.d.ts +50 -0
  414. package/dist/interfaces/bindings/access-control.d.ts.map +1 -0
  415. package/dist/interfaces/bindings/auth.d.ts +66 -0
  416. package/dist/interfaces/bindings/auth.d.ts.map +1 -0
  417. package/dist/interfaces/bindings/data.d.ts +15 -0
  418. package/dist/interfaces/bindings/data.d.ts.map +1 -0
  419. package/dist/interfaces/bindings/i18n.d.ts +19 -0
  420. package/dist/interfaces/bindings/i18n.d.ts.map +1 -0
  421. package/dist/interfaces/bindings/index.d.ts +9 -0
  422. package/dist/interfaces/bindings/index.d.ts.map +1 -0
  423. package/dist/interfaces/bindings/live.d.ts +43 -0
  424. package/dist/interfaces/bindings/live.d.ts.map +1 -0
  425. package/dist/interfaces/bindings/notifications.d.ts +24 -0
  426. package/dist/interfaces/bindings/notifications.d.ts.map +1 -0
  427. package/dist/interfaces/bindings/resource.d.ts +150 -0
  428. package/dist/interfaces/bindings/resource.d.ts.map +1 -0
  429. package/dist/interfaces/bindings/router.d.ts +70 -0
  430. package/dist/interfaces/bindings/router.d.ts.map +1 -0
  431. package/dist/interfaces/customComponents.d.ts +26 -0
  432. package/dist/interfaces/customComponents.d.ts.map +1 -0
  433. package/dist/interfaces/form-url-params.d.ts +12 -0
  434. package/dist/interfaces/form-url-params.d.ts.map +1 -0
  435. package/dist/interfaces/index.d.ts +49 -0
  436. package/dist/interfaces/index.d.ts.map +1 -0
  437. package/dist/interfaces/live/LiveEvent.d.ts +11 -0
  438. package/dist/interfaces/live/LiveEvent.d.ts.map +1 -0
  439. package/dist/interfaces/live/LiveModeProps.d.ts +27 -0
  440. package/dist/interfaces/live/LiveModeProps.d.ts.map +1 -0
  441. package/dist/interfaces/live/index.d.ts +3 -0
  442. package/dist/interfaces/live/index.d.ts.map +1 -0
  443. package/dist/interfaces/mapDataFn.d.ts +4 -0
  444. package/dist/interfaces/mapDataFn.d.ts.map +1 -0
  445. package/dist/interfaces/metaData/fields.d.ts +3 -0
  446. package/dist/interfaces/metaData/fields.d.ts.map +1 -0
  447. package/dist/interfaces/metaData/index.d.ts +3 -0
  448. package/dist/interfaces/metaData/index.d.ts.map +1 -0
  449. package/dist/interfaces/metaData/metaDataQuery.d.ts +10 -0
  450. package/dist/interfaces/metaData/metaDataQuery.d.ts.map +1 -0
  451. package/dist/interfaces/metaData/metaQuery.d.ts +7 -0
  452. package/dist/interfaces/metaData/metaQuery.d.ts.map +1 -0
  453. package/dist/interfaces/metaData/nestedField.d.ts +8 -0
  454. package/dist/interfaces/metaData/nestedField.d.ts.map +1 -0
  455. package/dist/interfaces/metaData/queryBuilderOptions.d.ts +8 -0
  456. package/dist/interfaces/metaData/queryBuilderOptions.d.ts.map +1 -0
  457. package/dist/interfaces/metaData/variableOptions.d.ts +10 -0
  458. package/dist/interfaces/metaData/variableOptions.d.ts.map +1 -0
  459. package/dist/interfaces/mutationMode.d.ts +17 -0
  460. package/dist/interfaces/mutationMode.d.ts.map +1 -0
  461. package/dist/interfaces/notification.d.ts +11 -0
  462. package/dist/interfaces/notification.d.ts.map +1 -0
  463. package/dist/interfaces/prettify.d.ts +4 -0
  464. package/dist/interfaces/prettify.d.ts.map +1 -0
  465. package/dist/interfaces/queryKey.d.ts +17 -0
  466. package/dist/interfaces/queryKey.d.ts.map +1 -0
  467. package/dist/interfaces/resourceErrorRouterParams.d.ts +6 -0
  468. package/dist/interfaces/resourceErrorRouterParams.d.ts.map +1 -0
  469. package/dist/interfaces/resourceRouterParams.d.ts +7 -0
  470. package/dist/interfaces/resourceRouterParams.d.ts.map +1 -0
  471. package/dist/interfaces/successErrorNotification.d.ts +15 -0
  472. package/dist/interfaces/successErrorNotification.d.ts.map +1 -0
  473. package/dist/interfaces/telementry.d.ts +15 -0
  474. package/dist/interfaces/telementry.d.ts.map +1 -0
  475. package/package.json +67 -0
  476. package/refine.config.js +120 -0
  477. package/src/components/authenticated/index.tsx +202 -0
  478. package/src/components/canAccess/index.tsx +42 -0
  479. package/src/components/containers/index.ts +1 -0
  480. package/src/components/containers/refine/index.tsx +412 -0
  481. package/src/components/gh-banner/index.tsx +75 -0
  482. package/src/components/gh-banner/styles.ts +59 -0
  483. package/src/components/index.ts +9 -0
  484. package/src/components/layoutWrapper/defaultLayout/index.tsx +7 -0
  485. package/src/components/layoutWrapper/index.tsx +121 -0
  486. package/src/components/pages/auth/components/forgotPassword/index.tsx +122 -0
  487. package/src/components/pages/auth/components/index.ts +4 -0
  488. package/src/components/pages/auth/components/login/index.tsx +182 -0
  489. package/src/components/pages/auth/components/register/index.tsx +168 -0
  490. package/src/components/pages/auth/components/updatePassword/index.tsx +104 -0
  491. package/src/components/pages/auth/index.tsx +52 -0
  492. package/src/components/pages/error/index.tsx +64 -0
  493. package/src/components/pages/index.tsx +7 -0
  494. package/src/components/pages/login/index.tsx +91 -0
  495. package/src/components/pages/ready/index.tsx +39 -0
  496. package/src/components/pages/welcome/index.tsx +32 -0
  497. package/src/components/routeChangeHandler/index.tsx +16 -0
  498. package/src/components/telemetry/index.tsx +32 -0
  499. package/src/components/undoableQueue/index.tsx +68 -0
  500. package/src/contexts/accessControl/IAccessControlContext.ts +32 -0
  501. package/src/contexts/accessControl/index.tsx +22 -0
  502. package/src/contexts/auditLog/IAuditLogContext.ts +31 -0
  503. package/src/contexts/auditLog/index.tsx +17 -0
  504. package/src/contexts/auth/IAuthContext.ts +27 -0
  505. package/src/contexts/auth/index.tsx +203 -0
  506. package/src/contexts/data/IDataContext.ts +285 -0
  507. package/src/contexts/data/index.tsx +50 -0
  508. package/src/contexts/legacy-router/IRouterContext.ts +37 -0
  509. package/src/contexts/legacy-router/index.tsx +45 -0
  510. package/src/contexts/live/ILiveContext.ts +48 -0
  511. package/src/contexts/live/index.tsx +16 -0
  512. package/src/contexts/notification/INotificationContext.ts +15 -0
  513. package/src/contexts/notification/index.tsx +20 -0
  514. package/src/contexts/refine/IRefineContext.ts +116 -0
  515. package/src/contexts/refine/index.tsx +87 -0
  516. package/src/contexts/resource/IResourceContext.ts +68 -0
  517. package/src/contexts/resource/index.tsx +34 -0
  518. package/src/contexts/router/index.tsx +17 -0
  519. package/src/contexts/router-picker/index.tsx +21 -0
  520. package/src/contexts/translation/ITranslationContext.ts +19 -0
  521. package/src/contexts/translation/index.tsx +24 -0
  522. package/src/contexts/undoableQueue/IUndoableQueueContext.ts +6 -0
  523. package/src/contexts/undoableQueue/actionTypes.ts +5 -0
  524. package/src/contexts/undoableQueue/index.ts +5 -0
  525. package/src/contexts/undoableQueue/undoableQueueContext.tsx +83 -0
  526. package/src/contexts/unsavedWarn/IUnsavedWarnContext.ts +4 -0
  527. package/src/contexts/unsavedWarn/index.tsx +17 -0
  528. package/src/definitions/helpers/check-router-prop-misuse/index.ts +30 -0
  529. package/src/definitions/helpers/handleMultiple/index.ts +7 -0
  530. package/src/definitions/helpers/handlePaginationParams/index.ts +30 -0
  531. package/src/definitions/helpers/handleRefineOptions/index.ts +94 -0
  532. package/src/definitions/helpers/handleUseParams/index.tsx +9 -0
  533. package/src/definitions/helpers/hasPermission/index.ts +9 -0
  534. package/src/definitions/helpers/humanizeString/index.ts +14 -0
  535. package/src/definitions/helpers/importCSVMapper/index.ts +15 -0
  536. package/src/definitions/helpers/index.ts +25 -0
  537. package/src/definitions/helpers/legacy-resource-transform/index.ts +30 -0
  538. package/src/definitions/helpers/menu/create-resource-key.ts +33 -0
  539. package/src/definitions/helpers/menu/create-tree.ts +87 -0
  540. package/src/definitions/helpers/pick-resource/index.ts +40 -0
  541. package/src/definitions/helpers/pickDataProvider/index.ts +29 -0
  542. package/src/definitions/helpers/pickNotDeprecated/index.ts +9 -0
  543. package/src/definitions/helpers/queryKeys/index.ts +47 -0
  544. package/src/definitions/helpers/redirectPage/index.ts +28 -0
  545. package/src/definitions/helpers/routeGenerator/index.ts +29 -0
  546. package/src/definitions/helpers/router/__tests__/check-by-segments.ts +24 -0
  547. package/src/definitions/helpers/router/__tests__/compose-route.ts +42 -0
  548. package/src/definitions/helpers/router/__tests__/get-action-routes-from-resource.ts +169 -0
  549. package/src/definitions/helpers/router/__tests__/get-default-action-path.ts +47 -0
  550. package/src/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.ts +84 -0
  551. package/src/definitions/helpers/router/__tests__/get-parent-resource.ts +51 -0
  552. package/src/definitions/helpers/router/__tests__/is-segment-counts-same.ts +21 -0
  553. package/src/definitions/helpers/router/__tests__/match-resource-from-route.ts +59 -0
  554. package/src/definitions/helpers/router/__tests__/pick-matched-route.ts +89 -0
  555. package/src/definitions/helpers/router/__tests__/pick-route-params.ts +18 -0
  556. package/src/definitions/helpers/router/__tests__/prepare-route-params.ts +23 -0
  557. package/src/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.ts +15 -0
  558. package/src/definitions/helpers/router/__tests__/split-to-segments.ts +15 -0
  559. package/src/definitions/helpers/router/check-by-segments.ts +28 -0
  560. package/src/definitions/helpers/router/compose-route.ts +30 -0
  561. package/src/definitions/helpers/router/get-action-routes-from-resource.ts +71 -0
  562. package/src/definitions/helpers/router/get-default-action-path.ts +33 -0
  563. package/src/definitions/helpers/router/get-parent-prefix-for-resource.ts +39 -0
  564. package/src/definitions/helpers/router/get-parent-resource.ts +31 -0
  565. package/src/definitions/helpers/router/index.ts +10 -0
  566. package/src/definitions/helpers/router/is-parameter.ts +6 -0
  567. package/src/definitions/helpers/router/is-segment-counts-same.ts +11 -0
  568. package/src/definitions/helpers/router/match-resource-from-route.ts +37 -0
  569. package/src/definitions/helpers/router/pick-matched-route.ts +61 -0
  570. package/src/definitions/helpers/router/pick-route-params.ts +19 -0
  571. package/src/definitions/helpers/router/prepare-route-params.ts +32 -0
  572. package/src/definitions/helpers/router/remove-leading-trailing-slashes.ts +6 -0
  573. package/src/definitions/helpers/router/split-to-segments.ts +7 -0
  574. package/src/definitions/helpers/sanitize-resource/index.ts +31 -0
  575. package/src/definitions/helpers/sequentialPromises/index.ts +32 -0
  576. package/src/definitions/helpers/treeView/createTreeView/index.ts +44 -0
  577. package/src/definitions/helpers/treeView/index.ts +1 -0
  578. package/src/definitions/helpers/useActiveAuthProvider/index.ts +30 -0
  579. package/src/definitions/helpers/useInfinitePagination/index.ts +30 -0
  580. package/src/definitions/helpers/userFriendlyResourceName/index.ts +17 -0
  581. package/src/definitions/helpers/userFriendlySeconds/index.ts +3 -0
  582. package/src/definitions/index.ts +3 -0
  583. package/src/definitions/table/__snapshots__/index.spec.ts.snap +7 -0
  584. package/src/definitions/table/index.ts +192 -0
  585. package/src/definitions/upload/file2Base64/index.ts +21 -0
  586. package/src/definitions/upload/index.ts +1 -0
  587. package/src/hooks/accessControl/index.ts +2 -0
  588. package/src/hooks/accessControl/useCan/index.ts +69 -0
  589. package/src/hooks/accessControl/useCanWithoutCache.ts +10 -0
  590. package/src/hooks/auditLog/index.ts +2 -0
  591. package/src/hooks/auditLog/useLog/index.ts +139 -0
  592. package/src/hooks/auditLog/useLogList/index.ts +55 -0
  593. package/src/hooks/auth/index.ts +10 -0
  594. package/src/hooks/auth/useForgotPassword/index.ts +174 -0
  595. package/src/hooks/auth/useGetIdentity/index.ts +92 -0
  596. package/src/hooks/auth/useInvaliteAuthStore/index.ts +13 -0
  597. package/src/hooks/auth/useIsAuthenticated/index.ts +80 -0
  598. package/src/hooks/auth/useIsExistAuthentication/index.ts +12 -0
  599. package/src/hooks/auth/useLogin/index.ts +220 -0
  600. package/src/hooks/auth/useLogout/index.ts +199 -0
  601. package/src/hooks/auth/useOnError/index.ts +110 -0
  602. package/src/hooks/auth/usePermissions/index.ts +87 -0
  603. package/src/hooks/auth/useRegister/index.ts +186 -0
  604. package/src/hooks/auth/useUpdatePassword/index.ts +215 -0
  605. package/src/hooks/breadcrumb/index.ts +126 -0
  606. package/src/hooks/data/index.ts +18 -0
  607. package/src/hooks/data/useApiUrl.ts +9 -0
  608. package/src/hooks/data/useCreate.ts +258 -0
  609. package/src/hooks/data/useCreateMany.ts +239 -0
  610. package/src/hooks/data/useCustom.ts +177 -0
  611. package/src/hooks/data/useCustomMutation.ts +188 -0
  612. package/src/hooks/data/useDataProvider.tsx +39 -0
  613. package/src/hooks/data/useDelete.ts +415 -0
  614. package/src/hooks/data/useDeleteMany.ts +442 -0
  615. package/src/hooks/data/useInfiniteList.ts +290 -0
  616. package/src/hooks/data/useList.ts +300 -0
  617. package/src/hooks/data/useMany.ts +202 -0
  618. package/src/hooks/data/useOne.ts +205 -0
  619. package/src/hooks/data/useUpdate.ts +488 -0
  620. package/src/hooks/data/useUpdateMany.ts +496 -0
  621. package/src/hooks/deepMemo/index.tsx +17 -0
  622. package/src/hooks/export/csvDownload.interface.ts +27 -0
  623. package/src/hooks/export/index.ts +189 -0
  624. package/src/hooks/form/index.ts +1 -0
  625. package/src/hooks/form/useForm.ts +524 -0
  626. package/src/hooks/import/index.tsx +336 -0
  627. package/src/hooks/index.ts +24 -0
  628. package/src/hooks/invalidate/index.tsx +62 -0
  629. package/src/hooks/legacy-router/index.ts +1 -0
  630. package/src/hooks/legacy-router/useRouterContext.ts +18 -0
  631. package/src/hooks/live/index.ts +4 -0
  632. package/src/hooks/live/useLiveMode/index.ts +12 -0
  633. package/src/hooks/live/usePublish/index.ts +10 -0
  634. package/src/hooks/live/useResourceSubscription/index.ts +99 -0
  635. package/src/hooks/live/useSubscription/index.ts +85 -0
  636. package/src/hooks/memoized/index.tsx +16 -0
  637. package/src/hooks/menu/index.ts +1 -0
  638. package/src/hooks/menu/useMenu.tsx +153 -0
  639. package/src/hooks/modal/index.ts +1 -0
  640. package/src/hooks/modal/useModal/index.tsx +29 -0
  641. package/src/hooks/navigation/index.ts +385 -0
  642. package/src/hooks/notification/index.ts +3 -0
  643. package/src/hooks/notification/useCancelNotification/index.tsx +16 -0
  644. package/src/hooks/notification/useHandleNotification/index.ts +26 -0
  645. package/src/hooks/notification/useNotification/index.ts +10 -0
  646. package/src/hooks/redirection/index.ts +56 -0
  647. package/src/hooks/refine/index.ts +5 -0
  648. package/src/hooks/refine/useMutationMode.ts +22 -0
  649. package/src/hooks/refine/useRefineContext.ts +41 -0
  650. package/src/hooks/refine/useSyncWithLocation.ts +20 -0
  651. package/src/hooks/refine/useTitle.tsx +15 -0
  652. package/src/hooks/refine/useWarnAboutChange/index.ts +32 -0
  653. package/src/hooks/resource/index.ts +2 -0
  654. package/src/hooks/resource/useResource/index.ts +151 -0
  655. package/src/hooks/resource/useResourceWithRoute/index.ts +27 -0
  656. package/src/hooks/router/index.ts +7 -0
  657. package/src/hooks/router/use-back/index.tsx +15 -0
  658. package/src/hooks/router/use-get-to-path/index.ts +60 -0
  659. package/src/hooks/router/use-go/index.tsx +15 -0
  660. package/src/hooks/router/use-link/index.tsx +17 -0
  661. package/src/hooks/router/use-parse/index.tsx +21 -0
  662. package/src/hooks/router/use-parsed/index.tsx +10 -0
  663. package/src/hooks/router/use-router-misuse-warning/index.ts +18 -0
  664. package/src/hooks/router/use-to-path/index.ts +27 -0
  665. package/src/hooks/show/index.ts +1 -0
  666. package/src/hooks/show/useShow.ts +183 -0
  667. package/src/hooks/translate/index.ts +3 -0
  668. package/src/hooks/translate/useGetLocale.ts +16 -0
  669. package/src/hooks/translate/useSetLocale.ts +14 -0
  670. package/src/hooks/translate/useTranslate.ts +40 -0
  671. package/src/hooks/useSelect/index.ts +280 -0
  672. package/src/hooks/useTable/index.ts +544 -0
  673. package/src/hooks/useTelemetryData/index.ts +73 -0
  674. package/src/index.tsx +120 -0
  675. package/src/interfaces/HttpError.ts +4 -0
  676. package/src/interfaces/actions.ts +16 -0
  677. package/src/interfaces/auditLog/index.ts +1 -0
  678. package/src/interfaces/auditLog/logData.ts +15 -0
  679. package/src/interfaces/auth.tsx +192 -0
  680. package/src/interfaces/bindings/access-control.ts +53 -0
  681. package/src/interfaces/bindings/auth.ts +72 -0
  682. package/src/interfaces/bindings/data.ts +18 -0
  683. package/src/interfaces/bindings/i18n.ts +29 -0
  684. package/src/interfaces/bindings/index.ts +24 -0
  685. package/src/interfaces/bindings/live.ts +56 -0
  686. package/src/interfaces/bindings/notifications.ts +25 -0
  687. package/src/interfaces/bindings/resource.ts +178 -0
  688. package/src/interfaces/bindings/router.ts +73 -0
  689. package/src/interfaces/customComponents.ts +28 -0
  690. package/src/interfaces/form-url-params.ts +8 -0
  691. package/src/interfaces/index.ts +86 -0
  692. package/src/interfaces/live/LiveEvent.ts +11 -0
  693. package/src/interfaces/live/LiveModeProps.ts +28 -0
  694. package/src/interfaces/live/index.ts +2 -0
  695. package/src/interfaces/mapDataFn.ts +3 -0
  696. package/src/interfaces/metaData/fields.ts +3 -0
  697. package/src/interfaces/metaData/index.ts +2 -0
  698. package/src/interfaces/metaData/metaDataQuery.ts +10 -0
  699. package/src/interfaces/metaData/metaQuery.ts +7 -0
  700. package/src/interfaces/metaData/nestedField.ts +8 -0
  701. package/src/interfaces/metaData/queryBuilderOptions.ts +8 -0
  702. package/src/interfaces/metaData/variableOptions.ts +9 -0
  703. package/src/interfaces/mutationMode.ts +29 -0
  704. package/src/interfaces/notification.ts +10 -0
  705. package/src/interfaces/prettify.ts +3 -0
  706. package/src/interfaces/queryKey.ts +23 -0
  707. package/src/interfaces/resourceErrorRouterParams.ts +6 -0
  708. package/src/interfaces/resourceRouterParams.ts +7 -0
  709. package/src/interfaces/successErrorNotification.ts +33 -0
  710. package/src/interfaces/telementry.ts +14 -0
  711. package/tsconfig.json +28 -0
@@ -0,0 +1,3 @@
1
+ export * from "./useCan";
2
+ export * from "./useCanWithoutCache";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/accessControl/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UseQueryResult, UseQueryOptions } from "@tanstack/react-query";
2
+ import { CanParams, CanReturnType } from "../../../interfaces";
3
+ export declare type UseCanProps = CanParams & {
4
+ /**
5
+ * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
6
+ */
7
+ queryOptions?: UseQueryOptions<CanReturnType>;
8
+ };
9
+ /**
10
+ * `useCan` uses the `can` as the query function for `react-query`'s {@link https://react-query.tanstack.com/guides/queries `useQuery`}. It takes the parameters that `can` takes. It can also be configured with `queryOptions` for `useQuery`. Returns the result of `useQuery`.
11
+ * @see {@link https://refine.dev/docs/core/hooks/accessControl/useCan} for more details.
12
+ *
13
+ * @typeParam CanParams {@link https://refine.dev/docs/core/interfaceReferences#canparams}
14
+ * @typeParam CanReturnType {@link https://refine.dev/docs/core/interfaceReferences#canreturntype}
15
+ *
16
+ */
17
+ export declare const useCan: ({ action, resource, params, queryOptions, }: UseCanProps) => UseQueryResult<CanReturnType>;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/accessControl/useCan/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,cAAc,EACd,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAG/D,oBAAY,WAAW,GAAG,SAAS,GAAG;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;CACjD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,gDAKhB,WAAW,KAAG,eAAe,aAAa,CAqC5C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IAccessControlContext } from "../../interfaces";
2
+ export declare const useCanWithoutCache: () => IAccessControlContext;
3
+ //# sourceMappingURL=useCanWithoutCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCanWithoutCache.d.ts","sourceRoot":"","sources":["../../../src/hooks/accessControl/useCanWithoutCache.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,QAAO,qBAIrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./useLog";
2
+ export * from "./useLogList";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/auditLog/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { BaseKey, LogParams } from "../../../interfaces";
3
+ declare type LogRenameData = {
4
+ resource?: string;
5
+ } | undefined;
6
+ export declare type UseLogReturnType<TLogData, TLogRenameData> = {
7
+ log: UseMutationResult<TLogData, Error, LogParams>;
8
+ rename: UseMutationResult<TLogRenameData, Error, {
9
+ id: BaseKey;
10
+ name: string;
11
+ }>;
12
+ };
13
+ export declare type UseLogMutationProps<TLogData, TLogRenameData extends LogRenameData = LogRenameData> = {
14
+ logMutationOptions?: Omit<UseMutationOptions<TLogData, Error, LogParams, unknown>, "mutationFn">;
15
+ renameMutationOptions?: Omit<UseMutationOptions<TLogRenameData, Error, {
16
+ id: BaseKey;
17
+ name: string;
18
+ }, unknown>, "mutationFn" | "onSuccess">;
19
+ };
20
+ /**
21
+ * useLog is used to `create` a new and `rename` the existing audit log.
22
+ * @see {@link https://refine.dev/docs/core/hooks/audit-log/useLog} for more details.
23
+ */
24
+ export declare const useLog: <TLogData, TLogRenameData extends LogRenameData = LogRenameData>({ logMutationOptions, renameMutationOptions, }?: UseLogMutationProps<TLogData, TLogRenameData>) => UseLogReturnType<TLogData, TLogRenameData>;
25
+ export {};
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auditLog/useLog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EAEpB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AASzD,aAAK,aAAa,GACZ;IACI,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,GACD,SAAS,CAAC;AAEhB,oBAAY,gBAAgB,CAAC,QAAQ,EAAE,cAAc,IAAI;IACrD,GAAG,EAAE,iBAAiB,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IACnD,MAAM,EAAE,iBAAiB,CACrB,cAAc,EACd,KAAK,EACL;QACI,EAAE,EAAE,OAAO,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KAChB,CACJ,CAAC;CACL,CAAC;AAEF,oBAAY,mBAAmB,CAC3B,QAAQ,EACR,cAAc,SAAS,aAAa,GAAG,aAAa,IACpD;IACA,kBAAkB,CAAC,EAAE,IAAI,CACrB,kBAAkB,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EACvD,YAAY,CACf,CAAC;IACF,qBAAqB,CAAC,EAAE,IAAI,CACxB,kBAAkB,CACd,cAAc,EACd,KAAK,EACL;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAC7B,OAAO,CACV,EACD,YAAY,GAAG,WAAW,CAC7B,CAAC;CACL,CAAC;AAEF;;;GAGG;AAEH,eAAO,MAAM,MAAM,gNA4ElB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { UseQueryResult, UseQueryOptions } from "@tanstack/react-query";
2
+ import { HttpError, MetaDataQuery } from "../../../interfaces";
3
+ export declare type UseLogProps<TData, TError> = {
4
+ resource: string;
5
+ action?: string;
6
+ meta?: Record<number | string, any>;
7
+ author?: Record<number | string, any>;
8
+ queryOptions?: UseQueryOptions<TData, TError>;
9
+ metaData?: MetaDataQuery;
10
+ };
11
+ /**
12
+ * useLogList is used to get and filter audit logs.
13
+ * @see {@link https://refine.dev/docs/core/hooks/audit-log/useLogList} for more details.
14
+ */
15
+ export declare const useLogList: <TData = any, TError extends HttpError = HttpError>({ resource, action, meta, author, metaData, queryOptions, }: UseLogProps<TData, TError>) => UseQueryResult<TData, unknown>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auditLog/useLogList/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,cAAc,EACd,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE/D,oBAAY,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,gLA8BtB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { usePermissions } from "./usePermissions";
2
+ export { useGetIdentity } from "./useGetIdentity";
3
+ export { useLogout } from "./useLogout";
4
+ export { useLogin } from "./useLogin";
5
+ export { useRegister } from "./useRegister";
6
+ export { useForgotPassword } from "./useForgotPassword";
7
+ export { useUpdatePassword } from "./useUpdatePassword";
8
+ export { useAuthenticated, useIsAuthenticated } from "./useIsAuthenticated";
9
+ export { useCheckError, useOnError } from "./useOnError";
10
+ export { useIsExistAuthentication } from "./useIsExistAuthentication";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { AuthActionResponse, TForgotPasswordData } from "../../../interfaces";
3
+ export declare type UseForgotPasswordLegacyProps<TVariables> = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ mutationOptions?: Omit<UseMutationOptions<TForgotPasswordData, Error, TVariables, unknown>, "mutationFn" | "onError" | "onSuccess">;
6
+ };
7
+ export declare type UseForgotPasswordProps<TVariables> = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error, TVariables, unknown>, "mutationFn">;
10
+ };
11
+ export declare type UseForgotPasswordCombinedProps<TVariables> = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse | TForgotPasswordData, Error, TVariables, unknown>, "mutationFn">;
14
+ };
15
+ export declare type UseForgotPasswordLegacyReturnType<TVariables> = UseMutationResult<TForgotPasswordData, Error, TVariables, unknown>;
16
+ export declare type UseForgotPasswordReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error, TVariables, unknown>;
17
+ export declare type UseForgotPasswordCombinedReturnType<TVariables> = UseMutationResult<AuthActionResponse | TForgotPasswordData, Error, TVariables, unknown>;
18
+ export declare function useForgotPassword<TVariables = {}>(props: UseForgotPasswordLegacyProps<TVariables>): UseForgotPasswordLegacyReturnType<TVariables>;
19
+ export declare function useForgotPassword<TVariables = {}>(props?: UseForgotPasswordProps<TVariables>): UseForgotPasswordReturnType<TVariables>;
20
+ export declare function useForgotPassword<TVariables = {}>(props?: UseForgotPasswordCombinedProps<TVariables>): UseForgotPasswordCombinedReturnType<TVariables>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useForgotPassword/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACH,kBAAkB,EAElB,mBAAmB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,oBAAY,4BAA4B,CAAC,UAAU,IAAI;IACnD,8BAA8B,EAAE,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,mBAAmB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EACnE,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF,oBAAY,sBAAsB,CAAC,UAAU,IAAI;IAC7C,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAClE,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,8BAA8B,CAAC,UAAU,IAAI;IACrD,8BAA8B,EAAE,OAAO,CAAC;IACxC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,GAAG,mBAAmB,EACxC,KAAK,EACL,UAAU,EACV,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,iCAAiC,CAAC,UAAU,IAAI,iBAAiB,CACzE,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,2BAA2B,CAAC,UAAU,IAAI,iBAAiB,CACnE,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,mCAAmC,CAAC,UAAU,IAAI,iBAAiB,CAC3E,kBAAkB,GAAG,mBAAmB,EACxC,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,UAAU,GAAG,EAAE,EAC7C,KAAK,EAAE,4BAA4B,CAAC,UAAU,CAAC,GAChD,iCAAiC,CAAC,UAAU,CAAC,CAAC;AAEjD,wBAAgB,iBAAiB,CAAC,UAAU,GAAG,EAAE,EAC7C,KAAK,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAC3C,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAE3C,wBAAgB,iBAAiB,CAAC,UAAU,GAAG,EAAE,EAC7C,KAAK,CAAC,EAAE,8BAA8B,CAAC,UAAU,CAAC,GACnD,mCAAmC,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { UseQueryResult, UseQueryOptions } from "@tanstack/react-query";
2
+ import { IdentityResponse } from "../../../interfaces";
3
+ export declare type UseGetIdentityLegacyProps<TData> = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ queryOptions?: UseQueryOptions<TData>;
6
+ };
7
+ export declare type UseGetIdentityProps<TData = IdentityResponse> = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ queryOptions?: UseQueryOptions<TData>;
10
+ };
11
+ export declare type UseGetIdentityCombinedProps<TData = any> = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ queryOptions?: UseQueryOptions<TData> | UseQueryOptions<IdentityResponse>;
14
+ };
15
+ export declare type UseGetIdentityLegacyReturnType<TData> = UseQueryResult<TData, unknown>;
16
+ export declare type UseGetIdentityReturnType<TData = IdentityResponse> = UseQueryResult<TData, unknown>;
17
+ export declare type UsePermissionsCombinedReturnType<TData = any> = UseQueryResult<TData, unknown> | UseQueryResult<IdentityResponse, unknown>;
18
+ export declare function useGetIdentity<TData = any>(props: UseGetIdentityLegacyProps<TData>): UseGetIdentityLegacyReturnType<TData>;
19
+ export declare function useGetIdentity<TData = IdentityResponse>(props?: UseGetIdentityProps<TData>): UseGetIdentityReturnType<TData>;
20
+ export declare function useGetIdentity<TData = any>(props?: UseGetIdentityCombinedProps<TData>): UsePermissionsCombinedReturnType<TData>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useGetIdentity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,cAAc,EACd,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,oBAAY,yBAAyB,CAAC,KAAK,IAAI;IAC3C,8BAA8B,EAAE,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACzC,CAAC;AAEF,oBAAY,mBAAmB,CAAC,KAAK,GAAG,gBAAgB,IAAI;IACxD,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,YAAY,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACzC,CAAC;AAEF,oBAAY,2BAA2B,CAAC,KAAK,GAAG,GAAG,IAAI;IACnD,8BAA8B,EAAE,OAAO,CAAC;IACxC,YAAY,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;CAC7E,CAAC;AAEF,oBAAY,8BAA8B,CAAC,KAAK,IAAI,cAAc,CAC9D,KAAK,EACL,OAAO,CACV,CAAC;AAEF,oBAAY,wBAAwB,CAAC,KAAK,GAAG,gBAAgB,IAAI,cAAc,CAC3E,KAAK,EACL,OAAO,CACV,CAAC;AAEF,oBAAY,gCAAgC,CAAC,KAAK,GAAG,GAAG,IAClD,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,GAC9B,cAAc,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAEhD,wBAAgB,cAAc,CAAC,KAAK,GAAG,GAAG,EACtC,KAAK,EAAE,yBAAyB,CAAC,KAAK,CAAC,GACxC,8BAA8B,CAAC,KAAK,CAAC,CAAC;AAEzC,wBAAgB,cAAc,CAAC,KAAK,GAAG,gBAAgB,EACnD,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,GACnC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEnC,wBAAgB,cAAc,CAAC,KAAK,GAAG,GAAG,EACtC,KAAK,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAC3C,gCAAgC,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useInvalidateAuthStore: () => () => void;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useInvaliteAuthStore/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,kBAUlC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { UseQueryResult } from "@tanstack/react-query";
2
+ import { CheckResponse } from "../../../interfaces";
3
+ export declare type UseIsAuthenticatedLegacyProps = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ params?: any;
6
+ };
7
+ export declare type UseIsAuthenticatedProps = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ params?: any;
10
+ };
11
+ export declare type UseIsAuthenticatedCombinedProps = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ params?: any;
14
+ };
15
+ export declare type UseIsAuthenticatedLegacyReturnType = UseQueryResult<any, any>;
16
+ export declare type UseIsAuthenticatedReturnType = UseQueryResult<CheckResponse, any>;
17
+ export declare type UseIsAuthenticatedCombinedReturnType = UseQueryResult<CheckResponse | any, any>;
18
+ export declare function useIsAuthenticated(props: UseIsAuthenticatedLegacyProps): UseIsAuthenticatedLegacyReturnType;
19
+ export declare function useIsAuthenticated(props?: UseIsAuthenticatedProps): UseIsAuthenticatedReturnType;
20
+ export declare function useIsAuthenticated(props?: UseIsAuthenticatedCombinedProps): UseIsAuthenticatedCombinedReturnType;
21
+ /**
22
+ * @deprecated `useAuthenticated` is deprecated with refine@4, use `useIsAuthenticated` instead, however, we still support `useAuthenticated` for backward compatibility.
23
+ */
24
+ export declare const useAuthenticated: typeof useIsAuthenticated;
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useIsAuthenticated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,oBAAY,6BAA6B,GAAG;IACxC,8BAA8B,EAAE,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IAClC,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,MAAM,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,oBAAY,+BAA+B,GAAG;IAC1C,8BAA8B,EAAE,OAAO,CAAC;IACxC,MAAM,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,oBAAY,kCAAkC,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE1E,oBAAY,4BAA4B,GAAG,cAAc,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;AAE9E,oBAAY,oCAAoC,GAAG,cAAc,CAC7D,aAAa,GAAG,GAAG,EACnB,GAAG,CACN,CAAC;AAEF,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,6BAA6B,GACrC,kCAAkC,CAAC;AAEtC,wBAAgB,kBAAkB,CAC9B,KAAK,CAAC,EAAE,uBAAuB,GAChC,4BAA4B,CAAC;AAEhC,wBAAgB,kBAAkB,CAC9B,KAAK,CAAC,EAAE,+BAA+B,GACxC,oCAAoC,CAAC;AAqCxC;;GAEG;AACH,eAAO,MAAM,gBAAgB,2BAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A hook that the UI uses
3
+ * @internal
4
+ */
5
+ export declare const useIsExistAuthentication: () => boolean;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useIsExistAuthentication/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,QAAO,OAK3C,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { TLoginData } from "../../../interfaces";
3
+ import { AuthActionResponse } from "src/interfaces/bindings/auth";
4
+ export declare type UseLoginLegacyProps<TVariables> = {
5
+ v3LegacyAuthProviderCompatible: true;
6
+ mutationOptions?: Omit<UseMutationOptions<TLoginData, Error, TVariables, unknown>, "mutationFn" | "onError" | "onSuccess">;
7
+ };
8
+ export declare type UseLoginProps<TVariables> = {
9
+ v3LegacyAuthProviderCompatible?: false;
10
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error, TVariables, unknown>, "mutationFn">;
11
+ };
12
+ export declare type UseLoginCombinedProps<TVariables> = {
13
+ v3LegacyAuthProviderCompatible: boolean;
14
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse | TLoginData, Error, TVariables, unknown>, "mutationFn">;
15
+ };
16
+ export declare type UseLoginLegacyReturnType<TVariables> = UseMutationResult<TLoginData, Error, TVariables, unknown>;
17
+ export declare type UseLoginReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error, TVariables, unknown>;
18
+ export declare type UseLoginCombinedReturnType<TVariables> = UseMutationResult<AuthActionResponse | TLoginData, Error, TVariables, unknown>;
19
+ export declare function useLogin<TVariables = {}>(props: UseLoginLegacyProps<TVariables>): UseLoginLegacyReturnType<TVariables>;
20
+ export declare function useLogin<TVariables = {}>(props?: UseLoginProps<TVariables>): UseLoginReturnType<TVariables>;
21
+ export declare function useLogin<TVariables = {}>(props?: UseLoginCombinedProps<TVariables>): UseLoginCombinedReturnType<TVariables>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useLogin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,EAA0B,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAIlE,oBAAY,mBAAmB,CAAC,UAAU,IAAI;IAC1C,8BAA8B,EAAE,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAC1D,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF,oBAAY,aAAa,CAAC,UAAU,IAAI;IACpC,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAClE,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,qBAAqB,CAAC,UAAU,IAAI;IAC5C,8BAA8B,EAAE,OAAO,CAAC;IACxC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,GAAG,UAAU,EAC/B,KAAK,EACL,UAAU,EACV,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,wBAAwB,CAAC,UAAU,IAAI,iBAAiB,CAChE,UAAU,EACV,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,kBAAkB,CAAC,UAAU,IAAI,iBAAiB,CAC1D,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,0BAA0B,CAAC,UAAU,IAAI,iBAAiB,CAClE,kBAAkB,GAAG,UAAU,EAC/B,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,wBAAgB,QAAQ,CAAC,UAAU,GAAG,EAAE,EACpC,KAAK,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACvC,wBAAwB,CAAC,UAAU,CAAC,CAAC;AAExC,wBAAgB,QAAQ,CAAC,UAAU,GAAG,EAAE,EACpC,KAAK,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,GAClC,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAElC,wBAAgB,QAAQ,CAAC,UAAU,GAAG,EAAE,EACpC,KAAK,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,GAC1C,0BAA0B,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { TLogoutData } from "../../../interfaces";
3
+ import { AuthActionResponse } from "src/interfaces/bindings/auth";
4
+ declare type Variables = {
5
+ redirectPath?: string | false;
6
+ };
7
+ export declare type UseLogoutLegacyProps<TVariables> = {
8
+ v3LegacyAuthProviderCompatible: true;
9
+ mutationOptions?: Omit<UseMutationOptions<TLogoutData, Error, (TVariables & Variables) | void, unknown>, "mutationFn" | "onError" | "onSuccess">;
10
+ };
11
+ export declare type UseLogoutProps<TVariables> = {
12
+ v3LegacyAuthProviderCompatible?: false;
13
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error, (TVariables & Variables) | void, unknown>, "mutationFn">;
14
+ };
15
+ export declare type UseLogoutCombinedProps<TVariables> = {
16
+ v3LegacyAuthProviderCompatible: boolean;
17
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse | TLogoutData, Error, (TVariables & Variables) | void, unknown>, "mutationFn">;
18
+ };
19
+ export declare type UseLogoutLegacyReturnType<TVariables> = UseMutationResult<TLogoutData, Error, (TVariables & Variables) | void, unknown>;
20
+ export declare type UseLogoutReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error, (TVariables & Variables) | void, unknown>;
21
+ export declare type UseLogoutCombinedReturnType<TVariables> = UseMutationResult<AuthActionResponse | TLogoutData, Error, (TVariables & Variables) | void, unknown>;
22
+ export declare function useLogout<TVariables = {}>(props: UseLogoutLegacyProps<TVariables>): UseLogoutLegacyReturnType<TVariables>;
23
+ export declare function useLogout<TVariables = {}>(props?: UseLogoutProps<TVariables>): UseLogoutReturnType<TVariables>;
24
+ export declare function useLogout<TVariables = {}>(props?: UseLogoutCombinedProps<TVariables>): UseLogoutCombinedReturnType<TVariables>;
25
+ export {};
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useLogout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAA0B,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGlE,aAAK,SAAS,GAAG;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CACjC,CAAC;AAEF,oBAAY,oBAAoB,CAAC,UAAU,IAAI;IAC3C,8BAA8B,EAAE,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,WAAW,EACX,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF,oBAAY,cAAc,CAAC,UAAU,IAAI;IACrC,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,EAClB,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,sBAAsB,CAAC,UAAU,IAAI;IAC7C,8BAA8B,EAAE,OAAO,CAAC;IACxC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,GAAG,WAAW,EAChC,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,yBAAyB,CAAC,UAAU,IAAI,iBAAiB,CACjE,WAAW,EACX,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,CAAC;AAEF,oBAAY,mBAAmB,CAAC,UAAU,IAAI,iBAAiB,CAC3D,kBAAkB,EAClB,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,CAAC;AAEF,oBAAY,2BAA2B,CAAC,UAAU,IAAI,iBAAiB,CACnE,kBAAkB,GAAG,WAAW,EAChC,KAAK,EACL,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,EAC/B,OAAO,CACV,CAAC;AAEF,wBAAgB,SAAS,CAAC,UAAU,GAAG,EAAE,EACrC,KAAK,EAAE,oBAAoB,CAAC,UAAU,CAAC,GACxC,yBAAyB,CAAC,UAAU,CAAC,CAAC;AAEzC,wBAAgB,SAAS,CAAC,UAAU,GAAG,EAAE,EACrC,KAAK,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,mBAAmB,CAAC,UAAU,CAAC,CAAC;AAEnC,wBAAgB,SAAS,CAAC,UAAU,GAAG,EAAE,EACrC,KAAK,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAC3C,2BAA2B,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { UseMutationResult } from "@tanstack/react-query";
2
+ import { OnErrorResponse } from "../../../interfaces";
3
+ export declare type UseOnErrorLegacyProps = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ };
6
+ export declare type UseOnErrorProps = {
7
+ v3LegacyAuthProviderCompatible?: false;
8
+ };
9
+ export declare type UseOnErrorCombinedProps = {
10
+ v3LegacyAuthProviderCompatible: boolean;
11
+ };
12
+ export declare type UseOnErrorLegacyReturnType = UseMutationResult<void, string | undefined, any, unknown>;
13
+ export declare type UseOnErrorReturnType = UseMutationResult<OnErrorResponse, unknown, unknown, unknown>;
14
+ export declare type UseOnErrorCombinedReturnType = UseMutationResult<OnErrorResponse | void, unknown, unknown, unknown>;
15
+ export declare function useOnError(props: UseOnErrorLegacyProps): UseOnErrorLegacyReturnType;
16
+ export declare function useOnError(props?: UseOnErrorProps): UseOnErrorReturnType;
17
+ export declare function useOnError(props?: UseOnErrorCombinedProps): UseOnErrorCombinedReturnType;
18
+ /**
19
+ * @deprecated `useCheckError` is deprecated with refine@4, use `useOnError` instead, however, we still support `useCheckError` for backward compatibility.
20
+ */
21
+ export declare const useCheckError: typeof useOnError;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useOnError/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,oBAAY,qBAAqB,GAAG;IAChC,8BAA8B,EAAE,IAAI,CAAC;CACxC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC1B,8BAA8B,CAAC,EAAE,KAAK,CAAC;CAC1C,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IAClC,8BAA8B,EAAE,OAAO,CAAC;CAC3C,CAAC;AAEF,oBAAY,0BAA0B,GAAG,iBAAiB,CACtD,IAAI,EACJ,MAAM,GAAG,SAAS,EAClB,GAAG,EACH,OAAO,CACV,CAAC;AAEF,oBAAY,oBAAoB,GAAG,iBAAiB,CAChD,eAAe,EACf,OAAO,EACP,OAAO,EACP,OAAO,CACV,CAAC;AACF,oBAAY,4BAA4B,GAAG,iBAAiB,CACxD,eAAe,GAAG,IAAI,EACtB,OAAO,EACP,OAAO,EACP,OAAO,CACV,CAAC;AAEF,wBAAgB,UAAU,CACtB,KAAK,EAAE,qBAAqB,GAC7B,0BAA0B,CAAC;AAE9B,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,oBAAoB,CAAC;AAE1E,wBAAgB,UAAU,CACtB,KAAK,CAAC,EAAE,uBAAuB,GAChC,4BAA4B,CAAC;AA4DhC;;GAEG;AACH,eAAO,MAAM,aAAa,mBAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { PermissionResponse } from "../../../interfaces";
2
+ import { UseQueryResult, UseQueryOptions } from "@tanstack/react-query";
3
+ export declare type UsePermissionsLegacyProps<TData = any> = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ options?: UseQueryOptions<TData>;
6
+ };
7
+ export declare type UsePermissionsProps<TData = PermissionResponse> = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ options?: UseQueryOptions<TData>;
10
+ };
11
+ export declare type UsePermissionsCombinedProps<TData = any> = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ options?: UseQueryOptions<TData> | UseQueryOptions<PermissionResponse>;
14
+ };
15
+ export declare type UsePermissionsLegacyReturnType<TData = any> = UseQueryResult<TData, unknown>;
16
+ export declare type UsePermissionsReturnType<TData = PermissionResponse> = UseQueryResult<TData, unknown>;
17
+ export declare type UsePermissionsCombinedReturnType<TData = any> = UseQueryResult<TData, unknown> | UseQueryResult<PermissionResponse, unknown>;
18
+ export declare function usePermissions<TData = any>(props: UsePermissionsLegacyProps<TData>): UsePermissionsLegacyReturnType<TData>;
19
+ export declare function usePermissions<TData = PermissionResponse>(props?: UsePermissionsProps<TData>): UsePermissionsReturnType<TData>;
20
+ export declare function usePermissions<TData = any>(props?: UsePermissionsCombinedProps<TData>): UsePermissionsCombinedReturnType<TData>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/usePermissions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAEH,cAAc,EACd,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAE/B,oBAAY,yBAAyB,CAAC,KAAK,GAAG,GAAG,IAAI;IACjD,8BAA8B,EAAE,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,oBAAY,mBAAmB,CAAC,KAAK,GAAG,kBAAkB,IAAI;IAC1D,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACpC,CAAC;AAEF,oBAAY,2BAA2B,CAAC,KAAK,GAAG,GAAG,IAAI;IACnD,8BAA8B,EAAE,OAAO,CAAC;IACxC,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;CAC1E,CAAC;AAEF,oBAAY,8BAA8B,CAAC,KAAK,GAAG,GAAG,IAAI,cAAc,CACpE,KAAK,EACL,OAAO,CACV,CAAC;AAEF,oBAAY,wBAAwB,CAAC,KAAK,GAAG,kBAAkB,IAC3D,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAEnC,oBAAY,gCAAgC,CAAC,KAAK,GAAG,GAAG,IAClD,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,GAC9B,cAAc,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AAElD,wBAAgB,cAAc,CAAC,KAAK,GAAG,GAAG,EACtC,KAAK,EAAE,yBAAyB,CAAC,KAAK,CAAC,GACxC,8BAA8B,CAAC,KAAK,CAAC,CAAC;AAEzC,wBAAgB,cAAc,CAAC,KAAK,GAAG,kBAAkB,EACrD,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,GACnC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAEnC,wBAAgB,cAAc,CAAC,KAAK,GAAG,GAAG,EACtC,KAAK,CAAC,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAC3C,gCAAgC,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { AuthActionResponse, TLoginData, TRegisterData } from "../../../interfaces";
3
+ export declare type UseRegisterLegacyProps<TVariables> = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ mutationOptions?: Omit<UseMutationOptions<TRegisterData, Error, TVariables, unknown>, "mutationFn" | "onError" | "onSuccess">;
6
+ };
7
+ export declare type UseRegisterProps<TVariables> = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error, TVariables, unknown>, "mutationFn">;
10
+ };
11
+ export declare type UseRegisterCombinedProps<TVariables> = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse | TRegisterData, Error, TVariables, unknown>, "mutationFn">;
14
+ };
15
+ export declare type UseRegisterLegacyReturnType<TVariables> = UseMutationResult<TRegisterData, Error, TVariables, unknown>;
16
+ export declare type UseRegisterReturnType<TVariables> = UseMutationResult<AuthActionResponse, Error, TVariables, unknown>;
17
+ export declare type UseRegisterCombinedReturnType<TVariables> = UseMutationResult<AuthActionResponse | TLoginData, Error, TVariables, unknown>;
18
+ export declare function useRegister<TVariables = {}>(props: UseRegisterLegacyProps<TVariables>): UseRegisterLegacyReturnType<TVariables>;
19
+ export declare function useRegister<TVariables = {}>(props?: UseRegisterProps<TVariables>): UseRegisterReturnType<TVariables>;
20
+ export declare function useRegister<TVariables = {}>(props?: UseRegisterCombinedProps<TVariables>): UseRegisterCombinedReturnType<TVariables>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useRegister/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,EACH,kBAAkB,EAElB,UAAU,EACV,aAAa,EAChB,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,sBAAsB,CAAC,UAAU,IAAI;IAC7C,8BAA8B,EAAE,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAC7D,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF,oBAAY,gBAAgB,CAAC,UAAU,IAAI;IACvC,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAClE,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,wBAAwB,CAAC,UAAU,IAAI;IAC/C,8BAA8B,EAAE,OAAO,CAAC;IACxC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,GAAG,aAAa,EAClC,KAAK,EACL,UAAU,EACV,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,2BAA2B,CAAC,UAAU,IAAI,iBAAiB,CACnE,aAAa,EACb,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,qBAAqB,CAAC,UAAU,IAAI,iBAAiB,CAC7D,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,oBAAY,6BAA6B,CAAC,UAAU,IAAI,iBAAiB,CACrE,kBAAkB,GAAG,UAAU,EAC/B,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,wBAAgB,WAAW,CAAC,UAAU,GAAG,EAAE,EACvC,KAAK,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAC1C,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAE3C,wBAAgB,WAAW,CAAC,UAAU,GAAG,EAAE,EACvC,KAAK,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,GACrC,qBAAqB,CAAC,UAAU,CAAC,CAAC;AAErC,wBAAgB,WAAW,CAAC,UAAU,GAAG,EAAE,EACvC,KAAK,CAAC,EAAE,wBAAwB,CAAC,UAAU,CAAC,GAC7C,6BAA6B,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { AuthActionResponse, TUpdatePasswordData, UpdatePasswordFormTypes } from "../../../interfaces";
3
+ export declare type UseUpdatePasswordLegacyProps<TVariables extends UpdatePasswordFormTypes> = {
4
+ v3LegacyAuthProviderCompatible: true;
5
+ mutationOptions?: Omit<UseMutationOptions<TUpdatePasswordData, Error, TVariables, unknown>, "mutationFn" | "onError" | "onSuccess">;
6
+ };
7
+ export declare type UseUpdatePasswordProps<TVariables extends UpdatePasswordFormTypes> = {
8
+ v3LegacyAuthProviderCompatible?: false;
9
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse, Error, TVariables, unknown>, "mutationFn">;
10
+ };
11
+ export declare type UseUpdatePasswordCombinedProps<TVariables extends UpdatePasswordFormTypes> = {
12
+ v3LegacyAuthProviderCompatible: boolean;
13
+ mutationOptions?: Omit<UseMutationOptions<AuthActionResponse | TUpdatePasswordData, Error, TVariables, unknown>, "mutationFn">;
14
+ };
15
+ export declare type UseUpdatePasswordLegacyReturnType<TVariables extends UpdatePasswordFormTypes> = UseMutationResult<TUpdatePasswordData, Error, TVariables, unknown>;
16
+ export declare type UseUpdatePasswordReturnType<TVariables extends UpdatePasswordFormTypes> = UseMutationResult<AuthActionResponse, Error, TVariables, unknown>;
17
+ export declare type UseUpdatePasswordCombinedReturnType<TVariables extends UpdatePasswordFormTypes> = UseMutationResult<AuthActionResponse | TUpdatePasswordData, Error, TVariables, unknown>;
18
+ export declare function useUpdatePassword<TVariables extends UpdatePasswordFormTypes>(props: UseUpdatePasswordLegacyProps<TVariables>): UseUpdatePasswordLegacyReturnType<TVariables>;
19
+ export declare function useUpdatePassword<TVariables extends UpdatePasswordFormTypes>(props?: UseUpdatePasswordProps<TVariables>): UseUpdatePasswordReturnType<TVariables>;
20
+ export declare function useUpdatePassword<TVariables extends UpdatePasswordFormTypes>(props?: UseUpdatePasswordCombinedProps<TVariables>): UseUpdatePasswordCombinedReturnType<TVariables>;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/auth/useUpdatePassword/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAY/B,OAAO,EACH,kBAAkB,EAElB,mBAAmB,EACnB,uBAAuB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B,oBAAY,4BAA4B,CACpC,UAAU,SAAS,uBAAuB,IAC1C;IACA,8BAA8B,EAAE,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,mBAAmB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EACnE,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF,oBAAY,sBAAsB,CAAC,UAAU,SAAS,uBAAuB,IACzE;IACI,8BAA8B,CAAC,EAAE,KAAK,CAAC;IACvC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAClE,YAAY,CACf,CAAC;CACL,CAAC;AAEN,oBAAY,8BAA8B,CACtC,UAAU,SAAS,uBAAuB,IAC1C;IACA,8BAA8B,EAAE,OAAO,CAAC;IACxC,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,GAAG,mBAAmB,EACxC,KAAK,EACL,UAAU,EACV,OAAO,CACV,EACD,YAAY,CACf,CAAC;CACL,CAAC;AAEF,oBAAY,iCAAiC,CACzC,UAAU,SAAS,uBAAuB,IAC1C,iBAAiB,CAAC,mBAAmB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAEvE,oBAAY,2BAA2B,CACnC,UAAU,SAAS,uBAAuB,IAC1C,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAEtE,oBAAY,mCAAmC,CAC3C,UAAU,SAAS,uBAAuB,IAC1C,iBAAiB,CACjB,kBAAkB,GAAG,mBAAmB,EACxC,KAAK,EACL,UAAU,EACV,OAAO,CACV,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,UAAU,SAAS,uBAAuB,EACxE,KAAK,EAAE,4BAA4B,CAAC,UAAU,CAAC,GAChD,iCAAiC,CAAC,UAAU,CAAC,CAAC;AAEjD,wBAAgB,iBAAiB,CAAC,UAAU,SAAS,uBAAuB,EACxE,KAAK,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAC3C,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAE3C,wBAAgB,iBAAiB,CAAC,UAAU,SAAS,uBAAuB,EACxE,KAAK,CAAC,EAAE,8BAA8B,CAAC,UAAU,CAAC,GACnD,mCAAmC,CAAC,UAAU,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ export declare type BreadcrumbsType = {
3
+ label: string;
4
+ href?: string;
5
+ icon?: React.ReactNode;
6
+ };
7
+ declare type UseBreadcrumbReturnType = {
8
+ breadcrumbs: BreadcrumbsType[];
9
+ };
10
+ declare type UseBreadcrumbProps = {
11
+ /**
12
+ * Additional params to be used in the route generation process.
13
+ */
14
+ meta?: Record<string, string | number>;
15
+ };
16
+ export declare const useBreadcrumb: ({ meta: metaFromProps, }?: UseBreadcrumbProps) => UseBreadcrumbReturnType;
17
+ export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAc1C,oBAAY,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,aAAK,uBAAuB,GAAG;IAC3B,WAAW,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;AAEF,aAAK,kBAAkB,GAAG;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,aAAa,8BAEvB,kBAAkB,KAAQ,uBA4F5B,CAAC"}
@@ -0,0 +1,15 @@
1
+ export { useList } from "./useList";
2
+ export { useOne } from "./useOne";
3
+ export { useMany } from "./useMany";
4
+ export { useUpdate } from "./useUpdate";
5
+ export { useCreate, UseCreateReturnType } from "./useCreate";
6
+ export { useDelete } from "./useDelete";
7
+ export { useCreateMany, UseCreateManyReturnType } from "./useCreateMany";
8
+ export { useUpdateMany } from "./useUpdateMany";
9
+ export { useDeleteMany } from "./useDeleteMany";
10
+ export { useApiUrl } from "./useApiUrl";
11
+ export { useCustom } from "./useCustom";
12
+ export { useCustomMutation } from "./useCustomMutation";
13
+ export { useDataProvider } from "./useDataProvider";
14
+ export { useInfiniteList } from "./useInfiniteList";
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const useApiUrl: (dataProviderName?: string) => string;
2
+ //# sourceMappingURL=useApiUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApiUrl.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useApiUrl.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,sBAAuB,MAAM,KAAG,MAMrD,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { CreateResponse, BaseRecord, HttpError, SuccessErrorNotification, MetaQuery, IQueryKeys } from "../../interfaces";
3
+ declare type useCreateParams<TVariables> = {
4
+ /**
5
+ * Resource name for API data interactions
6
+ */
7
+ resource: string;
8
+ /**
9
+ * Values for mutation function
10
+ */
11
+ values: TVariables;
12
+ /**
13
+ * Meta data for `dataProvider`
14
+ */
15
+ meta?: MetaQuery;
16
+ /**
17
+ * Meta data for `dataProvider`
18
+ * @deprecated `metaData` is deprecated with refine@4, refine will pass `meta` instead, however, we still support `metaData` for backward compatibility.
19
+ */
20
+ metaData?: MetaQuery;
21
+ /**
22
+ * If there is more than one `dataProvider`, you should use the `dataProviderName` that you will use.
23
+ */
24
+ dataProviderName?: string;
25
+ /**
26
+ * You can use it to manage the invalidations that will occur at the end of the mutation.
27
+ */
28
+ invalidates?: Array<keyof IQueryKeys>;
29
+ } & SuccessErrorNotification;
30
+ export declare type UseCreateReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseMutationResult<CreateResponse<TData>, TError, useCreateParams<TVariables>, unknown>;
31
+ export declare type UseCreateProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
32
+ mutationOptions?: Omit<UseMutationOptions<CreateResponse<TData>, TError, useCreateParams<TVariables>, unknown>, "mutationFn" | "onError" | "onSuccess">;
33
+ };
34
+ /**
35
+ * `useCreate` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for create mutations.
36
+ *
37
+ * It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
38
+ *
39
+ * @see {@link https://refine.dev/docs/api-references/hooks/data/useCreate} for more details.
40
+ *
41
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
42
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
43
+ * @typeParam TVariables - Values for mutation function
44
+ *
45
+ */
46
+ export declare const useCreate: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, }?: UseCreateProps<TData, TError, TVariables>) => UseCreateReturnType<TData, TError, TVariables>;
47
+ export {};
48
+ //# sourceMappingURL=useCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreate.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EACH,cAAc,EACd,UAAU,EACV,SAAS,EACT,wBAAwB,EACxB,SAAS,EACT,UAAU,EACb,MAAM,kBAAkB,CAAC;AAY1B,aAAK,eAAe,CAAC,UAAU,IAAI;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;CACzC,GAAG,wBAAwB,CAAC;AAE7B,oBAAY,mBAAmB,CAC3B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,iBAAiB,CACjB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,eAAe,CAAC,UAAU,CAAC,EAC3B,OAAO,CACV,CAAC;AAEF,oBAAY,cAAc,CACtB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf;IACA,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,eAAe,CAAC,UAAU,CAAC,EAC3B,OAAO,CACV,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,SAAS,oNA8JrB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
2
+ import { BaseRecord, CreateManyResponse, HttpError, SuccessErrorNotification, MetaQuery, IQueryKeys } from "../../interfaces";
3
+ declare type useCreateManyParams<TVariables> = {
4
+ resource: string;
5
+ values: TVariables[];
6
+ meta?: MetaQuery;
7
+ metaData?: MetaQuery;
8
+ dataProviderName?: string;
9
+ invalidates?: Array<keyof IQueryKeys>;
10
+ } & SuccessErrorNotification;
11
+ export declare type UseCreateManyReturnType<TData extends BaseRecord = BaseRecord, TError = HttpError, TVariables = {}> = UseMutationResult<CreateManyResponse<TData>, TError, useCreateManyParams<TVariables>, unknown>;
12
+ export declare type UseCreateManyProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
13
+ mutationOptions?: Omit<UseMutationOptions<CreateManyResponse<TData>, TError, useCreateManyParams<TVariables>>, "mutationFn" | "onError" | "onSuccess">;
14
+ };
15
+ /**
16
+ * `useCreateMany` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/reference/useMutation `useMutation`} for multiple create mutations.
17
+ *
18
+ * It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
19
+ *
20
+ * @see {@link https://refine.dev/docs/core/hooks/data/useCreateMany} for more details.
21
+ *
22
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
23
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
24
+ * @typeParam TVariables - Values for mutation function
25
+ *
26
+ */
27
+ export declare const useCreateMany: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationOptions, }?: UseCreateManyProps<TData, TError, TVariables>) => UseCreateManyReturnType<TData, TError, TVariables>;
28
+ export {};
29
+ //# sourceMappingURL=useCreateMany.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useCreateMany.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EAClB,iBAAiB,EACpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACH,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,wBAAwB,EACxB,SAAS,EACT,UAAU,EACb,MAAM,kBAAkB,CAAC;AAgB1B,aAAK,mBAAmB,CAAC,UAAU,IAAI;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC;CACzC,GAAG,wBAAwB,CAAC;AAE7B,oBAAY,uBAAuB,CAC/B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,GAAG,SAAS,EAClB,UAAU,GAAG,EAAE,IACf,iBAAiB,CACjB,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,mBAAmB,CAAC,UAAU,CAAC,EAC/B,OAAO,CACV,CAAC;AAEF,oBAAY,kBAAkB,CAC1B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf;IACA,eAAe,CAAC,EAAE,IAAI,CAClB,kBAAkB,CACd,kBAAkB,CAAC,KAAK,CAAC,EACzB,MAAM,EACN,mBAAmB,CAAC,UAAU,CAAC,CAClC,EACD,YAAY,GAAG,SAAS,GAAG,WAAW,CACzC,CAAC;CACL,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,4NAiKzB,CAAC"}