@veloceapps/api 6.0.0-9 → 6.0.0-90
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.
- package/bundles/veloceapps-api.umd.js +347 -93
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/index.js +4 -1
- package/esm2015/lib/api.module.js +14 -5
- package/esm2015/lib/services/account-api.service.js +3 -3
- package/esm2015/lib/services/catalog-admin-api.service.js +5 -5
- package/esm2015/lib/services/catalog-api.service.js +3 -3
- package/esm2015/lib/services/configuration-api.service.js +3 -3
- package/esm2015/lib/services/configuration-settings-api.service.js +16 -7
- package/esm2015/lib/services/context-api.service.js +3 -3
- package/esm2015/lib/services/delta-api.service.js +3 -3
- package/esm2015/lib/services/document-attachment-api.service.js +3 -3
- package/esm2015/lib/services/document-templates-api.service.js +3 -3
- package/esm2015/lib/services/endpoints-api.service.js +3 -3
- package/esm2015/lib/services/flows-api.service.js +3 -3
- package/esm2015/lib/services/guided-sellings-admin-api.service.js +66 -0
- package/esm2015/lib/services/guided-sellings-api.service.js +27 -0
- package/esm2015/lib/services/offers-api.service.js +76 -0
- package/esm2015/lib/services/org-info-api.service.js +3 -3
- package/esm2015/lib/services/picklists-api.service.js +3 -3
- package/esm2015/lib/services/price-api.service.js +3 -3
- package/esm2015/lib/services/procedures-api.service.js +3 -3
- package/esm2015/lib/services/product-api.service.js +3 -3
- package/esm2015/lib/services/product-model-api.service.js +3 -3
- package/esm2015/lib/services/quote-api.service.js +3 -3
- package/esm2015/lib/services/ramp-api.service.js +3 -3
- package/esm2015/lib/services/rule-groups-api.service.js +3 -3
- package/esm2015/lib/services/rules-api.service.js +7 -6
- package/esm2015/lib/services/salesforce-api.service.js +7 -4
- package/esm2015/lib/services/scripts-api.service.js +3 -3
- package/esm2015/lib/services/shopping-cart-settings-api.service.js +11 -5
- package/esm2015/lib/services/ui-templates-api.service.js +3 -3
- package/esm2015/lib/types/dto/offers-dto.types.js +2 -0
- package/esm2015/lib/types/index.js +1 -1
- package/fesm2015/veloceapps-api.js +266 -88
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/index.d.ts +3 -0
- package/lib/services/configuration-settings-api.service.d.ts +4 -2
- package/lib/services/guided-sellings-admin-api.service.d.ts +19 -0
- package/lib/services/guided-sellings-api.service.d.ts +12 -0
- package/lib/services/offers-api.service.d.ts +19 -0
- package/lib/services/salesforce-api.service.d.ts +5 -0
- package/lib/services/shopping-cart-settings-api.service.d.ts +2 -1
- package/lib/types/dto/offers-dto.types.d.ts +9 -0
- package/lib/types/index.d.ts +1 -0
- 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,
|
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.
|
55
|
-
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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
|
|
@@ -199,15 +200,15 @@ class CatalogAdminApiService {
|
|
199
200
|
this.removeProduct$ = ({ catalogId, categoryId, data, }) => {
|
200
201
|
return this.baseHttpService.api({
|
201
202
|
method: 'delete',
|
202
|
-
url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${data.id}
|
203
|
+
url: `${this.serviceUrl}/${catalogId}/categories/${categoryId}/products/${data.id}`,
|
203
204
|
});
|
204
205
|
};
|
205
206
|
}
|
206
207
|
}
|
207
208
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
208
|
-
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
209
|
-
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
211
212
|
type: Injectable
|
212
213
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
213
214
|
|
@@ -291,9 +292,9 @@ class CatalogApiService {
|
|
291
292
|
});
|
292
293
|
}
|
293
294
|
}
|
294
|
-
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
295
|
-
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
297
298
|
type: Injectable
|
298
299
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
299
300
|
|
@@ -357,9 +358,9 @@ class ConfigurationApiService {
|
|
357
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 });
|
358
359
|
}
|
359
360
|
}
|
360
|
-
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
361
|
-
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
363
364
|
type: Injectable
|
364
365
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
365
366
|
|
@@ -386,8 +387,9 @@ class ConfigurationSettingsDTO {
|
|
386
387
|
}
|
387
388
|
|
388
389
|
class ConfigurationSettingsApiService {
|
389
|
-
constructor(httpService) {
|
390
|
+
constructor(httpService, messageService) {
|
390
391
|
this.httpService = httpService;
|
392
|
+
this.messageService = messageService;
|
391
393
|
this.SERVICE_URL = '/configuration-settings';
|
392
394
|
}
|
393
395
|
fetchSettings(options) {
|
@@ -397,9 +399,16 @@ class ConfigurationSettingsApiService {
|
|
397
399
|
}
|
398
400
|
fetchSetting(settingsKey, options) {
|
399
401
|
return this.httpService
|
400
|
-
.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 }))
|
401
403
|
.pipe(map((setting) => ConfigurationSettingsDTO.fromDTO(setting, settingsKey)), catchError(err => {
|
402
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
|
+
}
|
403
412
|
return of(null);
|
404
413
|
}
|
405
414
|
throw err;
|
@@ -424,11 +433,11 @@ class ConfigurationSettingsApiService {
|
|
424
433
|
return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
|
425
434
|
}
|
426
435
|
}
|
427
|
-
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
428
|
-
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
430
439
|
type: Injectable
|
431
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
440
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
432
441
|
|
433
442
|
class ContextApiService {
|
434
443
|
constructor(httpService) {
|
@@ -446,9 +455,9 @@ class ContextApiService {
|
|
446
455
|
});
|
447
456
|
}
|
448
457
|
}
|
449
|
-
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
450
|
-
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
452
461
|
type: Injectable
|
453
462
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
454
463
|
|
@@ -466,9 +475,9 @@ class DeltaApiService {
|
|
466
475
|
});
|
467
476
|
}
|
468
477
|
}
|
469
|
-
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
470
|
-
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
472
481
|
type: Injectable
|
473
482
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
474
483
|
|
@@ -528,9 +537,9 @@ class DocumentAttachmentApiService {
|
|
528
537
|
});
|
529
538
|
}
|
530
539
|
}
|
531
|
-
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
532
|
-
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
534
543
|
type: Injectable
|
535
544
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
536
545
|
|
@@ -549,6 +558,9 @@ class SalesforceApiService {
|
|
549
558
|
}
|
550
559
|
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/query`, params }, options));
|
551
560
|
}
|
561
|
+
search(req, options) {
|
562
|
+
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/rest/search`, params: { q: req.searchString } }, options));
|
563
|
+
}
|
552
564
|
describe(objectName, fieldName, options) {
|
553
565
|
const methodUrl = `${this.SERVICE_URL}/describe/${objectName}/fields` + (fieldName ? `/${fieldName}` : '');
|
554
566
|
return this.httpService.api(Object.assign({ url: methodUrl }, options));
|
@@ -564,9 +576,9 @@ class SalesforceApiService {
|
|
564
576
|
return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
|
565
577
|
}
|
566
578
|
}
|
567
|
-
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
568
|
-
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
569
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
570
582
|
type: Injectable
|
571
583
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
572
584
|
|
@@ -836,9 +848,9 @@ class DocumentTemplatesApiService {
|
|
836
848
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
837
849
|
}
|
838
850
|
}
|
839
|
-
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
840
|
-
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
842
854
|
type: Injectable
|
843
855
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i4.HttpClient }]; } });
|
844
856
|
|
@@ -911,9 +923,9 @@ class EndpointsApiService {
|
|
911
923
|
});
|
912
924
|
}
|
913
925
|
}
|
914
|
-
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
915
|
-
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
917
929
|
type: Injectable
|
918
930
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
919
931
|
|
@@ -931,12 +943,166 @@ class FlowsApiService {
|
|
931
943
|
.pipe(map((flow) => ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : [])));
|
932
944
|
}
|
933
945
|
}
|
934
|
-
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
935
|
-
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
937
949
|
type: Injectable
|
938
950
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
939
951
|
|
952
|
+
class GuidedSellingsAdminApiService {
|
953
|
+
constructor(baseHttpService) {
|
954
|
+
this.baseHttpService = baseHttpService;
|
955
|
+
this.serviceUrl = '/guided-sellings';
|
956
|
+
this.fetchGuidedSellings$ = (searchParams) => {
|
957
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
958
|
+
return of([{ id: '1', name: 'test', description: 'test' }]);
|
959
|
+
// return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
960
|
+
};
|
961
|
+
this.searchGuidedSellings$ = (searchParams, expression) => {
|
962
|
+
return of([{ id: '1', name: 'test', description: 'test' }]);
|
963
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
964
|
+
return this.baseHttpService.api({
|
965
|
+
method: 'post',
|
966
|
+
url: `${this.serviceUrl}/search`,
|
967
|
+
params,
|
968
|
+
body: expression || {},
|
969
|
+
});
|
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
|
+
|
940
1106
|
class OrgInfoApiService {
|
941
1107
|
constructor(http) {
|
942
1108
|
var _a;
|
@@ -948,9 +1114,9 @@ class OrgInfoApiService {
|
|
948
1114
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
949
1115
|
}
|
950
1116
|
}
|
951
|
-
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
952
|
-
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
954
1120
|
type: Injectable
|
955
1121
|
}], ctorParameters: function () { return [{ type: i4.HttpClient }]; } });
|
956
1122
|
|
@@ -983,9 +1149,9 @@ class PicklistsApiService {
|
|
983
1149
|
};
|
984
1150
|
}
|
985
1151
|
}
|
986
|
-
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
987
|
-
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
989
1155
|
type: Injectable
|
990
1156
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
991
1157
|
|
@@ -1043,9 +1209,9 @@ class PriceApiService {
|
|
1043
1209
|
});
|
1044
1210
|
}
|
1045
1211
|
}
|
1046
|
-
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1047
|
-
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1049
1215
|
type: Injectable
|
1050
1216
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1051
1217
|
|
@@ -1130,9 +1296,9 @@ class ProceduresApiService {
|
|
1130
1296
|
});
|
1131
1297
|
}
|
1132
1298
|
}
|
1133
|
-
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1134
|
-
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1136
1302
|
type: Injectable
|
1137
1303
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1138
1304
|
|
@@ -1278,9 +1444,9 @@ class ProductApiService {
|
|
1278
1444
|
return `${this.serviceUrl}/${productId}/image`;
|
1279
1445
|
}
|
1280
1446
|
}
|
1281
|
-
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1282
|
-
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1284
1450
|
type: Injectable
|
1285
1451
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1286
1452
|
|
@@ -1504,9 +1670,9 @@ class ProductModelApiService {
|
|
1504
1670
|
}
|
1505
1671
|
}
|
1506
1672
|
ProductModelApiService.MAX_RESULTS = 200;
|
1507
|
-
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1508
|
-
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1510
1676
|
type: Injectable
|
1511
1677
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1512
1678
|
|
@@ -1549,9 +1715,9 @@ class QuoteApiService {
|
|
1549
1715
|
});
|
1550
1716
|
}
|
1551
1717
|
}
|
1552
|
-
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1553
|
-
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1555
1721
|
type: Injectable
|
1556
1722
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1557
1723
|
|
@@ -1567,9 +1733,9 @@ class RampApiService {
|
|
1567
1733
|
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/renew`, body: request }, options));
|
1568
1734
|
}
|
1569
1735
|
}
|
1570
|
-
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1571
|
-
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1573
1739
|
type: Injectable
|
1574
1740
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1575
1741
|
|
@@ -1623,9 +1789,9 @@ class RuleGroupsApiService {
|
|
1623
1789
|
};
|
1624
1790
|
}
|
1625
1791
|
}
|
1626
|
-
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1627
|
-
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1629
1795
|
type: Injectable
|
1630
1796
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1631
1797
|
|
@@ -1691,16 +1857,17 @@ class RulesApiService {
|
|
1691
1857
|
});
|
1692
1858
|
}
|
1693
1859
|
execute$(body) {
|
1860
|
+
const url = body.rule.ruleGroupType === RuleGroupTypes.eligibility ? '/rules/eligibility/execute' : '/rules/execute';
|
1694
1861
|
return this.baseHttpService.api({
|
1695
|
-
url
|
1862
|
+
url,
|
1696
1863
|
method: 'post',
|
1697
1864
|
body,
|
1698
1865
|
});
|
1699
1866
|
}
|
1700
1867
|
}
|
1701
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1702
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1704
1871
|
type: Injectable
|
1705
1872
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1706
1873
|
|
@@ -1770,9 +1937,9 @@ class ScriptsApiService {
|
|
1770
1937
|
};
|
1771
1938
|
}
|
1772
1939
|
}
|
1773
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1774
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1776
1943
|
type: Injectable
|
1777
1944
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1778
1945
|
|
@@ -1782,15 +1949,20 @@ class ShoppingCartSettingsApiService {
|
|
1782
1949
|
this.shoppingCartSettingsKey = 'shopping-cart';
|
1783
1950
|
}
|
1784
1951
|
getSetting(id) {
|
1785
|
-
return this.fetchSettings().pipe(map((
|
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)));
|
1786
1953
|
}
|
1787
1954
|
fetchSettings() {
|
1788
1955
|
return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
|
1789
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
|
+
}
|
1790
1962
|
}
|
1791
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
1792
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
1793
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
1794
1966
|
type: Injectable
|
1795
1967
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1796
1968
|
|
@@ -2076,17 +2248,17 @@ class UITemplatesApiService {
|
|
2076
2248
|
});
|
2077
2249
|
}
|
2078
2250
|
}
|
2079
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2080
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
2081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
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: [{
|
2082
2254
|
type: Injectable
|
2083
2255
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2084
2256
|
|
2085
2257
|
class ApiModule {
|
2086
2258
|
}
|
2087
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
2088
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
2089
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
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: [
|
2090
2262
|
BaseHttpService,
|
2091
2263
|
XrayService,
|
2092
2264
|
ConfigurationApiService,
|
@@ -2105,17 +2277,20 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
2105
2277
|
RulesApiService,
|
2106
2278
|
RuleGroupsApiService,
|
2107
2279
|
FlowsApiService,
|
2280
|
+
GuidedSellingsAdminApiService,
|
2108
2281
|
ShoppingCartSettingsApiService,
|
2109
2282
|
ProductApiService,
|
2110
2283
|
CatalogAdminApiService,
|
2284
|
+
GuidedSellingApiService,
|
2111
2285
|
CatalogApiService,
|
2112
2286
|
DeltaApiService,
|
2113
2287
|
AccountApiService,
|
2114
2288
|
PicklistsApiService,
|
2115
2289
|
EndpointsApiService,
|
2116
2290
|
OrgInfoApiService,
|
2291
|
+
OffersApiService,
|
2117
2292
|
], imports: [[HttpClientModule]] });
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ApiModule, decorators: [{
|
2119
2294
|
type: NgModule,
|
2120
2295
|
args: [{
|
2121
2296
|
imports: [HttpClientModule],
|
@@ -2138,15 +2313,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
2138
2313
|
RulesApiService,
|
2139
2314
|
RuleGroupsApiService,
|
2140
2315
|
FlowsApiService,
|
2316
|
+
GuidedSellingsAdminApiService,
|
2141
2317
|
ShoppingCartSettingsApiService,
|
2142
2318
|
ProductApiService,
|
2143
2319
|
CatalogAdminApiService,
|
2320
|
+
GuidedSellingApiService,
|
2144
2321
|
CatalogApiService,
|
2145
2322
|
DeltaApiService,
|
2146
2323
|
AccountApiService,
|
2147
2324
|
PicklistsApiService,
|
2148
2325
|
EndpointsApiService,
|
2149
2326
|
OrgInfoApiService,
|
2327
|
+
OffersApiService,
|
2150
2328
|
],
|
2151
2329
|
}]
|
2152
2330
|
}] });
|
@@ -2155,5 +2333,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
2155
2333
|
* Generated bundle index. Do not edit.
|
2156
2334
|
*/
|
2157
2335
|
|
2158
|
-
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, ShoppingCartSettingsApiService, 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 };
|
2159
2337
|
//# sourceMappingURL=veloceapps-api.js.map
|