@veloceapps/api 1.0.1 → 1.0.2
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 +12 -6
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/ui-templates-api.service.js +13 -8
- package/fesm2015/veloce-api.js +13 -7
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/ui-templates-api.service.d.ts +3 -2
- package/package.json +1 -1
@@ -1738,9 +1738,12 @@
|
|
1738
1738
|
body: template,
|
1739
1739
|
});
|
1740
1740
|
};
|
1741
|
-
this.duplicateTemplate$ = function (
|
1742
|
-
|
1743
|
-
|
1741
|
+
this.duplicateTemplate$ = function (cloneRequest) {
|
1742
|
+
return _this.baseHttpService.api({
|
1743
|
+
method: 'post',
|
1744
|
+
url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
|
1745
|
+
body: cloneRequest,
|
1746
|
+
});
|
1744
1747
|
};
|
1745
1748
|
this.removeTemplate$ = function (id) {
|
1746
1749
|
return _this.baseHttpService.api({
|
@@ -1791,9 +1794,12 @@
|
|
1791
1794
|
body: component,
|
1792
1795
|
});
|
1793
1796
|
};
|
1794
|
-
this.duplicateComponent$ = function (
|
1795
|
-
|
1796
|
-
|
1797
|
+
this.duplicateComponent$ = function (templateId, cloneRequest) {
|
1798
|
+
return _this.baseHttpService.api({
|
1799
|
+
method: 'post',
|
1800
|
+
url: _this.serviceUrl + "/" + templateId + "/components/" + cloneRequest.id + "/clone",
|
1801
|
+
body: cloneRequest,
|
1802
|
+
});
|
1797
1803
|
};
|
1798
1804
|
this.removeComponent$ = function (templateId, componentId) {
|
1799
1805
|
return _this.baseHttpService.api({
|