@veloceapps/api 8.0.0-3 → 8.0.0-31
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 +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 +334 -109
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +333 -108
- 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
|
|
@@ -698,7 +716,9 @@ class SalesforceApiService {
|
|
698
716
|
return this.httpService.api({ method: 'post', url: methodUrl, body: fields, ...options });
|
699
717
|
}
|
700
718
|
apexGetRequest(path, params, options) {
|
701
|
-
|
719
|
+
// this line is needed because HttpParams instance from Integration behaves wrong in studio instance of Angular
|
720
|
+
const httpParams = new HttpParams({ fromString: params.toString() });
|
721
|
+
return this.httpService.api({ url: `${this.SERVICE_URL}/apex${path}`, params: httpParams, ...options });
|
702
722
|
}
|
703
723
|
apexPostRequest(path, body, options) {
|
704
724
|
return this.httpService.api({
|
@@ -721,9 +741,9 @@ class SalesforceApiService {
|
|
721
741
|
});
|
722
742
|
}
|
723
743
|
}
|
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.
|
744
|
+
SalesforceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
745
|
+
SalesforceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService });
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesforceApiService, decorators: [{
|
727
747
|
type: Injectable
|
728
748
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
729
749
|
|
@@ -989,7 +1009,7 @@ class DocumentTemplatesApiService {
|
|
989
1009
|
const patternLimit = /(\s*limit\s\d*)/i;
|
990
1010
|
let limit = 1;
|
991
1011
|
if (statement && patternLimit.test(statement)) {
|
992
|
-
const limitStr = statement?.match(patternLimit)?.[1]
|
1012
|
+
const limitStr = statement?.match(patternLimit)?.[1]?.trim().substring(5).trim();
|
993
1013
|
if (limitStr) {
|
994
1014
|
limit = Number.parseInt(limitStr, 10);
|
995
1015
|
}
|
@@ -1007,11 +1027,11 @@ class DocumentTemplatesApiService {
|
|
1007
1027
|
return this.salesforceApiService.query(searchRequest, objectName).pipe(this.mapSfQueryResult(limit), map(value => ({ [resultObjectName]: value })));
|
1008
1028
|
}
|
1009
1029
|
}
|
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.
|
1030
|
+
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 });
|
1031
|
+
DocumentTemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService });
|
1032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocumentTemplatesApiService, decorators: [{
|
1013
1033
|
type: Injectable
|
1014
|
-
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type:
|
1034
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }, { type: SalesforceApiService }, { type: i1.FileDownloadService }, { type: DocumentAttachmentApiService }, { type: i1$1.HttpClient }]; } });
|
1015
1035
|
|
1016
1036
|
class EndpointsApiService {
|
1017
1037
|
constructor(baseHttpService) {
|
@@ -1082,9 +1102,9 @@ class EndpointsApiService {
|
|
1082
1102
|
});
|
1083
1103
|
}
|
1084
1104
|
}
|
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.
|
1105
|
+
EndpointsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1106
|
+
EndpointsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService });
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EndpointsApiService, decorators: [{
|
1088
1108
|
type: Injectable
|
1089
1109
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1090
1110
|
|
@@ -1102,9 +1122,9 @@ class FlowsApiService {
|
|
1102
1122
|
.pipe(map((flow) => (flow?.value ? JSON.parse(flow.value) : [])));
|
1103
1123
|
}
|
1104
1124
|
}
|
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.
|
1125
|
+
FlowsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1126
|
+
FlowsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService });
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowsApiService, decorators: [{
|
1108
1128
|
type: Injectable
|
1109
1129
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
1110
1130
|
|
@@ -1163,9 +1183,9 @@ class GuidedSellingsAdminApiService {
|
|
1163
1183
|
}
|
1164
1184
|
}
|
1165
1185
|
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.
|
1186
|
+
GuidedSellingsAdminApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1187
|
+
GuidedSellingsAdminApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService });
|
1188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingsAdminApiService, decorators: [{
|
1169
1189
|
type: Injectable
|
1170
1190
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1171
1191
|
|
@@ -1195,9 +1215,9 @@ class GuidedSellingApiService {
|
|
1195
1215
|
});
|
1196
1216
|
}
|
1197
1217
|
}
|
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.
|
1218
|
+
GuidedSellingApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1219
|
+
GuidedSellingApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService });
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: GuidedSellingApiService, decorators: [{
|
1201
1221
|
type: Injectable
|
1202
1222
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1203
1223
|
|
@@ -1266,9 +1286,9 @@ class OffersApiService {
|
|
1266
1286
|
}
|
1267
1287
|
}
|
1268
1288
|
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.
|
1289
|
+
OffersApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1290
|
+
OffersApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService });
|
1291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OffersApiService, decorators: [{
|
1272
1292
|
type: Injectable
|
1273
1293
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1274
1294
|
|
@@ -1282,11 +1302,11 @@ class OrgInfoApiService {
|
|
1282
1302
|
return this.http.get(`${this.hostUrl}/org-info/${organizationId}`);
|
1283
1303
|
}
|
1284
1304
|
}
|
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.
|
1305
|
+
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 });
|
1306
|
+
OrgInfoApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService });
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OrgInfoApiService, decorators: [{
|
1288
1308
|
type: Injectable
|
1289
|
-
}], ctorParameters: function () { return [{ type:
|
1309
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
|
1290
1310
|
|
1291
1311
|
class PicklistsApiService {
|
1292
1312
|
constructor(baseHttpService) {
|
@@ -1320,9 +1340,9 @@ class PicklistsApiService {
|
|
1320
1340
|
};
|
1321
1341
|
}
|
1322
1342
|
}
|
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.
|
1343
|
+
PicklistsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1344
|
+
PicklistsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService });
|
1345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PicklistsApiService, decorators: [{
|
1326
1346
|
type: Injectable
|
1327
1347
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1328
1348
|
|
@@ -1380,9 +1400,9 @@ class PriceApiService {
|
|
1380
1400
|
});
|
1381
1401
|
}
|
1382
1402
|
}
|
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.
|
1403
|
+
PriceApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1404
|
+
PriceApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService });
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PriceApiService, decorators: [{
|
1386
1406
|
type: Injectable
|
1387
1407
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1388
1408
|
|
@@ -1474,9 +1494,9 @@ class ProceduresApiService {
|
|
1474
1494
|
});
|
1475
1495
|
}
|
1476
1496
|
}
|
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.
|
1497
|
+
ProceduresApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1498
|
+
ProceduresApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService });
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProceduresApiService, decorators: [{
|
1480
1500
|
type: Injectable
|
1481
1501
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1482
1502
|
|
@@ -1622,9 +1642,9 @@ class ProductApiService {
|
|
1622
1642
|
return `${this.serviceUrl}/${productId}/image`;
|
1623
1643
|
}
|
1624
1644
|
}
|
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.
|
1645
|
+
ProductApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1646
|
+
ProductApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService });
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductApiService, decorators: [{
|
1628
1648
|
type: Injectable
|
1629
1649
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1630
1650
|
|
@@ -1853,9 +1873,72 @@ class ProductModelApiService {
|
|
1853
1873
|
}
|
1854
1874
|
}
|
1855
1875
|
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.
|
1876
|
+
ProductModelApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1877
|
+
ProductModelApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService });
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ProductModelApiService, decorators: [{
|
1879
|
+
type: Injectable
|
1880
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1881
|
+
|
1882
|
+
class PromotionsApiService {
|
1883
|
+
constructor(baseHttpService) {
|
1884
|
+
this.baseHttpService = baseHttpService;
|
1885
|
+
this.serviceUrl = '/admin/promotion';
|
1886
|
+
this.fetchAll$ = () => {
|
1887
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
1888
|
+
};
|
1889
|
+
this.fetchOne$ = (id) => {
|
1890
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
1891
|
+
};
|
1892
|
+
this.remove$ = (id) => {
|
1893
|
+
return this.baseHttpService.api({
|
1894
|
+
url: `${this.serviceUrl}/${id}`,
|
1895
|
+
method: 'delete',
|
1896
|
+
});
|
1897
|
+
};
|
1898
|
+
this.restore$ = (id) => {
|
1899
|
+
return this.baseHttpService.api({
|
1900
|
+
method: 'patch',
|
1901
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
1902
|
+
});
|
1903
|
+
};
|
1904
|
+
this.duplicate$ = (body) => {
|
1905
|
+
return this.baseHttpService
|
1906
|
+
.api({
|
1907
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
1908
|
+
method: 'post',
|
1909
|
+
body,
|
1910
|
+
})
|
1911
|
+
.pipe(map$1(response => response.clonedRecordId));
|
1912
|
+
};
|
1913
|
+
}
|
1914
|
+
search$(expression, skip, count) {
|
1915
|
+
let params = new HttpParams();
|
1916
|
+
if (typeof skip === 'number') {
|
1917
|
+
params = params.set('skip', '' + skip);
|
1918
|
+
}
|
1919
|
+
if (typeof count === 'number') {
|
1920
|
+
params = params.set('count', '' + count);
|
1921
|
+
}
|
1922
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
1923
|
+
}
|
1924
|
+
create$(body) {
|
1925
|
+
return this.baseHttpService.api({
|
1926
|
+
url: `${this.serviceUrl}`,
|
1927
|
+
method: 'post',
|
1928
|
+
body,
|
1929
|
+
});
|
1930
|
+
}
|
1931
|
+
update$(body) {
|
1932
|
+
return this.baseHttpService.api({
|
1933
|
+
url: `${this.serviceUrl}/${body.id}`,
|
1934
|
+
method: 'put',
|
1935
|
+
body,
|
1936
|
+
});
|
1937
|
+
}
|
1938
|
+
}
|
1939
|
+
PromotionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1940
|
+
PromotionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService });
|
1941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PromotionsApiService, decorators: [{
|
1859
1942
|
type: Injectable
|
1860
1943
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1861
1944
|
|
@@ -1901,9 +1984,9 @@ class QuoteApiService {
|
|
1901
1984
|
});
|
1902
1985
|
}
|
1903
1986
|
}
|
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.
|
1987
|
+
QuoteApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1988
|
+
QuoteApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService });
|
1989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: QuoteApiService, decorators: [{
|
1907
1990
|
type: Injectable
|
1908
1991
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1909
1992
|
|
@@ -1929,9 +2012,135 @@ class RampApiService {
|
|
1929
2012
|
});
|
1930
2013
|
}
|
1931
2014
|
}
|
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.
|
2015
|
+
RampApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2016
|
+
RampApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService });
|
2017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RampApiService, decorators: [{
|
2018
|
+
type: Injectable
|
2019
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2020
|
+
|
2021
|
+
class RebateProgramApiService {
|
2022
|
+
constructor(baseHttpService) {
|
2023
|
+
this.baseHttpService = baseHttpService;
|
2024
|
+
this.serviceUrl = '/admin/rebate-program';
|
2025
|
+
this.fetchAll$ = () => {
|
2026
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2027
|
+
};
|
2028
|
+
this.fetchOne$ = (id) => {
|
2029
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2030
|
+
};
|
2031
|
+
this.remove$ = (id) => {
|
2032
|
+
return this.baseHttpService.api({
|
2033
|
+
url: `${this.serviceUrl}/${id}`,
|
2034
|
+
method: 'delete',
|
2035
|
+
});
|
2036
|
+
};
|
2037
|
+
this.restore$ = (id) => {
|
2038
|
+
return this.baseHttpService.api({
|
2039
|
+
method: 'patch',
|
2040
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2041
|
+
});
|
2042
|
+
};
|
2043
|
+
this.duplicate$ = (body) => {
|
2044
|
+
return this.baseHttpService
|
2045
|
+
.api({
|
2046
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2047
|
+
method: 'post',
|
2048
|
+
body,
|
2049
|
+
})
|
2050
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2051
|
+
};
|
2052
|
+
}
|
2053
|
+
search$(expression, skip, count) {
|
2054
|
+
let params = new HttpParams();
|
2055
|
+
if (typeof skip === 'number') {
|
2056
|
+
params = params.set('skip', '' + skip);
|
2057
|
+
}
|
2058
|
+
if (typeof count === 'number') {
|
2059
|
+
params = params.set('count', '' + count);
|
2060
|
+
}
|
2061
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2062
|
+
}
|
2063
|
+
create$(body) {
|
2064
|
+
return this.baseHttpService.api({
|
2065
|
+
url: `${this.serviceUrl}`,
|
2066
|
+
method: 'post',
|
2067
|
+
body,
|
2068
|
+
});
|
2069
|
+
}
|
2070
|
+
update$(body) {
|
2071
|
+
return this.baseHttpService.api({
|
2072
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2073
|
+
method: 'put',
|
2074
|
+
body,
|
2075
|
+
});
|
2076
|
+
}
|
2077
|
+
}
|
2078
|
+
RebateProgramApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2079
|
+
RebateProgramApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService });
|
2080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateProgramApiService, decorators: [{
|
2081
|
+
type: Injectable
|
2082
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2083
|
+
|
2084
|
+
class RebateTypeApiService {
|
2085
|
+
constructor(baseHttpService) {
|
2086
|
+
this.baseHttpService = baseHttpService;
|
2087
|
+
this.serviceUrl = '/admin/rebate-type';
|
2088
|
+
this.fetchAll$ = () => {
|
2089
|
+
return this.baseHttpService.api({ url: this.serviceUrl });
|
2090
|
+
};
|
2091
|
+
this.fetchOne$ = (id) => {
|
2092
|
+
return this.baseHttpService.api({ url: `${this.serviceUrl}/${id}` });
|
2093
|
+
};
|
2094
|
+
this.remove$ = (id) => {
|
2095
|
+
return this.baseHttpService.api({
|
2096
|
+
url: `${this.serviceUrl}/${id}`,
|
2097
|
+
method: 'delete',
|
2098
|
+
});
|
2099
|
+
};
|
2100
|
+
this.restore$ = (id) => {
|
2101
|
+
return this.baseHttpService.api({
|
2102
|
+
method: 'patch',
|
2103
|
+
url: `${this.serviceUrl}/${id}/restore`,
|
2104
|
+
});
|
2105
|
+
};
|
2106
|
+
this.duplicate$ = (body) => {
|
2107
|
+
return this.baseHttpService
|
2108
|
+
.api({
|
2109
|
+
url: `${this.serviceUrl}/${body.id}/clone`,
|
2110
|
+
method: 'post',
|
2111
|
+
body,
|
2112
|
+
})
|
2113
|
+
.pipe(map$1(response => response.clonedRecordId));
|
2114
|
+
};
|
2115
|
+
}
|
2116
|
+
search$(expression, skip, count) {
|
2117
|
+
let params = new HttpParams();
|
2118
|
+
if (typeof skip === 'number') {
|
2119
|
+
params = params.set('skip', '' + skip);
|
2120
|
+
}
|
2121
|
+
if (typeof count === 'number') {
|
2122
|
+
params = params.set('count', '' + count);
|
2123
|
+
}
|
2124
|
+
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2125
|
+
}
|
2126
|
+
create$(body) {
|
2127
|
+
return this.baseHttpService.api({
|
2128
|
+
url: `${this.serviceUrl}`,
|
2129
|
+
method: 'post',
|
2130
|
+
body,
|
2131
|
+
});
|
2132
|
+
}
|
2133
|
+
update$(body) {
|
2134
|
+
return this.baseHttpService.api({
|
2135
|
+
url: `${this.serviceUrl}/${body.id}`,
|
2136
|
+
method: 'put',
|
2137
|
+
body,
|
2138
|
+
});
|
2139
|
+
}
|
2140
|
+
}
|
2141
|
+
RebateTypeApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2142
|
+
RebateTypeApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService });
|
2143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RebateTypeApiService, decorators: [{
|
1935
2144
|
type: Injectable
|
1936
2145
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1937
2146
|
|
@@ -1985,9 +2194,9 @@ class RuleGroupsApiService {
|
|
1985
2194
|
};
|
1986
2195
|
}
|
1987
2196
|
}
|
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.
|
2197
|
+
RuleGroupsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2198
|
+
RuleGroupsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService });
|
2199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RuleGroupsApiService, decorators: [{
|
1991
2200
|
type: Injectable
|
1992
2201
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
1993
2202
|
|
@@ -2000,8 +2209,12 @@ class RulesApiService {
|
|
2000
2209
|
};
|
2001
2210
|
this.searchRules$ = (expression, skip, count) => {
|
2002
2211
|
let params = new HttpParams();
|
2003
|
-
|
2004
|
-
|
2212
|
+
if (typeof skip === 'number') {
|
2213
|
+
params = params.set('skip', '' + skip);
|
2214
|
+
}
|
2215
|
+
if (typeof count === 'number') {
|
2216
|
+
params = params.set('count', '' + count);
|
2217
|
+
}
|
2005
2218
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2006
2219
|
};
|
2007
2220
|
this.createRule$ = (rule) => {
|
@@ -2061,9 +2274,9 @@ class RulesApiService {
|
|
2061
2274
|
});
|
2062
2275
|
}
|
2063
2276
|
}
|
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.
|
2277
|
+
RulesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2278
|
+
RulesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService });
|
2279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RulesApiService, decorators: [{
|
2067
2280
|
type: Injectable
|
2068
2281
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2069
2282
|
|
@@ -2076,8 +2289,12 @@ class ScriptsApiService {
|
|
2076
2289
|
};
|
2077
2290
|
this.searchScripts$ = (expression, skip, count) => {
|
2078
2291
|
let params = new HttpParams();
|
2079
|
-
|
2080
|
-
|
2292
|
+
if (typeof skip === 'number') {
|
2293
|
+
params = params.set('skip', '' + skip);
|
2294
|
+
}
|
2295
|
+
if (typeof count === 'number') {
|
2296
|
+
params = params.set('count', '' + count);
|
2297
|
+
}
|
2081
2298
|
return this.baseHttpService.api({ method: 'post', url: `${this.serviceUrl}/search`, params, body: expression });
|
2082
2299
|
};
|
2083
2300
|
this.fetchScript$ = (id) => {
|
@@ -2133,9 +2350,9 @@ class ScriptsApiService {
|
|
2133
2350
|
};
|
2134
2351
|
}
|
2135
2352
|
}
|
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.
|
2353
|
+
ScriptsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2354
|
+
ScriptsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService });
|
2355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ScriptsApiService, decorators: [{
|
2139
2356
|
type: Injectable
|
2140
2357
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2141
2358
|
|
@@ -2156,9 +2373,9 @@ class ShoppingCartSettingsApiService {
|
|
2156
2373
|
}, {})));
|
2157
2374
|
}
|
2158
2375
|
}
|
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.
|
2376
|
+
ShoppingCartSettingsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, deps: [{ token: ConfigurationSettingsApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2377
|
+
ShoppingCartSettingsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService });
|
2378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ShoppingCartSettingsApiService, decorators: [{
|
2162
2379
|
type: Injectable
|
2163
2380
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2164
2381
|
|
@@ -2204,9 +2421,9 @@ class StatefulConfigurationApiService {
|
|
2204
2421
|
});
|
2205
2422
|
}
|
2206
2423
|
}
|
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.
|
2424
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2425
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService });
|
2426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2210
2427
|
type: Injectable
|
2211
2428
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
2429
|
|
@@ -2273,9 +2490,9 @@ class UIDefinitionsApiService {
|
|
2273
2490
|
return `/models/${modelId}/uidefinitions`;
|
2274
2491
|
}
|
2275
2492
|
}
|
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.
|
2493
|
+
UIDefinitionsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2494
|
+
UIDefinitionsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService });
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UIDefinitionsApiService, decorators: [{
|
2279
2496
|
type: Injectable
|
2280
2497
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2281
2498
|
|
@@ -2561,9 +2778,9 @@ class UITemplatesApiService {
|
|
2561
2778
|
});
|
2562
2779
|
}
|
2563
2780
|
}
|
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.
|
2781
|
+
UITemplatesApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2782
|
+
UITemplatesApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService });
|
2783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UITemplatesApiService, decorators: [{
|
2567
2784
|
type: Injectable
|
2568
2785
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2569
2786
|
|
@@ -2637,17 +2854,17 @@ class VeloceObjectsApiService {
|
|
2637
2854
|
});
|
2638
2855
|
}
|
2639
2856
|
}
|
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.
|
2857
|
+
VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2858
|
+
VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService });
|
2859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
|
2643
2860
|
type: Injectable
|
2644
2861
|
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2645
2862
|
|
2646
2863
|
class ApiModule {
|
2647
2864
|
}
|
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.
|
2865
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2866
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, imports: [HttpClientModule] });
|
2867
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, providers: [
|
2651
2868
|
BaseHttpService,
|
2652
2869
|
XrayService,
|
2653
2870
|
ConfigurationApiService,
|
@@ -2681,8 +2898,12 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2681
2898
|
UIDefinitionsApiService,
|
2682
2899
|
VeloceObjectsApiService,
|
2683
2900
|
StatefulConfigurationApiService,
|
2901
|
+
RebateProgramApiService,
|
2902
|
+
RebateTypeApiService,
|
2903
|
+
PromotionsApiService,
|
2904
|
+
VeloceAuthService,
|
2684
2905
|
], imports: [HttpClientModule] });
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
2906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
|
2686
2907
|
type: NgModule,
|
2687
2908
|
args: [{
|
2688
2909
|
imports: [HttpClientModule],
|
@@ -2720,6 +2941,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2720
2941
|
UIDefinitionsApiService,
|
2721
2942
|
VeloceObjectsApiService,
|
2722
2943
|
StatefulConfigurationApiService,
|
2944
|
+
RebateProgramApiService,
|
2945
|
+
RebateTypeApiService,
|
2946
|
+
PromotionsApiService,
|
2947
|
+
VeloceAuthService,
|
2723
2948
|
],
|
2724
2949
|
}]
|
2725
2950
|
}] });
|
@@ -2728,5 +2953,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2728
2953
|
* Generated bundle index. Do not edit.
|
2729
2954
|
*/
|
2730
2955
|
|
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 };
|
2956
|
+
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
2957
|
//# sourceMappingURL=veloceapps-api.mjs.map
|