@veloceapps/api 2.0.13 → 2.0.15

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.
@@ -701,6 +701,7 @@
701
701
  lineItem: LineItemDTO.fromDTO(dto.lineItem),
702
702
  charges: dto.charges,
703
703
  context: dto.context,
704
+ deletedLineItems: dto.deletedLineItems.map(function (deletedLineItem) { return LineItemDTO.fromDTO(deletedLineItem); }),
704
705
  };
705
706
  };
706
707
  return ConfigurePriceDTO;
@@ -711,38 +712,25 @@
711
712
  this.httpService = httpService;
712
713
  this.SERVICE_URL = '/configuration';
713
714
  }
714
- ConfigurationApiService.prototype.configureLineItem = function (configurationRequest, runtimeModel) {
715
+ ConfigurationApiService.prototype.configureLineItem = function (_d) {
715
716
  var _this = this;
717
+ var configurationRequest = _d.configurationRequest, runtimeModel = _d.runtimeModel, pricingEnabled = _d.pricingEnabled;
716
718
  return this.httpService
717
719
  .api({
718
720
  method: 'post',
719
- url: "" + this.SERVICE_URL,
721
+ url: "" + this.SERVICE_URL + (pricingEnabled ? '/price' : ''),
720
722
  body: configurationRequest,
721
723
  errorHandler: function (e) { return rxjs.throwError(e); },
722
724
  })
723
- .pipe(operators.map(function (response) {
724
- var lineItem = LineItemDTO.fromDTO(response);
725
+ .pipe(operators.map(function (response) { return ConfigurePriceDTO.fromDTO(response); }), operators.map(function (configurePrice) {
725
726
  if (runtimeModel) {
726
- return _this.updatePortDomains(lineItem, runtimeModel);
727
+ return Object.assign(Object.assign({}, configurePrice), { lineItem: _this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
727
728
  }
728
729
  else {
729
- return lineItem;
730
+ return configurePrice;
730
731
  }
731
732
  }));
732
733
  };
733
- ConfigurationApiService.prototype.configureAndPriceLineItem = function (configurationRequest, runtimeModel) {
734
- var _this = this;
735
- return this.httpService
736
- .api({
737
- method: 'post',
738
- url: this.SERVICE_URL + "/price",
739
- body: configurationRequest,
740
- errorHandler: function (e) { return rxjs.throwError(e); },
741
- })
742
- .pipe(operators.map(function (response) { return ConfigurePriceDTO.fromDTO(response); }), operators.map(function (configurePrice) {
743
- return Object.assign(Object.assign({}, configurePrice), { lineItem: _this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
744
- }));
745
- };
746
734
  ConfigurationApiService.prototype.getRuntimeDataByProductId = function (productId, offeringId) {
747
735
  return this.httpService
748
736
  .api({
@@ -1081,14 +1069,25 @@
1081
1069
  };
1082
1070
  DocumentTemplatesApiService.prototype.removeTemplate = function (id) {
1083
1071
  return this.service.api({
1084
- url: '/templates' + id,
1072
+ url: '/templates/' + id,
1085
1073
  method: 'delete',
1086
1074
  });
1087
1075
  };
1088
- DocumentTemplatesApiService.prototype.cloneTemplate = function (id) {
1076
+ DocumentTemplatesApiService.prototype.restoreTemplate = function (id) {
1077
+ return this.service.api({
1078
+ url: "/templates/" + id + "/restore",
1079
+ method: 'patch',
1080
+ });
1081
+ };
1082
+ DocumentTemplatesApiService.prototype.cloneTemplate = function (id, propertiesToOverride) {
1083
+ if (propertiesToOverride === void 0) { propertiesToOverride = {}; }
1089
1084
  return this.service.api({
1090
1085
  url: '/templates/clone/' + id,
1091
1086
  method: 'post',
1087
+ body: {
1088
+ id: id,
1089
+ propertiesToOverride: propertiesToOverride,
1090
+ },
1092
1091
  });
1093
1092
  };
1094
1093
  DocumentTemplatesApiService.prototype.generateDocumentData = function (template, object, params) {
@@ -1403,6 +1402,70 @@
1403
1402
  type: i0.Injectable
1404
1403
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1405
1404
 
1405
+ var ProceduresApiService = /** @class */ (function () {
1406
+ function ProceduresApiService(baseHttpService) {
1407
+ var _this = this;
1408
+ this.baseHttpService = baseHttpService;
1409
+ this.serviceUrl = '/admin/procedures';
1410
+ this.fetchProcedures$ = function () {
1411
+ return _this.searchProcedures$(new i1.Expression(), 0, 100);
1412
+ };
1413
+ this.searchProcedures$ = function (expression, skip, count) {
1414
+ var params = new i4.HttpParams();
1415
+ params = params.set('skip', '' + skip);
1416
+ params = params.set('count', '' + count);
1417
+ return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
1418
+ };
1419
+ this.createProcedure$ = function (newProcedure) {
1420
+ return _this.baseHttpService.api({
1421
+ url: "" + _this.serviceUrl,
1422
+ method: 'post',
1423
+ body: newProcedure,
1424
+ });
1425
+ };
1426
+ this.updateProcedure$ = function (procedure) {
1427
+ return _this.baseHttpService.api({
1428
+ url: _this.serviceUrl + "/" + procedure.id,
1429
+ method: 'put',
1430
+ body: procedure,
1431
+ });
1432
+ };
1433
+ this.duplicateProcedure$ = function (body) {
1434
+ return _this.baseHttpService
1435
+ .api({
1436
+ url: _this.serviceUrl + "/" + body.id + "/clone",
1437
+ method: 'post',
1438
+ body: body,
1439
+ })
1440
+ .pipe(operators.map(function (response) { return response.clonedRecordId; }));
1441
+ };
1442
+ this.removeProcedure$ = function (id) {
1443
+ return _this.baseHttpService.api({
1444
+ url: _this.serviceUrl + "/" + id,
1445
+ method: 'delete',
1446
+ });
1447
+ };
1448
+ this.restoreProcedure$ = function (id) {
1449
+ return _this.baseHttpService.api({
1450
+ url: _this.serviceUrl + "/" + id + "/restore",
1451
+ method: 'patch',
1452
+ });
1453
+ };
1454
+ }
1455
+ ProceduresApiService.prototype.fetchProcedure$ = function (id) {
1456
+ return this.baseHttpService.api({
1457
+ url: this.serviceUrl + "/" + id,
1458
+ method: 'get',
1459
+ });
1460
+ };
1461
+ return ProceduresApiService;
1462
+ }());
1463
+ ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1464
+ ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService });
1465
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService, decorators: [{
1466
+ type: i0.Injectable
1467
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1468
+
1406
1469
  var ProductModelApiService = /** @class */ (function () {
1407
1470
  function ProductModelApiService(httpService) {
1408
1471
  this.httpService = httpService;
@@ -1707,6 +1770,174 @@
1707
1770
  type: i0.Injectable
1708
1771
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1709
1772
 
1773
+ var RuleGroupsApiService = /** @class */ (function () {
1774
+ function RuleGroupsApiService(baseHttpService) {
1775
+ var _this = this;
1776
+ this.baseHttpService = baseHttpService;
1777
+ this.serviceUrl = '/admin/rule-groups';
1778
+ this.fetchRuleGroups$ = function () {
1779
+ return _this.searchRuleGroups$(new i1.Expression(), 0, 100);
1780
+ };
1781
+ this.searchRuleGroups$ = function (expression, skip, count) {
1782
+ var params = new i4.HttpParams();
1783
+ params = params.set('skip', '' + skip);
1784
+ params = params.set('count', '' + count);
1785
+ return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
1786
+ };
1787
+ this.createRuleGroup$ = function (ruleGroup) {
1788
+ return _this.baseHttpService.api({
1789
+ url: "" + _this.serviceUrl,
1790
+ method: 'post',
1791
+ body: ruleGroup,
1792
+ });
1793
+ };
1794
+ }
1795
+ return RuleGroupsApiService;
1796
+ }());
1797
+ RuleGroupsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1798
+ RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService });
1799
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService, decorators: [{
1800
+ type: i0.Injectable
1801
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1802
+
1803
+ var RulesApiService = /** @class */ (function () {
1804
+ function RulesApiService(baseHttpService) {
1805
+ var _this = this;
1806
+ this.baseHttpService = baseHttpService;
1807
+ this.serviceUrl = '/admin/rules';
1808
+ this.fetchRules$ = function () {
1809
+ return _this.searchRules$(new i1.Expression(), 0, 100);
1810
+ };
1811
+ this.searchRules$ = function (expression, skip, count) {
1812
+ var params = new i4.HttpParams();
1813
+ params = params.set('skip', '' + skip);
1814
+ params = params.set('count', '' + count);
1815
+ return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
1816
+ };
1817
+ this.createRule$ = function (rule) {
1818
+ return _this.baseHttpService.api({
1819
+ url: "" + _this.serviceUrl,
1820
+ method: 'post',
1821
+ body: rule,
1822
+ });
1823
+ };
1824
+ this.updateRule$ = function (rule) {
1825
+ return _this.baseHttpService.api({
1826
+ url: _this.serviceUrl + "/" + rule.id,
1827
+ method: 'put',
1828
+ body: rule,
1829
+ });
1830
+ };
1831
+ this.duplicateRule$ = function (body) {
1832
+ return _this.baseHttpService
1833
+ .api({
1834
+ url: _this.serviceUrl + "/" + body.id + "/clone",
1835
+ method: 'post',
1836
+ body: body,
1837
+ })
1838
+ .pipe(operators.map(function (response) { return response.clonedRecordId; }));
1839
+ };
1840
+ this.removeRule$ = function (id) {
1841
+ return _this.baseHttpService.api({
1842
+ url: _this.serviceUrl + "/" + id,
1843
+ method: 'delete',
1844
+ });
1845
+ };
1846
+ this.restoreRule$ = function (id) {
1847
+ return _this.baseHttpService.api({
1848
+ url: _this.serviceUrl + "/" + id + "/restore",
1849
+ method: 'patch',
1850
+ });
1851
+ };
1852
+ }
1853
+ RulesApiService.prototype.fetchRule$ = function (id) {
1854
+ return this.baseHttpService.api({
1855
+ url: this.serviceUrl + "/" + id,
1856
+ method: 'get',
1857
+ });
1858
+ };
1859
+ return RulesApiService;
1860
+ }());
1861
+ RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1862
+ RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService });
1863
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService, decorators: [{
1864
+ type: i0.Injectable
1865
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1866
+
1867
+ var ScriptsApiService = /** @class */ (function () {
1868
+ function ScriptsApiService(baseHttpService) {
1869
+ var _this = this;
1870
+ this.baseHttpService = baseHttpService;
1871
+ this.serviceUrl = '/admin/scripts';
1872
+ this.fetchScripts$ = function () {
1873
+ return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
1874
+ };
1875
+ this.searchScripts$ = function (expression, skip, count) {
1876
+ var params = new i4.HttpParams();
1877
+ params = params.set('skip', '' + skip);
1878
+ params = params.set('count', '' + count);
1879
+ return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
1880
+ };
1881
+ this.fetchScript$ = function (id) {
1882
+ return _this.baseHttpService.api({ url: _this.serviceUrl + "/" + id });
1883
+ };
1884
+ this.createScript$ = function (script) {
1885
+ return _this.baseHttpService.api({
1886
+ url: "" + _this.serviceUrl,
1887
+ method: 'post',
1888
+ body: script,
1889
+ });
1890
+ };
1891
+ this.updateScriptMeta$ = function (script) {
1892
+ return _this.baseHttpService.api({
1893
+ url: _this.serviceUrl + "/" + script.id,
1894
+ method: 'post',
1895
+ body: script,
1896
+ });
1897
+ };
1898
+ this.updateScriptDetails$ = function (script) {
1899
+ return _this.baseHttpService.api({
1900
+ url: _this.serviceUrl + "/" + script.id,
1901
+ method: 'put',
1902
+ body: script,
1903
+ });
1904
+ };
1905
+ this.cloneScript$ = function (cloneRequest) {
1906
+ return _this.baseHttpService.api({
1907
+ url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
1908
+ method: 'post',
1909
+ body: cloneRequest
1910
+ });
1911
+ };
1912
+ this.removeScript$ = function (id) {
1913
+ return _this.baseHttpService.api({
1914
+ url: _this.serviceUrl + "/" + id,
1915
+ method: 'delete',
1916
+ });
1917
+ };
1918
+ this.restoreScript$ = function (id) {
1919
+ return _this.baseHttpService.api({
1920
+ url: _this.serviceUrl + "/" + id + "/restore",
1921
+ method: 'patch',
1922
+ });
1923
+ };
1924
+ this.execute$ = function (body) {
1925
+ return _this.baseHttpService.api({
1926
+ url: "/scripts/execute",
1927
+ method: 'post',
1928
+ body: body,
1929
+ errorHandler: function () { return null; }
1930
+ });
1931
+ };
1932
+ }
1933
+ return ScriptsApiService;
1934
+ }());
1935
+ 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 });
1936
+ ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService });
1937
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
1938
+ type: i0.Injectable
1939
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1940
+
1710
1941
  var fromUIComponentStoryDTO = function (dto, attachments) {
1711
1942
  return {
1712
1943
  id: dto.id,
@@ -2003,174 +2234,6 @@
2003
2234
  type: i0.Injectable
2004
2235
  }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2005
2236
 
2006
- var ScriptsApiService = /** @class */ (function () {
2007
- function ScriptsApiService(baseHttpService) {
2008
- var _this = this;
2009
- this.baseHttpService = baseHttpService;
2010
- this.serviceUrl = '/admin/scripts';
2011
- this.fetchScripts$ = function () {
2012
- return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
2013
- };
2014
- this.searchScripts$ = function (expression, skip, count) {
2015
- var params = new i4.HttpParams();
2016
- params = params.set('skip', '' + skip);
2017
- params = params.set('count', '' + count);
2018
- return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
2019
- };
2020
- this.fetchScript$ = function (id) {
2021
- return _this.baseHttpService.api({ url: _this.serviceUrl + "/" + id });
2022
- };
2023
- this.createScript$ = function (script) {
2024
- return _this.baseHttpService.api({
2025
- url: "" + _this.serviceUrl,
2026
- method: 'post',
2027
- body: script,
2028
- });
2029
- };
2030
- this.updateScriptMeta$ = function (script) {
2031
- return _this.baseHttpService.api({
2032
- url: _this.serviceUrl + "/" + script.id,
2033
- method: 'post',
2034
- body: script,
2035
- });
2036
- };
2037
- this.updateScriptDetails$ = function (script) {
2038
- return _this.baseHttpService.api({
2039
- url: _this.serviceUrl + "/" + script.id,
2040
- method: 'put',
2041
- body: script,
2042
- });
2043
- };
2044
- this.cloneScript$ = function (cloneRequest) {
2045
- return _this.baseHttpService.api({
2046
- url: _this.serviceUrl + "/" + cloneRequest.id + "/clone",
2047
- method: 'post',
2048
- body: cloneRequest
2049
- });
2050
- };
2051
- this.removeScript$ = function (id) {
2052
- return _this.baseHttpService.api({
2053
- url: _this.serviceUrl + "/" + id,
2054
- method: 'delete',
2055
- });
2056
- };
2057
- this.restoreScript$ = function (id) {
2058
- return _this.baseHttpService.api({
2059
- url: _this.serviceUrl + "/" + id + "/restore",
2060
- method: 'patch',
2061
- });
2062
- };
2063
- this.execute$ = function (body) {
2064
- return _this.baseHttpService.api({
2065
- url: "/scripts/execute",
2066
- method: 'post',
2067
- body: body,
2068
- errorHandler: function () { return null; }
2069
- });
2070
- };
2071
- }
2072
- return ScriptsApiService;
2073
- }());
2074
- 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 });
2075
- ScriptsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService });
2076
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ScriptsApiService, decorators: [{
2077
- type: i0.Injectable
2078
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2079
-
2080
- var RulesApiService = /** @class */ (function () {
2081
- function RulesApiService(baseHttpService) {
2082
- var _this = this;
2083
- this.baseHttpService = baseHttpService;
2084
- this.serviceUrl = '/admin/rules';
2085
- this.fetchRules$ = function () {
2086
- return _this.searchRules$(new i1.Expression(), 0, 100);
2087
- };
2088
- this.searchRules$ = function (expression, skip, count) {
2089
- var params = new i4.HttpParams();
2090
- params = params.set('skip', '' + skip);
2091
- params = params.set('count', '' + count);
2092
- return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
2093
- };
2094
- this.createRule$ = function (rule) {
2095
- return _this.baseHttpService.api({
2096
- url: "" + _this.serviceUrl,
2097
- method: 'post',
2098
- body: rule,
2099
- });
2100
- };
2101
- this.updateRule$ = function (rule) {
2102
- return _this.baseHttpService.api({
2103
- url: _this.serviceUrl + "/" + rule.id,
2104
- method: 'put',
2105
- body: rule,
2106
- });
2107
- };
2108
- this.duplicateRule$ = function (body) {
2109
- return _this.baseHttpService
2110
- .api({
2111
- url: _this.serviceUrl + "/" + body.id + "/clone",
2112
- method: 'post',
2113
- body: body,
2114
- })
2115
- .pipe(operators.map(function (response) { return response.clonedRecordId; }));
2116
- };
2117
- this.removeRule$ = function (id) {
2118
- return _this.baseHttpService.api({
2119
- url: _this.serviceUrl + "/" + id,
2120
- method: 'delete',
2121
- });
2122
- };
2123
- this.restoreRule$ = function (id) {
2124
- return _this.baseHttpService.api({
2125
- url: _this.serviceUrl + "/" + id + "/restore",
2126
- method: 'patch',
2127
- });
2128
- };
2129
- }
2130
- RulesApiService.prototype.fetchRule$ = function (id) {
2131
- return this.baseHttpService.api({
2132
- url: this.serviceUrl + "/" + id,
2133
- method: 'get',
2134
- });
2135
- };
2136
- return RulesApiService;
2137
- }());
2138
- RulesApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2139
- RulesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService });
2140
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RulesApiService, decorators: [{
2141
- type: i0.Injectable
2142
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2143
-
2144
- var RuleGroupsApiService = /** @class */ (function () {
2145
- function RuleGroupsApiService(baseHttpService) {
2146
- var _this = this;
2147
- this.baseHttpService = baseHttpService;
2148
- this.serviceUrl = '/admin/rule-groups';
2149
- this.fetchRuleGroups$ = function () {
2150
- return _this.searchRuleGroups$(new i1.Expression(), 0, 100);
2151
- };
2152
- this.searchRuleGroups$ = function (expression, skip, count) {
2153
- var params = new i4.HttpParams();
2154
- params = params.set('skip', '' + skip);
2155
- params = params.set('count', '' + count);
2156
- return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
2157
- };
2158
- this.createRuleGroup$ = function (ruleGroup) {
2159
- return _this.baseHttpService.api({
2160
- url: "" + _this.serviceUrl,
2161
- method: 'post',
2162
- body: ruleGroup,
2163
- });
2164
- };
2165
- }
2166
- return RuleGroupsApiService;
2167
- }());
2168
- RuleGroupsApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2169
- RuleGroupsApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService });
2170
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: RuleGroupsApiService, decorators: [{
2171
- type: i0.Injectable
2172
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2173
-
2174
2237
  var ApiModule = /** @class */ (function () {
2175
2238
  function ApiModule() {
2176
2239
  }
@@ -2187,6 +2250,7 @@
2187
2250
  DocumentAttachmentApiService,
2188
2251
  PriceApiService,
2189
2252
  ProductModelApiService,
2253
+ ProceduresApiService,
2190
2254
  QuoteApiService,
2191
2255
  DocumentTemplatesApiService,
2192
2256
  RampApiService,
@@ -2209,6 +2273,7 @@
2209
2273
  DocumentAttachmentApiService,
2210
2274
  PriceApiService,
2211
2275
  ProductModelApiService,
2276
+ ProceduresApiService,
2212
2277
  QuoteApiService,
2213
2278
  DocumentTemplatesApiService,
2214
2279
  RampApiService,
@@ -2221,77 +2286,6 @@
2221
2286
  }]
2222
2287
  }] });
2223
2288
 
2224
- var ProceduresApiService = /** @class */ (function () {
2225
- function ProceduresApiService(baseHttpService) {
2226
- var _this = this;
2227
- this.baseHttpService = baseHttpService;
2228
- this.serviceUrl = '/admin/procedures';
2229
- this.fetchProcedures$ = function () {
2230
- return _this.searchProcedures$(new i1.Expression(), 0, 100);
2231
- };
2232
- this.searchProcedures$ = function (expression, skip, count) {
2233
- return rxjs.of([{ id: '1', name: 'test' }]);
2234
- var params = new i4.HttpParams();
2235
- params = params.set('skip', '' + skip);
2236
- params = params.set('count', '' + count);
2237
- return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
2238
- };
2239
- this.createProcedure$ = function (rule) {
2240
- return rxjs.of({ id: '1', name: 'test' });
2241
- return _this.baseHttpService.api({
2242
- url: "" + _this.serviceUrl,
2243
- method: 'post',
2244
- body: rule,
2245
- });
2246
- };
2247
- this.updateProcedure$ = function (rule) {
2248
- return rxjs.of({ id: '1', name: 'test' });
2249
- return _this.baseHttpService.api({
2250
- url: _this.serviceUrl + "/" + rule.id,
2251
- method: 'put',
2252
- body: rule,
2253
- });
2254
- };
2255
- this.duplicateProcedure$ = function (body) {
2256
- return rxjs.of('1');
2257
- return _this.baseHttpService
2258
- .api({
2259
- url: _this.serviceUrl + "/" + body.id + "/clone",
2260
- method: 'post',
2261
- body: body,
2262
- })
2263
- .pipe(operators.map(function (response) { return response.clonedRecordId; }));
2264
- };
2265
- this.removeProcedure$ = function (id) {
2266
- return rxjs.of('1');
2267
- return _this.baseHttpService.api({
2268
- url: _this.serviceUrl + "/" + id,
2269
- method: 'delete',
2270
- });
2271
- };
2272
- this.restoreProcedure$ = function (id) {
2273
- return rxjs.of('1');
2274
- return _this.baseHttpService.api({
2275
- url: _this.serviceUrl + "/" + id + "/restore",
2276
- method: 'patch',
2277
- });
2278
- };
2279
- }
2280
- ProceduresApiService.prototype.fetchProcedure$ = function (id) {
2281
- return rxjs.of({ id: '1', name: 'test' });
2282
- return this.baseHttpService.api({
2283
- url: this.serviceUrl + "/" + id,
2284
- method: 'get',
2285
- });
2286
- };
2287
- return ProceduresApiService;
2288
- }());
2289
- ProceduresApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService, deps: [{ token: i1__namespace.BaseHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2290
- ProceduresApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService });
2291
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ProceduresApiService, decorators: [{
2292
- type: i0.Injectable
2293
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
2294
-
2295
2289
  /**
2296
2290
  * Generated bundle index. Do not edit.
2297
2291
  */