@veloceapps/api 6.0.0-1 → 6.0.0-100

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 (46) hide show
  1. package/bundles/veloceapps-api.umd.js +364 -89
  2. package/bundles/veloceapps-api.umd.js.map +1 -1
  3. package/esm2015/index.js +5 -1
  4. package/esm2015/lib/api.module.js +17 -5
  5. package/esm2015/lib/services/account-api.service.js +3 -3
  6. package/esm2015/lib/services/catalog-admin-api.service.js +4 -5
  7. package/esm2015/lib/services/catalog-api.service.js +3 -3
  8. package/esm2015/lib/services/configuration-api.service.js +3 -3
  9. package/esm2015/lib/services/configuration-settings-api.service.js +16 -7
  10. package/esm2015/lib/services/context-api.service.js +3 -3
  11. package/esm2015/lib/services/delta-api.service.js +3 -3
  12. package/esm2015/lib/services/document-attachment-api.service.js +3 -3
  13. package/esm2015/lib/services/document-templates-api.service.js +3 -3
  14. package/esm2015/lib/services/endpoints-api.service.js +3 -3
  15. package/esm2015/lib/services/flows-api.service.js +3 -3
  16. package/esm2015/lib/services/guided-sellings-admin-api.service.js +65 -0
  17. package/esm2015/lib/services/guided-sellings-api.service.js +27 -0
  18. package/esm2015/lib/services/offers-api.service.js +76 -0
  19. package/esm2015/lib/services/org-info-api.service.js +3 -3
  20. package/esm2015/lib/services/picklists-api.service.js +3 -3
  21. package/esm2015/lib/services/price-api.service.js +3 -3
  22. package/esm2015/lib/services/procedures-api.service.js +3 -3
  23. package/esm2015/lib/services/product-api.service.js +3 -3
  24. package/esm2015/lib/services/product-model-api.service.js +3 -3
  25. package/esm2015/lib/services/quote-api.service.js +3 -3
  26. package/esm2015/lib/services/ramp-api.service.js +3 -3
  27. package/esm2015/lib/services/rule-groups-api.service.js +3 -3
  28. package/esm2015/lib/services/rules-api.service.js +7 -6
  29. package/esm2015/lib/services/salesforce-api.service.js +7 -4
  30. package/esm2015/lib/services/scripts-api.service.js +3 -3
  31. package/esm2015/lib/services/shopping-cart-settings-api.service.js +28 -0
  32. package/esm2015/lib/services/ui-templates-api.service.js +3 -3
  33. package/esm2015/lib/types/dto/offers-dto.types.js +2 -0
  34. package/esm2015/lib/types/index.js +1 -1
  35. package/fesm2015/veloceapps-api.js +281 -84
  36. package/fesm2015/veloceapps-api.js.map +1 -1
  37. package/index.d.ts +4 -0
  38. package/lib/services/configuration-settings-api.service.d.ts +4 -2
  39. package/lib/services/guided-sellings-admin-api.service.d.ts +20 -0
  40. package/lib/services/guided-sellings-api.service.d.ts +12 -0
  41. package/lib/services/offers-api.service.d.ts +19 -0
  42. package/lib/services/salesforce-api.service.d.ts +5 -0
  43. package/lib/services/shopping-cart-settings-api.service.d.ts +14 -0
  44. package/lib/types/dto/offers-dto.types.d.ts +9 -0
  45. package/lib/types/index.d.ts +1 -0
  46. package/package.json +1 -1
@@ -3,9 +3,10 @@ import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import * as i1 from '@veloceapps/core';
6
- import { ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, ProductModelsContainer, ModelUtils, EntityUtil, BaseHttpService, XrayService } from '@veloceapps/core';
7
- import { throwError, of, zip, forkJoin, noop, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
6
+ import { ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, BaseHttpService, XrayService } from '@veloceapps/core';
7
+ import { throwError, of, zip, forkJoin, map as map$1, noop, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
8
8
  import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
9
+ import * as i2 from 'primeng/api';
9
10
  import { CurrencyPipe } from '@angular/common';
10
11
  import * as _ from 'lodash';
11
12
  import * as moment_ from 'moment';
@@ -51,9 +52,9 @@ class AccountApiService {
51
52
  return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`, method: 'post', body: { id: orderId } }, options));
52
53
  }
53
54
  }
54
- AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
55
- AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountApiService });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: AccountApiService, decorators: [{
55
+ AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
56
+ AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AccountApiService });
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AccountApiService, decorators: [{
57
58
  type: Injectable
58
59
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
59
60
 
@@ -200,15 +201,14 @@ class CatalogAdminApiService {
200
201
  return this.baseHttpService.api({
201
202
  method: 'delete',
202
203
  url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${data.id}`,
203
- body: data,
204
204
  });
205
205
  };
