@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.
Files changed (113) hide show
  1. package/esm2022/index.mjs +3 -1
  2. package/esm2022/lib/account/esolve-account.service.mjs +12 -17
  3. package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +9 -11
  4. package/esm2022/lib/auth/esolve-auth.service.mjs +11 -15
  5. package/esm2022/lib/banners/esolve-banner.service.mjs +9 -11
  6. package/esm2022/lib/cart/classes/esolve-cart-totals.model.mjs +11 -3
  7. package/esm2022/lib/cart/esolve-cart.service.mjs +28 -22
  8. package/esm2022/lib/cart/interfaces/esolve-cart-totals-record.interface.mjs +1 -1
  9. package/esm2022/lib/cart/interfaces/esolve-checkout-body.interface.mjs +2 -0
  10. package/esm2022/lib/cart/interfaces/index.mjs +2 -1
  11. package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +9 -11
  12. package/esm2022/lib/core/esolve-config.service.mjs +12 -10
  13. package/esm2022/lib/core/esolve-connect-config.interface.mjs +1 -1
  14. package/esm2022/lib/coupons/esolve-coupons.service.mjs +21 -28
  15. package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +11 -15
  16. package/esm2022/lib/images/directives/cdn-src.directive.mjs +9 -10
  17. package/esm2022/lib/locations/esolve-locations.service.mjs +9 -11
  18. package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +9 -11
  19. package/esm2022/lib/menu/esolve-menu.service.mjs +9 -11
  20. package/esm2022/lib/news/esolve-news.service.mjs +9 -11
  21. package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
  22. package/esm2022/lib/payment/esolve-payment.service.mjs +11 -15
  23. package/esm2022/lib/ranges/esolve-ranges.service.mjs +9 -11
  24. package/esm2022/lib/session/esolve-session-metadata.service.mjs +11 -15
  25. package/esm2022/lib/session/esolve-session.service.mjs +16 -19
  26. package/esm2022/lib/shared/assets/esolve-assets.service.mjs +9 -11
  27. package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
  28. package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
  29. package/esm2022/lib/shared/geocoder/esolve-geocoder.service.mjs +9 -11
  30. package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
  31. package/esm2022/lib/shared/seo/esolve-seo.service.mjs +9 -11
  32. package/esm2022/lib/shipping/esolve-shipping.service.mjs +9 -11
  33. package/esm2022/lib/specials/esolve-specials.service.mjs +9 -11
  34. package/esm2022/lib/stock/esolve-stock.service.mjs +9 -11
  35. package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +9 -11
  36. package/esm2022/lib/tags/esolve-tags.service.mjs +9 -11
  37. package/esm2022/lib/topics/esolve-topic.service.mjs +9 -11
  38. package/esm2022/lib/transactions/esolve-transactions.service.mjs +11 -15
  39. package/esm2022/lib/vouchers/classes/esolve-voucher.model.mjs +18 -0
  40. package/esm2022/lib/vouchers/classes/index.mjs +2 -0
  41. package/esm2022/lib/vouchers/esolve-vouchers.service.mjs +221 -0
  42. package/esm2022/lib/vouchers/index.mjs +9 -0
  43. package/esm2022/lib/vouchers/interfaces/esolve-voucher-record.interface.mjs +2 -0
  44. package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation-error.interface.mjs +2 -0
  45. package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation-result.interface.mjs +2 -0
  46. package/esm2022/lib/vouchers/interfaces/esolve-voucher-validation.interface.mjs +2 -0
  47. package/esm2022/lib/vouchers/interfaces/index.mjs +5 -0
  48. package/esm2022/lib/vouchers/types/esolve-vouchers-cache.type.mjs +2 -0
  49. package/esm2022/lib/vouchers/types/index.mjs +2 -0
  50. package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +11 -15
  51. package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
  52. package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
  53. package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
  54. package/esm2022/media/lib/services/esolve-media-layout.service.mjs +3 -3
  55. package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
  56. package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +10 -14
  57. package/esm2022/survey/lib/services/esolve-survey.service.mjs +12 -17
  58. package/fesm2022/esolve-ng-esolve-connect-media.mjs +16 -16
  59. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +10 -14
  60. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs.map +1 -1
  61. package/fesm2022/esolve-ng-esolve-connect-survey.mjs +12 -17
  62. package/fesm2022/esolve-ng-esolve-connect-survey.mjs.map +1 -1
  63. package/fesm2022/esolve-ng-esolve-connect.mjs +518 -272
  64. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  65. package/index.d.ts +1 -0
  66. package/lib/account/esolve-account.service.d.ts +6 -11
  67. package/lib/auth/esolve-auth-interceptor.service.d.ts +2 -5
  68. package/lib/auth/esolve-auth.service.d.ts +5 -9
  69. package/lib/banners/esolve-banner.service.d.ts +2 -5
  70. package/lib/cart/classes/esolve-cart-totals.model.d.ts +9 -1
  71. package/lib/cart/esolve-cart.service.d.ts +7 -12
  72. package/lib/cart/interfaces/esolve-cart-totals-record.interface.d.ts +2 -0
  73. package/lib/cart/interfaces/esolve-checkout-body.interface.d.ts +13 -0
  74. package/lib/cart/interfaces/index.d.ts +1 -0
  75. package/lib/category-tree/esolve-category-tree.service.d.ts +2 -5
  76. package/lib/core/esolve-config.service.d.ts +2 -1
  77. package/lib/core/esolve-connect-config.interface.d.ts +4 -0
  78. package/lib/coupons/esolve-coupons.service.d.ts +6 -10
  79. package/lib/enquiry/esolve-enquiry.service.d.ts +4 -9
  80. package/lib/images/directives/cdn-src.directive.d.ts +4 -5
  81. package/lib/locations/esolve-locations.service.d.ts +2 -5
  82. package/lib/manufacturers/esolve-manufacturers.service.d.ts +2 -5
  83. package/lib/menu/esolve-menu.service.d.ts +2 -5
  84. package/lib/news/esolve-news.service.d.ts +2 -5
  85. package/lib/payment/esolve-payment.service.d.ts +4 -9
  86. package/lib/ranges/esolve-ranges.service.d.ts +2 -5
  87. package/lib/session/esolve-session-metadata.service.d.ts +5 -9
  88. package/lib/session/esolve-session.service.d.ts +4 -7
  89. package/lib/shared/assets/esolve-assets.service.d.ts +2 -5
  90. package/lib/shared/geocoder/esolve-geocoder.service.d.ts +2 -5
  91. package/lib/shared/seo/esolve-seo.service.d.ts +5 -7
  92. package/lib/shipping/esolve-shipping.service.d.ts +2 -5
  93. package/lib/specials/esolve-specials.service.d.ts +2 -5
  94. package/lib/stock/esolve-stock.service.d.ts +2 -5
  95. package/lib/suppliers/esolve-suppliers.service.d.ts +2 -5
  96. package/lib/tags/esolve-tags.service.d.ts +2 -5
  97. package/lib/topics/esolve-topic.service.d.ts +2 -5
  98. package/lib/transactions/esolve-transactions.service.d.ts +5 -9
  99. package/lib/vouchers/classes/esolve-voucher.model.d.ts +11 -0
  100. package/lib/vouchers/classes/index.d.ts +1 -0
  101. package/lib/vouchers/esolve-vouchers.service.d.ts +36 -0
  102. package/lib/vouchers/index.d.ts +4 -0
  103. package/lib/vouchers/interfaces/esolve-voucher-record.interface.d.ts +6 -0
  104. package/lib/vouchers/interfaces/esolve-voucher-validation-error.interface.d.ts +4 -0
  105. package/lib/vouchers/interfaces/esolve-voucher-validation-result.interface.d.ts +4 -0
  106. package/lib/vouchers/interfaces/esolve-voucher-validation.interface.d.ts +6 -0
  107. package/lib/vouchers/interfaces/index.d.ts +4 -0
  108. package/lib/vouchers/types/esolve-vouchers-cache.type.d.ts +1 -0
  109. package/lib/vouchers/types/index.d.ts +1 -0
  110. package/lib/wishlist/esolve-wishlist.service.d.ts +4 -9
  111. package/notifications/lib/services/esolve-notifications.service.d.ts +2 -5
  112. package/package.json +1 -1
  113. package/survey/lib/services/esolve-survey.service.d.ts +4 -7
