@veloceapps/api 8.0.0-7 → 8.0.0-71
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 +7 -1
- package/esm2020/lib/api.module.mjs +23 -5
- 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 +26 -6
- package/esm2020/lib/services/configuration-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/context-api.service.mjs +3 -3
- package/esm2020/lib/services/contracted-price-api.service.mjs +45 -0
- package/esm2020/lib/services/delta-api.service.mjs +3 -3
- package/esm2020/lib/services/document-attachment-api.service.mjs +3 -3
- package/esm2020/lib/services/document-templates-api.service.mjs +5 -5
- package/esm2020/lib/services/endpoints-api.service.mjs +3 -3
- package/esm2020/lib/services/flows-api.service.mjs +3 -3
- package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +3 -3
- package/esm2020/lib/services/guided-sellings-api.service.mjs +3 -3
- package/esm2020/lib/services/offers-api.service.mjs +3 -3
- package/esm2020/lib/services/org-info-api.service.mjs +3 -3
- package/esm2020/lib/services/picklists-api.service.mjs +3 -3
- package/esm2020/lib/services/portals-api.service.mjs +76 -0
- package/esm2020/lib/services/price-api.service.mjs +3 -3
- package/esm2020/lib/services/procedures-api.service.mjs +3 -3
- package/esm2020/lib/services/product-api.service.mjs +3 -3
- package/esm2020/lib/services/product-model-api.service.mjs +3 -3
- package/esm2020/lib/services/promotions-api.service.mjs +68 -0
- package/esm2020/lib/services/quote-api.service.mjs +3 -3
- package/esm2020/lib/services/ramp-api.service.mjs +3 -3
- package/esm2020/lib/services/rebate-program-api.service.mjs +68 -0
- package/esm2020/lib/services/rebate-type-api.service.mjs +68 -0
- package/esm2020/lib/services/rule-groups-api.service.mjs +3 -3
- package/esm2020/lib/services/rules-api.service.mjs +20 -7
- package/esm2020/lib/services/salesforce-api.service.mjs +7 -5
- package/esm2020/lib/services/scripts-api.service.mjs +10 -6
- package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +3 -3
- package/esm2020/lib/services/stateful-configuration-api.mjs +3 -3
- package/esm2020/lib/services/ui-definitions-api.service.mjs +3 -3
- package/esm2020/lib/services/ui-templates-api.service.mjs +3 -3
- package/esm2020/lib/services/veloce-objects-api.service.mjs +14 -4
- package/esm2020/lib/types/auth.types.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -1
- package/fesm2015/veloceapps-api.mjs +485 -111
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +490 -110
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +6 -0
- package/lib/services/auth.service.d.ts +11 -0
- package/lib/services/configuration-api.service.d.ts +5 -0
- package/lib/services/contracted-price-api.service.d.ts +16 -0
- package/lib/services/portals-api.service.d.ts +20 -0
- package/lib/services/promotions-api.service.d.ts +19 -0
- package/lib/services/rebate-program-api.service.d.ts +19 -0
- package/lib/services/rebate-type-api.service.d.ts +19 -0
- package/lib/services/rules-api.service.d.ts +2 -1
- package/lib/services/scripts-api.service.d.ts +1 -1
- package/lib/services/veloce-objects-api.service.d.ts +2 -1
- package/lib/types/auth.types.d.ts +4 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
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';
|
@@ -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({
|
@@ -416,7 +454,7 @@ class ConfigurationApiService {
|
|
416
454
|
const portDomains = { ...lineItem.portDomains };
|
417
455
|
for (const port of type?.ports ?? []) {
|
418
456
|
const portDomain = portDomains[port.name];
|
419
|
-
if (portDomain?.properties?.['domainComputation'] === '
|
457
|
+
if (portDomain?.properties?.['domainComputation'] === ('None')) {
|
420
458
|
portDomain.domainTypes = port.domainTypes;
|
421
459
|
}
|
422
460
|
}
|
@@ -427,9 +465,9 @@ class ConfigurationApiService {
|
|
427
465
|
};
|
428
466
|
}
|
429
467
|
}
|
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.
|
468
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
469
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
433
471
|
type: Injectable
|
434
472
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
435
473
|
|
@@ -537,9 +575,9 @@ class ConfigurationSettingsApiService {
|
|
537
575
|
});
|
538
576
|
}
|
539
577
|
}
|
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.
|
578
|
+
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 });
|
579
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
543
581
|
type: Injectable
|
544
582
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
545
583
|
|
@@ -559,9 +597,50 @@ class ContextApiService {
|
|
559
597
|
});
|
560
598
|
}
|
561
599
|
}
|
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.
|
600
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
601
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
603
|
+
type: Injectable
|
604
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
605
|
+
|
606
|
+
class ContractedPriceApiService {
|
607
|
+
constructor(baseHttpService) {
|
608
|
+
this.baseHttpService = baseHttpService;
|
609
|
+
this.serviceUrl = '/admin/contracted-price';
|
610
|
+
this.fetchContractedPrices$ = () => {
|
611
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
612
|
+
};
|
613
|
+
this.fetchContractedPrice$ = (id) => {
|
614
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
615
|
+
};
|
616
|
+
this.createContractedPrice$ = (data) => {
|
617
|
+
return this.baseHttpService.api({
|
618
|
+
url: `${this.serviceUrl}`,
|
619
|
+
method: 'put',
|
620
|
+
body: data,
|
621
|
+
});
|
622
|
+
};
|
623
|
+
this.updateContractedPrice$ = (data) => {
|
624
|
+
return this.baseHttpService.api({
|
625
|
+
url: `${this.serviceUrl}/${data.id}`,
|
626
|
+
method: 'put',
|
627
|
+
body: data,
|
628
|
+
});
|
629
|
+
};
|
630
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
631
|
+
const params = new HttpParams({ fromObject: { ...searchParams } });
|
632
|
+
return this.baseHttpService.api({
|
633
|
+
method: 'post',
|
634
|
+
url: `${this.serviceUrl}/search`,
|
635
|
+
params,
|
636
|
+
body: expression || {},
|
637
|
+
});
|
638
|
+
};
|
639
|
+
}
|
640
|
+
}
|
641
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
642
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
565
644
|
type: Injectable
|
566
645
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
646
|
|
@@ -579,9 +658,9 @@ class DeltaApiService {
|
|
579
658
|
});
|
580
659
|
}
|
581
660
|
}
|
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.
|
661
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
662
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
664
|
type: Injectable
|
586
665
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
666
|
|
@@ -641,9 +720,9 @@ class DocumentAttachmentApiService {
|
|
641
720
|
});
|
642
721
|
}
|
643
722
|
}
|
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.
|
723
|
+
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 });
|
724
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
726
|
type: Injectable
|
648
727
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
728
|
|
@@ -698,7 +777,9 @@ class SalesforceApiService {
|
|
698
777
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
778
|
}
|
700
779
|
apexGetRequest(path, params, options) {
|
701
|
-
|
780
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
781
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
782
|
+
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
|
702
783
|
}
|
703
784
|
apexPostRequest(path, body, options) {
|
704
785
|
return this.httpService.api({
|
@@ -721,9 +802,9 @@ class SalesforceApiService {
|
|
721
802
|
});
|
722
803
|
}
|
723
804
|
}
|
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.
|
805
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
806
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
808
|
type: Injectable
|
728
809
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
810
|
|
@@ -989,7 +1070,7 @@ class DocumentTemplatesApiService {
|
|
989
1070
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1071
|
let limit = 1;
|
991
1072
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1073
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1074
|
if (limitStr) {
|
994
1075
|
limit = Number.parseInt(limitStr, 10);
|
995
1076
|
}
|
@@ -1007,11 +1088,11 @@ class DocumentTemplatesApiService {
|
|
1007
1088
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1089
|
}
|
1009
1090
|
}
|
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.
|
1091
|
+
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 });
|
1092
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1094
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1095
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1096
|
|
1016
1097
|
class EndpointsApiService {
|
1017
1098
|
constructor(baseHttpService) {
|
@@ -1082,9 +1163,9 @@ class EndpointsApiService {
|
|
1082
1163
|
});
|
1083
1164
|
}
|
1084
1165
|
}
|
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.
|
1166
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1167
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1088
1169
|
type: Injectable
|
1089
1170
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1171
|
|
@@ -1102,9 +1183,9 @@ class FlowsApiService {
|
|
1102
1183
|
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1103
1184
|
}
|
1104
1185
|
}
|
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.
|
1186
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1187
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1189
|
type: Injectable
|
1109
1190
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1191
|
|
@@ -1163,9 +1244,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1244
|
}
|
1164
1245
|
}
|
1165
1246
|
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.
|
1247
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1248
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1250
|
type: Injectable
|
1170
1251
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1252
|
|
@@ -1195,9 +1276,9 @@ class GuidedSellingApiService {
|
|
1195
1276
|
});
|
1196
1277
|
}
|
1197
1278
|
}
|
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.
|
1279
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1280
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1282
|
type: Injectable
|
1202
1283
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1284
|
|
@@ -1266,9 +1347,9 @@ class OffersApiService {
|
|
1266
1347
|
}
|
1267
1348
|
}
|
1268
1349
|
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.
|
1350
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1351
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1353
|
type: Injectable
|
1273
1354
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1355
|
|
@@ -1282,11 +1363,11 @@ class OrgInfoApiService {
|
|
1282
1363
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1364
|
}
|
1284
1365
|
}
|
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.
|
1366
|
+
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 });
|
1367
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1369
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1370
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1371
|
|
1291
1372
|
class PicklistsApiService {
|
1292
1373
|
constructor(baseHttpService) {
|
@@ -1320,9 +1401,9 @@ class PicklistsApiService {
|
|
1320
1401
|
};
|
1321
1402
|
}
|
1322
1403
|
}
|
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.
|
1404
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1405
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1326
1407
|
type: Injectable
|
1327
1408
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1409
|
|
@@ -1380,9 +1461,9 @@ class PriceApiService {
|
|
1380
1461
|
});
|
1381
1462
|
}
|
1382
1463
|
}
|
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.
|
1464
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1465
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1467
|
type: Injectable
|
1387
1468
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1469
|
|
@@ -1474,9 +1555,9 @@ class ProceduresApiService {
|
|
1474
1555
|
});
|
1475
1556
|
}
|
1476
1557
|
}
|
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.
|
1558
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1559
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1561
|
type: Injectable
|
1481
1562
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1563
|
|
@@ -1622,9 +1703,9 @@ class ProductApiService {
|
|
1622
1703
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1704
|
}
|
1624
1705
|
}
|
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.
|
1706
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1707
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1709
|
type: Injectable
|
1629
1710
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1711
|
|
@@ -1853,9 +1934,72 @@ class ProductModelApiService {
|
|
1853
1934
|
}
|
1854
1935
|
}
|
1855
1936
|
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.
|
1937
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1938
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1940
|
+
type: Injectable
|
1941
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1942
|
+
|
1943
|
+
class PromotionsApiService {
|
1944
|
+
constructor(baseHttpService) {
|
1945
|
+
this.baseHttpService = baseHttpService;
|
1946
|
+
this.serviceUrl = '/admin/promotion';
|
1947
|
+
this.fetchAll$ = () => {
|
1948
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1949
|
+
};
|
1950
|
+
this.fetchOne$ = (id) => {
|
1951
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1952
|
+
};
|
1953
|
+
this.remove$ = (id) => {
|
1954
|
+
return this.baseHttpService.api({
|
1955
|
+
url: `${this.serviceUrl}/${id}`,
|
1956
|
+
method: 'delete',
|
1957
|
+
});
|
1958
|
+
};
|
1959
|
+
this.restore$ = (id) => {
|
1960
|
+
return this.baseHttpService.api({
|
1961
|
+
method: 'patch',
|
1962
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1963
|
+
});
|
1964
|
+
};
|
1965
|
+
this.duplicate$ = (body) => {
|
1966
|
+
return this.baseHttpService
|
1967
|
+
.api({
|
1968
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1969
|
+
method: 'post',
|
1970
|
+
body,
|
1971
|
+
})
|
1972
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1973
|
+
};
|
1974
|
+
}
|
1975
|
+
search$(expression, skip, count) {
|
1976
|
+
let params = new HttpParams();
|
1977
|
+
if (typeof skip === 'number') {
|
1978
|
+
params = params.set('skip', '' + skip);
|
1979
|
+
}
|
1980
|
+
if (typeof count === 'number') {
|
1981
|
+
params = params.set('count', '' + count);
|
1982
|
+
}
|
1983
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1984
|
+
}
|
1985
|
+
create$(body) {
|
1986
|
+
return this.baseHttpService.api({
|
1987
|
+
url: `${this.serviceUrl}`,
|
1988
|
+
method: 'post',
|
1989
|
+
body,
|
1990
|
+
});
|
1991
|
+
}
|
1992
|
+
update$(body) {
|
1993
|
+
return this.baseHttpService.api({
|
1994
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1995
|
+
method: 'put',
|
1996
|
+
body,
|
1997
|
+
});
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2001
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
2002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1859
2003
|
type: Injectable
|
1860
2004
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
2005
|
|
@@ -1901,9 +2045,9 @@ class QuoteApiService {
|
|
1901
2045
|
});
|
1902
2046
|
}
|
1903
2047
|
}
|
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.
|
2048
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2049
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
2051
|
type: Injectable
|
1908
2052
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
2053
|
|
@@ -1929,9 +2073,135 @@ class RampApiService {
|
|
1929
2073
|
});
|
1930
2074
|
}
|
1931
2075
|
}
|
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.
|
2076
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2077
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2079
|
+
type: Injectable
|
2080
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2081
|
+
|
2082
|
+
class RebateProgramApiService {
|
2083
|
+
constructor(baseHttpService) {
|
2084
|
+
this.baseHttpService = baseHttpService;
|
2085
|
+
this.serviceUrl = '/admin/rebate-program';
|
2086
|
+
this.fetchAll$ = () => {
|
2087
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2088
|
+
};
|
2089
|
+
this.fetchOne$ = (id) => {
|
2090
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2091
|
+
};
|
2092
|
+
this.remove$ = (id) => {
|
2093
|
+
return this.baseHttpService.api({
|
2094
|
+
url: `${this.serviceUrl}/${id}`,
|
2095
|
+
method: 'delete',
|
2096
|
+
});
|
2097
|
+
};
|
2098
|
+
this.restore$ = (id) => {
|
2099
|
+
return this.baseHttpService.api({
|
2100
|
+
method: 'patch',
|
2101
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2102
|
+
});
|
2103
|
+
};
|
2104
|
+
this.duplicate$ = (body) => {
|
2105
|
+
return this.baseHttpService
|
2106
|
+
.api({
|
2107
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2108
|
+
method: 'post',
|
2109
|
+
body,
|
2110
|
+
})
|
2111
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2112
|
+
};
|
2113
|
+
}
|
2114
|
+
search$(expression, skip, count) {
|
2115
|
+
let params = new HttpParams();
|
2116
|
+
if (typeof skip === 'number') {
|
2117
|
+
params = params.set('skip', '' + skip);
|
2118
|
+
}
|
2119
|
+
if (typeof count === 'number') {
|
2120
|
+
params = params.set('count', '' + count);
|
2121
|
+
}
|
2122
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2123
|
+
}
|
2124
|
+
create$(body) {
|
2125
|
+
return this.baseHttpService.api({
|
2126
|
+
url: `${this.serviceUrl}`,
|
2127
|
+
method: 'post',
|
2128
|
+
body,
|
2129
|
+
});
|
2130
|
+
}
|
2131
|
+
update$(body) {
|
2132
|
+
return this.baseHttpService.api({
|
2133
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2134
|
+
method: 'put',
|
2135
|
+
body,
|
2136
|
+
});
|
2137
|
+
}
|
2138
|
+
}
|
2139
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2140
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2142
|
+
type: Injectable
|
2143
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2144
|
+
|
2145
|
+
class RebateTypeApiService {
|
2146
|
+
constructor(baseHttpService) {
|
2147
|
+
this.baseHttpService = baseHttpService;
|
2148
|
+
this.serviceUrl = '/admin/rebate-type';
|
2149
|
+
this.fetchAll$ = () => {
|
2150
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2151
|
+
};
|
2152
|
+
this.fetchOne$ = (id) => {
|
2153
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2154
|
+
};
|
2155
|
+
this.remove$ = (id) => {
|
2156
|
+
return this.baseHttpService.api({
|
2157
|
+
url: `${this.serviceUrl}/${id}`,
|
2158
|
+
method: 'delete',
|
2159
|
+
});
|
2160
|
+
};
|
2161
|
+
this.restore$ = (id) => {
|
2162
|
+
return this.baseHttpService.api({
|
2163
|
+
method: 'patch',
|
2164
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2165
|
+
});
|
2166
|
+
};
|
2167
|
+
this.duplicate$ = (body) => {
|
2168
|
+
return this.baseHttpService
|
2169
|
+
.api({
|
2170
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2171
|
+
method: 'post',
|
2172
|
+
body,
|
2173
|
+
})
|
2174
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2175
|
+
};
|
2176
|
+
}
|
2177
|
+
search$(expression, skip, count) {
|
2178
|
+
let params = new HttpParams();
|
2179
|
+
if (typeof skip === 'number') {
|
2180
|
+
params = params.set('skip', '' + skip);
|
2181
|
+
}
|
2182
|
+
if (typeof count === 'number') {
|
2183
|
+
params = params.set('count', '' + count);
|
2184
|
+
}
|
2185
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2186
|
+
}
|
2187
|
+
create$(body) {
|
2188
|
+
return this.baseHttpService.api({
|
2189
|
+
url: `${this.serviceUrl}`,
|
2190
|
+
method: 'post',
|
2191
|
+
body,
|
2192
|
+
});
|
2193
|
+
}
|
2194
|
+
update$(body) {
|
2195
|
+
return this.baseHttpService.api({
|
2196
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2197
|
+
method: 'put',
|
2198
|
+
body,
|
2199
|
+
});
|
2200
|
+
}
|
2201
|
+
}
|
2202
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2203
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2205
|
type: Injectable
|
1936
2206
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2207
|
|
@@ -1985,9 +2255,9 @@ class RuleGroupsApiService {
|
|
1985
2255
|
};
|
1986
2256
|
}
|
1987
2257
|
}
|
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.
|
2258
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2259
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2261
|
type: Injectable
|
1992
2262
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2263
|
|
@@ -2000,8 +2270,12 @@ class RulesApiService {
|
|
2000
2270
|
};
|
2001
2271
|
this.searchRules$ = (expression, skip, count) => {
|
2002
2272
|
let params = new HttpParams();
|
2003
|
-
|
2004
|
-
|
2273
|
+
if (typeof skip === 'number') {
|
2274
|
+
params = params.set('skip', '' + skip);
|
2275
|
+
}
|
2276
|
+
if (typeof count === 'number') {
|
2277
|
+
params = params.set('count', '' + count);
|
2278
|
+
}
|
2005
2279
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2006
2280
|
};
|
2007
2281
|
this.createRule$ = (rule) => {
|
@@ -2053,17 +2327,26 @@ class RulesApiService {
|
|
2053
2327
|
});
|
2054
2328
|
}
|
2055
2329
|
execute$(body) {
|
2056
|
-
const url = body.rule.ruleGroupType
|
2330
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
2057
2331
|
return this.baseHttpService.api({
|
2058
2332
|
url,
|
2059
2333
|
method: 'post',
|
2060
2334
|
body,
|
2061
2335
|
});
|
2062
2336
|
}
|
2337
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2338
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2339
|
+
return '/rules/eligibility/execute';
|
2340
|
+
}
|
2341
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2342
|
+
return '/rules/catalog/execute';
|
2343
|
+
}
|
2344
|
+
return '/rules/execute';
|
2345
|
+
}
|
2063
2346
|
}
|
2064
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2065
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2347
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2348
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2067
2350
|
type: Injectable
|
2068
2351
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2069
2352
|
|
@@ -2076,8 +2359,12 @@ class ScriptsApiService {
|
|
2076
2359
|
};
|
2077
2360
|
this.searchScripts$ = (expression, skip, count) => {
|
2078
2361
|
let params = new HttpParams();
|
2079
|
-
|
2080
|
-
|
2362
|
+
if (typeof skip === 'number') {
|
2363
|
+
params = params.set('skip', '' + skip);
|
2364
|
+
}
|
2365
|
+
if (typeof count === 'number') {
|
2366
|
+
params = params.set('count', '' + count);
|
2367
|
+
}
|
2081
2368
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2082
2369
|
};
|
2083
2370
|
this.fetchScript$ = (id) => {
|
@@ -2133,9 +2420,9 @@ class ScriptsApiService {
|
|
2133
2420
|
};
|
2134
2421
|
}
|
2135
2422
|
}
|
2136
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2137
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2423
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2424
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2139
2426
|
type: Injectable
|
2140
2427
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2141
2428
|
|
@@ -2156,9 +2443,9 @@ class ShoppingCartSettingsApiService {
|
|
2156
2443
|
}, {})));
|
2157
2444
|
}
|
2158
2445
|
}
|
2159
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2160
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2446
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2447
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2162
2449
|
type: Injectable
|
2163
2450
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2164
2451
|
|
@@ -2204,9 +2491,9 @@ class StatefulConfigurationApiService {
|
|
2204
2491
|
});
|
2205
2492
|
}
|
2206
2493
|
}
|
2207
|
-
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2208
|
-
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2494
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2495
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2210
2497
|
type: Injectable
|
2211
2498
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
2499
|
|
@@ -2273,9 +2560,9 @@ class UIDefinitionsApiService {
|
|
2273
2560
|
return `/models/${modelId}/uidefinitions`;
|
2274
2561
|
}
|
2275
2562
|
}
|
2276
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2277
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2563
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2564
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2279
2566
|
type: Injectable
|
2280
2567
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2281
2568
|
|
@@ -2561,9 +2848,9 @@ class UITemplatesApiService {
|
|
2561
2848
|
});
|
2562
2849
|
}
|
2563
2850
|
}
|
2564
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2565
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2851
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2852
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2567
2854
|
type: Injectable
|
2568
2855
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2569
2856
|
|
@@ -2599,6 +2886,15 @@ class VeloceObjectsApiService {
|
|
2599
2886
|
url: `${this.serviceUrl}/${id}`,
|
2600
2887
|
});
|
2601
2888
|
};
|
2889
|
+
this.duplicateObject$ = (body) => {
|
2890
|
+
return this.baseHttpService
|
2891
|
+
.api({
|
2892
|
+
method: 'post',
|
2893
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2894
|
+
body,
|
2895
|
+
})
|
2896
|
+
.pipe(map(response => response.clonedRecordId));
|
2897
|
+
};
|
2602
2898
|
this.restoreObject$ = (id) => {
|
2603
2899
|
return this.baseHttpService.api({
|
2604
2900
|
method: 'patch',
|
@@ -2637,17 +2933,89 @@ class VeloceObjectsApiService {
|
|
2637
2933
|
});
|
2638
2934
|
}
|
2639
2935
|
}
|
2640
|
-
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2641
|
-
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2936
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2937
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2939
|
+
type: Injectable
|
2940
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2941
|
+
|
2942
|
+
class PortalsApiService {
|
2943
|
+
constructor(baseHttpService) {
|
2944
|
+
this.baseHttpService = baseHttpService;
|
2945
|
+
this.serviceUrl = '/admin/portal';
|
2946
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
2947
|
+
let params = new HttpParams();
|
2948
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
2949
|
+
params = params.append('skip', '0');
|
2950
|
+
params = params.append('name', name);
|
2951
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
2952
|
+
};
|
2953
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
2954
|
+
let params = new HttpParams();
|
2955
|
+
params = params.set('skip', '' + skip);
|
2956
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
2957
|
+
return this.baseHttpService.api({
|
2958
|
+
method: 'post',
|
2959
|
+
url: `${this.serviceUrl}/search`,
|
2960
|
+
params,
|
2961
|
+
body: expression || {},
|
2962
|
+
});
|
2963
|
+
};
|
2964
|
+
this.removePortal$ = (id) => {
|
2965
|
+
return this.baseHttpService.api({
|
2966
|
+
url: `${this.serviceUrl}/${id}`,
|
2967
|
+
method: 'delete',
|
2968
|
+
});
|
2969
|
+
};
|
2970
|
+
this.restore$ = (id) => {
|
2971
|
+
return this.baseHttpService.api({
|
2972
|
+
method: 'patch',
|
2973
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2974
|
+
});
|
2975
|
+
};
|
2976
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
2977
|
+
return this.baseHttpService.api({
|
2978
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
2979
|
+
method: 'post',
|
2980
|
+
body: cloneRequest,
|
2981
|
+
});
|
2982
|
+
};
|
2983
|
+
this.getPortal$ = (id) => {
|
2984
|
+
return this.baseHttpService.api({
|
2985
|
+
url: `${this.serviceUrl}/${id}`,
|
2986
|
+
});
|
2987
|
+
};
|
2988
|
+
}
|
2989
|
+
createNewPortal$(body) {
|
2990
|
+
return this.baseHttpService.api({
|
2991
|
+
url: `${this.serviceUrl}`,
|
2992
|
+
method: 'post',
|
2993
|
+
body,
|
2994
|
+
});
|
2995
|
+
}
|
2996
|
+
updatePortal$(portal, settings) {
|
2997
|
+
return this.baseHttpService.api({
|
2998
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
2999
|
+
method: 'put',
|
3000
|
+
body: {
|
3001
|
+
...portal,
|
3002
|
+
settings: JSON.stringify(settings),
|
3003
|
+
},
|
3004
|
+
});
|
3005
|
+
}
|
3006
|
+
}
|
3007
|
+
PortalsApiService.MAX_RESULTS = 60;
|
3008
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
3009
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
3010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
2643
3011
|
type: Injectable
|
2644
3012
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2645
3013
|
|
2646
3014
|
class ApiModule {
|
2647
3015
|
}
|
2648
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2649
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
2650
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
3016
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
3017
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
3018
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2651
3019
|
BaseHttpService,
|
2652
3020
|
XrayService,
|
2653
3021
|
ConfigurationApiService,
|
@@ -2681,8 +3049,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2681
3049
|
UIDefinitionsApiService,
|
2682
3050
|
VeloceObjectsApiService,
|
2683
3051
|
StatefulConfigurationApiService,
|
3052
|
+
RebateProgramApiService,
|
3053
|
+
RebateTypeApiService,
|
3054
|
+
PromotionsApiService,
|
3055
|
+
VeloceAuthService,
|
3056
|
+
ContractedPriceApiService,
|
3057
|
+
PortalsApiService,
|
2684
3058
|
], imports: [HttpClientModule] });
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2686
3060
|
type: NgModule,
|
2687
3061
|
args: [{
|
2688
3062
|
imports: [HttpClientModule],
|
@@ -2720,6 +3094,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2720
3094
|
UIDefinitionsApiService,
|
2721
3095
|
VeloceObjectsApiService,
|
2722
3096
|
StatefulConfigurationApiService,
|
3097
|
+
RebateProgramApiService,
|
3098
|
+
RebateTypeApiService,
|
3099
|
+
PromotionsApiService,
|
3100
|
+
VeloceAuthService,
|
3101
|
+
ContractedPriceApiService,
|
3102
|
+
PortalsApiService,
|
2723
3103
|
],
|
2724
3104
|
}]
|
2725
3105
|
}] });
|
@@ -2728,5 +3108,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2728
3108
|
* Generated bundle index. Do not edit.
|
2729
3109
|
*/
|
2730
3110
|
|
2731
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
3111
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
|
2732
3112
|
//# sourceMappingURL=veloceapps-api.mjs.map
|