@veloceapps/api 8.0.0-6 → 8.0.0-61

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.
Files changed (57) hide show
  1. package/esm2020/index.mjs +7 -1
  2. package/esm2020/lib/api.module.mjs +23 -5
  3. package/esm2020/lib/services/account-api.service.mjs +3 -3
  4. package/esm2020/lib/services/auth.service.mjs +22 -0
  5. package/esm2020/lib/services/catalog-admin-api.service.mjs +3 -3
  6. package/esm2020/lib/services/catalog-api.service.mjs +3 -3
  7. package/esm2020/lib/services/configuration-api.service.mjs +6 -6
  8. package/esm2020/lib/services/configuration-settings-api.service.mjs +3 -3
  9. package/esm2020/lib/services/context-api.service.mjs +3 -3
  10. package/esm2020/lib/services/contracted-price-api.service.mjs +45 -0
  11. package/esm2020/lib/services/delta-api.service.mjs +3 -3
  12. package/esm2020/lib/services/document-attachment-api.service.mjs +3 -3
  13. package/esm2020/lib/services/document-templates-api.service.mjs +5 -5
  14. package/esm2020/lib/services/endpoints-api.service.mjs +3 -3
  15. package/esm2020/lib/services/flows-api.service.mjs +3 -3
  16. package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +3 -3
  17. package/esm2020/lib/services/guided-sellings-api.service.mjs +3 -3
  18. package/esm2020/lib/services/offers-api.service.mjs +3 -3
  19. package/esm2020/lib/services/org-info-api.service.mjs +3 -3
  20. package/esm2020/lib/services/picklists-api.service.mjs +3 -3
  21. package/esm2020/lib/services/portals-api.service.mjs +59 -0
  22. package/esm2020/lib/services/price-api.service.mjs +3 -3
  23. package/esm2020/lib/services/procedures-api.service.mjs +3 -3
  24. package/esm2020/lib/services/product-api.service.mjs +3 -3
  25. package/esm2020/lib/services/product-model-api.service.mjs +3 -3
  26. package/esm2020/lib/services/promotions-api.service.mjs +68 -0
  27. package/esm2020/lib/services/quote-api.service.mjs +3 -3
  28. package/esm2020/lib/services/ramp-api.service.mjs +3 -3
  29. package/esm2020/lib/services/rebate-program-api.service.mjs +68 -0
  30. package/esm2020/lib/services/rebate-type-api.service.mjs +68 -0
  31. package/esm2020/lib/services/rule-groups-api.service.mjs +3 -3
  32. package/esm2020/lib/services/rules-api.service.mjs +10 -6
  33. package/esm2020/lib/services/salesforce-api.service.mjs +7 -5
  34. package/esm2020/lib/services/scripts-api.service.mjs +10 -6
  35. package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +3 -3
  36. package/esm2020/lib/services/stateful-configuration-api.mjs +3 -3
  37. package/esm2020/lib/services/ui-definitions-api.service.mjs +3 -3
  38. package/esm2020/lib/services/ui-templates-api.service.mjs +3 -3
  39. package/esm2020/lib/services/veloce-objects-api.service.mjs +3 -3
  40. package/esm2020/lib/types/auth.types.mjs +2 -0
  41. package/esm2020/lib/types/index.mjs +2 -1
  42. package/fesm2015/veloceapps-api.mjs +435 -110
  43. package/fesm2015/veloceapps-api.mjs.map +1 -1
  44. package/fesm2020/veloceapps-api.mjs +434 -109
  45. package/fesm2020/veloceapps-api.mjs.map +1 -1
  46. package/index.d.ts +6 -0
  47. package/lib/services/auth.service.d.ts +11 -0
  48. package/lib/services/contracted-price-api.service.d.ts +16 -0
  49. package/lib/services/portals-api.service.d.ts +17 -0
  50. package/lib/services/promotions-api.service.d.ts +19 -0
  51. package/lib/services/rebate-program-api.service.d.ts +19 -0
  52. package/lib/services/rebate-type-api.service.d.ts +19 -0
  53. package/lib/services/rules-api.service.d.ts +1 -1
  54. package/lib/services/scripts-api.service.d.ts +1 -1
  55. package/lib/types/auth.types.d.ts +4 -0
  56. package/lib/types/index.d.ts +1 -0
  57. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import * as i4 from '@angular/common/http';
