@veloceapps/api 8.0.0-7 → 8.0.0-70
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';
|
@@ -53,12 +53,30 @@ class AccountApiService {
|
|
53
53
|
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/${accountId}/orders/${orderId}/to-asset`, method: 'post', body: { id: orderId } }, options));
|
54
54
|
}
|
55
55
|
}
|
56
|
-
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
57
|
-
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
56
|
+
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
57
|
+
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
|
59
59
|
type: Injectable
|
60
60
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
61
61
|
|
62
|
+
class VeloceAuthService {
|
63
|
+
constructor(http) {
|
64
|
+
this.http = http;
|
65
|
+
}
|
66
|
+
auth$(instanceUrl, accessToken) {
|
67
|
+
const headers = new HttpHeaders({
|
68
|
+
'Content-Type': 'application/json',
|
69
|
+
Authorization: `Bearer ${accessToken}`,
|
70
|
+
});
|
71
|
+
return this.http.get(`${instanceUrl}/services/apexrest/VELOCPQ/veloce-auth`, { headers });
|
72
|
+
}
|
73
|
+
}
|
74
|
+
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 });
|
75
|
+
VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
|
77
|
+
type: Injectable
|
78
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
79
|
+
|
62
80
|
class CatalogAdminApiService {
|
63
81
|
constructor(baseHttpService) {
|
64
82
|
this.baseHttpService = baseHttpService;
|
@@ -240,9 +258,9 @@ class CatalogAdminApiService {
|
|
240
258
|
}
|
241
259
|
}
|
242
260
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
243
|
-
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
244
|
-
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
261
|
+
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
262
|
+
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
|
246
264
|
type: Injectable
|
247
265
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
248
266
|
|
@@ -326,9 +344,9 @@ class CatalogApiService {
|
|
326
344
|
});
|
327
345
|
}
|
328
346
|
}
|
329
|
-
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
330
|
-
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
347
|
+
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
348
|
+
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
|
332
350
|
type: Injectable
|
333
351
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
334
352
|
|
@@ -354,6 +372,23 @@ class ConfigurationApiService {
|
|
354
372
|
}
|
355
373
|
}));
|
356
374
|
}
|
375
|
+
customConfigurePrice({ url, configurationRequest, runtimeModel, }) {
|
376
|
+
return this.httpService
|
377
|
+
.api({
|
378
|
+
method: 'post',
|
379
|
+
url,
|
380
|
+
body: configurationRequest,
|
381
|
+
errorHandler: e => throwError(e),
|
382
|
+
})
|
383
|
+
.pipe(map(configurePrice => {
|
384
|
+
if (runtimeModel) {
|
385
|
+
return Object.assign(Object.assign({}, configurePrice), { lineItem: this.updatePortDomains(configurePrice.lineItem, runtimeModel) });
|
386
|
+
}
|
387
|
+
else {
|
388
|
+
return configurePrice;
|
389
|
+
}
|
390
|
+
}));
|
391
|
+
}
|
357
392
|
getRuntimeDataByProductId(productId, offeringId) {
|
358
393
|
return this.httpService
|
359
394
|
.api({
|
@@ -382,16 +417,16 @@ class ConfigurationApiService {
|
|
382
417
|
const portDomains = Object.assign({}, lineItem.portDomains);
|
383
418
|
for (const port of (_a = type === null || type === void 0 ? void 0 : type.ports) !== null && _a !== void 0 ? _a : []) {
|
384
419
|
const portDomain = portDomains[port.name];
|
385
|
-
if (((_b = portDomain === null || portDomain === void 0 ? void 0 : portDomain.properties) === null || _b === void 0 ? void 0 : _b['domainComputation']) === '
|
420
|
+
if (((_b = portDomain === null || portDomain === void 0 ? void 0 : portDomain.properties) === null || _b === void 0 ? void 0 : _b['domainComputation']) === ('None')) {
|
386
421
|
portDomain.domainTypes = port.domainTypes;
|
387
422
|
}
|
388
423
|
}
|
389
424
|
return Object.assign(Object.assign({}, lineItem), { lineItems: (_c = lineItem.lineItems) === null || _c === void 0 ? void 0 : _c.map(i => this.updatePortDomains(i, runtimeModel)), portDomains });
|
390
425
|
}
|
391
426
|
}
|
392
|
-
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
393
|
-
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
427
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
428
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
395
430
|
type: Injectable
|
396
431
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
397
432
|
|
@@ -464,9 +499,9 @@ class ConfigurationSettingsApiService {
|
|
464
499
|
return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
|
465
500
|
}
|
466
501
|
}
|
467
|
-
ConfigurationSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
468
|
-
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
502
|
+
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 });
|
503
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
470
505
|
type: Injectable
|
471
506
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
472
507
|
|
@@ -486,9 +521,50 @@ class ContextApiService {
|
|
486
521
|
});
|
487
522
|
}
|
488
523
|
}
|
489
|
-
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
490
|
-
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
491
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
524
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
525
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
527
|
+
type: Injectable
|
528
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
529
|
+
|
530
|
+
class ContractedPriceApiService {
|
531
|
+
constructor(baseHttpService) {
|
532
|
+
this.baseHttpService = baseHttpService;
|
533
|
+
this.serviceUrl = '/admin/contracted-price';
|
534
|
+
this.fetchContractedPrices$ = () => {
|
535
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
536
|
+
};
|
537
|
+
this.fetchContractedPrice$ = (id) => {
|
538
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
539
|
+
};
|
540
|
+
this.createContractedPrice$ = (data) => {
|
541
|
+
return this.baseHttpService.api({
|
542
|
+
url: `${this.serviceUrl}`,
|
543
|
+
method: 'put',
|
544
|
+
body: data,
|
545
|
+
});
|
546
|
+
};
|
547
|
+
this.updateContractedPrice$ = (data) => {
|
548
|
+
return this.baseHttpService.api({
|
549
|
+
url: `${this.serviceUrl}/${data.id}`,
|
550
|
+
method: 'put',
|
551
|
+
body: data,
|
552
|
+
});
|
553
|
+
};
|
554
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
555
|
+
const params = new HttpParams({ fromObject: Object.assign({}, searchParams) });
|
556
|
+
return this.baseHttpService.api({
|
557
|
+
method: 'post',
|
558
|
+
url: `${this.serviceUrl}/search`,
|
559
|
+
params,
|
560
|
+
body: expression || {},
|
561
|
+
});
|
562
|
+
};
|
563
|
+
}
|
564
|
+
}
|
565
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
566
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
492
568
|
type: Injectable
|
493
569
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
494
570
|
|
@@ -506,9 +582,9 @@ class DeltaApiService {
|
|
506
582
|
});
|
507
583
|
}
|
508
584
|
}
|
509
|
-
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
510
|
-
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
585
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
586
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
512
588
|
type: Injectable
|
513
589
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
514
590
|
|
@@ -568,9 +644,9 @@ class DocumentAttachmentApiService {
|
|
568
644
|
});
|
569
645
|
}
|
570
646
|
}
|
571
|
-
DocumentAttachmentApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
572
|
-
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
647
|
+
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 });
|
648
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
574
650
|
type: Injectable
|
575
651
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
576
652
|
|
@@ -612,7 +688,9 @@ class SalesforceApiService {
|
|
612
688
|
return this.httpService.api(Object.assign({ method: 'post', url: methodUrl, body: fields }, options));
|
613
689
|
}
|
614
690
|
apexGetRequest(path, params, options) {
|
615
|
-
|
691
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
692
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
693
|
+
return this.httpService.api(Object.assign({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams }, options));
|
616
694
|
}
|
617
695
|
apexPostRequest(path, body, options) {
|
618
696
|
return this.httpService.api(Object.assign({ method: 'post', body, url: `${this.SERVICE_URL}/apex${path}` }, options));
|
@@ -630,9 +708,9 @@ class SalesforceApiService {
|
|
630
708
|
});
|
631
709
|
}
|
632
710
|
}
|
633
|
-
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
634
|
-
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
711
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
712
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
636
714
|
type: Injectable
|
637
715
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
638
716
|
|
@@ -884,11 +962,11 @@ class DocumentTemplatesApiService {
|
|
884
962
|
return forkJoin(attachmentIds.map(id => this.documentAttachmentService.getAttachmentFile(id, true)));
|
885
963
|
}
|
886
964
|
queryObject({ objectName, resultObjectName, fields, statement }, { properties }) {
|
887
|
-
var _a;
|
965
|
+
var _a, _b;
|
888
966
|
const patternLimit = /(\s*limit\s\d*)/i;
|
889
967
|
let limit = 1;
|
890
968
|
if (statement && patternLimit.test(statement)) {
|
891
|
-
const limitStr = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1].trim().substring(5).trim();
|
969
|
+
const limitStr = (_b = (_a = statement === null || statement === void 0 ? void 0 : statement.match(patternLimit)) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.trim().substring(5).trim();
|
892
970
|
if (limitStr) {
|
893
971
|
limit = Number.parseInt(limitStr, 10);
|
894
972
|
}
|
@@ -901,11 +979,11 @@ class DocumentTemplatesApiService {
|
|
901
979
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
902
980
|
}
|
903
981
|
}
|
904
|
-
DocumentTemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
905
|
-
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
982
|
+
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 });
|
983
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
907
985
|
type: Injectable
|
908
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
986
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
909
987
|
|
910
988
|
class EndpointsApiService {
|
911
989
|
constructor(baseHttpService) {
|
@@ -976,9 +1054,9 @@ class EndpointsApiService {
|
|
976
1054
|
});
|
977
1055
|
}
|
978
1056
|
}
|
979
|
-
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
980
|
-
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1057
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1058
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
982
1060
|
type: Injectable
|
983
1061
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
984
1062
|
|
@@ -996,9 +1074,9 @@ class FlowsApiService {
|
|
996
1074
|
.pipe(map((flow) => ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : [])));
|
997
1075
|
}
|
998
1076
|
}
|
999
|
-
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1000
|
-
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1077
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1078
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1002
1080
|
type: Injectable
|
1003
1081
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1004
1082
|
|
@@ -1057,9 +1135,9 @@ class GuidedSellingsAdminApiService {
|
|
1057
1135
|
}
|
1058
1136
|
}
|
1059
1137
|
GuidedSellingsAdminApiService.MAX_RESULTS = 60;
|
1060
|
-
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1061
|
-
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1138
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1139
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1063
1141
|
type: Injectable
|
1064
1142
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1065
1143
|
|
@@ -1089,9 +1167,9 @@ class GuidedSellingApiService {
|
|
1089
1167
|
});
|
1090
1168
|
}
|
1091
1169
|
}
|
1092
|
-
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1093
|
-
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1170
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1171
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1095
1173
|
type: Injectable
|
1096
1174
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1097
1175
|
|
@@ -1160,9 +1238,9 @@ class OffersApiService {
|
|
1160
1238
|
}
|
1161
1239
|
}
|
1162
1240
|
OffersApiService.MAX_RESULTS = 60;
|
1163
|
-
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1164
|
-
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1241
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1242
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1166
1244
|
type: Injectable
|
1167
1245
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1168
1246
|
|
@@ -1177,11 +1255,11 @@ class OrgInfoApiService {
|
|
1177
1255
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1178
1256
|
}
|
1179
1257
|
}
|
1180
|
-
OrgInfoApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1181
|
-
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1258
|
+
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 });
|
1259
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1183
1261
|
type: Injectable
|
1184
|
-
}], ctorParameters: function () { return [{ type:
|
1262
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1185
1263
|
|
1186
1264
|
class PicklistsApiService {
|
1187
1265
|
constructor(baseHttpService) {
|
@@ -1212,9 +1290,9 @@ class PicklistsApiService {
|
|
1212
1290
|
};
|
1213
1291
|
}
|
1214
1292
|
}
|
1215
|
-
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1216
|
-
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1293
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1294
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1218
1296
|
type: Injectable
|
1219
1297
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1220
1298
|
|
@@ -1272,9 +1350,9 @@ class PriceApiService {
|
|
1272
1350
|
});
|
1273
1351
|
}
|
1274
1352
|
}
|
1275
|
-
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1276
|
-
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1353
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1354
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1278
1356
|
type: Injectable
|
1279
1357
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1280
1358
|
|
@@ -1366,9 +1444,9 @@ class ProceduresApiService {
|
|
1366
1444
|
});
|
1367
1445
|
}
|
1368
1446
|
}
|
1369
|
-
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1370
|
-
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1447
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1448
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1372
1450
|
type: Injectable
|
1373
1451
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1374
1452
|
|
@@ -1514,9 +1592,9 @@ class ProductApiService {
|
|
1514
1592
|
return `${this.serviceUrl}/${productId}/image`;
|
1515
1593
|
}
|
1516
1594
|
}
|
1517
|
-
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1518
|
-
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1595
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1596
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1520
1598
|
type: Injectable
|
1521
1599
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1522
1600
|
|
@@ -1745,9 +1823,72 @@ class ProductModelApiService {
|
|
1745
1823
|
}
|
1746
1824
|
}
|
1747
1825
|
ProductModelApiService.MAX_RESULTS = 200;
|
1748
|
-
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1749
|
-
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1826
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1827
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1829
|
+
type: Injectable
|
1830
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1831
|
+
|
1832
|
+
class PromotionsApiService {
|
1833
|
+
constructor(baseHttpService) {
|
1834
|
+
this.baseHttpService = baseHttpService;
|
1835
|
+
this.serviceUrl = '/admin/promotion';
|
1836
|
+
this.fetchAll$ = () => {
|
1837
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1838
|
+
};
|
1839
|
+
this.fetchOne$ = (id) => {
|
1840
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1841
|
+
};
|
1842
|
+
this.remove$ = (id) => {
|
1843
|
+
return this.baseHttpService.api({
|
1844
|
+
url: `${this.serviceUrl}/${id}`,
|
1845
|
+
method: 'delete',
|
1846
|
+
});
|
1847
|
+
};
|
1848
|
+
this.restore$ = (id) => {
|
1849
|
+
return this.baseHttpService.api({
|
1850
|
+
method: 'patch',
|
1851
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1852
|
+
});
|
1853
|
+
};
|
1854
|
+
this.duplicate$ = (body) => {
|
1855
|
+
return this.baseHttpService
|
1856
|
+
.api({
|
1857
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1858
|
+
method: 'post',
|
1859
|
+
body,
|
1860
|
+
})
|
1861
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1862
|
+
};
|
1863
|
+
}
|
1864
|
+
search$(expression, skip, count) {
|
1865
|
+
let params = new HttpParams();
|
1866
|
+
if (typeof skip === 'number') {
|
1867
|
+
params = params.set('skip', '' + skip);
|
1868
|
+
}
|
1869
|
+
if (typeof count === 'number') {
|
1870
|
+
params = params.set('count', '' + count);
|
1871
|
+
}
|
1872
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1873
|
+
}
|
1874
|
+
create$(body) {
|
1875
|
+
return this.baseHttpService.api({
|
1876
|
+
url: `${this.serviceUrl}`,
|
1877
|
+
method: 'post',
|
1878
|
+
body,
|
1879
|
+
});
|
1880
|
+
}
|
1881
|
+
update$(body) {
|
1882
|
+
return this.baseHttpService.api({
|
1883
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1884
|
+
method: 'put',
|
1885
|
+
body,
|
1886
|
+
});
|
1887
|
+
}
|
1888
|
+
}
|
1889
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1890
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1751
1892
|
type: Injectable
|
1752
1893
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1753
1894
|
|
@@ -1783,9 +1924,9 @@ class QuoteApiService {
|
|
1783
1924
|
});
|
1784
1925
|
}
|
1785
1926
|
}
|
1786
|
-
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1787
|
-
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1927
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1928
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
1929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1789
1930
|
type: Injectable
|
1790
1931
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1791
1932
|
|
@@ -1801,9 +1942,135 @@ class RampApiService {
|
|
1801
1942
|
return this.httpService.api(Object.assign({ method: 'post', url: `${this.SERVICE_URL}/renew`, body: request }, options));
|
1802
1943
|
}
|
1803
1944
|
}
|
1804
|
-
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1805
|
-
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
1945
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1946
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
1947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
1948
|
+
type: Injectable
|
1949
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1950
|
+
|
1951
|
+
class RebateProgramApiService {
|
1952
|
+
constructor(baseHttpService) {
|
1953
|
+
this.baseHttpService = baseHttpService;
|
1954
|
+
this.serviceUrl = '/admin/rebate-program';
|
1955
|
+
this.fetchAll$ = () => {
|
1956
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1957
|
+
};
|
1958
|
+
this.fetchOne$ = (id) => {
|
1959
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1960
|
+
};
|
1961
|
+
this.remove$ = (id) => {
|
1962
|
+
return this.baseHttpService.api({
|
1963
|
+
url: `${this.serviceUrl}/${id}`,
|
1964
|
+
method: 'delete',
|
1965
|
+
});
|
1966
|
+
};
|
1967
|
+
this.restore$ = (id) => {
|
1968
|
+
return this.baseHttpService.api({
|
1969
|
+
method: 'patch',
|
1970
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1971
|
+
});
|
1972
|
+
};
|
1973
|
+
this.duplicate$ = (body) => {
|
1974
|
+
return this.baseHttpService
|
1975
|
+
.api({
|
1976
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1977
|
+
method: 'post',
|
1978
|
+
body,
|
1979
|
+
})
|
1980
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1981
|
+
};
|
1982
|
+
}
|
1983
|
+
search$(expression, skip, count) {
|
1984
|
+
let params = new HttpParams();
|
1985
|
+
if (typeof skip === 'number') {
|
1986
|
+
params = params.set('skip', '' + skip);
|
1987
|
+
}
|
1988
|
+
if (typeof count === 'number') {
|
1989
|
+
params = params.set('count', '' + count);
|
1990
|
+
}
|
1991
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1992
|
+
}
|
1993
|
+
create$(body) {
|
1994
|
+
return this.baseHttpService.api({
|
1995
|
+
url: `${this.serviceUrl}`,
|
1996
|
+
method: 'post',
|
1997
|
+
body,
|
1998
|
+
});
|
1999
|
+
}
|
2000
|
+
update$(body) {
|
2001
|
+
return this.baseHttpService.api({
|
2002
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2003
|
+
method: 'put',
|
2004
|
+
body,
|
2005
|
+
});
|
2006
|
+
}
|
2007
|
+
}
|
2008
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2009
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2011
|
+
type: Injectable
|
2012
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2013
|
+
|
2014
|
+
class RebateTypeApiService {
|
2015
|
+
constructor(baseHttpService) {
|
2016
|
+
this.baseHttpService = baseHttpService;
|
2017
|
+
this.serviceUrl = '/admin/rebate-type';
|
2018
|
+
this.fetchAll$ = () => {
|
2019
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2020
|
+
};
|
2021
|
+
this.fetchOne$ = (id) => {
|
2022
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2023
|
+
};
|
2024
|
+
this.remove$ = (id) => {
|
2025
|
+
return this.baseHttpService.api({
|
2026
|
+
url: `${this.serviceUrl}/${id}`,
|
2027
|
+
method: 'delete',
|
2028
|
+
});
|
2029
|
+
};
|
2030
|
+
this.restore$ = (id) => {
|
2031
|
+
return this.baseHttpService.api({
|
2032
|
+
method: 'patch',
|
2033
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2034
|
+
});
|
2035
|
+
};
|
2036
|
+
this.duplicate$ = (body) => {
|
2037
|
+
return this.baseHttpService
|
2038
|
+
.api({
|
2039
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2040
|
+
method: 'post',
|
2041
|
+
body,
|
2042
|
+
})
|
2043
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2044
|
+
};
|
2045
|
+
}
|
2046
|
+
search$(expression, skip, count) {
|
2047
|
+
let params = new HttpParams();
|
2048
|
+
if (typeof skip === 'number') {
|
2049
|
+
params = params.set('skip', '' + skip);
|
2050
|
+
}
|
2051
|
+
if (typeof count === 'number') {
|
2052
|
+
params = params.set('count', '' + count);
|
2053
|
+
}
|
2054
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2055
|
+
}
|
2056
|
+
create$(body) {
|
2057
|
+
return this.baseHttpService.api({
|
2058
|
+
url: `${this.serviceUrl}`,
|
2059
|
+
method: 'post',
|
2060
|
+
body,
|
2061
|
+
});
|
2062
|
+
}
|
2063
|
+
update$(body) {
|
2064
|
+
return this.baseHttpService.api({
|
2065
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2066
|
+
method: 'put',
|
2067
|
+
body,
|
2068
|
+
});
|
2069
|
+
}
|
2070
|
+
}
|
2071
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2072
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1807
2074
|
type: Injectable
|
1808
2075
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1809
2076
|
|
@@ -1857,9 +2124,9 @@ class RuleGroupsApiService {
|
|
1857
2124
|
};
|
1858
2125
|
}
|
1859
2126
|
}
|
1860
|
-
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1861
|
-
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2127
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2128
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1863
2130
|
type: Injectable
|
1864
2131
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1865
2132
|
|
@@ -1872,8 +2139,12 @@ class RulesApiService {
|
|
1872
2139
|
};
|
1873
2140
|
this.searchRules$ = (expression, skip, count) => {
|
1874
2141
|
let params = new HttpParams();
|
1875
|
-
|
1876
|
-
|
2142
|
+
if (typeof skip === 'number') {
|
2143
|
+
params = params.set('skip', '' + skip);
|
2144
|
+
}
|
2145
|
+
if (typeof count === 'number') {
|
2146
|
+
params = params.set('count', '' + count);
|
2147
|
+
}
|
1877
2148
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1878
2149
|
};
|
1879
2150
|
this.createRule$ = (rule) => {
|
@@ -1925,17 +2196,26 @@ class RulesApiService {
|
|
1925
2196
|
});
|
1926
2197
|
}
|
1927
2198
|
execute$(body) {
|
1928
|
-
const url = body.rule.ruleGroupType
|
2199
|
+
const url = this.getExecuteRuleUrl(body.rule.ruleGroupType);
|
1929
2200
|
return this.baseHttpService.api({
|
1930
2201
|
url,
|
1931
2202
|
method: 'post',
|
1932
2203
|
body,
|
1933
2204
|
});
|
1934
2205
|
}
|
2206
|
+
getExecuteRuleUrl(ruleGroupType) {
|
2207
|
+
if (ruleGroupType === RuleGroupTypes.eligibility) {
|
2208
|
+
return '/rules/eligibility/execute';
|
2209
|
+
}
|
2210
|
+
if (ruleGroupType === RuleGroupTypes.catalog) {
|
2211
|
+
return '/rules/catalog/execute';
|
2212
|
+
}
|
2213
|
+
return '/rules/execute';
|
2214
|
+
}
|
1935
2215
|
}
|
1936
|
-
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
1937
|
-
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
1938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2216
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2217
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
1939
2219
|
type: Injectable
|
1940
2220
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1941
2221
|
|
@@ -1948,8 +2228,12 @@ class ScriptsApiService {
|
|
1948
2228
|
};
|
1949
2229
|
this.searchScripts$ = (expression, skip, count) => {
|
1950
2230
|
let params = new HttpParams();
|
1951
|
-
|
1952
|
-
|
2231
|
+
if (typeof skip === 'number') {
|
2232
|
+
params = params.set('skip', '' + skip);
|
2233
|
+
}
|
2234
|
+
if (typeof count === 'number') {
|
2235
|
+
params = params.set('count', '' + count);
|
2236
|
+
}
|
1953
2237
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1954
2238
|
};
|
1955
2239
|
this.fetchScript$ = (id) => {
|
@@ -2005,9 +2289,9 @@ class ScriptsApiService {
|
|
2005
2289
|
};
|
2006
2290
|
}
|
2007
2291
|
}
|
2008
|
-
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2009
|
-
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2010
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2292
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2293
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2011
2295
|
type: Injectable
|
2012
2296
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2013
2297
|
|
@@ -2028,9 +2312,9 @@ class ShoppingCartSettingsApiService {
|
|
2028
2312
|
}, {})));
|
2029
2313
|
}
|
2030
2314
|
}
|
2031
|
-
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2032
|
-
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2315
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2316
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2034
2318
|
type: Injectable
|
2035
2319
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2036
2320
|
|
@@ -2076,9 +2360,9 @@ class StatefulConfigurationApiService {
|
|
2076
2360
|
});
|
2077
2361
|
}
|
2078
2362
|
}
|
2079
|
-
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2080
|
-
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2363
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2364
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2082
2366
|
type: Injectable
|
2083
2367
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2084
2368
|
|
@@ -2142,9 +2426,9 @@ class UIDefinitionsApiService {
|
|
2142
2426
|
return `/models/${modelId}/uidefinitions`;
|
2143
2427
|
}
|
2144
2428
|
}
|
2145
|
-
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2146
|
-
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2429
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2430
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2148
2432
|
type: Injectable
|
2149
2433
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2150
2434
|
|
@@ -2430,9 +2714,9 @@ class UITemplatesApiService {
|
|
2430
2714
|
});
|
2431
2715
|
}
|
2432
2716
|
}
|
2433
|
-
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2434
|
-
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2717
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2718
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2436
2720
|
type: Injectable
|
2437
2721
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2438
2722
|
|
@@ -2468,6 +2752,15 @@ class VeloceObjectsApiService {
|
|
2468
2752
|
url: `${this.serviceUrl}/${id}`,
|
2469
2753
|
});
|
2470
2754
|
};
|
2755
|
+
this.duplicateObject$ = (body) => {
|
2756
|
+
return this.baseHttpService
|
2757
|
+
.api({
|
2758
|
+
method: 'post',
|
2759
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2760
|
+
body,
|
2761
|
+
})
|
2762
|
+
.pipe(map(response => response.clonedRecordId));
|
2763
|
+
};
|
2471
2764
|
this.restoreObject$ = (id) => {
|
2472
2765
|
return this.baseHttpService.api({
|
2473
2766
|
method: 'patch',
|
@@ -2506,17 +2799,86 @@ class VeloceObjectsApiService {
|
|
2506
2799
|
});
|
2507
2800
|
}
|
2508
2801
|
}
|
2509
|
-
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2510
|
-
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
2511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2802
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2803
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2805
|
+
type: Injectable
|
2806
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2807
|
+
|
2808
|
+
class PortalsApiService {
|
2809
|
+
constructor(baseHttpService) {
|
2810
|
+
this.baseHttpService = baseHttpService;
|
2811
|
+
this.serviceUrl = '/admin/portal';
|
2812
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
2813
|
+
let params = new HttpParams();
|
2814
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
2815
|
+
params = params.append('skip', '0');
|
2816
|
+
params = params.append('name', name);
|
2817
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
2818
|
+
};
|
2819
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
2820
|
+
let params = new HttpParams();
|
2821
|
+
params = params.set('skip', '' + skip);
|
2822
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
2823
|
+
return this.baseHttpService.api({
|
2824
|
+
method: 'post',
|
2825
|
+
url: `${this.serviceUrl}/search`,
|
2826
|
+
params,
|
2827
|
+
body: expression || {},
|
2828
|
+
});
|
2829
|
+
};
|
2830
|
+
this.removePortal$ = (id) => {
|
2831
|
+
return this.baseHttpService.api({
|
2832
|
+
url: `${this.serviceUrl}/${id}`,
|
2833
|
+
method: 'delete',
|
2834
|
+
});
|
2835
|
+
};
|
2836
|
+
this.restore$ = (id) => {
|
2837
|
+
return this.baseHttpService.api({
|
2838
|
+
method: 'patch',
|
2839
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2840
|
+
});
|
2841
|
+
};
|
2842
|
+
this.duplicatePortal$ = (cloneRequest) => {
|
2843
|
+
return this.baseHttpService.api({
|
2844
|
+
url: `${this.serviceUrl}/${cloneRequest.id}/clone`,
|
2845
|
+
method: 'post',
|
2846
|
+
body: cloneRequest,
|
2847
|
+
});
|
2848
|
+
};
|
2849
|
+
this.getPortal$ = (id) => {
|
2850
|
+
return this.baseHttpService.api({
|
2851
|
+
url: `${this.serviceUrl}/${id}`,
|
2852
|
+
});
|
2853
|
+
};
|
2854
|
+
}
|
2855
|
+
createNewPortal$(body) {
|
2856
|
+
return this.baseHttpService.api({
|
2857
|
+
url: `${this.serviceUrl}`,
|
2858
|
+
method: 'post',
|
2859
|
+
body,
|
2860
|
+
});
|
2861
|
+
}
|
2862
|
+
updatePortal$(portal, settings) {
|
2863
|
+
return this.baseHttpService.api({
|
2864
|
+
url: `${this.serviceUrl}/${portal.id}`,
|
2865
|
+
method: 'put',
|
2866
|
+
body: Object.assign(Object.assign({}, portal), { settings: JSON.stringify(settings) }),
|
2867
|
+
});
|
2868
|
+
}
|
2869
|
+
}
|
2870
|
+
PortalsApiService.MAX_RESULTS = 60;
|
2871
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2872
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
2873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
2512
2874
|
type: Injectable
|
2513
2875
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2514
2876
|
|
2515
2877
|
class ApiModule {
|
2516
2878
|
}
|
2517
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
2518
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
2519
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
2879
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2880
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
2881
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2520
2882
|
BaseHttpService,
|
2521
2883
|
XrayService,
|
2522
2884
|
ConfigurationApiService,
|
@@ -2550,8 +2912,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2550
2912
|
UIDefinitionsApiService,
|
2551
2913
|
VeloceObjectsApiService,
|
2552
2914
|
StatefulConfigurationApiService,
|
2915
|
+
RebateProgramApiService,
|
2916
|
+
RebateTypeApiService,
|
2917
|
+
PromotionsApiService,
|
2918
|
+
VeloceAuthService,
|
2919
|
+
ContractedPriceApiService,
|
2920
|
+
PortalsApiService,
|
2553
2921
|
], imports: [HttpClientModule] });
|
2554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2555
2923
|
type: NgModule,
|
2556
2924
|
args: [{
|
2557
2925
|
imports: [HttpClientModule],
|
@@ -2589,6 +2957,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2589
2957
|
UIDefinitionsApiService,
|
2590
2958
|
VeloceObjectsApiService,
|
2591
2959
|
StatefulConfigurationApiService,
|
2960
|
+
RebateProgramApiService,
|
2961
|
+
RebateTypeApiService,
|
2962
|
+
PromotionsApiService,
|
2963
|
+
VeloceAuthService,
|
2964
|
+
ContractedPriceApiService,
|
2965
|
+
PortalsApiService,
|
2592
2966
|
],
|
2593
2967
|
}]
|
2594
2968
|
}] });
|
@@ -2597,5 +2971,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2597
2971
|
* Generated bundle index. Do not edit.
|
2598
2972
|
*/
|
2599
2973
|
|
2600
|
-
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 };
|
2974
|
+
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 };
|
2601
2975
|
//# sourceMappingURL=veloceapps-api.mjs.map
|