@veloceapps/api 3.1.15 → 3.1.17-1
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 +41 -13
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/delta-api.service.js +8 -3
- package/esm2015/lib/services/price-api.service.js +8 -3
- package/esm2015/lib/services/procedures-api.service.js +29 -11
- package/esm2015/lib/services/quote-api.service.js +1 -1
- package/fesm2015/veloce-api.js +41 -13
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/delta-api.service.d.ts +2 -2
- package/lib/services/price-api.service.d.ts +2 -2
- package/lib/services/procedures-api.service.d.ts +9 -2
- package/lib/services/quote-api.service.d.ts +3 -1
- package/package.json +1 -1
@@ -1209,9 +1209,14 @@
|
|
1209
1209
|
this.httpService = httpService;
|
1210
1210
|
this.SERVICE_URL = '/delta';
|
1211
1211
|
}
|
1212
|
-
DeltaApiService.prototype.calculate$ = function (request
|
1212
|
+
DeltaApiService.prototype.calculate$ = function (request) {
|
1213
1213
|
return this.httpService
|
1214
|
-
.api(
|
1214
|
+
.api({
|
1215
|
+
method: 'post',
|
1216
|
+
url: this.SERVICE_URL + "/calculate",
|
1217
|
+
body: request,
|
1218
|
+
skipErrorHandler: true,
|
1219
|
+
})
|
1215
1220
|
.pipe(rxjs.map(function (dtos) { return dtos.map(function (dto) { return LineItemDTO.fromDTO(dto); }); }));
|
1216
1221
|
};
|
1217
1222
|
return DeltaApiService;
|
@@ -1695,8 +1700,13 @@
|
|
1695
1700
|
this.httpService = httpService;
|
1696
1701
|
this.SERVICE_URL = '/price';
|
1697
1702
|
}
|
1698
|
-
PriceApiService.prototype.calculate = function (request
|
1699
|
-
return this.httpService.api(
|
1703
|
+
PriceApiService.prototype.calculate = function (request) {
|
1704
|
+
return this.httpService.api({
|
1705
|
+
method: 'post',
|
1706
|
+
url: this.SERVICE_URL + "/calculate",
|
1707
|
+
body: request,
|
1708
|
+
skipErrorHandler: true,
|
1709
|
+
});
|
1700
1710
|
};
|
1701
1711
|
PriceApiService.prototype.getPriceLists = function () {
|
1702
1712
|
return this.httpService.api({
|
@@ -1750,7 +1760,8 @@
|
|
1750
1760
|
function ProceduresApiService(baseHttpService) {
|
1751
1761
|
var _this = this;
|
1752
1762
|
this.baseHttpService = baseHttpService;
|
1753
|
-
this.
|
1763
|
+
this.ADMIN_SERVICE_URL = '/admin/procedures';
|
1764
|
+
this.SERVICE_URL = '/procedures';
|
1754
1765
|
this.fetchProcedures$ = function () {
|
1755
1766
|
return _this.searchProcedures$(new i1.Expression(), 0, 100);
|
1756
1767
|
};
|
@@ -1758,18 +1769,23 @@
|
|
1758
1769
|
var params = new i5.HttpParams();
|
1759
1770
|
params = params.set('skip', '' + skip);
|
1760
1771
|
params = params.set('count', '' + count);
|
1761
|
-
return _this.baseHttpService.api({
|
1772
|
+
return _this.baseHttpService.api({
|
1773
|
+
method: 'post',
|
1774
|
+
url: _this.ADMIN_SERVICE_URL + "/search",
|
1775
|
+
params: params,
|
1776
|
+
body: expression,
|
1777
|
+
});
|
1762
1778
|
};
|
1763
1779
|
this.createProcedure$ = function (newProcedure) {
|
1764
1780
|
return _this.baseHttpService.api({
|
1765
|
-
url: "" + _this.
|
1781
|
+
url: "" + _this.ADMIN_SERVICE_URL,
|
1766
1782
|
method: 'post',
|
1767
1783
|
body: newProcedure,
|
1768
1784
|
});
|
1769
1785
|
};
|
1770
1786
|
this.updateProcedure$ = function (procedure) {
|
1771
1787
|
return _this.baseHttpService.api({
|
1772
|
-
url: _this.
|
1788
|
+
url: _this.ADMIN_SERVICE_URL + "/" + procedure.id,
|
1773
1789
|
method: 'put',
|
1774
1790
|
body: procedure,
|
1775
1791
|
});
|
@@ -1777,7 +1793,7 @@
|
|
1777
1793
|
this.duplicateProcedure$ = function (body) {
|
1778
1794
|
return _this.baseHttpService
|
1779
1795
|
.api({
|
1780
|
-
url: _this.
|
1796
|
+
url: _this.ADMIN_SERVICE_URL + "/" + body.id + "/clone",
|
1781
1797
|
method: 'post',
|
1782
1798
|
body: body,
|
1783
1799
|
})
|
@@ -1785,26 +1801,38 @@
|
|
1785
1801
|
};
|
1786
1802
|
this.removeProcedure$ = function (id) {
|
1787
1803
|
return _this.baseHttpService.api({
|
1788
|
-
url: _this.
|
1804
|
+
url: _this.ADMIN_SERVICE_URL + "/" + id,
|
1789
1805
|
method: 'delete',
|
1790
1806
|
});
|
1791
1807
|
};
|
1792
1808
|
this.restoreProcedure$ = function (id) {
|
1793
1809
|
return _this.baseHttpService.api({
|
1794
|
-
url: _this.
|
1810
|
+
url: _this.ADMIN_SERVICE_URL + "/" + id + "/restore",
|
1795
1811
|
method: 'patch',
|
1796
1812
|
});
|
1797
1813
|
};
|
1798
1814
|
}
|
1799
1815
|
ProceduresApiService.prototype.fetchProcedure$ = function (id) {
|
1800
1816
|
return this.baseHttpService.api({
|
1801
|
-
url: this.
|
1817
|
+
url: this.ADMIN_SERVICE_URL + "/" + id,
|
1802
1818
|
method: 'get',
|
1803
1819
|
});
|
1804
1820
|
};
|
1805
1821
|
ProceduresApiService.prototype.execute$ = function (body) {
|
1806
1822
|
return this.baseHttpService.api({
|
1807
|
-
url: "/
|
1823
|
+
url: this.SERVICE_URL + "/execute",
|
1824
|
+
method: 'post',
|
1825
|
+
body: body,
|
1826
|
+
});
|
1827
|
+
};
|
1828
|
+
/**
|
1829
|
+
* Run active procedure against QuoteDraft
|
1830
|
+
* @param body
|
1831
|
+
* @returns
|
1832
|
+
*/
|
1833
|
+
ProceduresApiService.prototype.apply$ = function (body) {
|
1834
|
+
return this.baseHttpService.api({
|
1835
|
+
url: this.SERVICE_URL + "/apply",
|
1808
1836
|
method: 'post',
|
1809
1837
|
body: body,
|
1810
1838
|
});
|