@veloceapps/api 8.0.0-16 → 8.0.0-160
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 +10 -4
- package/esm2020/lib/api.module.mjs +26 -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 +48 -15
- 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/sandbox-manager-api.service.mjs +27 -0
- package/esm2020/lib/services/scripts-api.service.mjs +4 -4
- 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 +722 -330
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +726 -325
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +9 -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/sandbox-manager-api.service.d.ts +13 -0
- package/lib/services/scripts-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
|
}
|
@@ -414,10 +446,29 @@ class ConfigurationApiService {
|
|
414
446
|
updatePortDomains(lineItem, runtimeModel) {
|
415
447
|
const type = runtimeModel.components.get(lineItem.type);
|
416
448
|
const portDomains = { ...lineItem.portDomains };
|
449
|
+
// loop through ports to look for 'None' type domain computations
|
417
450
|
for (const port of type?.ports ?? []) {
|
418
|
-
const
|
419
|
-
|
420
|
-
|
451
|
+
const { name: portName, type: typeName, min, max, domainTypes, properties } = port;
|
452
|
+
const portDomain = portDomains[portName];
|
453
|
+
if (portDomain) {
|
454
|
+
// there's a 'None' type domain computation
|
455
|
+
if (portDomain.properties?.['domainComputation'] === ('None')) {
|
456
|
+
portDomain.domainTypes = domainTypes;
|
457
|
+
}
|
458
|
+
}
|
459
|
+
else {
|
460
|
+
// there's no port domain so consider that as 'None' type domain computation
|
461
|
+
portDomains[portName] = {
|
462
|
+
name: portName,
|
463
|
+
type: typeName,
|
464
|
+
minCard: Number(min),
|
465
|
+
maxCard: Number(max),
|
466
|
+
domainTypes: domainTypes,
|
467
|
+
properties: {
|
468
|
+
...properties,
|
469
|
+
domainComputation: 'None',
|
470
|
+
},
|
471
|
+
};
|
421
472
|
}
|
422
473
|
}
|
423
474
|
return {
|
@@ -427,9 +478,44 @@ class ConfigurationApiService {
|
|
427
478
|
};
|
428
479
|
}
|
429
480
|
}
|
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.
|
481
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
482
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
484
|
+
type: Injectable
|
485
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
486
|
+
|
487
|
+
class ConfigurationProcessorsApiService {
|
488
|
+
constructor(baseHttpService) {
|
489
|
+
this.baseHttpService = baseHttpService;
|
490
|
+
this.serviceUrl = '/configuration/processors/owners';
|
491
|
+
this.fetchConfigurationProcessors$ = (ownerId) => {
|
492
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${ownerId}` });
|
493
|
+
};
|
494
|
+
this.createConfigurationProcessors$ = (configurationProcessor) => {
|
495
|
+
return this.baseHttpService.api({
|
496
|
+
method: 'post',
|
497
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}`,
|
498
|
+
body: configurationProcessor,
|
499
|
+
});
|
500
|
+
};
|
501
|
+
this.updateConfigurationProcessors$ = (configurationProcessor) => {
|
502
|
+
return this.baseHttpService.api({
|
503
|
+
method: 'put',
|
504
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
505
|
+
body: configurationProcessor,
|
506
|
+
});
|
507
|
+
};
|
508
|
+
this.deleteConfigurationProcessors$ = (configurationProcessor) => {
|
509
|
+
return this.baseHttpService.api({
|
510
|
+
method: 'delete',
|
511
|
+
url: `${this.serviceUrl}/${configurationProcessor.ownerId}/${configurationProcessor.id}`,
|
512
|
+
});
|
513
|
+
};
|
514
|
+
}
|
515
|
+
}
|
516
|
+
ConfigurationProcessorsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
517
|
+
ConfigurationProcessorsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService });
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationProcessorsApiService, decorators: [{
|
433
519
|
type: Injectable
|
434
520
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
435
521
|
|
@@ -537,9 +623,9 @@ class ConfigurationSettingsApiService {
|
|
537
623
|
});
|
538
624
|
}
|
539
625
|
}
|
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.
|
626
|
+
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 });
|
627
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
543
629
|
type: Injectable
|
544
630
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
545
631
|
|
@@ -559,9 +645,50 @@ class ContextApiService {
|
|
559
645
|
});
|
560
646
|
}
|
561
647
|
}
|
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.
|
648
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
649
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
651
|
+
type: Injectable
|
652
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
653
|
+
|
654
|
+
class ContractedPriceApiService {
|
655
|
+
constructor(baseHttpService) {
|
656
|
+
this.baseHttpService = baseHttpService;
|
657
|
+
this.serviceUrl = '/admin/contracted-price';
|
658
|
+
this.fetchContractedPrices$ = () => {
|
659
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
660
|
+
};
|
661
|
+
this.fetchContractedPrice$ = (id) => {
|
662
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
663
|
+
};
|
664
|
+
this.createContractedPrice$ = (data) => {
|
665
|
+
return this.baseHttpService.api({
|
666
|
+
url: `${this.serviceUrl}`,
|
667
|
+
method: 'put',
|
668
|
+
body: data,
|
669
|
+
});
|
670
|
+
};
|
671
|
+
this.updateContractedPrice$ = (data) => {
|
672
|
+
return this.baseHttpService.api({
|
673
|
+
url: `${this.serviceUrl}/${data.id}`,
|
674
|
+
method: 'put',
|
675
|
+
body: data,
|
676
|
+
});
|
677
|
+
};
|
678
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
679
|
+
const params = new HttpParams({ fromObject: { ...searchParams } });
|
680
|
+
return this.baseHttpService.api({
|
681
|
+
method: 'post',
|
682
|
+
url: `${this.serviceUrl}/search`,
|
683
|
+
params,
|
684
|
+
body: expression || {},
|
685
|
+
});
|
686
|
+
};
|
687
|
+
}
|
688
|
+
}
|
689
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
690
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
565
692
|
type: Injectable
|
566
693
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
694
|
|
@@ -579,9 +706,9 @@ class DeltaApiService {
|
|
579
706
|
});
|
580
707
|
}
|
581
708
|
}
|
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.
|
709
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
710
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
712
|
type: Injectable
|
586
713
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
714
|
|
@@ -641,9 +768,9 @@ class DocumentAttachmentApiService {
|
|
641
768
|
});
|
642
769
|
}
|
643
770
|
}
|
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.
|
771
|
+
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 });
|
772
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
774
|
type: Injectable
|
648
775
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
776
|
|
@@ -698,7 +825,9 @@ class SalesforceApiService {
|
|
698
825
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
826
|
}
|
700
827
|
apexGetRequest(path, params, options) {
|
701
|
-
|
828
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
829
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
830
|
+
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
|
702
831
|
}
|
703
832
|
apexPostRequest(path, body, options) {
|
704
833
|
return this.httpService.api({
|
@@ -721,9 +850,9 @@ class SalesforceApiService {
|
|
721
850
|
});
|
722
851
|
}
|
723
852
|
}
|
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.
|
853
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
854
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
856
|
type: Injectable
|
728
857
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
858
|
|
@@ -736,7 +865,7 @@ class DocumentTemplatesApiService {
|
|
736
865
|
this.http = http;
|
737
866
|
this.DOCGEN_TAG = 'docgen';
|
738
867
|
this.SERVICE_URL = '/templates';
|
739
|
-
this.DOC_GEN_URL_FALLBACK =
|
868
|
+
this.DOC_GEN_URL_FALLBACK = `${window.VELO_API}/docgen`;
|
740
869
|
this.mapSfQueryResult = (limit) => map((records) => {
|
741
870
|
if (!records.length) {
|
742
871
|
return { _result: 'No Records Found' };
|
@@ -989,7 +1118,7 @@ class DocumentTemplatesApiService {
|
|
989
1118
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1119
|
let limit = 1;
|
991
1120
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1121
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1122
|
if (limitStr) {
|
994
1123
|
limit = Number.parseInt(limitStr, 10);
|
995
1124
|
}
|
@@ -1007,11 +1136,11 @@ class DocumentTemplatesApiService {
|
|
1007
1136
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1137
|
}
|
1009
1138
|
}
|
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.
|
1139
|
+
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 });
|
1140
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1142
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1143
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1144
|
|
1016
1145
|
class EndpointsApiService {
|
1017
1146
|
constructor(baseHttpService) {
|
@@ -1082,9 +1211,148 @@ class EndpointsApiService {
|
|
1082
1211
|
});
|
1083
1212
|
}
|
1084
1213
|
}
|
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.
|
1214
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1215
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1217
|
+
type: Injectable
|
1218
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1219
|
+
|
1220
|
+
class FlowStateApiService {
|
1221
|
+
constructor(httpService) {
|
1222
|
+
this.httpService = httpService;
|
1223
|
+
this.SERVICE_URL = '/configuration/states';
|
1224
|
+
}
|
1225
|
+
/**
|
1226
|
+
* Initialize flow state
|
1227
|
+
* @param request Request
|
1228
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1229
|
+
*/
|
1230
|
+
init(request) {
|
1231
|
+
return this.httpService.api({
|
1232
|
+
method: 'post',
|
1233
|
+
url: `${this.SERVICE_URL}/quote/start`,
|
1234
|
+
body: request,
|
1235
|
+
});
|
1236
|
+
}
|
1237
|
+
/**
|
1238
|
+
* Get existing state by ID
|
1239
|
+
* @param id ID
|
1240
|
+
* @returns Flow State
|
1241
|
+
*/
|
1242
|
+
get(id) {
|
1243
|
+
return this.httpService.api({
|
1244
|
+
url: `${this.SERVICE_URL}/${id}`,
|
1245
|
+
});
|
1246
|
+
}
|
1247
|
+
/**
|
1248
|
+
* Execute actions/selectors
|
1249
|
+
* @param id State ID
|
1250
|
+
* @param request Request
|
1251
|
+
* @returns Execute result
|
1252
|
+
*/
|
1253
|
+
execute(id, request) {
|
1254
|
+
return this.httpService.api({
|
1255
|
+
method: 'post',
|
1256
|
+
url: `${this.SERVICE_URL}/quote/${id}/execute`,
|
1257
|
+
body: request,
|
1258
|
+
});
|
1259
|
+
}
|
1260
|
+
/**
|
1261
|
+
* Save Quote in the state
|
1262
|
+
* @param id State ID
|
1263
|
+
*/
|
1264
|
+
save(id) {
|
1265
|
+
return this.httpService.api({
|
1266
|
+
method: 'post',
|
1267
|
+
url: `${this.SERVICE_URL}/quote/${id}/save`,
|
1268
|
+
});
|
1269
|
+
}
|
1270
|
+
/**
|
1271
|
+
* Submit Quote in the state
|
1272
|
+
* @param id State ID
|
1273
|
+
*/
|
1274
|
+
submit(id) {
|
1275
|
+
return this.httpService.api({
|
1276
|
+
method: 'post',
|
1277
|
+
url: `${this.SERVICE_URL}/quote/${id}/submit`,
|
1278
|
+
});
|
1279
|
+
}
|
1280
|
+
/**
|
1281
|
+
* Close Flow state
|
1282
|
+
* @param id State ID
|
1283
|
+
*/
|
1284
|
+
cancel(id) {
|
1285
|
+
return this.httpService.api({
|
1286
|
+
method: 'post',
|
1287
|
+
url: `${this.SERVICE_URL}/quote/${id}/cancel`,
|
1288
|
+
});
|
1289
|
+
}
|
1290
|
+
/**
|
1291
|
+
* Initialize stateful configuration
|
1292
|
+
* @param stateId string
|
1293
|
+
* @param request Request
|
1294
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1295
|
+
*/
|
1296
|
+
newConfiguration(stateId, request) {
|
1297
|
+
return this.httpService.api({
|
1298
|
+
method: 'post',
|
1299
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/new`,
|
1300
|
+
body: request,
|
1301
|
+
});
|
1302
|
+
}
|
1303
|
+
/**
|
1304
|
+
* Start stateful configuration
|
1305
|
+
* @param stateId string
|
1306
|
+
* @param request Request
|
1307
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1308
|
+
*/
|
1309
|
+
startConfiguration(stateId, request) {
|
1310
|
+
return this.httpService.api({
|
1311
|
+
method: 'post',
|
1312
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/start`,
|
1313
|
+
body: request,
|
1314
|
+
});
|
1315
|
+
}
|
1316
|
+
/**
|
1317
|
+
* Execute stateful configuration
|
1318
|
+
* @param stateId string
|
1319
|
+
* @param configurationId string
|
1320
|
+
* @param request Request
|
1321
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1322
|
+
*/
|
1323
|
+
executeConfiguration(stateId, configurationId, request) {
|
1324
|
+
return this.httpService.api({
|
1325
|
+
method: 'post',
|
1326
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/execute`,
|
1327
|
+
body: request,
|
1328
|
+
});
|
1329
|
+
}
|
1330
|
+
/**
|
1331
|
+
* Save stateful configuration
|
1332
|
+
* @param stateId string
|
1333
|
+
* @param configurationId string
|
1334
|
+
*/
|
1335
|
+
saveConfiguration(stateId, configurationId) {
|
1336
|
+
return this.httpService.api({
|
1337
|
+
method: 'post',
|
1338
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/save`,
|
1339
|
+
});
|
1340
|
+
}
|
1341
|
+
/**
|
1342
|
+
* Cancel stateful configuration
|
1343
|
+
* @param stateId string
|
1344
|
+
* @param configurationId string
|
1345
|
+
*/
|
1346
|
+
cancelConfiguration(stateId, configurationId) {
|
1347
|
+
return this.httpService.api({
|
1348
|
+
method: 'post',
|
1349
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/cancel`,
|
1350
|
+
});
|
1351
|
+
}
|
1352
|
+
}
|
1353
|
+
FlowStateApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1354
|
+
FlowStateApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService });
|
1355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, decorators: [{
|
1088
1356
|
type: Injectable
|
1089
1357
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1358
|
|
@@ -1094,17 +1362,20 @@ class FlowsApiService {
|
|
1094
1362
|
this.flowsKey = 'flows';
|
1095
1363
|
}
|
1096
1364
|
getFlow(id) {
|
1097
|
-
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id))
|
1365
|
+
return this.fetchFlows().pipe(map(flows => flows.find(flow => flow.id == id)), map(flow => {
|
1366
|
+
if (!flow) {
|
1367
|
+
throw new Error(`Flow with flowId=${id} is not defined`);
|
1368
|
+
}
|
1369
|
+
return flow;
|
1370
|
+
}));
|
1098
1371
|
}
|
1099
1372
|
fetchFlows() {
|
1100
|
-
return this.configurationSettingsApiService
|
1101
|
-
.fetchSetting(this.flowsKey)
|
1102
|
-
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1373
|
+
return this.configurationSettingsApiService.fetchSetting(this.flowsKey).pipe(map((setting) => (setting?.value ? JSON.parse(setting.value) : [])), map(anyFlows => anyFlows.map(toLatestFlow).filter(isDefined)));
|
1103
1374
|
}
|
1104
1375
|
}
|
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.
|
1376
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1377
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1379
|
type: Injectable
|
1109
1380
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1381
|
|
@@ -1163,9 +1434,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1434
|
}
|
1164
1435
|
}
|
1165
1436
|
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.
|
1437
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1438
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1440
|
type: Injectable
|
1170
1441
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1442
|
|
@@ -1195,9 +1466,9 @@ class GuidedSellingApiService {
|
|
1195
1466
|
});
|
1196
1467
|
}
|
1197
1468
|
}
|
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.
|
1469
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1470
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1472
|
type: Injectable
|
1202
1473
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1474
|
|
@@ -1266,9 +1537,9 @@ class OffersApiService {
|
|
1266
1537
|
}
|
1267
1538
|
}
|
1268
1539
|
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.
|
1540
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1541
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1543
|
type: Injectable
|
1273
1544
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1545
|
|
@@ -1282,11 +1553,11 @@ class OrgInfoApiService {
|
|
1282
1553
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1554
|
}
|
1284
1555
|
}
|
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.
|
1556
|
+
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 });
|
1557
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1559
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1560
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1561
|
|
1291
1562
|
class PicklistsApiService {
|
1292
1563
|
constructor(baseHttpService) {
|
@@ -1320,9 +1591,81 @@ class PicklistsApiService {
|
|
1320
1591
|
};
|
1321
1592
|
}
|
1322
1593
|
}
|
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.
|
1594
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1595
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1597
|
+
type: Injectable
|
1598
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1599
|
+
|
1600
|
+
class PortalsApiService {
|
1601
|
+
constructor(baseHttpService) {
|
1602
|
+
this.baseHttpService = baseHttpService;
|
1603
|
+
this.serviceUrl = '/admin/portal';
|
1604
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
1605
|
+
let params = new HttpParams();
|
1606
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
1607
|
+
params = params.append('skip', '0');
|
1608
|
+
params = params.append('name', name);
|
1609
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
1610
|
+
};
|
1611
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
1612
|
+
let params = new HttpParams();
|
1613
|
+
params = params.set('skip', '' + skip);
|
1614
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
1615
|
+
return this.baseHttpService.api({
|
1616
|
+
method: 'post',
|
1617
|
+
url: `${this.serviceUrl}/search`,
|
1618
|
+
params,
|
1619
|
+
body: expression || {},
|
1620
|
+
});
|
1621
|
+
};
|
1622
|
+
this.removePortal$ = (id) => {
|
1623
|
+
return this.baseHttpService.api({
|
1624
|
+
url: `${this.serviceUrl}/${id}`,
|
1625
|
+
method: 'delete',
|
1626
|
+
});
|
1627
|
+
};
|
1628
|
+
this.restore$ = (id) => {
|
1629
|
+
return this.baseHttpService.api({
|
1630
|
+
method: 'patch',
|
1631
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1632
|
+
});
|
1633
|
+
};
|
1634
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
1635
|
+
return this.baseHttpService.api({
|
1636
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
1637
|
+
method: 'post',
|
1638
|
+
body: cloneRequest,
|
1639
|
+
});
|
1640
|
+
};
|
1641
|
+
this.getPortal$ = (id) => {
|
1642
|
+
return this.baseHttpService.api({
|
1643
|
+
url: `${this.serviceUrl}/${id}`,
|
1644
|
+
});
|
1645
|
+
};
|
1646
|
+
}
|
1647
|
+
createNewPortal$(body) {
|
1648
|
+
return this.baseHttpService.api({
|
1649
|
+
url: `${this.serviceUrl}`,
|
1650
|
+
method: 'post',
|
1651
|
+
body,
|
1652
|
+
});
|
1653
|
+
}
|
1654
|
+
updatePortal$(portal, settings) {
|
1655
|
+
return this.baseHttpService.api({
|
1656
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
1657
|
+
method: 'put',
|
1658
|
+
body: {
|
1659
|
+
...portal,
|
1660
|
+
settings: JSON.stringify(settings),
|
1661
|
+
},
|
1662
|
+
});
|
1663
|
+
}
|
1664
|
+
}
|
1665
|
+
PortalsApiService.MAX_RESULTS = 60;
|
1666
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1667
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
1668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
1326
1669
|
type: Injectable
|
1327
1670
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1671
|
|
@@ -1380,9 +1723,9 @@ class PriceApiService {
|
|
1380
1723
|
});
|
1381
1724
|
}
|
1382
1725
|
}
|
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.
|
1726
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1727
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1729
|
type: Injectable
|
1387
1730
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1731
|
|
@@ -1474,9 +1817,9 @@ class ProceduresApiService {
|
|
1474
1817
|
});
|
1475
1818
|
}
|
1476
1819
|
}
|
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.
|
1820
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1821
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1823
|
type: Injectable
|
1481
1824
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1825
|
|
@@ -1622,9 +1965,9 @@ class ProductApiService {
|
|
1622
1965
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1966
|
}
|
1624
1967
|
}
|
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.
|
1968
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1969
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1971
|
type: Injectable
|
1629
1972
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1973
|
|
@@ -1853,36 +2196,99 @@ class ProductModelApiService {
|
|
1853
2196
|
}
|
1854
2197
|
}
|
1855
2198
|
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.
|
2199
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2200
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1859
2202
|
type: Injectable
|
1860
2203
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
2204
|
|
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
|
-
|
2205
|
+
class PromotionsApiService {
|
2206
|
+
constructor(baseHttpService) {
|
2207
|
+
this.baseHttpService = baseHttpService;
|
2208
|
+
this.serviceUrl = '/admin/promotion';
|
2209
|
+
this.fetchAll$ = () => {
|
2210
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2211
|
+
};
|
2212
|
+
this.fetchOne$ = (id) => {
|
2213
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2214
|
+
};
|
2215
|
+
this.remove$ = (id) => {
|
2216
|
+
return this.baseHttpService.api({
|
2217
|
+
url: `${this.serviceUrl}/${id}`,
|
2218
|
+
method: 'delete',
|
2219
|
+
});
|
2220
|
+
};
|
2221
|
+
this.restore$ = (id) => {
|
2222
|
+
return this.baseHttpService.api({
|
2223
|
+
method: 'patch',
|
2224
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2225
|
+
});
|
2226
|
+
};
|
2227
|
+
this.duplicate$ = (body) => {
|
2228
|
+
return this.baseHttpService
|
2229
|
+
.api({
|
2230
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2231
|
+
method: 'post',
|
2232
|
+
body,
|
2233
|
+
})
|
2234
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2235
|
+
};
|
2236
|
+
}
|
2237
|
+
search$(expression, skip, count) {
|
2238
|
+
let params = new HttpParams();
|
2239
|
+
if (typeof skip === 'number') {
|
2240
|
+
params = params.set('skip', '' + skip);
|
2241
|
+
}
|
2242
|
+
if (typeof count === 'number') {
|
2243
|
+
params = params.set('count', '' + count);
|
2244
|
+
}
|
2245
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2246
|
+
}
|
2247
|
+
create$(body) {
|
2248
|
+
return this.baseHttpService.api({
|
2249
|
+
url: `${this.serviceUrl}`,
|
2250
|
+
method: 'post',
|
2251
|
+
body,
|
2252
|
+
});
|
2253
|
+
}
|
2254
|
+
update$(body) {
|
2255
|
+
return this.baseHttpService.api({
|
2256
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2257
|
+
method: 'put',
|
2258
|
+
body,
|
2259
|
+
});
|
2260
|
+
}
|
2261
|
+
}
|
2262
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2263
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
2264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
2265
|
+
type: Injectable
|
2266
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2267
|
+
|
2268
|
+
class QuoteApiService {
|
2269
|
+
constructor(httpService) {
|
2270
|
+
this.httpService = httpService;
|
2271
|
+
this.SERVICE_URL = '/quotes';
|
2272
|
+
}
|
2273
|
+
// request quoteId | accountId | opportunityId | orderId
|
2274
|
+
getQuoteDraft(objectId, params, errorHandler) {
|
2275
|
+
return this.httpService.api({
|
2276
|
+
method: 'get',
|
2277
|
+
url: `${this.SERVICE_URL}/${objectId}`,
|
2278
|
+
params,
|
2279
|
+
errorHandler,
|
2280
|
+
});
|
2281
|
+
}
|
2282
|
+
upsertQuote(request, options) {
|
2283
|
+
return this.httpService.api({
|
2284
|
+
method: 'post',
|
2285
|
+
url: `${this.SERVICE_URL}`,
|
2286
|
+
body: request,
|
2287
|
+
...options,
|
2288
|
+
});
|
2289
|
+
}
|
2290
|
+
submitQuote(request, options) {
|
2291
|
+
return this.httpService.api({
|
1886
2292
|
method: 'post',
|
1887
2293
|
url: `${this.SERVICE_URL}/submit`,
|
1888
2294
|
body: request,
|
@@ -1901,9 +2307,9 @@ class QuoteApiService {
|
|
1901
2307
|
});
|
1902
2308
|
}
|
1903
2309
|
}
|
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.
|
2310
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2311
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
2313
|
type: Injectable
|
1908
2314
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
2315
|
|
@@ -1929,9 +2335,135 @@ class RampApiService {
|
|
1929
2335
|
});
|
1930
2336
|
}
|
1931
2337
|
}
|
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.
|
2338
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2339
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2341
|
+
type: Injectable
|
2342
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2343
|
+
|
2344
|
+
class RebateProgramApiService {
|
2345
|
+
constructor(baseHttpService) {
|
2346
|
+
this.baseHttpService = baseHttpService;
|
2347
|
+
this.serviceUrl = '/admin/rebate-program';
|
2348
|
+
this.fetchAll$ = () => {
|
2349
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2350
|
+
};
|
2351
|
+
this.fetchOne$ = (id) => {
|
2352
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2353
|
+
};
|
2354
|
+
this.remove$ = (id) => {
|
2355
|
+
return this.baseHttpService.api({
|
2356
|
+
url: `${this.serviceUrl}/${id}`,
|
2357
|
+
method: 'delete',
|
2358
|
+
});
|
2359
|
+
};
|
2360
|
+
this.restore$ = (id) => {
|
2361
|
+
return this.baseHttpService.api({
|
2362
|
+
method: 'patch',
|
2363
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2364
|
+
});
|
2365
|
+
};
|
2366
|
+
this.duplicate$ = (body) => {
|
2367
|
+
return this.baseHttpService
|
2368
|
+
.api({
|
2369
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2370
|
+
method: 'post',
|
2371
|
+
body,
|
2372
|
+
})
|
2373
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2374
|
+
};
|
2375
|
+
}
|
2376
|
+
search$(expression, skip, count) {
|
2377
|
+
let params = new HttpParams();
|
2378
|
+
if (typeof skip === 'number') {
|
2379
|
+
params = params.set('skip', '' + skip);
|
2380
|
+
}
|
2381
|
+
if (typeof count === 'number') {
|
2382
|
+
params = params.set('count', '' + count);
|
2383
|
+
}
|
2384
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2385
|
+
}
|
2386
|
+
create$(body) {
|
2387
|
+
return this.baseHttpService.api({
|
2388
|
+
url: `${this.serviceUrl}`,
|
2389
|
+
method: 'post',
|
2390
|
+
body,
|
2391
|
+
});
|
2392
|
+
}
|
2393
|
+
update$(body) {
|
2394
|
+
return this.baseHttpService.api({
|
2395
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2396
|
+
method: 'put',
|
2397
|
+
body,
|
2398
|
+
});
|
2399
|
+
}
|
2400
|
+
}
|
2401
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2402
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2404
|
+
type: Injectable
|
2405
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2406
|
+
|
2407
|
+
class RebateTypeApiService {
|
2408
|
+
constructor(baseHttpService) {
|
2409
|
+
this.baseHttpService = baseHttpService;
|
2410
|
+
this.serviceUrl = '/admin/rebate-type';
|
2411
|
+
this.fetchAll$ = () => {
|
2412
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2413
|
+
};
|
2414
|
+
this.fetchOne$ = (id) => {
|
2415
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2416
|
+
};
|
2417
|
+
this.remove$ = (id) => {
|
2418
|
+
return this.baseHttpService.api({
|
2419
|
+
url: `${this.serviceUrl}/${id}`,
|
2420
|
+
method: 'delete',
|
2421
|
+
});
|
2422
|
+
};
|
2423
|
+
this.restore$ = (id) => {
|
2424
|
+
return this.baseHttpService.api({
|
2425
|
+
method: 'patch',
|
2426
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2427
|
+
});
|
2428
|
+
};
|
2429
|
+
this.duplicate$ = (body) => {
|
2430
|
+
return this.baseHttpService
|
2431
|
+
.api({
|
2432
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2433
|
+
method: 'post',
|
2434
|
+
body,
|
2435
|
+
})
|
2436
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2437
|
+
};
|
2438
|
+
}
|
2439
|
+
search$(expression, skip, count) {
|
2440
|
+
let params = new HttpParams();
|
2441
|
+
if (typeof skip === 'number') {
|
2442
|
+
params = params.set('skip', '' + skip);
|
2443
|
+
}
|
2444
|
+
if (typeof count === 'number') {
|
2445
|
+
params = params.set('count', '' + count);
|
2446
|
+
}
|
2447
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2448
|
+
}
|
2449
|
+
create$(body) {
|
2450
|
+
return this.baseHttpService.api({
|
2451
|
+
url: `${this.serviceUrl}`,
|
2452
|
+
method: 'post',
|
2453
|
+
body,
|
2454
|
+
});
|
2455
|
+
}
|
2456
|
+
update$(body) {
|
2457
|
+
return this.baseHttpService.api({
|
2458
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2459
|
+
method: 'put',
|
2460
|
+
body,
|
2461
|
+
});
|
2462
|
+
}
|
2463
|
+
}
|
2464
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2465
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2467
|
type: Injectable
|
1936
2468
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2469
|
|
@@ -1985,9 +2517,9 @@ class RuleGroupsApiService {
|
|
1985
2517
|
};
|
1986
2518
|
}
|
1987
2519
|
}
|
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.
|
2520
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2521
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2523
|
type: Injectable
|
1992
2524
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2525
|
|
@@ -2057,17 +2589,26 @@ class RulesApiService {
|
|
2057
2589
|
});
|
2058
2590
|
}
|
2059
2591
|
execute$(body) {
|
2060
|
-
const url = body.rule.ruleGroupType
|
2592
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2061
2593
|
return this.baseHttpService.api({
|
2062
2594
|
url,
|
2063
2595
|
method: 'post',
|
2064
2596
|
body,
|
2065
2597
|
});
|
2066
2598
|
}
|
2599
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2600
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2601
|
+
return '/rules/eligibility/execute';
|
2602
|
+
}
|
2603
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2604
|
+
return '/rules/catalog/execute';
|
2605
|
+
}
|
2606
|
+
return '/rules/execute';
|
2607
|
+
}
|
2067
2608
|
}
|
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.
|
2609
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2610
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2071
2612
|
type: Injectable
|
2072
2613
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2073
2614
|
|
@@ -2141,9 +2682,9 @@ class ScriptsApiService {
|
|
2141
2682
|
};
|
2142
2683
|
}
|
2143
2684
|
}
|
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.
|
2685
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2686
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2147
2688
|
type: Injectable
|
2148
2689
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2149
2690
|
|
@@ -2164,9 +2705,9 @@ class ShoppingCartSettingsApiService {
|
|
2164
2705
|
}, {})));
|
2165
2706
|
}
|
2166
2707
|
}
|
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.
|
2708
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2709
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2170
2711
|
type: Injectable
|
2171
2712
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2172
2713
|
|
@@ -2212,9 +2753,9 @@ class StatefulConfigurationApiService {
|
|
2212
2753
|
});
|
2213
2754
|
}
|
2214
2755
|
}
|
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.
|
2756
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2757
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2218
2759
|
type: Injectable
|
2219
2760
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2220
2761
|
|
@@ -2281,9 +2822,9 @@ class UIDefinitionsApiService {
|
|
2281
2822
|
return `/models/${modelId}/uidefinitions`;
|
2282
2823
|
}
|
2283
2824
|
}
|
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.
|
2825
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2826
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2287
2828
|
type: Injectable
|
2288
2829
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2289
2830
|
|
@@ -2519,6 +3060,11 @@ class UITemplatesApiService {
|
|
2519
3060
|
this.fetchComponentAttachmentFile$(templateId, component.id, 'json'),
|
2520
3061
|
]).pipe(map$1(([html, js, css, json]) => ({ html, js, css, json })));
|
2521
3062
|
};
|
3063
|
+
this.fetchComponentsAttachments$ = (templateId) => {
|
3064
|
+
return this.fetchComponents$(templateId).pipe(switchMap$1(components => {
|
3065
|
+
return forkJoin(components.map(component => this.fetchComponentAttachments$(templateId, component)));
|
3066
|
+
}));
|
3067
|
+
};
|
2522
3068
|
this.fetchComponentAttachmentFile$ = (templateId, componentId, attachmentType) => {
|
2523
3069
|
return this.baseHttpService
|
2524
3070
|
.api({
|
@@ -2569,9 +3115,9 @@ class UITemplatesApiService {
|
|
2569
3115
|
});
|
2570
3116
|
}
|
2571
3117
|
}
|
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.
|
3118
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3119
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
3120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2575
3121
|
type: Injectable
|
2576
3122
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2577
3123
|
|
@@ -2607,6 +3153,15 @@ class VeloceObjectsApiService {
|
|
2607
3153
|
url: `${this.serviceUrl}/${id}`,
|
2608
3154
|
});
|
2609
3155
|
};
|
3156
|
+
this.duplicateObject$ = (body) => {
|
3157
|
+
return this.baseHttpService
|
3158
|
+
.api({
|
3159
|
+
method: 'post',
|
3160
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
3161
|
+
body,
|
3162
|
+
})
|
3163
|
+
.pipe(map(response => response.clonedRecordId));
|
3164
|
+
};
|
2610
3165
|
this.restoreObject$ = (id) => {
|
2611
3166
|
return this.baseHttpService.api({
|
2612
3167
|
method: 'patch',
|
@@ -2645,206 +3200,40 @@ class VeloceObjectsApiService {
|
|
2645
3200
|
});
|
2646
3201
|
}
|
2647
3202
|
}
|
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: [{
|
3203
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3204
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
3205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2777
3206
|
type: Injectable
|
2778
3207
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2779
3208
|
|
2780
|
-
class
|
3209
|
+
class SandboxManagerApiService {
|
2781
3210
|
constructor(baseHttpService) {
|
2782
3211
|
this.baseHttpService = baseHttpService;
|
2783
|
-
this.serviceUrl = '/admin/
|
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 });
|
3212
|
+
this.serviceUrl = '/admin/portal';
|
2821
3213
|
}
|
2822
|
-
|
2823
|
-
return
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
3214
|
+
getSalesforceOrganizations$(skip = 1, name = '') {
|
3215
|
+
return of([
|
3216
|
+
{ id: '1', name: 'Organization 1', active: true },
|
3217
|
+
{ id: '2', name: 'Organization 2', active: false },
|
3218
|
+
{ id: '3', name: 'Organization 3', active: true },
|
3219
|
+
]);
|
2828
3220
|
}
|
2829
|
-
|
2830
|
-
return
|
2831
|
-
url: `${this.serviceUrl}/${body.id}`,
|
2832
|
-
method: 'put',
|
2833
|
-
body,
|
2834
|
-
});
|
3221
|
+
getAvailableSalesforceOrganizations$() {
|
3222
|
+
return of(2);
|
2835
3223
|
}
|
2836
3224
|
}
|
2837
|
-
|
2838
|
-
|
2839
|
-
i0.ɵɵ
|
3225
|
+
SandboxManagerApiService.MAX_RESULTS = 60;
|
3226
|
+
SandboxManagerApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3227
|
+
SandboxManagerApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService });
|
3228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SandboxManagerApiService, decorators: [{
|
2840
3229
|
type: Injectable
|
2841
3230
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2842
3231
|
|
2843
3232
|
class ApiModule {
|
2844
3233
|
}
|
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.
|
3234
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3235
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
3236
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2848
3237
|
BaseHttpService,
|
2849
3238
|
XrayService,
|
2850
3239
|
ConfigurationApiService,
|
@@ -2881,8 +3270,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2881
3270
|
RebateProgramApiService,
|
2882
3271
|
RebateTypeApiService,
|
2883
3272
|
PromotionsApiService,
|
3273
|
+
VeloceAuthService,
|
3274
|
+
ContractedPriceApiService,
|
3275
|
+
PortalsApiService,
|
3276
|
+
ConfigurationProcessorsApiService,
|
3277
|
+
FlowStateApiService,
|
3278
|
+
SandboxManagerApiService,
|
2884
3279
|
], imports: [HttpClientModule] });
|
2885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2886
3281
|
type: NgModule,
|
2887
3282
|
args: [{
|
2888
3283
|
imports: [HttpClientModule],
|
@@ -2923,6 +3318,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2923
3318
|
RebateProgramApiService,
|
2924
3319
|
RebateTypeApiService,
|
2925
3320
|
PromotionsApiService,
|
3321
|
+
VeloceAuthService,
|
3322
|
+
ContractedPriceApiService,
|
3323
|
+
PortalsApiService,
|
3324
|
+
ConfigurationProcessorsApiService,
|
3325
|
+
FlowStateApiService,
|
3326
|
+
SandboxManagerApiService,
|
2926
3327
|
],
|
2927
3328
|
}]
|
2928
3329
|
}] });
|
@@ -2931,5 +3332,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2931
3332
|
* Generated bundle index. Do not edit.
|
2932
3333
|
*/
|
2933
3334
|
|
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 };
|
3335
|
+
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, SandboxManagerApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
|
2935
3336
|
//# sourceMappingURL=veloceapps-api.mjs.map
|