2
- import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
1
+ import * as i1$1 from '@angular/common/http';
2
+ import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import * as i1 from '@veloceapps/core';
@@ -53,12 +53,30 @@ class AccountApiService {
53
53
  return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`, method: 'post', body: { id: orderId } }, options));
54
54
  }
55
55
  }
56
- AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
57
- AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: AccountApiService });
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: AccountApiService, decorators: [{
56
+ AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
57
+ AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
59
59
  type: Injectable
60
60
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
61
61
 
62
+ class VeloceAuthService {
63
+ constructor(http) {
64
+ this.http = http;
65
+ }
66
+ auth$(instanceUrl, accessToken) {
67
+ const headers = new HttpHeaders({
68
+ 'Content-Type': 'application/json',
69
+ Authorization: `Bearer ${accessToken}`,
70
+ });
71
+ return this.http.get(`${instanceUrl}/services/apexrest/VELOCPQ/veloce-auth`, { headers });
72
+ }
73
+ }
74
+ VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
75
+ VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
77
+ type: Injectable
78
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
79
+
62
80
  class CatalogAdminApiService {
63
81
  constructor(baseHttpService) {
64
82
  this.baseHttpService = baseHttpService;
@@ -240,9 +258,9 @@ class CatalogAdminApiService {
240
258
  }
241
259
  }
242
260
  CatalogAdminApiService.MAX_RESULTS = 60;
243
- CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
244
- CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogAdminApiService });
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogAdminApiService, decorators: [{
261
+ CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
262
+ CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
246
264
  type: Injectable
247
265
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
248
266
 
@@ -326,9 +344,9 @@ class CatalogApiService {
326
344
  });
327
345
  }
328
346
  }
329
- CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
330
- CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogApiService });
331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: CatalogApiService, decorators: [{
347
+ CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
348
+ CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
332
350
  type: Injectable
333
351
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
334
352
 
@@ -382,16 +400,16 @@ class ConfigurationApiService {
382
400
  const portDomains = Object.assign({}, lineItem.portDomains);
383
401
  for (const port of (_a = type === null || type === void 0 ? void 0 : type.ports) !== null && _a !== void 0 ? _a : []) {
384
402
  const portDomain = portDomains[port.name];
385
- if (((_b = portDomain === null || portDomain === void 0 ? void 0 : portDomain.properties) === null || _b === void 0 ? void 0 : _b['domainComputation']) === 'false') {
403
+ if (((_b = portDomain === null || portDomain === void 0 ? void 0 : portDomain.properties) === null || _b === void 0 ? void 0 : _b['domainComputation']) === ('None')) {
386
404
  portDomain.domainTypes = port.domainTypes;
387
405
  }
388
406
  }
389
407
  return Object.assign(Object.assign({}, lineItem), { lineItems: (_c = lineItem.lineItems) === null || _c === void 0 ? void 0 : _c.map(i => this.updatePortDomains(i, runtimeModel)), portDomains });
390
408
  }
391
409
  }
392
- ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
393
- ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationApiService });
394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationApiService, decorators: [{
410
+ ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
411
+ ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
395
413
  type: Injectable
396
414
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
397
415
 
@@ -464,9 +482,9 @@ class ConfigurationSettingsApiService {
464
482
  return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
465
483
  }
466
484
  }
467
- ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
468
- ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationSettingsApiService });
469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
485
+ ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
486
+ ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
470
488
  type: Injectable
471
489
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
472
490
 
@@ -486,9 +504,50 @@ class ContextApiService {
486
504
  });
487
505
  }
488
506
  }
489
- ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
490
- ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ContextApiService });
491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ContextApiService, decorators: [{
507
+ ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
508
+ ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
509
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
510
+ type: Injectable
511
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
512
+
513
+ class ContractedPriceApiService {
514
+ constructor(baseHttpService) {
515
+ this.baseHttpService = baseHttpService;
516
+ this.serviceUrl = '/admin/contracted-price';
517
+ this.fetchContractedPrices$ = () => {
518
+ return this.baseHttpService.api({ url: `${this.serviceUrl}` });
519
+ };
520
+ this.fetchContractedPrice$ = (id) => {
521
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
522
+ };
523
+ this.createContractedPrice$ = (data) => {
524
+ return this.baseHttpService.api({
525
+ url: `${this.serviceUrl}`,
526
+ method: 'put',
527
+ body: data,
528
+ });
529
+ };
530
+ this.updateContractedPrice$ = (data) => {
531
+ return this.baseHttpService.api({
532
+ url: `${this.serviceUrl}/${data.id}`,
533
+ method: 'put',
534
+ body: data,
535
+ });
536
+ };
537
+ this.searchContractedPrices$ = (searchParams, expression) => {
538
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
539
+ return this.baseHttpService.api({
540
+ method: 'post',
541
+ url: `${this.serviceUrl}/search`,
542
+ params,
543
+ body: expression || {},
544
+ });
545
+ };
546
+ }
547
+ }
548
+ ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
549
+ ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
492
551
  type: Injectable
493
552
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
494
553
 
@@ -506,9 +565,9 @@ class DeltaApiService {
506
565
  });
507
566
  }
508
567
  }
509
- DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
510
- DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DeltaApiService });
511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DeltaApiService, decorators: [{
568
+ DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
569
+ DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
512
571
  type: Injectable
513
572
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
514
573
 
@@ -568,9 +627,9 @@ class DocumentAttachmentApiService {
568
627
  });
569
628
  }
570
629
  }
571
- DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
572
- DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentAttachmentApiService });
573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
630
+ DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
631
+ DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
574
633
  type: Injectable
575
634
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
576
635
 
@@ -612,7 +671,9 @@ class SalesforceApiService {
612
671
  return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
613
672
  }
614
673
  apexGetRequest(path, params, options) {
615
- return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params }, options));
674
+ // this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
675
+ const httpParams = new HttpParams({ fromString: params.toString() });
676
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
616
677
  }
617
678
  apexPostRequest(path, body, options) {
618
679
  return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
@@ -630,9 +691,9 @@ class SalesforceApiService {
630
691
  });
631
692
  }
632
693
  }
633
- SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
634
- SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SalesforceApiService });
635
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: SalesforceApiService, decorators: [{
694
+ SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
695
+ SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
636
697
  type: Injectable
637
698
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
638
699
 
@@ -884,11 +945,11 @@ class DocumentTemplatesApiService {
884
945
  return forkJoin(attachmentIds.map(id => this.documentAttachmentService.getAttachmentFile(id, true)));
885
946
  }
886
947
  queryObject({ objectName, resultObjectName, fields, statement }, { properties }) {
887
- var _a;
948
+ var _a, _b;
888
949
  const patternLimit = /(\s*limit\s\d*)/i;
889
950
  let limit = 1;
890
951
  if (statement && patternLimit.test(statement)) {
891
- const limitStr = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1].trim().substring(5).trim();
952
+ const limitStr = (_b = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.trim().substring(5).trim();
892
953
  if (limitStr) {
893
954
  limit = Number.parseInt(limitStr, 10);
894
955
  }
@@ -901,11 +962,11 @@ class DocumentTemplatesApiService {
901
962
  return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
902
963
  }
903
964
  }
904
- DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
905
- DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentTemplatesApiService });
906
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
965
+ DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
966
+ DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
967
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
907
968
  type: Injectable
908
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4.HttpClient }]; } });
969
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
909
970
 
910
971
  class EndpointsApiService {
911
972
  constructor(baseHttpService) {
@@ -976,9 +1037,9 @@ class EndpointsApiService {
976
1037
  });
977
1038
  }
978
1039
  }
979
- EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
980
- EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: EndpointsApiService });
981
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: EndpointsApiService, decorators: [{
1040
+ EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1041
+ EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
1042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
982
1043
  type: Injectable
983
1044
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
984
1045
 
@@ -996,9 +1057,9 @@ class FlowsApiService {
996
1057
  .pipe(map((flow) => ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : [])));
997
1058
  }
998
1059
  }
999
- FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1000
- FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowsApiService });
1001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowsApiService, decorators: [{
1060
+ FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1061
+ FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
1062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
1002
1063
  type: Injectable
1003
1064
  }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
1004
1065
 
@@ -1057,9 +1118,9 @@ class GuidedSellingsAdminApiService {
1057
1118
  }
1058
1119
  }
1059
1120
  GuidedSellingsAdminApiService.MAX_RESULTS = 60;
1060
- GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1061
- GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingsAdminApiService });
1062
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
1121
+ GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1122
+ GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
1123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
1063
1124
  type: Injectable
1064
1125
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1065
1126
 
@@ -1089,9 +1150,9 @@ class GuidedSellingApiService {
1089
1150
  });
1090
1151
  }
1091
1152
  }
1092
- GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1093
- GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingApiService });
1094
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingApiService, decorators: [{
1153
+ GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1154
+ GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
1155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
1095
1156
  type: Injectable
1096
1157
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1097
1158
 
@@ -1160,9 +1221,9 @@ class OffersApiService {
1160
1221
  }
1161
1222
  }
1162
1223
  OffersApiService.MAX_RESULTS = 60;
1163
- OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1164
- OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OffersApiService });
1165
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OffersApiService, decorators: [{
1224
+ OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1225
+ OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
1226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
1166
1227
  type: Injectable
1167
1228
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1168
1229
 
@@ -1177,11 +1238,11 @@ class OrgInfoApiService {
1177
1238
  return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
1178
1239
  }
1179
1240
  }
1180
- OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1181
- OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OrgInfoApiService });
1182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: OrgInfoApiService, decorators: [{
1241
+ OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1242
+ OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
1243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
1183
1244
  type: Injectable
1184
- }], ctorParameters: function () { return [{ type: i4.HttpClient }]; } });
1245
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
1185
1246
 
1186
1247
  class PicklistsApiService {
1187
1248
  constructor(baseHttpService) {
@@ -1212,9 +1273,9 @@ class PicklistsApiService {
1212
1273
  };
1213
1274
  }
1214
1275
  }
1215
- PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1216
- PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PicklistsApiService });
1217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PicklistsApiService, decorators: [{
1276
+ PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1277
+ PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
1278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
1218
1279
  type: Injectable
1219
1280
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1220
1281
 
@@ -1272,9 +1333,9 @@ class PriceApiService {
1272
1333
  });
1273
1334
  }
1274
1335
  }
1275
- PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1276
- PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PriceApiService });
1277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PriceApiService, decorators: [{
1336
+ PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1337
+ PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
1338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
1278
1339
  type: Injectable
1279
1340
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1280
1341
 
@@ -1366,9 +1427,9 @@ class ProceduresApiService {
1366
1427
  });
1367
1428
  }
1368
1429
  }
1369
- ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1370
- ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProceduresApiService });
1371
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProceduresApiService, decorators: [{
1430
+ ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1431
+ ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
1432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
1372
1433
  type: Injectable
1373
1434
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1374
1435
 
@@ -1514,9 +1575,9 @@ class ProductApiService {
1514
1575
  return `${this.serviceUrl}/${productId}/image`;
1515
1576
  }
1516
1577
  }
1517
- ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1518
- ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductApiService });
1519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductApiService, decorators: [{
1578
+ ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1579
+ ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
1580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
1520
1581
  type: Injectable
1521
1582
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1522
1583
 
@@ -1745,9 +1806,72 @@ class ProductModelApiService {
1745
1806
  }
1746
1807
  }
1747
1808
  ProductModelApiService.MAX_RESULTS = 200;
1748
- ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1749
- ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductModelApiService });
1750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ProductModelApiService, decorators: [{
1809
+ ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1810
+ ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
1811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
1812
+ type: Injectable
1813
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1814
+
1815
+ class PromotionsApiService {
1816
+ constructor(baseHttpService) {
1817
+ this.baseHttpService = baseHttpService;
1818
+ this.serviceUrl = '/admin/promotion';
1819
+ this.fetchAll$ = () => {
1820
+ return this.baseHttpService.api({ url: this.serviceUrl });
1821
+ };
1822
+ this.fetchOne$ = (id) => {
1823
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1824
+ };
1825
+ this.remove$ = (id) => {
1826
+ return this.baseHttpService.api({
1827
+ url: `${this.serviceUrl}/${id}`,
1828
+ method: 'delete',
1829
+ });
1830
+ };
1831
+ this.restore$ = (id) => {
1832
+ return this.baseHttpService.api({
1833
+ method: 'patch',
1834
+ url: `${this.serviceUrl}/${id}/restore`,
1835
+ });
1836
+ };
1837
+ this.duplicate$ = (body) => {
1838
+ return this.baseHttpService
1839
+ .api({
1840
+ url: `${this.serviceUrl}/${body.id}/clone`,
1841
+ method: 'post',
1842
+ body,
1843
+ })
1844
+ .pipe(map$1(response => response.clonedRecordId));
1845
+ };
1846
+ }
1847
+ search$(expression, skip, count) {
1848
+ let params = new HttpParams();
1849
+ if (typeof skip === 'number') {
1850
+ params = params.set('skip', '' + skip);
1851
+ }
1852
+ if (typeof count === 'number') {
1853
+ params = params.set('count', '' + count);
1854
+ }
1855
+ return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
1856
+ }
1857
+ create$(body) {
1858
+ return this.baseHttpService.api({
1859
+ url: `${this.serviceUrl}`,
1860
+ method: 'post',
1861
+ body,
1862
+ });
1863
+ }
1864
+ update$(body) {
1865
+ return this.baseHttpService.api({
1866
+ url: `${this.serviceUrl}/${body.id}`,
1867
+ method: 'put',
1868
+ body,
1869
+ });
1870
+ }
1871
+ }
1872
+ PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1873
+ PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
1874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
1751
1875
  type: Injectable
1752
1876
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1753
1877
 
@@ -1783,9 +1907,9 @@ class QuoteApiService {
1783
1907
  });
1784
1908
  }
1785
1909
  }
1786
- QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1787
- QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: QuoteApiService });
1788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: QuoteApiService, decorators: [{
1910
+ QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1911
+ QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
1912
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
1789
1913
  type: Injectable
1790
1914
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1791
1915
 
@@ -1801,9 +1925,135 @@ class RampApiService {
1801
1925
  return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/renew`, body: request }, options));
