@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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {};
|