@demind-inc/core 1.7.7 → 1.7.9
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/constants.d.ts +1 -0
- package/dist/constants.js +2 -1
- package/dist/models/User.d.ts +2 -2
- package/dist/models/User.js +8 -0
- package/lib/constants.ts +1 -0
- package/lib/models/User.ts +18 -3
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -56,3 +56,4 @@ export declare const basicOfferingId = "basic (with free trial)";
|
|
|
56
56
|
export declare const basicMonthTrialOfferingId = "basic (with free trial 1 month)";
|
|
57
57
|
export declare const basicNoTrialOfferingId = "basic (without free trial)";
|
|
58
58
|
export declare const SKIP_CARD_PRODUCT_ID = "com.lifestack.skip_card";
|
|
59
|
+
export declare const basicPriceUp202512OfferingId = "basic_price_up_2025_12";
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SKIP_CARD_PRODUCT_ID = exports.basicNoTrialOfferingId = exports.basicMonthTrialOfferingId = exports.basicOfferingId = exports.basicLifetimeOfferingId = exports.ALL_TODO_INTEGRATIONS_TYPE = exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = exports.MEAL_SUPPORTED_TERRA_PROVIDERS = exports.HEART_RATE_SUPPORTED_TERRA_PROVIDERS = exports.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = exports.STRESS_SUPPORTED_TERRA_PROVIDERS = exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
|
|
3
|
+
exports.basicPriceUp202512OfferingId = exports.SKIP_CARD_PRODUCT_ID = exports.basicNoTrialOfferingId = exports.basicMonthTrialOfferingId = exports.basicOfferingId = exports.basicLifetimeOfferingId = exports.ALL_TODO_INTEGRATIONS_TYPE = exports.AVAILABLE_TODO_INTEGRATIONS_TYPE = exports.MEAL_SUPPORTED_TERRA_PROVIDERS = exports.HEART_RATE_SUPPORTED_TERRA_PROVIDERS = exports.ACTIVITY_SUPPORTED_TERRA_PROVIDERS = exports.STRESS_SUPPORTED_TERRA_PROVIDERS = exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = exports.DB_COLLECTION = void 0;
|
|
4
4
|
exports.DB_COLLECTION = {
|
|
5
5
|
USERS: "users",
|
|
6
6
|
CALENDARS: "calendars",
|
|
@@ -80,3 +80,4 @@ exports.basicOfferingId = "basic (with free trial)";
|
|
|
80
80
|
exports.basicMonthTrialOfferingId = "basic (with free trial 1 month)";
|
|
81
81
|
exports.basicNoTrialOfferingId = "basic (without free trial)";
|
|
82
82
|
exports.SKIP_CARD_PRODUCT_ID = "com.lifestack.skip_card";
|
|
83
|
+
exports.basicPriceUp202512OfferingId = "basic_price_up_2025_12";
|
package/dist/models/User.d.ts
CHANGED
|
@@ -114,8 +114,8 @@ export interface ConvertedReferralCampaign {
|
|
|
114
114
|
campaignId: string;
|
|
115
115
|
rewardfulClientId?: string;
|
|
116
116
|
}
|
|
117
|
-
export type StripeLookupkey = "beta_monthly_staging" | "beta_yearly_staging" | "basic_monthly_staging" | "basic_yearly_staging" | "basic_lifetime_staging" | "basic_weekly_staging" | "beta_monthly_prod" | "beta_yearly_prod" | "basic_monthly_prod" | "basic_yearly_prod" | "basic_weekly_prod" | "basic_lifetime_prod";
|
|
118
|
-
export declare const stripeLookupKeySet: Record<"beta" | "basic", StripeLookupkey[]>;
|
|
117
|
+
export type StripeLookupkey = "beta_monthly_staging" | "beta_yearly_staging" | "basic_monthly_staging" | "basic_yearly_staging" | "basic_lifetime_staging" | "basic_weekly_staging" | "beta_monthly_prod" | "beta_yearly_prod" | "basic_monthly_prod" | "basic_yearly_prod" | "basic_weekly_prod" | "basic_lifetime_prod" | "basic_monthly_price_up_202512_staging" | "basic_yearly_price_up_202512_staging" | "basic_monthly_price_up_202512_prod" | "basic_yearly_price_up_202512_prod";
|
|
118
|
+
export declare const stripeLookupKeySet: Record<"beta" | "basic" | "basic_price_up_202512", StripeLookupkey[]>;
|
|
119
119
|
export interface SubscriptionPrice {
|
|
120
120
|
currency: string;
|
|
121
121
|
amount: number;
|
package/dist/models/User.js
CHANGED
|
@@ -18,4 +18,12 @@ exports.stripeLookupKeySet = {
|
|
|
18
18
|
"basic_lifetime_prod",
|
|
19
19
|
//"basic_weekly_prod",
|
|
20
20
|
],
|
|
21
|
+
basic_price_up_202512: [
|
|
22
|
+
"basic_monthly_price_up_202512_staging",
|
|
23
|
+
"basic_yearly_price_up_202512_staging",
|
|
24
|
+
"basic_lifetime_staging",
|
|
25
|
+
"basic_monthly_price_up_202512_prod",
|
|
26
|
+
"basic_yearly_price_up_202512_prod",
|
|
27
|
+
"basic_lifetime_prod",
|
|
28
|
+
],
|
|
21
29
|
};
|
package/lib/constants.ts
CHANGED
|
@@ -89,3 +89,4 @@ export const basicOfferingId = "basic (with free trial)";
|
|
|
89
89
|
export const basicMonthTrialOfferingId = "basic (with free trial 1 month)";
|
|
90
90
|
export const basicNoTrialOfferingId = "basic (without free trial)";
|
|
91
91
|
export const SKIP_CARD_PRODUCT_ID = "com.lifestack.skip_card";
|
|
92
|
+
export const basicPriceUp202512OfferingId = "basic_price_up_2025_12";
|
package/lib/models/User.ts
CHANGED
|
@@ -144,9 +144,16 @@ export type StripeLookupkey =
|
|
|
144
144
|
| "basic_monthly_prod"
|
|
145
145
|
| "basic_yearly_prod"
|
|
146
146
|
| "basic_weekly_prod"
|
|
147
|
-
| "basic_lifetime_prod"
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
| "basic_lifetime_prod"
|
|
148
|
+
| "basic_monthly_price_up_202512_staging"
|
|
149
|
+
| "basic_yearly_price_up_202512_staging"
|
|
150
|
+
| "basic_monthly_price_up_202512_prod"
|
|
151
|
+
| "basic_yearly_price_up_202512_prod";
|
|
152
|
+
|
|
153
|
+
export const stripeLookupKeySet: Record<
|
|
154
|
+
"beta" | "basic" | "basic_price_up_202512",
|
|
155
|
+
StripeLookupkey[]
|
|
156
|
+
> = {
|
|
150
157
|
beta: [
|
|
151
158
|
"beta_monthly_staging",
|
|
152
159
|
"beta_yearly_staging",
|
|
@@ -163,6 +170,14 @@ export const stripeLookupKeySet: Record<"beta" | "basic", StripeLookupkey[]> = {
|
|
|
163
170
|
"basic_lifetime_prod",
|
|
164
171
|
//"basic_weekly_prod",
|
|
165
172
|
],
|
|
173
|
+
basic_price_up_202512: [
|
|
174
|
+
"basic_monthly_price_up_202512_staging",
|
|
175
|
+
"basic_yearly_price_up_202512_staging",
|
|
176
|
+
"basic_lifetime_staging",
|
|
177
|
+
"basic_monthly_price_up_202512_prod",
|
|
178
|
+
"basic_yearly_price_up_202512_prod",
|
|
179
|
+
"basic_lifetime_prod",
|
|
180
|
+
],
|
|
166
181
|
};
|
|
167
182
|
|
|
168
183
|
export interface SubscriptionPrice {
|