@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
|
|
2
|
-
export declare const useProductsByRefQueryHook: (productRef: string) => import("@tanstack/react-query").UseQueryResult<
|
|
1
|
+
import { Product } from '../../../';
|
|
2
|
+
export declare const useProductsByRefQueryHook: (productRef: string) => import("@tanstack/react-query").UseQueryResult<Product, unknown>;
|
package/package.json
CHANGED
|
@@ -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<
|
|
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;
|