@veloceapps/api 8.0.0-65 → 8.0.0-67
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/esm2020/lib/services/configuration-api.service.mjs +21 -1
- package/esm2020/lib/services/portals-api.service.mjs +9 -2
- package/fesm2015/veloceapps-api.mjs +24 -0
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +27 -0
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/configuration-api.service.d.ts +5 -0
- package/lib/services/portals-api.service.d.ts +3 -1
- package/package.json +1 -1
@@ -404,6 +404,26 @@ class ConfigurationApiService {
|
|
404
404
|
}
|
405
405
|
}));
|
406
406
|
}
|
407
|
+
customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
|
408
|
+
return this.httpService
|
409
|
+
.api({
|
410
|
+
method: 'post',
|
411
|
+
url,
|
412
|
+
body: configurationRequest,
|
413
|
+
errorHandler: e => throwError(e),
|
414
|
+
})
|
415
|
+
.pipe(map(configurePrice => {
|
416
|
+
if (runtimeModel) {
|
417
|
+
return {
|
418
|
+
...configurePrice,
|
419
|
+
lineItem: this.updatePortDomains(configurePrice.lineItem, runtimeModel),
|
420
|
+
};
|
421
|
+
}
|
422
|
+
else {
|
423
|
+
return configurePrice;
|
424
|
+
}
|
425
|
+
}));
|
426
|
+
}
|
407
427
|
getRuntimeDataByProductId(productId, offeringId) {
|
408
428
|
return this.httpService
|
409
429
|
.api({
|
@@ -2935,6 +2955,13 @@ class PortalsApiService {
|
|
2935
2955
|
url: `${this.serviceUrl}/${id}/restore`,
|
2936
2956
|
});
|
2937
2957
|
};
|
2958
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
2959
|
+
return this.baseHttpService.api({
|
2960
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
2961
|
+
method: 'post',
|
2962
|
+
body: cloneRequest,
|
2963
|
+
});
|
2964
|
+
};
|
2938
2965
|
this.getPortal$ = (id) => {
|
2939
2966
|
return this.baseHttpService.api({
|
2940
2967
|
url: `${this.serviceUrl}/${id}`,
|