@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.
- package/esm2020/lib/account/user-account/classes/esolve-user-account.model.mjs +4 -2
- package/esm2020/lib/auth/esolve-auth-interceptor.service.mjs +6 -1
- package/esm2020/lib/coupons/esolve-coupons.service.mjs +7 -4
- package/esm2020/lib/esolve-connect.config.mjs +1 -1
- package/fesm2015/esolve-ng-esolve-connect.mjs +46 -38
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +45 -37
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/user-account/classes/esolve-user-account.model.d.ts +3 -1
- package/lib/coupons/esolve-coupons.service.d.ts +1 -1
- package/lib/esolve-connect.config.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { EsolveUserAccountRecord } from '../interfaces';
|
|
2
|
-
import { EsolveUserAccountBusiness
|
|
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
|
}
|