nextemos 5.1.23 → 5.2.1

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.
@@ -297,13 +297,13 @@ export interface IProductType {
297
297
  isAggregated: boolean;
298
298
  extensionData: any;
299
299
  }
300
- export interface IGetFavoritesResponse extends IResponse {
300
+ export interface IGetFavoritesResponse extends IResponsePaging {
301
301
  data: IProductFavorite[];
302
302
  }
303
- export interface IGetPriceAlertsResponse extends IResponse {
303
+ export interface IGetPriceAlertsResponse extends IResponsePaging {
304
304
  data: IProductPriceAlert[];
305
305
  }
306
- export interface IGetStockAlertsResponse extends IResponse {
306
+ export interface IGetStockAlertsResponse extends IResponsePaging {
307
307
  data: IProductStockAlert[];
308
308
  }
309
309
  export interface IProductFavorite {
@@ -166,6 +166,7 @@ export interface IPaymentType {
166
166
  paymentMethod: number;
167
167
  paymentMethodProviderType: string;
168
168
  order: number;
169
+ isHidden: boolean;
169
170
  }
170
171
  export interface ICoupon {
171
172
  id: number;
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IRequestInit, ICategoryTreeResponse, IGetAllProductsResponse, IProductCategoryResponse, IProductResponse, ISearchProductsResponse, IProductCategoryAllResponse, IProductCategoryHierarchyResponse, IService, IProductTypeResponse, IProductTypeListResponse, IResponse, IGetFavoritesResponse, IRequestBase, IGetPriceAlertsResponse, IGetStockAlertsResponse } from '../..';
1
+ import { IApiResponse, IRequestInit, ICategoryTreeResponse, IGetAllProductsResponse, IProductCategoryResponse, IProductResponse, ISearchProductsResponse, IProductCategoryAllResponse, IProductCategoryHierarchyResponse, IService, IProductTypeResponse, IProductTypeListResponse, IResponse, IGetFavoritesResponse, IRequestBase, IGetPriceAlertsResponse, IGetStockAlertsResponse } from "../..";
2
2
  export interface IProductRequest extends IRequestBase {
3
3
  id: number;
4
4
  flags?: string | number | string[];
@@ -65,7 +65,7 @@ export interface ICategoryTreeRequest extends IRequestBase {
65
65
  categoryId?: number;
66
66
  includes?: string[];
67
67
  levelCount?: number;
68
- ReturnProductCounts?: 'true' | 'false';
68
+ ReturnProductCounts?: "true" | "false";
69
69
  }
70
70
  export interface IAllCategoriesRequest extends IRequestBase {
71
71
  categoryId?: number;
@@ -92,6 +92,8 @@ export interface IProductTypeListRequest extends IRequestBase {
92
92
  includes?: string[];
93
93
  }
94
94
  export interface IGetFavoritesRequest extends IRequestBase {
95
+ currentPage?: number;
96
+ pageSize?: number;
95
97
  }
96
98
  export interface IAddFavoritesRequest extends IRequestBase {
97
99
  productIds: number[];
@@ -100,6 +102,8 @@ export interface IRemoveFavoritesRequest extends IRequestBase {
100
102
  productIds: number[];
101
103
  }
102
104
  export interface IGetPriceAlertsRequest extends IRequestBase {
105
+ currentPage?: number;
106
+ pageSize?: number;
103
107
  }
104
108
  export interface IAddPriceAlertRequest extends IRequestBase {
105
109
  productPriceAlerts: {
@@ -110,6 +114,8 @@ export interface IRemovePriceAlertRequest extends IRequestBase {
110
114
  productIds: number[];
111
115
  }
112
116
  export interface IGetStockAlertsRequest extends IRequestBase {
117
+ currentPage?: number;
118
+ pageSize?: number;
113
119
  }
114
120
  export interface IAddStockAlertRequest extends IRequestBase {
115
121
  productStockAlerts: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.1.23",
3
+ "version": "5.2.1",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",