@veloceapps/api 4.0.5-1 → 4.0.5

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.
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common/http'), require('@angular/core'), require('@veloce/core'), require('rxjs'), require('rxjs/operators'), require('lodash'), require('@angular/common'), require('moment')) :
3
3
  typeof define === 'function' && define.amd ? define('@veloce/api', ['exports', '@angular/common/http', '@angular/core', '@veloce/core', 'rxjs', 'rxjs/operators', 'lodash', '@angular/common', 'moment'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.api = {}), global.ng.common.http, global.ng.core, global["@veloce/core"], global.rxjs, global.rxjs.operators, global.lodash, global.ng.common, global.moment));
5
- })(this, (function (exports, i2, i0, i1, rxjs, operators, _, common, moment_) { 'use strict';
5
+ })(this, (function (exports, i5, i0, i1, rxjs, operators, _, common, moment_) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -22,7 +22,7 @@
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
25
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
26
26
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
27
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
28
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
@@ -37,7 +37,7 @@
37
37
  return this.httpService.api(Object.assign({ method: 'get', url: "" + this.SERVICE_URL }, options));
38
38
  };
39
39
  AccountApiService.prototype.searchAccounts$ = function (searchParams, options) {
40
- var params = new i2.HttpParams({ fromObject: searchParams });
40
+ var params = new i5.HttpParams({ fromObject: searchParams });
41
41
  return this.httpService.api(Object.assign({ url: "" + this.SERVICE_URL, params: params }, options));
42
42
  };
43
43
  AccountApiService.prototype.getAccount$ = function (id, options) {
@@ -81,11 +81,11 @@
81
81
  this.baseHttpService = baseHttpService;
82
82
  this.serviceUrl = '/catalogs';
83
83
  this.fetchCatalogs$ = function (searchParams) {
84
- var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
84
+ var params = new i5.HttpParams({ fromObject: Object.assign({}, searchParams) });
85
85
  return _this.baseHttpService.api({ url: "" + _this.serviceUrl, params: params });
86
86
  };
87
87
  this.searchCatalogs$ = function (searchParams, expression) {
88
- var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
88
+ var params = new i5.HttpParams({ fromObject: Object.assign({}, searchParams) });
89
89
  return _this.baseHttpService.api({
90
90
  method: 'post',
91
91
  url: _this.serviceUrl + "/search",
@@ -204,7 +204,7 @@
204
204
  });
205
205
  };
206
206
  this.searchProductCandidates$ = function (catalogId, categoryId, expression, searchParams) {
207
- var params = new i2.HttpParams({ fromObject: Object.assign({}, searchParams) });
207
+ var params = new i5.HttpParams({ fromObject: Object.assign({}, searchParams) });
208
208
  return _this.baseHttpService.api({
209
209
  method: 'post',
210
210
  url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/candidates/search",
@@ -249,7 +249,7 @@
249
249
  });
250
250
  };
251
251
  CatalogApiService.prototype.searchCatalogs$ = function (searchParams, expression) {
252
- var params = new i2.HttpParams({ fromObject: searchParams });
252
+ var params = new i5.HttpParams({ fromObject: searchParams });
253
253
  return this.service.api({
254
254
  method: 'post',
255
255
  url: this.serviceUrl + "/search",
@@ -270,7 +270,7 @@
270
270
  });
271
271
  };
272
272
  CatalogApiService.prototype.fetchCatalogProducts$ = function (catalogId, searchParams, context) {
273
- var params = new i2.HttpParams({ fromObject: searchParams });
273
+ var params = new i5.HttpParams({ fromObject: searchParams });
274
274
  return this.service.api({
275
275
  method: 'post',
276
276
  url: this.serviceUrl + "/" + catalogId + "/products",
@@ -279,7 +279,7 @@
279
279
  });
280
280
  };
281
281
  CatalogApiService.prototype.fetchCategoryProducts$ = function (catalogId, categoryId, searchParams, context) {
282
- var params = new i2.HttpParams({ fromObject: searchParams });
282
+ var params = new i5.HttpParams({ fromObject: searchParams });
283
283
  return this.service.api({
284
284
  method: 'post',
285
285
  url: this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products",
@@ -288,7 +288,7 @@
288
288
  });
289
289
  };
290
290
  CatalogApiService.prototype.searchCategoryProducts$ = function (catalogId, categoryId, searchParams, searchCriteria, context) {
291
- var params = new i2.HttpParams({ fromObject: searchParams });
291
+ var params = new i5.HttpParams({ fromObject: searchParams });
292
292
  return this.service.api({
293
293
  method: 'post',
294
294
  url: this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/search",
@@ -300,7 +300,7 @@
300
300
  });
301
301
  };
302
302
  CatalogApiService.prototype.fetchEligibleProducts$ = function (searchParams, context) {
303
- var params = new i2.HttpParams({ fromObject: searchParams });
303
+ var params = new i5.HttpParams({ fromObject: searchParams });
304
304
  return this.service.api({
305
305
  method: 'post',
306
306
  url: this.serviceUrl + "/products",
@@ -309,7 +309,7 @@
309
309
  });
310
310
  };
311
311
  CatalogApiService.prototype.fetchProducts$ = function (searchParams) {
312
- var params = new i2.HttpParams({ fromObject: searchParams });
312
+ var params = new i5.HttpParams({ fromObject: searchParams });
313
313
  return this.service.api({
314
314
  method: 'get',
315
315
  url: this.serviceUrl + "/products",
@@ -1018,18 +1018,10 @@
1018
1018
  }());
1019
1019
 
1020
1020
  var ConfigurationApiService = /** @class */ (function () {
1021
- function ConfigurationApiService(httpService, httpClient) {
1021
+ function ConfigurationApiService(httpService) {
1022
1022
  this.httpService = httpService;
1023
- this.httpClient = httpClient;
1024
1023
  this.SERVICE_URL = '/configuration';
1025
- this.SERVICE_V2_URL = 'http://localhost:3000/configuration';
1026
1024
  }
1027
- ConfigurationApiService.prototype.initConfiguration = function () {
1028
- return this.httpClient.post(this.SERVICE_V2_URL + "/init", {});
1029
- };
1030
- ConfigurationApiService.prototype.update = function (configurationId, request) {
1031
- return this.httpClient.post(this.SERVICE_V2_URL + "/update/" + configurationId, request);
1032
- };
1033
1025
  ConfigurationApiService.prototype.configureLineItem = function (_d) {
1034
1026
  var _this = this;
1035
1027
  var configurationRequest = _d.configurationRequest, runtimeModel = _d.runtimeModel, pricingEnabled = _d.pricingEnabled;
@@ -1100,11 +1092,11 @@
1100
1092
  };
1101
1093
  return ConfigurationApiService;
1102
1094
  }());
1103
- ConfigurationApiService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, deps: [{ token: i1__namespace.BaseHttpService }, { token: i2__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1095
+ 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 });
1104
1096
  ConfigurationApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService });
1105
1097
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationApiService, decorators: [{
1106
1098
  type: i0.Injectable
1107
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: i2__namespace.HttpClient }]; } });
1099
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }]; } });
1108
1100
 
