@bluecopa/react 0.1.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/README.md +200 -0
- package/dist/COOQDZLH-8ygFcp7n.js +33 -0
- package/dist/MU7WGUJF-DLX5YliY.js +42 -0
- package/dist/VREWMQAW-DGhbq4hm.js +9012 -0
- package/dist/hooks/useDataset.d.ts +10 -0
- package/dist/hooks/useDataset.d.ts.map +1 -0
- package/dist/hooks/useDatasetSample.d.ts +10 -0
- package/dist/hooks/useDatasetSample.d.ts.map +1 -0
- package/dist/hooks/useInputTable.d.ts +11 -0
- package/dist/hooks/useInputTable.d.ts.map +1 -0
- package/dist/hooks/useMetric.d.ts +10 -0
- package/dist/hooks/useMetric.d.ts.map +1 -0
- package/dist/hooks/useUser.d.ts +13 -0
- package/dist/hooks/useUser.d.ts.map +1 -0
- package/dist/index-bzN7KmNV.js +12252 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +11 -0
- package/dist/types/index.d.ts +41 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/hookFactory.d.ts +26 -0
- package/dist/utils/hookFactory.d.ts.map +1 -0
- package/dist/utils/queryUtils.d.ts +44 -0
- package/dist/utils/queryUtils.d.ts.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { UseDatasetOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for fetching dataset data using TanStack React Query
|
|
5
|
+
* @param datasetId - The ID of the dataset to fetch
|
|
6
|
+
* @param options - Query options including enabled state and cache settings
|
|
7
|
+
* @returns UseQueryResult with dataset data
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDataset(datasetId: string | null | undefined, options?: UseDatasetOptions): UseQueryResult<any, Error>;
|
|
10
|
+
//# sourceMappingURL=useDataset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataset.d.ts","sourceRoot":"","sources":["../../src/hooks/useDataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,iBAAsB,GAC9B,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAuB5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { UseDatasetOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for fetching dataset data using TanStack React Query
|
|
5
|
+
* @param datasetId - The ID of the dataset to fetch
|
|
6
|
+
* @param options - Query options including enabled state and cache settings
|
|
7
|
+
* @returns UseQueryResult with dataset data
|
|
8
|
+
*/
|
|
9
|
+
export declare function useDatasetSample(datasetId: string | null | undefined, options?: UseDatasetOptions): UseQueryResult<any, Error>;
|
|
10
|
+
//# sourceMappingURL=useDatasetSample.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDatasetSample.d.ts","sourceRoot":"","sources":["../../src/hooks/useDatasetSample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,iBAAsB,GAC9B,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAwB5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { UseInputTableOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for fetching input table data using TanStack React Query
|
|
5
|
+
* @param inputTableId - The ID of the input table to fetch
|
|
6
|
+
* @param inputTableViewId - The view ID of the input table
|
|
7
|
+
* @param options - Query options including limit parameters
|
|
8
|
+
* @returns UseQueryResult with input table data
|
|
9
|
+
*/
|
|
10
|
+
export declare function useInputTable(inputTableId: string | null | undefined, inputTableViewId: string | null | undefined, options?: UseInputTableOptions): UseQueryResult<any, Error>;
|
|
11
|
+
//# sourceMappingURL=useInputTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInputTable.d.ts","sourceRoot":"","sources":["../../src/hooks/useInputTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACvC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,OAAO,GAAE,oBAAyB,GACjC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CA0B5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { UseMetricOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for fetching metric data using TanStack React Query
|
|
5
|
+
* @param metricId - The ID of the metric to fetch
|
|
6
|
+
* @param options - Query options including enabled state and cache settings
|
|
7
|
+
* @returns UseQueryResult with metric data
|
|
8
|
+
*/
|
|
9
|
+
export declare function useMetric(metricId: string | null | undefined, options?: UseMetricOptions): UseQueryResult<any, Error>;
|
|
10
|
+
//# sourceMappingURL=useMetric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMetric.d.ts","sourceRoot":"","sources":["../../src/hooks/useMetric.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,OAAO,GAAE,gBAAqB,GAC7B,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAqB5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { UseUserOptions } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Custom hook for fetching logged-in user details using TanStack React Query
|
|
5
|
+
* @param options - Query options including enabled state and cache settings
|
|
6
|
+
* @returns UseQueryResult with user data
|
|
7
|
+
*/
|
|
8
|
+
export declare function useUser(options?: UseUserOptions): UseQueryResult<any, Error>;
|
|
9
|
+
/**
|
|
10
|
+
* Hook alias for better naming consistency
|
|
11
|
+
*/
|
|
12
|
+
export declare const useUserDetails: typeof useUser;
|
|
13
|
+
//# sourceMappingURL=useUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../src/hooks/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMtE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,OAAO,GAAE,cAAmB,GAC3B,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAiB5B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAU,CAAC"}
|