@refinedev/core 4.7.3 → 4.8.1

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 (42) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/gh-banner/index.d.ts.map +1 -1
  3. package/dist/components/gh-banner/styles.d.ts.map +1 -1
  4. package/dist/esm/index.js +13 -7
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/hooks/auditLog/useLogList/index.d.ts +11 -5
  7. package/dist/hooks/auditLog/useLogList/index.d.ts.map +1 -1
  8. package/dist/hooks/data/useCustom.d.ts +6 -5
  9. package/dist/hooks/data/useCustom.d.ts.map +1 -1
  10. package/dist/hooks/data/useInfiniteList.d.ts +6 -5
  11. package/dist/hooks/data/useInfiniteList.d.ts.map +1 -1
  12. package/dist/hooks/data/useList.d.ts +6 -5
  13. package/dist/hooks/data/useList.d.ts.map +1 -1
  14. package/dist/hooks/data/useMany.d.ts +6 -5
  15. package/dist/hooks/data/useMany.d.ts.map +1 -1
  16. package/dist/hooks/data/useOne.d.ts +6 -5
  17. package/dist/hooks/data/useOne.d.ts.map +1 -1
  18. package/dist/hooks/form/useForm.d.ts +6 -6
  19. package/dist/hooks/form/useForm.d.ts.map +1 -1
  20. package/dist/hooks/show/useShow.d.ts +9 -4
  21. package/dist/hooks/show/useShow.d.ts.map +1 -1
  22. package/dist/hooks/useSelect/index.d.ts +19 -6
  23. package/dist/hooks/useSelect/index.d.ts.map +1 -1
  24. package/dist/hooks/useTable/index.d.ts +3 -3
  25. package/dist/hooks/useTable/index.d.ts.map +1 -1
  26. package/dist/iife/index.js +13 -7
  27. package/dist/iife/index.js.map +1 -1
  28. package/dist/index.js +13 -7
  29. package/dist/index.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/components/gh-banner/index.tsx +6 -1
  32. package/src/components/gh-banner/styles.ts +8 -1
  33. package/src/hooks/auditLog/useLogList/index.ts +17 -7
  34. package/src/hooks/data/useCustom.ts +25 -11
  35. package/src/hooks/data/useInfiniteList.ts +23 -11
  36. package/src/hooks/data/useList.ts +20 -9
  37. package/src/hooks/data/useMany.ts +35 -8
  38. package/src/hooks/data/useOne.ts +21 -8
  39. package/src/hooks/form/useForm.ts +18 -8
  40. package/src/hooks/show/useShow.ts +22 -6
  41. package/src/hooks/useSelect/index.ts +35 -9
  42. package/src/hooks/useTable/index.ts +19 -6
@@ -1,16 +1,22 @@
1
1
  import { UseQueryResult, UseQueryOptions } from "@tanstack/react-query";
