@omniumretail/shared-resources 0.1.18 → 0.1.20

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.
@@ -1,2 +1,2 @@
1
- import { Product, ResponseList } from '../../../';
2
- export declare const useProductsByRefQueryHook: (productRef: string) => import("@tanstack/react-query").UseQueryResult<ResponseList<"", Product>, unknown>;
1
+ import { Product } from '../../../';
2
+ export declare const useProductsByRefQueryHook: (productRef: string) => import("@tanstack/react-query").UseQueryResult<Product, unknown>;
@@ -6,6 +6,7 @@ export interface Product {
6
6
  CategoryId: string;
7
7
  Variants: ProductItem[];
8
8
  Images: string[];
9
+ Reference: string;
9
10
  }
10
11
  export interface ProductItem {
11
12
  SKU: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -4,7 +4,6 @@ import { useQuery } from '@tanstack/react-query';
4
4
  export const useProductsByRefQueryHook = (productRef: string) => {
5
5
  return useQuery(
6
6
  ['PRODUCT_BY_REF', productRef],
7
- () => get<ResponseList<"", Product>>(`/Recommendations/Products/${productRef}`)
7
+ () => get<Product>(`/Recommendations/Products/${productRef}`)
8
8
  );
9
9
  };
10
-
@@ -1,4 +1,3 @@
1
-
2
1
  export interface Product {
3
2
  Id: string;
4
3
  Name: string;
@@ -7,8 +6,8 @@ export interface Product {
7
6
  CategoryId: string;
8
7
  Variants: ProductItem[];
9
8
  Images: string[];
9
+ Reference: string;
10
10
  }
11
-
12
11
  export interface ProductItem {
13
12
  SKU: string;
14
13
  Size: string;