@esolve/ng-esolve-connect 0.27.0 → 0.27.2

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.
@@ -1,5 +1,7 @@
1
1
  import { EsolveUserAccountRecord } from '../interfaces';
2
- import { EsolveUserAccountBusiness, EsolveUserAccountContact, EsolveUserClientAccount } from './';
2
+ import { EsolveUserAccountBusiness } from './esolve-user-account-business.model';
3
+ import { EsolveUserAccountContact } from './esolve-user-account-contact.model';
4
+ import { EsolveUserClientAccount } from './esolve-user-client-account.model';
3
5
  export declare class EsolveUserAccount {
4
6
  esolve_id?: number;
5
7
  email?: string;
@@ -14,7 +14,7 @@ export declare class EsolveCouponsService {
14
14
  private applied;
15
15
  private validation_error;
16
16
  constructor(config: EsolveConnectConfig, http: HttpClient, cookieService: EsolveCookieService);
17
- onValidationError(): Observable<EsolveCouponValidationError>;
17
+ onValidationError(): Observable<EsolveCouponValidationError | undefined>;
18
18
  onApplied(): Observable<void>;
19
19
  validate(coupon_key: string): Observable<EsolveCouponValidationResult>;
20
20
  applyCoupon(coupon_key: string): Promise<boolean>;
@@ -42,4 +42,14 @@ export interface EsolveConnectConfig {
42
42
  * [optional] Key for coupon local storage (Default is `_ng_eslv_coupons`)
43
43
  */
44
44
  coupon_storage_key?: string;
45
+ /**
46
+ * Indicates whether the implementation is a native app or a website. If it is a native
47
+ * app, the `device_designation` is required for native app features to be enabled
48
+ */
49
+ native?: boolean;
50
+ /**
51
+ * Indicates the platform used. Possible values include `android`, `ios` and
52
+ * `web`. If none is provided, then the value is assumed to be `web`
53
+ */
54
+ device_designation?: string;
45
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.27.0",
3
+ "version": "0.27.2",
4
4
  "description": "An Angular library that speaks to an eSolve instance's API",
5
5
  "ng-add": {
6
6
  "save": "true"