nextemos 4.7.4 → 4.7.6
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IProductService } from
|
|
1
|
+
import { IProductService } from "./product.types";
|
|
2
2
|
export declare const ProductService: IProductService;
|
|
@@ -37,11 +37,11 @@ const urls_1 = __importStar(require("../urls"));
|
|
|
37
37
|
const __1 = require("../..");
|
|
38
38
|
// Product servisi, Product, Product Category, Channel ve Price Type verilerini alır.
|
|
39
39
|
exports.ProductService = {
|
|
40
|
-
Namespace: process.env.MS_NAMESPACE ||
|
|
40
|
+
Namespace: process.env.MS_NAMESPACE || "emosv2service",
|
|
41
41
|
ServiceUrl: function () {
|
|
42
42
|
return `http://product.${this.Namespace}.svc.cluster.local`;
|
|
43
43
|
},
|
|
44
|
-
Prefix:
|
|
44
|
+
Prefix: "/api/product",
|
|
45
45
|
Product: function (data, options) {
|
|
46
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
47
|
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
@@ -61,7 +61,7 @@ exports.ProductService = {
|
|
|
61
61
|
prefix: this.Prefix,
|
|
62
62
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
63
63
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
64
|
-
methodName: urls_1.default.Product.SearchProductsRequest
|
|
64
|
+
methodName: urls_1.default.Product.SearchProductsRequest,
|
|
65
65
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
66
66
|
});
|
|
67
67
|
},
|
|
@@ -72,7 +72,7 @@ exports.ProductService = {
|
|
|
72
72
|
prefix: this.Prefix,
|
|
73
73
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
74
74
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
75
|
-
methodName: urls_1.default.Product.GetAllProductsRequest
|
|
75
|
+
methodName: urls_1.default.Product.GetAllProductsRequest,
|
|
76
76
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
77
77
|
});
|
|
78
78
|
},
|
|
@@ -83,7 +83,7 @@ exports.ProductService = {
|
|
|
83
83
|
prefix: this.Prefix,
|
|
84
84
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
85
85
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
86
|
-
methodName: urls_1.default.ProductCategory.CategoryTree
|
|
86
|
+
methodName: urls_1.default.ProductCategory.CategoryTree,
|
|
87
87
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
88
88
|
});
|
|
89
89
|
},
|
|
@@ -94,7 +94,7 @@ exports.ProductService = {
|
|
|
94
94
|
prefix: this.Prefix,
|
|
95
95
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
96
96
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
97
|
-
methodName: urls_1.default.ProductCategory.All
|
|
97
|
+
methodName: urls_1.default.ProductCategory.All,
|
|
98
98
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
99
99
|
});
|
|
100
100
|
},
|
|
@@ -105,7 +105,7 @@ exports.ProductService = {
|
|
|
105
105
|
prefix: this.Prefix,
|
|
106
106
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
107
107
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
108
|
-
methodName: urls_1.default.ProductCategory.Hierarchy
|
|
108
|
+
methodName: urls_1.default.ProductCategory.Hierarchy,
|
|
109
109
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
110
110
|
});
|
|
111
111
|
},
|
|
@@ -171,7 +171,7 @@ exports.ProductService = {
|
|
|
171
171
|
prefix: this.Prefix,
|
|
172
172
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
173
173
|
methodName: urls_1.default.ProductFavorite,
|
|
174
|
-
}), Object.assign(Object.assign({}, options), { headers: {
|
|
174
|
+
}), Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.headers), { "Content-Type": "application/json" }), body: JSON.stringify(data) }));
|
|
175
175
|
});
|
|
176
176
|
},
|
|
177
177
|
GetPriceAlerts: function () {
|
|
@@ -201,7 +201,7 @@ exports.ProductService = {
|
|
|
201
201
|
prefix: this.Prefix,
|
|
202
202
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
203
203
|
methodName: urls_1.default.ProductPriceAlert,
|
|
204
|
-
}), Object.assign(Object.assign({}, options), { headers: {
|
|
204
|
+
}), Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.headers), { "Content-Type": "application/json" }), body: JSON.stringify(data) }));
|
|
205
205
|
});
|
|
206
206
|
},
|
|
207
207
|
GetStockAlerts: function () {
|
|
@@ -231,7 +231,7 @@ exports.ProductService = {
|
|
|
231
231
|
prefix: this.Prefix,
|
|
232
232
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
233
233
|
methodName: urls_1.default.ProductStockAlert,
|
|
234
|
-
}), Object.assign(Object.assign({}, options), { headers: {
|
|
234
|
+
}), Object.assign(Object.assign({}, options), { headers: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.headers), { "Content-Type": "application/json" }), body: JSON.stringify(data) }));
|
|
235
235
|
});
|
|
236
236
|
},
|
|
237
237
|
};
|