1109
1101
  var ConfigurationSettingsDTO = /** @class */ (function () {
1110
1102
  function ConfigurationSettingsDTO(id, key, value) {
@@ -1312,7 +1304,7 @@
1312
1304
  return this.httpService.api(Object.assign({ method: 'post', body: Object.assign(Object.assign({}, searchRequest), { count: searchRequest.count || 100 }), url: this.SERVICE_URL + "/query/" + objectName }, options));
1313
1305
  };
1314
1306
  SalesforceApiService.prototype.queryObjects = function (search, options) {
1315
- var params = new i2.HttpParams();
1307
+ var params = new i5.HttpParams();
1316
1308
  if (search) {
1317
1309
  params.append('search', search);
1318
1310
  }
@@ -1677,11 +1669,11 @@
1677
1669
  };
1678
1670
  return DocumentTemplatesApiService;
1679
1671
  }());
1680
- 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: QuoteApiService }, { token: i2__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1672
+ 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: QuoteApiService }, { token: i5__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1681
1673
  DocumentTemplatesApiService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService });
1682
1674
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DocumentTemplatesApiService, decorators: [{
1683
1675
  type: i0.Injectable
1684
- }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type: i2__namespace.HttpClient }]; } });
1676
+ }], ctorParameters: function () { return [{ type: i1__namespace.BaseHttpService }, { type: SalesforceApiService }, { type: i1__namespace.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: QuoteApiService }, { type: i5__namespace.HttpClient }]; } });
1685
1677
 
