@esolve/ng-esolve-connect 0.46.2 → 0.47.0
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/esm2022/index.mjs +3 -1
- package/esm2022/lib/account/esolve-account.service.mjs +12 -17
- package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +9 -11
- package/esm2022/lib/auth/esolve-auth.service.mjs +11 -15
- package/esm2022/lib/banners/esolve-banner.service.mjs +9 -11
- package/esm2022/lib/cart/classes/esolve-cart-totals.model.mjs +11 -3
- package/esm2022/lib/cart/esolve-cart.service.mjs +28 -22
- package/esm2022/lib/cart/interfaces/esolve-cart-totals-record.interface.mjs +1 -1
- package/esm2022/lib/cart/interfaces/esolve-checkout-body.interface.mjs +2 -0
- package/esm2022/lib/cart/interfaces/index.mjs +2 -1
- package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +9 -11
- package/esm2022/lib/core/esolve-config.service.mjs +12 -10
- package/esm2022/lib/core/esolve-connect-config.interface.mjs +1 -1
- package/esm2022/lib/coupons/esolve-coupons.service.mjs +21 -28
- package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +11 -15
- package/esm2022/lib/images/directives/cdn-src.directive.mjs +9 -10
- package/esm2022/lib/locations/esolve-locations.service.mjs +9 -11
- package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +9 -11
- package/esm2022/lib/menu/esolve-menu.service.mjs +9 -11
- package/esm2022/lib/news/esolve-news.service.mjs +9 -11
- package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
- package/esm2022/lib/payment/esolve-payment.service.mjs +11 -15
- package/esm2022/lib/ranges/esolve-ranges.service.mjs +9 -11
- package/esm2022/lib/session/esolve-session-metadata.service.mjs +11 -15
- package/esm2022/lib/session/esolve-session.service.mjs +16 -19
- package/esm2022/lib/shared/assets/esolve-assets.service.mjs +9 -11
- package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
- package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
- package/esm2022/lib/shared/geocoder/esolve-geocoder.service.mjs +9 -11
- package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
- package/esm2022/lib/shared/seo/esolve-seo.service.mjs +9 -11
- package/esm2022/lib/shipping/esolve-shipping.service.mjs +9 -11
- package/esm2022/lib/specials/esolve-specials.service.mjs +9 -11
- package/esm2022/lib/stock/esolve-stock.service.mjs +9 -11
- package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +9 -11
- package/esm2022/lib/tags/esolve-tags.service.mjs +9 -11
- package/esm2022/lib/topics/esolve-topic.service.mjs +9 -11
- package/esm2022/lib/transactions/esolve-transactions.service.mjs +11 -15
- package/esm2022/lib/vouchers/classes/esolve-voucher.model.mjs +18 -0
- package/esm2022/lib/vouchers/classes/index.mjs +2 -0
- package/esm2022/lib/vouchers/esolve-vouchers.service.mjs +221 -0
- package/esm2022/lib/vouchers/index.mjs +9 -0
- package/esm2022/lib/vouchers/interfaces/esolve-voucher-record.interface.mjs +2 -0
- package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation-error.interface.mjs +2 -0
- package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation-result.interface.mjs +2 -0
- package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation.interface.mjs +2 -0
- package/esm2022/lib/vouchers/interfaces/index.mjs +5 -0
- package/esm2022/lib/vouchers/types/esolve-vouchers-cache.type.mjs +2 -0
- package/esm2022/lib/vouchers/types/index.mjs +2 -0
- package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +11 -15
- package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
- package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
- package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
- package/esm2022/media/lib/services/esolve-media-layout.service.mjs +3 -3
- package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
- package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +10 -14
- package/esm2022/survey/lib/services/esolve-survey.service.mjs +12 -17
- package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +10 -14
- package/fesm2022/esolve-ng-esolve-connect-notifications.mjs.map +1 -1
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs +12 -17
- package/fesm2022/esolve-ng-esolve-connect-survey.mjs.map +1 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +518 -272
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/account/esolve-account.service.d.ts +6 -11
- package/lib/auth/esolve-auth-interceptor.service.d.ts +2 -5
- package/lib/auth/esolve-auth.service.d.ts +5 -9
- package/lib/banners/esolve-banner.service.d.ts +2 -5
- package/lib/cart/classes/esolve-cart-totals.model.d.ts +9 -1
- package/lib/cart/esolve-cart.service.d.ts +7 -12
- package/lib/cart/interfaces/esolve-cart-totals-record.interface.d.ts +2 -0
- package/lib/cart/interfaces/esolve-checkout-body.interface.d.ts +13 -0
- package/lib/cart/interfaces/index.d.ts +1 -0
- package/lib/category-tree/esolve-category-tree.service.d.ts +2 -5
- package/lib/core/esolve-config.service.d.ts +2 -1
- package/lib/core/esolve-connect-config.interface.d.ts +4 -0
- package/lib/coupons/esolve-coupons.service.d.ts +6 -10
- package/lib/enquiry/esolve-enquiry.service.d.ts +4 -9
- package/lib/images/directives/cdn-src.directive.d.ts +4 -5
- package/lib/locations/esolve-locations.service.d.ts +2 -5
- package/lib/manufacturers/esolve-manufacturers.service.d.ts +2 -5
- package/lib/menu/esolve-menu.service.d.ts +2 -5
- package/lib/news/esolve-news.service.d.ts +2 -5
- package/lib/payment/esolve-payment.service.d.ts +4 -9
- package/lib/ranges/esolve-ranges.service.d.ts +2 -5
- package/lib/session/esolve-session-metadata.service.d.ts +5 -9
- package/lib/session/esolve-session.service.d.ts +4 -7
- package/lib/shared/assets/esolve-assets.service.d.ts +2 -5
- package/lib/shared/geocoder/esolve-geocoder.service.d.ts +2 -5
- package/lib/shared/seo/esolve-seo.service.d.ts +5 -7
- package/lib/shipping/esolve-shipping.service.d.ts +2 -5
- package/lib/specials/esolve-specials.service.d.ts +2 -5
- package/lib/stock/esolve-stock.service.d.ts +2 -5
- package/lib/suppliers/esolve-suppliers.service.d.ts +2 -5
- package/lib/tags/esolve-tags.service.d.ts +2 -5
- package/lib/topics/esolve-topic.service.d.ts +2 -5
- package/lib/transactions/esolve-transactions.service.d.ts +5 -9
- package/lib/vouchers/classes/esolve-voucher.model.d.ts +11 -0
- package/lib/vouchers/classes/index.d.ts +1 -0
- package/lib/vouchers/esolve-vouchers.service.d.ts +36 -0
- package/lib/vouchers/index.d.ts +4 -0
- package/lib/vouchers/interfaces/esolve-voucher-record.interface.d.ts +6 -0
- package/lib/vouchers/interfaces/esolve-voucher-validation-error.interface.d.ts +4 -0
- package/lib/vouchers/interfaces/esolve-voucher-validation-result.interface.d.ts +4 -0
- package/lib/vouchers/interfaces/esolve-voucher-validation.interface.d.ts +6 -0
- package/lib/vouchers/interfaces/index.d.ts +4 -0
- package/lib/vouchers/types/esolve-vouchers-cache.type.d.ts +1 -0
- package/lib/vouchers/types/index.d.ts +1 -0
- package/lib/wishlist/esolve-wishlist.service.d.ts +4 -9
- package/notifications/lib/services/esolve-notifications.service.d.ts +2 -5
- package/package.json +1 -1
- package/survey/lib/services/esolve-survey.service.d.ts +4 -7
package/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { EsolveResult } from '../shared/esolve-result.model';
|
|
4
|
-
import { EsolveErrorHandlerService } from '../shared/errors';
|
|
5
|
-
import { EsolveResponseHandlerService } from '../shared/response';
|
|
6
|
-
import { EsolveSessionService } from '../session/esolve-session.service';
|
|
7
3
|
import { EsolveRegistrationData, EsolveRegistrationResult } from './registration';
|
|
8
4
|
import { EsolveAddress, EsolveAddressResult, EsolveAddressPostData } from './address';
|
|
9
5
|
import { EsolveChangePasswordResult, EsolveResetPasswordResult } from './password';
|
|
@@ -11,18 +7,17 @@ import { EsolveTransaction, EsolveTransactionOptions, EsolveTransactionList } fr
|
|
|
11
7
|
import { EsolveUserAccount, EsolveUserAccountData, EsolveUserAccountResult, EsolveUserClientAccountBalances } from './user-account';
|
|
12
8
|
import { EsolveAccountConfirmationResult } from './confirmation';
|
|
13
9
|
import { EsolveLocationUpdateResult } from './location';
|
|
14
|
-
import { EsolveConfigService } from '../core';
|
|
15
10
|
import * as i0 from "@angular/core";
|
|
16
11
|
export declare class EsolveAccountService {
|
|
17
|
-
private config;
|
|
18
|
-
private http;
|
|
19
|
-
private sessionService;
|
|
20
|
-
private errorHandler;
|
|
21
|
-
private responseHandler;
|
|
12
|
+
private readonly config;
|
|
13
|
+
private readonly http;
|
|
14
|
+
private readonly sessionService;
|
|
15
|
+
private readonly errorHandler;
|
|
16
|
+
private readonly responseHandler;
|
|
22
17
|
private _user_id;
|
|
23
18
|
get user_id(): number;
|
|
24
19
|
set user_id(value: number);
|
|
25
|
-
constructor(
|
|
20
|
+
constructor();
|
|
26
21
|
updateUserAccount(user_account_data: EsolveUserAccountData): Observable<EsolveUserAccountResult>;
|
|
27
22
|
getUserAccount(): Observable<EsolveUserAccount>;
|
|
28
23
|
deleteUserAccount(): Observable<EsolveResult>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveSessionService } from '../session';
|
|
4
|
-
import { EsolveConfigService } from '../core';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveAuthInterceptorService implements HttpInterceptor {
|
|
7
|
-
private config;
|
|
8
|
-
private session;
|
|
9
|
-
constructor(config: EsolveConfigService, session: EsolveSessionService);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly session;
|
|
10
7
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveAuthInterceptorService, never>;
|
|
12
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveAuthInterceptorService>;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
|
-
import { EsolveErrorHandlerService } from '../shared/errors/esolve-error-handler.service';
|
|
5
|
-
import { EsolveSessionService } from '../session';
|
|
6
2
|
import { EsolveAuthGetResponse } from './types';
|
|
7
3
|
import * as i0 from "@angular/core";
|
|
8
4
|
export declare class EsolveAuthService {
|
|
9
|
-
private config;
|
|
10
|
-
private http;
|
|
11
|
-
private session;
|
|
12
|
-
private errorHandler;
|
|
13
|
-
constructor(
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
7
|
+
private readonly session;
|
|
8
|
+
private readonly errorHandler;
|
|
9
|
+
constructor();
|
|
14
10
|
getAccessToken(email: string, password: string, anonymous?: boolean): Observable<EsolveAuthGetResponse>;
|
|
15
11
|
getAnonymousSession(): Observable<EsolveAuthGetResponse>;
|
|
16
12
|
autoLogin(): Promise<void>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveBanner } from './esolve-banner.model';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveBannerService {
|
|
7
|
-
private config;
|
|
8
|
-
private http;
|
|
9
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
10
7
|
/**
|
|
11
8
|
* Retrieves banners records from eSolve instance
|
|
12
9
|
*
|
|
@@ -22,6 +22,10 @@ export declare class EsolveCartTotals {
|
|
|
22
22
|
* Total discount of all the item in the cart
|
|
23
23
|
*/
|
|
24
24
|
discount_total: number;
|
|
25
|
+
/**
|
|
26
|
+
* Total of all vouchers used
|
|
27
|
+
*/
|
|
28
|
+
voucher_total: number;
|
|
25
29
|
/**
|
|
26
30
|
* Grand total of cart which includes discount and VAT (NOTE: shipping and insurance is not included)
|
|
27
31
|
*/
|
|
@@ -46,5 +50,9 @@ export declare class EsolveCartTotals {
|
|
|
46
50
|
/**
|
|
47
51
|
* Total discount of all the item in the cart
|
|
48
52
|
*/
|
|
49
|
-
discount_total?: number
|
|
53
|
+
discount_total?: number,
|
|
54
|
+
/**
|
|
55
|
+
* Total of all vouchers used
|
|
56
|
+
*/
|
|
57
|
+
voucher_total?: number);
|
|
50
58
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import { EsolveErrorHandlerService } from '../shared/errors/esolve-error-handler.service';
|
|
5
|
-
import { EsolveResponseHandlerService } from '../shared/response';
|
|
6
|
-
import { EsolveCouponsService } from '../coupons';
|
|
2
|
+
import { EsolveTransactionType } from '../transactions';
|
|
7
3
|
import { EsolveCartTotals, EsolveCheckoutResult, EsolveEmptyCartResult, EsolveTransactionAnalyticsData } from './classes';
|
|
8
4
|
import { EsolveAdditionalWhere, EsolveCartItemResponse, EsolveCartSetItem, EsolveTimeSlotCheckout } from './interfaces';
|
|
9
5
|
import { EsolveCart, EsolveCartSetAction } from './types';
|
|
10
|
-
import { EsolveTransactionType } from '../transactions';
|
|
11
6
|
import * as i0 from "@angular/core";
|
|
12
7
|
export declare class EsolveCartService {
|
|
13
|
-
private config;
|
|
14
|
-
private http;
|
|
15
|
-
private errorHandler;
|
|
16
|
-
private responseHandler;
|
|
17
|
-
private coupons;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly http;
|
|
10
|
+
private readonly errorHandler;
|
|
11
|
+
private readonly responseHandler;
|
|
12
|
+
private readonly coupons;
|
|
13
|
+
private readonly vouchers;
|
|
18
14
|
private _cached_tracking;
|
|
19
|
-
constructor(config: EsolveConfigService, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService, coupons: EsolveCouponsService);
|
|
20
15
|
/**
|
|
21
16
|
* Retrieves the current cart
|
|
22
17
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EsolveTransactionType } from '../../transactions';
|
|
2
|
+
import { EsolveTimeSlotCheckout } from './esolve-time-slot-checkout.interface';
|
|
3
|
+
export interface EsolveCheckoutBody {
|
|
4
|
+
type: EsolveTransactionType;
|
|
5
|
+
addresses_id: number;
|
|
6
|
+
shipping_id: number;
|
|
7
|
+
payment_method_id: number;
|
|
8
|
+
location_id: number;
|
|
9
|
+
comments: string;
|
|
10
|
+
tracking: number;
|
|
11
|
+
time_slot?: EsolveTimeSlotCheckout;
|
|
12
|
+
vouchers?: string[];
|
|
13
|
+
}
|
|
@@ -7,3 +7,4 @@ export * from './esolve-cart-set-item.interface';
|
|
|
7
7
|
export * from './esolve-cart-totals-record.interface';
|
|
8
8
|
export * from './esolve-transaction-analytics-data-record.interface';
|
|
9
9
|
export * from './esolve-time-slot-checkout.interface';
|
|
10
|
+
export * from './esolve-checkout-body.interface';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveCategoryTreeItem } from './esolve-category-tree-item.model';
|
|
5
3
|
import { EsolveCategoryTreeItemOptions } from './esolve-category-tree-item-options.interface';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveCategoryTreeService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
/**
|
|
12
9
|
* Retrieves the category tree from eSolve instance and coverts it to the correct format.
|
|
13
10
|
*/
|
|
@@ -13,12 +13,13 @@ export declare class EsolveConfigService implements EsolveConnectConfig {
|
|
|
13
13
|
native: boolean;
|
|
14
14
|
session_storage_key: string;
|
|
15
15
|
coupon_storage_key: string;
|
|
16
|
+
voucher_storage_key: string;
|
|
16
17
|
device_designation: string;
|
|
17
18
|
legacy_cdn?: string;
|
|
18
19
|
cdn?: string;
|
|
19
20
|
ftg_cdn?: string;
|
|
20
21
|
error_image_path?: string;
|
|
21
|
-
constructor(
|
|
22
|
+
constructor();
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveConfigService, never>;
|
|
23
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveConfigService>;
|
|
24
25
|
}
|
|
@@ -46,6 +46,10 @@ export interface EsolveConnectConfig {
|
|
|
46
46
|
* Key for coupon local storage (Default is `_ng_eslv_coupons`)
|
|
47
47
|
*/
|
|
48
48
|
coupon_storage_key?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Key for voucher local storage (Default is `_ng_eslv_vouchers`)
|
|
51
|
+
*/
|
|
52
|
+
voucher_storage_key?: string;
|
|
49
53
|
/**
|
|
50
54
|
* Indicates whether the implementation is a native app or a website. If it is a native
|
|
51
55
|
* app, the `device_designation` is required for native app features to be enabled
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
|
-
import { EsolveCookieService } from '../shared/cookie/esolve-cookie.service';
|
|
5
2
|
import { EsolveCoupon } from './classes';
|
|
6
3
|
import { EsolveCouponValidationError, EsolveCouponValidationResult } from './interfaces';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
5
|
export declare class EsolveCouponsService {
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private cookieService;
|
|
6
|
+
private readonly is_browser;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly cookieService;
|
|
13
10
|
private storage_key;
|
|
14
|
-
private
|
|
11
|
+
private cache;
|
|
15
12
|
private applied;
|
|
16
13
|
private validation_error;
|
|
17
|
-
|
|
18
|
-
constructor(platformId: object, config: EsolveConfigService, http: HttpClient, cookieService: EsolveCookieService);
|
|
14
|
+
constructor();
|
|
19
15
|
onValidationError(): Observable<EsolveCouponValidationError | undefined>;
|
|
20
16
|
onApplied(): Observable<void>;
|
|
21
17
|
validate(coupon_key: string): Observable<EsolveCouponValidationResult>;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveErrorHandlerService } from '../shared/errors';
|
|
4
|
-
import { EsolveResponseHandlerService } from '../shared/response';
|
|
5
2
|
import { EsolveEnquiryResult } from './esolve-enquiry-result.model';
|
|
6
|
-
import { EsolveConfigService } from '../core';
|
|
7
3
|
import * as i0 from "@angular/core";
|
|
8
4
|
export declare class EsolveEnquiryService {
|
|
9
|
-
private config;
|
|
10
|
-
private http;
|
|
11
|
-
private errorHandler;
|
|
12
|
-
private responseHandler;
|
|
13
|
-
constructor(config: EsolveConfigService, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
7
|
+
private readonly errorHandler;
|
|
8
|
+
private readonly responseHandler;
|
|
14
9
|
send(form_data: FormData): Observable<EsolveEnquiryResult>;
|
|
15
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveEnquiryService, never>;
|
|
16
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<EsolveEnquiryService>;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EsolveConfigService } from '../../core';
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* An alternative to optimised images to load a new image
|
|
6
5
|
*/
|
|
7
6
|
export declare class EsolveCdnSrcDirective implements OnChanges {
|
|
8
|
-
private el;
|
|
9
|
-
private config;
|
|
7
|
+
private readonly el;
|
|
8
|
+
private readonly config;
|
|
10
9
|
src: string;
|
|
11
10
|
private no_image;
|
|
12
11
|
private error_image_path;
|
|
13
|
-
constructor(
|
|
12
|
+
constructor();
|
|
14
13
|
ngOnChanges(): void;
|
|
15
14
|
onError(): void;
|
|
16
15
|
init(): void;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveLocation } from './classes/esolve-location.model';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveLocationsService {
|
|
7
|
-
private config;
|
|
8
|
-
private http;
|
|
9
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
10
7
|
/**
|
|
11
8
|
* Retrieves a list of stock locations
|
|
12
9
|
*
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveManufacturer } from './esolve-manufacturer.model';
|
|
5
3
|
import { EsolveManufacturerOptions } from './esolve-manufacturer-options.interface';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveManufacturersService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
getManufacturer(id: number): Observable<EsolveManufacturer>;
|
|
12
9
|
getManufacturerFromSEF(sef_manufacturer: string): Observable<EsolveManufacturer>;
|
|
13
10
|
getManufacturers(options?: EsolveManufacturerOptions): Observable<EsolveManufacturer[]>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveMenu } from './types';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveMenuService {
|
|
7
|
-
private config;
|
|
8
|
-
private http;
|
|
9
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
10
7
|
getMenuTree(identifier: string): Observable<EsolveMenu>;
|
|
11
8
|
private handleMenu;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsolveMenuService, never>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import { EsolveNewsArticle } from './esolve-news-article.model';
|
|
4
3
|
import { EsolveNewsGroup } from './esolve-news-group.model';
|
|
5
4
|
import { EsolveNewsArticleList } from './esolve-news-article-list.model';
|
|
6
5
|
import { EsolveNewsArticleOptions } from './esolve-news-article-options.interface';
|
|
7
|
-
import { EsolveConfigService } from '../core';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export declare class EsolveNewsService {
|
|
10
|
-
private config;
|
|
11
|
-
private http;
|
|
12
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly http;
|
|
13
10
|
getNewsArticle(identifier: string): Observable<EsolveNewsArticle>;
|
|
14
11
|
getNewsArticles(options?: EsolveNewsArticleOptions): Observable<EsolveNewsArticleList>;
|
|
15
12
|
getNewsGroups(enable_images?: boolean): Observable<EsolveNewsGroup[]>;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
|
-
import { EsolveErrorHandlerService } from '../shared/errors/esolve-error-handler.service';
|
|
5
2
|
import { EsolveResult } from '../shared/esolve-result.model';
|
|
6
|
-
import { EsolveResponseHandlerService } from '../shared/response';
|
|
7
3
|
import { EsolvePaymentMethod, EsolvePaymentResult, EsolveVaultItem, EsolveVaultItemResult } from './classes';
|
|
8
4
|
import { EsolveCardData, EsolvePaymentMethodOptions, EsolvePaymentRedirectLinks } from './interfaces';
|
|
9
5
|
import * as i0 from "@angular/core";
|
|
10
6
|
export declare class EsolvePaymentService {
|
|
11
|
-
private config;
|
|
12
|
-
private http;
|
|
13
|
-
private errorHandler;
|
|
14
|
-
private responseHandler;
|
|
15
|
-
constructor(config: EsolveConfigService, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
|
|
7
|
+
private readonly config;
|
|
8
|
+
private readonly http;
|
|
9
|
+
private readonly errorHandler;
|
|
10
|
+
private readonly responseHandler;
|
|
16
11
|
/**
|
|
17
12
|
* Retrieves a list of payment methods.
|
|
18
13
|
*
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveRange } from './esolve-range.model';
|
|
5
3
|
import { EsolveRangeOptions } from './esolve-range-options.interface';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveRangesService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
getRange(id: number): Observable<EsolveRange>;
|
|
12
9
|
getRangeFromSEF(sef_range: string): Observable<EsolveRange>;
|
|
13
10
|
getRanges(options?: EsolveRangeOptions): Observable<EsolveRange[]>;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
|
-
import { EsolveErrorHandlerService } from '../shared/errors';
|
|
5
2
|
import { EsolveResult } from '../shared/esolve-result.model';
|
|
6
|
-
import {
|
|
3
|
+
import { EsolveResponseResult } from '../shared/response';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
5
|
export declare class EsolveSessionMetadataService {
|
|
9
|
-
private config;
|
|
10
|
-
private http;
|
|
11
|
-
private errorHandler;
|
|
12
|
-
private responseHandler;
|
|
13
|
-
constructor(config: EsolveConfigService, http: HttpClient, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
8
|
+
private readonly errorHandler;
|
|
9
|
+
private readonly responseHandler;
|
|
14
10
|
set(type: string, metadata: any): Observable<EsolveResponseResult>;
|
|
15
11
|
get<T>(type: string): Observable<T>;
|
|
16
12
|
delete(type: string): Observable<EsolveResult>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { EsolveConfigService } from '../core';
|
|
3
|
-
import { EsolveCookieService } from '../shared/cookie/esolve-cookie.service';
|
|
4
2
|
import { EsolveSession } from './interfaces';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
interface SessionUpdateOptions {
|
|
@@ -8,21 +6,20 @@ interface SessionUpdateOptions {
|
|
|
8
6
|
location_id?: number;
|
|
9
7
|
}
|
|
10
8
|
export declare class EsolveSessionService {
|
|
11
|
-
private
|
|
12
|
-
private config;
|
|
13
|
-
private cookieService;
|
|
9
|
+
private readonly is_browser;
|
|
10
|
+
private readonly config;
|
|
11
|
+
private readonly cookieService;
|
|
14
12
|
private token$;
|
|
15
13
|
private user_id$;
|
|
16
14
|
private location_id$;
|
|
17
15
|
private state_hash;
|
|
18
16
|
private _session;
|
|
19
17
|
private storage_key;
|
|
20
|
-
private is_browser;
|
|
21
18
|
private timer_start;
|
|
22
19
|
private timer_stop;
|
|
23
20
|
private expire;
|
|
24
21
|
private session_end;
|
|
25
|
-
constructor(
|
|
22
|
+
constructor();
|
|
26
23
|
private initSession;
|
|
27
24
|
isValid(): boolean;
|
|
28
25
|
getSession(): Observable<EsolveSession>;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../../core';
|
|
4
2
|
import { EsolveAssetOptions } from './esolve-asset-options.interface';
|
|
5
3
|
import { EsolveAsset } from './esolve-asset.model';
|
|
6
4
|
import { EsolveAssetList } from './esolve-asset-list.type';
|
|
7
5
|
import { EsolveMediaAssetOptions } from './esolve-media-asset-options.interface';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
export declare class EsolveAssetsService {
|
|
10
|
-
private config;
|
|
11
|
-
private http;
|
|
12
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
8
|
+
private readonly config;
|
|
9
|
+
private readonly http;
|
|
13
10
|
getAsset(id: number): Observable<EsolveAsset>;
|
|
14
11
|
getAssets(options?: EsolveAssetOptions): Observable<EsolveAssetList>;
|
|
15
12
|
getMediaAssets(options: EsolveMediaAssetOptions): Observable<EsolveAssetList>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../../core';
|
|
4
2
|
import { EsolveGeocodeResult } from './esolve-geocode-result.model';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveGeocoderService {
|
|
7
|
-
private config;
|
|
8
|
-
private http;
|
|
9
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
10
7
|
geocode(street_number: string, street: string, suburb: string, city: string, province: string, country: string, postal_code: string): Observable<EsolveGeocodeResult>;
|
|
11
8
|
reverseGeocode(latitude: number, longitude: number): Observable<EsolveGeocodeResult>;
|
|
12
9
|
private processGeocodeResult;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Meta, Title } from '@angular/platform-browser';
|
|
2
|
-
import { EsolveConfigService } from '../../core';
|
|
3
1
|
import { EsolveSeoInfo } from './esolve-seo-info.model';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export declare class EsolveSeoService {
|
|
6
|
-
private config;
|
|
7
|
-
private title;
|
|
8
|
-
private meta;
|
|
9
|
-
private dom;
|
|
4
|
+
private readonly config;
|
|
5
|
+
private readonly title;
|
|
6
|
+
private readonly meta;
|
|
7
|
+
private readonly dom;
|
|
10
8
|
private title_prefix;
|
|
11
9
|
private title_suffix;
|
|
12
10
|
private title_separator;
|
|
@@ -14,7 +12,7 @@ export declare class EsolveSeoService {
|
|
|
14
12
|
private default_seo_description;
|
|
15
13
|
private default_seo_keywords;
|
|
16
14
|
private default_seo_url;
|
|
17
|
-
constructor(
|
|
15
|
+
constructor();
|
|
18
16
|
/**
|
|
19
17
|
* Sets SEO tags for page
|
|
20
18
|
* @param seoInfo SEO object
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveTransactionType } from '../transactions';
|
|
5
3
|
import { EsolveShippingCost, EsolveShippingMethod, EsolveTimeSlotConfig } from './classes';
|
|
6
4
|
import { EsolveShippingMethodOptions } from './interfaces';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
6
|
export declare class EsolveShippingService {
|
|
9
|
-
private config;
|
|
10
|
-
private http;
|
|
11
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
7
|
+
private readonly config;
|
|
8
|
+
private readonly http;
|
|
12
9
|
/**
|
|
13
10
|
* Retrieves a list of shipping methods
|
|
14
11
|
*
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveSpecial } from './esolve-special.model';
|
|
5
3
|
import { EsolveSpecialOptions } from './esolve-special-options.interface';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveSpecialsService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
getSpecial(specials_id: number): Observable<EsolveSpecial>;
|
|
12
9
|
getSpecialFromIdentifier(identifier: string): Observable<EsolveSpecial>;
|
|
13
10
|
getSpecials(options?: EsolveSpecialOptions): Observable<EsolveSpecial[]>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveCustomFields } from '../shared/custom-fields';
|
|
5
3
|
import { EsolveFilterList } from '../shared/filters';
|
|
6
4
|
import { EsolveMediaStockItemList } from './types';
|
|
@@ -8,9 +6,8 @@ import { EsolveStockItemOptions, EsolveRecipeStockOptions, EsolveMediaStockItemO
|
|
|
8
6
|
import { EsolveStockItem, EsolveStockItemList, EsolveRecipeStockItem, EsolveLinkedStockItem, EsolveStockImageCollection } from './classes';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
10
8
|
export declare class EsolveStockService<T extends EsolveCustomFields = EsolveCustomFields> {
|
|
11
|
-
private config;
|
|
12
|
-
private http;
|
|
13
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
9
|
+
private readonly config;
|
|
10
|
+
private readonly http;
|
|
14
11
|
/**
|
|
15
12
|
* Retrieves the stock record from the eSolve instance using the code.
|
|
16
13
|
*
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveSupplier } from './classes';
|
|
5
3
|
import { EsolveSupplierOptions } from './interfaces';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveSuppliersService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
getSuppliers(options?: EsolveSupplierOptions): Observable<EsolveSupplier[]>;
|
|
12
9
|
private getSupplierRecords;
|
|
13
10
|
private processSuppliers;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveTag } from './esolve-tag.model';
|
|
5
3
|
import { EsolveTagOptions } from './esolve-tag-options.interface';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class EsolveTagsService {
|
|
8
|
-
private config;
|
|
9
|
-
private http;
|
|
10
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
11
8
|
/**
|
|
12
9
|
* Retrieves active topics from the list of topic ID's. Note that inactive or expired
|
|
13
10
|
* topics will not be retrieved.
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { EsolveConfigService } from '../core';
|
|
4
2
|
import { EsolveTopic } from './esolve-topic.model';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class EsolveTopicService {
|
|
7
|
-
private config;
|
|
8
|
-
private http;
|
|
9
|
-
constructor(config: EsolveConfigService, http: HttpClient);
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly http;
|
|
10
7
|
/**
|
|
11
8
|
* Retrieves active topics from the list of topic ID's. Note that inactive or expired
|
|
12
9
|
* topics will not be retrieved.
|