@veloceapps/api 1.0.1 → 2.0.0

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.
@@ -782,9 +782,9 @@
782
782
  };
783
783
  return ConfigurationApiService;
784
784
  }());
785
- ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
786
- ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService });
787
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, decorators: [{
785
+ ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
786
+ ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationApiService });
787
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationApiService, decorators: [{
788
788
  type: i0.Injectable
789
789
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
790
790
 
@@ -870,9 +870,9 @@
870
870
  };
871
871
  return ConfigurationSettingsApiService;
872
872
  }());
873
- ConfigurationSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationSettingsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
874
- ConfigurationSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationSettingsApiService });
875
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationSettingsApiService, decorators: [{
873
+ ConfigurationSettingsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationSettingsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
874
+ ConfigurationSettingsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationSettingsApiService });
875
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ConfigurationSettingsApiService, decorators: [{
876
876
  type: i0.Injectable
877
877
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
878
878
 
@@ -893,9 +893,9 @@
893
893
  };
894
894
  return ContextApiService;
895
895
  }());
896
- ContextApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
897
- ContextApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextApiService });
898
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ContextApiService, decorators: [{
896
+ ContextApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
897
+ ContextApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextApiService });
898
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContextApiService, decorators: [{
899
899
  type: i0.Injectable
900
900
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
901
901
 
@@ -956,9 +956,9 @@
956
956
  };
957
957
  return DocumentAttachmentApiService;
958
958
  }());
959
- DocumentAttachmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentAttachmentApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i1__namespace.FileDownloadService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
960
- DocumentAttachmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentAttachmentApiService });
961
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentAttachmentApiService, decorators: [{
959
+ DocumentAttachmentApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentAttachmentApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i1__namespace.FileDownloadService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
960
+ DocumentAttachmentApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentAttachmentApiService });
961
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentAttachmentApiService, decorators: [{
962
962
  type: i0.Injectable
963
963
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i1__namespace.FileDownloadService }]; } });
964
964
 
@@ -1004,9 +1004,9 @@
1004
1004
  };
1005
1005
  return SalesforceApiService;
1006
1006
  }());
1007
- SalesforceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalesforceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1008
- SalesforceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalesforceApiService });
1009
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: SalesforceApiService, decorators: [{
1007
+ SalesforceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalesforceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1008
+ SalesforceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalesforceApiService });
1009
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SalesforceApiService, decorators: [{
1010
1010
  type: i0.Injectable
1011
1011
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1012
1012
 
@@ -1301,9 +1301,9 @@
1301
1301
  };
1302
1302
  return DocumentTemplatesApiService;
1303
1303
  }());
1304
- DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: SalesforceApiService }, { token: i1__namespace.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1305
- DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService });
1306
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
1304
+ DocumentTemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentTemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: SalesforceApiService }, { token: i1__namespace.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1305
+ DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentTemplatesApiService });
1306
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
1307
1307
  type: i0.Injectable
1308
1308
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4__namespace.HttpClient }]; } });
1309
1309
 
@@ -1385,9 +1385,9 @@
1385
1385
  };
1386
1386
  return PriceApiService;
1387
1387
  }());
1388
- PriceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PriceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1389
- PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PriceApiService });
1390
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PriceApiService, decorators: [{
1388
+ PriceApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PriceApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1389
+ PriceApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PriceApiService });
1390
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PriceApiService, decorators: [{
1391
1391
  type: i0.Injectable
1392
1392
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1393
1393
 
@@ -1615,9 +1615,9 @@
1615
1615
  return ProductModelApiService;
1616
1616
  }());
1617
1617
  ProductModelApiService.MAX_RESULTS = 200;
1618
- ProductModelApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModelApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1619
- ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModelApiService });
1620
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProductModelApiService, decorators: [{
1618
+ ProductModelApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModelApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1619
+ ProductModelApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModelApiService });
1620
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProductModelApiService, decorators: [{
1621
1621
  type: i0.Injectable
1622
1622
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1623
1623
 
@@ -1649,9 +1649,9 @@
1649
1649
  };
1650
1650
  return QuoteApiService;
1651
1651
  }());
1652
- QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1653
- QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService });
1654
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
1652
+ QuoteApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1653
+ QuoteApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteApiService });
1654
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QuoteApiService, decorators: [{
1655
1655
  type: i0.Injectable
1656
1656
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1657
1657
 
@@ -1689,9 +1689,9 @@
1689
1689
  };
1690
1690
  return RampApiService;
1691
1691
  }());