1802
1926
  }
1803
1927
  }
1804
- RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1805
- RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RampApiService });
1806
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RampApiService, decorators: [{
1928
+ RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1929
+ RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
1930
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
1931
+ type: Injectable
1932
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1933
+
1934
+ class RebateProgramApiService {
1935
+ constructor(baseHttpService) {
1936
+ this.baseHttpService = baseHttpService;
1937
+ this.serviceUrl = '/admin/rebate-program';
1938
+ this.fetchAll$ = () => {
1939
+ return this.baseHttpService.api({ url: this.serviceUrl });
1940
+ };
1941
+ this.fetchOne$ = (id) => {
1942
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
1943
+ };
1944
+ this.remove$ = (id) => {
1945
+ return this.baseHttpService.api({
1946
+ url: `${this.serviceUrl}/${id}`,
1947
+ method: 'delete',
1948
+ });
1949
+ };
1950
+ this.restore$ = (id) => {
1951
+ return this.baseHttpService.api({
1952
+ method: 'patch',
1953
+ url: `${this.serviceUrl}/${id}/restore`,
1954
+ });
1955
+ };
1956
+ this.duplicate$ = (body) => {
1957
+ return this.baseHttpService
1958
+ .api({
1959
+ url: `${this.serviceUrl}/${body.id}/clone`,
1960
+ method: 'post',
1961
+ body,
1962
+ })
1963
+ .pipe(map$1(response => response.clonedRecordId));
1964
+ };
1965
+ }
1966
+ search$(expression, skip, count) {
1967
+ let params = new HttpParams();
1968
+ if (typeof skip === 'number') {
1969
+ params = params.set('skip', '' + skip);
1970
+ }
1971
+ if (typeof count === 'number') {
1972
+ params = params.set('count', '' + count);
1973
+ }
1974
+ return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
1975
+ }
1976
+ create$(body) {
1977
+ return this.baseHttpService.api({
1978
+ url: `${this.serviceUrl}`,
1979
+ method: 'post',
1980
+ body,
1981
+ });
1982
+ }
1983
+ update$(body) {
1984
+ return this.baseHttpService.api({
1985
+ url: `${this.serviceUrl}/${body.id}`,
1986
+ method: 'put',
1987
+ body,
1988
+ });
1989
+ }
1990
+ }
1991
+ RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1992
+ RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
1993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
1994
+ type: Injectable
1995
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1996
+
1997
+ class RebateTypeApiService {
1998
+ constructor(baseHttpService) {
1999
+ this.baseHttpService = baseHttpService;
2000
+ this.serviceUrl = '/admin/rebate-type';
2001
+ this.fetchAll$ = () => {
2002
+ return this.baseHttpService.api({ url: this.serviceUrl });
2003
+ };
2004
+ this.fetchOne$ = (id) => {
2005
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
2006
+ };
2007
+ this.remove$ = (id) => {
2008
+ return this.baseHttpService.api({
2009
+ url: `${this.serviceUrl}/${id}`,
2010
+ method: 'delete',
2011
+ });
2012
+ };
2013
+ this.restore$ = (id) => {
2014
+ return this.baseHttpService.api({
2015
+ method: 'patch',
2016
+ url: `${this.serviceUrl}/${id}/restore`,
2017
+ });
2018
+ };
2019
+ this.duplicate$ = (body) => {
2020
+ return this.baseHttpService
2021
+ .api({
2022
+ url: `${this.serviceUrl}/${body.id}/clone`,
2023
+ method: 'post',
2024
+ body,
2025
+ })
2026
+ .pipe(map$1(response => response.clonedRecordId));
2027
+ };
2028
+ }
2029
+ search$(expression, skip, count) {
2030
+ let params = new HttpParams();
2031
+ if (typeof skip === 'number') {
2032
+ params = params.set('skip', '' + skip);
2033
+ }
2034
+ if (typeof count === 'number') {
2035
+ params = params.set('count', '' + count);
2036
+ }
2037
+ return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
2038
+ }
2039
+ create$(body) {
2040
+ return this.baseHttpService.api({
2041
+ url: `${this.serviceUrl}`,
2042
+ method: 'post',
2043
+ body,
2044
+ });
2045
+ }
2046
+ update$(body) {
2047
+ return this.baseHttpService.api({
2048
+ url: `${this.serviceUrl}/${body.id}`,
2049
+ method: 'put',
2050
+ body,
2051
+ });
2052
+ }
2053
+ }
2054
+ RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2055
+ RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
2056
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
1807
2057
  type: Injectable
1808
2058
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1809
2059
 
@@ -1857,9 +2107,9 @@ class RuleGroupsApiService {
1857
2107
  };
1858
2108
  }
1859
2109
  }
