@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.
@@ -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({