@veloceapps/api 5.0.10 → 5.0.12
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 -401
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/account-api.service.js +1 -1
- package/esm2015/lib/services/catalog-admin-api.service.js +2 -2
- package/esm2015/lib/services/catalog-api.service.js +1 -1
- package/esm2015/lib/services/configuration-api.service.js +2 -3
- package/esm2015/lib/services/configuration-settings-api.service.js +1 -1
- package/esm2015/lib/services/context-api.service.js +1 -1
- package/esm2015/lib/services/delta-api.service.js +3 -7
- package/esm2015/lib/services/document-attachment-api.service.js +1 -1
- package/esm2015/lib/services/endpoints-api.service.js +2 -2
- package/esm2015/lib/services/picklists-api.service.js +1 -1
- package/esm2015/lib/services/price-api.service.js +1 -1
- package/esm2015/lib/services/procedures-api.service.js +1 -1
- package/esm2015/lib/services/product-api.service.js +1 -1
- package/esm2015/lib/services/product-model-api.service.js +1 -1
- package/esm2015/lib/services/quote-api.service.js +1 -1
- package/esm2015/lib/services/ramp-api.service.js +1 -1
- package/esm2015/lib/services/rule-groups-api.service.js +1 -1
- package/esm2015/lib/services/rules-api.service.js +1 -1
- package/esm2015/lib/services/salesforce-api.service.js +1 -1
- package/esm2015/lib/services/scripts-api.service.js +3 -3
- package/esm2015/lib/services/ui-templates-api.service.js +1 -1
- package/esm2015/lib/types/dto/configuration-settings-dto.types.js +1 -1
- package/fesm2015/veloce-api.js +9 -391
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/catalog-admin-api.service.d.ts +1 -1
- package/lib/services/endpoints-api.service.d.ts +1 -1
- package/package.json +1 -1
- package/esm2015/lib/types/dto/attribute-dto.types.js +0 -21
- package/esm2015/lib/types/dto/charge-group-item-dto.types.js +0 -49
- package/esm2015/lib/types/dto/charge-item-dto.types.js +0 -78
- package/esm2015/lib/types/dto/configuration-dto.types.js +0 -19
- package/esm2015/lib/types/dto/domain-type-dto.types.js +0 -27
- package/esm2015/lib/types/dto/line-item-dto.types.js +0 -109
- package/esm2015/lib/types/dto/port-domain-dto.types.js +0 -22
- package/esm2015/lib/types/dto/price-adjustment-dto.types.js +0 -15
- package/esm2015/lib/types/dto/price-dto.types.js +0 -25
- package/esm2015/lib/types/dto/recommended-price-dto.types.js +0 -25
- package/lib/types/dto/attribute-dto.types.d.ts +0 -11
- package/lib/types/dto/charge-group-item-dto.types.d.ts +0 -26
- package/lib/types/dto/charge-item-dto.types.d.ts +0 -41
- package/lib/types/dto/configuration-dto.types.d.ts +0 -18
- package/lib/types/dto/domain-type-dto.types.d.ts +0 -15
- package/lib/types/dto/line-item-dto.types.d.ts +0 -58
- package/lib/types/dto/port-domain-dto.types.d.ts +0 -13
- package/lib/types/dto/price-adjustment-dto.types.d.ts +0 -8
- package/lib/types/dto/price-dto.types.d.ts +0 -13
- package/lib/types/dto/recommended-price-dto.types.d.ts +0 -14
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloce/core'), require('rxjs'), require('rxjs/operators'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define('@veloce/api', ['exports', '@angular/common/http', '@angular/core', '@veloce/core', 'rxjs', 'rxjs/operators', '
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.api = {}), global.ng.common.http, global.ng.core, global["@veloce/core"], global.rxjs, global.rxjs.operators, global.
|
5
|
-
})(this, (function (exports, i4, i0, i1, rxjs, operators,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloce/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('lodash'), require('moment')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloce/api', ['exports', '@angular/common/http', '@angular/core', '@veloce/core', 'rxjs', 'rxjs/operators', '@angular/common', 'lodash', 'moment'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.api = {}), global.ng.common.http, global.ng.core, global["@veloce/core"], global.rxjs, global.rxjs.operators, global.ng.common, global.lodash, global.moment));
|
5
|
+
})(this, (function (exports, i4, i0, i1, rxjs, operators, common, _, moment_) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -642,395 +642,6 @@
|
|
642
642
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
643
643
|
}
|
644
644
|
|
645
|
-
var AttributeDTO = /** @class */ (function () {
|
646
|
-
function AttributeDTO(name, type, value, cfgStatus, id, scale) {
|
647
|
-
this.name = name;
|
648
|
-
this.type = type;
|
649
|
-
this.value = value;
|
650
|
-
this.cfgStatus = cfgStatus;
|
651
|
-
this.id = id;
|
652
|
-
this.scale = scale;
|
653
|
-
}
|
654
|
-
AttributeDTO.fromDTO = function (dto) {
|
655
|
-
return {
|
656
|
-
id: dto.id,
|
657
|
-
name: dto.name,
|
658
|
-
type: dto.type,
|
659
|
-
scale: dto.scale,
|
660
|
-
value: dto.value,
|
661
|
-
cfgStatus: dto.cfgStatus,
|
662
|
-
};
|
663
|
-
};
|
664
|
-
return AttributeDTO;
|
665
|
-
}());
|
666
|
-
|
667
|
-
var PriceAdjustmentDTO = /** @class */ (function () {
|
668
|
-
function PriceAdjustmentDTO(amount, explanation, type) {
|
669
|
-
this.amount = amount;
|
670
|
-
this.explanation = explanation;
|
671
|
-
this.type = type;
|
672
|
-
}
|
673
|
-
PriceAdjustmentDTO.fromDTO = function (dto) {
|
674
|
-
return {
|
675
|
-
amount: dto.amount,
|
676
|
-
explanation: dto.explanation,
|
677
|
-
type: dto.type,
|
678
|
-
};
|
679
|
-
};
|
680
|
-
return PriceAdjustmentDTO;
|
681
|
-
}());
|
682
|
-
|
683
|
-
var ChargeGroupItemDTO = /** @class */ (function () {
|
684
|
-
function ChargeGroupItemDTO(chargeType, chargeMethod, properties, id, chargeTypeDisplayValue, frequencyUnit, frequencyDuration, basePrice, currency, sellingTerm, netPrice, listPrice, netUnitPrice, listUnitPrice, cost, priceAdjustment, priceWaterfalls, priceAdjustmentEnabled, listPriceAdjustmentEnabled) {
|
685
|
-
this.chargeType = chargeType;
|
686
|
-
this.chargeMethod = chargeMethod;
|
687
|
-
this.properties = properties;
|
688
|
-
this.id = id;
|
689
|
-
this.chargeTypeDisplayValue = chargeTypeDisplayValue;
|
690
|
-
this.frequencyUnit = frequencyUnit;
|
691
|
-
this.frequencyDuration = frequencyDuration;
|
692
|
-
this.basePrice = basePrice;
|
693
|
-
this.currency = currency;
|
694
|
-
this.sellingTerm = sellingTerm;
|
695
|
-
this.netPrice = netPrice;
|
696
|
-
this.listPrice = listPrice;
|
697
|
-
this.netUnitPrice = netUnitPrice;
|
698
|
-
this.listUnitPrice = listUnitPrice;
|
699
|
-
this.cost = cost;
|
700
|
-
this.priceAdjustment = priceAdjustment;
|
701
|
-
this.priceWaterfalls = priceWaterfalls;
|
702
|
-
this.priceAdjustmentEnabled = priceAdjustmentEnabled;
|
703
|
-
this.listPriceAdjustmentEnabled = listPriceAdjustmentEnabled;
|
704
|
-
}
|
705
|
-
ChargeGroupItemDTO.fromDTO = function (dto) {
|
706
|
-
var _a;
|
707
|
-
return {
|
708
|
-
id: dto.id,
|
709
|
-
chargeType: dto.chargeType,
|
710
|
-
chargeTypeDisplayValue: dto.chargeTypeDisplayValue,
|
711
|
-
chargeMethod: dto.chargeMethod,
|
712
|
-
frequencyUnit: dto.frequencyUnit,
|
713
|
-
frequencyDuration: dto.frequencyDuration,
|
714
|
-
basePrice: dto.basePrice,
|
715
|
-
currency: dto.currency,
|
716
|
-
sellingTerm: dto.sellingTerm,
|
717
|
-
netPrice: dto.netPrice,
|
718
|
-
listPrice: dto.listPrice,
|
719
|
-
netUnitPrice: dto.netUnitPrice,
|
720
|
-
listUnitPrice: dto.listUnitPrice,
|
721
|
-
cost: dto.cost,
|
722
|
-
priceAdjustment: dto.priceAdjustment && PriceAdjustmentDTO.fromDTO(dto.priceAdjustment),
|
723
|
-
priceWaterfalls: (_a = dto.priceWaterfalls) === null || _a === void 0 ? void 0 : _a.map(PriceAdjustmentDTO.fromDTO),
|
724
|
-
priceAdjustmentEnabled: dto.priceAdjustmentEnabled,
|
725
|
-
listPriceAdjustmentEnabled: dto.listPriceAdjustmentEnabled,
|
726
|
-
properties: dto.properties,
|
727
|
-
};
|
728
|
-
};
|
729
|
-
return ChargeGroupItemDTO;
|
730
|
-
}());
|
731
|
-
|
732
|
-
var ChargeItemDTO = /** @class */ (function () {
|
733
|
-
function ChargeItemDTO(id, price, unitPrice, baseListPrice, baseListUnitPrice, listPrice, listUnitPrice, netPrice, previousNetPrice, 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) {
|
734
|
-
this.id = id;
|
735
|
-
this.price = price;
|
736
|
-
this.unitPrice = unitPrice;
|
737
|
-
this.baseListPrice = baseListPrice;
|
738
|
-
this.baseListUnitPrice = baseListUnitPrice;
|
739
|
-
this.listPrice = listPrice;
|
740
|
-
this.listUnitPrice = listUnitPrice;
|
741
|
-
this.netPrice = netPrice;
|
742
|
-
this.previousNetPrice = previousNetPrice;
|
743
|
-
this.netUnitPrice = netUnitPrice;
|
744
|
-
this.chargeId = chargeId;
|
745
|
-
this.chargeType = chargeType;
|
746
|
-
this.chargeMethod = chargeMethod;
|
747
|
-
this.priceItemId = priceItemId;
|
748
|
-
this.startDate = startDate;
|
749
|
-
this.priceWaterfalls = priceWaterfalls;
|
750
|
-
this.quantity = quantity;
|
751
|
-
this.properties = properties;
|
752
|
-
this.chargeTypeDisplayValue = chargeTypeDisplayValue;
|
753
|
-
this.arr = arr;
|
754
|
-
this.frequencyUnit = frequencyUnit;
|
755
|
-
this.frequencyDuration = frequencyDuration;
|
756
|
-
this.endDate = endDate;
|
757
|
-
this.sellingTerm = sellingTerm;
|
758
|
-
this.currency = currency;
|
759
|
-
this.unitCost = unitCost;
|
760
|
-
this.cost = cost;
|
761
|
-
this.minUnitPrice = minUnitPrice;
|
762
|
-
this.minPrice = minPrice;
|
763
|
-
this.enablePriceAdjustment = enablePriceAdjustment;
|
764
|
-
this.enableListPriceAdjustment = enableListPriceAdjustment;
|
765
|
-
this.listPriceAdjustment = listPriceAdjustment;
|
766
|
-
this.priceAdjustment = priceAdjustment;
|
767
|
-
this.requiresApprovals = requiresApprovals;
|
768
|
-
}
|
769
|
-
ChargeItemDTO.fromDTO = function (dto) {
|
770
|
-
return {
|
771
|
-
id: dto.id,
|
772
|
-
price: dto.price,
|
773
|
-
unitPrice: dto.unitPrice,
|
774
|
-
baseListPrice: dto.baseListPrice,
|
775
|
-
baseListUnitPrice: dto.baseListUnitPrice,
|
776
|
-
listPrice: dto.listPrice,
|
777
|
-
listUnitPrice: dto.listUnitPrice,
|
778
|
-
netPrice: dto.netPrice,
|
779
|
-
previousNetPrice: dto.previousNetPrice,
|
780
|
-
netUnitPrice: dto.netUnitPrice,
|
781
|
-
chargeId: dto.chargeId,
|
782
|
-
chargeType: dto.chargeType,
|
783
|
-
chargeTypeDisplayValue: dto.chargeTypeDisplayValue,
|
784
|
-
chargeMethod: dto.chargeMethod,
|
785
|
-
priceItemId: dto.priceItemId,
|
786
|
-
startDate: dto.startDate,
|
787
|
-
endDate: dto.endDate,
|
788
|
-
priceWaterfalls: dto.priceWaterfalls.map(PriceAdjustmentDTO.fromDTO),
|
789
|
-
quantity: dto.quantity,
|
790
|
-
properties: dto.properties,
|
791
|
-
arr: dto.arr,
|
792
|
-
frequencyUnit: dto.frequencyUnit,
|
793
|
-
frequencyDuration: dto.frequencyDuration,
|
794
|
-
sellingTerm: dto.sellingTerm,
|
795
|
-
currency: dto.currency,
|
796
|
-
unitCost: dto.unitCost,
|
797
|
-
cost: dto.cost,
|
798
|
-
minUnitPrice: dto.minUnitPrice,
|
799
|
-
minPrice: dto.minPrice,
|
800
|
-
enablePriceAdjustment: dto.enablePriceAdjustment,
|
801
|
-
enableListPriceAdjustment: dto.enableListPriceAdjustment,
|
802
|
-
listPriceAdjustment: dto.listPriceAdjustment && PriceAdjustmentDTO.fromDTO(dto.listPriceAdjustment),
|
803
|
-
priceAdjustment: dto.priceAdjustment && PriceAdjustmentDTO.fromDTO(dto.priceAdjustment),
|
804
|
-
requiresApprovals: dto.requiresApprovals,
|
805
|
-
};
|
806
|
-
};
|
807
|
-
return ChargeItemDTO;
|
808
|
-
}());
|
809
|
-
|
810
|
-
var RecommendedPriceDTO = /** @class */ (function () {
|
811
|
-
function RecommendedPriceDTO(netPrice, listPrice, chargeType, chargeMethod, explanation, frequencyDuration, frequencyUnit, properties) {
|
812
|
-
this.netPrice = netPrice;
|
813
|
-
this.listPrice = listPrice;
|
814
|
-
this.chargeType = chargeType;
|
815
|
-
this.chargeMethod = chargeMethod;
|
816
|
-
this.explanation = explanation;
|
817
|
-
this.frequencyDuration = frequencyDuration;
|
818
|
-
this.frequencyUnit = frequencyUnit;
|
819
|
-
this.properties = properties;
|
820
|
-
}
|
821
|
-
RecommendedPriceDTO.fromDTO = function (dto) {
|
822
|
-
return {
|
823
|
-
netPrice: dto.netPrice,
|
824
|
-
listPrice: dto.listPrice,
|
825
|
-
chargeType: dto.chargeType,
|
826
|
-
chargeMethod: dto.chargeMethod,
|
827
|
-
frequencyUnit: dto.frequencyUnit,
|
828
|
-
frequencyDuration: dto.frequencyDuration,
|
829
|
-
explanation: dto.explanation,
|
830
|
-
properties: dto.properties,
|
831
|
-
};
|
832
|
-
};
|
833
|
-
return RecommendedPriceDTO;
|
834
|
-
}());
|
835
|
-
|
836
|
-
var DomainTypeDTO = /** @class */ (function () {
|
837
|
-
function DomainTypeDTO(name, displayName, minCard, maxCard, recommendedPrices, properties, status, cardinality) {
|
838
|
-
this.name = name;
|
839
|
-
this.displayName = displayName;
|
840
|
-
this.minCard = minCard;
|
841
|
-
this.maxCard = maxCard;
|
842
|
-
this.recommendedPrices = recommendedPrices;
|
843
|
-
this.properties = properties;
|
844
|
-
this.status = status;
|
845
|
-
this.cardinality = cardinality;
|
846
|
-
}
|
847
|
-
DomainTypeDTO.fromDTO = function (dto) {
|
848
|
-
var _a;
|
849
|
-
return {
|
850
|
-
name: dto.name,
|
851
|
-
displayName: dto.displayName,
|
852
|
-
minCard: dto.minCard,
|
853
|
-
maxCard: dto.maxCard,
|
854
|
-
recommendedPrices: (_a = dto.recommendedPrices) === null || _a === void 0 ? void 0 : _a.map(RecommendedPriceDTO.fromDTO),
|
855
|
-
properties: dto.properties,
|
856
|
-
status: dto.status,
|
857
|
-
cardinality: dto.cardinality,
|
858
|
-
};
|
859
|
-
};
|
860
|
-
return DomainTypeDTO;
|
861
|
-
}());
|
862
|
-
|
863
|
-
var PortDomainDTO = /** @class */ (function () {
|
864
|
-
function PortDomainDTO(name, type, minCard, maxCard, domainTypes, properties) {
|
865
|
-
this.name = name;
|
866
|
-
this.type = type;
|
867
|
-
this.minCard = minCard;
|
868
|
-
this.maxCard = maxCard;
|
869
|
-
this.domainTypes = domainTypes;
|
870
|
-
this.properties = properties;
|
871
|
-
}
|
872
|
-
PortDomainDTO.fromDTO = function (dto) {
|
873
|
-
return {
|
874
|
-
name: dto.name,
|
875
|
-
type: dto.type,
|
876
|
-
minCard: dto.minCard,
|
877
|
-
maxCard: dto.maxCard,
|
878
|
-
domainTypes: dto.domainTypes.map(DomainTypeDTO.fromDTO),
|
879
|
-
properties: dto.properties,
|
880
|
-
};
|
881
|
-
};
|
882
|
-
return PortDomainDTO;
|
883
|
-
}());
|
884
|
-
|
885
|
-
var PriceDTO = /** @class */ (function () {
|
886
|
-
function PriceDTO(netPrice, listPrice, chargeType, chargeTypeDisplayValue, chargeMethod, frequencyUnit, frequencyDuration, sellingTerm) {
|
887
|
-
this.netPrice = netPrice;
|
888
|
-
this.listPrice = listPrice;
|
889
|
-
this.chargeType = chargeType;
|
890
|
-
this.chargeTypeDisplayValue = chargeTypeDisplayValue;
|
891
|
-
this.chargeMethod = chargeMethod;
|
892
|
-
this.frequencyUnit = frequencyUnit;
|
893
|
-
this.frequencyDuration = frequencyDuration;
|
894
|
-
this.sellingTerm = sellingTerm;
|
895
|
-
}
|
896
|
-
PriceDTO.fromDTO = function (dto) {
|
897
|
-
return {
|
898
|
-
netPrice: dto.netPrice,
|
899
|
-
listPrice: dto.listPrice,
|
900
|
-
chargeType: dto.chargeType,
|
901
|
-
chargeTypeDisplayValue: dto.chargeTypeDisplayValue,
|
902
|
-
chargeMethod: dto.chargeMethod,
|
903
|
-
frequencyUnit: dto.frequencyUnit,
|
904
|
-
frequencyDuration: dto.frequencyDuration,
|
905
|
-
sellingTerm: dto.sellingTerm,
|
906
|
-
};
|
907
|
-
};
|
908
|
-
return PriceDTO;
|
909
|
-
}());
|
910
|
-
|
911
|
-
var LineItemDTO = /** @class */ (function () {
|
912
|
-
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, minimalTerm, proratedFrequencyEnabled, offeringId, offeringItemId, offeringInstanceId, rampInstanceId, enableRamp, configurable, requiresApprovals, metrics, totalMetrics) {
|
913
|
-
this.id = id;
|
914
|
-
this.activated = activated;
|
915
|
-
this.attributes = attributes;
|
916
|
-
this.attributeDomains = attributeDomains;
|
917
|
-
this.cfgStatus = cfgStatus;
|
918
|
-
this.chargeGroupItems = chargeGroupItems;
|
919
|
-
this.chargeItems = chargeItems;
|
920
|
-
this.domainComputations = domainComputations;
|
921
|
-
this.lineItems = lineItems;
|
922
|
-
this.messages = messages;
|
923
|
-
this.name = name;
|
924
|
-
this.optionalCharges = optionalCharges;
|
925
|
-
this.pending = pending;
|
926
|
-
this.portDomains = portDomains;
|
927
|
-
this.properties = properties;
|
928
|
-
this.qty = qty;
|
929
|
-
this.totalPrices = totalPrices;
|
930
|
-
this.type = type;
|
931
|
-
this.integrationId = integrationId;
|
932
|
-
this.productId = productId;
|
933
|
-
this.port = port;
|
934
|
-
this.parentId = parentId;
|
935
|
-
this.assetId = assetId;
|
936
|
-
this.openOrderLineItemId = openOrderLineItemId;
|
937
|
-
this.productName = productName;
|
938
|
-
this.rootId = rootId;
|
939
|
-
this.actionCode = actionCode;
|
940
|
-
this.serviceStartDate = serviceStartDate;
|
941
|
-
this.effectiveDate = effectiveDate;
|
942
|
-
this.effectiveStartDate = effectiveStartDate;
|
943
|
-
this.startDate = startDate;
|
944
|
-
this.endDate = endDate;
|
945
|
-
this.priceListId = priceListId;
|
946
|
-
this.planId = planId;
|
947
|
-
this.sellingFrequencyUnit = sellingFrequencyUnit;
|
948
|
-
this.sellingFrequencyDuration = sellingFrequencyDuration;
|
949
|
-
this.minimalTerm = minimalTerm;
|
950
|
-
this.proratedFrequencyEnabled = proratedFrequencyEnabled;
|
951
|
-
this.offeringId = offeringId;
|
952
|
-
this.offeringItemId = offeringItemId;
|
953
|
-
this.offeringInstanceId = offeringInstanceId;
|
954
|
-
this.rampInstanceId = rampInstanceId;
|
955
|
-
this.enableRamp = enableRamp;
|
956
|
-
this.configurable = configurable;
|
957
|
-
this.requiresApprovals = requiresApprovals;
|
958
|
-
this.metrics = metrics;
|
959
|
-
this.totalMetrics = totalMetrics;
|
960
|
-
}
|
961
|
-
LineItemDTO.fromDTO = function (dto) {
|
962
|
-
return {
|
963
|
-
id: dto.id,
|
964
|
-
activated: dto.activated,
|
965
|
-
attributes: dto.attributes.map(AttributeDTO.fromDTO),
|
966
|
-
attributeDomains: dto.attributeDomains,
|
967
|
-
cfgStatus: dto.cfgStatus,
|
968
|
-
chargeGroupItems: dto.chargeGroupItems.map(ChargeGroupItemDTO.fromDTO),
|
969
|
-
chargeItems: dto.chargeItems.map(ChargeItemDTO.fromDTO),
|
970
|
-
domainComputations: dto.domainComputations,
|
971
|
-
lineItems: dto.lineItems.map(LineItemDTO.fromDTO),
|
972
|
-
messages: dto.messages,
|
973
|
-
name: dto.name,
|
974
|
-
optionalCharges: dto.optionalCharges,
|
975
|
-
pending: dto.pending,
|
976
|
-
portDomains: _.transform(dto.portDomains, function (result, value, key) { return (result[key] = PortDomainDTO.fromDTO(value)); }),
|
977
|
-
properties: dto.properties,
|
978
|
-
qty: dto.qty,
|
979
|
-
totalPrices: _.transform(dto.totalPrices, function (result, value, key) { return (result[key] = PriceDTO.fromDTO(value)); }),
|
980
|
-
type: dto.type,
|
981
|
-
productId: dto.productId,
|
982
|
-
port: dto.port,
|
983
|
-
integrationId: dto.integrationId,
|
984
|
-
parentId: dto.parentId,
|
985
|
-
assetId: dto.assetId,
|
986
|
-
openOrderLineItemId: dto.openOrderLineItemId,
|
987
|
-
productName: dto.productName,
|
988
|
-
rootId: dto.rootId,
|
989
|
-
actionCode: dto.actionCode,
|
990
|
-
serviceStartDate: dto.serviceStartDate,
|
991
|
-
effectiveDate: dto.effectiveDate,
|
992
|
-
effectiveStartDate: dto.effectiveStartDate,
|
993
|
-
startDate: dto.startDate,
|
994
|
-
endDate: dto.endDate,
|
995
|
-
priceListId: dto.priceListId,
|
996
|
-
planId: dto.planId,
|
997
|
-
sellingFrequencyUnit: dto.sellingFrequencyUnit,
|
998
|
-
sellingFrequencyDuration: dto.sellingFrequencyDuration,
|
999
|
-
minimalTerm: dto.minimalTerm,
|
1000
|
-
proratedFrequencyEnabled: dto.proratedFrequencyEnabled,
|
1001
|
-
offeringId: dto.offeringId,
|
1002
|
-
offeringItemId: dto.offeringItemId,
|
1003
|
-
offeringInstanceId: dto.offeringInstanceId,
|
1004
|
-
rampInstanceId: dto.rampInstanceId,
|
1005
|
-
enableRamp: dto.enableRamp,
|
1006
|
-
configurable: dto.configurable,
|
1007
|
-
requiresApprovals: dto.requiresApprovals,
|
1008
|
-
metrics: dto.metrics,
|
1009
|
-
totalMetrics: dto.totalMetrics,
|
1010
|
-
};
|
1011
|
-
};
|
1012
|
-
return LineItemDTO;
|
1013
|
-
}());
|
1014
|
-
|
1015
|
-
var ConfigurePriceDTO = /** @class */ (function () {
|
1016
|
-
function ConfigurePriceDTO(lineItem, context, charges, pricePlans) {
|
1017
|
-
this.lineItem = lineItem;
|
1018
|
-
this.context = context;
|
1019
|
-
this.charges = charges;
|
1020
|
-
this.pricePlans = pricePlans;
|
1021
|
-
}
|
1022
|
-
ConfigurePriceDTO.fromDTO = function (dto) {
|
1023
|
-
return {
|
1024
|
-
lineItem: LineItemDTO.fromDTO(dto.lineItem),
|
1025
|
-
charges: dto.charges,
|
1026
|
-
pricePlans: dto.pricePlans,
|
1027
|
-
context: dto.context,
|
1028
|
-
deletedLineItems: dto.deletedLineItems.map(function (deletedLineItem) { return LineItemDTO.fromDTO(deletedLineItem); }),
|
1029
|
-
};
|
1030
|
-
};
|
1031
|
-
return ConfigurePriceDTO;
|
1032
|
-
}());
|
1033
|
-
|
1034
645
|
var ConfigurationApiService = /** @class */ (function () {
|
1035
646
|
function ConfigurationApiService(httpService) {
|
1036
647
|
this.httpService = httpService;
|
@@ -1046,7 +657,7 @@
|
|
1046
657
|
body: configurationRequest,
|
1047
658
|
errorHandler: function (e) { return rxjs.throwError(e); },
|
1048
659
|
})
|
1049
|
-
.pipe(operators.map(function (
|
660
|
+
.pipe(operators.map(function (configurePrice) {
|
1050
661
|
if (runtimeModel) {
|
1051
662
|
return Object.assign(Object.assign({}, configurePrice), { lineItem: _this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
|
1052
663
|
}
|
@@ -1210,14 +821,12 @@
|
|
1210
821
|
this.SERVICE_URL = '/delta';
|
1211
822
|
}
|
1212
823
|
DeltaApiService.prototype.calculate$ = function (request) {
|
1213
|
-
return this.httpService
|
1214
|
-
.api({
|
824
|
+
return this.httpService.api({
|
1215
825
|
method: 'post',
|
1216
826
|
url: this.SERVICE_URL + "/calculate",
|
1217
827
|
body: request,
|
1218
828
|
skipErrorHandler: true,
|
1219
|
-
})
|
1220
|
-
.pipe(rxjs.map(function (dtos) { return dtos.map(function (dto) { return LineItemDTO.fromDTO(dto); }); }));
|
829
|
+
});
|
1221
830
|
};
|
1222
831
|
return DeltaApiService;
|
1223
832
|
}());
|
@@ -1663,7 +1272,7 @@
|
|
1663
1272
|
method: 'get',
|
1664
1273
|
});
|
1665
1274
|
};
|
1666
|
-
EndpointsApiService.prototype.
|
1275
|
+
EndpointsApiService.prototype.createEndpoint$ = function (body) {
|
1667
1276
|
return this.baseHttpService.api({
|
1668
1277
|
url: "" + this.serviceUrl,
|
1669
1278
|
method: 'post',
|
@@ -2522,7 +2131,7 @@
|
|
2522
2131
|
return _this.baseHttpService.api({
|
2523
2132
|
url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
|
2524
2133
|
method: 'post',
|
2525
|
-
body: cloneRequest
|
2134
|
+
body: cloneRequest,
|
2526
2135
|
});
|
2527
2136
|
};
|
2528
2137
|
this.removeScript$ = function (id) {
|
@@ -2542,7 +2151,7 @@
|
|
2542
2151
|
url: "/scripts/execute",
|
2543
2152
|
method: 'post',
|
2544
2153
|
body: body,
|
2545
|
-
errorHandler: function () { return null; }
|
2154
|
+
errorHandler: function () { return null; },
|
2546
2155
|
});
|
2547
2156
|
};
|
2548
2157
|
}
|