1860
- RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1861
- RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RuleGroupsApiService });
1862
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RuleGroupsApiService, decorators: [{
2110
+ RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2111
+ RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
2112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
1863
2113
  type: Injectable
1864
2114
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1865
2115
 
@@ -1872,8 +2122,12 @@ class RulesApiService {
1872
2122
  };
1873
2123
  this.searchRules$ = (expression, skip, count) => {
1874
2124
  let params = new HttpParams();
1875
- params = params.set('skip', '' + skip);
1876
- params = params.set('count', '' + count);
2125
+ if (typeof skip === 'number') {
2126
+ params = params.set('skip', '' + skip);
2127
+ }
2128
+ if (typeof count === 'number') {
2129
+ params = params.set('count', '' + count);
2130
+ }
1877
2131
  return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
1878
2132
  };
1879
2133
  this.createRule$ = (rule) => {
@@ -1933,9 +2187,9 @@ class RulesApiService {
1933
2187
  });
1934
2188
  }
1935
2189
  }
1936
- RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1937
- RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RulesApiService });
1938
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RulesApiService, decorators: [{
2190
+ RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2191
+ RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
2192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
1939
2193
  type: Injectable
1940
2194
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1941
2195
 
@@ -1948,8 +2202,12 @@ class ScriptsApiService {
1948
2202
  };
1949
2203
  this.searchScripts$ = (expression, skip, count) => {
1950
2204
  let params = new HttpParams();
1951
- params = params.set('skip', '' + skip);
1952
- params = params.set('count', '' + count);
2205
+ if (typeof skip === 'number') {
2206
+ params = params.set('skip', '' + skip);
2207
+ }
2208
+ if (typeof count === 'number') {
2209
+ params = params.set('count', '' + count);
2210
+ }
1953
2211
  return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
1954
2212
  };
1955
2213
  this.fetchScript$ = (id) => {
@@ -2005,9 +2263,9 @@ class ScriptsApiService {
2005
2263
  };
2006
2264
  }
2007
2265
  }
2008
- ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2009
- ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ScriptsApiService });
2010
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ScriptsApiService, decorators: [{
2266
+ ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2267
+ ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
2268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
2011
2269
  type: Injectable
2012
2270
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2013
2271
 
@@ -2028,9 +2286,9 @@ class ShoppingCartSettingsApiService {
2028
2286
  }, {})));
