@odynn/awayz-core 0.2.6 → 0.2.7

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.
@@ -12,15 +12,34 @@ export interface IUser {
12
12
  account: IAccount;
13
13
  }
14
14
  export interface IAccount {
15
- emailAddress: string;
16
- password: string;
17
- accountType: string;
15
+ userId: string;
16
+ subscriptionId: string;
17
+ subscription: ISubscription;
18
+ expiresAt: string;
19
+ status: string;
20
+ stripeDetails: IStripeDetails;
21
+ id: string;
22
+ }
23
+ interface IStripeDetails {
24
+ subscriptionId: string;
18
25
  priceId: string;
19
- successUrl: string;
20
- cancelUrl: string;
21
- coupon?: string;
22
- userRegion: string;
23
- userSourceId?: string;
26
+ trialPeriod: number;
27
+ }
28
+ export interface ISubscription {
29
+ tier: string;
30
+ flightSearchLimit: number;
31
+ hotelSearchLimit: number;
32
+ hotelAvailabilityAlertLimit: number;
33
+ isPaid: boolean;
34
+ stripeProductId: string;
35
+ isDeleted: boolean;
36
+ features: IFeature[];
37
+ id: string;
38
+ }
39
+ interface IFeature {
40
+ key?: string;
41
+ text: string;
42
+ included: boolean;
24
43
  }
25
44
  export interface IResetPasswordParams {
26
45
  email: string;
@@ -151,3 +170,4 @@ export interface ISearchLimitResponse {
151
170
  number_of_calls: number;
152
171
  remaining_calls: number;
153
172
  }
173
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"