@veloceapps/api 8.0.0-9 → 8.0.0-91
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/esm2020/index.mjs +8 -2
- package/esm2020/lib/api.module.mjs +24 -6
- package/esm2020/lib/services/account-api.service.mjs +3 -3
- package/esm2020/lib/services/auth.service.mjs +22 -0
- package/esm2020/lib/services/catalog-admin-api.service.mjs +3 -3
- package/esm2020/lib/services/catalog-api.service.mjs +3 -3
- package/esm2020/lib/services/configuration-api.service.mjs +27 -13
- package/esm2020/lib/services/configuration-processors-api.service.mjs +38 -0
- package/esm2020/lib/services/configuration-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/context-api.service.mjs +3 -3
- package/esm2020/lib/services/contracted-price-api.service.mjs +45 -0
- package/esm2020/lib/services/delta-api.service.mjs +3 -3
- package/esm2020/lib/services/document-attachment-api.service.mjs +3 -3
- package/esm2020/lib/services/document-templates-api.service.mjs +5 -5
- package/esm2020/lib/services/endpoints-api.service.mjs +3 -3
- package/esm2020/lib/services/flows-api.service.mjs +6 -7
- package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +3 -3
- package/esm2020/lib/services/guided-sellings-api.service.mjs +3 -3
- package/esm2020/lib/services/offers-api.service.mjs +3 -3
- package/esm2020/lib/services/org-info-api.service.mjs +3 -3
- package/esm2020/lib/services/picklists-api.service.mjs +3 -3
- package/esm2020/lib/services/portals-api.service.mjs +76 -0
- package/esm2020/lib/services/price-api.service.mjs +3 -3
- package/esm2020/lib/services/procedures-api.service.mjs +3 -3
- package/esm2020/lib/services/product-api.service.mjs +3 -3
- package/esm2020/lib/services/product-model-api.service.mjs +3 -3
- package/esm2020/lib/services/promotions-api.service.mjs +68 -0
- package/esm2020/lib/services/quote-api.service.mjs +3 -3
- package/esm2020/lib/services/ramp-api.service.mjs +3 -3
- package/esm2020/lib/services/rebate-program-api.service.mjs +20 -4
- package/esm2020/lib/services/rebate-type-api.service.mjs +68 -0
- package/esm2020/lib/services/rule-groups-api.service.mjs +3 -3
- package/esm2020/lib/services/rules-api.service.mjs +20 -7
- package/esm2020/lib/services/salesforce-api.service.mjs +6 -4
- package/esm2020/lib/services/scripts-api.service.mjs +3 -3
- package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/stateful-configuration-api.mjs +3 -3
- package/esm2020/lib/services/ui-definitions-api.service.mjs +3 -3
- package/esm2020/lib/services/ui-templates-api.service.mjs +3 -3
- package/esm2020/lib/services/veloce-objects-api.service.mjs +14 -4
- package/esm2020/lib/types/auth.types.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -1
- package/fesm2015/veloceapps-api.mjs +492 -143
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +497 -142
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +7 -1
- package/lib/services/auth.service.d.ts +11 -0
- package/lib/services/configuration-api.service.d.ts +5 -0
- package/lib/services/configuration-processors-api.service.d.ts +14 -0
- package/lib/services/contracted-price-api.service.d.ts +16 -0
- package/lib/services/portals-api.service.d.ts +20 -0
- package/lib/services/promotions-api.service.d.ts +19 -0
- package/lib/services/rebate-program-api.service.d.ts +4 -1
- package/lib/services/rebate-type-api.service.d.ts +19 -0
- package/lib/services/rules-api.service.d.ts +2 -1
- package/lib/services/salesforce-api.service.d.ts +1 -1
- package/lib/services/veloce-objects-api.service.d.ts +2 -1
- package/lib/types/auth.types.d.ts +4 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import * as
|
2
|
-
import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
1
|
+
import * as i1$1 from '@angular/common/http';
|
2
|
+
import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
5
5
|
import * as i1 from '@veloceapps/core';
|
6
|
-
import { uiDefinitionFromDTO,
|
6
|
+
import { uiDefinitionFromDTO, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, toLatestFlow, isDefined, Operator, ModelTranslatorUtils, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
7
|
import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
|
8
8
|
import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
|
9
9
|
import * as i2 from 'primeng/api';
|
@@ -82,12 +82,30 @@ class AccountApiService {
|
|
82
82
|
});
|
83
83
|
}
|
84
84
|
}
|
85
|
-
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
86
|
-
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
85
|
+
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
86
|
+
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
|
88
88
|
type: Injectable
|
89
89
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
90
90
|
|
91
|
+
class VeloceAuthService {
|
92
|
+
constructor(http) {
|
93
|
+
this.http = http;
|
94
|
+
}
|
95
|
+
auth$(instanceUrl, accessToken) {
|
96
|
+
const headers = new HttpHeaders({
|
97
|
+
'Content-Type': 'application/json',
|
98
|
+
Authorization: `Bearer ${accessToken}`,
|
99
|
+
});
|
100
|
+
return this.http.get(`${instanceUrl}/services/apexrest/VELOCPQ/veloce-auth`, { headers });
|
101
|
+
}
|
102
|
+
}
|
103
|
+
VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
104
|
+
VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
|
106
|
+
type: Injectable
|
107
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
108
|
+
|
91
109
|
class CatalogAdminApiService {
|
92
110
|
constructor(baseHttpService) {
|
93
111
|
this.baseHttpService = baseHttpService;
|
@@ -269,9 +287,9 @@ class CatalogAdminApiService {
|
|
269
287
|
}
|
270
288
|
}
|
271
289
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
272
|
-
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
273
|
-
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
290
|
+
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
291
|
+
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
|
275
293
|
type: Injectable
|
276
294
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
277
295
|
|
@@ -355,9 +373,9 @@ class CatalogApiService {
|
|
355
373
|
});
|
356
374
|
}
|
357
375
|
}
|
358
|
-
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
359
|
-
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
376
|
+
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
377
|
+
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
|
361
379
|
type: Injectable
|
362
380
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
363
381
|
|
@@ -386,6 +404,26 @@ class ConfigurationApiService {
|
|
386
404
|
}
|
387
405
|
}));
|
388
406
|
}
|
407
|
+
customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
|
408
|
+
return this.httpService
|
409
|
+
.api({
|
410
|
+
method: 'post',
|
411
|
+
url,
|
412
|
+
body: configurationRequest,
|
413
|
+
errorHandler: e => throwError(e),
|
414
|
+
})
|
415
|
+
.pipe(map(configurePrice => {
|
416
|
+
if (runtimeModel) {
|
417
|
+
return {
|
418
|
+
...configurePrice,
|
419
|
+
lineItem: this.updatePortDomains(configurePrice.lineItem, runtimeModel),
|
420
|
+
};
|
421
|
+
}
|
422
|
+
else {
|
423
|
+
return configurePrice;
|
424
|
+
}
|
425
|
+
}));
|
426
|
+
}
|
389
427
|
getRuntimeDataByProductId(productId, offeringId) {
|
390
428
|
return this.httpService
|
391
429
|
.api({
|
@@ -395,13 +433,7 @@ class ConfigurationApiService {
|
|
395
433
|
.pipe(map(runtimeData => {
|
396
434
|
return {
|
397
435
|
...runtimeData,
|
398
|
-
uiDefinitions: runtimeData.uiDefinitions.map(dto =>
|
399
|
-
const uiDefinitionContainer = uiDefinitionFromDTO(dto);
|
400
|
-
if (isLegacyUIDefinition(uiDefinitionContainer.source)) {
|
401
|
-
ModelTranslatorUtils.toLocalUIDefinition(uiDefinitionContainer.source);
|
402
|
-
}
|
403
|
-
return uiDefinitionContainer;
|
404
|
-
}),
|
436
|
+
uiDefinitions: runtimeData.uiDefinitions.map(dto => uiDefinitionFromDTO(dto)),
|
405
437
|
};
|
406
438
|
}));
|
407
439
|
}
|
@@ -416,7 +448,7 @@ class ConfigurationApiService {
|
|
416
448
|
const portDomains = { ...lineItem.portDomains };
|
417
449
|
for (const port of type?.ports ?? []) {
|
418
450
|
const portDomain = portDomains[port.name];
|
419
|
-
if (portDomain?.properties?.['domainComputation'] === '
|
451
|
+
if (portDomain?.properties?.['domainComputation'] === ('None')) {
|
420
452
|
portDomain.domainTypes = port.domainTypes;
|
421
453
|
}
|
422
454
|
}
|
@@ -427,9 +459,9 @@ class ConfigurationApiService {
|
|
427
459
|
};
|
428
460
|
}
|
429
461
|
}
|
430
|
-
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
431
|
-
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
462
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
463
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
433
465
|
type: Injectable
|
434
466
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
435
467
|
|
@@ -537,9 +569,9 @@ class ConfigurationSettingsApiService {
|
|
537
569
|
});
|
538
570
|
}
|
539
571
|
}
|
540
|
-
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
541
|
-
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
572
|
+
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, deps: [{ token: i1.BaseHttpService }, { token: i2.MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
|
573
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
543
575
|
type: Injectable
|
544
576
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
545
577
|
|
@@ -559,9 +591,50 @@ class ContextApiService {
|
|
559
591
|
});
|
560
592
|
}
|
561
593
|
}
|
562
|
-
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
563
|
-
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
594
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
595
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
597
|
+
type: Injectable
|
598
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
599
|
+
|
600
|
+
class ContractedPriceApiService {
|
601
|
+
constructor(baseHttpService) {
|
602
|
+
this.baseHttpService = baseHttpService;
|
603
|
+
this.serviceUrl = '/admin/contracted-price';
|
604
|
+
this.fetchContractedPrices$ = () => {
|
605
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
606
|
+
};
|
607
|
+
this.fetchContractedPrice$ = (id) => {
|
608
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
609
|
+
};
|
610
|
+
this.createContractedPrice$ = (data) => {
|
611
|
+
return this.baseHttpService.api({
|
612
|
+
url: `${this.serviceUrl}`,
|
613
|
+
method: 'put',
|
614
|
+
body: data,
|
615
|
+
});
|
616
|
+
};
|
617
|
+
this.updateContractedPrice$ = (data) => {
|
618
|
+
return this.baseHttpService.api({
|
619
|
+
url: `${this.serviceUrl}/${data.id}`,
|
620
|
+
method: 'put',
|
621
|
+
body: data,
|
622
|
+
});
|
623
|
+
};
|
624
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
625
|
+
const params = new HttpParams({ fromObject: { ...searchParams } });
|
626
|
+
return this.baseHttpService.api({
|
627
|
+
method: 'post',
|
628
|
+
url: `${this.serviceUrl}/search`,
|
629
|
+
params,
|
630
|
+
body: expression || {},
|
631
|
+
});
|
632
|
+
};
|
633
|
+
}
|
634
|
+
}
|
635
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
636
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
565
638
|
type: Injectable
|
566
639
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
640
|
|
@@ -579,9 +652,9 @@ class DeltaApiService {
|
|
579
652
|
});
|
580
653
|
}
|
581
654
|
}
|
582
|
-
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
583
|
-
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
655
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
656
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
658
|
type: Injectable
|
586
659
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
660
|
|
@@ -641,9 +714,9 @@ class DocumentAttachmentApiService {
|
|
641
714
|
});
|
642
715
|
}
|
643
716
|
}
|
644
|
-
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
645
|
-
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
717
|
+
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, deps: [{ token: i1.BaseHttpService }, { token: i1.FileDownloadService }], target: i0.ɵɵFactoryTarget.Injectable });
|
718
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
720
|
type: Injectable
|
648
721
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
722
|
|
@@ -698,6 +771,8 @@ class SalesforceApiService {
|
|
698
771
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
772
|
}
|
700
773
|
apexGetRequest(path, params, options) {
|
774
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
775
|
+
// const httpParams = new HttpParams({ fromString: params.toString() });
|
701
776
|
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params, ...options });
|
702
777
|
}
|
703
778
|
apexPostRequest(path, body, options) {
|
@@ -721,9 +796,9 @@ class SalesforceApiService {
|
|
721
796
|
});
|
722
797
|
}
|
723
798
|
}
|
724
|
-
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
725
|
-
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
799
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
800
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
802
|
type: Injectable
|
728
803
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
804
|
|
@@ -989,7 +1064,7 @@ class DocumentTemplatesApiService {
|
|
989
1064
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1065
|
let limit = 1;
|
991
1066
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1067
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1068
|
if (limitStr) {
|
994
1069
|
limit = Number.parseInt(limitStr, 10);
|
995
1070
|
}
|
@@ -1007,11 +1082,11 @@ class DocumentTemplatesApiService {
|
|
1007
1082
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1083
|
}
|
1009
1084
|
}
|
1010
|
-
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1011
|
-
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1085
|
+
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, deps: [{ token: i1.BaseHttpService }, { token: SalesforceApiService }, { token: i1.FileDownloadService }, { token: DocumentAttachmentApiService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
1086
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1088
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1089
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1090
|
|
1016
1091
|
class EndpointsApiService {
|
1017
1092
|
constructor(baseHttpService) {
|
@@ -1082,9 +1157,9 @@ class EndpointsApiService {
|
|
1082
1157
|
});
|
1083
1158
|
}
|
1084
1159
|
}
|
1085
|
-
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1086
|
-
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1160
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1161
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1088
1163
|
type: Injectable
|
1089
1164
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1165
|
|
@@ -1097,14 +1172,12 @@ class FlowsApiService {
|
|
1097
1172
|
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)));
|
1098
1173
|
}
|
1099
1174
|
fetchFlows() {
|
1100
|
-
return this.configurationSettingsApiService
|
1101
|
-
.fetchSetting(this.flowsKey)
|
1102
|
-
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1175
|
+
return this.configurationSettingsApiService.fetchSetting(this.flowsKey).pipe(map((setting) => (setting?.value ? JSON.parse(setting.value) : [])), map(anyFlows => anyFlows.map(toLatestFlow).filter(isDefined)));
|
1103
1176
|
}
|
1104
1177
|
}
|
1105
|
-
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1106
|
-
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1178
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1179
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1181
|
type: Injectable
|
1109
1182
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1183
|
|
@@ -1163,9 +1236,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1236
|
}
|
1164
1237
|
}
|
1165
1238
|
GuidedSellingsAdminApiService.MAX_RESULTS = 60;
|
1166
|
-
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1167
|
-
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1239
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1240
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1242
|
type: Injectable
|
1170
1243
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1244
|
|
@@ -1195,9 +1268,9 @@ class GuidedSellingApiService {
|
|
1195
1268
|
});
|
1196
1269
|
}
|
1197
1270
|
}
|
1198
|
-
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1199
|
-
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1271
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1272
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1274
|
type: Injectable
|
1202
1275
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1276
|
|
@@ -1266,9 +1339,9 @@ class OffersApiService {
|
|
1266
1339
|
}
|
1267
1340
|
}
|
1268
1341
|
OffersApiService.MAX_RESULTS = 60;
|
1269
|
-
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1270
|
-
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1342
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1343
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1345
|
type: Injectable
|
1273
1346
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1347
|
|
@@ -1282,11 +1355,11 @@ class OrgInfoApiService {
|
|
1282
1355
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1356
|
}
|
1284
1357
|
}
|
1285
|
-
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1286
|
-
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1358
|
+
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
1359
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1361
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1362
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1363
|
|
1291
1364
|
class PicklistsApiService {
|
1292
1365
|
constructor(baseHttpService) {
|
@@ -1320,9 +1393,9 @@ class PicklistsApiService {
|
|
1320
1393
|
};
|
1321
1394
|
}
|
1322
1395
|
}
|
1323
|
-
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1324
|
-
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1396
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1397
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1326
1399
|
type: Injectable
|
1327
1400
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1401
|
|
@@ -1380,9 +1453,9 @@ class PriceApiService {
|
|
1380
1453
|
});
|
1381
1454
|
}
|
1382
1455
|
}
|
1383
|
-
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1384
|
-
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1456
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1457
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1459
|
type: Injectable
|
1387
1460
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1461
|
|
@@ -1474,9 +1547,9 @@ class ProceduresApiService {
|
|
1474
1547
|
});
|
1475
1548
|
}
|
1476
1549
|
}
|
1477
|
-
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1478
|
-
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1550
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1551
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1553
|
type: Injectable
|
1481
1554
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1555
|
|
@@ -1622,9 +1695,9 @@ class ProductApiService {
|
|
1622
1695
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1696
|
}
|
1624
1697
|
}
|
1625
|
-
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1626
|
-
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1698
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1699
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1701
|
type: Injectable
|
1629
1702
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1703
|
|
@@ -1853,9 +1926,72 @@ class ProductModelApiService {
|
|
1853
1926
|
}
|
1854
1927
|
}
|
1855
1928
|
ProductModelApiService.MAX_RESULTS = 200;
|
1856
|
-
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1857
|
-
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1929
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1930
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1932
|
+
type: Injectable
|
1933
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1934
|
+
|
1935
|
+
class PromotionsApiService {
|
1936
|
+
constructor(baseHttpService) {
|
1937
|
+
this.baseHttpService = baseHttpService;
|
1938
|
+
this.serviceUrl = '/admin/promotion';
|
1939
|
+
this.fetchAll$ = () => {
|
1940
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1941
|
+
};
|
1942
|
+
this.fetchOne$ = (id) => {
|
1943
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1944
|
+
};
|
1945
|
+
this.remove$ = (id) => {
|
1946
|
+
return this.baseHttpService.api({
|
1947
|
+
url: `${this.serviceUrl}/${id}`,
|
1948
|
+
method: 'delete',
|
1949
|
+
});
|
1950
|
+
};
|
1951
|
+
this.restore$ = (id) => {
|
1952
|
+
return this.baseHttpService.api({
|
1953
|
+
method: 'patch',
|
1954
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1955
|
+
});
|
1956
|
+
};
|
1957
|
+
this.duplicate$ = (body) => {
|
1958
|
+
return this.baseHttpService
|
1959
|
+
.api({
|
1960
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1961
|
+
method: 'post',
|
1962
|
+
body,
|
1963
|
+
})
|
1964
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1965
|
+
};
|
1966
|
+
}
|
1967
|
+
search$(expression, skip, count) {
|
1968
|
+
let params = new HttpParams();
|
1969
|
+
if (typeof skip === 'number') {
|
1970
|
+
params = params.set('skip', '' + skip);
|
1971
|
+
}
|
1972
|
+
if (typeof count === 'number') {
|
1973
|
+
params = params.set('count', '' + count);
|
1974
|
+
}
|
1975
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1976
|
+
}
|
1977
|
+
create$(body) {
|
1978
|
+
return this.baseHttpService.api({
|
1979
|
+
url: `${this.serviceUrl}`,
|
1980
|
+
method: 'post',
|
1981
|
+
body,
|
1982
|
+
});
|
1983
|
+
}
|
1984
|
+
update$(body) {
|
1985
|
+
return this.baseHttpService.api({
|
1986
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1987
|
+
method: 'put',
|
1988
|
+
body,
|
1989
|
+
});
|
1990
|
+
}
|
1991
|
+
}
|
1992
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1993
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
1994
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1859
1995
|
type: Injectable
|
1860
1996
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
1997
|
|
@@ -1901,9 +2037,9 @@ class QuoteApiService {
|
|
1901
2037
|
});
|
1902
2038
|
}
|
1903
2039
|
}
|
1904
|
-
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1905
|
-
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2040
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2041
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
2043
|
type: Injectable
|
1908
2044
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
2045
|
|
@@ -1929,9 +2065,135 @@ class RampApiService {
|
|
1929
2065
|
});
|
1930
2066
|
}
|
1931
2067
|
}
|
1932
|
-
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1933
|
-
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2068
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2069
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2071
|
+
type: Injectable
|
2072
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2073
|
+
|
2074
|
+
class RebateProgramApiService {
|
2075
|
+
constructor(baseHttpService) {
|
2076
|
+
this.baseHttpService = baseHttpService;
|
2077
|
+
this.serviceUrl = '/admin/rebate-program';
|
2078
|
+
this.fetchAll$ = () => {
|
2079
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2080
|
+
};
|
2081
|
+
this.fetchOne$ = (id) => {
|
2082
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2083
|
+
};
|
2084
|
+
this.remove$ = (id) => {
|
2085
|
+
return this.baseHttpService.api({
|
2086
|
+
url: `${this.serviceUrl}/${id}`,
|
2087
|
+
method: 'delete',
|
2088
|
+
});
|
2089
|
+
};
|
2090
|
+
this.restore$ = (id) => {
|
2091
|
+
return this.baseHttpService.api({
|
2092
|
+
method: 'patch',
|
2093
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2094
|
+
});
|
2095
|
+
};
|
2096
|
+
this.duplicate$ = (body) => {
|
2097
|
+
return this.baseHttpService
|
2098
|
+
.api({
|
2099
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2100
|
+
method: 'post',
|
2101
|
+
body,
|
2102
|
+
})
|
2103
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2104
|
+
};
|
2105
|
+
}
|
2106
|
+
search$(expression, skip, count) {
|
2107
|
+
let params = new HttpParams();
|
2108
|
+
if (typeof skip === 'number') {
|
2109
|
+
params = params.set('skip', '' + skip);
|
2110
|
+
}
|
2111
|
+
if (typeof count === 'number') {
|
2112
|
+
params = params.set('count', '' + count);
|
2113
|
+
}
|
2114
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2115
|
+
}
|
2116
|
+
create$(body) {
|
2117
|
+
return this.baseHttpService.api({
|
2118
|
+
url: `${this.serviceUrl}`,
|
2119
|
+
method: 'post',
|
2120
|
+
body,
|
2121
|
+
});
|
2122
|
+
}
|
2123
|
+
update$(body) {
|
2124
|
+
return this.baseHttpService.api({
|
2125
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2126
|
+
method: 'put',
|
2127
|
+
body,
|
2128
|
+
});
|
2129
|
+
}
|
2130
|
+
}
|
2131
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2132
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2134
|
+
type: Injectable
|
2135
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2136
|
+
|
2137
|
+
class RebateTypeApiService {
|
2138
|
+
constructor(baseHttpService) {
|
2139
|
+
this.baseHttpService = baseHttpService;
|
2140
|
+
this.serviceUrl = '/admin/rebate-type';
|
2141
|
+
this.fetchAll$ = () => {
|
2142
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2143
|
+
};
|
2144
|
+
this.fetchOne$ = (id) => {
|
2145
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2146
|
+
};
|
2147
|
+
this.remove$ = (id) => {
|
2148
|
+
return this.baseHttpService.api({
|
2149
|
+
url: `${this.serviceUrl}/${id}`,
|
2150
|
+
method: 'delete',
|
2151
|
+
});
|
2152
|
+
};
|
2153
|
+
this.restore$ = (id) => {
|
2154
|
+
return this.baseHttpService.api({
|
2155
|
+
method: 'patch',
|
2156
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2157
|
+
});
|
2158
|
+
};
|
2159
|
+
this.duplicate$ = (body) => {
|
2160
|
+
return this.baseHttpService
|
2161
|
+
.api({
|
2162
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2163
|
+
method: 'post',
|
2164
|
+
body,
|
2165
|
+
})
|
2166
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2167
|
+
};
|
2168
|
+
}
|
2169
|
+
search$(expression, skip, count) {
|
2170
|
+
let params = new HttpParams();
|
2171
|
+
if (typeof skip === 'number') {
|
2172
|
+
params = params.set('skip', '' + skip);
|
2173
|
+
}
|
2174
|
+
if (typeof count === 'number') {
|
2175
|
+
params = params.set('count', '' + count);
|
2176
|
+
}
|
2177
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2178
|
+
}
|
2179
|
+
create$(body) {
|
2180
|
+
return this.baseHttpService.api({
|
2181
|
+
url: `${this.serviceUrl}`,
|
2182
|
+
method: 'post',
|
2183
|
+
body,
|
2184
|
+
});
|
2185
|
+
}
|
2186
|
+
update$(body) {
|
2187
|
+
return this.baseHttpService.api({
|
2188
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2189
|
+
method: 'put',
|
2190
|
+
body,
|
2191
|
+
});
|
2192
|
+
}
|
2193
|
+
}
|
2194
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2195
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2197
|
type: Injectable
|
1936
2198
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2199
|
|
@@ -1985,9 +2247,9 @@ class RuleGroupsApiService {
|
|
1985
2247
|
};
|
1986
2248
|
}
|
1987
2249
|
}
|
1988
|
-
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1989
|
-
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2250
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2251
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2253
|
type: Injectable
|
1992
2254
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2255
|
|
@@ -2000,8 +2262,12 @@ class RulesApiService {
|
|
2000
2262
|
};
|
2001
2263
|
this.searchRules$ = (expression, skip, count) => {
|
2002
2264
|
let params = new HttpParams();
|
2003
|
-
|
2004
|
-
|
2265
|
+
if (typeof skip === 'number') {
|
2266
|
+
params = params.set('skip', '' + skip);
|
2267
|
+
}
|
2268
|
+
if (typeof count === 'number') {
|
2269
|
+
params = params.set('count', '' + count);
|
2270
|
+
}
|
2005
2271
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2006
2272
|
};
|
2007
2273
|
this.createRule$ = (rule) => {
|
@@ -2053,17 +2319,26 @@ class RulesApiService {
|
|
2053
2319
|
});
|
2054
2320
|
}
|
2055
2321
|
execute$(body) {
|
2056
|
-
const url = body.rule.ruleGroupType
|
2322
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2057
2323
|
return this.baseHttpService.api({
|
2058
2324
|
url,
|
2059
2325
|
method: 'post',
|
2060
2326
|
body,
|
2061
2327
|
});
|
2062
2328
|
}
|
2329
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2330
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2331
|
+
return '/rules/eligibility/execute';
|
2332
|
+
}
|
2333
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2334
|
+
return '/rules/catalog/execute';
|
2335
|
+
}
|
2336
|
+
return '/rules/execute';
|
2337
|
+
}
|
2063
2338
|
}
|
2064
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2065
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2339
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2340
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2067
2342
|
type: Injectable
|
2068
2343
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2069
2344
|
|
@@ -2137,9 +2412,9 @@ class ScriptsApiService {
|
|
2137
2412
|
};
|
2138
2413
|
}
|
2139
2414
|
}
|
2140
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2141
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2415
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2416
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2143
2418
|
type: Injectable
|
2144
2419
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2145
2420
|
|
@@ -2160,9 +2435,9 @@ class ShoppingCartSettingsApiService {
|
|
2160
2435
|
}, {})));
|
2161
2436
|
}
|
2162
2437
|
}
|
2163
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2164
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2438
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2439
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2166
2441
|
type: Injectable
|
2167
2442
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2168
2443
|
|
@@ -2208,9 +2483,9 @@ class StatefulConfigurationApiService {
|
|
2208
2483
|
});
|
2209
2484
|
}
|
2210
2485
|
}
|
2211
|
-
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2212
|
-
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2486
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2487
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2214
2489
|
type: Injectable
|
2215
2490
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2216
2491
|
|
@@ -2277,9 +2552,9 @@ class UIDefinitionsApiService {
|
|
2277
2552
|
return `/models/${modelId}/uidefinitions`;
|
2278
2553
|
}
|
2279
2554
|
}
|
2280
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2281
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2555
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2556
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2283
2558
|
type: Injectable
|
2284
2559
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2285
2560
|
|
@@ -2565,9 +2840,9 @@ class UITemplatesApiService {
|
|
2565
2840
|
});
|
2566
2841
|
}
|
2567
2842
|
}
|
2568
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2569
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2843
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2844
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2571
2846
|
type: Injectable
|
2572
2847
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2573
2848
|
|
@@ -2603,6 +2878,15 @@ class VeloceObjectsApiService {
|
|
2603
2878
|
url: `${this.serviceUrl}/${id}`,
|
2604
2879
|
});
|
2605
2880
|
};
|
2881
|
+
this.duplicateObject$ = (body) => {
|
2882
|
+
return this.baseHttpService
|
2883
|
+
.api({
|
2884
|
+
method: 'post',
|
2885
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2886
|
+
body,
|
2887
|
+
})
|
2888
|
+
.pipe(map(response => response.clonedRecordId));
|
2889
|
+
};
|
2606
2890
|
this.restoreObject$ = (id) => {
|
2607
2891
|
return this.baseHttpService.api({
|
2608
2892
|
method: 'patch',
|
@@ -2641,65 +2925,124 @@ class VeloceObjectsApiService {
|
|
2641
2925
|
});
|
2642
2926
|
}
|
2643
2927
|
}
|
2644
|
-
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2645
|
-
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2928
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2929
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2647
2931
|
type: Injectable
|
2648
2932
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2649
2933
|
|
2650
|
-
class
|
2934
|
+
class PortalsApiService {
|
2651
2935
|
constructor(baseHttpService) {
|
2652
2936
|
this.baseHttpService = baseHttpService;
|
2653
|
-
this.serviceUrl = '/admin/
|
2654
|
-
this.
|
2655
|
-
|
2937
|
+
this.serviceUrl = '/admin/portal';
|
2938
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
2939
|
+
let params = new HttpParams();
|
2940
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
2941
|
+
params = params.append('skip', '0');
|
2942
|
+
params = params.append('name', name);
|
2943
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
2656
2944
|
};
|
2657
|
-
this.
|
2658
|
-
|
2945
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
2946
|
+
let params = new HttpParams();
|
2947
|
+
params = params.set('skip', '' + skip);
|
2948
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
2949
|
+
return this.baseHttpService.api({
|
2950
|
+
method: 'post',
|
2951
|
+
url: `${this.serviceUrl}/search`,
|
2952
|
+
params,
|
2953
|
+
body: expression || {},
|
2954
|
+
});
|
2659
2955
|
};
|
2660
|
-
this.
|
2956
|
+
this.removePortal$ = (id) => {
|
2661
2957
|
return this.baseHttpService.api({
|
2662
2958
|
url: `${this.serviceUrl}/${id}`,
|
2663
2959
|
method: 'delete',
|
2664
2960
|
});
|
2665
2961
|
};
|
2962
|
+
this.restore$ = (id) => {
|
2963
|
+
return this.baseHttpService.api({
|
2964
|
+
method: 'patch',
|
2965
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2966
|
+
});
|
2967
|
+
};
|
2968
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
2969
|
+
return this.baseHttpService.api({
|
2970
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
2971
|
+
method: 'post',
|
2972
|
+
body: cloneRequest,
|
2973
|
+
});
|
2974
|
+
};
|
2975
|
+
this.getPortal$ = (id) => {
|
2976
|
+
return this.baseHttpService.api({
|
2977
|
+
url: `${this.serviceUrl}/${id}`,
|
2978
|
+
});
|
2979
|
+
};
|
2666
2980
|
}
|
2667
|
-
|
2668
|
-
let params = new HttpParams();
|
2669
|
-
if (typeof skip === 'number') {
|
2670
|
-
params = params.set('skip', '' + skip);
|
2671
|
-
}
|
2672
|
-
if (typeof count === 'number') {
|
2673
|
-
params = params.set('count', '' + count);
|
2674
|
-
}
|
2675
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2676
|
-
}
|
2677
|
-
create$(body) {
|
2981
|
+
createNewPortal$(body) {
|
2678
2982
|
return this.baseHttpService.api({
|
2679
2983
|
url: `${this.serviceUrl}`,
|
2680
2984
|
method: 'post',
|
2681
2985
|
body,
|
2682
2986
|
});
|
2683
2987
|
}
|
2684
|
-
|
2988
|
+
updatePortal$(portal, settings) {
|
2685
2989
|
return this.baseHttpService.api({
|
2686
|
-
url: `${this.serviceUrl}/${
|
2990
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
2687
2991
|
method: 'put',
|
2688
|
-
body
|
2992
|
+
body: {
|
2993
|
+
...portal,
|
2994
|
+
settings: JSON.stringify(settings),
|
2995
|
+
},
|
2689
2996
|
});
|
2690
2997
|
}
|
2691
2998
|
}
|
2692
|
-
|
2693
|
-
|
2694
|
-
i0.ɵɵ
|
2999
|
+
PortalsApiService.MAX_RESULTS = 60;
|
3000
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3001
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
3002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
3003
|
+
type: Injectable
|
3004
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
3005
|
+
|
3006
|
+
class ConfigurationProcessorsApiService {
|
3007
|
+
constructor(baseHttpService) {
|
3008
|
+
this.baseHttpService = baseHttpService;
|
3009
|
+
this.serviceUrl = '/configuration/processors/owners';
|
3010
|
+
this.fetchConfigurationProcessors$ = (ownerId) => {
|
3011
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
|
3012
|
+
};
|
3013
|
+
this.createConfigurationProcessors$ = (configurationProcessor) => {
|
3014
|
+
return this.baseHttpService.api({
|
3015
|
+
method: 'post',
|
3016
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
|
3017
|
+
body: configurationProcessor,
|
3018
|
+
});
|
3019
|
+
};
|
3020
|
+
this.updateConfigurationProcessors$ = (configurationProcessor) => {
|
3021
|
+
return this.baseHttpService.api({
|
3022
|
+
method: 'put',
|
3023
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
3024
|
+
body: configurationProcessor,
|
3025
|
+
});
|
3026
|
+
};
|
3027
|
+
this.deleteConfigurationProcessors$ = (configurationProcessor) => {
|
3028
|
+
return this.baseHttpService.api({
|
3029
|
+
method: 'delete',
|
3030
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
3031
|
+
});
|
3032
|
+
};
|
3033
|
+
}
|
3034
|
+
}
|
3035
|
+
ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3036
|
+
ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
|
3037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
|
2695
3038
|
type: Injectable
|
2696
3039
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2697
3040
|
|
2698
3041
|
class ApiModule {
|
2699
3042
|
}
|
2700
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2701
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
2702
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
3043
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3044
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
3045
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2703
3046
|
BaseHttpService,
|
2704
3047
|
XrayService,
|
2705
3048
|
ConfigurationApiService,
|
@@ -2734,8 +3077,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2734
3077
|
VeloceObjectsApiService,
|
2735
3078
|
StatefulConfigurationApiService,
|
2736
3079
|
RebateProgramApiService,
|
3080
|
+
RebateTypeApiService,
|
3081
|
+
PromotionsApiService,
|
3082
|
+
VeloceAuthService,
|
3083
|
+
ContractedPriceApiService,
|
3084
|
+
PortalsApiService,
|
3085
|
+
ConfigurationProcessorsApiService,
|
2737
3086
|
], imports: [HttpClientModule] });
|
2738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2739
3088
|
type: NgModule,
|
2740
3089
|
args: [{
|
2741
3090
|
imports: [HttpClientModule],
|
@@ -2774,6 +3123,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2774
3123
|
VeloceObjectsApiService,
|
2775
3124
|
StatefulConfigurationApiService,
|
2776
3125
|
RebateProgramApiService,
|
3126
|
+
RebateTypeApiService,
|
3127
|
+
PromotionsApiService,
|
3128
|
+
VeloceAuthService,
|
3129
|
+
ContractedPriceApiService,
|
3130
|
+
PortalsApiService,
|
3131
|
+
ConfigurationProcessorsApiService,
|
2777
3132
|
],
|
2778
3133
|
}]
|
2779
3134
|
}] });
|
@@ -2782,5 +3137,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2782
3137
|
* Generated bundle index. Do not edit.
|
2783
3138
|
*/
|
2784
3139
|
|
2785
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RebateProgramApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
3140
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
|
2786
3141
|
//# sourceMappingURL=veloceapps-api.mjs.map
|