@veloceapps/api 8.0.0-5 → 8.0.0-51
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 +6 -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 +73 -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 +10 -6
- 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 +3 -3
- package/esm2020/lib/types/auth.types.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -1
- package/fesm2015/veloceapps-api.mjs +449 -113
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +448 -112
- 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/contracted-price-api.service.d.ts +16 -0
- package/lib/services/portals-api.service.d.ts +17 -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 +1 -1
- package/lib/services/scripts-api.service.d.ts +1 -1
- package/lib/types/auth.types.d.ts +4 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +1 -1
@@ -1,15 +1,15 @@
|
|
1
|
-
import * as
|
2
|
-
import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
1
|
+
import * as i1$1 from '@angular/common/http';
|
2
|
+
import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
5
5
|
import * as i1 from '@veloceapps/core';
|
6
|
-
import { uiDefinitionFromDTO, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
|
-
import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
|
6
|
+
import { uiDefinitionFromDTO, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, UUID, BaseHttpService, XrayService } from '@veloceapps/core';
|
7
|
+
import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1, delay } from 'rxjs';
|
8
8
|
import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
|
9
9
|
import * as i2 from 'primeng/api';
|
10
10
|
import { CurrencyPipe } from '@angular/common';
|
11
11
|
import * as _ from 'lodash';
|
12
|
-
import { omit } from 'lodash';
|
12
|
+
import { omit, uniqueId } from 'lodash';
|
13
13
|
import moment from 'moment';
|
14
14
|
|
15
15
|
class AccountApiService {
|
@@ -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
|
|
@@ -416,7 +434,7 @@ class ConfigurationApiService {
|
|
416
434
|
const portDomains = { ...lineItem.portDomains };
|
417
435
|
for (const port of type?.ports ?? []) {
|
418
436
|
const portDomain = portDomains[port.name];
|
419
|
-
if (portDomain?.properties?.['domainComputation'] === '
|
437
|
+
if (portDomain?.properties?.['domainComputation'] === ('None')) {
|
420
438
|
portDomain.domainTypes = port.domainTypes;
|
421
439
|
}
|
422
440
|
}
|
@@ -427,9 +445,9 @@ class ConfigurationApiService {
|
|
427
445
|
};
|
428
446
|
}
|
429
447
|
}
|
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.
|
448
|
+
ConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
449
|
+
ConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService });
|
450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationApiService, decorators: [{
|
433
451
|
type: Injectable
|
434
452
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
435
453
|
|
@@ -537,9 +555,9 @@ class ConfigurationSettingsApiService {
|
|
537
555
|
});
|
538
556
|
}
|
539
557
|
}
|
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.
|
558
|
+
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 });
|
559
|
+
ConfigurationSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService });
|
560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ConfigurationSettingsApiService, decorators: [{
|
543
561
|
type: Injectable
|
544
562
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i2.MessageService }]; } });
|
545
563
|
|
@@ -559,9 +577,50 @@ class ContextApiService {
|
|
559
577
|
});
|
560
578
|
}
|
561
579
|
}
|
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.
|
580
|
+
ContextApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
581
|
+
ContextApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService });
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContextApiService, decorators: [{
|
583
|
+
type: Injectable
|
584
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
585
|
+
|
586
|
+
class ContractedPriceApiService {
|
587
|
+
constructor(baseHttpService) {
|
588
|
+
this.baseHttpService = baseHttpService;
|
589
|
+
this.serviceUrl = '/admin/contracted-price';
|
590
|
+
this.fetchContractedPrices$ = () => {
|
591
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}` });
|
592
|
+
};
|
593
|
+
this.fetchContractedPrice$ = (id) => {
|
594
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
595
|
+
};
|
596
|
+
this.createContractedPrice$ = (data) => {
|
597
|
+
return this.baseHttpService.api({
|
598
|
+
url: `${this.serviceUrl}`,
|
599
|
+
method: 'put',
|
600
|
+
body: data,
|
601
|
+
});
|
602
|
+
};
|
603
|
+
this.updateContractedPrice$ = (data) => {
|
604
|
+
return this.baseHttpService.api({
|
605
|
+
url: `${this.serviceUrl}/${data.id}`,
|
606
|
+
method: 'put',
|
607
|
+
body: data,
|
608
|
+
});
|
609
|
+
};
|
610
|
+
this.searchContractedPrices$ = (searchParams, expression) => {
|
611
|
+
const params = new HttpParams({ fromObject: { ...searchParams } });
|
612
|
+
return this.baseHttpService.api({
|
613
|
+
method: 'post',
|
614
|
+
url: `${this.serviceUrl}/search`,
|
615
|
+
params,
|
616
|
+
body: expression || {},
|
617
|
+
});
|
618
|
+
};
|
619
|
+
}
|
620
|
+
}
|
621
|
+
ContractedPriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
622
|
+
ContractedPriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService });
|
623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ContractedPriceApiService, decorators: [{
|
565
624
|
type: Injectable
|
566
625
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
626
|
|
@@ -579,9 +638,9 @@ class DeltaApiService {
|
|
579
638
|
});
|
580
639
|
}
|
581
640
|
}
|
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.
|
641
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
642
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
644
|
type: Injectable
|
586
645
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
646
|
|
@@ -641,9 +700,9 @@ class DocumentAttachmentApiService {
|
|
641
700
|
});
|
642
701
|
}
|
643
702
|
}
|
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.
|
703
|
+
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 });
|
704
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
706
|
type: Injectable
|
648
707
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
708
|
|
@@ -698,7 +757,9 @@ class SalesforceApiService {
|
|
698
757
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
758
|
}
|
700
759
|
apexGetRequest(path, params, options) {
|
701
|
-
|
760
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
761
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
762
|
+
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
|
702
763
|
}
|
703
764
|
apexPostRequest(path, body, options) {
|
704
765
|
return this.httpService.api({
|
@@ -721,9 +782,9 @@ class SalesforceApiService {
|
|
721
782
|
});
|
722
783
|
}
|
723
784
|
}
|
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.
|
785
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
786
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
788
|
type: Injectable
|
728
789
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
790
|
|
@@ -989,7 +1050,7 @@ class DocumentTemplatesApiService {
|
|
989
1050
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1051
|
let limit = 1;
|
991
1052
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1053
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1054
|
if (limitStr) {
|
994
1055
|
limit = Number.parseInt(limitStr, 10);
|
995
1056
|
}
|
@@ -1007,11 +1068,11 @@ class DocumentTemplatesApiService {
|
|
1007
1068
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1069
|
}
|
1009
1070
|
}
|
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.
|
1071
|
+
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 });
|
1072
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1074
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1075
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1076
|
|
1016
1077
|
class EndpointsApiService {
|
1017
1078
|
constructor(baseHttpService) {
|
@@ -1082,9 +1143,9 @@ class EndpointsApiService {
|
|
1082
1143
|
});
|
1083
1144
|
}
|
1084
1145
|
}
|
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.
|
1146
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1147
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1088
1149
|
type: Injectable
|
1089
1150
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1151
|
|
@@ -1102,9 +1163,9 @@ class FlowsApiService {
|
|
1102
1163
|
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1103
1164
|
}
|
1104
1165
|
}
|
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.
|
1166
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1167
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1169
|
type: Injectable
|
1109
1170
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1171
|
|
@@ -1163,9 +1224,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1224
|
}
|
1164
1225
|
}
|
1165
1226
|
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.
|
1227
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1228
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1230
|
type: Injectable
|
1170
1231
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1232
|
|
@@ -1195,9 +1256,9 @@ class GuidedSellingApiService {
|
|
1195
1256
|
});
|
1196
1257
|
}
|
1197
1258
|
}
|
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.
|
1259
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1260
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1262
|
type: Injectable
|
1202
1263
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1264
|
|
@@ -1266,9 +1327,9 @@ class OffersApiService {
|
|
1266
1327
|
}
|
1267
1328
|
}
|
1268
1329
|
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.
|
1330
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1331
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1333
|
type: Injectable
|
1273
1334
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1335
|
|
@@ -1282,11 +1343,11 @@ class OrgInfoApiService {
|
|
1282
1343
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1344
|
}
|
1284
1345
|
}
|
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.
|
1346
|
+
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 });
|
1347
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1349
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1350
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1351
|
|
1291
1352
|
class PicklistsApiService {
|
1292
1353
|
constructor(baseHttpService) {
|
@@ -1320,9 +1381,9 @@ class PicklistsApiService {
|
|
1320
1381
|
};
|
1321
1382
|
}
|
1322
1383
|
}
|
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.
|
1384
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1385
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1326
1387
|
type: Injectable
|
1327
1388
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1389
|
|
@@ -1380,9 +1441,9 @@ class PriceApiService {
|
|
1380
1441
|
});
|
1381
1442
|
}
|
1382
1443
|
}
|
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.
|
1444
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1445
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1447
|
type: Injectable
|
1387
1448
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1449
|
|
@@ -1474,9 +1535,9 @@ class ProceduresApiService {
|
|
1474
1535
|
});
|
1475
1536
|
}
|
1476
1537
|
}
|
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.
|
1538
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1539
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1541
|
type: Injectable
|
1481
1542
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1543
|
|
@@ -1622,9 +1683,9 @@ class ProductApiService {
|
|
1622
1683
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1684
|
}
|
1624
1685
|
}
|
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.
|
1686
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1687
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1689
|
type: Injectable
|
1629
1690
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1691
|
|
@@ -1853,9 +1914,72 @@ class ProductModelApiService {
|
|
1853
1914
|
}
|
1854
1915
|
}
|
1855
1916
|
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.
|
1917
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1918
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1920
|
+
type: Injectable
|
1921
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1922
|
+
|
1923
|
+
class PromotionsApiService {
|
1924
|
+
constructor(baseHttpService) {
|
1925
|
+
this.baseHttpService = baseHttpService;
|
1926
|
+
this.serviceUrl = '/admin/promotion';
|
1927
|
+
this.fetchAll$ = () => {
|
1928
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1929
|
+
};
|
1930
|
+
this.fetchOne$ = (id) => {
|
1931
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1932
|
+
};
|
1933
|
+
this.remove$ = (id) => {
|
1934
|
+
return this.baseHttpService.api({
|
1935
|
+
url: `${this.serviceUrl}/${id}`,
|
1936
|
+
method: 'delete',
|
1937
|
+
});
|
1938
|
+
};
|
1939
|
+
this.restore$ = (id) => {
|
1940
|
+
return this.baseHttpService.api({
|
1941
|
+
method: 'patch',
|
1942
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1943
|
+
});
|
1944
|
+
};
|
1945
|
+
this.duplicate$ = (body) => {
|
1946
|
+
return this.baseHttpService
|
1947
|
+
.api({
|
1948
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1949
|
+
method: 'post',
|
1950
|
+
body,
|
1951
|
+
})
|
1952
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1953
|
+
};
|
1954
|
+
}
|
1955
|
+
search$(expression, skip, count) {
|
1956
|
+
let params = new HttpParams();
|
1957
|
+
if (typeof skip === 'number') {
|
1958
|
+
params = params.set('skip', '' + skip);
|
1959
|
+
}
|
1960
|
+
if (typeof count === 'number') {
|
1961
|
+
params = params.set('count', '' + count);
|
1962
|
+
}
|
1963
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1964
|
+
}
|
1965
|
+
create$(body) {
|
1966
|
+
return this.baseHttpService.api({
|
1967
|
+
url: `${this.serviceUrl}`,
|
1968
|
+
method: 'post',
|
1969
|
+
body,
|
1970
|
+
});
|
1971
|
+
}
|
1972
|
+
update$(body) {
|
1973
|
+
return this.baseHttpService.api({
|
1974
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1975
|
+
method: 'put',
|
1976
|
+
body,
|
1977
|
+
});
|
1978
|
+
}
|
1979
|
+
}
|
1980
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1981
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
1982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1859
1983
|
type: Injectable
|
1860
1984
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
1985
|
|
@@ -1901,9 +2025,9 @@ class QuoteApiService {
|
|
1901
2025
|
});
|
1902
2026
|
}
|
1903
2027
|
}
|
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.
|
2028
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2029
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
2030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
2031
|
type: Injectable
|
1908
2032
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
2033
|
|
@@ -1929,9 +2053,135 @@ class RampApiService {
|
|
1929
2053
|
});
|
1930
2054
|
}
|
1931
2055
|
}
|
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.
|
2056
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2057
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2059
|
+
type: Injectable
|
2060
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2061
|
+
|
2062
|
+
class RebateProgramApiService {
|
2063
|
+
constructor(baseHttpService) {
|
2064
|
+
this.baseHttpService = baseHttpService;
|
2065
|
+
this.serviceUrl = '/admin/rebate-program';
|
2066
|
+
this.fetchAll$ = () => {
|
2067
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2068
|
+
};
|
2069
|
+
this.fetchOne$ = (id) => {
|
2070
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2071
|
+
};
|
2072
|
+
this.remove$ = (id) => {
|
2073
|
+
return this.baseHttpService.api({
|
2074
|
+
url: `${this.serviceUrl}/${id}`,
|
2075
|
+
method: 'delete',
|
2076
|
+
});
|
2077
|
+
};
|
2078
|
+
this.restore$ = (id) => {
|
2079
|
+
return this.baseHttpService.api({
|
2080
|
+
method: 'patch',
|
2081
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2082
|
+
});
|
2083
|
+
};
|
2084
|
+
this.duplicate$ = (body) => {
|
2085
|
+
return this.baseHttpService
|
2086
|
+
.api({
|
2087
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2088
|
+
method: 'post',
|
2089
|
+
body,
|
2090
|
+
})
|
2091
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2092
|
+
};
|
2093
|
+
}
|
2094
|
+
search$(expression, skip, count) {
|
2095
|
+
let params = new HttpParams();
|
2096
|
+
if (typeof skip === 'number') {
|
2097
|
+
params = params.set('skip', '' + skip);
|
2098
|
+
}
|
2099
|
+
if (typeof count === 'number') {
|
2100
|
+
params = params.set('count', '' + count);
|
2101
|
+
}
|
2102
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2103
|
+
}
|
2104
|
+
create$(body) {
|
2105
|
+
return this.baseHttpService.api({
|
2106
|
+
url: `${this.serviceUrl}`,
|
2107
|
+
method: 'post',
|
2108
|
+
body,
|
2109
|
+
});
|
2110
|
+
}
|
2111
|
+
update$(body) {
|
2112
|
+
return this.baseHttpService.api({
|
2113
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2114
|
+
method: 'put',
|
2115
|
+
body,
|
2116
|
+
});
|
2117
|
+
}
|
2118
|
+
}
|
2119
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2120
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2122
|
+
type: Injectable
|
2123
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2124
|
+
|
2125
|
+
class RebateTypeApiService {
|
2126
|
+
constructor(baseHttpService) {
|
2127
|
+
this.baseHttpService = baseHttpService;
|
2128
|
+
this.serviceUrl = '/admin/rebate-type';
|
2129
|
+
this.fetchAll$ = () => {
|
2130
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2131
|
+
};
|
2132
|
+
this.fetchOne$ = (id) => {
|
2133
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2134
|
+
};
|
2135
|
+
this.remove$ = (id) => {
|
2136
|
+
return this.baseHttpService.api({
|
2137
|
+
url: `${this.serviceUrl}/${id}`,
|
2138
|
+
method: 'delete',
|
2139
|
+
});
|
2140
|
+
};
|
2141
|
+
this.restore$ = (id) => {
|
2142
|
+
return this.baseHttpService.api({
|
2143
|
+
method: 'patch',
|
2144
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2145
|
+
});
|
2146
|
+
};
|
2147
|
+
this.duplicate$ = (body) => {
|
2148
|
+
return this.baseHttpService
|
2149
|
+
.api({
|
2150
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2151
|
+
method: 'post',
|
2152
|
+
body,
|
2153
|
+
})
|
2154
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2155
|
+
};
|
2156
|
+
}
|
2157
|
+
search$(expression, skip, count) {
|
2158
|
+
let params = new HttpParams();
|
2159
|
+
if (typeof skip === 'number') {
|
2160
|
+
params = params.set('skip', '' + skip);
|
2161
|
+
}
|
2162
|
+
if (typeof count === 'number') {
|
2163
|
+
params = params.set('count', '' + count);
|
2164
|
+
}
|
2165
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2166
|
+
}
|
2167
|
+
create$(body) {
|
2168
|
+
return this.baseHttpService.api({
|
2169
|
+
url: `${this.serviceUrl}`,
|
2170
|
+
method: 'post',
|
2171
|
+
body,
|
2172
|
+
});
|
2173
|
+
}
|
2174
|
+
update$(body) {
|
2175
|
+
return this.baseHttpService.api({
|
2176
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2177
|
+
method: 'put',
|
2178
|
+
body,
|
2179
|
+
});
|
2180
|
+
}
|
2181
|
+
}
|
2182
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2183
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2185
|
type: Injectable
|
1936
2186
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2187
|
|
@@ -1985,9 +2235,9 @@ class RuleGroupsApiService {
|
|
1985
2235
|
};
|
1986
2236
|
}
|
1987
2237
|
}
|
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.
|
2238
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2239
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2241
|
type: Injectable
|
1992
2242
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2243
|
|
@@ -2000,8 +2250,12 @@ class RulesApiService {
|
|
2000
2250
|
};
|
2001
2251
|
this.searchRules$ = (expression, skip, count) => {
|
2002
2252
|
let params = new HttpParams();
|
2003
|
-
|
2004
|
-
|
2253
|
+
if (typeof skip === 'number') {
|
2254
|
+
params = params.set('skip', '' + skip);
|
2255
|
+
}
|
2256
|
+
if (typeof count === 'number') {
|
2257
|
+
params = params.set('count', '' + count);
|
2258
|
+
}
|
2005
2259
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2006
2260
|
};
|
2007
2261
|
this.createRule$ = (rule) => {
|
@@ -2061,9 +2315,9 @@ class RulesApiService {
|
|
2061
2315
|
});
|
2062
2316
|
}
|
2063
2317
|
}
|
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.
|
2318
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2319
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2067
2321
|
type: Injectable
|
2068
2322
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2069
2323
|
|
@@ -2076,8 +2330,12 @@ class ScriptsApiService {
|
|
2076
2330
|
};
|
2077
2331
|
this.searchScripts$ = (expression, skip, count) => {
|
2078
2332
|
let params = new HttpParams();
|
2079
|
-
|
2080
|
-
|
2333
|
+
if (typeof skip === 'number') {
|
2334
|
+
params = params.set('skip', '' + skip);
|
2335
|
+
}
|
2336
|
+
if (typeof count === 'number') {
|
2337
|
+
params = params.set('count', '' + count);
|
2338
|
+
}
|
2081
2339
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2082
2340
|
};
|
2083
2341
|
this.fetchScript$ = (id) => {
|
@@ -2133,9 +2391,9 @@ class ScriptsApiService {
|
|
2133
2391
|
};
|
2134
2392
|
}
|
2135
2393
|
}
|
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.
|
2394
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2395
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2139
2397
|
type: Injectable
|
2140
2398
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2141
2399
|
|
@@ -2156,9 +2414,9 @@ class ShoppingCartSettingsApiService {
|
|
2156
2414
|
}, {})));
|
2157
2415
|
}
|
2158
2416
|
}
|
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.
|
2417
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2418
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2162
2420
|
type: Injectable
|
2163
2421
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2164
2422
|
|
@@ -2204,9 +2462,9 @@ class StatefulConfigurationApiService {
|
|
2204
2462
|
});
|
2205
2463
|
}
|
2206
2464
|
}
|
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.
|
2465
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2466
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2210
2468
|
type: Injectable
|
2211
2469
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
2470
|
|
@@ -2273,9 +2531,9 @@ class UIDefinitionsApiService {
|
|
2273
2531
|
return `/models/${modelId}/uidefinitions`;
|
2274
2532
|
}
|
2275
2533
|
}
|
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.
|
2534
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2535
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2279
2537
|
type: Injectable
|
2280
2538
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2281
2539
|
|
@@ -2561,9 +2819,9 @@ class UITemplatesApiService {
|
|
2561
2819
|
});
|
2562
2820
|
}
|
2563
2821
|
}
|
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.
|
2822
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2823
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2567
2825
|
type: Injectable
|
2568
2826
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2569
2827
|
|
@@ -2637,17 +2895,83 @@ class VeloceObjectsApiService {
|
|
2637
2895
|
});
|
2638
2896
|
}
|
2639
2897
|
}
|
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.
|
2898
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2899
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2901
|
+
type: Injectable
|
2902
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2903
|
+
|
2904
|
+
class PortalsApiService {
|
2905
|
+
constructor(baseHttpService) {
|
2906
|
+
this.baseHttpService = baseHttpService;
|
2907
|
+
this.serviceUrl = '/portals';
|
2908
|
+
this.getPortals$ = (skip = 1, name = '') => {
|
2909
|
+
let params = new HttpParams();
|
2910
|
+
params = params.append('count', (PortalsApiService.MAX_RESULTS * skip).toString());
|
2911
|
+
params = params.append('skip', '0');
|
2912
|
+
params = params.append('name', name);
|
2913
|
+
return of([
|
2914
|
+
{ id: UUID.UUID(), name: 'portal1', description: 'portal1 description' },
|
2915
|
+
{ id: UUID.UUID(), name: 'portal2', description: 'portal2 description' },
|
2916
|
+
{ id: UUID.UUID(), name: 'portal3', description: 'portal3 description' },
|
2917
|
+
{ id: UUID.UUID(), name: 'portal4', description: 'portal4 description' },
|
2918
|
+
{ id: UUID.UUID(), name: 'portal5', description: 'portal5 description' },
|
2919
|
+
]);
|
2920
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}`, params });
|
2921
|
+
};
|
2922
|
+
this.searchPortals$ = (skip = 0, expression) => {
|
2923
|
+
let params = new HttpParams();
|
2924
|
+
params = params.set('skip', '' + skip);
|
2925
|
+
params = params.set('count', '' + PortalsApiService.MAX_RESULTS);
|
2926
|
+
return this.baseHttpService.api({
|
2927
|
+
method: 'post',
|
2928
|
+
url: `${this.serviceUrl}/search`,
|
2929
|
+
params,
|
2930
|
+
body: expression || {},
|
2931
|
+
});
|
2932
|
+
};
|
2933
|
+
this.removePortal$ = (id) => {
|
2934
|
+
return of(id); // remove when API will be ready
|
2935
|
+
return this.baseHttpService.api({
|
2936
|
+
url: `${this.serviceUrl}/${id}`,
|
2937
|
+
method: 'delete',
|
2938
|
+
});
|
2939
|
+
};
|
2940
|
+
this.restore$ = (id) => {
|
2941
|
+
return of(); // remove what API will be ready
|
2942
|
+
return this.baseHttpService.api({
|
2943
|
+
method: 'patch',
|
2944
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2945
|
+
});
|
2946
|
+
};
|
2947
|
+
this.getPortal$ = (id) => {
|
2948
|
+
return of({ name: 'Awesome Portal', description: 'I am an awesome portal!', id }).pipe(delay(400));
|
2949
|
+
// return this.baseHttpService.api({ todo uncomment when DM-1275 is ready
|
2950
|
+
// url: `${this.serviceUrl}/${id}`,
|
2951
|
+
// });
|
2952
|
+
};
|
2953
|
+
}
|
2954
|
+
createNewPortal$(body) {
|
2955
|
+
return of({ ...body, id: uniqueId() });
|
2956
|
+
return this.baseHttpService.api({
|
2957
|
+
url: `${this.serviceUrl}`,
|
2958
|
+
method: 'post',
|
2959
|
+
body,
|
2960
|
+
});
|
2961
|
+
}
|
2962
|
+
}
|
2963
|
+
PortalsApiService.MAX_RESULTS = 60;
|
2964
|
+
PortalsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2965
|
+
PortalsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService });
|
2966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PortalsApiService, decorators: [{
|
2643
2967
|
type: Injectable
|
2644
2968
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2645
2969
|
|
2646
2970
|
class ApiModule {
|
2647
2971
|
}
|
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.
|
2972
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2973
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
2974
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2651
2975
|
BaseHttpService,
|
2652
2976
|
XrayService,
|
2653
2977
|
ConfigurationApiService,
|
@@ -2681,8 +3005,14 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2681
3005
|
UIDefinitionsApiService,
|
2682
3006
|
VeloceObjectsApiService,
|
2683
3007
|
StatefulConfigurationApiService,
|
3008
|
+
RebateProgramApiService,
|
3009
|
+
RebateTypeApiService,
|
3010
|
+
PromotionsApiService,
|
3011
|
+
VeloceAuthService,
|
3012
|
+
ContractedPriceApiService,
|
3013
|
+
PortalsApiService,
|
2684
3014
|
], imports: [HttpClientModule] });
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
3015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2686
3016
|
type: NgModule,
|
2687
3017
|
args: [{
|
2688
3018
|
imports: [HttpClientModule],
|
@@ -2720,6 +3050,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2720
3050
|
UIDefinitionsApiService,
|
2721
3051
|
VeloceObjectsApiService,
|
2722
3052
|
StatefulConfigurationApiService,
|
3053
|
+
RebateProgramApiService,
|
3054
|
+
RebateTypeApiService,
|
3055
|
+
PromotionsApiService,
|
3056
|
+
VeloceAuthService,
|
3057
|
+
ContractedPriceApiService,
|
3058
|
+
PortalsApiService,
|
2723
3059
|
],
|
2724
3060
|
}]
|
2725
3061
|
}] });
|
@@ -2728,5 +3064,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2728
3064
|
* Generated bundle index. Do not edit.
|
2729
3065
|
*/
|
2730
3066
|
|
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 };
|
3067
|
+
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
3068
|
//# sourceMappingURL=veloceapps-api.mjs.map
|