206
206
  }
207
207
  }
208
208
  CatalogAdminApiService.MAX_RESULTS = 60;
209
- CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
210
- CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogAdminApiService });
211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogAdminApiService, decorators: [{
209
+ CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
210
+ CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogAdminApiService });
211
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogAdminApiService, decorators: [{
212
212
  type: Injectable
213
213
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
214
214
 
@@ -292,9 +292,9 @@ class CatalogApiService {
292
292
  });
293
293
  }
294
294
  }
295
- CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
296
- CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogApiService });
297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: CatalogApiService, decorators: [{
295
+ CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
296
+ CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogApiService });
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CatalogApiService, decorators: [{
298
298
  type: Injectable
299
299
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
300
300
 
@@ -358,9 +358,9 @@ class ConfigurationApiService {
358
358
  return Object.assign(Object.assign({}, lineItem), { lineItems: (_c = lineItem.lineItems) === null || _c === void 0 ? void 0 : _c.map(i => this.updatePortDomains(i, runtimeModel)), portDomains });
359
359
  }
360
360
  }
361
- ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
362
- ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationApiService });
363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationApiService, decorators: [{
361
+ ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
362
+ ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationApiService });
363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationApiService, decorators: [{
364
364
  type: Injectable
365
365
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
366
366
 
@@ -387,8 +387,9 @@ class ConfigurationSettingsDTO {
387
387
  }
388
388
 
389
389
  class ConfigurationSettingsApiService {
390
- constructor(httpService) {
390
+ constructor(httpService, messageService) {
391
391
  this.httpService = httpService;
392
+ this.messageService = messageService;
392
393
  this.SERVICE_URL = '/configuration-settings';
393
394
  }
394
395
  fetchSettings(options) {
@@ -398,9 +399,16 @@ class ConfigurationSettingsApiService {
398
399
  }
399
400
  fetchSetting(settingsKey, options) {
400
401
  return this.httpService
401
- .api(Object.assign({ url: `${this.SERVICE_URL}/byKey/${settingsKey}`, method: 'get' }, options))
402
+ .api(Object.assign(Object.assign({ url: `${this.SERVICE_URL}/byKey/${settingsKey}`, method: 'get' }, options), { skipErrorHandler: true }))
402
403
  .pipe(map((setting) => ConfigurationSettingsDTO.fromDTO(setting, settingsKey)), catchError(err => {
403
404
  if (err instanceof HttpErrorResponse && err.status === 404) {
405
+ if (!(options === null || options === void 0 ? void 0 : options.skipErrorHandler)) {
406
+ this.messageService.add({
407
+ severity: 'error',
408
+ summary: `Configuration Setting "${settingsKey}" is not found`,
409
+ sticky: true,
410
+ });
411
+ }
404
412
  return of(null);
405
413
  }
406
414
  throw err;
@@ -425,11 +433,11 @@ class ConfigurationSettingsApiService {
425
433
  return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
426
434
  }
427
435
  }
428
- ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
429
- ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationSettingsApiService });
430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
436
+ ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
437
+ ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationSettingsApiService });
438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
431
439
  type: Injectable
432
- }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
440
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
433
441
 
434
442
  class ContextApiService {
435
443
  constructor(httpService) {
@@ -447,9 +455,9 @@ class ContextApiService {
447
455
  });
448
456
  }
449
457
  }
450
- ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
451
- ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ContextApiService });
452
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ContextApiService, decorators: [{
458
+ ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
459
+ ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ContextApiService });
460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ContextApiService, decorators: [{
453
461
  type: Injectable
454
462
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
455
463
 
@@ -467,9 +475,9 @@ class DeltaApiService {
467
475
  });
468
476
  }
469
477
  }
