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.
- package/dist/interfaces/shoppingcart.d.ts +1 -1
- package/dist/services/blog/blog.types.d.ts +1 -1
- package/dist/services/product/product.types.d.ts +3 -3
- package/dist/services/shoppingcart/index.js +11 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +23 -2
- package/dist/services/urls.d.ts +1 -0
- package/dist/services/urls.js +1 -0
- package/package.json +1 -1
|
@@ -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 |
|
|
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
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -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 = '' }) => {
|