@veloceapps/api 2.0.18 → 2.0.19

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.
@@ -1015,12 +1015,21 @@
1015
1015
  function QuoteApiService(httpService) {
1016
1016
  this.httpService = httpService;
1017
1017
  this.SERVICE_URL = '/quotes';
1018
+ /**
1019
+ * @deprecated
1020
+ * Will be removed in next major release
1021
+ * Use `getQuoteDraft` instead
1022
+ */
1023
+ // eslint-disable-next-line @typescript-eslint/member-ordering
1024
+ this.getQuote = this.getQuoteDraft;
1018
1025
  }
1019
- QuoteApiService.prototype.getQuote = function (quoteId, params) {
1026
+ // request quoteId | accountId | opportunityId | orderId
1027
+ QuoteApiService.prototype.getQuoteDraft = function (objectId, params, errorHandler) {
1020
1028
  return this.httpService.api({
1021
1029
  method: 'get',
1022
- url: this.SERVICE_URL + "/" + quoteId,
1030
+ url: this.SERVICE_URL + "/" + objectId,
1023
1031
  params: params,
1032
+ errorHandler: errorHandler,
1024
1033
  });
1025
1034
  };
1026
1035
  QuoteApiService.prototype.upsertQuote = function (request) {
@@ -1491,6 +1500,13 @@
1491
1500
  method: 'get',
1492
1501
  });
1493
1502
  };
1503
+ ProceduresApiService.prototype.execute$ = function (body) {
1504
+ return this.baseHttpService.api({
1505
+ url: "/procedures/execute",
1506
+ method: 'post',
1507
+ body: body,
1508
+ });
1509
+ };
1494
1510
  return ProceduresApiService;
1495
1511
  }());
1496
1512
  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 });
@@ -1790,6 +1806,34 @@
1790
1806
  body: ruleGroup,
1791
1807
  });
1792
1808
  };
1809
+ this.updateRuleGroup$ = function (ruleGroup) {
1810
+ return _this.baseHttpService.api({
1811
+ url: _this.serviceUrl + "/" + ruleGroup.id,
1812
+ method: 'post',
1813
+ body: ruleGroup,
1814
+ });
1815
+ };
1816
+ this.duplicateRuleGroup$ = function (body) {
1817
+ return _this.baseHttpService
1818
+ .api({
1819
+ url: _this.serviceUrl + "/" + body.id + "/clone",
1820
+ method: 'post',
1821
+ body: body,
1822
+ })
1823
+ .pipe(rxjs.map(function (response) { return response.clonedRecordId; }));
1824
+ };
1825
+ this.removeRuleGroup$ = function (id) {
1826
+ return _this.baseHttpService.api({
1827
+ url: _this.serviceUrl + "/" + id,
1828
+ method: 'delete',
1829
+ });
1830
+ };
1831
+ this.restoreRuleGroup$ = function (id) {
1832
+ return _this.baseHttpService.api({
1833
+ url: _this.serviceUrl + "/" + id + "/restore",
1834
+ method: 'patch',
1835
+ });
1836
+ };
1793
1837
  }
1794
1838
  return RuleGroupsApiService;
1795
1839
  }());
@@ -1855,6 +1899,19 @@
1855
1899
  method: 'get',
1856
1900
  });
1857
1901
  };
1902
+ RulesApiService.prototype.fetchHeaderFields$ = function () {
1903
+ return this.baseHttpService.api({
1904
+ url: this.serviceUrl + "/describe/Header",
1905
+ method: 'get',
1906
+ });
1907
+ };
1908
+ RulesApiService.prototype.execute$ = function (body) {
1909
+ return this.baseHttpService.api({
1910
+ url: "/rules/execute",
1911
+ method: 'post',
1912
+ body: body,
1913
+ });
1914
+ };
1858
1915
  return RulesApiService;
1859
1916
  }());
1860
1917
  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 });
@@ -1890,7 +1947,7 @@
1890
1947
  this.updateScriptMeta$ = function (script) {
1891
1948
  return _this.baseHttpService.api({
1892
1949
  url: _this.serviceUrl + "/" + script.id,
1893
- method: 'post',
1950
+ method: 'put',
1894
1951
  body: script,
1895
1952
  });
1896
1953
  };