2029
2287
  }
2030
2288
  }
2031
- ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2032
- ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ShoppingCartSettingsApiService });
2033
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
2289
+ ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
2290
+ ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
2291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
2034
2292
  type: Injectable
2035
2293
  }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
2036
2294
 
@@ -2076,9 +2334,9 @@ class StatefulConfigurationApiService {
2076
2334
  });
2077
2335
  }
2078
2336
  }
2079
- StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2080
- StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService });
2081
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
2337
+ StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2338
+ StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
2339
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
2082
2340
  type: Injectable
2083
2341
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2084
2342
 
@@ -2142,9 +2400,9 @@ class UIDefinitionsApiService {
2142
2400
  return `/models/${modelId}/uidefinitions`;
2143
2401
  }
2144
2402
  }
2145
- UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2146
- UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService });
2147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
2403
+ UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2404
+ UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
2405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
2148
2406
  type: Injectable
2149
2407
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2150
2408
 
@@ -2430,9 +2688,9 @@ class UITemplatesApiService {
2430
2688
  });
2431
2689
  }
2432
2690
  }
2433
- UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2434
- UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UITemplatesApiService });
2435
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: UITemplatesApiService, decorators: [{
2691
+ UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2692
+ UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
2693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
2436
2694
  type: Injectable
2437
2695
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2438
2696
 
@@ -2506,17 +2764,72 @@ class VeloceObjectsApiService {
2506
2764
  });
2507
2765
  }