1686
1678
  var FlowsApiService = /** @class */ (function () {
1687
1679
  function FlowsApiService(configurationSettingsApiService) {
@@ -1815,7 +1807,7 @@
1815
1807
  return _this.searchProcedures$(new i1.Expression(), 0, 100);
1816
1808
  };
1817
1809
  this.searchProcedures$ = function (expression, skip, count) {
1818
- var params = new i2.HttpParams();
1810
+ var params = new i5.HttpParams();
1819
1811
  params = params.set('skip', '' + skip);
1820
1812
  params = params.set('count', '' + count);
1821
1813
  return _this.baseHttpService.api({
@@ -1900,7 +1892,7 @@
1900
1892
  this.baseHttpService = baseHttpService;
1901
1893
  this.serviceUrl = '/products';
1902
1894
  this.fetchProducts$ = function (payload) {
1903
- var params = new i2.HttpParams();
1895
+ var params = new i5.HttpParams();
1904
1896
  params = params.append('count', payload.count);
1905
1897
  params = params.append('skip', payload.skip);
1906
1898
  if (payload.name) {
@@ -1909,7 +1901,7 @@
1909
1901
  return _this.baseHttpService.api({ url: "" + _this.serviceUrl, params: params });
1910
1902
  };
1911
1903
  this.searchProducts$ = function (expression, skip, count) {
1912
- var params = new i2.HttpParams();
1904
+ var params = new i5.HttpParams();
1913
1905
  params = params.set('skip', '' + skip);
1914
1906
  params = params.set('count', '' + count);
1915
1907
  return _this.baseHttpService.api({
@@ -1924,7 +1916,7 @@
1924
1916
  return _this.baseHttpService.api({ url: _this.serviceUrl + "/attributes/definition" });
1925
1917
  };
1926
1918
  this.searchAttributes$ = function (expression, skip, count) {
1927
- var params = new i2.HttpParams();
1919
+ var params = new i5.HttpParams();
1928
1920
  params = params.set('skip', '' + skip);
1929
1921
  params = params.set('count', '' + count);
1930
1922
  return _this.baseHttpService.api({
@@ -2302,7 +2294,7 @@
2302
2294
  return _this.searchRuleGroups$(new i1.Expression(), 0, 100);
2303
2295
  };
2304
2296
  this.searchRuleGroups$ = function (expression, skip, count) {
2305
- var params = new i2.HttpParams();
2297
+ var params = new i5.HttpParams();
2306
2298
  params = params.set('skip', '' + skip);
2307
2299
  params = params.set('count', '' + count);
2308
2300
  return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
@@ -2360,7 +2352,7 @@
2360
2352
  return _this.searchRules$(new i1.Expression(), 0, 100);
2361
2353
  };
2362
2354
  this.searchRules$ = function (expression, skip, count) {
2363
- var params = new i2.HttpParams();
2355
+ var params = new i5.HttpParams();
2364
2356
  params = params.set('skip', '' + skip);
2365
2357
  params = params.set('count', '' + count);
2366
2358
  return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
@@ -2437,7 +2429,7 @@
2437
2429
  return _this.baseHttpService.api({ url: "" + _this.serviceUrl });
2438
2430
  };
2439
2431
  this.searchScripts$ = function (expression, skip, count) {
2440
- var params = new i2.HttpParams();
2432
+ var params = new i5.HttpParams();
2441
2433
  params = params.set('skip', '' + skip);
2442
2434
  params = params.set('count', '' + count);
2443
2435
  return _this.baseHttpService.api({ method: 'post', url: _this.serviceUrl + "/search", params: params, body: expression });
@@ -2521,7 +2513,7 @@
2521
2513
  this.baseHttpService = baseHttpService;
2522
2514
  this.serviceUrl = '/uitemplates';
2523
2515
  this.fetchTemplates$ = function (name) {
2524
- var params = new i2.HttpParams();
2516
+ var params = new i5.HttpParams();
2525
2517
  if (name) {
2526
2518
  params = params.append('name', name);
2527
2519
  }
@@ -2571,7 +2563,7 @@
2571
2563
  });
2572
2564
  };
2573
2565
  this.fetchComponents$ = function (templateId, name) {
2574
- var params = new i2.HttpParams();
2566
+ var params = new i5.HttpParams();
2575
2567
  if (name) {
2576
2568
  params = params.append('name', name);
2577
2569
  }
@@ -2649,7 +2641,7 @@
2649
2641
  }), rxjs.map(function (attachments) { return fromUIComponentStoryDTO(storyDto, attachments); }));
2650
2642
  };
2651
2643
  this.fetchStories$ = function (templateId, componentId, name) {
2652
- var params = new i2.HttpParams();
2644
+ var params = new i5.HttpParams();
2653
2645
  if (name) {
2654
2646
  params = params.append('name', name);
2655
2647
  }
@@ -2804,7 +2796,7 @@
2804
2796
  return ApiModule;
2805
2797
  }());
2806
2798
  ApiModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2807
- ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i2.HttpClientModule] });
2799
+ ApiModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, imports: [i5.HttpClientModule] });
2808
2800
  ApiModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, providers: [
2809
2801
  i1.BaseHttpService,
2810
2802
  i1.XrayService,
@@ -2830,11 +2822,11 @@
2830
2822
  DeltaApiService,
2831
2823
  AccountApiService,
2832
2824
  PicklistsApiService,
2833
- ], imports: [[i2.HttpClientModule]] });
2825
+ ], imports: [[i5.HttpClientModule]] });
2834
2826
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ApiModule, decorators: [{
2835
2827
  type: i0.NgModule,
2836
2828
  args: [{
2837
- imports: [i2.HttpClientModule],
2829
+ imports: [i5.HttpClientModule],
2838
2830
  providers: [
2839
2831
  i1.BaseHttpService,
2840
2832
  i1.XrayService,