@veloceapps/api 3.1.18 → 3.1.20
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 +30 -10
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/price-api.service.js +1 -1
- package/esm2015/lib/services/procedures-api.service.js +29 -11
- package/esm2015/lib/services/quote-api.service.js +1 -1
- package/esm2015/lib/types/dto/line-item-dto.types.js +4 -2
- package/fesm2015/veloce-api.js +30 -10
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/procedures-api.service.d.ts +9 -2
- package/lib/services/quote-api.service.d.ts +3 -1
- package/lib/types/dto/line-item-dto.types.d.ts +2 -1
- package/package.json +1 -1
@@ -903,7 +903,7 @@
|
|
903
903
|
}());
|
904
904
|
|
905
905
|
var LineItemDTO = /** @class */ (function () {
|
906
|
-
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, integrationId, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, effectiveStartDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable, requiresApprovals) {
|
906
|
+
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, integrationId, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, effectiveStartDate, startDate, endDate, priceListId, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable, requiresApprovals) {
|
907
907
|
this.id = id;
|
908
908
|
this.activated = activated;
|
909
909
|
this.attributes = attributes;
|
@@ -936,6 +936,7 @@
|
|
936
936
|
this.effectiveStartDate = effectiveStartDate;
|
937
937
|
this.startDate = startDate;
|
938
938
|
this.endDate = endDate;
|
939
|
+
this.priceListId = priceListId;
|
939
940
|
this.planId = planId;
|
940
941
|
this.sellingFrequencyUnit = sellingFrequencyUnit;
|
941
942
|
this.sellingFrequencyDuration = sellingFrequencyDuration;
|
@@ -981,6 +982,7 @@
|
|
981
982
|
effectiveStartDate: dto.effectiveStartDate,
|
982
983
|
startDate: dto.startDate,
|
983
984
|
endDate: dto.endDate,
|
985
|
+
priceListId: dto.priceListId,
|
984
986
|
planId: dto.planId,
|
985
987
|
sellingFrequencyUnit: dto.sellingFrequencyUnit,
|
986
988
|
sellingFrequencyDuration: dto.sellingFrequencyDuration,
|
@@ -1760,7 +1762,8 @@
|
|
1760
1762
|
function ProceduresApiService(baseHttpService) {
|
1761
1763
|
var _this = this;
|
1762
1764
|
this.baseHttpService = baseHttpService;
|
1763
|
-
this.
|
1765
|
+
this.ADMIN_SERVICE_URL = '/admin/procedures';
|
1766
|
+
this.SERVICE_URL = '/procedures';
|
1764
1767
|
this.fetchProcedures$ = function () {
|
1765
1768
|
return _this.searchProcedures$(new i1.Expression(), 0, 100);
|
1766
1769
|
};
|
@@ -1768,18 +1771,23 @@
|
|
1768
1771
|
var params = new i5.HttpParams();
|
1769
1772
|
params = params.set('skip', '' + skip);
|
1770
1773
|
params = params.set('count', '' + count);
|
1771
|
-
return _this.baseHttpService.api({
|
1774
|
+
return _this.baseHttpService.api({
|
1775
|
+
method: 'post',
|
1776
|
+
url: _this.ADMIN_SERVICE_URL + "/search",
|
1777
|
+
params: params,
|
1778
|
+
body: expression,
|
1779
|
+
});
|
1772
1780
|
};
|
1773
1781
|
this.createProcedure$ = function (newProcedure) {
|
1774
1782
|
return _this.baseHttpService.api({
|
1775
|
-
url: "" + _this.
|
1783
|
+
url: "" + _this.ADMIN_SERVICE_URL,
|
1776
1784
|
method: 'post',
|
1777
1785
|
body: newProcedure,
|
1778
1786
|
});
|
1779
1787
|
};
|
1780
1788
|
this.updateProcedure$ = function (procedure) {
|
1781
1789
|
return _this.baseHttpService.api({
|
1782
|
-
url: _this.
|
1790
|
+
url: _this.ADMIN_SERVICE_URL + "/" + procedure.id,
|
1783
1791
|
method: 'put',
|
1784
1792
|
body: procedure,
|
1785
1793
|
});
|
@@ -1787,7 +1795,7 @@
|
|
1787
1795
|
this.duplicateProcedure$ = function (body) {
|
1788
1796
|
return _this.baseHttpService
|
1789
1797
|
.api({
|
1790
|
-
url: _this.
|
1798
|
+
url: _this.ADMIN_SERVICE_URL + "/" + body.id + "/clone",
|
1791
1799
|
method: 'post',
|
1792
1800
|
body: body,
|
1793
1801
|
})
|
@@ -1795,26 +1803,38 @@
|
|
1795
1803
|
};
|
1796
1804
|
this.removeProcedure$ = function (id) {
|
1797
1805
|
return _this.baseHttpService.api({
|
1798
|
-
url: _this.
|
1806
|
+
url: _this.ADMIN_SERVICE_URL + "/" + id,
|
1799
1807
|
method: 'delete',
|
1800
1808
|
});
|
1801
1809
|
};
|
1802
1810
|
this.restoreProcedure$ = function (id) {
|
1803
1811
|
return _this.baseHttpService.api({
|
1804
|
-
url: _this.
|
1812
|
+
url: _this.ADMIN_SERVICE_URL + "/" + id + "/restore",
|
1805
1813
|
method: 'patch',
|
1806
1814
|
});
|
1807
1815
|
};
|
1808
1816
|
}
|
1809
1817
|
ProceduresApiService.prototype.fetchProcedure$ = function (id) {
|
1810
1818
|
return this.baseHttpService.api({
|
1811
|
-
url: this.
|
1819
|
+
url: this.ADMIN_SERVICE_URL + "/" + id,
|
1812
1820
|
method: 'get',
|
1813
1821
|
});
|
1814
1822
|
};
|
1815
1823
|
ProceduresApiService.prototype.execute$ = function (body) {
|
1816
1824
|
return this.baseHttpService.api({
|
1817
|
-
url: "/
|
1825
|
+
url: this.SERVICE_URL + "/execute",
|
1826
|
+
method: 'post',
|
1827
|
+
body: body,
|
1828
|
+
});
|
1829
|
+
};
|
1830
|
+
/**
|
1831
|
+
* Run active procedure against QuoteDraft
|
1832
|
+
* @param body
|
1833
|
+
* @returns
|
1834
|
+
*/
|
1835
|
+
ProceduresApiService.prototype.apply$ = function (body) {
|
1836
|
+
return this.baseHttpService.api({
|
1837
|
+
url: this.SERVICE_URL + "/apply",
|
1818
1838
|
method: 'post',
|
1819
1839
|
body: body,
|
1820
1840
|
});
|