nextemos 5.7.3 → 5.8.0
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.
|
@@ -108,6 +108,12 @@ exports.ShoppingCartService = {
|
|
|
108
108
|
AddGiftBoxNote: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
109
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.AddGiftBoxNote, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
110
110
|
}),
|
|
111
|
+
AddGiftCardCoupon: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
112
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.AddGiftCardCoupon, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
113
|
+
}),
|
|
114
|
+
RemoveGiftCardCoupon: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
115
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.RemoveGiftCardCoupon, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
116
|
+
}),
|
|
111
117
|
GetAvailableStoresForCart: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
112
118
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetAvailableStoresForCart, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
113
119
|
}),
|
|
@@ -121,6 +121,13 @@ export interface IAddGiftBoxNoteRequest extends IGetCartRequest {
|
|
|
121
121
|
isGiftBoxRequested: boolean;
|
|
122
122
|
}[];
|
|
123
123
|
}
|
|
124
|
+
export interface IAddGiftCardCouponRequest extends IGetCartRequest {
|
|
125
|
+
couponCode: string;
|
|
126
|
+
price?: number;
|
|
127
|
+
}
|
|
128
|
+
export interface IRemoveGiftCardCouponRequest extends IGetCartRequest {
|
|
129
|
+
couponCode: string;
|
|
130
|
+
}
|
|
124
131
|
export interface IGetAvailableStoresForCartRequest extends Omit<IGetCartRequest, "flags"> {
|
|
125
132
|
}
|
|
126
133
|
export interface IShoppingCartService extends IService {
|
|
@@ -144,4 +151,6 @@ export interface IShoppingCartService extends IService {
|
|
|
144
151
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
145
152
|
GetAvailableStoresForCart: (data: IGetAvailableStoresForCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetAvailableStoresForCartResponse>>;
|
|
146
153
|
DropCart: (data: IGetCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
154
|
+
AddGiftCardCoupon: (data: IAddGiftCardCouponRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
155
|
+
RemoveGiftCardCoupon: (data: IRemoveGiftCardCouponRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
147
156
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -36,28 +36,28 @@ exports.default = {
|
|
|
36
36
|
Didyoumean: "/{language}/Predictions/v1/didyoumean",
|
|
37
37
|
},
|
|
38
38
|
Product: {
|
|
39
|
-
GetProduct: "/
|
|
40
|
-
SearchProductsRequest: "/
|
|
41
|
-
GetAllProductsRequest: "/
|
|
42
|
-
SearchProductsRequestWithWorkflow: "/
|
|
43
|
-
GetProductRelations: "/
|
|
39
|
+
GetProduct: "/{language}/Product/v1/GetProduct",
|
|
40
|
+
SearchProductsRequest: "/{language}/Product/v1/SearchProductsRequest",
|
|
41
|
+
GetAllProductsRequest: "/{language}/Product/v1/GetAllProductsRequest",
|
|
42
|
+
SearchProductsRequestWithWorkflow: "/{language}/Product/v1/SearchProductsRequestWithWorkflow",
|
|
43
|
+
GetProductRelations: "/{language}/Product/v1/GetProductRelations",
|
|
44
44
|
},
|
|
45
45
|
ProductCategory: {
|
|
46
|
-
All: "/
|
|
47
|
-
Hierarchy: "/
|
|
48
|
-
ProductCategory: "/
|
|
49
|
-
CategoryTree: "/
|
|
50
|
-
},
|
|
51
|
-
ProductFavorite: "/
|
|
52
|
-
ProductPriceAlert: "/
|
|
53
|
-
ProductStockAlert: "/
|
|
46
|
+
All: "/{language}/ProductCategory/v1/All",
|
|
47
|
+
Hierarchy: "/{language}/ProductCategory/v1/Hierarchy",
|
|
48
|
+
ProductCategory: "/{language}/ProductCategory/v1/{id}",
|
|
49
|
+
CategoryTree: "/{language}/ProductCategory/v1/CategoryTree",
|
|
50
|
+
},
|
|
51
|
+
ProductFavorite: "/{language}/ProductFavorite/v1",
|
|
52
|
+
ProductPriceAlert: "/{language}/Alert/v1/ProductPriceAlerts",
|
|
53
|
+
ProductStockAlert: "/{language}/Alert/v1/ProductStockAlerts",
|
|
54
54
|
ProductBrand: {
|
|
55
|
-
GetBrandList: "/
|
|
56
|
-
GetBrand: "/
|
|
55
|
+
GetBrandList: "/{language}/Brand/v1/GetBrandList",
|
|
56
|
+
GetBrand: "/{language}/Brand/v1/{id}",
|
|
57
57
|
},
|
|
58
58
|
ProductType: {
|
|
59
|
-
All: "/
|
|
60
|
-
ProductType: "/
|
|
59
|
+
All: "/{language}/ProductType/v1/All",
|
|
60
|
+
ProductType: "/{language}/ProductType/v1",
|
|
61
61
|
},
|
|
62
62
|
Stocks: {
|
|
63
63
|
StockAvailabilitiesByProductId: "/{language}/Stocks/v1/StockAvailabilitiesByProductId",
|
|
@@ -171,6 +171,8 @@ exports.default = {
|
|
|
171
171
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
172
172
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
173
173
|
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|
|
174
|
+
AddGiftCardCoupon: "/{language}/ShoppingCartGateway/v1/AddGiftCardCoupon",
|
|
175
|
+
RemoveGiftCardCoupon: "/{language}/ShoppingCartGateway/v1/RemoveGiftCardCoupon",
|
|
174
176
|
GetAvailableStoresForCart: "/{language}/ShoppingCartGateway/v1/GetAvailableStoresForCart",
|
|
175
177
|
},
|
|
176
178
|
OrderManagement: {
|