1692
- RampApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RampApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1693
- RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RampApiService });
1694
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RampApiService, decorators: [{
1692
+ RampApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RampApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1693
+ RampApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RampApiService });
1694
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RampApiService, decorators: [{
1695
1695
  type: i0.Injectable
1696
1696
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1697
1697
 
@@ -1701,10 +1701,6 @@
1701
1701
  name: dto.name,
1702
1702
  uiComponentId: dto.uiComponentId,
1703
1703
  description: dto.description,
1704
- templateHtmlId: dto.templateHtmlId,
1705
- scriptJsId: dto.scriptJsId,
1706
- styleCssId: dto.styleCssId,
1707
- sectionJsonId: dto.sectionJsonId,
1708
1704
  section: attachments.json,
1709
1705
  template: attachments.html,
1710
1706
  script: attachments.js,
@@ -1738,9 +1734,14 @@
1738
1734
  body: template,
1739
1735
  });
1740
1736
  };
1741
- this.duplicateTemplate$ = function (template) {
1742
- // TODO: integrate with BE
1743
- return rxjs.of(i1.UUID.UUID());
1737
+ this.duplicateTemplate$ = function (template, cloneRequest) {
1738
+ return _this.baseHttpService
1739
+ .api({
1740
+ url: _this.serviceUrl + "/" + template.id + "/clone",
1741
+ method: 'post',
1742
+ body: cloneRequest,
1743
+ })
1744
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1744
1745
  };
1745
1746
  this.removeTemplate$ = function (id) {
1746
1747
  return _this.baseHttpService.api({
@@ -1791,9 +1792,14 @@
1791
1792
  body: component,
1792
1793
  });
1793
1794
  };
1794
- this.duplicateComponent$ = function (component) {
1795
- // TODO: integrate with BE
1796
- return rxjs.of(i1.UUID.UUID());
1795
+ this.duplicateComponent$ = function (component, cloneRequest) {
1796
+ return _this.baseHttpService
1797
+ .api({
1798
+ url: _this.serviceUrl + "/" + component.uiTemplateId + "/components/" + component.id + "/clone",
1799
+ method: 'post',
1800
+ body: cloneRequest,
1801
+ })
1802
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1797
1803
  };
1798
1804
  this.removeComponent$ = function (templateId, componentId) {
1799
1805
  return _this.baseHttpService.api({
@@ -1820,15 +1826,16 @@
1820
1826
  .api({
1821
1827
  url: _this.serviceUrl + "/" + templateId + "/components/" + componentId + "/stories/" + storyId + "/attachments/" + type + "/file",
1822
1828
  responseType: 'text',
1829
+ errorHandler: rxjs.noop,
1823
1830
  })
1824
1831
  .pipe(rxjs.catchError(function () { return rxjs.of(''); }));
1825
1832
  };
1826
1833
  this.convertToComponentStory$ = function (templateId, componentId, storyDto) {
1827
1834
  return rxjs.forkJoin([
1828
- storyDto.templateHtmlId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html') : rxjs.of(undefined),
1829
- storyDto.scriptJsId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js') : rxjs.of(undefined),
1830
- storyDto.styleCssId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css') : rxjs.of(undefined),
1831
- storyDto.sectionJsonId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json') : rxjs.of(undefined),
1835
+ _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html'),
1836
+ _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js'),
1837
+ _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css'),
1838
+ _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'json'),
1832
1839
  ]).pipe(rxjs.map(function (_a) {
1833
1840
  var _b = __read(_a, 4), html = _b[0], js = _b[1], css = _b[2], json = _b[3];
1834
1841
  return ({ html: html, js: js, css: css, json: json });
@@ -1875,6 +1882,15 @@
1875
1882
  })
1876
1883
  .pipe(rxjs.map(function (dto) { return fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section }); }));
1877
1884
  };
1885
+ this.duplicateComponentStory$ = function (story, cloneRequest) {
1886
+ return _this.baseHttpService
1887
+ .api({
1888
+ url: _this.serviceUrl + "/" + story.template + "/components/" + story.uiComponentId + "/stories/" + story.id + "/clone",
1889
+ method: 'post',
1890
+ body: cloneRequest,
1891
+ })
1892
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1893
+ };
1878
1894
  this.deleteComponentStory$ = function (templateId, componentId, storyId) {
1879
1895
  return _this.baseHttpService.api({
1880
1896
  method: 'delete',
@@ -1909,10 +1925,10 @@
1909
1925
  };
1910
1926
  this.fetchComponentAttachments$ = function (templateId, component) {
1911
1927
  return rxjs.forkJoin([
1912
- component.templateHtmlId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'html') : rxjs.of(undefined),
1913
- component.scriptJsId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'js') : rxjs.of(undefined),
1914
- component.styleCssId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'css') : rxjs.of(undefined),
1915
- component.propertiesJsonId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'json') : rxjs.of(undefined),
1928
+ _this.fetchComponentAttachmentFile$(templateId, component.id, 'html'),
1929
+ _this.fetchComponentAttachmentFile$(templateId, component.id, 'js'),
1930
+ _this.fetchComponentAttachmentFile$(templateId, component.id, 'css'),
1931
+ _this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
1916
1932
  ]).pipe(rxjs.map(function (_a) {
1917
1933
  var _b = __read(_a, 4), html = _b[0], js = _b[1], css = _b[2], json = _b[3];
1918
1934
  return ({ html: html, js: js, css: css, json: json });
@@ -1924,6 +1940,7 @@
1924
1940
  method: 'get',
1925
1941
  url: _this.serviceUrl + "/" + templateId + "/components/" + componentId + "/attachments/" + attachmentType + "/file",
1926
1942
  responseType: 'text',
1943
+ errorHandler: rxjs.noop,
1927
1944
  })
1928
1945
  .pipe(rxjs.catchError(function () { return rxjs.of(''); }));
1929
1946
  };
@@ -1968,9 +1985,9 @@
1968
1985
  };
