@esolve/ng-esolve-connect 0.17.0 → 0.18.1
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/lib/account/esolve-account.service.mjs +4 -4
- package/esm2020/lib/auth/esolve-auth-interceptor.service.mjs +4 -4
- package/esm2020/lib/auth/esolve-auth.service.mjs +4 -4
- package/esm2020/lib/banners/esolve-banner.service.mjs +4 -4
- package/esm2020/lib/cart/esolve-cart-stock-item.model.mjs +3 -2
- package/esm2020/lib/cart/esolve-cart.service.mjs +11 -7
- package/esm2020/lib/category-tree/esolve-category-tree.service.mjs +4 -4
- package/esm2020/lib/enquiry/esolve-enquiry.service.mjs +4 -4
- package/esm2020/lib/locations/esolve-location-geo.model.mjs +8 -0
- package/esm2020/lib/locations/esolve-location-record.interface.mjs +1 -1
- package/esm2020/lib/locations/esolve-location.model.mjs +3 -1
- package/esm2020/lib/locations/esolve-locations.service.mjs +23 -4
- package/esm2020/lib/manufacturers/esolve-manufacturers.service.mjs +4 -4
- package/esm2020/lib/media/esolve-media.service.mjs +4 -4
- package/esm2020/lib/menu/esolve-menu.service.mjs +4 -4
- package/esm2020/lib/news/esolve-news.service.mjs +4 -4
- package/esm2020/lib/ng-esolve-connect.module.mjs +5 -5
- package/esm2020/lib/payment/esolve-payment.service.mjs +17 -15
- package/esm2020/lib/ranges/esolve-ranges.service.mjs +4 -4
- package/esm2020/lib/session/esolve-session.service.mjs +4 -4
- package/esm2020/lib/shared/assets/esolve-assets.service.mjs +4 -4
- package/esm2020/lib/shared/cookie/esolve-cookie.service.mjs +4 -4
- package/esm2020/lib/shared/errors/esolve-error-handler.service.mjs +4 -4
- package/esm2020/lib/shared/geocoder/esolve-geocoder.service.mjs +4 -4
- package/esm2020/lib/shared/response/esolve-response-handler.service.mjs +4 -4
- package/esm2020/lib/shared/seo/esolve-seo.service.mjs +4 -4
- package/esm2020/lib/shipping/esolve-shipping.service.mjs +4 -4
- package/esm2020/lib/specials/esolve-specials.service.mjs +4 -4
- package/esm2020/lib/stock/classes/esolve-stock-item-base.model.mjs +24 -1
- package/esm2020/lib/stock/esolve-stock.service.mjs +4 -4
- package/esm2020/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +1 -1
- package/esm2020/lib/tags/esolve-tags.service.mjs +4 -4
- package/esm2020/lib/topics/esolve-topic.service.mjs +4 -4
- package/fesm2015/esolve-ng-esolve-connect.mjs +166 -108
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +155 -97
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/cart/esolve-cart-stock-item.model.d.ts +2 -1
- package/lib/cart/esolve-cart.service.d.ts +3 -2
- package/lib/locations/esolve-location-geo.model.d.ts +6 -0
- package/lib/locations/esolve-location-record.interface.d.ts +3 -0
- package/lib/locations/esolve-location.model.d.ts +2 -0
- package/lib/locations/esolve-locations.service.d.ts +6 -0
- package/lib/payment/esolve-payment.service.d.ts +1 -1
- package/lib/stock/classes/esolve-stock-item-base.model.d.ts +17 -0
- package/lib/stock/interfaces/esolve-stock-base-record.interface.d.ts +4 -0
- package/package.json +1 -1
|
@@ -121,9 +121,9 @@ class EsolveCookieService {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
EsolveCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
125
|
-
EsolveCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
124
|
+
EsolveCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCookieService, deps: [{ token: i1.CookieService }, { token: PLATFORM_ID }, { token: 'REQUEST', optional: true }, { token: 'RESPONSE', optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
125
|
+
EsolveCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCookieService, providedIn: 'root' });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCookieService, decorators: [{
|
|
127
127
|
type: Injectable,
|
|
128
128
|
args: [{
|
|
129
129
|
providedIn: 'root',
|
|
@@ -218,9 +218,9 @@ class EsolveSessionService {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
EsolveSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
222
|
-
EsolveSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
221
|
+
EsolveSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSessionService, deps: [{ token: PLATFORM_ID }, { token: ESOLVE_CONNECT_CONFIG }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
222
|
+
EsolveSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSessionService, providedIn: 'root' });
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSessionService, decorators: [{
|
|
224
224
|
type: Injectable,
|
|
225
225
|
args: [{
|
|
226
226
|
providedIn: 'root',
|
|
@@ -265,9 +265,9 @@ class EsolveAuthInterceptorService {
|
|
|
265
265
|
return next.handle(req);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
EsolveAuthInterceptorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
269
|
-
EsolveAuthInterceptorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
268
|
+
EsolveAuthInterceptorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthInterceptorService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: EsolveSessionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
269
|
+
EsolveAuthInterceptorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthInterceptorService });
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthInterceptorService, decorators: [{
|
|
271
271
|
type: Injectable
|
|
272
272
|
}], ctorParameters: function () {
|
|
273
273
|
return [{ type: undefined, decorators: [{
|
|
@@ -294,14 +294,14 @@ class NgEsolveConnectModule {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
NgEsolveConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
298
|
-
NgEsolveConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
297
|
+
NgEsolveConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
298
|
+
NgEsolveConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectModule, imports: [CommonModule,
|
|
299
299
|
HttpClientModule] });
|
|
300
|
-
NgEsolveConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
300
|
+
NgEsolveConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectModule, providers: [CookieService], imports: [[
|
|
301
301
|
CommonModule,
|
|
302
302
|
HttpClientModule
|
|
303
303
|
]] });
|
|
304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NgEsolveConnectModule, decorators: [{
|
|
305
305
|
type: NgModule,
|
|
306
306
|
args: [{
|
|
307
307
|
declarations: [],
|
|
@@ -363,9 +363,9 @@ class EsolveResponseHandlerService {
|
|
|
363
363
|
return resultHandler(response);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
EsolveResponseHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
367
|
-
EsolveResponseHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
366
|
+
EsolveResponseHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveResponseHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
367
|
+
EsolveResponseHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveResponseHandlerService, providedIn: 'root' });
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveResponseHandlerService, decorators: [{
|
|
369
369
|
type: Injectable,
|
|
370
370
|
args: [{
|
|
371
371
|
providedIn: 'root',
|
|
@@ -460,9 +460,9 @@ class EsolveErrorHandlerService {
|
|
|
460
460
|
return new EsolveHttpError('error', result.message, result.code);
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
EsolveErrorHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
464
|
-
EsolveErrorHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
463
|
+
EsolveErrorHandlerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
464
|
+
EsolveErrorHandlerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveErrorHandlerService, providedIn: 'root' });
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveErrorHandlerService, decorators: [{
|
|
466
466
|
type: Injectable,
|
|
467
467
|
args: [{
|
|
468
468
|
providedIn: 'root'
|
|
@@ -579,9 +579,9 @@ class EsolveSeoService {
|
|
|
579
579
|
return pageSeo;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
EsolveSeoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
583
|
-
EsolveSeoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
582
|
+
EsolveSeoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSeoService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$1.Title }, { token: i1$1.Meta }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
583
|
+
EsolveSeoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSeoService, providedIn: 'root' });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSeoService, decorators: [{
|
|
585
585
|
type: Injectable,
|
|
586
586
|
args: [{
|
|
587
587
|
providedIn: 'root',
|
|
@@ -672,9 +672,9 @@ class EsolveGeocoderService {
|
|
|
672
672
|
return geocode_result;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
EsolveGeocoderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
676
|
-
EsolveGeocoderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
675
|
+
EsolveGeocoderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveGeocoderService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
676
|
+
EsolveGeocoderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveGeocoderService, providedIn: 'root' });
|
|
677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveGeocoderService, decorators: [{
|
|
678
678
|
type: Injectable,
|
|
679
679
|
args: [{
|
|
680
680
|
providedIn: 'root',
|
|
@@ -854,9 +854,9 @@ class EsolveCategoryTreeService {
|
|
|
854
854
|
return null;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
EsolveCategoryTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
858
|
-
EsolveCategoryTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
857
|
+
EsolveCategoryTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCategoryTreeService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
858
|
+
EsolveCategoryTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCategoryTreeService, providedIn: 'root' });
|
|
859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCategoryTreeService, decorators: [{
|
|
860
860
|
type: Injectable,
|
|
861
861
|
args: [{
|
|
862
862
|
providedIn: 'root',
|
|
@@ -979,9 +979,9 @@ class EsolveManufacturersService {
|
|
|
979
979
|
return new EsolveManufacturer(record);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
EsolveManufacturersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
983
|
-
EsolveManufacturersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
982
|
+
EsolveManufacturersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveManufacturersService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
983
|
+
EsolveManufacturersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveManufacturersService, providedIn: 'root' });
|
|
984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveManufacturersService, decorators: [{
|
|
985
985
|
type: Injectable,
|
|
986
986
|
args: [{
|
|
987
987
|
providedIn: 'root',
|
|
@@ -1105,9 +1105,9 @@ class EsolveRangesService {
|
|
|
1105
1105
|
return new EsolveRange(record);
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
EsolveRangesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1109
|
-
EsolveRangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1108
|
+
EsolveRangesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveRangesService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1109
|
+
EsolveRangesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveRangesService, providedIn: 'root' });
|
|
1110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveRangesService, decorators: [{
|
|
1111
1111
|
type: Injectable,
|
|
1112
1112
|
args: [{
|
|
1113
1113
|
providedIn: 'root',
|
|
@@ -1212,9 +1212,9 @@ class EsolveTagsService {
|
|
|
1212
1212
|
return tags;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
EsolveTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1216
|
-
EsolveTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1215
|
+
EsolveTagsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTagsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1216
|
+
EsolveTagsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTagsService, providedIn: 'root' });
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTagsService, decorators: [{
|
|
1218
1218
|
type: Injectable,
|
|
1219
1219
|
args: [{
|
|
1220
1220
|
providedIn: 'root',
|
|
@@ -1278,9 +1278,9 @@ class EsolveTopicService {
|
|
|
1278
1278
|
return topics;
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
EsolveTopicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1282
|
-
EsolveTopicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1281
|
+
EsolveTopicService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTopicService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1282
|
+
EsolveTopicService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTopicService, providedIn: 'root' });
|
|
1283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveTopicService, decorators: [{
|
|
1284
1284
|
type: Injectable,
|
|
1285
1285
|
args: [{
|
|
1286
1286
|
providedIn: 'root',
|
|
@@ -1448,9 +1448,9 @@ class EsolveAssetsService {
|
|
|
1448
1448
|
return params;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
EsolveAssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1452
|
-
EsolveAssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1451
|
+
EsolveAssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAssetsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1452
|
+
EsolveAssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAssetsService, providedIn: 'root' });
|
|
1453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAssetsService, decorators: [{
|
|
1454
1454
|
type: Injectable,
|
|
1455
1455
|
args: [{
|
|
1456
1456
|
providedIn: 'root',
|
|
@@ -1625,9 +1625,9 @@ class EsolveAuthService {
|
|
|
1625
1625
|
return throwError(() => error);
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
EsolveAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1629
|
-
EsolveAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1628
|
+
EsolveAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1629
|
+
EsolveAuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthService, providedIn: 'root' });
|
|
1630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAuthService, decorators: [{
|
|
1631
1631
|
type: Injectable,
|
|
1632
1632
|
args: [{
|
|
1633
1633
|
providedIn: 'root',
|
|
@@ -1824,6 +1824,14 @@ class EsolveLocationTradingDay {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
|
|
1827
|
+
class EsolveLocationGEO {
|
|
1828
|
+
constructor(distance, range, target_description) {
|
|
1829
|
+
this.distance = distance;
|
|
1830
|
+
this.range = range;
|
|
1831
|
+
this.target_description = target_description;
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1827
1835
|
class EsolveLocation {
|
|
1828
1836
|
constructor(record) {
|
|
1829
1837
|
this.id = +record.id;
|
|
@@ -1859,6 +1867,7 @@ class EsolveLocation {
|
|
|
1859
1867
|
const sunday = new EsolveLocationTradingDay(record.sunday_open_time, record.sunday_close_time);
|
|
1860
1868
|
const public_holiday = new EsolveLocationTradingDay(record.public_holiday_open_time, record.public_holiday_close_time);
|
|
1861
1869
|
this.trading_times = new EsolveLocationTradingTimes(monday, tuesday, wednesday, thursday, friday, saturday, sunday, public_holiday, record.trading_hours_additional_info);
|
|
1870
|
+
this.geo = new EsolveLocationGEO(record.range, record.distance, record.target_description);
|
|
1862
1871
|
}
|
|
1863
1872
|
}
|
|
1864
1873
|
|
|
@@ -1882,6 +1891,25 @@ class EsolveLocationsService {
|
|
|
1882
1891
|
return this.processStockLocations(response.records);
|
|
1883
1892
|
}));
|
|
1884
1893
|
}
|
|
1894
|
+
/**
|
|
1895
|
+
* Retrieves a list of stock locations
|
|
1896
|
+
*
|
|
1897
|
+
* @returns An `Observable` with an array of stock locations
|
|
1898
|
+
*/
|
|
1899
|
+
getStockLocationsGeo(addresses_id = 0) {
|
|
1900
|
+
return this.http
|
|
1901
|
+
.get(`${this.config.api_url}/get-locations-geo.php`, {
|
|
1902
|
+
params: {
|
|
1903
|
+
addresses_id,
|
|
1904
|
+
},
|
|
1905
|
+
})
|
|
1906
|
+
.pipe(map((response) => {
|
|
1907
|
+
if (response.records === undefined) {
|
|
1908
|
+
throw response;
|
|
1909
|
+
}
|
|
1910
|
+
return this.processStockLocations(response.records);
|
|
1911
|
+
}));
|
|
1912
|
+
}
|
|
1885
1913
|
/**
|
|
1886
1914
|
* Processes the eSolve stock location records.
|
|
1887
1915
|
*
|
|
@@ -1898,9 +1926,9 @@ class EsolveLocationsService {
|
|
|
1898
1926
|
return stock_locations;
|
|
1899
1927
|
}
|
|
1900
1928
|
}
|
|
1901
|
-
EsolveLocationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1902
|
-
EsolveLocationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1929
|
+
EsolveLocationsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveLocationsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1930
|
+
EsolveLocationsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveLocationsService, providedIn: 'root' });
|
|
1931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveLocationsService, decorators: [{
|
|
1904
1932
|
type: Injectable,
|
|
1905
1933
|
args: [{
|
|
1906
1934
|
providedIn: 'root',
|
|
@@ -2323,9 +2351,9 @@ class EsolveAccountService {
|
|
|
2323
2351
|
}
|
|
2324
2352
|
}
|
|
2325
2353
|
}
|
|
2326
|
-
EsolveAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2327
|
-
EsolveAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2328
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2354
|
+
EsolveAccountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAccountService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2355
|
+
EsolveAccountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAccountService, providedIn: 'root' });
|
|
2356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveAccountService, decorators: [{
|
|
2329
2357
|
type: Injectable,
|
|
2330
2358
|
args: [{
|
|
2331
2359
|
providedIn: 'root',
|
|
@@ -2467,9 +2495,9 @@ class EsolveBannerService {
|
|
|
2467
2495
|
return banners;
|
|
2468
2496
|
}
|
|
2469
2497
|
}
|
|
2470
|
-
EsolveBannerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2471
|
-
EsolveBannerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2498
|
+
EsolveBannerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveBannerService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2499
|
+
EsolveBannerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveBannerService, providedIn: 'root' });
|
|
2500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveBannerService, decorators: [{
|
|
2473
2501
|
type: Injectable,
|
|
2474
2502
|
args: [{
|
|
2475
2503
|
providedIn: 'root',
|
|
@@ -2612,9 +2640,9 @@ class EsolveMediaService {
|
|
|
2612
2640
|
return this.http.get(`${this.config.api_url}/get-media.php`, { params });
|
|
2613
2641
|
}
|
|
2614
2642
|
}
|
|
2615
|
-
EsolveMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2616
|
-
EsolveMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2643
|
+
EsolveMediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2644
|
+
EsolveMediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, providedIn: 'root' });
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMediaService, decorators: [{
|
|
2618
2646
|
type: Injectable,
|
|
2619
2647
|
args: [{
|
|
2620
2648
|
providedIn: 'root',
|
|
@@ -2663,9 +2691,9 @@ class EsolveMenuService {
|
|
|
2663
2691
|
return menu;
|
|
2664
2692
|
}
|
|
2665
2693
|
}
|
|
2666
|
-
EsolveMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2667
|
-
EsolveMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2694
|
+
EsolveMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMenuService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2695
|
+
EsolveMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMenuService, providedIn: 'root' });
|
|
2696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveMenuService, decorators: [{
|
|
2669
2697
|
type: Injectable,
|
|
2670
2698
|
args: [{
|
|
2671
2699
|
providedIn: 'root',
|
|
@@ -2863,9 +2891,9 @@ class EsolveNewsService {
|
|
|
2863
2891
|
return params;
|
|
2864
2892
|
}
|
|
2865
2893
|
}
|
|
2866
|
-
EsolveNewsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2867
|
-
EsolveNewsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2894
|
+
EsolveNewsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveNewsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2895
|
+
EsolveNewsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveNewsService, providedIn: 'root' });
|
|
2896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveNewsService, decorators: [{
|
|
2869
2897
|
type: Injectable,
|
|
2870
2898
|
args: [{
|
|
2871
2899
|
providedIn: 'root',
|
|
@@ -2953,7 +2981,7 @@ class EsolveStockLeadTimes {
|
|
|
2953
2981
|
|
|
2954
2982
|
class EsolveStockItemBase {
|
|
2955
2983
|
constructor(record = {}) {
|
|
2956
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
2984
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
2957
2985
|
/**
|
|
2958
2986
|
* eSolve Generated ID
|
|
2959
2987
|
*/
|
|
@@ -2986,6 +3014,22 @@ class EsolveStockItemBase {
|
|
|
2986
3014
|
* Featured state
|
|
2987
3015
|
*/
|
|
2988
3016
|
this.featured = false;
|
|
3017
|
+
/**
|
|
3018
|
+
* Quotable state
|
|
3019
|
+
*/
|
|
3020
|
+
this.allow_quotes = true;
|
|
3021
|
+
/**
|
|
3022
|
+
* Orderable state
|
|
3023
|
+
*/
|
|
3024
|
+
this.allow_orders = true;
|
|
3025
|
+
/**
|
|
3026
|
+
* Number of stock available
|
|
3027
|
+
*/
|
|
3028
|
+
this.amount_in_stock = 0;
|
|
3029
|
+
/**
|
|
3030
|
+
* Total items linked to the item as a recipe
|
|
3031
|
+
*/
|
|
3032
|
+
this.total_recipe_items = 0;
|
|
2989
3033
|
/**
|
|
2990
3034
|
* Height measured in meters (m)
|
|
2991
3035
|
*/
|
|
@@ -3070,17 +3114,21 @@ class EsolveStockItemBase {
|
|
|
3070
3114
|
this.ranges_id = +((_l = record.ranges_id) !== null && _l !== void 0 ? _l : 0);
|
|
3071
3115
|
this.active = !!+((_m = record.is_active) !== null && _m !== void 0 ? _m : false);
|
|
3072
3116
|
this.featured = !!+((_o = record.is_featured) !== null && _o !== void 0 ? _o : false);
|
|
3073
|
-
this.
|
|
3074
|
-
this.
|
|
3075
|
-
this.
|
|
3076
|
-
this.
|
|
3117
|
+
this.allow_quotes = ((_p = record.allow_quotes) !== null && _p !== void 0 ? _p : true);
|
|
3118
|
+
this.allow_orders = ((_q = record.allow_orders) !== null && _q !== void 0 ? _q : true);
|
|
3119
|
+
this.amount_in_stock = +((_r = record.onhand) !== null && _r !== void 0 ? _r : 0);
|
|
3120
|
+
this.total_recipe_items = +((_s = record.total_recipe_items) !== null && _s !== void 0 ? _s : 0);
|
|
3121
|
+
this.height = +((_t = record.height) !== null && _t !== void 0 ? _t : 0);
|
|
3122
|
+
this.width = +((_u = record.width) !== null && _u !== void 0 ? _u : 0);
|
|
3123
|
+
this.length = +((_v = record.length) !== null && _v !== void 0 ? _v : 0);
|
|
3124
|
+
this.weight = +((_w = record.weight) !== null && _w !== void 0 ? _w : 0);
|
|
3077
3125
|
if (record.unit_of_measure) {
|
|
3078
3126
|
this.unit_of_measure = record.unit_of_measure;
|
|
3079
3127
|
}
|
|
3080
|
-
base_price = +((
|
|
3081
|
-
base_price_with_tax = +((
|
|
3082
|
-
sell_price = +((
|
|
3083
|
-
sell_price_with_tax = +((
|
|
3128
|
+
base_price = +((_x = record.regular_sellprice) !== null && _x !== void 0 ? _x : 0);
|
|
3129
|
+
base_price_with_tax = +((_y = record.regular_sellprice_inclusive) !== null && _y !== void 0 ? _y : 0);
|
|
3130
|
+
sell_price = +((_z = record.sellprice) !== null && _z !== void 0 ? _z : 0);
|
|
3131
|
+
sell_price_with_tax = +((_0 = record.sellprice_inclusive) !== null && _0 !== void 0 ? _0 : 0);
|
|
3084
3132
|
if ((record.tags) && (record.tags.length > 0)) {
|
|
3085
3133
|
for (const tag of record.tags) {
|
|
3086
3134
|
this.tags.push(new EsolveTag(tag));
|
|
@@ -3119,8 +3167,8 @@ class EsolveStockItemBase {
|
|
|
3119
3167
|
if (record.custom_fields) {
|
|
3120
3168
|
this.custom_fields = record.custom_fields;
|
|
3121
3169
|
}
|
|
3122
|
-
seo_title = (
|
|
3123
|
-
seo_keywords = (
|
|
3170
|
+
seo_title = (_1 = record.seo_page_title) !== null && _1 !== void 0 ? _1 : '';
|
|
3171
|
+
seo_keywords = (_2 = record.seo_keywords) !== null && _2 !== void 0 ? _2 : '';
|
|
3124
3172
|
}
|
|
3125
3173
|
this.price = new EsolveStockPrice(base_price, base_price_with_tax, sell_price, sell_price_with_tax);
|
|
3126
3174
|
if (seo_title.trim() === '') {
|
|
@@ -3158,6 +3206,9 @@ class EsolveStockItemBase {
|
|
|
3158
3206
|
get original_image_src() {
|
|
3159
3207
|
return this.getImagePath('original');
|
|
3160
3208
|
}
|
|
3209
|
+
get available() {
|
|
3210
|
+
return (this.amount_in_stock > 0);
|
|
3211
|
+
}
|
|
3161
3212
|
getImagePath(image_size) {
|
|
3162
3213
|
if (this.image_name !== '') {
|
|
3163
3214
|
return `/images/stock/${image_size}/${this.image_name}`;
|
|
@@ -3613,9 +3664,9 @@ class EsolveStockService {
|
|
|
3613
3664
|
return this.http.get(`${this.config.api_url}/get-items.php`, { params });
|
|
3614
3665
|
}
|
|
3615
3666
|
}
|
|
3616
|
-
EsolveStockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
3617
|
-
EsolveStockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
3618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3667
|
+
EsolveStockService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveStockService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3668
|
+
EsolveStockService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveStockService, providedIn: 'root' });
|
|
3669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveStockService, decorators: [{
|
|
3619
3670
|
type: Injectable,
|
|
3620
3671
|
args: [{
|
|
3621
3672
|
providedIn: 'root',
|
|
@@ -3757,9 +3808,9 @@ class EsolveSpecialsService {
|
|
|
3757
3808
|
return new EsolveSpecial(record);
|
|
3758
3809
|
}
|
|
3759
3810
|
}
|
|
3760
|
-
EsolveSpecialsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
3761
|
-
EsolveSpecialsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
3762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3811
|
+
EsolveSpecialsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSpecialsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3812
|
+
EsolveSpecialsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSpecialsService, providedIn: 'root' });
|
|
3813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveSpecialsService, decorators: [{
|
|
3763
3814
|
type: Injectable,
|
|
3764
3815
|
args: [{
|
|
3765
3816
|
providedIn: 'root'
|
|
@@ -3804,7 +3855,7 @@ class EsolveCartItem {
|
|
|
3804
3855
|
}
|
|
3805
3856
|
|
|
3806
3857
|
class EsolveCartStockItem {
|
|
3807
|
-
constructor(code, name, sef_name, description, active, items_in_pack, delivery_category, image_name) {
|
|
3858
|
+
constructor(code, name, sef_name, description, active, items_in_pack, delivery_category, onhand, image_name) {
|
|
3808
3859
|
this.code = code;
|
|
3809
3860
|
this.name = name;
|
|
3810
3861
|
this.sef_name = sef_name;
|
|
@@ -3812,6 +3863,7 @@ class EsolveCartStockItem {
|
|
|
3812
3863
|
this.active = active;
|
|
3813
3864
|
this.items_in_pack = items_in_pack;
|
|
3814
3865
|
this.delivery_category = delivery_category;
|
|
3866
|
+
this.onhand = onhand;
|
|
3815
3867
|
this.image_name = image_name;
|
|
3816
3868
|
}
|
|
3817
3869
|
/**
|
|
@@ -3946,9 +3998,13 @@ class EsolveCartService {
|
|
|
3946
3998
|
*
|
|
3947
3999
|
* @returns An `Observable` with an object containing cart totals
|
|
3948
4000
|
*/
|
|
3949
|
-
getTotals() {
|
|
4001
|
+
getTotals(type) {
|
|
3950
4002
|
return this.http
|
|
3951
|
-
.get(`${this.config.api_url}/get-cart-totals.php
|
|
4003
|
+
.get(`${this.config.api_url}/get-cart-totals.php`, {
|
|
4004
|
+
params: {
|
|
4005
|
+
type: type !== null && type !== void 0 ? type : '',
|
|
4006
|
+
},
|
|
4007
|
+
})
|
|
3952
4008
|
.pipe(map((response) => {
|
|
3953
4009
|
if (response.records === undefined) {
|
|
3954
4010
|
throw response;
|
|
@@ -4024,7 +4080,7 @@ class EsolveCartService {
|
|
|
4024
4080
|
const cart_items = [];
|
|
4025
4081
|
if (cart_item_records) {
|
|
4026
4082
|
for (const cart_item_record of cart_item_records) {
|
|
4027
|
-
const cart_stock_item = new EsolveCartStockItem(cart_item_record.code, cart_item_record.name, cart_item_record.sef_name, cart_item_record.description, cart_item_record.is_active, +cart_item_record.items_in_pack, cart_item_record.delivery_category, cart_item_record.image_name);
|
|
4083
|
+
const cart_stock_item = new EsolveCartStockItem(cart_item_record.code, cart_item_record.name, cart_item_record.sef_name, cart_item_record.description, cart_item_record.is_active, +cart_item_record.items_in_pack, cart_item_record.delivery_category, +cart_item_record.onhand, cart_item_record.image_name);
|
|
4028
4084
|
cart_items.push(new EsolveCartItem(+cart_item_record.id, cart_stock_item, +cart_item_record.qty, cart_item_record.type, +cart_item_record.price, +cart_item_record.discount, +cart_item_record.discount_interval, cart_item_record.vat_rate, cart_item_record.allow_quotes, cart_item_record.allow_orders, cart_item_record.must_collect, cart_item_record.requested_assembly, +cart_item_record.price_incl, +cart_item_record.discount_price, +cart_item_record.discount_price_incl, +cart_item_record.discount_total, +cart_item_record.vat_total, +cart_item_record.line_total, +cart_item_record.line_total_incl));
|
|
4029
4085
|
}
|
|
4030
4086
|
}
|
|
@@ -4041,9 +4097,9 @@ class EsolveCartService {
|
|
|
4041
4097
|
return cart_totals;
|
|
4042
4098
|
}
|
|
4043
4099
|
}
|
|
4044
|
-
EsolveCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
4045
|
-
EsolveCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
4046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
4100
|
+
EsolveCartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCartService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4101
|
+
EsolveCartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCartService, providedIn: 'root' });
|
|
4102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveCartService, decorators: [{
|
|
4047
4103
|
type: Injectable,
|
|
4048
4104
|
args: [{
|
|
4049
4105
|
providedIn: 'root',
|
|
@@ -4310,19 +4366,21 @@ class EsolvePaymentService {
|
|
|
4310
4366
|
const body = {
|
|
4311
4367
|
payment: {
|
|
4312
4368
|
cart_id: transaction_id,
|
|
4313
|
-
payment_methods_id
|
|
4369
|
+
payment_methods_id,
|
|
4314
4370
|
},
|
|
4315
4371
|
};
|
|
4316
|
-
if (
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4372
|
+
if (card) {
|
|
4373
|
+
if (typeof card === 'number') {
|
|
4374
|
+
body.payment.user_vault_id = card;
|
|
4375
|
+
}
|
|
4376
|
+
else {
|
|
4377
|
+
body.card = {
|
|
4378
|
+
card_number: card.card_number,
|
|
4379
|
+
card_name: card.name,
|
|
4380
|
+
card_cvv: card.cvv,
|
|
4381
|
+
card_expiry: this.generateExpiry(card),
|
|
4382
|
+
};
|
|
4383
|
+
}
|
|
4326
4384
|
}
|
|
4327
4385
|
return this.http
|
|
4328
4386
|
.post(`${this.config.api_url}/set-payment.php`, body, {
|
|
@@ -4383,9 +4441,9 @@ class EsolvePaymentService {
|
|
|
4383
4441
|
return `${month_string}${year_string}`;
|
|
4384
4442
|
}
|
|
4385
4443
|
}
|
|
4386
|
-
EsolvePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
4387
|
-
EsolvePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
4388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
4444
|
+
EsolvePaymentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolvePaymentService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4445
|
+
EsolvePaymentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolvePaymentService, providedIn: 'root' });
|
|
4446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolvePaymentService, decorators: [{
|
|
4389
4447
|
type: Injectable,
|
|
4390
4448
|
args: [{
|
|
4391
4449
|
providedIn: 'root',
|
|
@@ -4547,9 +4605,9 @@ class EsolveShippingService {
|
|
|
4547
4605
|
return shipping_cost;
|
|
4548
4606
|
}
|
|
4549
4607
|
}
|
|
4550
|
-
EsolveShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
4551
|
-
EsolveShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
4552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
4608
|
+
EsolveShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveShippingService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4609
|
+
EsolveShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveShippingService, providedIn: 'root' });
|
|
4610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveShippingService, decorators: [{
|
|
4553
4611
|
type: Injectable,
|
|
4554
4612
|
args: [{
|
|
4555
4613
|
providedIn: 'root',
|
|
@@ -4590,9 +4648,9 @@ class EsolveEnquiryService {
|
|
|
4590
4648
|
}));
|
|
4591
4649
|
}
|
|
4592
4650
|
}
|
|
4593
|
-
EsolveEnquiryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
4594
|
-
EsolveEnquiryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
4595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
4651
|
+
EsolveEnquiryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveEnquiryService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveErrorHandlerService }, { token: EsolveResponseHandlerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4652
|
+
EsolveEnquiryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveEnquiryService, providedIn: 'root' });
|
|
4653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EsolveEnquiryService, decorators: [{
|
|
4596
4654
|
type: Injectable,
|
|
4597
4655
|
args: [{
|
|
4598
4656
|
providedIn: 'root',
|