470
- DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
471
- DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DeltaApiService });
472
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DeltaApiService, decorators: [{
478
+ DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
479
+ DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DeltaApiService });
480
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DeltaApiService, decorators: [{
473
481
  type: Injectable
474
482
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
475
483
 
@@ -529,9 +537,9 @@ class DocumentAttachmentApiService {
529
537
  });
530
538
  }
531
539
  }
532
- DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
533
- DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentAttachmentApiService });
534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
540
+ DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
541
+ DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentAttachmentApiService });
542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
535
543
  type: Injectable
536
544
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
537
545
 
@@ -550,6 +558,9 @@ class SalesforceApiService {
550
558
  }
551
559
  return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/query`, params }, options));
552
560
  }
561
+ search(req, options) {
562
+ return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest/search`, params: { q: req.searchString } }, options));
563
+ }
553
564
  describe(objectName, fieldName, options) {
554
565
  const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields` + (fieldName ? `/${fieldName}` : '');
555
566
  return this.httpService.api(Object.assign({ url: methodUrl }, options));
@@ -565,9 +576,9 @@ class SalesforceApiService {
565
576
  return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
566
577
  }
567
578
  }
568
- SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
569
- SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalesforceApiService });
570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SalesforceApiService, decorators: [{
579
+ SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
580
+ SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SalesforceApiService });
581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SalesforceApiService, decorators: [{
571
582
  type: Injectable
572
583
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
573
584
 
@@ -837,9 +848,9 @@ class DocumentTemplatesApiService {
837
848
  return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
838
849
  }
839
850
  }
840
- DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
841
- DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentTemplatesApiService });
842
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
851
+ DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
852
+ DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentTemplatesApiService });
853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
843
854
  type: Injectable
844
855
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4.HttpClient }]; } });
845
856
 
@@ -912,9 +923,9 @@ class EndpointsApiService {
912
923
  });
913
924
  }
914
925
  }
915
- EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
916
- EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EndpointsApiService });
917
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: EndpointsApiService, decorators: [{
926
+ EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
927
+ EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EndpointsApiService });
928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EndpointsApiService, decorators: [{
918
929
  type: Injectable
919
930
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
920
931
 
@@ -932,12 +943,166 @@ class FlowsApiService {
932
943
  .pipe(map((flow) => ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : [])));
933
944
  }
934
945
  }
935
- FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
936
- FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FlowsApiService });
937
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: FlowsApiService, decorators: [{
946
+ FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
947
+ FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FlowsApiService });
948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FlowsApiService, decorators: [{
938
949
  type: Injectable
939
950
  }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
940
951
 
952
+ class GuidedSellingsAdminApiService {
953
+ constructor(baseHttpService) {
954
+ this.baseHttpService = baseHttpService;
955
+ this.serviceUrl = '/admin/guided-selling';
956
+ this.fetchGuidedSellings$ = (searchParams) => {
957
+ return this.searchGuidedSellings$(searchParams);
958
+ };
959
+ this.searchGuidedSellings$ = (searchParams, expression) => {
960
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
961
+ return this.baseHttpService.api({
962
+ method: 'post',
963
+ url: `${this.serviceUrl}/search`,
964
+ params,
965
+ body: expression || {},
966
+ });
967
+ };
968
+ this.fetchGuidedSelling$ = (id) => {
969
+ return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
970
+ };
971
+ this.createNewGuidedSelling$ = (guidedSelling) => {
972
+ return this.baseHttpService.api({
973
+ url: `${this.serviceUrl}`,
974
+ method: 'post',
975
+ body: guidedSelling,
976
+ });
977
+ };
978
+ this.duplicateGuidedSelling$ = (cloneRequest) => {
979
+ return this.baseHttpService.api({
980
+ url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
981
+ method: 'post',
982
+ body: cloneRequest,
983
+ });
984
+ };
985
+ this.updateGuidedSelling$ = (data) => {
986
+ return this.baseHttpService.api({
987
+ url: `${this.serviceUrl}/${data.id}`,
988
+ method: 'put',
989
+ body: data,
990
+ });
991
+ };
992
+ this.removeGuidedSelling$ = (id) => {
993
+ return this.baseHttpService.api({
994
+ url: `${this.serviceUrl}/${id}`,
995
+ method: 'delete',
996
+ });
997
+ };
998
+ this.restoreGuidedSelling$ = (id) => {
999
+ return this.baseHttpService.api({
1000
+ url: `${this.serviceUrl}/${id}/restore`,
1001
+ method: 'patch',
1002
+ });
1003
+ };
1004
+ }
1005
+ }
1006
+ GuidedSellingsAdminApiService.MAX_RESULTS = 60;
1007
+ GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1008
+ GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingsAdminApiService });
1009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
1010
+ type: Injectable
1011
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1012
+
1013
+ class GuidedSellingApiService {
1014
+ constructor(http) {
1015
+ this.http = http;
1016
+ this.serviceUrl = '/guided-selling';
1017
+ }
1018
+ searchByName$(name, searchParams) {
1019
+ const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
1020
+ const expression = new Expression(undefined, [{ key: 'name', operator: Operator.EQ, value: name }]);
1021
+ return this.http.api({
1022
+ method: 'post',
1023
+ url: `${this.serviceUrl}/search`,
1024
+ params,
1025
+ body: expression || {},
1026
+ });
1027
+ }
1028
+ }
1029
+ GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1030
+ GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingApiService });
1031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: GuidedSellingApiService, decorators: [{
1032
+ type: Injectable
1033
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1034
+
1035
+ class OffersApiService {
1036
+ constructor(baseHttpService) {
1037
+ this.baseHttpService = baseHttpService;
1038
+ this.serviceUrl = '/admin/offers';
1039
+ }
1040
+ createOffer$(body) {
1041
+ return this.baseHttpService.api({
1042
+ url: `${this.serviceUrl}`,
1043
+ method: 'post',
1044
+ body,
1045
+ });
1046
+ }
1047
+ fetchOffers$() {
1048
+ return this.baseHttpService.api({
1049
+ url: `${this.serviceUrl}`,
1050
+ });
1051
+ }
1052
+ fetchOffer$(id) {
1053
+ return this.baseHttpService.api({
1054
+ url: `${this.serviceUrl}/${id}`,
1055
+ });
1056
+ }
1057
+ updateOffer$(offer) {
1058
+ return this.baseHttpService.api({
1059
+ url: `${this.serviceUrl}/${offer.id}`,
1060
+ method: 'put',
1061
+ body: offer,
1062
+ });
1063
+ }
1064
+ removeOffer$(id) {
1065
+ return this.baseHttpService.api({
1066
+ url: `${this.serviceUrl}/${id}`,
1067
+ method: 'delete',
1068
+ });
1069
+ }
1070
+ searchOffers$(expression, skip, count) {
1071
+ let params = new HttpParams();
1072
+ params = params.set('skip', '' + skip);
1073
+ params = params.set('count', '' + count);
1074
+ return this.baseHttpService.api({
1075
+ method: 'post',
1076
+ url: `${this.serviceUrl}/search`,
1077
+ params,
1078
+ body: expression,
1079
+ });
1080
+ }
1081
+ fetchOfferProducts$(id) {
1082
+ return this.baseHttpService
1083
+ .api({
1084
+ url: `${this.serviceUrl}/${id}/products`,
1085
+ })
1086
+ .pipe(map$1(response => response.products));
1087
+ }
1088
+ upsertOfferProducts$(id, products) {
1089
+ const request = { products };
1090
+ return this.baseHttpService
1091
+ .api({
1092
+ url: `${this.serviceUrl}/${id}/products`,
1093
+ method: 'put',
1094
+ body: request,
1095
+ })
1096
+ .pipe(map$1(response => response.products));
1097
+ }
1098
+ }
1099
+ OffersApiService.MAX_RESULTS = 60;
1100
+ OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1101
+ OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OffersApiService });
1102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OffersApiService, decorators: [{
1103
+ type: Injectable
1104
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1105
+
941
1106
  class OrgInfoApiService {
942
1107
  constructor(http) {
943
1108
  var _a;
@@ -949,9 +1114,9 @@ class OrgInfoApiService {
949
1114
  return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
950
1115
  }
951
1116
  }
952
- OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
953
- OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OrgInfoApiService });
954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: OrgInfoApiService, decorators: [{
1117
+ OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1118
+ OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrgInfoApiService });
1119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OrgInfoApiService, decorators: [{
955
1120
  type: Injectable
956
1121
  }], ctorParameters: function () { return [{ type: i4.HttpClient }]; } });
957
1122
 
@@ -984,9 +1149,9 @@ class PicklistsApiService {
984
1149
  };
985
1150
  }
986
1151
  }
987
- PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
988
- PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PicklistsApiService });
989
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PicklistsApiService, decorators: [{
1152
+ PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1153
+ PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PicklistsApiService });
1154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PicklistsApiService, decorators: [{
990
1155
  type: Injectable
991
1156
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
992
1157
 
@@ -1044,9 +1209,9 @@ class PriceApiService {
1044
1209
  });
1045
1210
  }
1046
1211
  }
1047
- PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1048
- PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PriceApiService });
1049
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PriceApiService, decorators: [{
1212
+ PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1213
+ PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PriceApiService });
1214
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PriceApiService, decorators: [{
1050
1215
  type: Injectable
1051
1216
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1052
1217
 
@@ -1131,9 +1296,9 @@ class ProceduresApiService {
1131
1296
  });
1132
1297
  }
1133
1298
  }
1134
- ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1135
- ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProceduresApiService });
1136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProceduresApiService, decorators: [{
1299
+ ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1300
+ ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProceduresApiService });
1301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProceduresApiService, decorators: [{
1137
1302
  type: Injectable
1138
1303
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1139
1304
 
@@ -1279,9 +1444,9 @@ class ProductApiService {
1279
1444
  return `${this.serviceUrl}/${productId}/image`;
1280
1445
  }
1281
1446
  }
1282
- ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1283
- ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductApiService });
1284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductApiService, decorators: [{
1447
+ ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1448
+ ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductApiService });
1449
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductApiService, decorators: [{
1285
1450
  type: Injectable
1286
1451
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1287
1452
 
@@ -1505,9 +1670,9 @@ class ProductModelApiService {
1505
1670
  }
1506
1671
  }
1507
1672
  ProductModelApiService.MAX_RESULTS = 200;
1508
- ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1509
- ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductModelApiService });
1510
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ProductModelApiService, decorators: [{
1673
+ ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1674
+ ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductModelApiService });
1675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ProductModelApiService, decorators: [{
1511
1676
  type: Injectable
1512
1677
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1513
1678
 
@@ -1550,9 +1715,9 @@ class QuoteApiService {
1550
1715
  });
1551
1716
  }
1552
1717
  }
1553
- QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1554
- QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: QuoteApiService });
1555
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: QuoteApiService, decorators: [{
1718
+ QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1719
+ QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: QuoteApiService });
1720
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: QuoteApiService, decorators: [{
1556
1721
  type: Injectable
1557
1722
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1558
1723
 
@@ -1568,9 +1733,9 @@ class RampApiService {
1568
1733
  return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/renew`, body: request }, options));
