@veloceapps/api 2.0.22 → 2.0.24
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 +10 -4
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/document-templates-api.service.js +5 -3
- package/esm2015/lib/types/charge-item-dto.types.js +4 -2
- package/esm2015/lib/types/line-item-dto.types.js +4 -2
- package/fesm2015/veloce-api.js +10 -4
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/types/charge-item-dto.types.d.ts +3 -2
- package/lib/types/line-item-dto.types.d.ts +3 -2
- package/package.json +2 -2
@@ -430,7 +430,7 @@
|
|
430
430
|
}());
|
431
431
|
|
432
432
|
var ChargeItemDTO = /** @class */ (function () {
|
433
|
-
function ChargeItemDTO(id, price, unitPrice, baseListPrice, baseListUnitPrice, listPrice, listUnitPrice, netPrice, netUnitPrice, chargeId, chargeType, chargeMethod, priceItemId, startDate, priceWaterfalls, quantity, properties, chargeTypeDisplayValue, arr, frequencyUnit, frequencyDuration, endDate, sellingTerm, currency, unitCost, cost, minUnitPrice, minPrice, enablePriceAdjustment, enableListPriceAdjustment, listPriceAdjustment, priceAdjustment) {
|
433
|
+
function ChargeItemDTO(id, price, unitPrice, baseListPrice, baseListUnitPrice, listPrice, listUnitPrice, netPrice, netUnitPrice, chargeId, chargeType, chargeMethod, priceItemId, startDate, priceWaterfalls, quantity, properties, chargeTypeDisplayValue, arr, frequencyUnit, frequencyDuration, endDate, sellingTerm, currency, unitCost, cost, minUnitPrice, minPrice, enablePriceAdjustment, enableListPriceAdjustment, listPriceAdjustment, priceAdjustment, requiresApprovals) {
|
434
434
|
this.id = id;
|
435
435
|
this.price = price;
|
436
436
|
this.unitPrice = unitPrice;
|
@@ -463,6 +463,7 @@
|
|
463
463
|
this.enableListPriceAdjustment = enableListPriceAdjustment;
|
464
464
|
this.listPriceAdjustment = listPriceAdjustment;
|
465
465
|
this.priceAdjustment = priceAdjustment;
|
466
|
+
this.requiresApprovals = requiresApprovals;
|
466
467
|
}
|
467
468
|
ChargeItemDTO.fromDTO = function (dto) {
|
468
469
|
return {
|
@@ -498,6 +499,7 @@
|
|
498
499
|
enableListPriceAdjustment: dto.enableListPriceAdjustment,
|
499
500
|
listPriceAdjustment: dto.listPriceAdjustment && PriceAdjustmentDTO.fromDTO(dto.listPriceAdjustment),
|
500
501
|
priceAdjustment: dto.priceAdjustment && PriceAdjustmentDTO.fromDTO(dto.priceAdjustment),
|
502
|
+
requiresApprovals: dto.requiresApprovals,
|
501
503
|
};
|
502
504
|
};
|
503
505
|
return ChargeItemDTO;
|
@@ -603,7 +605,7 @@
|
|
603
605
|
}());
|
604
606
|
|
605
607
|
var LineItemDTO = /** @class */ (function () {
|
606
|
-
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable) {
|
608
|
+
function LineItemDTO(id, activated, attributes, attributeDomains, cfgStatus, chargeGroupItems, chargeItems, domainComputations, lineItems, messages, name, optionalCharges, pending, portDomains, properties, qty, totalPrices, type, productId, port, parentId, assetId, openOrderLineItemId, productName, rootId, actionCode, serviceStartDate, effectiveDate, startDate, endDate, planId, sellingFrequencyUnit, sellingFrequencyDuration, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable, requiresApprovals) {
|
607
609
|
this.id = id;
|
608
610
|
this.activated = activated;
|
609
611
|
this.attributes = attributes;
|
@@ -643,6 +645,7 @@
|
|
643
645
|
this.rampInstanceId = rampInstanceId;
|
644
646
|
this.enableRamp = enableRamp;
|
645
647
|
this.configurable = configurable;
|
648
|
+
this.requiresApprovals = requiresApprovals;
|
646
649
|
}
|
647
650
|
LineItemDTO.fromDTO = function (dto) {
|
648
651
|
return {
|
@@ -685,6 +688,7 @@
|
|
685
688
|
rampInstanceId: dto.rampInstanceId,
|
686
689
|
enableRamp: dto.enableRamp,
|
687
690
|
configurable: dto.configurable,
|
691
|
+
requiresApprovals: dto.requiresApprovals,
|
688
692
|
};
|
689
693
|
};
|
690
694
|
return LineItemDTO;
|
@@ -1338,14 +1342,16 @@
|
|
1338
1342
|
var _a;
|
1339
1343
|
var patternLimit = /(\s*limit\s\d*)/i;
|
1340
1344
|
var limit = 1;
|
1341
|
-
if (patternLimit.test(statement)) {
|
1345
|
+
if (statement && patternLimit.test(statement)) {
|
1342
1346
|
var limitStr = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1].trim().substring(5).trim();
|
1343
1347
|
if (limitStr) {
|
1344
1348
|
limit = Number.parseInt(limitStr, 10);
|
1345
1349
|
}
|
1346
1350
|
statement = statement.replace(patternLimit, '');
|
1347
1351
|
}
|
1348
|
-
var resolvedStatement =
|
1352
|
+
var resolvedStatement = statement
|
1353
|
+
? i1.StringUtils.fillPlaceholders(statement, properties, /:\s*(\w[\w\d_.]+)/i)
|
1354
|
+
: undefined;
|
1349
1355
|
var searchRequest = Object.assign({ skip: 0, count: limit, rawCondition: resolvedStatement }, ((fields === null || fields === void 0 ? void 0 : fields.length) && !!fields[0] && { fields: fields }));
|
1350
1356
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), operators.map(function (value) {
|
1351
1357
|
var _g;
|