2
- import { HttpError, MetaDataQuery } from "../../../interfaces";
3
- export declare type UseLogProps<TData, TError> = {
2
+ import { HttpError, MetaQuery } from "../../../interfaces";
3
+ export declare type UseLogProps<TQueryFnData, TError, TData> = {
4
4
  resource: string;
5
5
  action?: string;
6
6
  meta?: Record<number | string, any>;
7
7
  author?: Record<number | string, any>;
8
- queryOptions?: UseQueryOptions<TData, TError>;
9
- metaData?: MetaDataQuery;
8
+ queryOptions?: UseQueryOptions<TQueryFnData, TError, TData>;
9
+ metaData?: MetaQuery;
10
10
  };
11
11
  /**
12
12
  * useLogList is used to get and filter audit logs.
13
+ *
13
14
  * @see {@link https://refine.dev/docs/core/hooks/audit-log/useLogList} for more details.
15
+ *
16
+ * @typeParam TQueryFnData - Result data returned by the query function.
17
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
18
+ * @typeParam TData - Result data returned by the `select` function. Defaults to `TQueryFnData`
19
+ *
14
20
  */
15
- export declare const useLogList: <TData = any, TError extends HttpError = HttpError>({ resource, action, meta, author, metaData, queryOptions, }: UseLogProps<TData, TError>) => UseQueryResult<TData, unknown>;
21
+ export declare const useLogList: <TQueryFnData = any, TError extends HttpError = HttpError, TData = TQueryFnData>({ resource, action, meta, author, metaData, queryOptions, }: UseLogProps<TQueryFnData, TError, TData>) => UseQueryResult<TData, unknown>;
16
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE3D,oBAAY,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IACnD,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,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,2NAkCtB,CAAC"}
@@ -11,7 +11,7 @@ interface UseCustomConfig<TQuery, TPayload> {
11
11
  payload?: TPayload;
12
12
  headers?: {};
13
13
  }
14
- export declare type UseCustomProps<TData, TError, TQuery, TPayload> = {
14
+ export declare type UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData> = {
15
15
  /**
16
16
  * request's URL
17
17
  */
@@ -27,7 +27,7 @@ export declare type UseCustomProps<TData, TError, TQuery, TPayload> = {
27
27
  /**
28
28
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options"
29
29
  */
30
- queryOptions?: UseQueryOptions<CustomResponse<TData>, TError>;
30
+ queryOptions?: UseQueryOptions<CustomResponse<TQueryFnData>, TError, CustomResponse<TData>>;
31
31
  /**
32
32
  * meta data for `dataProvider`
33
33
  */
@@ -49,12 +49,13 @@ export declare type UseCustomProps<TData, TError, TQuery, TPayload> = {
49
49
  *
50
50
  * @see {@link https://refine.dev/docs/core/hooks/data/useCustom} for more details.
51
51
  *
52
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
53
- * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
52
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
53
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
54
54
  * @typeParam TQuery - Values for query params
55
55
  * @typeParam TPayload - Values for params
56
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
56
57
  *
57
58
  */
58
- export declare const useCustom: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TQuery = unknown, TPayload = unknown>({ url, method, config, queryOptions, successNotification, errorNotification, meta, metaData, dataProviderName, }: UseCustomProps<TData, TError, TQuery, TPayload>) => QueryObserverResult<CustomResponse<TData>, TError>;
59
+ export declare const useCustom: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TQuery = unknown, TPayload = unknown, TData extends BaseRecord = TQueryFnData>({ url, method, config, queryOptions, successNotification, errorNotification, meta, metaData, dataProviderName, }: UseCustomProps<TQueryFnData, TError, TQuery, TPayload, TData>) => QueryObserverResult<CustomResponse<TData>, TError>;
59
60
  export {};
60
61
  //# sourceMappingURL=useCustom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCustom.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useCustom.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EACH,UAAU,EACV,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,SAAS,EACT,QAAQ,EACR,wBAAwB,EAC3B,MAAM,kBAAkB,CAAC;AAE1B,UAAU,eAAe,CAAC,MAAM,EAAE,QAAQ;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,EAAE,CAAC;CAChB;AAED,oBAAY,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,IAAI;IAC1D;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IACzE;;OAEG;IACH,MAAM,CAAC,EAAE,eA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QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IACzE;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAC1B,cAAc,CAAC,YAAY,CAAC,EAC5B,MAAM,EACN,cAAc,CAAC,KAAK,CAAC,CACxB,CAAC;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,wBAAwB,CACxB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,CAAC,CAC1D,CAAC;AAEF;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,SAAS,4YAsGrB,CAAC"}
@@ -44,7 +44,7 @@ declare type BaseInfiniteListProps = {
44
44
  */
45
45
  dataProviderName?: string;
46
46
  };
47
- export declare type UseInfiniteListProps<TData, TError> = {
47
+ export declare type UseInfiniteListProps<TQueryFnData, TError, TData> = {
48
48
  /**
49
49
  * Resource name for API data interactions
50
50
  */
@@ -52,7 +52,7 @@ export declare type UseInfiniteListProps<TData, TError> = {
52
52
  /**
53
53
  * Tanstack Query's [useInfiniteQuery](https://tanstack.com/query/v4/docs/react/reference/useInfiniteQuery) options
54
54
  */
55
- queryOptions?: UseInfiniteQueryOptions<GetListResponse<TData>, TError>;
55
+ queryOptions?: UseInfiniteQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
56
56
  } & BaseInfiniteListProps & SuccessErrorNotification<InfiniteData<GetListResponse<TData>>, TError, Prettify<BaseInfiniteListProps>> & LiveModeProps;
57
57
  /**
58
58
  * `useInfiniteList` is a modified version of `react-query`'s {@link https://tanstack.com/query/latest/docs/react/guides/infinite-queries `useInfiniteQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
@@ -61,10 +61,11 @@ export declare type UseInfiniteListProps<TData, TError> = {
61
61
  *
62
62
  * @see {@link https://refine.dev/docs/core/hooks/data/useInfiniteList} for more details.
63
63
  *
64
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
65
- * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
64
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
65
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
66
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
66
67
  *
67
68
  */
68
- export declare const useInfiniteList: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseInfiniteListProps<TData, TError>) => InfiniteQueryObserverResult<GetListResponse<TData>, TError>;
69
+ export declare const useInfiniteList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseInfiniteListProps<TQueryFnData, TError, TData>) => InfiniteQueryObserverResult<GetListResponse<TData>, TError>;
69
70
  export {};
70
71
  //# sourceMappingURL=useInfiniteList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AAAA,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kXA6L3B,CAAC"}
1
+ {"version":3,"file":"useInfiniteList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useInfiniteList.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,uBAAuB,EACvB,2BAA2B,EAC3B,YAAY,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAmB1B,MAAM,WAAW,qBAAqB;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED,aAAK,qBAAqB,GAAG;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,oBAAY,oBAAoB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IAC5D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAClC,eAAe,CAAC,YAAY,CAAC,EAC7B,MAAM,EACN,eAAe,CAAC,KAAK,CAAC,CACzB,CAAC;CACL,GAAG,qBAAqB,GACrB,wBAAwB,CACpB,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EACpC,MAAM,EACN,QAAQ,CAAC,qBAAqB,CAAC,CAClC,GACD,aAAa,CAAC;AAElB;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,eAAe,gbAmM3B,CAAC"}
@@ -44,7 +44,7 @@ export declare type BaseListProps = {
44
44
  */
45
45
  dataProviderName?: string;
46
46
  };
47
- export declare type UseListProps<TData, TError> = {
47
+ export declare type UseListProps<TQueryFnData, TError, TData> = {
48
48
  /**
49
49
  * Resource name for API data interactions
50
50
  */
@@ -52,7 +52,7 @@ export declare type UseListProps<TData, TError> = {
52
52
  /**
53
53
  * Tanstack Query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
54
54
  */
55
- queryOptions?: UseQueryOptions<GetListResponse<TData>, TError>;
55
+ queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
56
56
  } & BaseListProps & SuccessErrorNotification<GetListResponse<TData>, TError, Prettify<BaseListProps>> & LiveModeProps;
57
57
  /**
58
58
  * `useList` is a modified version of `react-query`'s {@link https://react-query.tanstack.com/guides/queries `useQuery`} used for retrieving items from a `resource` with pagination, sort, and filter configurations.
@@ -61,9 +61,10 @@ export declare type UseListProps<TData, TError> = {
61
61
  *
62
62
  * @see {@link https://refine.dev/docs/core/hooks/data/useList} for more details.
63
63
  *
64
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
65
- * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
64
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
65
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
66
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
66
67
  *
67
68
  */
68
- export declare const useList: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseListProps<TData, TError>) => QueryObserverResult<GetListResponse<TData>, TError>;
69
+ export declare const useList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, config, filters, hasPagination, pagination, sorters, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseListProps<TQueryFnData, TError, TData>) => QueryObserverResult<GetListResponse<TData>, TError>;
69
70
  //# sourceMappingURL=useList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useList.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAiB1B,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED,oBAAY,aAAa,GAAG;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,oBAAY,YAAY,CAAC,KAAK,EAAE,MAAM,IAAI;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;CAClE,GAAG,aAAa,GACb,wBAAwB,CACpB,eAAe,CAAC,KAAK,CAAC,EACtB,MAAM,EACN,QAAQ,CAAC,aAAa,CAAC,CAC1B,GACD,aAAa,CAAC;AAElB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,kWAyMnB,CAAC"}
1
+ {"version":3,"file":"useList.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useList.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACH,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAiB1B,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB;AAED,oBAAY,aAAa,GAAG;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,oBAAY,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IACpD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAC1B,eAAe,CAAC,YAAY,CAAC,EAC7B,MAAM,EACN,eAAe,CAAC,KAAK,CAAC,CACzB,CAAC;CACL,GAAG,aAAa,GACb,wBAAwB,CACpB,eAAe,CAAC,KAAK,CAAC,EACtB,MAAM,EACN,QAAQ,CAAC,aAAa,CAAC,CAC1B,GACD,aAAa,CAAC;AAElB;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,OAAO,gaA8MnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { BaseRecord, BaseKey, GetManyResponse, HttpError, LiveModeProps, SuccessErrorNotification, MetaQuery } from "../../interfaces";
3
- export declare type UseManyProps<TData, TError> = {
3
+ export declare type UseManyProps<TQueryFnData, TError, TData> = {
4
4
  /**
5
5
  * Resource name for API data interactions
6
6
  */
@@ -13,7 +13,7 @@ export declare type UseManyProps<TData, TError> = {
13
13
  /**
14
14
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
15
15
  */
16
- queryOptions?: UseQueryOptions<GetManyResponse<TData>, TError>;
16
+ queryOptions?: UseQueryOptions<GetManyResponse<TQueryFnData>, TError, GetManyResponse<TData>>;
17
17
  /**
18
18
  * Metadata query for `dataProvider`,
19
19
  */
@@ -36,9 +36,10 @@ export declare type UseManyProps<TData, TError> = {
36
36
  *
37
37
  * @see {@link https://refine.dev/docs/core/hooks/data/useMany} for more details.
38
38
  *
39
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
40
- * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/core/interfaceReferences#httperror `HttpError`}
39
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
40
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
41
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
41
42
  *
42
43
  */
43
- export declare const useMany: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, ids, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseManyProps<TData, TError>) => QueryObserverResult<GetManyResponse<TData>, unknown>;
44
+ export declare const useMany: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, ids, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseManyProps<TQueryFnData, TError, TData>) => QueryObserverResult<GetManyResponse<TData>, unknown>;
44
45
  //# sourceMappingURL=useMany.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMany.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useMany.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,UAAU,EACV,OAAO,EACP,eAAe,EACf,SAAS,EACT,aAAa,EACb,wBAAwB,EACxB,SAAS,EACZ,MAAM,kBAAkB,CAAC;AAiB1B,oBAAY,YAAY,CAAC,KAAK,EAAE,MAAM,IAAI;IACtC;;OAEG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AAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GACnE,aAAa,CAAC;AAElB;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,OAAO,iXAqJnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { GetOneResponse, HttpError, BaseRecord, BaseKey, LiveModeProps, SuccessErrorNotification, MetaQuery, Prettify } from "../../interfaces";
3
- export declare type UseOneProps<TData, TError> = {
3
+ export declare type UseOneProps<TQueryFnData, TError, TData> = {
4
4
  /**
5
5
  * Resource name for API data interactions
6
6
  */
@@ -13,7 +13,7 @@ export declare type UseOneProps<TData, TError> = {
13
13
  /**
14
14
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
15
15
  */
16
- queryOptions?: UseQueryOptions<GetOneResponse<TData>, TError>;
16
+ queryOptions?: UseQueryOptions<GetOneResponse<TQueryFnData>, TError, GetOneResponse<TData>>;
17
17
  /**
18
18
  * Metadata query for `dataProvider`,
19
19
  */
@@ -38,9 +38,10 @@ export declare type UseOneProps<TData, TError> = {
38
38
  *
39
39
  * @see {@link https://refine.dev/docs/core/hooks/data/useOne} for more details.
40
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`}
41
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
42
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
43
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
43
44
  *
44
45
  */
45
- export declare const useOne: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, id, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseOneProps<TData, TError>) => QueryObserverResult<GetOneResponse<TData>, unknown>;
46
+ export declare const useOne: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, id, queryOptions, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, liveParams, dataProviderName, }: UseOneProps<TQueryFnData, TError, TData>) => QueryObserverResult<GetOneResponse<TData>, unknown>;
46
47
  //# sourceMappingURL=useOne.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOne.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useOne.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,aAAa,EACb,wBAAwB,EACxB,SAAS,EACT,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAgB1B,oBAAY,WAAW,CAAC,KAAK,EAAE,MAAM,IAAI;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,wBAAwB,CACxB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,QAAQ,CAAC;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,CACzC,GACG,aAAa,CAAC;AAElB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,gTAoIlB,CAAC"}
1
+ {"version":3,"file":"useOne.d.ts","sourceRoot":"","sources":["../../../src/hooks/data/useOne.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,mBAAmB,EAEnB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,cAAc,EACd,SAAS,EACT,UAAU,EACV,OAAO,EACP,aAAa,EACb,wBAAwB,EACxB,SAAS,EACT,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAgB1B,oBAAY,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI;IACnD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAC1B,cAAc,CAAC,YAAY,CAAC,EAC5B,MAAM,EACN,cAAc,CAAC,KAAK,CAAC,CACxB,CAAC;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,wBAAwB,CACxB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,QAAQ,CAAC;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,CACzC,GACG,aAAa,CAAC;AAElB;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,MAAM,8WA2IlB,CAAC"}
@@ -10,7 +10,7 @@ export declare type ActionParams = {
10
10
  */
11
11
  action?: FormAction;
12
12
  };
13
- declare type ActionFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
13
+ declare type ActionFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = {
14
14
  /**
15
15
  * Resource name for API data interactions
16
16
  * @default Resource name that it reads from route
@@ -67,7 +67,7 @@ declare type ActionFormProps<TData extends BaseRecord = BaseRecord, TError exten
67
67
  /**
68
68
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options of useOne hook used while in edit mode.
69
69
  */
70
- queryOptions?: UseQueryOptions<GetOneResponse<TData>, HttpError>;
70
+ queryOptions?: UseQueryOptions<GetOneResponse<TData>, TError, GetOneResponse<TSelectData>>;
71
71
  /**
72
72
  * react-query's [useMutation](https://tanstack.com/query/v4/docs/reference/useMutation) options of useCreate hook used while submitting in create and clone modes.
73
73
  */
@@ -80,11 +80,11 @@ declare type ActionFormProps<TData extends BaseRecord = BaseRecord, TError exten
80
80
  id: BaseKey;
81
81
  values: TVariables;
82
82
  } | TVariables> & ActionParams & LiveModeProps;
83
- export declare type UseFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = ActionFormProps<TData, TError, TVariables> & ActionParams & LiveModeProps;
84
- export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = {
83
+ export declare type UseFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = ActionFormProps<TData, TError, TVariables, TSelectData> & ActionParams & LiveModeProps;
84
+ export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = {
85
85
  id?: BaseKey;
86
86
  setId: Dispatch<SetStateAction<BaseKey | undefined>>;
87
- queryResult?: QueryObserverResult<GetOneResponse<TData>>;
87
+ queryResult?: QueryObserverResult<GetOneResponse<TSelectData>>;
88
88
  mutationResult: UseUpdateReturnType<TData, TError, TVariables> | UseCreateReturnType<TData, TError, TVariables>;
89
89
  formLoading: boolean;
90
90
  onFinish: (values: TVariables) => Promise<CreateResponse<TData> | UpdateResponse<TData> | void>;
@@ -101,6 +101,6 @@ export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TEr
101
101
  *
102
102
  *
103
103
  */
104
- export declare const useForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ resource: resourceFromProps, action: actionFromProps, id: idFromProps, onMutationSuccess, onMutationError, redirect: redirectFromProps, successNotification, errorNotification, meta, metaData, mutationMode: mutationModeProp, liveMode, onLiveEvent, liveParams, undoableTimeout, dataProviderName, invalidates, queryOptions, createMutationOptions, updateMutationOptions, }?: UseFormProps<TData, TError, TVariables>) => UseFormReturnType<TData, TError, TVariables>;
104
+ export declare const useForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData>({ resource: resourceFromProps, action: actionFromProps, id: idFromProps, onMutationSuccess, onMutationError, redirect: redirectFromProps, successNotification, errorNotification, meta, metaData, mutationMode: mutationModeProp, liveMode, onLiveEvent, liveParams, undoableTimeout, dataProviderName, invalidates, queryOptions, createMutationOptions, updateMutationOptions, }?: UseFormProps<TData, TError, TVariables, TSelectData>) => UseFormReturnType<TData, TError, TVariables, TSelectData>;
105
105
  export {};
106
106
  //# sourceMappingURL=useForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/form/useForm.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAe7E,OAAO,EACH,UAAU,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EAEb,cAAc,EACd,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,OAAO,EACP,UAAU,EACV,UAAU,EAEV,SAAS,EACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEH,cAAc,EACd,mBAAmB,EACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA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,GACvD,YAAY,GACZ,aAAa,CAAC;AAElB,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,WAAW,SAAS,UAAU,GAAG,KAAK,IACtC;IACA,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,mBAAmB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;IAC/D,cAAc,EACR,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC9C,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CACN,MAAM,EAAE,UAAU,KACjB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;IACnE,QAAQ,EAAE,CACN,QAAQ,EAAE,cAAc,EACxB,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,EACpC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAC5C,IAAI,CAAC;CACb,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,gnBAkWnB,CAAC"}
@@ -6,7 +6,7 @@ export declare type useShowReturnType<TData extends BaseRecord = BaseRecord> = {
6
6
  showId?: BaseKey;
7
7
  setShowId: React.Dispatch<React.SetStateAction<BaseKey | undefined>>;
8
8
  };
9
- export declare type useShowProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError> = {
9
+ export declare type useShowProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData> = {
10
10
  /**
11
11
  * Resource name for API data interactions
12
12
  * @default Reads `:resource` from the URL
@@ -20,7 +20,7 @@ export declare type useShowProps<TData extends BaseRecord = BaseRecord, TError e
20
20
  /**
21
21
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
22
22
  */
23
- queryOptions?: UseQueryOptions<GetOneResponse<TData>, TError>;
23
+ queryOptions?: UseQueryOptions<GetOneResponse<TQueryFnData>, TError, GetOneResponse<TData>>;
24
24
  /**
25
25
  * Additional meta data to pass to the data provider's `getOne`
26
26
  */
@@ -41,9 +41,14 @@ export declare type useShowProps<TData extends BaseRecord = BaseRecord, TError e
41
41
  /**
42
42
  * `useShow` hook allows you to fetch the desired record.
43
43
  * It uses `getOne` method as query function from the dataProvider that is
44
- * passed to {@link https://refine.dev/docs/api-references/components/refine-config `<Refine>`}.
44
+ * passed to {@link https://refine.dev/docs/api-reference/core/components/refine-config/ `<Refine>`}.
45
45
  *
46
46
  * @see {@link https://refine.dev/docs/core/hooks/show/useShow} for more details.
47
+ *
48
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
49
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
50
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
51
+ *
47
52
  */
48
- export declare const useShow: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource: resourceFromProp, id, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, dataProviderName, queryOptions, }?: useShowProps<TData, TError>) => useShowReturnType<TData>;
53
+ export declare const useShow: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource: resourceFromProp, id, successNotification, errorNotification, meta, metaData, liveMode, onLiveEvent, dataProviderName, queryOptions, }?: useShowProps<TQueryFnData, TError, TData>) => useShowReturnType<TData>;
49
54
  //# sourceMappingURL=useShow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useShow.d.ts","sourceRoot":"","sources":["../../../src/hooks/show/useShow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAK7E,OAAO,EAEH,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,aAAa,EACb,OAAO,EACP,SAAS,EAET,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAO1B,oBAAY,iBAAiB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACnE,WAAW,EAAE,mBAAmB,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;CACxE,CAAC;AAEF,oBAAY,YAAY,CACpB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,IACpC;IACA;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,aAAa,GACb,wBAAwB,CACpB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,QAAQ,CAAC;IAAE,EAAE,CAAC,EAA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Aa,GACb,wBAAwB,CACpB,cAAc,CAAC,KAAK,CAAC,EACrB,MAAM,EACN,QAAQ,CAAC;IAAE,EAAE,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,CACzC,CAAC;AAEN;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,OAAO,2VA0HnB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
2
2
  import { CrudSorting, Option, BaseRecord, GetManyResponse, GetListResponse, CrudFilters, SuccessErrorNotification, HttpError, LiveModeProps, BaseKey, Pagination, MetaQuery, Prettify } from "../../interfaces";
3
3
  import { BaseListProps } from "../data/useList";
4
- export declare type UseSelectProps<TData, TError> = {
4
+ export declare type UseSelectProps<TQueryFnData, TError, TData> = {
5
5
  /**
6
6
  * Resource name for API data interactions
7
7
  */
@@ -10,12 +10,12 @@ export declare type UseSelectProps<TData, TError> = {
10
10
  * Set the option's value
11
11
  * @default `"title"`
12
12
  */
13
- optionLabel?: keyof TData extends string ? keyof TData : never;
13
+ optionLabel?: keyof TQueryFnData extends string ? keyof TQueryFnData : never;
14
14
  /**
15
15
  * Set the option's label value
16
16
  * @default `"id"`
17
17
  */
18
- optionValue?: keyof TData extends string ? keyof TData : never;
18
+ optionValue?: keyof TQueryFnData extends string ? keyof TQueryFnData : never;
19
19
  /**
20
20
  * Allow us to sort the options
21
21
  * @deprecated Use `sorters` instead
@@ -41,7 +41,7 @@ export declare type UseSelectProps<TData, TError> = {
41
41
  /**
42
42
  * react-query [useQuery](https://react-query.tanstack.com/reference/useQuery) options
43
43
  */
44
- queryOptions?: UseQueryOptions<GetListResponse<TData>, TError>;
44
+ queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
45
45
  /**
46
46
  * Pagination option from [`useList()`](/docs/api-reference/core/hooks/data/useList/)
47
47
  * @type { current?: number; pageSize?: number;}
@@ -64,7 +64,7 @@ export declare type UseSelectProps<TData, TError> = {
64
64
  /**
65
65
  * react-query [useQuery](https://react-query.tanstack.com/reference/useQuery) options
66
66
  */
67
- defaultValueQueryOptions?: UseQueryOptions<GetManyResponse<TData>, TError>;
67
+ defaultValueQueryOptions?: UseQueryOptions<GetManyResponse<TQueryFnData>, TError>;
68
68
  /**
69
69
  * If defined, this callback allows us to override all filters for every search request.
70
70
  * @default `undefined`
@@ -97,5 +97,18 @@ export declare type UseSelectReturnType<TData extends BaseRecord = BaseRecord> =
97
97
  onSearch: (value: string) => void;
98
98
  options: Option[];
99
99
  };
100
- export declare const useSelect: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>(props: UseSelectProps<TData, TError>) => UseSelectReturnType<TData>;
100
+ /**
101
+ * `useSelect` hook is used to fetch data from the dataProvider and return the options for the select box.
102
+ *
103
+ * It uses `getList` method as query function from the dataProvider that is
104
+ * passed to {@link https://refine.dev/docs/api-reference/core/components/refine-config/ `<Refine>`}.
105
+ *
106
+ * @see {@link https://refine.dev/docs/core/hooks/useSelect} for more details.
107
+ *
108
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
109
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
110
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
111
+ *
112
+ */
113
+ export declare const useSelect: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>(props: UseSelectProps<TQueryFnData, TError, TData>) => UseSelectReturnType<TData>;
101
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSelect/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,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Ae,CAAC,KAAK,CAAC,EACtB,MAAM,EACN,QAAQ,CAAC,aAAa,CAAC,CAC1B,GACG,aAAa,CAAC;AAElB,oBAAY,mBAAmB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACrE,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,uBAAuB,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,SAAS,iNAyJrB,CAAC"}
@@ -3,7 +3,7 @@ import { QueryObserverResult, UseQueryOptions } from "@tanstack/react-query";
3
3
  import { BaseRecord, CrudFilters, CrudSorting, GetListResponse, SuccessErrorNotification, HttpError, MetaQuery, LiveModeProps, Pagination, Prettify } from "../../interfaces";
4
4
  import { BaseListProps } from "../data/useList";
5
5
  declare type SetFilterBehavior = "merge" | "replace";
6
- export declare type useTableProps<TData, TError> = {
6
+ export declare type useTableProps<TQueryFnData, TError, TData> = {
7
7
  /**
8
8
  * Resource name for API data interactions
9
9
  * @default Resource name that it reads from route
@@ -100,7 +100,7 @@ export declare type useTableProps<TData, TError> = {
100
100
  /**
101
101
  * react-query's [useQuery](https://tanstack.com/query/v4/docs/reference/useQuery) options
102
102
  */
103
- queryOptions?: UseQueryOptions<GetListResponse<TData>, TError>;
103
+ queryOptions?: UseQueryOptions<GetListResponse<TQueryFnData>, TError, GetListResponse<TData>>;
104
104
  /**
105
105
  * Metadata query for dataProvider
106
106
  */
@@ -149,6 +149,6 @@ export declare type useTableReturnType<TData extends BaseRecord = BaseRecord, TE
149
149
  setPageSize: ReactSetState<useTableReturnType["pageSize"]>;
150
150
  pageCount: number;
151
151
  };
152
- export declare function useTable<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ initialCurrent, initialPageSize, hasPagination, pagination, initialSorter, permanentSorter, defaultSetFilterBehavior, initialFilter, permanentFilter, filters: filtersFromProp, sorters: sortersFromProp, syncWithLocation: syncWithLocationProp, resource: resourceFromProp, successNotification, errorNotification, queryOptions, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useTableProps<TData, TError>): useTableReturnType<TData, TError>;
152
+ export declare function useTable<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ initialCurrent, initialPageSize, hasPagination, pagination, initialSorter, permanentSorter, defaultSetFilterBehavior, initialFilter, permanentFilter, filters: filtersFromProp, sorters: sortersFromProp, syncWithLocation: syncWithLocationProp, resource: resourceFromProp, successNotification, errorNotification, queryOptions, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useTableProps<TQueryFnData, TError, TData>): useTableReturnType<TData, TError>;
153
153
  export {};
154
154
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA0B7E,OAAO,EACH,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,SAAS,EACT,SAAS,EACT,aAAa,EACb,UAAU,EACV,QAAQ,EACX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,aAAK,iBAAiB,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7C,oBAAY,aAAa,CAAC,KAAK,EAAE,MAAM,IAAI;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,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