@veloceapps/api 8.0.0-13 → 8.0.0-131
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 +9 -4
- package/esm2020/lib/api.module.mjs +23 -8
- 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 +6 -6
- package/esm2020/lib/services/endpoints-api.service.mjs +3 -3
- package/esm2020/lib/services/flow-state-api.mjs +142 -0
- package/esm2020/lib/services/flows-api.service.mjs +12 -8
- 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 +3 -3
- 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 +4 -4
- package/esm2020/lib/services/rebate-type-api.service.mjs +3 -3
- package/esm2020/lib/services/rule-groups-api.service.mjs +3 -3
- package/esm2020/lib/services/rules-api.service.mjs +14 -5
- package/esm2020/lib/services/salesforce-api.service.mjs +7 -5
- 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 +4 -4
- package/esm2020/lib/services/ui-definitions-api.service.mjs +3 -3
- package/esm2020/lib/services/ui-templates-api.service.mjs +9 -4
- 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/esm2020/lib/types/stateful-configuration.types.mjs +1 -1
- package/fesm2015/veloceapps-api.mjs +692 -341
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +694 -337
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +8 -3
- 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/flow-state-api.d.ts +84 -0
- package/lib/services/flows-api.service.d.ts +1 -1
- package/lib/services/portals-api.service.d.ts +20 -0
- package/lib/services/rebate-program-api.service.d.ts +1 -1
- package/lib/services/rules-api.service.d.ts +1 -0
- package/lib/services/salesforce-api.service.d.ts +1 -1
- package/lib/services/stateful-configuration-api.d.ts +2 -2
- package/lib/services/ui-templates-api.service.d.ts +1 -0
- 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/lib/types/stateful-configuration.types.d.ts +1 -1
- 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,44 @@ 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: [{
|
465
|
+
type: Injectable
|
466
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
467
|
+
|
468
|
+
class ConfigurationProcessorsApiService {
|
469
|
+
constructor(baseHttpService) {
|
470
|
+
this.baseHttpService = baseHttpService;
|
471
|
+
this.serviceUrl = '/configuration/processors/owners';
|
472
|
+
this.fetchConfigurationProcessors$ = (ownerId) => {
|
473
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
|
474
|
+
};
|
475
|
+
this.createConfigurationProcessors$ = (configurationProcessor) => {
|
476
|
+
return this.baseHttpService.api({
|
477
|
+
method: 'post',
|
478
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
|
479
|
+
body: configurationProcessor,
|
480
|
+
});
|
481
|
+
};
|
482
|
+
this.updateConfigurationProcessors$ = (configurationProcessor) => {
|
483
|
+
return this.baseHttpService.api({
|
484
|
+
method: 'put',
|
485
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
486
|
+
body: configurationProcessor,
|
487
|
+
});
|
488
|
+
};
|
489
|
+
this.deleteConfigurationProcessors$ = (configurationProcessor) => {
|
490
|
+
return this.baseHttpService.api({
|
491
|
+
method: 'delete',
|
492
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
493
|
+
});
|
494
|
+
};
|
495
|
+
}
|
496
|
+
}
|
497
|
+
ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
498
|
+
ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
|
499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
|
433
500
|
type: Injectable
|
434
501
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
435
502
|
|
@@ -537,9 +604,9 @@ class ConfigurationSettingsApiService {
|
|
537
604
|
});
|
538
605
|
}
|
539
606
|
}
|
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.
|
607
|
+
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 });
|
608
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
543
610
|
type: Injectable
|
544
611
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
545
612
|
|
@@ -559,9 +626,50 @@ class ContextApiService {
|
|
559
626
|
});
|
560
627
|
}
|
561
628
|
}
|
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.
|
629
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
630
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
632
|
+
type: Injectable
|
633
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
634
|
+
|
635
|
+
class ContractedPriceApiService {
|
636
|
+
constructor(baseHttpService) {
|
637
|
+
this.baseHttpService = baseHttpService;
|
638
|
+
this.serviceUrl = '/admin/contracted-price';
|
639
|
+
this.fetchContractedPrices$ = () => {
|
640
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
641
|
+
};
|
642
|
+
this.fetchContractedPrice$ = (id) => {
|
643
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
644
|
+
};
|
645
|
+
this.createContractedPrice$ = (data) => {
|
646
|
+
return this.baseHttpService.api({
|
647
|
+
url: `${this.serviceUrl}`,
|
648
|
+
method: 'put',
|
649
|
+
body: data,
|
650
|
+
});
|
651
|
+
};
|
652
|
+
this.updateContractedPrice$ = (data) => {
|
653
|
+
return this.baseHttpService.api({
|
654
|
+
url: `${this.serviceUrl}/${data.id}`,
|
655
|
+
method: 'put',
|
656
|
+
body: data,
|
657
|
+
});
|
658
|
+
};
|
659
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
660
|
+
const params = new HttpParams({ fromObject: { ...searchParams } });
|
661
|
+
return this.baseHttpService.api({
|
662
|
+
method: 'post',
|
663
|
+
url: `${this.serviceUrl}/search`,
|
664
|
+
params,
|
665
|
+
body: expression || {},
|
666
|
+
});
|
667
|
+
};
|
668
|
+
}
|
669
|
+
}
|
670
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
671
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
565
673
|
type: Injectable
|
566
674
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
675
|
|
@@ -579,9 +687,9 @@ class DeltaApiService {
|
|
579
687
|
});
|
580
688
|
}
|
581
689
|
}
|
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.
|
690
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
691
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
693
|
type: Injectable
|
586
694
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
695
|
|
@@ -641,9 +749,9 @@ class DocumentAttachmentApiService {
|
|
641
749
|
});
|
642
750
|
}
|
643
751
|
}
|
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.
|
752
|
+
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 });
|
753
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
755
|
type: Injectable
|
648
756
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
757
|
|
@@ -698,7 +806,9 @@ class SalesforceApiService {
|
|
698
806
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
807
|
}
|
700
808
|
apexGetRequest(path, params, options) {
|
701
|
-
|
809
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
810
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
811
|
+
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
|
702
812
|
}
|
703
813
|
apexPostRequest(path, body, options) {
|
704
814
|
return this.httpService.api({
|
@@ -721,9 +831,9 @@ class SalesforceApiService {
|
|
721
831
|
});
|
722
832
|
}
|
723
833
|
}
|
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.
|
834
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
835
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
837
|
type: Injectable
|
728
838
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
839
|
|
@@ -736,7 +846,7 @@ class DocumentTemplatesApiService {
|
|
736
846
|
this.http = http;
|
737
847
|
this.DOCGEN_TAG = 'docgen';
|
738
848
|
this.SERVICE_URL = '/templates';
|
739
|
-
this.DOC_GEN_URL_FALLBACK =
|
849
|
+
this.DOC_GEN_URL_FALLBACK = `${window.VELO_API}/docgen`;
|
740
850
|
this.mapSfQueryResult = (limit) => map((records) => {
|
741
851
|
if (!records.length) {
|
742
852
|
return { _result: 'No Records Found' };
|
@@ -989,7 +1099,7 @@ class DocumentTemplatesApiService {
|
|
989
1099
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1100
|
let limit = 1;
|
991
1101
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1102
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1103
|
if (limitStr) {
|
994
1104
|
limit = Number.parseInt(limitStr, 10);
|
995
1105
|
}
|
@@ -1007,11 +1117,11 @@ class DocumentTemplatesApiService {
|
|
1007
1117
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1118
|
}
|
1009
1119
|
}
|
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.
|
1120
|
+
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 });
|
1121
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1123
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1124
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1125
|
|
1016
1126
|
class EndpointsApiService {
|
1017
1127
|
constructor(baseHttpService) {
|
@@ -1082,9 +1192,148 @@ class EndpointsApiService {
|
|
1082
1192
|
});
|
1083
1193
|
}
|
1084
1194
|
}
|
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.
|
1195
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1196
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1198
|
+
type: Injectable
|
1199
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1200
|
+
|
1201
|
+
class FlowStateApiService {
|
1202
|
+
constructor(httpService) {
|
1203
|
+
this.httpService = httpService;
|
1204
|
+
this.SERVICE_URL = '/configuration/states';
|
1205
|
+
}
|
1206
|
+
/**
|
1207
|
+
* Initialize flow state
|
1208
|
+
* @param request Request
|
1209
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1210
|
+
*/
|
1211
|
+
init(request) {
|
1212
|
+
return this.httpService.api({
|
1213
|
+
method: 'post',
|
1214
|
+
url: `${this.SERVICE_URL}/quote/start`,
|
1215
|
+
body: request,
|
1216
|
+
});
|
1217
|
+
}
|
1218
|
+
/**
|
1219
|
+
* Get existing state by ID
|
1220
|
+
* @param id ID
|
1221
|
+
* @returns Flow State
|
1222
|
+
*/
|
1223
|
+
get(id) {
|
1224
|
+
return this.httpService.api({
|
1225
|
+
url: `${this.SERVICE_URL}/${id}`,
|
1226
|
+
});
|
1227
|
+
}
|
1228
|
+
/**
|
1229
|
+
* Execute actions/selectors
|
1230
|
+
* @param id State ID
|
1231
|
+
* @param request Request
|
1232
|
+
* @returns Execute result
|
1233
|
+
*/
|
1234
|
+
execute(id, request) {
|
1235
|
+
return this.httpService.api({
|
1236
|
+
method: 'post',
|
1237
|
+
url: `${this.SERVICE_URL}/quote/${id}/execute`,
|
1238
|
+
body: request,
|
1239
|
+
});
|
1240
|
+
}
|
1241
|
+
/**
|
1242
|
+
* Save Quote in the state
|
1243
|
+
* @param id State ID
|
1244
|
+
*/
|
1245
|
+
save(id) {
|
1246
|
+
return this.httpService.api({
|
1247
|
+
method: 'post',
|
1248
|
+
url: `${this.SERVICE_URL}/quote/${id}/save`,
|
1249
|
+
});
|
1250
|
+
}
|
1251
|
+
/**
|
1252
|
+
* Submit Quote in the state
|
1253
|
+
* @param id State ID
|
1254
|
+
*/
|
1255
|
+
submit(id) {
|
1256
|
+
return this.httpService.api({
|
1257
|
+
method: 'post',
|
1258
|
+
url: `${this.SERVICE_URL}/quote/${id}/submit`,
|
1259
|
+
});
|
1260
|
+
}
|
1261
|
+
/**
|
1262
|
+
* Close Flow state
|
1263
|
+
* @param id State ID
|
1264
|
+
*/
|
1265
|
+
cancel(id) {
|
1266
|
+
return this.httpService.api({
|
1267
|
+
method: 'post',
|
1268
|
+
url: `${this.SERVICE_URL}/quote/${id}/cancel`,
|
1269
|
+
});
|
1270
|
+
}
|
1271
|
+
/**
|
1272
|
+
* Initialize stateful configuration
|
1273
|
+
* @param stateId string
|
1274
|
+
* @param request Request
|
1275
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1276
|
+
*/
|
1277
|
+
newConfiguration(stateId, request) {
|
1278
|
+
return this.httpService.api({
|
1279
|
+
method: 'post',
|
1280
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/new`,
|
1281
|
+
body: request,
|
1282
|
+
});
|
1283
|
+
}
|
1284
|
+
/**
|
1285
|
+
* Start stateful configuration
|
1286
|
+
* @param stateId string
|
1287
|
+
* @param request Request
|
1288
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1289
|
+
*/
|
1290
|
+
startConfiguration(stateId, request) {
|
1291
|
+
return this.httpService.api({
|
1292
|
+
method: 'post',
|
1293
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/start`,
|
1294
|
+
body: request,
|
1295
|
+
});
|
1296
|
+
}
|
1297
|
+
/**
|
1298
|
+
* Execute stateful configuration
|
1299
|
+
* @param stateId string
|
1300
|
+
* @param configurationId string
|
1301
|
+
* @param request Request
|
1302
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1303
|
+
*/
|
1304
|
+
executeConfiguration(stateId, configurationId, request) {
|
1305
|
+
return this.httpService.api({
|
1306
|
+
method: 'post',
|
1307
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/execute`,
|
1308
|
+
body: request,
|
1309
|
+
});
|
1310
|
+
}
|
1311
|
+
/**
|
1312
|
+
* Save stateful configuration
|
1313
|
+
* @param stateId string
|
1314
|
+
* @param configurationId string
|
1315
|
+
*/
|
1316
|
+
saveConfiguration(stateId, configurationId) {
|
1317
|
+
return this.httpService.api({
|
1318
|
+
method: 'post',
|
1319
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/save`,
|
1320
|
+
});
|
1321
|
+
}
|
1322
|
+
/**
|
1323
|
+
* Cancel stateful configuration
|
1324
|
+
* @param stateId string
|
1325
|
+
* @param configurationId string
|
1326
|
+
*/
|
1327
|
+
cancelConfiguration(stateId, configurationId) {
|
1328
|
+
return this.httpService.api({
|
1329
|
+
method: 'post',
|
1330
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/cancel`,
|
1331
|
+
});
|
1332
|
+
}
|
1333
|
+
}
|
1334
|
+
FlowStateApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1335
|
+
FlowStateApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService });
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, decorators: [{
|
1088
1337
|
type: Injectable
|
1089
1338
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1339
|
|
@@ -1094,17 +1343,20 @@ class FlowsApiService {
|
|
1094
1343
|
this.flowsKey = 'flows';
|
1095
1344
|
}
|
1096
1345
|
getFlow(id) {
|
1097
|
-
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id))
|
1346
|
+
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
|
1347
|
+
if (!flow) {
|
1348
|
+
throw new Error(`Flow with flowId=${id} is not defined`);
|
1349
|
+
}
|
1350
|
+
return flow;
|
1351
|
+
}));
|
1098
1352
|
}
|
1099
1353
|
fetchFlows() {
|
1100
|
-
return this.configurationSettingsApiService
|
1101
|
-
.fetchSetting(this.flowsKey)
|
1102
|
-
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1354
|
+
return this.configurationSettingsApiService.fetchSetting(this.flowsKey).pipe(map((setting) => (setting?.value ? JSON.parse(setting.value) : [])), map(anyFlows => anyFlows.map(toLatestFlow).filter(isDefined)));
|
1103
1355
|
}
|
1104
1356
|
}
|
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.
|
1357
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1358
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1360
|
type: Injectable
|
1109
1361
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1362
|
|
@@ -1163,9 +1415,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1415
|
}
|
1164
1416
|
}
|
1165
1417
|
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.
|
1418
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1419
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1421
|
type: Injectable
|
1170
1422
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1423
|
|
@@ -1195,9 +1447,9 @@ class GuidedSellingApiService {
|
|
1195
1447
|
});
|
1196
1448
|
}
|
1197
1449
|
}
|
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.
|
1450
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1451
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1453
|
type: Injectable
|
1202
1454
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1455
|
|
@@ -1266,9 +1518,9 @@ class OffersApiService {
|
|
1266
1518
|
}
|
1267
1519
|
}
|
1268
1520
|
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.
|
1521
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1522
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1524
|
type: Injectable
|
1273
1525
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1526
|
|
@@ -1282,11 +1534,11 @@ class OrgInfoApiService {
|
|
1282
1534
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1535
|
}
|
1284
1536
|
}
|
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.
|
1537
|
+
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 });
|
1538
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1540
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1541
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1542
|
|
1291
1543
|
class PicklistsApiService {
|
1292
1544
|
constructor(baseHttpService) {
|
@@ -1320,9 +1572,81 @@ class PicklistsApiService {
|
|
1320
1572
|
};
|
1321
1573
|
}
|
1322
1574
|
}
|
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.
|
1575
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1576
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1578
|
+
type: Injectable
|
1579
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1580
|
+
|
1581
|
+
class PortalsApiService {
|
1582
|
+
constructor(baseHttpService) {
|
1583
|
+
this.baseHttpService = baseHttpService;
|
1584
|
+
this.serviceUrl = '/admin/portal';
|
1585
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
1586
|
+
let params = new HttpParams();
|
1587
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
1588
|
+
params = params.append('skip', '0');
|
1589
|
+
params = params.append('name', name);
|
1590
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
1591
|
+
};
|
1592
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
1593
|
+
let params = new HttpParams();
|
1594
|
+
params = params.set('skip', '' + skip);
|
1595
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
1596
|
+
return this.baseHttpService.api({
|
1597
|
+
method: 'post',
|
1598
|
+
url: `${this.serviceUrl}/search`,
|
1599
|
+
params,
|
1600
|
+
body: expression || {},
|
1601
|
+
});
|
1602
|
+
};
|
1603
|
+
this.removePortal$ = (id) => {
|
1604
|
+
return this.baseHttpService.api({
|
1605
|
+
url: `${this.serviceUrl}/${id}`,
|
1606
|
+
method: 'delete',
|
1607
|
+
});
|
1608
|
+
};
|
1609
|
+
this.restore$ = (id) => {
|
1610
|
+
return this.baseHttpService.api({
|
1611
|
+
method: 'patch',
|
1612
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1613
|
+
});
|
1614
|
+
};
|
1615
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
1616
|
+
return this.baseHttpService.api({
|
1617
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
1618
|
+
method: 'post',
|
1619
|
+
body: cloneRequest,
|
1620
|
+
});
|
1621
|
+
};
|
1622
|
+
this.getPortal$ = (id) => {
|
1623
|
+
return this.baseHttpService.api({
|
1624
|
+
url: `${this.serviceUrl}/${id}`,
|
1625
|
+
});
|
1626
|
+
};
|
1627
|
+
}
|
1628
|
+
createNewPortal$(body) {
|
1629
|
+
return this.baseHttpService.api({
|
1630
|
+
url: `${this.serviceUrl}`,
|
1631
|
+
method: 'post',
|
1632
|
+
body,
|
1633
|
+
});
|
1634
|
+
}
|
1635
|
+
updatePortal$(portal, settings) {
|
1636
|
+
return this.baseHttpService.api({
|
1637
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
1638
|
+
method: 'put',
|
1639
|
+
body: {
|
1640
|
+
...portal,
|
1641
|
+
settings: JSON.stringify(settings),
|
1642
|
+
},
|
1643
|
+
});
|
1644
|
+
}
|
1645
|
+
}
|
1646
|
+
PortalsApiService.MAX_RESULTS = 60;
|
1647
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1648
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
1649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
1326
1650
|
type: Injectable
|
1327
1651
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1652
|
|
@@ -1380,9 +1704,9 @@ class PriceApiService {
|
|
1380
1704
|
});
|
1381
1705
|
}
|
1382
1706
|
}
|
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.
|
1707
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1708
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1710
|
type: Injectable
|
1387
1711
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1712
|
|
@@ -1474,9 +1798,9 @@ class ProceduresApiService {
|
|
1474
1798
|
});
|
1475
1799
|
}
|
1476
1800
|
}
|
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.
|
1801
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1802
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1804
|
type: Injectable
|
1481
1805
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1806
|
|
@@ -1622,9 +1946,9 @@ class ProductApiService {
|
|
1622
1946
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1947
|
}
|
1624
1948
|
}
|
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.
|
1949
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1950
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1952
|
type: Injectable
|
1629
1953
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1954
|
|
@@ -1853,41 +2177,104 @@ class ProductModelApiService {
|
|
1853
2177
|
}
|
1854
2178
|
}
|
1855
2179
|
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.
|
2180
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2181
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
2182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1859
2183
|
type: Injectable
|
1860
2184
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
2185
|
|
1862
|
-
class
|
1863
|
-
constructor(
|
1864
|
-
this.
|
1865
|
-
this.
|
1866
|
-
|
1867
|
-
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
2186
|
+
class PromotionsApiService {
|
2187
|
+
constructor(baseHttpService) {
|
2188
|
+
this.baseHttpService = baseHttpService;
|
2189
|
+
this.serviceUrl = '/admin/promotion';
|
2190
|
+
this.fetchAll$ = () => {
|
2191
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2192
|
+
};
|
2193
|
+
this.fetchOne$ = (id) => {
|
2194
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2195
|
+
};
|
2196
|
+
this.remove$ = (id) => {
|
2197
|
+
return this.baseHttpService.api({
|
2198
|
+
url: `${this.serviceUrl}/${id}`,
|
2199
|
+
method: 'delete',
|
2200
|
+
});
|
2201
|
+
};
|
2202
|
+
this.restore$ = (id) => {
|
2203
|
+
return this.baseHttpService.api({
|
2204
|
+
method: 'patch',
|
2205
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2206
|
+
});
|
2207
|
+
};
|
2208
|
+
this.duplicate$ = (body) => {
|
2209
|
+
return this.baseHttpService
|
2210
|
+
.api({
|
2211
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2212
|
+
method: 'post',
|
2213
|
+
body,
|
2214
|
+
})
|
2215
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2216
|
+
};
|
2217
|
+
}
|
2218
|
+
search$(expression, skip, count) {
|
2219
|
+
let params = new HttpParams();
|
2220
|
+
if (typeof skip === 'number') {
|
2221
|
+
params = params.set('skip', '' + skip);
|
2222
|
+
}
|
2223
|
+
if (typeof count === 'number') {
|
2224
|
+
params = params.set('count', '' + count);
|
2225
|
+
}
|
2226
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2227
|
+
}
|
2228
|
+
create$(body) {
|
2229
|
+
return this.baseHttpService.api({
|
2230
|
+
url: `${this.serviceUrl}`,
|
2231
|
+
method: 'post',
|
2232
|
+
body,
|
2233
|
+
});
|
2234
|
+
}
|
2235
|
+
update$(body) {
|
2236
|
+
return this.baseHttpService.api({
|
2237
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2238
|
+
method: 'put',
|
2239
|
+
body,
|
2240
|
+
});
|
2241
|
+
}
|
2242
|
+
}
|
2243
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2244
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
2245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
2246
|
+
type: Injectable
|
2247
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2248
|
+
|
2249
|
+
class QuoteApiService {
|
2250
|
+
constructor(httpService) {
|
2251
|
+
this.httpService = httpService;
|
2252
|
+
this.SERVICE_URL = '/quotes';
|
2253
|
+
}
|
2254
|
+
// request quoteId | accountId | opportunityId | orderId
|
2255
|
+
getQuoteDraft(objectId, params, errorHandler) {
|
2256
|
+
return this.httpService.api({
|
2257
|
+
method: 'get',
|
2258
|
+
url: `${this.SERVICE_URL}/${objectId}`,
|
2259
|
+
params,
|
2260
|
+
errorHandler,
|
2261
|
+
});
|
2262
|
+
}
|
2263
|
+
upsertQuote(request, options) {
|
2264
|
+
return this.httpService.api({
|
2265
|
+
method: 'post',
|
2266
|
+
url: `${this.SERVICE_URL}`,
|
2267
|
+
body: request,
|
2268
|
+
...options,
|
2269
|
+
});
|
2270
|
+
}
|
2271
|
+
submitQuote(request, options) {
|
2272
|
+
return this.httpService.api({
|
2273
|
+
method: 'post',
|
2274
|
+
url: `${this.SERVICE_URL}/submit`,
|
2275
|
+
body: request,
|
2276
|
+
...options,
|
2277
|
+
});
|
1891
2278
|
}
|
1892
2279
|
attachDocument(id, documentName, data) {
|
1893
2280
|
const formData = new FormData();
|
@@ -1901,9 +2288,9 @@ class QuoteApiService {
|
|
1901
2288
|
});
|
1902
2289
|
}
|
1903
2290
|
}
|
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.
|
2291
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2292
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
2294
|
type: Injectable
|
1908
2295
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
2296
|
|
@@ -1929,9 +2316,135 @@ class RampApiService {
|
|
1929
2316
|
});
|
1930
2317
|
}
|
1931
2318
|
}
|
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.
|
2319
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2320
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2322
|
+
type: Injectable
|
2323
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2324
|
+
|
2325
|
+
class RebateProgramApiService {
|
2326
|
+
constructor(baseHttpService) {
|
2327
|
+
this.baseHttpService = baseHttpService;
|
2328
|
+
this.serviceUrl = '/admin/rebate-program';
|
2329
|
+
this.fetchAll$ = () => {
|
2330
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2331
|
+
};
|
2332
|
+
this.fetchOne$ = (id) => {
|
2333
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2334
|
+
};
|
2335
|
+
this.remove$ = (id) => {
|
2336
|
+
return this.baseHttpService.api({
|
2337
|
+
url: `${this.serviceUrl}/${id}`,
|
2338
|
+
method: 'delete',
|
2339
|
+
});
|
2340
|
+
};
|
2341
|
+
this.restore$ = (id) => {
|
2342
|
+
return this.baseHttpService.api({
|
2343
|
+
method: 'patch',
|
2344
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2345
|
+
});
|
2346
|
+
};
|
2347
|
+
this.duplicate$ = (body) => {
|
2348
|
+
return this.baseHttpService
|
2349
|
+
.api({
|
2350
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2351
|
+
method: 'post',
|
2352
|
+
body,
|
2353
|
+
})
|
2354
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2355
|
+
};
|
2356
|
+
}
|
2357
|
+
search$(expression, skip, count) {
|
2358
|
+
let params = new HttpParams();
|
2359
|
+
if (typeof skip === 'number') {
|
2360
|
+
params = params.set('skip', '' + skip);
|
2361
|
+
}
|
2362
|
+
if (typeof count === 'number') {
|
2363
|
+
params = params.set('count', '' + count);
|
2364
|
+
}
|
2365
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2366
|
+
}
|
2367
|
+
create$(body) {
|
2368
|
+
return this.baseHttpService.api({
|
2369
|
+
url: `${this.serviceUrl}`,
|
2370
|
+
method: 'post',
|
2371
|
+
body,
|
2372
|
+
});
|
2373
|
+
}
|
2374
|
+
update$(body) {
|
2375
|
+
return this.baseHttpService.api({
|
2376
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2377
|
+
method: 'put',
|
2378
|
+
body,
|
2379
|
+
});
|
2380
|
+
}
|
2381
|
+
}
|
2382
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2383
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2385
|
+
type: Injectable
|
2386
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2387
|
+
|
2388
|
+
class RebateTypeApiService {
|
2389
|
+
constructor(baseHttpService) {
|
2390
|
+
this.baseHttpService = baseHttpService;
|
2391
|
+
this.serviceUrl = '/admin/rebate-type';
|
2392
|
+
this.fetchAll$ = () => {
|
2393
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2394
|
+
};
|
2395
|
+
this.fetchOne$ = (id) => {
|
2396
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2397
|
+
};
|
2398
|
+
this.remove$ = (id) => {
|
2399
|
+
return this.baseHttpService.api({
|
2400
|
+
url: `${this.serviceUrl}/${id}`,
|
2401
|
+
method: 'delete',
|
2402
|
+
});
|
2403
|
+
};
|
2404
|
+
this.restore$ = (id) => {
|
2405
|
+
return this.baseHttpService.api({
|
2406
|
+
method: 'patch',
|
2407
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2408
|
+
});
|
2409
|
+
};
|
2410
|
+
this.duplicate$ = (body) => {
|
2411
|
+
return this.baseHttpService
|
2412
|
+
.api({
|
2413
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2414
|
+
method: 'post',
|
2415
|
+
body,
|
2416
|
+
})
|
2417
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2418
|
+
};
|
2419
|
+
}
|
2420
|
+
search$(expression, skip, count) {
|
2421
|
+
let params = new HttpParams();
|
2422
|
+
if (typeof skip === 'number') {
|
2423
|
+
params = params.set('skip', '' + skip);
|
2424
|
+
}
|
2425
|
+
if (typeof count === 'number') {
|
2426
|
+
params = params.set('count', '' + count);
|
2427
|
+
}
|
2428
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2429
|
+
}
|
2430
|
+
create$(body) {
|
2431
|
+
return this.baseHttpService.api({
|
2432
|
+
url: `${this.serviceUrl}`,
|
2433
|
+
method: 'post',
|
2434
|
+
body,
|
2435
|
+
});
|
2436
|
+
}
|
2437
|
+
update$(body) {
|
2438
|
+
return this.baseHttpService.api({
|
2439
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2440
|
+
method: 'put',
|
2441
|
+
body,
|
2442
|
+
});
|
2443
|
+
}
|
2444
|
+
}
|
2445
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2446
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2448
|
type: Injectable
|
1936
2449
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2450
|
|
@@ -1985,9 +2498,9 @@ class RuleGroupsApiService {
|
|
1985
2498
|
};
|
1986
2499
|
}
|
1987
2500
|
}
|
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.
|
2501
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2502
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2504
|
type: Injectable
|
1992
2505
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2506
|
|
@@ -2057,17 +2570,26 @@ class RulesApiService {
|
|
2057
2570
|
});
|
2058
2571
|
}
|
2059
2572
|
execute$(body) {
|
2060
|
-
const url = body.rule.ruleGroupType
|
2573
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2061
2574
|
return this.baseHttpService.api({
|
2062
2575
|
url,
|
2063
2576
|
method: 'post',
|
2064
2577
|
body,
|
2065
2578
|
});
|
2066
2579
|
}
|
2580
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2581
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2582
|
+
return '/rules/eligibility/execute';
|
2583
|
+
}
|
2584
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2585
|
+
return '/rules/catalog/execute';
|
2586
|
+
}
|
2587
|
+
return '/rules/execute';
|
2588
|
+
}
|
2067
2589
|
}
|
2068
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2069
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2070
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2590
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2591
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2071
2593
|
type: Injectable
|
2072
2594
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2073
2595
|
|
@@ -2141,9 +2663,9 @@ class ScriptsApiService {
|
|
2141
2663
|
};
|
2142
2664
|
}
|
2143
2665
|
}
|
2144
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2145
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2666
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2667
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2147
2669
|
type: Injectable
|
2148
2670
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2149
2671
|
|
@@ -2164,9 +2686,9 @@ class ShoppingCartSettingsApiService {
|
|
2164
2686
|
}, {})));
|
2165
2687
|
}
|
2166
2688
|
}
|
2167
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2168
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2689
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2690
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2170
2692
|
type: Injectable
|
2171
2693
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2172
2694
|
|
@@ -2212,9 +2734,9 @@ class StatefulConfigurationApiService {
|
|
2212
2734
|
});
|
2213
2735
|
}
|
2214
2736
|
}
|
2215
|
-
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2216
|
-
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2737
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2738
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2218
2740
|
type: Injectable
|
2219
2741
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2220
2742
|
|
@@ -2281,9 +2803,9 @@ class UIDefinitionsApiService {
|
|
2281
2803
|
return `/models/${modelId}/uidefinitions`;
|
2282
2804
|
}
|
2283
2805
|
}
|
2284
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2285
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2806
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2807
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2287
2809
|
type: Injectable
|
2288
2810
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2289
2811
|
|
@@ -2519,6 +3041,11 @@ class UITemplatesApiService {
|
|
2519
3041
|
this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
|
2520
3042
|
]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
|
2521
3043
|
};
|
3044
|
+
this.fetchComponentsAttachments$ = (templateId) => {
|
3045
|
+
return this.fetchComponents$(templateId).pipe(switchMap$1(components => {
|
3046
|
+
return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
|
3047
|
+
}));
|
3048
|
+
};
|
2522
3049
|
this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
|
2523
3050
|
return this.baseHttpService
|
2524
3051
|
.api({
|
@@ -2569,9 +3096,9 @@ class UITemplatesApiService {
|
|
2569
3096
|
});
|
2570
3097
|
}
|
2571
3098
|
}
|
2572
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2573
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3099
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3100
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
3101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2575
3102
|
type: Injectable
|
2576
3103
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2577
3104
|
|
@@ -2607,6 +3134,15 @@ class VeloceObjectsApiService {
|
|
2607
3134
|
url: `${this.serviceUrl}/${id}`,
|
2608
3135
|
});
|
2609
3136
|
};
|
3137
|
+
this.duplicateObject$ = (body) => {
|
3138
|
+
return this.baseHttpService
|
3139
|
+
.api({
|
3140
|
+
method: 'post',
|
3141
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
3142
|
+
body,
|
3143
|
+
})
|
3144
|
+
.pipe(map(response => response.clonedRecordId));
|
3145
|
+
};
|
2610
3146
|
this.restoreObject$ = (id) => {
|
2611
3147
|
return this.baseHttpService.api({
|
2612
3148
|
method: 'patch',
|
@@ -2645,206 +3181,17 @@ class VeloceObjectsApiService {
|
|
2645
3181
|
});
|
2646
3182
|
}
|
2647
3183
|
}
|
2648
|
-
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2649
|
-
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2651
|
-
type: Injectable
|
2652
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2653
|
-
|
2654
|
-
class RebateProgramApiService {
|
2655
|
-
constructor(baseHttpService) {
|
2656
|
-
this.baseHttpService = baseHttpService;
|
2657
|
-
this.serviceUrl = '/admin/rebate-program';
|
2658
|
-
this.fetchAll$ = () => {
|
2659
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2660
|
-
};
|
2661
|
-
this.fetchOne$ = (id) => {
|
2662
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2663
|
-
};
|
2664
|
-
this.remove$ = (id) => {
|
2665
|
-
return this.baseHttpService.api({
|
2666
|
-
url: `${this.serviceUrl}/${id}`,
|
2667
|
-
method: 'delete',
|
2668
|
-
});
|
2669
|
-
};
|
2670
|
-
this.restore$ = (id) => {
|
2671
|
-
return this.baseHttpService.api({
|
2672
|
-
method: 'patch',
|
2673
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2674
|
-
});
|
2675
|
-
};
|
2676
|
-
this.duplicate$ = (body) => {
|
2677
|
-
return this.baseHttpService
|
2678
|
-
.api({
|
2679
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2680
|
-
method: 'post',
|
2681
|
-
body,
|
2682
|
-
})
|
2683
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2684
|
-
};
|
2685
|
-
}
|
2686
|
-
search$(expression, skip, count) {
|
2687
|
-
let params = new HttpParams();
|
2688
|
-
if (typeof skip === 'number') {
|
2689
|
-
params = params.set('skip', '' + skip);
|
2690
|
-
}
|
2691
|
-
if (typeof count === 'number') {
|
2692
|
-
params = params.set('count', '' + count);
|
2693
|
-
}
|
2694
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2695
|
-
}
|
2696
|
-
create$(body) {
|
2697
|
-
return this.baseHttpService.api({
|
2698
|
-
url: `${this.serviceUrl}`,
|
2699
|
-
method: 'post',
|
2700
|
-
body,
|
2701
|
-
});
|
2702
|
-
}
|
2703
|
-
update$(body) {
|
2704
|
-
return this.baseHttpService.api({
|
2705
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2706
|
-
method: 'put',
|
2707
|
-
body,
|
2708
|
-
});
|
2709
|
-
}
|
2710
|
-
}
|
2711
|
-
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2712
|
-
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService });
|
2713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2714
|
-
type: Injectable
|
2715
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2716
|
-
|
2717
|
-
class RebateTypeApiService {
|
2718
|
-
constructor(baseHttpService) {
|
2719
|
-
this.baseHttpService = baseHttpService;
|
2720
|
-
this.serviceUrl = '/admin/rebate-type';
|
2721
|
-
this.fetchAll$ = () => {
|
2722
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2723
|
-
};
|
2724
|
-
this.fetchOne$ = (id) => {
|
2725
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2726
|
-
};
|
2727
|
-
this.remove$ = (id) => {
|
2728
|
-
return this.baseHttpService.api({
|
2729
|
-
url: `${this.serviceUrl}/${id}`,
|
2730
|
-
method: 'delete',
|
2731
|
-
});
|
2732
|
-
};
|
2733
|
-
this.restore$ = (id) => {
|
2734
|
-
return this.baseHttpService.api({
|
2735
|
-
method: 'patch',
|
2736
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2737
|
-
});
|
2738
|
-
};
|
2739
|
-
this.duplicate$ = (body) => {
|
2740
|
-
return this.baseHttpService
|
2741
|
-
.api({
|
2742
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2743
|
-
method: 'post',
|
2744
|
-
body,
|
2745
|
-
})
|
2746
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2747
|
-
};
|
2748
|
-
}
|
2749
|
-
search$(expression, skip, count) {
|
2750
|
-
let params = new HttpParams();
|
2751
|
-
if (typeof skip === 'number') {
|
2752
|
-
params = params.set('skip', '' + skip);
|
2753
|
-
}
|
2754
|
-
if (typeof count === 'number') {
|
2755
|
-
params = params.set('count', '' + count);
|
2756
|
-
}
|
2757
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2758
|
-
}
|
2759
|
-
create$(body) {
|
2760
|
-
return this.baseHttpService.api({
|
2761
|
-
url: `${this.serviceUrl}`,
|
2762
|
-
method: 'post',
|
2763
|
-
body,
|
2764
|
-
});
|
2765
|
-
}
|
2766
|
-
update$(body) {
|
2767
|
-
return this.baseHttpService.api({
|
2768
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2769
|
-
method: 'put',
|
2770
|
-
body,
|
2771
|
-
});
|
2772
|
-
}
|
2773
|
-
}
|
2774
|
-
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2775
|
-
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService });
|
2776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
2777
|
-
type: Injectable
|
2778
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2779
|
-
|
2780
|
-
class PromotionsApiService {
|
2781
|
-
constructor(baseHttpService) {
|
2782
|
-
this.baseHttpService = baseHttpService;
|
2783
|
-
this.serviceUrl = '/admin/promotion';
|
2784
|
-
this.fetchAll$ = () => {
|
2785
|
-
return this.baseHttpService.api({ url: this.serviceUrl });
|
2786
|
-
};
|
2787
|
-
this.fetchOne$ = (id) => {
|
2788
|
-
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2789
|
-
};
|
2790
|
-
this.remove$ = (id) => {
|
2791
|
-
return this.baseHttpService.api({
|
2792
|
-
url: `${this.serviceUrl}/${id}`,
|
2793
|
-
method: 'delete',
|
2794
|
-
});
|
2795
|
-
};
|
2796
|
-
this.restore$ = (id) => {
|
2797
|
-
return this.baseHttpService.api({
|
2798
|
-
method: 'patch',
|
2799
|
-
url: `${this.serviceUrl}/${id}/restore`,
|
2800
|
-
});
|
2801
|
-
};
|
2802
|
-
this.duplicate$ = (body) => {
|
2803
|
-
return this.baseHttpService
|
2804
|
-
.api({
|
2805
|
-
url: `${this.serviceUrl}/${body.id}/clone`,
|
2806
|
-
method: 'post',
|
2807
|
-
body,
|
2808
|
-
})
|
2809
|
-
.pipe(map$1(response => response.clonedRecordId));
|
2810
|
-
};
|
2811
|
-
}
|
2812
|
-
search$(expression, skip, count) {
|
2813
|
-
let params = new HttpParams();
|
2814
|
-
if (typeof skip === 'number') {
|
2815
|
-
params = params.set('skip', '' + skip);
|
2816
|
-
}
|
2817
|
-
if (typeof count === 'number') {
|
2818
|
-
params = params.set('count', '' + count);
|
2819
|
-
}
|
2820
|
-
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2821
|
-
}
|
2822
|
-
create$(body) {
|
2823
|
-
return this.baseHttpService.api({
|
2824
|
-
url: `${this.serviceUrl}`,
|
2825
|
-
method: 'post',
|
2826
|
-
body,
|
2827
|
-
});
|
2828
|
-
}
|
2829
|
-
update$(body) {
|
2830
|
-
return this.baseHttpService.api({
|
2831
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2832
|
-
method: 'put',
|
2833
|
-
body,
|
2834
|
-
});
|
2835
|
-
}
|
2836
|
-
}
|
2837
|
-
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2838
|
-
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PromotionsApiService });
|
2839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: PromotionsApiService, decorators: [{
|
3184
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3185
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
3186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2840
3187
|
type: Injectable
|
2841
3188
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2842
3189
|
|
2843
3190
|
class ApiModule {
|
2844
3191
|
}
|
2845
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2846
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
2847
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
3192
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3193
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
3194
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2848
3195
|
BaseHttpService,
|
2849
3196
|
XrayService,
|
2850
3197
|
ConfigurationApiService,
|
@@ -2881,8 +3228,13 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2881
3228
|
RebateProgramApiService,
|
2882
3229
|
RebateTypeApiService,
|
2883
3230
|
PromotionsApiService,
|
3231
|
+
VeloceAuthService,
|
3232
|
+
ContractedPriceApiService,
|
3233
|
+
PortalsApiService,
|
3234
|
+
ConfigurationProcessorsApiService,
|
3235
|
+
FlowStateApiService,
|
2884
3236
|
], imports: [HttpClientModule] });
|
2885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2886
3238
|
type: NgModule,
|
2887
3239
|
args: [{
|
2888
3240
|
imports: [HttpClientModule],
|
@@ -2923,6 +3275,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2923
3275
|
RebateProgramApiService,
|
2924
3276
|
RebateTypeApiService,
|
2925
3277
|
PromotionsApiService,
|
3278
|
+
VeloceAuthService,
|
3279
|
+
ContractedPriceApiService,
|
3280
|
+
PortalsApiService,
|
3281
|
+
ConfigurationProcessorsApiService,
|
3282
|
+
FlowStateApiService,
|
2926
3283
|
],
|
2927
3284
|
}]
|
2928
3285
|
}] });
|
@@ -2931,5 +3288,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2931
3288
|
* Generated bundle index. Do not edit.
|
2932
3289
|
*/
|
2933
3290
|
|
2934
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
3291
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowStateApiService, 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 };
|
2935
3292
|
//# sourceMappingURL=veloceapps-api.mjs.map
|