@veloceapps/api 8.0.0-2 → 8.0.0-21
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 +5 -1
- package/esm2020/lib/api.module.mjs +17 -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 +3 -3
- 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/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/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 +3 -3
- 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 +331 -108
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +330 -107
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/services/auth.service.d.ts +11 -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,5 +1,5 @@
|
|
1
|
-
import * as
|
2
|
-
import { HttpParams, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
1
|
+
import * as i1$1 from '@angular/common/http';
|
2
|
+
import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@angular/common/http';
|
3
3
|
import * as i0 from '@angular/core';
|
4
4
|
import { Injectable, NgModule } from '@angular/core';
|
5
5
|
import * as i1 from '@veloceapps/core';
|
@@ -82,12 +82,30 @@ class AccountApiService {
|
|
82
82
|
});
|
83
83
|
}
|
84
84
|
}
|
85
|
-
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
86
|
-
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
85
|
+
AccountApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
86
|
+
AccountApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService });
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccountApiService, decorators: [{
|
88
88
|
type: Injectable
|
89
89
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
90
90
|
|
91
|
+
class VeloceAuthService {
|
92
|
+
constructor(http) {
|
93
|
+
this.http = http;
|
94
|
+
}
|
95
|
+
auth$(instanceUrl, accessToken) {
|
96
|
+
const headers = new HttpHeaders({
|
97
|
+
'Content-Type': 'application/json',
|
98
|
+
Authorization: `Bearer ${accessToken}`,
|
99
|
+
});
|
100
|
+
return this.http.get(`${instanceUrl}/services/apexrest/VELOCPQ/veloce-auth`, { headers });
|
101
|
+
}
|
102
|
+
}
|
103
|
+
VeloceAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
104
|
+
VeloceAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService });
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceAuthService, decorators: [{
|
106
|
+
type: Injectable
|
107
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
108
|
+
|
91
109
|
class CatalogAdminApiService {
|
92
110
|
constructor(baseHttpService) {
|
93
111
|
this.baseHttpService = baseHttpService;
|
@@ -269,9 +287,9 @@ class CatalogAdminApiService {
|
|
269
287
|
}
|
270
288
|
}
|
271
289
|
CatalogAdminApiService.MAX_RESULTS = 60;
|
272
|
-
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
273
|
-
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
290
|
+
CatalogAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
291
|
+
CatalogAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService });
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogAdminApiService, decorators: [{
|
275
293
|
type: Injectable
|
276
294
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
277
295
|
|
@@ -355,9 +373,9 @@ class CatalogApiService {
|
|
355
373
|
});
|
356
374
|
}
|
357
375
|
}
|
358
|
-
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
359
|
-
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
376
|
+
CatalogApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
377
|
+
CatalogApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService });
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CatalogApiService, decorators: [{
|
361
379
|
type: Injectable
|
362
380
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
363
381
|
|
@@ -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,9 @@ 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: [{
|
565
583
|
type: Injectable
|
566
584
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
567
585
|
|
@@ -579,9 +597,9 @@ class DeltaApiService {
|
|
579
597
|
});
|
580
598
|
}
|
581
599
|
}
|
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.
|
600
|
+
DeltaApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
601
|
+
DeltaApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService });
|
602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeltaApiService, decorators: [{
|
585
603
|
type: Injectable
|
586
604
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
587
605
|
|
@@ -641,9 +659,9 @@ class DocumentAttachmentApiService {
|
|
641
659
|
});
|
642
660
|
}
|
643
661
|
}
|
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.
|
662
|
+
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 });
|
663
|
+
DocumentAttachmentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService });
|
664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentAttachmentApiService, decorators: [{
|
647
665
|
type: Injectable
|
648
666
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: i1.FileDownloadService }]; } });
|
649
667
|
|
@@ -721,9 +739,9 @@ class SalesforceApiService {
|
|
721
739
|
});
|
722
740
|
}
|
723
741
|
}
|
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.
|
742
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
743
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
745
|
type: Injectable
|
728
746
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
747
|
|
@@ -989,7 +1007,7 @@ class DocumentTemplatesApiService {
|
|
989
1007
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1008
|
let limit = 1;
|
991
1009
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1010
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1011
|
if (limitStr) {
|
994
1012
|
limit = Number.parseInt(limitStr, 10);
|
995
1013
|
}
|
@@ -1007,11 +1025,11 @@ class DocumentTemplatesApiService {
|
|
1007
1025
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1026
|
}
|
1009
1027
|
}
|
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.
|
1028
|
+
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 });
|
1029
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1031
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1032
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1033
|
|
1016
1034
|
class EndpointsApiService {
|
1017
1035
|
constructor(baseHttpService) {
|
@@ -1082,9 +1100,9 @@ class EndpointsApiService {
|
|
1082
1100
|
});
|
1083
1101
|
}
|
1084
1102
|
}
|
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.
|
1103
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1104
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1088
1106
|
type: Injectable
|
1089
1107
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1108
|
|
@@ -1102,9 +1120,9 @@ class FlowsApiService {
|
|
1102
1120
|
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1103
1121
|
}
|
1104
1122
|
}
|
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.
|
1123
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1124
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1126
|
type: Injectable
|
1109
1127
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1128
|
|
@@ -1163,9 +1181,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1181
|
}
|
1164
1182
|
}
|
1165
1183
|
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.
|
1184
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1185
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1187
|
type: Injectable
|
1170
1188
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1189
|
|
@@ -1195,9 +1213,9 @@ class GuidedSellingApiService {
|
|
1195
1213
|
});
|
1196
1214
|
}
|
1197
1215
|
}
|
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.
|
1216
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1217
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1219
|
type: Injectable
|
1202
1220
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1221
|
|
@@ -1266,9 +1284,9 @@ class OffersApiService {
|
|
1266
1284
|
}
|
1267
1285
|
}
|
1268
1286
|
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.
|
1287
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1288
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1290
|
type: Injectable
|
1273
1291
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1292
|
|
@@ -1282,11 +1300,11 @@ class OrgInfoApiService {
|
|
1282
1300
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1301
|
}
|
1284
1302
|
}
|
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.
|
1303
|
+
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 });
|
1304
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1306
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1307
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1308
|
|
1291
1309
|
class PicklistsApiService {
|
1292
1310
|
constructor(baseHttpService) {
|
@@ -1320,9 +1338,9 @@ class PicklistsApiService {
|
|
1320
1338
|
};
|
1321
1339
|
}
|
1322
1340
|
}
|
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.
|
1341
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1342
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1326
1344
|
type: Injectable
|
1327
1345
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1346
|
|
@@ -1380,9 +1398,9 @@ class PriceApiService {
|
|
1380
1398
|
});
|
1381
1399
|
}
|
1382
1400
|
}
|
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.
|
1401
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1402
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1404
|
type: Injectable
|
1387
1405
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1406
|
|
@@ -1474,9 +1492,9 @@ class ProceduresApiService {
|
|
1474
1492
|
});
|
1475
1493
|
}
|
1476
1494
|
}
|
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.
|
1495
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1496
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1498
|
type: Injectable
|
1481
1499
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1500
|
|
@@ -1622,9 +1640,9 @@ class ProductApiService {
|
|
1622
1640
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1641
|
}
|
1624
1642
|
}
|
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.
|
1643
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1644
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1646
|
type: Injectable
|
1629
1647
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1648
|
|
@@ -1853,9 +1871,72 @@ class ProductModelApiService {
|
|
1853
1871
|
}
|
1854
1872
|
}
|
1855
1873
|
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.
|
1874
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1875
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1877
|
+
type: Injectable
|
1878
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1879
|
+
|
1880
|
+
class PromotionsApiService {
|
1881
|
+
constructor(baseHttpService) {
|
1882
|
+
this.baseHttpService = baseHttpService;
|
1883
|
+
this.serviceUrl = '/admin/promotion';
|
1884
|
+
this.fetchAll$ = () => {
|
1885
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1886
|
+
};
|
1887
|
+
this.fetchOne$ = (id) => {
|
1888
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1889
|
+
};
|
1890
|
+
this.remove$ = (id) => {
|
1891
|
+
return this.baseHttpService.api({
|
1892
|
+
url: `${this.serviceUrl}/${id}`,
|
1893
|
+
method: 'delete',
|
1894
|
+
});
|
1895
|
+
};
|
1896
|
+
this.restore$ = (id) => {
|
1897
|
+
return this.baseHttpService.api({
|
1898
|
+
method: 'patch',
|
1899
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1900
|
+
});
|
1901
|
+
};
|
1902
|
+
this.duplicate$ = (body) => {
|
1903
|
+
return this.baseHttpService
|
1904
|
+
.api({
|
1905
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1906
|
+
method: 'post',
|
1907
|
+
body,
|
1908
|
+
})
|
1909
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1910
|
+
};
|
1911
|
+
}
|
1912
|
+
search$(expression, skip, count) {
|
1913
|
+
let params = new HttpParams();
|
1914
|
+
if (typeof skip === 'number') {
|
1915
|
+
params = params.set('skip', '' + skip);
|
1916
|
+
}
|
1917
|
+
if (typeof count === 'number') {
|
1918
|
+
params = params.set('count', '' + count);
|
1919
|
+
}
|
1920
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1921
|
+
}
|
1922
|
+
create$(body) {
|
1923
|
+
return this.baseHttpService.api({
|
1924
|
+
url: `${this.serviceUrl}`,
|
1925
|
+
method: 'post',
|
1926
|
+
body,
|
1927
|
+
});
|
1928
|
+
}
|
1929
|
+
update$(body) {
|
1930
|
+
return this.baseHttpService.api({
|
1931
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1932
|
+
method: 'put',
|
1933
|
+
body,
|
1934
|
+
});
|
1935
|
+
}
|
1936
|
+
}
|
1937
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1938
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
1939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1859
1940
|
type: Injectable
|
1860
1941
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
1942
|
|
@@ -1901,9 +1982,9 @@ class QuoteApiService {
|
|
1901
1982
|
});
|
1902
1983
|
}
|
1903
1984
|
}
|
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.
|
1985
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1986
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
1988
|
type: Injectable
|
1908
1989
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
1990
|
|
@@ -1929,9 +2010,135 @@ class RampApiService {
|
|
1929
2010
|
});
|
1930
2011
|
}
|
1931
2012
|
}
|
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.
|
2013
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2014
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2016
|
+
type: Injectable
|
2017
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2018
|
+
|
2019
|
+
class RebateProgramApiService {
|
2020
|
+
constructor(baseHttpService) {
|
2021
|
+
this.baseHttpService = baseHttpService;
|
2022
|
+
this.serviceUrl = '/admin/rebate-program';
|
2023
|
+
this.fetchAll$ = () => {
|
2024
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2025
|
+
};
|
2026
|
+
this.fetchOne$ = (id) => {
|
2027
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2028
|
+
};
|
2029
|
+
this.remove$ = (id) => {
|
2030
|
+
return this.baseHttpService.api({
|
2031
|
+
url: `${this.serviceUrl}/${id}`,
|
2032
|
+
method: 'delete',
|
2033
|
+
});
|
2034
|
+
};
|
2035
|
+
this.restore$ = (id) => {
|
2036
|
+
return this.baseHttpService.api({
|
2037
|
+
method: 'patch',
|
2038
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2039
|
+
});
|
2040
|
+
};
|
2041
|
+
this.duplicate$ = (body) => {
|
2042
|
+
return this.baseHttpService
|
2043
|
+
.api({
|
2044
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2045
|
+
method: 'post',
|
2046
|
+
body,
|
2047
|
+
})
|
2048
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2049
|
+
};
|
2050
|
+
}
|
2051
|
+
search$(expression, skip, count) {
|
2052
|
+
let params = new HttpParams();
|
2053
|
+
if (typeof skip === 'number') {
|
2054
|
+
params = params.set('skip', '' + skip);
|
2055
|
+
}
|
2056
|
+
if (typeof count === 'number') {
|
2057
|
+
params = params.set('count', '' + count);
|
2058
|
+
}
|
2059
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2060
|
+
}
|
2061
|
+
create$(body) {
|
2062
|
+
return this.baseHttpService.api({
|
2063
|
+
url: `${this.serviceUrl}`,
|
2064
|
+
method: 'post',
|
2065
|
+
body,
|
2066
|
+
});
|
2067
|
+
}
|
2068
|
+
update$(body) {
|
2069
|
+
return this.baseHttpService.api({
|
2070
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2071
|
+
method: 'put',
|
2072
|
+
body,
|
2073
|
+
});
|
2074
|
+
}
|
2075
|
+
}
|
2076
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2077
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2079
|
+
type: Injectable
|
2080
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2081
|
+
|
2082
|
+
class RebateTypeApiService {
|
2083
|
+
constructor(baseHttpService) {
|
2084
|
+
this.baseHttpService = baseHttpService;
|
2085
|
+
this.serviceUrl = '/admin/rebate-type';
|
2086
|
+
this.fetchAll$ = () => {
|
2087
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2088
|
+
};
|
2089
|
+
this.fetchOne$ = (id) => {
|
2090
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2091
|
+
};
|
2092
|
+
this.remove$ = (id) => {
|
2093
|
+
return this.baseHttpService.api({
|
2094
|
+
url: `${this.serviceUrl}/${id}`,
|
2095
|
+
method: 'delete',
|
2096
|
+
});
|
2097
|
+
};
|
2098
|
+
this.restore$ = (id) => {
|
2099
|
+
return this.baseHttpService.api({
|
2100
|
+
method: 'patch',
|
2101
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2102
|
+
});
|
2103
|
+
};
|
2104
|
+
this.duplicate$ = (body) => {
|
2105
|
+
return this.baseHttpService
|
2106
|
+
.api({
|
2107
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2108
|
+
method: 'post',
|
2109
|
+
body,
|
2110
|
+
})
|
2111
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2112
|
+
};
|
2113
|
+
}
|
2114
|
+
search$(expression, skip, count) {
|
2115
|
+
let params = new HttpParams();
|
2116
|
+
if (typeof skip === 'number') {
|
2117
|
+
params = params.set('skip', '' + skip);
|
2118
|
+
}
|
2119
|
+
if (typeof count === 'number') {
|
2120
|
+
params = params.set('count', '' + count);
|
2121
|
+
}
|
2122
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2123
|
+
}
|
2124
|
+
create$(body) {
|
2125
|
+
return this.baseHttpService.api({
|
2126
|
+
url: `${this.serviceUrl}`,
|
2127
|
+
method: 'post',
|
2128
|
+
body,
|
2129
|
+
});
|
2130
|
+
}
|
2131
|
+
update$(body) {
|
2132
|
+
return this.baseHttpService.api({
|
2133
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2134
|
+
method: 'put',
|
2135
|
+
body,
|
2136
|
+
});
|
2137
|
+
}
|
2138
|
+
}
|
2139
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2140
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2142
|
type: Injectable
|
1936
2143
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2144
|
|
@@ -1985,9 +2192,9 @@ class RuleGroupsApiService {
|
|
1985
2192
|
};
|
1986
2193
|
}
|
1987
2194
|
}
|
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.
|
2195
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2196
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2198
|
type: Injectable
|
1992
2199
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2200
|
|
@@ -2000,8 +2207,12 @@ class RulesApiService {
|
|
2000
2207
|
};
|
2001
2208
|
this.searchRules$ = (expression, skip, count) => {
|
2002
2209
|
let params = new HttpParams();
|
2003
|
-
|
2004
|
-
|
2210
|
+
if (typeof skip === 'number') {
|
2211
|
+
params = params.set('skip', '' + skip);
|
2212
|
+
}
|
2213
|
+
if (typeof count === 'number') {
|
2214
|
+
params = params.set('count', '' + count);
|
2215
|
+
}
|
2005
2216
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2006
2217
|
};
|
2007
2218
|
this.createRule$ = (rule) => {
|
@@ -2061,9 +2272,9 @@ class RulesApiService {
|
|
2061
2272
|
});
|
2062
2273
|
}
|
2063
2274
|
}
|
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.
|
2275
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2276
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2067
2278
|
type: Injectable
|
2068
2279
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2069
2280
|
|
@@ -2076,8 +2287,12 @@ class ScriptsApiService {
|
|
2076
2287
|
};
|
2077
2288
|
this.searchScripts$ = (expression, skip, count) => {
|
2078
2289
|
let params = new HttpParams();
|
2079
|
-
|
2080
|
-
|
2290
|
+
if (typeof skip === 'number') {
|
2291
|
+
params = params.set('skip', '' + skip);
|
2292
|
+
}
|
2293
|
+
if (typeof count === 'number') {
|
2294
|
+
params = params.set('count', '' + count);
|
2295
|
+
}
|
2081
2296
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2082
2297
|
};
|
2083
2298
|
this.fetchScript$ = (id) => {
|
@@ -2133,9 +2348,9 @@ class ScriptsApiService {
|
|
2133
2348
|
};
|
2134
2349
|
}
|
2135
2350
|
}
|
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.
|
2351
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2352
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2139
2354
|
type: Injectable
|
2140
2355
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2141
2356
|
|
@@ -2156,9 +2371,9 @@ class ShoppingCartSettingsApiService {
|
|
2156
2371
|
}, {})));
|
2157
2372
|
}
|
2158
2373
|
}
|
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.
|
2374
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2375
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2162
2377
|
type: Injectable
|
2163
2378
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2164
2379
|
|
@@ -2204,9 +2419,9 @@ class StatefulConfigurationApiService {
|
|
2204
2419
|
});
|
2205
2420
|
}
|
2206
2421
|
}
|
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.
|
2422
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2423
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2210
2425
|
type: Injectable
|
2211
2426
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
2427
|
|
@@ -2273,9 +2488,9 @@ class UIDefinitionsApiService {
|
|
2273
2488
|
return `/models/${modelId}/uidefinitions`;
|
2274
2489
|
}
|
2275
2490
|
}
|
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.
|
2491
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2492
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2279
2494
|
type: Injectable
|
2280
2495
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2281
2496
|
|
@@ -2561,9 +2776,9 @@ class UITemplatesApiService {
|
|
2561
2776
|
});
|
2562
2777
|
}
|
2563
2778
|
}
|
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.
|
2779
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2780
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2567
2782
|
type: Injectable
|
2568
2783
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2569
2784
|
|
@@ -2637,17 +2852,17 @@ class VeloceObjectsApiService {
|
|
2637
2852
|
});
|
2638
2853
|
}
|
2639
2854
|
}
|
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.
|
2855
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2856
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2643
2858
|
type: Injectable
|
2644
2859
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2645
2860
|
|
2646
2861
|
class ApiModule {
|
2647
2862
|
}
|
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.
|
2863
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2864
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
2865
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2651
2866
|
BaseHttpService,
|
2652
2867
|
XrayService,
|
2653
2868
|
ConfigurationApiService,
|
@@ -2681,8 +2896,12 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2681
2896
|
UIDefinitionsApiService,
|
2682
2897
|
VeloceObjectsApiService,
|
2683
2898
|
StatefulConfigurationApiService,
|
2899
|
+
RebateProgramApiService,
|
2900
|
+
RebateTypeApiService,
|
2901
|
+
PromotionsApiService,
|
2902
|
+
VeloceAuthService,
|
2684
2903
|
], imports: [HttpClientModule] });
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2686
2905
|
type: NgModule,
|
2687
2906
|
args: [{
|
2688
2907
|
imports: [HttpClientModule],
|
@@ -2720,6 +2939,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2720
2939
|
UIDefinitionsApiService,
|
2721
2940
|
VeloceObjectsApiService,
|
2722
2941
|
StatefulConfigurationApiService,
|
2942
|
+
RebateProgramApiService,
|
2943
|
+
RebateTypeApiService,
|
2944
|
+
PromotionsApiService,
|
2945
|
+
VeloceAuthService,
|
2723
2946
|
],
|
2724
2947
|
}]
|
2725
2948
|
}] });
|
@@ -2728,5 +2951,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2728
2951
|
* Generated bundle index. Do not edit.
|
2729
2952
|
*/
|
2730
2953
|
|
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 };
|
2954
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
|
2732
2955
|
//# sourceMappingURL=veloceapps-api.mjs.map
|