1969
1986
  return UITemplatesApiService;
1970
1987
  }());
1971
- UITemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UITemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1972
- UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UITemplatesApiService });
1973
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UITemplatesApiService, decorators: [{
1988
+ UITemplatesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UITemplatesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1989
+ UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UITemplatesApiService });
1990
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: UITemplatesApiService, decorators: [{
1974
1991
  type: i0.Injectable
1975
1992
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1976
1993
 
@@ -2042,9 +2059,27 @@
2042
2059
  }
2043
2060
  return ScriptsApiService;
2044
2061
  }());
2045
- ScriptsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2046
- ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService });
2047
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
2062
+ ScriptsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScriptsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2063
+ ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScriptsApiService });
2064
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
2065
+ type: i0.Injectable
2066
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2067
+
2068
+ var RulesApiService = /** @class */ (function () {
2069
+ function RulesApiService(baseHttpService) {
2070
+ var _this = this;
2071
+ this.baseHttpService = baseHttpService;
2072
+ this.serviceUrl = '/admin/rules';
2073
+ this.fetchRules$ = function () {
2074
+ return rxjs.of([]).pipe(rxjs.delay(1000));
2075
+ return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
2076
+ };
2077
+ }
2078
+ return RulesApiService;
2079
+ }());
2080
+ RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RulesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2081
+ RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RulesApiService });
2082
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RulesApiService, decorators: [{
2048
2083
  type: i0.Injectable
2049
2084
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2050
2085
 
@@ -2053,9 +2088,9 @@
2053
2088
  }
2054
2089
  return ApiModule;
2055
2090
  }());
2056
- ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2057
- ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
2058
- ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, providers: [
2091
+ ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2092
+ ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
2093
+ ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiModule, providers: [
2059
2094
  i1.BaseHttpService,
2060
2095
  i1.XrayService,
2061
2096
  ConfigurationApiService,
@@ -2070,8 +2105,9 @@
2070
2105
  SalesforceApiService,
2071
2106
  UITemplatesApiService,
2072
2107
  ScriptsApiService,
2108
+ RulesApiService,
2073
2109
  ], imports: [[i4.HttpClientModule]] });
2074
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
2110
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ApiModule, decorators: [{
2075
2111
  type: i0.NgModule,
2076
2112
  args: [{
2077
2113
  imports: [i4.HttpClientModule],
@@ -2090,6 +2126,7 @@
2090
2126
  SalesforceApiService,
2091
2127
  UITemplatesApiService,
2092
2128
  ScriptsApiService,
2129
+ RulesApiService,
2093
2130
  ],
2094
2131
  }]
2095
2132
  }] });