@veloceapps/api 1.0.0 → 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.
@@ -1738,9 +1738,12 @@
1738
1738
  body: template,
1739
1739
  });
1740
1740
  };
1741
- this.duplicateTemplate$ = function (template) {
1742
- // TODO: integrate with BE
1743
- return rxjs.of(i1.UUID.UUID());
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 (component) {
1795
- // TODO: integrate with BE
1796
- return rxjs.of(i1.UUID.UUID());
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({
@@ -2036,6 +2042,7 @@
2036
2042
  url: "/scripts/execute",
2037
2043
  method: 'post',
2038
2044
  body: body,
2045
+ errorHandler: function () { return null; }
2039
2046
  });
2040
2047
  };
2041
2048
  }