@esolve/ng-esolve-connect 0.29.3 → 0.29.5

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.
@@ -6,6 +6,7 @@ import { EsolveCoupon } from './classes';
6
6
  import { EsolveCouponValidationError, EsolveCouponValidationResult } from './interfaces';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class EsolveCouponsService {
9
+ private platformId;
9
10
  private config;
10
11
  private http;
11
12
  private cookieService;
@@ -13,7 +14,8 @@ export declare class EsolveCouponsService {
13
14
  private coupons_cache;
14
15
  private applied;
15
16
  private validation_error;
16
- constructor(config: EsolveConnectConfig, http: HttpClient, cookieService: EsolveCookieService);
17
+ private is_browser;
18
+ constructor(platformId: object, config: EsolveConnectConfig, http: HttpClient, cookieService: EsolveCookieService);
17
19
  onValidationError(): Observable<EsolveCouponValidationError | undefined>;
18
20
  onApplied(): Observable<void>;
19
21
  validate(coupon_key: string): Observable<EsolveCouponValidationResult>;
@@ -25,6 +27,9 @@ export declare class EsolveCouponsService {
25
27
  private retrieveCache;
26
28
  private cacheCoupons;
27
29
  private deleteCoupons;
30
+ private getBackup;
31
+ private setBackup;
32
+ private removeBackup;
28
33
  private addCoupon;
29
34
  private setStorageKey;
30
35
  private jsonEncodeMap;
@@ -17,13 +17,15 @@ export declare class EsolveSessionService {
17
17
  private storage_key;
18
18
  private is_browser;
19
19
  get currentSession(): EsolveSession;
20
- constructor(platformId: Object, config: EsolveConnectConfig, cookieService: EsolveCookieService);
20
+ constructor(platformId: object, config: EsolveConnectConfig, cookieService: EsolveCookieService);
21
21
  clearTimer(): void;
22
22
  restore(expirationCallback: (session?: EsolveSession) => void, invalidSessionCallback: () => void): void;
23
23
  handleSession(user_id: number, location_id: number, key: string, expiry_time: number, expires: number, expirationCallback: () => void): void;
24
24
  handleUpdateSession({ user_id, location_id, }: SessionUpdateOptions, callback?: () => void): void;
25
25
  private setStorageKey;
26
26
  private startTimer;
27
+ private getBackup;
28
+ private setBackup;
27
29
  static ɵfac: i0.ɵɵFactoryDeclaration<EsolveSessionService, never>;
28
30
  static ɵprov: i0.ɵɵInjectableDeclaration<EsolveSessionService>;
29
31
  }
@@ -7,7 +7,7 @@ export declare class EsolveCookieService {
7
7
  private request;
8
8
  private response;
9
9
  private is_browser;
10
- constructor(ngxCookies: CookieService, platformId: Object, request: Request, response: Response);
10
+ constructor(ngxCookies: CookieService, platformId: object, request: Request, response: Response);
11
11
  check(name: string): boolean;
12
12
  get(name: string): string;
13
13
  set(name: string, value: string, expires?: Date, path?: string, domain?: string, secure?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.29.3",
3
+ "version": "0.29.5",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"