1569
1734
  }
1570
1735
  }
1571
- RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1572
- RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RampApiService });
1573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RampApiService, decorators: [{
1736
+ RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1737
+ RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RampApiService });
1738
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RampApiService, decorators: [{
1574
1739
  type: Injectable
1575
1740
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1576
1741
 
@@ -1624,9 +1789,9 @@ class RuleGroupsApiService {
1624
1789
  };
1625
1790
  }
1626
1791
  }
1627
- RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1628
- RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuleGroupsApiService });
1629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RuleGroupsApiService, decorators: [{
1792
+ RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1793
+ RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuleGroupsApiService });
1794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RuleGroupsApiService, decorators: [{
1630
1795
  type: Injectable
1631
1796
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1632
1797
 
@@ -1692,16 +1857,17 @@ class RulesApiService {
1692
1857
  });
1693
1858
  }
1694
1859
  execute$(body) {
1860
+ const url = body.rule.ruleGroupType === RuleGroupTypes.eligibility ? '/rules/eligibility/execute' : '/rules/execute';
1695
1861
  return this.baseHttpService.api({
1696
- url: `/rules/execute`,
1862
+ url,
1697
1863
  method: 'post',
1698
1864
  body,
1699
1865
  });
1700
1866
  }
1701
1867
  }