package/index.d.ts CHANGED
@@ -35,4 +35,5 @@ export * from './lib/enquiry';
35
35
  export * from './lib/wishlist';
36
36
  export * from './lib/suppliers';
37
37
  export * from './lib/coupons';
38
+ export * from './lib/vouchers';
38
39
  export * from './lib/transactions';
@@ -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(config: EsolveConfigService, http: HttpClient, sessionService: EsolveSessionService, errorHandler: EsolveErrorHandlerService, responseHandler: EsolveResponseHandlerService);
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(config: EsolveConfigService, http: HttpClient, session: EsolveSessionService, errorHandler: EsolveErrorHandlerService);
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 { EsolveConfigService } from '../core';
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
  *
@@ -4,4 +4,6 @@ export interface EsolveCartTotalsRecord {
4
4
  total: string;
5
5
  vat: string;
6
6
  discount: string;
7
+ vouchers: string;
8
+ wallet: string;
7
9
  }
@@ -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(config: EsolveConnectConfig);
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 platformId;
10
- private config;
11
- private http;
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 coupons_cache;
11
+ private cache;
15
12
  private applied;
16
13
  private validation_error;
17
- private is_browser;
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 { ElementRef, OnChanges } from '@angular/core';
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(el: ElementRef<HTMLImageElement | HTMLSourceElement>, config: EsolveConfigService);
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 { EsolveResponseHandlerService, EsolveResponseResult } from '../shared/response';
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 platformId;
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(platformId: object, config: EsolveConfigService, cookieService: EsolveCookieService);
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(config: EsolveConfigService, title: Title, meta: Meta);
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.