@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.
- package/CHANGELOG.md +2577 -0
- package/README.md +257 -0
- package/dist/components/authenticated/index.d.ts +41 -0
- package/dist/components/authenticated/index.d.ts.map +1 -0
- package/dist/components/canAccess/index.d.ts +11 -0
- package/dist/components/canAccess/index.d.ts.map +1 -0
- package/dist/components/containers/index.d.ts +2 -0
- package/dist/components/containers/index.d.ts.map +1 -0
- package/dist/components/containers/refine/index.d.ts +144 -0
- package/dist/components/containers/refine/index.d.ts.map +1 -0
- package/dist/components/gh-banner/index.d.ts +3 -0
- package/dist/components/gh-banner/index.d.ts.map +1 -0
- package/dist/components/gh-banner/styles.d.ts +2 -0
- package/dist/components/gh-banner/styles.d.ts.map +1 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts +4 -0
- package/dist/components/layoutWrapper/defaultLayout/index.d.ts.map +1 -0
- package/dist/components/layoutWrapper/index.d.ts +46 -0
- package/dist/components/layoutWrapper/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +7 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/index.d.ts +5 -0
- package/dist/components/pages/auth/components/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.ts +7 -0
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.ts +7 -0
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +7 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/index.d.ts +12 -0
- package/dist/components/pages/auth/index.d.ts.map +1 -0
- package/dist/components/pages/error/index.d.ts +9 -0
- package/dist/components/pages/error/index.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +7 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/login/index.d.ts +13 -0
- package/dist/components/pages/login/index.d.ts.map +1 -0
- package/dist/components/pages/ready/index.d.ts +9 -0
- package/dist/components/pages/ready/index.d.ts.map +1 -0
- package/dist/components/pages/welcome/index.d.ts +6 -0
- package/dist/components/pages/welcome/index.d.ts.map +1 -0
- package/dist/components/routeChangeHandler/index.d.ts +3 -0
- package/dist/components/routeChangeHandler/index.d.ts.map +1 -0
- package/dist/components/telemetry/index.d.ts +3 -0
- package/dist/components/telemetry/index.d.ts.map +1 -0
- package/dist/components/undoableQueue/index.d.ts +6 -0
- package/dist/components/undoableQueue/index.d.ts.map +1 -0
- package/dist/contexts/accessControl/IAccessControlContext.d.ts +31 -0
- package/dist/contexts/accessControl/IAccessControlContext.d.ts.map +1 -0
- package/dist/contexts/accessControl/index.d.ts +9 -0
- package/dist/contexts/accessControl/index.d.ts.map +1 -0
- package/dist/contexts/auditLog/IAuditLogContext.d.ts +29 -0
- package/dist/contexts/auditLog/IAuditLogContext.d.ts.map +1 -0
- package/dist/contexts/auditLog/index.d.ts +7 -0
- package/dist/contexts/auditLog/index.d.ts.map +1 -0
- package/dist/contexts/auth/IAuthContext.d.ts +26 -0
- package/dist/contexts/auth/IAuthContext.d.ts.map +1 -0
- package/dist/contexts/auth/index.d.ts +20 -0
- package/dist/contexts/auth/index.d.ts.map +1 -0
- package/dist/contexts/data/IDataContext.d.ts +193 -0
- package/dist/contexts/data/IDataContext.d.ts.map +1 -0
- package/dist/contexts/data/index.d.ts +52 -0
- package/dist/contexts/data/index.d.ts.map +1 -0
- package/dist/contexts/legacy-router/IRouterContext.d.ts +35 -0
- package/dist/contexts/legacy-router/IRouterContext.d.ts.map +1 -0
- package/dist/contexts/legacy-router/index.d.ts +9 -0
- package/dist/contexts/legacy-router/index.d.ts.map +1 -0
- package/dist/contexts/live/ILiveContext.d.ts +39 -0
- package/dist/contexts/live/ILiveContext.d.ts.map +1 -0
- package/dist/contexts/live/index.d.ts +5 -0
- package/dist/contexts/live/index.d.ts.map +1 -0
- package/dist/contexts/notification/INotificationContext.d.ts +14 -0
- package/dist/contexts/notification/INotificationContext.d.ts.map +1 -0
- package/dist/contexts/notification/index.d.ts +9 -0
- package/dist/contexts/notification/index.d.ts.map +1 -0
- package/dist/contexts/refine/IRefineContext.d.ts +106 -0
- package/dist/contexts/refine/IRefineContext.d.ts.map +1 -0
- package/dist/contexts/refine/index.d.ts +6 -0
- package/dist/contexts/refine/index.d.ts.map +1 -0
- package/dist/contexts/resource/IResourceContext.d.ts +49 -0
- package/dist/contexts/resource/IResourceContext.d.ts.map +1 -0
- package/dist/contexts/resource/index.d.ts +9 -0
- package/dist/contexts/resource/index.d.ts.map +1 -0
- package/dist/contexts/router/index.d.ts +7 -0
- package/dist/contexts/router/index.d.ts.map +1 -0
- package/dist/contexts/router-picker/index.d.ts +15 -0
- package/dist/contexts/router-picker/index.d.ts.map +1 -0
- package/dist/contexts/translation/ITranslationContext.d.ts +11 -0
- package/dist/contexts/translation/ITranslationContext.d.ts.map +1 -0
- package/dist/contexts/translation/index.d.ts +9 -0
- package/dist/contexts/translation/index.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts +7 -0
- package/dist/contexts/undoableQueue/IUndoableQueueContext.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/actionTypes.d.ts +6 -0
- package/dist/contexts/undoableQueue/actionTypes.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/index.d.ts +3 -0
- package/dist/contexts/undoableQueue/index.d.ts.map +1 -0
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts +8 -0
- package/dist/contexts/undoableQueue/undoableQueueContext.d.ts.map +1 -0
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts +5 -0
- package/dist/contexts/unsavedWarn/IUnsavedWarnContext.d.ts.map +1 -0
- package/dist/contexts/unsavedWarn/index.d.ts +7 -0
- package/dist/contexts/unsavedWarn/index.d.ts.map +1 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts +3 -0
- package/dist/definitions/helpers/check-router-prop-misuse/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleMultiple/index.d.ts +6 -0
- package/dist/definitions/helpers/handleMultiple/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts +9 -0
- package/dist/definitions/helpers/handlePaginationParams/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts +26 -0
- package/dist/definitions/helpers/handleRefineOptions/index.d.ts.map +1 -0
- package/dist/definitions/helpers/handleUseParams/index.d.ts +2 -0
- package/dist/definitions/helpers/handleUseParams/index.d.ts.map +1 -0
- package/dist/definitions/helpers/hasPermission/index.d.ts +2 -0
- package/dist/definitions/helpers/hasPermission/index.d.ts.map +1 -0
- package/dist/definitions/helpers/humanizeString/index.d.ts +2 -0
- package/dist/definitions/helpers/humanizeString/index.d.ts.map +1 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.ts +3 -0
- package/dist/definitions/helpers/importCSVMapper/index.d.ts.map +1 -0
- package/dist/definitions/helpers/index.d.ts +23 -0
- package/dist/definitions/helpers/index.d.ts.map +1 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts +9 -0
- package/dist/definitions/helpers/legacy-resource-transform/index.d.ts.map +1 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.ts +3 -0
- package/dist/definitions/helpers/menu/create-resource-key.d.ts.map +1 -0
- package/dist/definitions/helpers/menu/create-tree.d.ts +13 -0
- package/dist/definitions/helpers/menu/create-tree.d.ts.map +1 -0
- package/dist/definitions/helpers/pick-resource/index.d.ts +8 -0
- package/dist/definitions/helpers/pick-resource/index.d.ts.map +1 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.ts +6 -0
- package/dist/definitions/helpers/pickDataProvider/index.d.ts.map +1 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.ts +2 -0
- package/dist/definitions/helpers/pickNotDeprecated/index.d.ts.map +1 -0
- package/dist/definitions/helpers/queryKeys/index.d.ts +4 -0
- package/dist/definitions/helpers/queryKeys/index.d.ts.map +1 -0
- package/dist/definitions/helpers/redirectPage/index.d.ts +9 -0
- package/dist/definitions/helpers/redirectPage/index.d.ts.map +1 -0
- package/dist/definitions/helpers/routeGenerator/index.d.ts +7 -0
- package/dist/definitions/helpers/routeGenerator/index.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/check-by-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/compose-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-action-routes-from-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-default-action-path.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/get-parent-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/is-segment-counts-same.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/match-resource-from-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/pick-matched-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/pick-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/prepare-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.d.ts.map +1 -0
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts +2 -0
- package/dist/definitions/helpers/router/__tests__/split-to-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/check-by-segments.d.ts +9 -0
- package/dist/definitions/helpers/router/check-by-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/router/compose-route.d.ts +10 -0
- package/dist/definitions/helpers/router/compose-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts +15 -0
- package/dist/definitions/helpers/router/get-action-routes-from-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.ts +8 -0
- package/dist/definitions/helpers/router/get-default-action-path.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts +7 -0
- package/dist/definitions/helpers/router/get-parent-prefix-for-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.ts +7 -0
- package/dist/definitions/helpers/router/get-parent-resource.d.ts.map +1 -0
- package/dist/definitions/helpers/router/index.d.ts +10 -0
- package/dist/definitions/helpers/router/index.d.ts.map +1 -0
- package/dist/definitions/helpers/router/is-parameter.d.ts +5 -0
- package/dist/definitions/helpers/router/is-parameter.d.ts.map +1 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.ts +5 -0
- package/dist/definitions/helpers/router/is-segment-counts-same.d.ts.map +1 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts +14 -0
- package/dist/definitions/helpers/router/match-resource-from-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.ts +8 -0
- package/dist/definitions/helpers/router/pick-matched-route.d.ts.map +1 -0
- package/dist/definitions/helpers/router/pick-route-params.d.ts +6 -0
- package/dist/definitions/helpers/router/pick-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.ts +9 -0
- package/dist/definitions/helpers/router/prepare-route-params.d.ts.map +1 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts +5 -0
- package/dist/definitions/helpers/router/remove-leading-trailing-slashes.d.ts.map +1 -0
- package/dist/definitions/helpers/router/split-to-segments.d.ts +5 -0
- package/dist/definitions/helpers/router/split-to-segments.d.ts.map +1 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.ts +8 -0
- package/dist/definitions/helpers/sanitize-resource/index.d.ts.map +1 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.ts +5 -0
- package/dist/definitions/helpers/sequentialPromises/index.d.ts.map +1 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts +6 -0
- package/dist/definitions/helpers/treeView/createTreeView/index.d.ts.map +1 -0
- package/dist/definitions/helpers/treeView/index.d.ts +2 -0
- package/dist/definitions/helpers/treeView/index.d.ts.map +1 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts +34 -0
- package/dist/definitions/helpers/useActiveAuthProvider/index.d.ts.map +1 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts +4 -0
- package/dist/definitions/helpers/useInfinitePagination/index.d.ts.map +1 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts +6 -0
- package/dist/definitions/helpers/userFriendlyResourceName/index.d.ts.map +1 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.ts +2 -0
- package/dist/definitions/helpers/userFriendlySeconds/index.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/table/index.d.ts +34 -0
- package/dist/definitions/table/index.d.ts.map +1 -0
- package/dist/definitions/upload/file2Base64/index.d.ts +2 -0
- package/dist/definitions/upload/file2Base64/index.d.ts.map +1 -0
- package/dist/definitions/upload/index.d.ts +2 -0
- package/dist/definitions/upload/index.d.ts.map +1 -0
- package/dist/esm/index.js +56 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/hooks/accessControl/index.d.ts +3 -0
- package/dist/hooks/accessControl/index.d.ts.map +1 -0
- package/dist/hooks/accessControl/useCan/index.d.ts +18 -0
- package/dist/hooks/accessControl/useCan/index.d.ts.map +1 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts +3 -0
- package/dist/hooks/accessControl/useCanWithoutCache.d.ts.map +1 -0
- package/dist/hooks/auditLog/index.d.ts +3 -0
- package/dist/hooks/auditLog/index.d.ts.map +1 -0
- package/dist/hooks/auditLog/useLog/index.d.ts +26 -0
- package/dist/hooks/auditLog/useLog/index.d.ts.map +1 -0
- package/dist/hooks/auditLog/useLogList/index.d.ts +16 -0
- package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -0
- package/dist/hooks/auth/index.d.ts +11 -0
- package/dist/hooks/auth/index.d.ts.map +1 -0
- package/dist/hooks/auth/useForgotPassword/index.d.ts +21 -0
- package/dist/hooks/auth/useForgotPassword/index.d.ts.map +1 -0
- package/dist/hooks/auth/useGetIdentity/index.d.ts +21 -0
- package/dist/hooks/auth/useGetIdentity/index.d.ts.map +1 -0
- package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts +2 -0
- package/dist/hooks/auth/useInvaliteAuthStore/index.d.ts.map +1 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts +25 -0
- package/dist/hooks/auth/useIsAuthenticated/index.d.ts.map +1 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.ts +6 -0
- package/dist/hooks/auth/useIsExistAuthentication/index.d.ts.map +1 -0
- package/dist/hooks/auth/useLogin/index.d.ts +22 -0
- package/dist/hooks/auth/useLogin/index.d.ts.map +1 -0
- package/dist/hooks/auth/useLogout/index.d.ts +26 -0
- package/dist/hooks/auth/useLogout/index.d.ts.map +1 -0
- package/dist/hooks/auth/useOnError/index.d.ts +22 -0
- package/dist/hooks/auth/useOnError/index.d.ts.map +1 -0
- package/dist/hooks/auth/usePermissions/index.d.ts +21 -0
- package/dist/hooks/auth/usePermissions/index.d.ts.map +1 -0
- package/dist/hooks/auth/useRegister/index.d.ts +21 -0
- package/dist/hooks/auth/useRegister/index.d.ts.map +1 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.ts +21 -0
- package/dist/hooks/auth/useUpdatePassword/index.d.ts.map +1 -0
- package/dist/hooks/breadcrumb/index.d.ts +18 -0
- package/dist/hooks/breadcrumb/index.d.ts.map +1 -0
- package/dist/hooks/data/index.d.ts +15 -0
- package/dist/hooks/data/index.d.ts.map +1 -0
- package/dist/hooks/data/useApiUrl.d.ts +2 -0
- package/dist/hooks/data/useApiUrl.d.ts.map +1 -0
- package/dist/hooks/data/useCreate.d.ts +48 -0
- package/dist/hooks/data/useCreate.d.ts.map +1 -0
- package/dist/hooks/data/useCreateMany.d.ts +29 -0
- package/dist/hooks/data/useCreateMany.d.ts.map +1 -0
- package/dist/hooks/data/useCustom.d.ts +60 -0
- package/dist/hooks/data/useCustom.d.ts.map +1 -0
- package/dist/hooks/data/useCustomMutation.d.ts +40 -0
- package/dist/hooks/data/useCustomMutation.d.ts.map +1 -0
- package/dist/hooks/data/useDataProvider.d.ts +3 -0
- package/dist/hooks/data/useDataProvider.d.ts.map +1 -0
- package/dist/hooks/data/useDelete.d.ts +35 -0
- package/dist/hooks/data/useDelete.d.ts.map +1 -0
- package/dist/hooks/data/useDeleteMany.d.ts +35 -0
- package/dist/hooks/data/useDeleteMany.d.ts.map +1 -0
- package/dist/hooks/data/useInfiniteList.d.ts +67 -0
- package/dist/hooks/data/useInfiniteList.d.ts.map +1 -0
- package/dist/hooks/data/useList.d.ts +67 -0
- package/dist/hooks/data/useList.d.ts.map +1 -0
- package/dist/hooks/data/useMany.d.ts +44 -0
- package/dist/hooks/data/useMany.d.ts.map +1 -0
- package/dist/hooks/data/useOne.d.ts +44 -0
- package/dist/hooks/data/useOne.d.ts.map +1 -0
- package/dist/hooks/data/useUpdate.d.ts +64 -0
- package/dist/hooks/data/useUpdate.d.ts.map +1 -0
- package/dist/hooks/data/useUpdateMany.d.ts +40 -0
- package/dist/hooks/data/useUpdateMany.d.ts.map +1 -0
- package/dist/hooks/deepMemo/index.d.ts +7 -0
- package/dist/hooks/deepMemo/index.d.ts.map +1 -0
- package/dist/hooks/export/csvDownload.interface.d.ts +20 -0
- package/dist/hooks/export/csvDownload.interface.d.ts.map +1 -0
- package/dist/hooks/export/index.d.ts +75 -0
- package/dist/hooks/export/index.d.ts.map +1 -0
- package/dist/hooks/form/index.d.ts +2 -0
- package/dist/hooks/form/index.d.ts.map +1 -0
- package/dist/hooks/form/useForm.d.ts +103 -0
- package/dist/hooks/form/useForm.d.ts.map +1 -0
- package/dist/hooks/import/index.d.ts +100 -0
- package/dist/hooks/import/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +25 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/invalidate/index.d.ts +9 -0
- package/dist/hooks/invalidate/index.d.ts.map +1 -0
- package/dist/hooks/legacy-router/index.d.ts +2 -0
- package/dist/hooks/legacy-router/index.d.ts.map +1 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts +10 -0
- package/dist/hooks/legacy-router/useRouterContext.d.ts.map +1 -0
- package/dist/hooks/live/index.d.ts +5 -0
- package/dist/hooks/live/index.d.ts.map +1 -0
- package/dist/hooks/live/useLiveMode/index.d.ts +3 -0
- package/dist/hooks/live/useLiveMode/index.d.ts.map +1 -0
- package/dist/hooks/live/usePublish/index.d.ts +3 -0
- package/dist/hooks/live/usePublish/index.d.ts.map +1 -0
- package/dist/hooks/live/useResourceSubscription/index.d.ts +34 -0
- package/dist/hooks/live/useResourceSubscription/index.d.ts.map +1 -0
- package/dist/hooks/live/useSubscription/index.d.ts +46 -0
- package/dist/hooks/live/useSubscription/index.d.ts.map +1 -0
- package/dist/hooks/memoized/index.d.ts +6 -0
- package/dist/hooks/memoized/index.d.ts.map +1 -0
- package/dist/hooks/menu/index.d.ts +2 -0
- package/dist/hooks/menu/index.d.ts.map +1 -0
- package/dist/hooks/menu/useMenu.d.ts +28 -0
- package/dist/hooks/menu/useMenu.d.ts.map +1 -0
- package/dist/hooks/modal/index.d.ts +2 -0
- package/dist/hooks/modal/index.d.ts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.ts +13 -0
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -0
- package/dist/hooks/navigation/index.d.ts +27 -0
- package/dist/hooks/navigation/index.d.ts.map +1 -0
- package/dist/hooks/notification/index.d.ts +4 -0
- package/dist/hooks/notification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useCancelNotification/index.d.ts +8 -0
- package/dist/hooks/notification/useCancelNotification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useHandleNotification/index.d.ts +3 -0
- package/dist/hooks/notification/useHandleNotification/index.d.ts.map +1 -0
- package/dist/hooks/notification/useNotification/index.d.ts +3 -0
- package/dist/hooks/notification/useNotification/index.d.ts.map +1 -0
- package/dist/hooks/redirection/index.d.ts +9 -0
- package/dist/hooks/redirection/index.d.ts.map +1 -0
- package/dist/hooks/refine/index.d.ts +6 -0
- package/dist/hooks/refine/index.d.ts.map +1 -0
- package/dist/hooks/refine/useMutationMode.d.ts +15 -0
- package/dist/hooks/refine/useMutationMode.d.ts.map +1 -0
- package/dist/hooks/refine/useRefineContext.d.ts +19 -0
- package/dist/hooks/refine/useRefineContext.d.ts.map +1 -0
- package/dist/hooks/refine/useSyncWithLocation.d.ts +13 -0
- package/dist/hooks/refine/useSyncWithLocation.d.ts.map +1 -0
- package/dist/hooks/refine/useTitle.d.ts +10 -0
- package/dist/hooks/refine/useTitle.d.ts.map +1 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts +15 -0
- package/dist/hooks/refine/useWarnAboutChange/index.d.ts.map +1 -0
- package/dist/hooks/resource/index.d.ts +3 -0
- package/dist/hooks/resource/index.d.ts.map +1 -0
- package/dist/hooks/resource/useResource/index.d.ts +45 -0
- package/dist/hooks/resource/useResource/index.d.ts.map +1 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts +8 -0
- package/dist/hooks/resource/useResourceWithRoute/index.d.ts.map +1 -0
- package/dist/hooks/router/index.d.ts +8 -0
- package/dist/hooks/router/index.d.ts.map +1 -0
- package/dist/hooks/router/use-back/index.d.ts +2 -0
- package/dist/hooks/router/use-back/index.d.ts.map +1 -0
- package/dist/hooks/router/use-get-to-path/index.d.ts +18 -0
- package/dist/hooks/router/use-get-to-path/index.d.ts.map +1 -0
- package/dist/hooks/router/use-go/index.d.ts +2 -0
- package/dist/hooks/router/use-go/index.d.ts.map +1 -0
- package/dist/hooks/router/use-link/index.d.ts +6 -0
- package/dist/hooks/router/use-link/index.d.ts.map +1 -0
- package/dist/hooks/router/use-parse/index.d.ts +3 -0
- package/dist/hooks/router/use-parse/index.d.ts.map +1 -0
- package/dist/hooks/router/use-parsed/index.d.ts +2 -0
- package/dist/hooks/router/use-parsed/index.d.ts.map +1 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts +3 -0
- package/dist/hooks/router/use-router-misuse-warning/index.d.ts.map +1 -0
- package/dist/hooks/router/use-to-path/index.d.ts +17 -0
- package/dist/hooks/router/use-to-path/index.d.ts.map +1 -0
- package/dist/hooks/show/index.d.ts +2 -0
- package/dist/hooks/show/index.d.ts.map +1 -0
- package/dist/hooks/show/useShow.d.ts +47 -0
- package/dist/hooks/show/useShow.d.ts.map +1 -0
- package/dist/hooks/translate/index.d.ts +4 -0
- package/dist/hooks/translate/index.d.ts.map +1 -0
- package/dist/hooks/translate/useGetLocale.d.ts +9 -0
- package/dist/hooks/translate/useGetLocale.d.ts.map +1 -0
- package/dist/hooks/translate/useSetLocale.d.ts +8 -0
- package/dist/hooks/translate/useSetLocale.d.ts.map +1 -0
- package/dist/hooks/translate/useTranslate.d.ts +11 -0
- package/dist/hooks/translate/useTranslate.d.ts.map +1 -0
- package/dist/hooks/useSelect/index.d.ts +100 -0
- package/dist/hooks/useSelect/index.d.ts.map +1 -0
- package/dist/hooks/useTable/index.d.ts +153 -0
- package/dist/hooks/useTable/index.d.ts.map +1 -0
- package/dist/hooks/useTelemetryData/index.d.ts +3 -0
- package/dist/hooks/useTelemetryData/index.d.ts.map +1 -0
- package/dist/iife/index.js +56 -0
- package/dist/iife/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/HttpError.d.ts +5 -0
- package/dist/interfaces/HttpError.d.ts.map +1 -0
- package/dist/interfaces/actions.d.ts +10 -0
- package/dist/interfaces/actions.d.ts.map +1 -0
- package/dist/interfaces/auditLog/index.d.ts +2 -0
- package/dist/interfaces/auditLog/index.d.ts.map +1 -0
- package/dist/interfaces/auditLog/logData.d.ts +14 -0
- package/dist/interfaces/auditLog/logData.d.ts.map +1 -0
- package/dist/interfaces/auth.d.ts +158 -0
- package/dist/interfaces/auth.d.ts.map +1 -0
- package/dist/interfaces/bindings/access-control.d.ts +50 -0
- package/dist/interfaces/bindings/access-control.d.ts.map +1 -0
- package/dist/interfaces/bindings/auth.d.ts +66 -0
- package/dist/interfaces/bindings/auth.d.ts.map +1 -0
- package/dist/interfaces/bindings/data.d.ts +15 -0
- package/dist/interfaces/bindings/data.d.ts.map +1 -0
- package/dist/interfaces/bindings/i18n.d.ts +19 -0
- package/dist/interfaces/bindings/i18n.d.ts.map +1 -0
- package/dist/interfaces/bindings/index.d.ts +9 -0
- package/dist/interfaces/bindings/index.d.ts.map +1 -0
- package/dist/interfaces/bindings/live.d.ts +43 -0
- package/dist/interfaces/bindings/live.d.ts.map +1 -0
- package/dist/interfaces/bindings/notifications.d.ts +24 -0
- package/dist/interfaces/bindings/notifications.d.ts.map +1 -0
- package/dist/interfaces/bindings/resource.d.ts +150 -0
- package/dist/interfaces/bindings/resource.d.ts.map +1 -0
- package/dist/interfaces/bindings/router.d.ts +70 -0
- package/dist/interfaces/bindings/router.d.ts.map +1 -0
- package/dist/interfaces/customComponents.d.ts +26 -0
- package/dist/interfaces/customComponents.d.ts.map +1 -0
- package/dist/interfaces/form-url-params.d.ts +12 -0
- package/dist/interfaces/form-url-params.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts +49 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/live/LiveEvent.d.ts +11 -0
- package/dist/interfaces/live/LiveEvent.d.ts.map +1 -0
- package/dist/interfaces/live/LiveModeProps.d.ts +27 -0
- package/dist/interfaces/live/LiveModeProps.d.ts.map +1 -0
- package/dist/interfaces/live/index.d.ts +3 -0
- package/dist/interfaces/live/index.d.ts.map +1 -0
- package/dist/interfaces/mapDataFn.d.ts +4 -0
- package/dist/interfaces/mapDataFn.d.ts.map +1 -0
- package/dist/interfaces/metaData/fields.d.ts +3 -0
- package/dist/interfaces/metaData/fields.d.ts.map +1 -0
- package/dist/interfaces/metaData/index.d.ts +3 -0
- package/dist/interfaces/metaData/index.d.ts.map +1 -0
- package/dist/interfaces/metaData/metaDataQuery.d.ts +10 -0
- package/dist/interfaces/metaData/metaDataQuery.d.ts.map +1 -0
- package/dist/interfaces/metaData/metaQuery.d.ts +7 -0
- package/dist/interfaces/metaData/metaQuery.d.ts.map +1 -0
- package/dist/interfaces/metaData/nestedField.d.ts +8 -0
- package/dist/interfaces/metaData/nestedField.d.ts.map +1 -0
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts +8 -0
- package/dist/interfaces/metaData/queryBuilderOptions.d.ts.map +1 -0
- package/dist/interfaces/metaData/variableOptions.d.ts +10 -0
- package/dist/interfaces/metaData/variableOptions.d.ts.map +1 -0
- package/dist/interfaces/mutationMode.d.ts +17 -0
- package/dist/interfaces/mutationMode.d.ts.map +1 -0
- package/dist/interfaces/notification.d.ts +11 -0
- package/dist/interfaces/notification.d.ts.map +1 -0
- package/dist/interfaces/prettify.d.ts +4 -0
- package/dist/interfaces/prettify.d.ts.map +1 -0
- package/dist/interfaces/queryKey.d.ts +17 -0
- package/dist/interfaces/queryKey.d.ts.map +1 -0
- package/dist/interfaces/resourceErrorRouterParams.d.ts +6 -0
- package/dist/interfaces/resourceErrorRouterParams.d.ts.map +1 -0
- package/dist/interfaces/resourceRouterParams.d.ts +7 -0
- package/dist/interfaces/resourceRouterParams.d.ts.map +1 -0
- package/dist/interfaces/successErrorNotification.d.ts +15 -0
- package/dist/interfaces/successErrorNotification.d.ts.map +1 -0
- package/dist/interfaces/telementry.d.ts +15 -0
- package/dist/interfaces/telementry.d.ts.map +1 -0
- package/package.json +67 -0
- package/refine.config.js +120 -0
- package/src/components/authenticated/index.tsx +202 -0
- package/src/components/canAccess/index.tsx +42 -0
- package/src/components/containers/index.ts +1 -0
- package/src/components/containers/refine/index.tsx +412 -0
- package/src/components/gh-banner/index.tsx +75 -0
- package/src/components/gh-banner/styles.ts +59 -0
- package/src/components/index.ts +9 -0
- package/src/components/layoutWrapper/defaultLayout/index.tsx +7 -0
- package/src/components/layoutWrapper/index.tsx +121 -0
- package/src/components/pages/auth/components/forgotPassword/index.tsx +122 -0
- package/src/components/pages/auth/components/index.ts +4 -0
- package/src/components/pages/auth/components/login/index.tsx +182 -0
- package/src/components/pages/auth/components/register/index.tsx +168 -0
- package/src/components/pages/auth/components/updatePassword/index.tsx +104 -0
- package/src/components/pages/auth/index.tsx +52 -0
- package/src/components/pages/error/index.tsx +64 -0
- package/src/components/pages/index.tsx +7 -0
- package/src/components/pages/login/index.tsx +91 -0
- package/src/components/pages/ready/index.tsx +39 -0
- package/src/components/pages/welcome/index.tsx +32 -0
- package/src/components/routeChangeHandler/index.tsx +16 -0
- package/src/components/telemetry/index.tsx +32 -0
- package/src/components/undoableQueue/index.tsx +68 -0
- package/src/contexts/accessControl/IAccessControlContext.ts +32 -0
- package/src/contexts/accessControl/index.tsx +22 -0
- package/src/contexts/auditLog/IAuditLogContext.ts +31 -0
- package/src/contexts/auditLog/index.tsx +17 -0
- package/src/contexts/auth/IAuthContext.ts +27 -0
- package/src/contexts/auth/index.tsx +203 -0
- package/src/contexts/data/IDataContext.ts +285 -0
- package/src/contexts/data/index.tsx +50 -0
- package/src/contexts/legacy-router/IRouterContext.ts +37 -0
- package/src/contexts/legacy-router/index.tsx +45 -0
- package/src/contexts/live/ILiveContext.ts +48 -0
- package/src/contexts/live/index.tsx +16 -0
- package/src/contexts/notification/INotificationContext.ts +15 -0
- package/src/contexts/notification/index.tsx +20 -0
- package/src/contexts/refine/IRefineContext.ts +116 -0
- package/src/contexts/refine/index.tsx +87 -0
- package/src/contexts/resource/IResourceContext.ts +68 -0
- package/src/contexts/resource/index.tsx +34 -0
- package/src/contexts/router/index.tsx +17 -0
- package/src/contexts/router-picker/index.tsx +21 -0
- package/src/contexts/translation/ITranslationContext.ts +19 -0
- package/src/contexts/translation/index.tsx +24 -0
- package/src/contexts/undoableQueue/IUndoableQueueContext.ts +6 -0
- package/src/contexts/undoableQueue/actionTypes.ts +5 -0
- package/src/contexts/undoableQueue/index.ts +5 -0
- package/src/contexts/undoableQueue/undoableQueueContext.tsx +83 -0
- package/src/contexts/unsavedWarn/IUnsavedWarnContext.ts +4 -0
- package/src/contexts/unsavedWarn/index.tsx +17 -0
- package/src/definitions/helpers/check-router-prop-misuse/index.ts +30 -0
- package/src/definitions/helpers/handleMultiple/index.ts +7 -0
- package/src/definitions/helpers/handlePaginationParams/index.ts +30 -0
- package/src/definitions/helpers/handleRefineOptions/index.ts +94 -0
- package/src/definitions/helpers/handleUseParams/index.tsx +9 -0
- package/src/definitions/helpers/hasPermission/index.ts +9 -0
- package/src/definitions/helpers/humanizeString/index.ts +14 -0
- package/src/definitions/helpers/importCSVMapper/index.ts +15 -0
- package/src/definitions/helpers/index.ts +25 -0
- package/src/definitions/helpers/legacy-resource-transform/index.ts +30 -0
- package/src/definitions/helpers/menu/create-resource-key.ts +33 -0
- package/src/definitions/helpers/menu/create-tree.ts +87 -0
- package/src/definitions/helpers/pick-resource/index.ts +40 -0
- package/src/definitions/helpers/pickDataProvider/index.ts +29 -0
- package/src/definitions/helpers/pickNotDeprecated/index.ts +9 -0
- package/src/definitions/helpers/queryKeys/index.ts +47 -0
- package/src/definitions/helpers/redirectPage/index.ts +28 -0
- package/src/definitions/helpers/routeGenerator/index.ts +29 -0
- package/src/definitions/helpers/router/__tests__/check-by-segments.ts +24 -0
- package/src/definitions/helpers/router/__tests__/compose-route.ts +42 -0
- package/src/definitions/helpers/router/__tests__/get-action-routes-from-resource.ts +169 -0
- package/src/definitions/helpers/router/__tests__/get-default-action-path.ts +47 -0
- package/src/definitions/helpers/router/__tests__/get-parent-prefix-for-resource.ts +84 -0
- package/src/definitions/helpers/router/__tests__/get-parent-resource.ts +51 -0
- package/src/definitions/helpers/router/__tests__/is-segment-counts-same.ts +21 -0
- package/src/definitions/helpers/router/__tests__/match-resource-from-route.ts +59 -0
- package/src/definitions/helpers/router/__tests__/pick-matched-route.ts +89 -0
- package/src/definitions/helpers/router/__tests__/pick-route-params.ts +18 -0
- package/src/definitions/helpers/router/__tests__/prepare-route-params.ts +23 -0
- package/src/definitions/helpers/router/__tests__/remove-leading-trailing-slashes.ts +15 -0
- package/src/definitions/helpers/router/__tests__/split-to-segments.ts +15 -0
- package/src/definitions/helpers/router/check-by-segments.ts +28 -0
- package/src/definitions/helpers/router/compose-route.ts +30 -0
- package/src/definitions/helpers/router/get-action-routes-from-resource.ts +71 -0
- package/src/definitions/helpers/router/get-default-action-path.ts +33 -0
- package/src/definitions/helpers/router/get-parent-prefix-for-resource.ts +39 -0
- package/src/definitions/helpers/router/get-parent-resource.ts +31 -0
- package/src/definitions/helpers/router/index.ts +10 -0
- package/src/definitions/helpers/router/is-parameter.ts +6 -0
- package/src/definitions/helpers/router/is-segment-counts-same.ts +11 -0
- package/src/definitions/helpers/router/match-resource-from-route.ts +37 -0
- package/src/definitions/helpers/router/pick-matched-route.ts +61 -0
- package/src/definitions/helpers/router/pick-route-params.ts +19 -0
- package/src/definitions/helpers/router/prepare-route-params.ts +32 -0
- package/src/definitions/helpers/router/remove-leading-trailing-slashes.ts +6 -0
- package/src/definitions/helpers/router/split-to-segments.ts +7 -0
- package/src/definitions/helpers/sanitize-resource/index.ts +31 -0
- package/src/definitions/helpers/sequentialPromises/index.ts +32 -0
- package/src/definitions/helpers/treeView/createTreeView/index.ts +44 -0
- package/src/definitions/helpers/treeView/index.ts +1 -0
- package/src/definitions/helpers/useActiveAuthProvider/index.ts +30 -0
- package/src/definitions/helpers/useInfinitePagination/index.ts +30 -0
- package/src/definitions/helpers/userFriendlyResourceName/index.ts +17 -0
- package/src/definitions/helpers/userFriendlySeconds/index.ts +3 -0
- package/src/definitions/index.ts +3 -0
- package/src/definitions/table/__snapshots__/index.spec.ts.snap +7 -0
- package/src/definitions/table/index.ts +192 -0
- package/src/definitions/upload/file2Base64/index.ts +21 -0
- package/src/definitions/upload/index.ts +1 -0
- package/src/hooks/accessControl/index.ts +2 -0
- package/src/hooks/accessControl/useCan/index.ts +69 -0
- package/src/hooks/accessControl/useCanWithoutCache.ts +10 -0
- package/src/hooks/auditLog/index.ts +2 -0
- package/src/hooks/auditLog/useLog/index.ts +139 -0
- package/src/hooks/auditLog/useLogList/index.ts +55 -0
- package/src/hooks/auth/index.ts +10 -0
- package/src/hooks/auth/useForgotPassword/index.ts +174 -0
- package/src/hooks/auth/useGetIdentity/index.ts +92 -0
- package/src/hooks/auth/useInvaliteAuthStore/index.ts +13 -0
- package/src/hooks/auth/useIsAuthenticated/index.ts +80 -0
- package/src/hooks/auth/useIsExistAuthentication/index.ts +12 -0
- package/src/hooks/auth/useLogin/index.ts +220 -0
- package/src/hooks/auth/useLogout/index.ts +199 -0
- package/src/hooks/auth/useOnError/index.ts +110 -0
- package/src/hooks/auth/usePermissions/index.ts +87 -0
- package/src/hooks/auth/useRegister/index.ts +186 -0
- package/src/hooks/auth/useUpdatePassword/index.ts +215 -0
- package/src/hooks/breadcrumb/index.ts +126 -0
- package/src/hooks/data/index.ts +18 -0
- package/src/hooks/data/useApiUrl.ts +9 -0
- package/src/hooks/data/useCreate.ts +258 -0
- package/src/hooks/data/useCreateMany.ts +239 -0
- package/src/hooks/data/useCustom.ts +177 -0
- package/src/hooks/data/useCustomMutation.ts +188 -0
- package/src/hooks/data/useDataProvider.tsx +39 -0
- package/src/hooks/data/useDelete.ts +415 -0
- package/src/hooks/data/useDeleteMany.ts +442 -0
- package/src/hooks/data/useInfiniteList.ts +290 -0
- package/src/hooks/data/useList.ts +300 -0
- package/src/hooks/data/useMany.ts +202 -0
- package/src/hooks/data/useOne.ts +205 -0
- package/src/hooks/data/useUpdate.ts +488 -0
- package/src/hooks/data/useUpdateMany.ts +496 -0
- package/src/hooks/deepMemo/index.tsx +17 -0
- package/src/hooks/export/csvDownload.interface.ts +27 -0
- package/src/hooks/export/index.ts +189 -0
- package/src/hooks/form/index.ts +1 -0
- package/src/hooks/form/useForm.ts +524 -0
- package/src/hooks/import/index.tsx +336 -0
- package/src/hooks/index.ts +24 -0
- package/src/hooks/invalidate/index.tsx +62 -0
- package/src/hooks/legacy-router/index.ts +1 -0
- package/src/hooks/legacy-router/useRouterContext.ts +18 -0
- package/src/hooks/live/index.ts +4 -0
- package/src/hooks/live/useLiveMode/index.ts +12 -0
- package/src/hooks/live/usePublish/index.ts +10 -0
- package/src/hooks/live/useResourceSubscription/index.ts +99 -0
- package/src/hooks/live/useSubscription/index.ts +85 -0
- package/src/hooks/memoized/index.tsx +16 -0
- package/src/hooks/menu/index.ts +1 -0
- package/src/hooks/menu/useMenu.tsx +153 -0
- package/src/hooks/modal/index.ts +1 -0
- package/src/hooks/modal/useModal/index.tsx +29 -0
- package/src/hooks/navigation/index.ts +385 -0
- package/src/hooks/notification/index.ts +3 -0
- package/src/hooks/notification/useCancelNotification/index.tsx +16 -0
- package/src/hooks/notification/useHandleNotification/index.ts +26 -0
- package/src/hooks/notification/useNotification/index.ts +10 -0
- package/src/hooks/redirection/index.ts +56 -0
- package/src/hooks/refine/index.ts +5 -0
- package/src/hooks/refine/useMutationMode.ts +22 -0
- package/src/hooks/refine/useRefineContext.ts +41 -0
- package/src/hooks/refine/useSyncWithLocation.ts +20 -0
- package/src/hooks/refine/useTitle.tsx +15 -0
- package/src/hooks/refine/useWarnAboutChange/index.ts +32 -0
- package/src/hooks/resource/index.ts +2 -0
- package/src/hooks/resource/useResource/index.ts +151 -0
- package/src/hooks/resource/useResourceWithRoute/index.ts +27 -0
- package/src/hooks/router/index.ts +7 -0
- package/src/hooks/router/use-back/index.tsx +15 -0
- package/src/hooks/router/use-get-to-path/index.ts +60 -0
- package/src/hooks/router/use-go/index.tsx +15 -0
- package/src/hooks/router/use-link/index.tsx +17 -0
- package/src/hooks/router/use-parse/index.tsx +21 -0
- package/src/hooks/router/use-parsed/index.tsx +10 -0
- package/src/hooks/router/use-router-misuse-warning/index.ts +18 -0
- package/src/hooks/router/use-to-path/index.ts +27 -0
- package/src/hooks/show/index.ts +1 -0
- package/src/hooks/show/useShow.ts +183 -0
- package/src/hooks/translate/index.ts +3 -0
- package/src/hooks/translate/useGetLocale.ts +16 -0
- package/src/hooks/translate/useSetLocale.ts +14 -0
- package/src/hooks/translate/useTranslate.ts +40 -0
- package/src/hooks/useSelect/index.ts +280 -0
- package/src/hooks/useTable/index.ts +544 -0
- package/src/hooks/useTelemetryData/index.ts +73 -0
- package/src/index.tsx +120 -0
- package/src/interfaces/HttpError.ts +4 -0
- package/src/interfaces/actions.ts +16 -0
- package/src/interfaces/auditLog/index.ts +1 -0
- package/src/interfaces/auditLog/logData.ts +15 -0
- package/src/interfaces/auth.tsx +192 -0
- package/src/interfaces/bindings/access-control.ts +53 -0
- package/src/interfaces/bindings/auth.ts +72 -0
- package/src/interfaces/bindings/data.ts +18 -0
- package/src/interfaces/bindings/i18n.ts +29 -0
- package/src/interfaces/bindings/index.ts +24 -0
- package/src/interfaces/bindings/live.ts +56 -0
- package/src/interfaces/bindings/notifications.ts +25 -0
- package/src/interfaces/bindings/resource.ts +178 -0
- package/src/interfaces/bindings/router.ts +73 -0
- package/src/interfaces/customComponents.ts +28 -0
- package/src/interfaces/form-url-params.ts +8 -0
- package/src/interfaces/index.ts +86 -0
- package/src/interfaces/live/LiveEvent.ts +11 -0
- package/src/interfaces/live/LiveModeProps.ts +28 -0
- package/src/interfaces/live/index.ts +2 -0
- package/src/interfaces/mapDataFn.ts +3 -0
- package/src/interfaces/metaData/fields.ts +3 -0
- package/src/interfaces/metaData/index.ts +2 -0
- package/src/interfaces/metaData/metaDataQuery.ts +10 -0
- package/src/interfaces/metaData/metaQuery.ts +7 -0
- package/src/interfaces/metaData/nestedField.ts +8 -0
- package/src/interfaces/metaData/queryBuilderOptions.ts +8 -0
- package/src/interfaces/metaData/variableOptions.ts +9 -0
- package/src/interfaces/mutationMode.ts +29 -0
- package/src/interfaces/notification.ts +10 -0
- package/src/interfaces/prettify.ts +3 -0
- package/src/interfaces/queryKey.ts +23 -0
- package/src/interfaces/resourceErrorRouterParams.ts +6 -0
- package/src/interfaces/resourceRouterParams.ts +7 -0
- package/src/interfaces/successErrorNotification.ts +33 -0
- package/src/interfaces/telementry.ts +14 -0
- package/tsconfig.json +28 -0
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|