1702
- RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1703
- RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RulesApiService });
1704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: RulesApiService, decorators: [{
1868
+ RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1869
+ RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RulesApiService });
1870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RulesApiService, decorators: [{
1705
1871
  type: Injectable
1706
1872
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1707
1873
 
@@ -1771,12 +1937,35 @@ class ScriptsApiService {
1771
1937
  };
1772
1938
  }
1773
1939
  }
1774
- ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1775
- ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ScriptsApiService });
1776
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ScriptsApiService, decorators: [{
1940
+ ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
1941
+ ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ScriptsApiService });
1942
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ScriptsApiService, decorators: [{
1777
1943
  type: Injectable
1778
1944
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
1779
1945
 
1946
+ class ShoppingCartSettingsApiService {
1947
+ constructor(configurationSettingsApiService) {
1948
+ this.configurationSettingsApiService = configurationSettingsApiService;
1949
+ this.shoppingCartSettingsKey = 'shopping-cart';
1950
+ }
1951
+ getSetting(id) {
1952
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map(settings => settings.find(setting => setting.id == id)));
1953
+ }
1954
+ fetchSettings() {
1955
+ return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
1956
+ }
1957
+ getSettingsMap() {
1958
+ return this.fetchSettings().pipe(map((settings) => parseJsonSafely(settings === null || settings === void 0 ? void 0 : settings.value, [])), map((settings) => settings.reduce((acc, setting) => {
1959
+ return Object.assign(Object.assign({}, acc), { [setting.id]: setting.properties });
1960
+ }, {})));
1961
+ }
1962
+ }
1963
+ ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
1964
+ ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ShoppingCartSettingsApiService });
1965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
1966
+ type: Injectable
1967
+ }], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
1968
+
1780
1969
  const fromUIComponentStoryDTO = (dto, attachments) => {
1781
1970
  return {
1782
1971
  id: dto.id,
@@ -2059,17 +2248,17 @@ class UITemplatesApiService {
2059
2248
  });
2060
2249
  }
