@veloceapps/api 3.1.6 → 3.1.7
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/bundles/veloce-api.umd.js +0 -24
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/price-api.service.js +1 -25
- package/esm2015/lib/services/quote-api.service.js +1 -1
- package/esm2015/lib/types/clone-request.types.js +1 -1
- package/esm2015/lib/types/price.types.js +2 -0
- package/fesm2015/veloce-api.js +0 -24
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/price-api.service.d.ts +2 -2
- package/lib/services/quote-api.service.d.ts +3 -1
- package/lib/types/clone-request.types.d.ts +2 -3
- package/lib/types/price.types.d.ts +5 -0
- package/package.json +1 -1
@@ -1626,36 +1626,12 @@
|
|
1626
1626
|
this.httpService = httpService;
|
1627
1627
|
this.SERVICE_URL = '/price';
|
1628
1628
|
}
|
1629
|
-
PriceApiService.prototype.calculateRuntime = function (request) {
|
1630
|
-
return this.httpService.api({
|
1631
|
-
method: 'post',
|
1632
|
-
url: this.SERVICE_URL + "/calculate-runtime",
|
1633
|
-
body: request,
|
1634
|
-
});
|
1635
|
-
};
|
1636
1629
|
PriceApiService.prototype.calculate = function (request) {
|
1637
1630
|
return this.httpService.api({
|
1638
1631
|
method: 'post',
|
1639
1632
|
url: this.SERVICE_URL + "/calculate",
|
1640
1633
|
body: request,
|
1641
1634
|
});
|
1642
|
-
// TODO: move outside API service
|
1643
|
-
// .pipe(
|
1644
|
-
// map(data => {
|
1645
|
-
// if (data.context) {
|
1646
|
-
// const context = this.contextService.resolveOrCreate();
|
1647
|
-
// const patchedContext = {
|
1648
|
-
// ...context,
|
1649
|
-
// properties: {
|
1650
|
-
// ...context.properties,
|
1651
|
-
// ...data.context.properties,
|
1652
|
-
// },
|
1653
|
-
// };
|
1654
|
-
// this.contextService.update(patchedContext);
|
1655
|
-
// }
|
1656
|
-
// return data;
|
1657
|
-
// }),
|
1658
|
-
// );
|
1659
1635
|
};
|
1660
1636
|
PriceApiService.prototype.getPriceLists = function () {
|
1661
1637
|
return this.httpService.api({
|