nextemos 4.7.2 → 4.7.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.
@@ -70,7 +70,7 @@ export interface ICartItem {
70
70
  lineInfo: string;
71
71
  stockBarcodeId: number;
72
72
  availableStock: number;
73
- flags: string;
73
+ flags: string | number | string[];
74
74
  totals: ITotal[];
75
75
  itemDate: string;
76
76
  cartItemInfo: ICartItemInfo[];
@@ -9,7 +9,7 @@ export interface IGetBlogPostsRequest extends IRequestBase {
9
9
  tagIds?: number[];
10
10
  blogKeys?: string[];
11
11
  categoryKeys?: string[];
12
- flags?: string;
12
+ flags?: string | number | string[];
13
13
  searchTerm?: string;
14
14
  aggregationInterval?: string;
15
15
  sort?: string;
@@ -1,7 +1,7 @@
1
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
- flags?: number;
4
+ flags?: string | number | string[];
5
5
  includes?: string[];
6
6
  }
7
7
  export interface IProductCategoryRequest extends IRequestBase {
@@ -26,7 +26,7 @@ export interface ISearchProductsRequest extends IRequestBase {
26
26
  typeKeys?: string[];
27
27
  aggregateBy?: string[];
28
28
  aggregationFilters?: AggregationFilter[];
29
- flags?: string;
29
+ flags?: string | number | string[];
30
30
  pageSize?: number;
31
31
  currentPage?: number;
32
32
  }
@@ -55,7 +55,7 @@ export interface IGetAllProductsRequest extends IRequestBase {
55
55
  endPrice?: number;
56
56
  sort?: Sort;
57
57
  typeKeys?: string[];
58
- flags?: string;
58
+ flags?: string | number | string[];
59
59
  pointInTimeId?: string;
60
60
  searchAfter?: string[];
61
61
  pageSize?: number;
@@ -96,4 +96,15 @@ exports.ShoppingCartService = {
96
96
  }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
97
97
  });
98
98
  },
99
+ ChangeCartDetail: function (data, options) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
102
+ serviceUrl: this.ServiceUrl(),
103
+ prefix: this.Prefix,
104
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
105
+ language: data === null || data === void 0 ? void 0 : data.language,
106
+ methodName: urls_1.default.ShoppingCart.ChangeCartDetail,
107
+ }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
108
+ });
109
+ },
99
110
  };
@@ -1,6 +1,6 @@
1
1
  import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse } from '../..';
2
2
  export interface IAddToCartRequest {
3
- flags?: string;
3
+ flags?: string | number | string[];
4
4
  productId: number;
5
5
  stockBarcodeId: number;
6
6
  quantity?: number;
@@ -29,7 +29,7 @@ export interface IGetCartItemCountRequest {
29
29
  }
30
30
  export interface IGetCartRequest {
31
31
  requestInfo?: IRequestInfo;
32
- flags?: string | string[] | number[];
32
+ flags?: string | number | string[];
33
33
  tags?: string[];
34
34
  language?: string;
35
35
  }
@@ -40,10 +40,31 @@ export interface IChangeQuantityRequest extends IGetCartRequest {
40
40
  itemId: string;
41
41
  quantity: number;
42
42
  }
43
+ export interface IChangeCartDetailRequest extends IGetCartRequest {
44
+ orderNote?: string;
45
+ giftBoxNote?: string;
46
+ memberNote?: string;
47
+ shipperId?: number;
48
+ shippingAddressId?: number;
49
+ invoiceAddressId?: number;
50
+ isGiftBoxRequested?: boolean;
51
+ wareHouseId?: number;
52
+ paymentTypeId?: number;
53
+ payAtDoorPaymentTypeId?: number;
54
+ deliveryDate?: string;
55
+ deliveredPerson?: string;
56
+ sitePoint?: number;
57
+ bankPoint?: number;
58
+ couponCode?: string;
59
+ couponPrice?: number;
60
+ cardBin?: string;
61
+ reComputeShipper?: boolean;
62
+ }
43
63
  export interface IShoppingCartService extends IService {
44
64
  AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
45
65
  GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
46
66
  GetCart: (data: IGetCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
47
67
  RemoveFromCart: (data: IRemoveFromCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
48
68
  ChangeQuantity: (data: IChangeQuantityRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
69
+ ChangeCartDetail: (data: IChangeCartDetailRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
49
70
  }
@@ -99,6 +99,7 @@ declare const _default: {
99
99
  GetCart: string;
100
100
  RemoveFromCart: string;
101
101
  ChangeQuantity: string;
102
+ ChangeCartDetail: string;
102
103
  };
103
104
  };
104
105
  export default _default;
@@ -105,6 +105,7 @@ exports.default = {
105
105
  GetCart: '/{language}/ShoppingCartGateway/v1/GetCart',
106
106
  RemoveFromCart: '/{language}/ShoppingCartGateway/v1/RemoveFromCart',
107
107
  ChangeQuantity: '/{language}/ShoppingCartGateway/v1/ChangeQuantity',
108
+ ChangeCartDetail: '/{language}/ShoppingCartGateway/v1/ChangeCartDetail',
108
109
  },
109
110
  };
110
111
  const getUrl = ({ isClient = false, language = process.env.DEFAULT_LANGUAGE || "tr", methodName, serviceUrl, prefix, id = '' }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.7.2",
3
+ "version": "4.7.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",