2508
2766
  }
2509
- VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2510
- VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService });
2511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
2767
+ VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2768
+ VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
2769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
2770
+ type: Injectable
2771
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2772
+
2773
+ class PortalsApiService {
2774
+ constructor(baseHttpService) {
2775
+ this.baseHttpService = baseHttpService;
2776
+ this.serviceUrl = '/admin/portal';
2777
+ this.getPortals$ = (skip = 1, name = '') => {
2778
+ let params = new HttpParams();
2779
+ params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
2780
+ params = params.append('skip', '0');
2781
+ params = params.append('name', name);
2782
+ return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
2783
+ };
2784
+ this.searchPortals$ = (skip = 0, expression) => {
2785
+ let params = new HttpParams();
2786
+ params = params.set('skip', '' + skip);
2787
+ params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
2788
+ return this.baseHttpService.api({
2789
+ method: 'post',
2790
+ url: `${this.serviceUrl}/search`,
2791
+ params,
2792
+ body: expression || {},
2793
+ });
2794
+ };
2795
+ this.removePortal$ = (id) => {
2796
+ return this.baseHttpService.api({
2797
+ url: `${this.serviceUrl}/${id}`,
2798
+ method: 'delete',
2799
+ });
2800
+ };
2801
+ this.restore$ = (id) => {
2802
+ return this.baseHttpService.api({
2803
+ method: 'patch',
2804
+ url: `${this.serviceUrl}/${id}/restore`,
2805
+ });
2806
+ };
2807
+ this.getPortal$ = (id) => {
2808
+ return this.baseHttpService.api({
2809
+ url: `${this.serviceUrl}/${id}`,
2810
+ });
2811
+ };
2812
+ }
2813
+ createNewPortal$(body) {
2814
+ return this.baseHttpService.api({
2815
+ url: `${this.serviceUrl}`,
2816
+ method: 'post',
2817
+ body,
2818
+ });
2819
+ }
2820
+ }
2821
+ PortalsApiService.MAX_RESULTS = 60;
2822
+ PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2823
+ PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
2824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
2512
2825
  type: Injectable
