nextemos 5.3.10 → 5.3.12
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.
|
@@ -78,6 +78,21 @@ export interface IProduct {
|
|
|
78
78
|
vendors?: Vendor[];
|
|
79
79
|
attributeGroups?: IAttributeGroup[];
|
|
80
80
|
attributes?: IAttributes[];
|
|
81
|
+
priceVariations: IPriceVariations[];
|
|
82
|
+
}
|
|
83
|
+
export interface IPriceVariations {
|
|
84
|
+
currencyId: number;
|
|
85
|
+
currentQuantity: number;
|
|
86
|
+
discountValue: number;
|
|
87
|
+
id: number;
|
|
88
|
+
integrationCode: string;
|
|
89
|
+
isTaxIncluded: boolean;
|
|
90
|
+
priceTypeId: number;
|
|
91
|
+
priorityOrder: number;
|
|
92
|
+
productId: number;
|
|
93
|
+
quantityTo: number;
|
|
94
|
+
salesQuantity: number;
|
|
95
|
+
value: number;
|
|
81
96
|
}
|
|
82
97
|
export interface Rate {
|
|
83
98
|
id: number;
|
|
@@ -6,14 +6,8 @@ export interface ICheckUpdateRequest extends IRequestBase {
|
|
|
6
6
|
export interface IDynamicPropertiesRequest extends IRequestBase {
|
|
7
7
|
formName: string;
|
|
8
8
|
}
|
|
9
|
-
export interface IDynamicValuesRequest extends IRequestBase {
|
|
10
|
-
request: {
|
|
11
|
-
key: string;
|
|
12
|
-
value: string[];
|
|
13
|
-
}[];
|
|
14
|
-
}
|
|
15
9
|
export interface ICoreService extends IService {
|
|
16
10
|
CheckUpdate: (data: ICheckUpdateRequest, options?: IRequestInit) => Promise<IApiResponse<ICheckUpdateResponse>>;
|
|
17
11
|
DynamicProperties: (data: IDynamicPropertiesRequest, options?: IRequestInit) => Promise<IApiResponse<IDynamicPropertiesResponse>>;
|
|
18
|
-
DynamicValues: (data:
|
|
12
|
+
DynamicValues: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IDynamicValuesResponse>>;
|
|
19
13
|
}
|
|
@@ -59,13 +59,6 @@ exports.CoreService = {
|
|
|
59
59
|
return (0, __1.fetchRequest)().get(exports.CoreService.Url(urls_1.default.DynamicForm.Properties, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
|
|
60
60
|
}),
|
|
61
61
|
DynamicValues: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
62
|
-
|
|
63
|
-
Object.keys(data).forEach((key) => {
|
|
64
|
-
const value = data[key];
|
|
65
|
-
if (value !== undefined && value !== null) {
|
|
66
|
-
formData.append(key, value.toString());
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.DynamicForm.Values, options, data === null || data === void 0 ? void 0 : data.language), Object.assign({ body: formData }, options));
|
|
62
|
+
return (0, __1.fetchRequest)().post(exports.CoreService.Url(urls_1.default.DynamicForm.Values, options), Object.assign({ body: data }, options));
|
|
70
63
|
}),
|
|
71
64
|
};
|
|
@@ -108,6 +108,9 @@ export interface IGetPriceAlertsRequest extends IRequestBase {
|
|
|
108
108
|
export interface IAddPriceAlertRequest extends IRequestBase {
|
|
109
109
|
productPriceAlerts: {
|
|
110
110
|
productId: number;
|
|
111
|
+
currencyId?: number;
|
|
112
|
+
priceTypeId?: number;
|
|
113
|
+
price?: number;
|
|
111
114
|
}[];
|
|
112
115
|
}
|
|
113
116
|
export interface IRemovePriceAlertRequest extends IRequestBase {
|