@veloceapps/sdk 3.0.9 → 3.0.11
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-sdk-cms.umd.js +19 -4
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +5 -1
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/cms/modules/configuration/services/configuration.service.d.ts +3 -1
- package/cms/modules/flow-configuration/services/flow-update.service.d.ts +1 -1
- package/cms/modules/flow-configuration/types/update.types.d.ts +1 -1
- package/esm2015/cms/modules/configuration/services/configuration.service.js +7 -1
- package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +5 -5
- package/esm2015/cms/modules/flow-configuration/types/update.types.js +1 -1
- package/esm2015/cms/vendor-map.js +3 -2
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +6 -2
- package/fesm2015/veloce-sdk-cms.js +12 -5
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +5 -1
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/package.json +1 -1
|
@@ -1240,6 +1240,20 @@
|
|
|
1240
1240
|
ConfigurationService.prototype.getRuntimeContext = function () {
|
|
1241
1241
|
return this.runtimeService.runtimeContext;
|
|
1242
1242
|
};
|
|
1243
|
+
Object.defineProperty(ConfigurationService.prototype, "contextSnapshot", {
|
|
1244
|
+
get: function () {
|
|
1245
|
+
return this.contextService.resolve();
|
|
1246
|
+
},
|
|
1247
|
+
enumerable: false,
|
|
1248
|
+
configurable: true
|
|
1249
|
+
});
|
|
1250
|
+
Object.defineProperty(ConfigurationService.prototype, "context$", {
|
|
1251
|
+
get: function () {
|
|
1252
|
+
return this.contextService.resolve$();
|
|
1253
|
+
},
|
|
1254
|
+
enumerable: false,
|
|
1255
|
+
configurable: true
|
|
1256
|
+
});
|
|
1243
1257
|
Object.defineProperty(ConfigurationService.prototype, "charges$", {
|
|
1244
1258
|
get: function () {
|
|
1245
1259
|
return this.charges.asObservable();
|
|
@@ -1784,8 +1798,8 @@
|
|
|
1784
1798
|
switch (params.attributeType) {
|
|
1785
1799
|
case 'QTY':
|
|
1786
1800
|
return this.updateQty(rootLineItem, params);
|
|
1787
|
-
case '
|
|
1788
|
-
return this.
|
|
1801
|
+
case 'EFFECTIVE_START_DATE':
|
|
1802
|
+
return this.updateEffectiveStartDate(rootLineItem, params);
|
|
1789
1803
|
case 'END_DATE':
|
|
1790
1804
|
return this.updateEndDate(rootLineItem, params);
|
|
1791
1805
|
case 'PRICE_ADJUSTMENT':
|
|
@@ -1813,12 +1827,12 @@
|
|
|
1813
1827
|
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), { qty: params.newValue }));
|
|
1814
1828
|
return updated.li;
|
|
1815
1829
|
};
|
|
1816
|
-
FlowUpdateService.prototype.
|
|
1830
|
+
FlowUpdateService.prototype.updateEffectiveStartDate = function (rootLineItem, params) {
|
|
1817
1831
|
var lineItem = findLineItem(params.id, [rootLineItem]);
|
|
1818
1832
|
if (!lineItem) {
|
|
1819
1833
|
return rootLineItem;
|
|
1820
1834
|
}
|
|
1821
|
-
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), {
|
|
1835
|
+
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), { effectiveStartDate: moment__default["default"](params.newValue).format('YYYY-MM-DD') }));
|
|
1822
1836
|
return updated.li;
|
|
1823
1837
|
};
|
|
1824
1838
|
FlowUpdateService.prototype.updateEndDate = function (rootLineItem, params) {
|
|
@@ -2079,6 +2093,7 @@
|
|
|
2079
2093
|
QuoteApiService: i1.QuoteApiService,
|
|
2080
2094
|
DocumentTemplatesApiService: i1.DocumentTemplatesApiService,
|
|
2081
2095
|
DocumentAttachmentApiService: i1.DocumentAttachmentApiService,
|
|
2096
|
+
RampApiService: i1.RampApiService,
|
|
2082
2097
|
},
|
|
2083
2098
|
'@angular/core': i0__namespace,
|
|
2084
2099
|
'@angular/forms': angularForms__namespace,
|