2513
2826
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2514
2827
 
2515
2828
  class ApiModule {
2516
2829
  }
2517
- ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2518
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
2519
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, providers: [
2830
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2831
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
2832
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
2520
2833
  BaseHttpService,
2521
2834
  XrayService,
2522
2835
  ConfigurationApiService,
@@ -2550,8 +2863,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2550
2863
  UIDefinitionsApiService,
2551
2864
  VeloceObjectsApiService,
2552
2865
  StatefulConfigurationApiService,
2866
+ RebateProgramApiService,
2867
+ RebateTypeApiService,
2868
+ PromotionsApiService,
2869
+ VeloceAuthService,
2870
+ ContractedPriceApiService,
2871
+ PortalsApiService,
2553
2872
  ], imports: [HttpClientModule] });
2554
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, decorators: [{
2873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
2555
2874
  type: NgModule,
2556
2875
  args: [{
2557
2876
  imports: [HttpClientModule],
@@ -2589,6 +2908,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
2589
2908
  UIDefinitionsApiService,
2590
2909
  VeloceObjectsApiService,
2591
2910
  StatefulConfigurationApiService,
2911
+ RebateProgramApiService,
2912
+ RebateTypeApiService,
2913
+ PromotionsApiService,
2914
+ VeloceAuthService,
2915
+ ContractedPriceApiService,
2916
+ PortalsApiService,
2592
2917
  ],
2593
2918
  }]
2594
2919
  }] });
@@ -2597,5 +2922,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
2597
2922
  * Generated bundle index. Do not edit.
2598
2923
  */
2599
2924
 
2600
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
2925
+ export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
2601
2926
  //# sourceMappingURL=veloceapps-api.mjs.map