@veloceapps/api 1.0.2 → 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,12 +1734,14 @@
1738
1734
  body: template,
1739
1735
  });
1740
1736
  };
1741
- this.duplicateTemplate$ = function (cloneRequest) {
1742
- return _this.baseHttpService.api({
1737
+ this.duplicateTemplate$ = function (template, cloneRequest) {
1738
+ return _this.baseHttpService
1739
+ .api({
1740
+ url: _this.serviceUrl + "/" + template.id + "/clone",
1743
1741
  method: 'post',
1744
- url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
1745
1742
  body: cloneRequest,
1746
- });
1743
+ })
1744
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1747
1745
  };
1748
1746
  this.removeTemplate$ = function (id) {
1749
1747
  return _this.baseHttpService.api({
@@ -1794,12 +1792,14 @@
1794
1792
  body: component,
1795
1793
  });
1796
1794
  };
1797
- this.duplicateComponent$ = function (templateId, cloneRequest) {
1798
- return _this.baseHttpService.api({
1795
+ this.duplicateComponent$ = function (component, cloneRequest) {
1796
+ return _this.baseHttpService
1797
+ .api({
1798
+ url: _this.serviceUrl + "/" + component.uiTemplateId + "/components/" + component.id + "/clone",
1799
1799
  method: 'post',
1800
- url: _this.serviceUrl + "/" + templateId + "/components/" + cloneRequest.id + "/clone",
1801
1800
  body: cloneRequest,
1802
- });
1801
+ })
1802
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1803
1803
  };
1804
1804
  this.removeComponent$ = function (templateId, componentId) {
1805
1805
  return _this.baseHttpService.api({
@@ -1826,15 +1826,16 @@
1826
1826
  .api({
1827
1827
  url: _this.serviceUrl + "/" + templateId + "/components/" + componentId + "/stories/" + storyId + "/attachments/" + type + "/file",
1828
1828
  responseType: 'text',
1829
+ errorHandler: rxjs.noop,
1829
1830
  })
1830
1831
  .pipe(rxjs.catchError(function () { return rxjs.of(''); }));
1831
1832
  };
1832
1833
  this.convertToComponentStory$ = function (templateId, componentId, storyDto) {
1833
1834
  return rxjs.forkJoin([
1834
- storyDto.templateHtmlId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'html') : rxjs.of(undefined),
1835
- storyDto.scriptJsId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'js') : rxjs.of(undefined),
1836
- storyDto.styleCssId ? _this.fetchStoryAttachment(templateId, componentId, storyDto.id, 'css') : rxjs.of(undefined),
1837
- 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'),
1838
1839
  ]).pipe(rxjs.map(function (_a) {
1839
1840
  var _b = __read(_a, 4), html = _b[0], js = _b[1], css = _b[2], json = _b[3];
1840
1841
  return ({ html: html, js: js, css: css, json: json });
@@ -1881,6 +1882,15 @@
1881
1882
  })
1882
1883
  .pipe(rxjs.map(function (dto) { return fromUIComponentStoryDTO(dto, { html: template, js: script, css: styles, json: section }); }));
1883
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
+ };
1884
1894
  this.deleteComponentStory$ = function (templateId, componentId, storyId) {
1885
1895
  return _this.baseHttpService.api({
1886
1896
  method: 'delete',
@@ -1915,10 +1925,10 @@
1915
1925
  };
1916
1926
  this.fetchComponentAttachments$ = function (templateId, component) {
1917
1927
  return rxjs.forkJoin([
1918
- component.templateHtmlId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'html') : rxjs.of(undefined),
1919
- component.scriptJsId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'js') : rxjs.of(undefined),
1920
- component.styleCssId ? _this.fetchComponentAttachmentFile$(templateId, component.id, 'css') : rxjs.of(undefined),
1921
- 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'),
1922
1932
  ]).pipe(rxjs.map(function (_a) {
1923
1933
  var _b = __read(_a, 4), html = _b[0], js = _b[1], css = _b[2], json = _b[3];
1924
1934
  return ({ html: html, js: js, css: css, json: json });
@@ -1930,6 +1940,7 @@
1930
1940
  method: 'get',
1931
1941
  url: _this.serviceUrl + "/" + templateId + "/components/" + componentId + "/attachments/" + attachmentType + "/file",
1932
1942
  responseType: 'text',
1943
+ errorHandler: rxjs.noop,
1933
1944
  })
1934
1945
  .pipe(rxjs.catchError(function () { return rxjs.of(''); }));
1935
1946
  };
@@ -1974,9 +1985,9 @@
1974
1985
  };
1975
1986
  return UITemplatesApiService;
1976
1987
  }());
1977
- 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 });
1978
- UITemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: UITemplatesApiService });
1979
- 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: [{
1980
1991
  type: i0.Injectable
1981
1992
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1982
1993
 
@@ -2048,9 +2059,27 @@
2048
2059
  }
2049
2060
  return ScriptsApiService;
2050
2061
  }());
2051
- 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 });
2052
- ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService });
2053
- 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: [{
2054
2083
  type: i0.Injectable
2055
2084
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2056
2085
 
@@ -2059,9 +2088,9 @@
2059
2088
  }
2060
2089
  return ApiModule;
2061
2090
  }());
2062
- ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2063
- ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i4.HttpClientModule] });
2064
- 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: [
2065
2094
  i1.BaseHttpService,
2066
2095
  i1.XrayService,
2067
2096
  ConfigurationApiService,
@@ -2076,8 +2105,9 @@
2076
2105
  SalesforceApiService,
2077
2106
  UITemplatesApiService,
2078
2107
  ScriptsApiService,
2108
+ RulesApiService,
2079
2109
  ], imports: [[i4.HttpClientModule]] });
2080
- 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: [{
2081
2111
  type: i0.NgModule,
2082
2112
  args: [{
2083
2113
  imports: [i4.HttpClientModule],
@@ -2096,6 +2126,7 @@
2096
2126
  SalesforceApiService,
2097
2127
  UITemplatesApiService,
2098
2128
  ScriptsApiService,
2129
+ RulesApiService,
2099
2130
  ],
2100
2131
  }]
2101
2132
  }] });