@omniumretail/shared-resources 0.1.55 → 0.1.57

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.
@@ -4,7 +4,8 @@ export interface ProductsByStoreProps extends UseQueryOptions<ResponseList<"Stoc
4
4
  reference: string;
5
5
  storeCode: string;
6
6
  hasStock?: boolean;
7
+ filterColor?: boolean;
7
8
  sortBy?: string;
8
9
  sortDirection?: string;
9
10
  }
10
- export declare const getProductsByStore: ({ reference, storeCode, hasStock, sortBy, sortDirection }: ProductsByStoreProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"StockList", AsvProductsByStore>, unknown>;
11
+ export declare const getProductsByStore: ({ reference, storeCode, hasStock, filterColor, sortBy, sortDirection }: ProductsByStoreProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"StockList", AsvProductsByStore>, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.55",
3
+ "version": "0.1.57",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -8,10 +8,10 @@ export interface RfidQueryHookProps extends UseQueryOptions<ResponseList<"Barcod
8
8
 
9
9
  export const getRfidQueryHook = ({ delay, ...options }: RfidQueryHookProps) => {
10
10
  return useQuery(
11
- ['ASTT_RFID', delay],
11
+ ['ASTT_RFID', delay, options],
12
12
  () => get<ResponseList<"Barcodes", Rfid>>('/ASTT/RFID', {
13
13
  pDelay: delay|| 3,
14
- options
15
14
  }),
15
+ options
16
16
  );
17
17
  }
@@ -6,17 +6,19 @@ export interface ProductsByStoreProps extends UseQueryOptions<ResponseList<"Stoc
6
6
  reference: string;
7
7
  storeCode: string;
8
8
  hasStock?: boolean;
9
+ filterColor?: boolean;
9
10
  sortBy?: string;
10
11
  sortDirection?: string;
11
12
  }
12
13
 
13
- export const getProductsByStore = ({ reference, storeCode, hasStock, sortBy, sortDirection }: ProductsByStoreProps) => {
14
+ export const getProductsByStore = ({ reference, storeCode, hasStock, filterColor, sortBy, sortDirection }: ProductsByStoreProps) => {
14
15
  return useQuery(
15
- ['ASV_PRODUCT_BY_STORE', reference, storeCode, hasStock, sortBy, sortDirection],
16
+ ['ASV_PRODUCT_BY_STORE', reference, storeCode, hasStock, filterColor, sortBy, sortDirection],
16
17
  () => get<ResponseList<"StockList", AsvProductsByStore>>('/ASV/Products', {
17
18
  pReference: reference,
18
19
  pStoreCode: storeCode,
19
20
  pHasStock: hasStock,
21
+ pRefColor: filterColor,
20
22
  pSortBy: sortBy,
21
23
  pSortDirection: sortDirection
22
24
  }),