nextemos 5.9.2 → 5.9.4

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.
@@ -32,6 +32,7 @@ export interface IGetAllProductsResponse extends IResponsePaging {
32
32
  }
33
33
  export interface IProduct {
34
34
  id?: number;
35
+ countryOfOriginId?: number;
35
36
  productUrl?: string;
36
37
  routePath?: string;
37
38
  routeTitle?: string;
@@ -69,9 +69,8 @@ exports.ProductService = {
69
69
  Hierarchy: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
70
70
  return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductCategory.Hierarchy, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
71
71
  }),
72
- ProductCategory: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
73
- var _a;
74
- return (0, __1.fetchRequest)().get(exports.ProductService.Url(urls_1.default.ProductCategory.ProductCategory.replace("{id}", ((_a = data === null || data === void 0 ? void 0 : data.id) === null || _a === void 0 ? void 0 : _a.toString()) || ""), options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
72
+ GetCategoryByIdRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
73
+ return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductCategory.Hierarchy, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
75
74
  }),
76
75
  ProductType: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
77
76
  return (0, __1.fetchRequest)().post(exports.ProductService.Url(urls_1.default.ProductType.ProductType, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
@@ -4,7 +4,7 @@ export interface IProductRequest extends IRequestBase {
4
4
  flags?: string | number | string[];
5
5
  includes?: string[];
6
6
  }
7
- export interface IProductCategoryRequest extends IRequestBase {
7
+ export interface IGetCategoryByIdRequest extends IRequestBase {
8
8
  id: number;
9
9
  includes?: string[];
10
10
  }
@@ -150,7 +150,7 @@ export interface IProductService extends IService {
150
150
  Product: (data: IProductRequest, options?: IRequestInit) => Promise<IApiResponse<IProductResponse>>;
151
151
  SearchProductsRequest: (data: ISearchProductsRequest, options?: IRequestInit) => Promise<IApiResponse<ISearchProductsResponse>>;
152
152
  GetAllProductsRequest: (data: ISearchProductsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetAllProductsResponse>>;
153
- ProductCategory: (data: IProductCategoryRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryResponse>>;
153
+ GetCategoryByIdRequest: (data: IGetCategoryByIdRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryResponse>>;
154
154
  CategoryTree: (data: ICategoryTreeRequest, options?: IRequestInit) => Promise<IApiResponse<ICategoryTreeResponse>>;
155
155
  AllCategories: (data: IAllCategoriesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryAllResponse>>;
156
156
  Hierarchy: (data: IHierarchyCategoriesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryHierarchyResponse>>;
@@ -34,8 +34,8 @@ declare const _default: {
34
34
  ProductCategory: {
35
35
  All: string;
36
36
  Hierarchy: string;
37
- ProductCategory: string;
38
37
  CategoryTree: string;
38
+ GetCategoryByIdRequest: string;
39
39
  };
40
40
  ProductFavorite: string;
41
41
  ProductPriceAlert: string;
@@ -45,8 +45,8 @@ exports.default = {
45
45
  ProductCategory: {
46
46
  All: "/{language}/ProductCategory/v1/All",
47
47
  Hierarchy: "/{language}/ProductCategory/v1/Hierarchy",
48
- ProductCategory: "/{language}/ProductCategory/v1/{id}",
49
48
  CategoryTree: "/{language}/ProductCategory/v1/CategoryTree",
49
+ GetCategoryByIdRequest: "/{language}/ProductCategory/v1/GetCategoryByIdRequest",
50
50
  },
51
51
  ProductFavorite: "/{language}/ProductFavorite/v1",
52
52
  ProductPriceAlert: "/{language}/Alert/v1/ProductPriceAlerts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.9.2",
3
+ "version": "5.9.4",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",