@veloceapps/api 2.0.2 → 2.0.4
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 +18 -6
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/configuration-api.service.js +4 -7
- package/esm2015/lib/types/configuration-dto.types.js +16 -0
- package/fesm2015/veloce-api.js +17 -6
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/configuration-api.service.d.ts +2 -5
- package/lib/types/configuration-dto.types.d.ts +15 -0
- package/package.json +2 -1
@@ -690,6 +690,22 @@
|
|
690
690
|
return LineItemDTO;
|
691
691
|
}());
|
692
692
|
|
693
|
+
var ConfigurePriceDTO = /** @class */ (function () {
|
694
|
+
function ConfigurePriceDTO(lineItem, context, charges) {
|
695
|
+
this.lineItem = lineItem;
|
696
|
+
this.context = context;
|
697
|
+
this.charges = charges;
|
698
|
+
}
|
699
|
+
ConfigurePriceDTO.fromDTO = function (dto) {
|
700
|
+
return {
|
701
|
+
lineItem: LineItemDTO.fromDTO(dto.lineItem),
|
702
|
+
charges: dto.charges,
|
703
|
+
context: dto.context,
|
704
|
+
};
|
705
|
+
};
|
706
|
+
return ConfigurePriceDTO;
|
707
|
+
}());
|
708
|
+
|
693
709
|
var ConfigurationApiService = /** @class */ (function () {
|
694
710
|
function ConfigurationApiService(httpService) {
|
695
711
|
this.httpService = httpService;
|
@@ -723,12 +739,8 @@
|
|
723
739
|
body: configurationRequest,
|
724
740
|
errorHandler: function (e) { return rxjs.throwError(e); },
|
725
741
|
})
|
726
|
-
.pipe(operators.map(function (response) {
|
727
|
-
|
728
|
-
return {
|
729
|
-
lineItem: _this.updatePortDomains(lineItem, runtimeModel),
|
730
|
-
context: response.context,
|
731
|
-
};
|
742
|
+
.pipe(operators.map(function (response) { return ConfigurePriceDTO.fromDTO(response); }), operators.map(function (configurePrice) {
|
743
|
+
return Object.assign(Object.assign({}, configurePrice), { lineItem: _this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
|
732
744
|
}));
|
733
745
|
};
|
734
746
|
ConfigurationApiService.prototype.getRuntimeDataByProductId = function (productId, offeringId) {
|