@demind-inc/core 1.5.61 → 1.5.63
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/dist/models/User.d.ts +3 -2
- package/dist/models/User.js +2 -0
- package/lib/models/User.ts +8 -2
- package/package.json +1 -1
package/dist/models/User.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface Subscription {
|
|
|
66
66
|
unsubscribedDate?: string;
|
|
67
67
|
expirationDate?: string;
|
|
68
68
|
freeTrial?: FreeTrial;
|
|
69
|
-
recurring?:
|
|
69
|
+
recurring?: SubscriptionRecurring;
|
|
70
70
|
status: SubscriptionStatus;
|
|
71
71
|
transactionId?: string;
|
|
72
72
|
price?: SubscriptionPrice;
|
|
@@ -81,6 +81,7 @@ export interface Subscription {
|
|
|
81
81
|
discountId: string;
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
+
export type SubscriptionRecurring = "MONTHLY" | "ANNUAL" | "LIFETIME";
|
|
84
85
|
export interface GrantSubscription {
|
|
85
86
|
productId: string;
|
|
86
87
|
purchaseDate?: string;
|
|
@@ -91,7 +92,7 @@ export interface ConvertedReferralCampaign {
|
|
|
91
92
|
campaignId: string;
|
|
92
93
|
rewardfulClientId?: string;
|
|
93
94
|
}
|
|
94
|
-
export type StripeLookupkey = "beta_monthly_staging" | "beta_yearly_staging" | "basic_monthly_staging" | "basic_yearly_staging" | "beta_monthly_prod" | "beta_yearly_prod" | "basic_monthly_prod" | "basic_yearly_prod";
|
|
95
|
+
export type StripeLookupkey = "beta_monthly_staging" | "beta_yearly_staging" | "basic_monthly_staging" | "basic_yearly_staging" | "basic_lifetime_staging" | "beta_monthly_prod" | "beta_yearly_prod" | "basic_monthly_prod" | "basic_yearly_prod" | "basic_lifetime_prod";
|
|
95
96
|
export declare const stripeLookupKeySet: Record<"beta" | "basic", StripeLookupkey[]>;
|
|
96
97
|
export interface SubscriptionPrice {
|
|
97
98
|
currency: string;
|
package/dist/models/User.js
CHANGED
package/lib/models/User.ts
CHANGED
|
@@ -73,7 +73,7 @@ export interface Subscription {
|
|
|
73
73
|
unsubscribedDate?: string;
|
|
74
74
|
expirationDate?: string;
|
|
75
75
|
freeTrial?: FreeTrial;
|
|
76
|
-
recurring?:
|
|
76
|
+
recurring?: SubscriptionRecurring;
|
|
77
77
|
status: SubscriptionStatus;
|
|
78
78
|
transactionId?: string;
|
|
79
79
|
price?: SubscriptionPrice;
|
|
@@ -89,6 +89,8 @@ export interface Subscription {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
export type SubscriptionRecurring = "MONTHLY" | "ANNUAL" | "LIFETIME";
|
|
93
|
+
|
|
92
94
|
export interface GrantSubscription {
|
|
93
95
|
productId: string;
|
|
94
96
|
purchaseDate?: string;
|
|
@@ -106,10 +108,12 @@ export type StripeLookupkey =
|
|
|
106
108
|
| "beta_yearly_staging"
|
|
107
109
|
| "basic_monthly_staging"
|
|
108
110
|
| "basic_yearly_staging"
|
|
111
|
+
| "basic_lifetime_staging"
|
|
109
112
|
| "beta_monthly_prod"
|
|
110
113
|
| "beta_yearly_prod"
|
|
111
114
|
| "basic_monthly_prod"
|
|
112
|
-
| "basic_yearly_prod"
|
|
115
|
+
| "basic_yearly_prod"
|
|
116
|
+
| "basic_lifetime_prod";
|
|
113
117
|
|
|
114
118
|
export const stripeLookupKeySet: Record<"beta" | "basic", StripeLookupkey[]> = {
|
|
115
119
|
beta: [
|
|
@@ -121,8 +125,10 @@ export const stripeLookupKeySet: Record<"beta" | "basic", StripeLookupkey[]> = {
|
|
|
121
125
|
basic: [
|
|
122
126
|
"basic_monthly_staging",
|
|
123
127
|
"basic_yearly_staging",
|
|
128
|
+
"basic_lifetime_staging",
|
|
124
129
|
"basic_monthly_prod",
|
|
125
130
|
"basic_yearly_prod",
|
|
131
|
+
"basic_lifetime_prod",
|
|
126
132
|
],
|
|
127
133
|
};
|
|
128
134
|
|