2061
2250
  }
2062
- UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2063
- UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UITemplatesApiService });
2064
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: UITemplatesApiService, decorators: [{
2251
+ UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
2252
+ UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UITemplatesApiService });
2253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: UITemplatesApiService, decorators: [{
2065
2254
  type: Injectable
2066
2255
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2067
2256
 
2068
2257
  class ApiModule {
2069
2258
  }
2070
- ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2071
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
2072
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ApiModule, providers: [
2259
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2260
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
2261
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ApiModule, providers: [
2073
2262
  BaseHttpService,
2074
2263
  XrayService,
2075
2264
  ConfigurationApiService,
@@ -2088,16 +2277,20 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
2088
2277
  RulesApiService,
2089
2278
  RuleGroupsApiService,
2090
2279
  FlowsApiService,
2280
+ GuidedSellingsAdminApiService,
2281
+ ShoppingCartSettingsApiService,
2091
2282
  ProductApiService,
2092
2283
  CatalogAdminApiService,
2284
+ GuidedSellingApiService,
2093
2285
  CatalogApiService,
2094
2286
  DeltaApiService,
2095
2287
  AccountApiService,
2096
2288
  PicklistsApiService,
2097
2289
  EndpointsApiService,
2098
2290
  OrgInfoApiService,
2291
+ OffersApiService,
2099
2292
  ], imports: [[HttpClientModule]] });
2100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ApiModule, decorators: [{
2293
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ApiModule, decorators: [{
2101
2294
  type: NgModule,
2102
2295
  args: [{
2103
2296
  imports: [HttpClientModule],
@@ -2120,14 +2313,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2120
2313
  RulesApiService,
2121
2314
  RuleGroupsApiService,
2122
2315
  FlowsApiService,
2316
+ GuidedSellingsAdminApiService,
2317
+ ShoppingCartSettingsApiService,
2123
2318
  ProductApiService,
2124
2319
  CatalogAdminApiService,
2320
+ GuidedSellingApiService,
2125
2321
  CatalogApiService,
2126
2322
  DeltaApiService,
2127
2323
  AccountApiService,
2128
2324
  PicklistsApiService,
2129
2325
  EndpointsApiService,
2130
2326
  OrgInfoApiService,
2327
+ OffersApiService,
2131
2328
  ],
2132
2329
  }]
2133
2330
  }] });
@@ -2136,5 +2333,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
2136
2333
  * Generated bundle index. Do not edit.
2137
2334
  */
2138
2335
 
2139
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, UITemplatesApiService };
2336
+ 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, UITemplatesApiService };
2140
2337
  //# sourceMappingURL=veloceapps-api.js.map