@beorchid-llc/thrivo-contracts 0.6.0 → 0.7.0
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/admin-analytics.d.ts +488 -0
- package/dist/admin-analytics.d.ts.map +1 -0
- package/dist/admin-analytics.js +46 -0
- package/dist/admin-analytics.js.map +1 -0
- package/dist/admin-content.d.ts +92 -0
- package/dist/admin-content.d.ts.map +1 -0
- package/dist/admin-content.js +24 -0
- package/dist/admin-content.js.map +1 -0
- package/dist/admin-logs.d.ts +55 -0
- package/dist/admin-logs.d.ts.map +1 -0
- package/dist/admin-logs.js +24 -0
- package/dist/admin-logs.js.map +1 -0
- package/dist/admin-subscriptions.d.ts +40 -0
- package/dist/admin-subscriptions.d.ts.map +1 -0
- package/dist/admin-subscriptions.js +22 -0
- package/dist/admin-subscriptions.js.map +1 -0
- package/dist/admin.d.ts +75 -75
- package/dist/checkins.d.ts +22 -22
- package/dist/foods.d.ts +60 -60
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/metrics.d.ts +6 -6
- package/dist/settings.d.ts +52 -52
- package/dist/subscriptions.d.ts +46 -46
- package/dist/users.d.ts +32 -32
- package/package.json +1 -1
package/dist/subscriptions.d.ts
CHANGED
|
@@ -11,14 +11,14 @@ export declare const subscriptionPlanInfoSchema: z.ZodObject<{
|
|
|
11
11
|
priceLabel: z.ZodString;
|
|
12
12
|
billingPeriodLabel: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
priceLabel: string;
|
|
15
14
|
plan: "monthly" | "annual";
|
|
16
15
|
productId: string;
|
|
16
|
+
priceLabel: string;
|
|
17
17
|
billingPeriodLabel: string;
|
|
18
18
|
}, {
|
|
19
|
-
priceLabel: string;
|
|
20
19
|
plan: "monthly" | "annual";
|
|
21
20
|
productId: string;
|
|
21
|
+
priceLabel: string;
|
|
22
22
|
billingPeriodLabel: string;
|
|
23
23
|
}>;
|
|
24
24
|
export type SubscriptionPlanInfo = z.infer<typeof subscriptionPlanInfoSchema>;
|
|
@@ -39,48 +39,48 @@ export declare const subscriptionStateSchema: z.ZodObject<{
|
|
|
39
39
|
priceLabel: z.ZodString;
|
|
40
40
|
billingPeriodLabel: z.ZodString;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
priceLabel: string;
|
|
43
42
|
plan: "monthly" | "annual";
|
|
44
43
|
productId: string;
|
|
44
|
+
priceLabel: string;
|
|
45
45
|
billingPeriodLabel: string;
|
|
46
46
|
}, {
|
|
47
|
-
priceLabel: string;
|
|
48
47
|
plan: "monthly" | "annual";
|
|
49
48
|
productId: string;
|
|
49
|
+
priceLabel: string;
|
|
50
50
|
billingPeriodLabel: string;
|
|
51
51
|
}>, "many">;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
54
|
-
priceLabel: string | null;
|
|
55
|
-
renewsAt: string | null;
|
|
56
|
-
cancelAtPeriodEnd: boolean;
|
|
57
|
-
trialDays: number;
|
|
58
54
|
plan: "monthly" | "annual" | null;
|
|
59
55
|
productId: string | null;
|
|
56
|
+
priceLabel: string | null;
|
|
60
57
|
entitlement: "free" | "premium";
|
|
58
|
+
renewsAt: string | null;
|
|
61
59
|
accessEndsAt: string | null;
|
|
60
|
+
cancelAtPeriodEnd: boolean;
|
|
62
61
|
trialUsed: boolean;
|
|
62
|
+
trialDays: number;
|
|
63
63
|
plans: {
|
|
64
|
-
priceLabel: string;
|
|
65
64
|
plan: "monthly" | "annual";
|
|
66
65
|
productId: string;
|
|
66
|
+
priceLabel: string;
|
|
67
67
|
billingPeriodLabel: string;
|
|
68
68
|
}[];
|
|
69
69
|
}, {
|
|
70
70
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
71
|
-
priceLabel: string | null;
|
|
72
|
-
renewsAt: string | null;
|
|
73
|
-
cancelAtPeriodEnd: boolean;
|
|
74
|
-
trialDays: number;
|
|
75
71
|
plan: "monthly" | "annual" | null;
|
|
76
72
|
productId: string | null;
|
|
73
|
+
priceLabel: string | null;
|
|
77
74
|
entitlement: "free" | "premium";
|
|
75
|
+
renewsAt: string | null;
|
|
78
76
|
accessEndsAt: string | null;
|
|
77
|
+
cancelAtPeriodEnd: boolean;
|
|
79
78
|
trialUsed: boolean;
|
|
79
|
+
trialDays: number;
|
|
80
80
|
plans: {
|
|
81
|
-
priceLabel: string;
|
|
82
81
|
plan: "monthly" | "annual";
|
|
83
82
|
productId: string;
|
|
83
|
+
priceLabel: string;
|
|
84
84
|
billingPeriodLabel: string;
|
|
85
85
|
}[];
|
|
86
86
|
}>;
|
|
@@ -105,86 +105,86 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
|
|
|
105
105
|
priceLabel: z.ZodString;
|
|
106
106
|
billingPeriodLabel: z.ZodString;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
priceLabel: string;
|
|
109
108
|
plan: "monthly" | "annual";
|
|
110
109
|
productId: string;
|
|
110
|
+
priceLabel: string;
|
|
111
111
|
billingPeriodLabel: string;
|
|
112
112
|
}, {
|
|
113
|
-
priceLabel: string;
|
|
114
113
|
plan: "monthly" | "annual";
|
|
115
114
|
productId: string;
|
|
115
|
+
priceLabel: string;
|
|
116
116
|
billingPeriodLabel: string;
|
|
117
117
|
}>, "many">;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
120
|
-
priceLabel: string | null;
|
|
121
|
-
renewsAt: string | null;
|
|
122
|
-
cancelAtPeriodEnd: boolean;
|
|
123
|
-
trialDays: number;
|
|
124
120
|
plan: "monthly" | "annual" | null;
|
|
125
121
|
productId: string | null;
|
|
122
|
+
priceLabel: string | null;
|
|
126
123
|
entitlement: "free" | "premium";
|
|
124
|
+
renewsAt: string | null;
|
|
127
125
|
accessEndsAt: string | null;
|
|
126
|
+
cancelAtPeriodEnd: boolean;
|
|
128
127
|
trialUsed: boolean;
|
|
128
|
+
trialDays: number;
|
|
129
129
|
plans: {
|
|
130
|
-
priceLabel: string;
|
|
131
130
|
plan: "monthly" | "annual";
|
|
132
131
|
productId: string;
|
|
132
|
+
priceLabel: string;
|
|
133
133
|
billingPeriodLabel: string;
|
|
134
134
|
}[];
|
|
135
135
|
}, {
|
|
136
136
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
137
|
-
priceLabel: string | null;
|
|
138
|
-
renewsAt: string | null;
|
|
139
|
-
cancelAtPeriodEnd: boolean;
|
|
140
|
-
trialDays: number;
|
|
141
137
|
plan: "monthly" | "annual" | null;
|
|
142
138
|
productId: string | null;
|
|
139
|
+
priceLabel: string | null;
|
|
143
140
|
entitlement: "free" | "premium";
|
|
141
|
+
renewsAt: string | null;
|
|
144
142
|
accessEndsAt: string | null;
|
|
143
|
+
cancelAtPeriodEnd: boolean;
|
|
145
144
|
trialUsed: boolean;
|
|
145
|
+
trialDays: number;
|
|
146
146
|
plans: {
|
|
147
|
-
priceLabel: string;
|
|
148
147
|
plan: "monthly" | "annual";
|
|
149
148
|
productId: string;
|
|
149
|
+
priceLabel: string;
|
|
150
150
|
billingPeriodLabel: string;
|
|
151
151
|
}[];
|
|
152
152
|
}>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
154
|
subscription: {
|
|
155
155
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
156
|
-
priceLabel: string | null;
|
|
157
|
-
renewsAt: string | null;
|
|
158
|
-
cancelAtPeriodEnd: boolean;
|
|
159
|
-
trialDays: number;
|
|
160
156
|
plan: "monthly" | "annual" | null;
|
|
161
157
|
productId: string | null;
|
|
158
|
+
priceLabel: string | null;
|
|
162
159
|
entitlement: "free" | "premium";
|
|
160
|
+
renewsAt: string | null;
|
|
163
161
|
accessEndsAt: string | null;
|
|
162
|
+
cancelAtPeriodEnd: boolean;
|
|
164
163
|
trialUsed: boolean;
|
|
164
|
+
trialDays: number;
|
|
165
165
|
plans: {
|
|
166
|
-
priceLabel: string;
|
|
167
166
|
plan: "monthly" | "annual";
|
|
168
167
|
productId: string;
|
|
168
|
+
priceLabel: string;
|
|
169
169
|
billingPeriodLabel: string;
|
|
170
170
|
}[];
|
|
171
171
|
};
|
|
172
172
|
}, {
|
|
173
173
|
subscription: {
|
|
174
174
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
175
|
-
priceLabel: string | null;
|
|
176
|
-
renewsAt: string | null;
|
|
177
|
-
cancelAtPeriodEnd: boolean;
|
|
178
|
-
trialDays: number;
|
|
179
175
|
plan: "monthly" | "annual" | null;
|
|
180
176
|
productId: string | null;
|
|
177
|
+
priceLabel: string | null;
|
|
181
178
|
entitlement: "free" | "premium";
|
|
179
|
+
renewsAt: string | null;
|
|
182
180
|
accessEndsAt: string | null;
|
|
181
|
+
cancelAtPeriodEnd: boolean;
|
|
183
182
|
trialUsed: boolean;
|
|
183
|
+
trialDays: number;
|
|
184
184
|
plans: {
|
|
185
|
-
priceLabel: string;
|
|
186
185
|
plan: "monthly" | "annual";
|
|
187
186
|
productId: string;
|
|
187
|
+
priceLabel: string;
|
|
188
188
|
billingPeriodLabel: string;
|
|
189
189
|
}[];
|
|
190
190
|
};
|
|
@@ -198,19 +198,19 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
|
|
|
198
198
|
data: {
|
|
199
199
|
subscription: {
|
|
200
200
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
201
|
-
priceLabel: string | null;
|
|
202
|
-
renewsAt: string | null;
|
|
203
|
-
cancelAtPeriodEnd: boolean;
|
|
204
|
-
trialDays: number;
|
|
205
201
|
plan: "monthly" | "annual" | null;
|
|
206
202
|
productId: string | null;
|
|
203
|
+
priceLabel: string | null;
|
|
207
204
|
entitlement: "free" | "premium";
|
|
205
|
+
renewsAt: string | null;
|
|
208
206
|
accessEndsAt: string | null;
|
|
207
|
+
cancelAtPeriodEnd: boolean;
|
|
209
208
|
trialUsed: boolean;
|
|
209
|
+
trialDays: number;
|
|
210
210
|
plans: {
|
|
211
|
-
priceLabel: string;
|
|
212
211
|
plan: "monthly" | "annual";
|
|
213
212
|
productId: string;
|
|
213
|
+
priceLabel: string;
|
|
214
214
|
billingPeriodLabel: string;
|
|
215
215
|
}[];
|
|
216
216
|
};
|
|
@@ -222,19 +222,19 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
|
|
|
222
222
|
data: {
|
|
223
223
|
subscription: {
|
|
224
224
|
status: "active" | "trialing" | "canceled" | "expired" | "none";
|
|
225
|
-
priceLabel: string | null;
|
|
226
|
-
renewsAt: string | null;
|
|
227
|
-
cancelAtPeriodEnd: boolean;
|
|
228
|
-
trialDays: number;
|
|
229
225
|
plan: "monthly" | "annual" | null;
|
|
230
226
|
productId: string | null;
|
|
227
|
+
priceLabel: string | null;
|
|
231
228
|
entitlement: "free" | "premium";
|
|
229
|
+
renewsAt: string | null;
|
|
232
230
|
accessEndsAt: string | null;
|
|
231
|
+
cancelAtPeriodEnd: boolean;
|
|
233
232
|
trialUsed: boolean;
|
|
233
|
+
trialDays: number;
|
|
234
234
|
plans: {
|
|
235
|
-
priceLabel: string;
|
|
236
235
|
plan: "monthly" | "annual";
|
|
237
236
|
productId: string;
|
|
237
|
+
priceLabel: string;
|
|
238
238
|
billingPeriodLabel: string;
|
|
239
239
|
}[];
|
|
240
240
|
};
|
package/dist/users.d.ts
CHANGED
|
@@ -32,9 +32,10 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
32
32
|
isOnboardingSkipped: z.ZodBoolean;
|
|
33
33
|
createdAt: z.ZodDate;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
35
36
|
id: string;
|
|
37
|
+
createdAt: Date;
|
|
36
38
|
email: string;
|
|
37
|
-
name: string;
|
|
38
39
|
goal: "lose" | "maintain" | "gain" | null;
|
|
39
40
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
40
41
|
age: number | null;
|
|
@@ -46,7 +47,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
46
47
|
targetProteinG: number | null;
|
|
47
48
|
targetCarbsG: number | null;
|
|
48
49
|
targetFatG: number | null;
|
|
49
|
-
activityLevel: "
|
|
50
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
50
51
|
manualDailyTargetKcal: number | null;
|
|
51
52
|
notifyTimes: string[] | null;
|
|
52
53
|
timezone: string | null;
|
|
@@ -56,11 +57,11 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
56
57
|
onboardingStep: number;
|
|
57
58
|
isOnboarded: boolean;
|
|
58
59
|
isOnboardingSkipped: boolean;
|
|
59
|
-
createdAt: Date;
|
|
60
60
|
}, {
|
|
61
|
+
name: string;
|
|
61
62
|
id: string;
|
|
63
|
+
createdAt: Date;
|
|
62
64
|
email: string;
|
|
63
|
-
name: string;
|
|
64
65
|
goal: "lose" | "maintain" | "gain" | null;
|
|
65
66
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
66
67
|
age: number | null;
|
|
@@ -72,7 +73,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
72
73
|
targetProteinG: number | null;
|
|
73
74
|
targetCarbsG: number | null;
|
|
74
75
|
targetFatG: number | null;
|
|
75
|
-
activityLevel: "
|
|
76
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
76
77
|
manualDailyTargetKcal: number | null;
|
|
77
78
|
notifyTimes: string[] | null;
|
|
78
79
|
timezone: string | null;
|
|
@@ -82,7 +83,6 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
82
83
|
onboardingStep: number;
|
|
83
84
|
isOnboarded: boolean;
|
|
84
85
|
isOnboardingSkipped: boolean;
|
|
85
|
-
createdAt: Date;
|
|
86
86
|
}>;
|
|
87
87
|
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
88
88
|
export declare const getMeResponseSchema: z.ZodObject<{
|
|
@@ -114,9 +114,10 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
114
114
|
isOnboardingSkipped: z.ZodBoolean;
|
|
115
115
|
createdAt: z.ZodDate;
|
|
116
116
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
name: string;
|
|
117
118
|
id: string;
|
|
119
|
+
createdAt: Date;
|
|
118
120
|
email: string;
|
|
119
|
-
name: string;
|
|
120
121
|
goal: "lose" | "maintain" | "gain" | null;
|
|
121
122
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
122
123
|
age: number | null;
|
|
@@ -128,7 +129,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
128
129
|
targetProteinG: number | null;
|
|
129
130
|
targetCarbsG: number | null;
|
|
130
131
|
targetFatG: number | null;
|
|
131
|
-
activityLevel: "
|
|
132
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
132
133
|
manualDailyTargetKcal: number | null;
|
|
133
134
|
notifyTimes: string[] | null;
|
|
134
135
|
timezone: string | null;
|
|
@@ -138,11 +139,11 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
138
139
|
onboardingStep: number;
|
|
139
140
|
isOnboarded: boolean;
|
|
140
141
|
isOnboardingSkipped: boolean;
|
|
141
|
-
createdAt: Date;
|
|
142
142
|
}, {
|
|
143
|
+
name: string;
|
|
143
144
|
id: string;
|
|
145
|
+
createdAt: Date;
|
|
144
146
|
email: string;
|
|
145
|
-
name: string;
|
|
146
147
|
goal: "lose" | "maintain" | "gain" | null;
|
|
147
148
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
148
149
|
age: number | null;
|
|
@@ -154,7 +155,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
154
155
|
targetProteinG: number | null;
|
|
155
156
|
targetCarbsG: number | null;
|
|
156
157
|
targetFatG: number | null;
|
|
157
|
-
activityLevel: "
|
|
158
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
158
159
|
manualDailyTargetKcal: number | null;
|
|
159
160
|
notifyTimes: string[] | null;
|
|
160
161
|
timezone: string | null;
|
|
@@ -164,7 +165,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
164
165
|
onboardingStep: number;
|
|
165
166
|
isOnboarded: boolean;
|
|
166
167
|
isOnboardingSkipped: boolean;
|
|
167
|
-
createdAt: Date;
|
|
168
168
|
}>;
|
|
169
169
|
responseCode: z.ZodNumber;
|
|
170
170
|
message: z.ZodString;
|
|
@@ -173,9 +173,10 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
173
173
|
success: true;
|
|
174
174
|
responseCode: number;
|
|
175
175
|
data: {
|
|
176
|
+
name: string;
|
|
176
177
|
id: string;
|
|
178
|
+
createdAt: Date;
|
|
177
179
|
email: string;
|
|
178
|
-
name: string;
|
|
179
180
|
goal: "lose" | "maintain" | "gain" | null;
|
|
180
181
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
181
182
|
age: number | null;
|
|
@@ -187,7 +188,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
187
188
|
targetProteinG: number | null;
|
|
188
189
|
targetCarbsG: number | null;
|
|
189
190
|
targetFatG: number | null;
|
|
190
|
-
activityLevel: "
|
|
191
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
191
192
|
manualDailyTargetKcal: number | null;
|
|
192
193
|
notifyTimes: string[] | null;
|
|
193
194
|
timezone: string | null;
|
|
@@ -197,16 +198,16 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
197
198
|
onboardingStep: number;
|
|
198
199
|
isOnboarded: boolean;
|
|
199
200
|
isOnboardingSkipped: boolean;
|
|
200
|
-
createdAt: Date;
|
|
201
201
|
};
|
|
202
202
|
}, {
|
|
203
203
|
message: string;
|
|
204
204
|
success: true;
|
|
205
205
|
responseCode: number;
|
|
206
206
|
data: {
|
|
207
|
+
name: string;
|
|
207
208
|
id: string;
|
|
209
|
+
createdAt: Date;
|
|
208
210
|
email: string;
|
|
209
|
-
name: string;
|
|
210
211
|
goal: "lose" | "maintain" | "gain" | null;
|
|
211
212
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
212
213
|
age: number | null;
|
|
@@ -218,7 +219,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
218
219
|
targetProteinG: number | null;
|
|
219
220
|
targetCarbsG: number | null;
|
|
220
221
|
targetFatG: number | null;
|
|
221
|
-
activityLevel: "
|
|
222
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
222
223
|
manualDailyTargetKcal: number | null;
|
|
223
224
|
notifyTimes: string[] | null;
|
|
224
225
|
timezone: string | null;
|
|
@@ -228,7 +229,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
228
229
|
onboardingStep: number;
|
|
229
230
|
isOnboarded: boolean;
|
|
230
231
|
isOnboardingSkipped: boolean;
|
|
231
|
-
createdAt: Date;
|
|
232
232
|
};
|
|
233
233
|
}>;
|
|
234
234
|
export type GetMeResponse = z.infer<typeof getMeResponseSchema>;
|
|
@@ -252,7 +252,7 @@ export declare const updateProfilePayloadSchema: z.ZodObject<{
|
|
|
252
252
|
sex?: "male" | "female" | "prefer_not_to_say" | undefined;
|
|
253
253
|
heightCm?: number | undefined;
|
|
254
254
|
targetWeightKg?: number | undefined;
|
|
255
|
-
activityLevel?: "
|
|
255
|
+
activityLevel?: "active" | "sedentary" | "light" | "moderate" | "very_active" | undefined;
|
|
256
256
|
manualDailyTargetKcal?: number | undefined;
|
|
257
257
|
notifyTimes?: string[] | undefined;
|
|
258
258
|
timezone?: string | undefined;
|
|
@@ -267,7 +267,7 @@ export declare const updateProfilePayloadSchema: z.ZodObject<{
|
|
|
267
267
|
sex?: "male" | "female" | "prefer_not_to_say" | undefined;
|
|
268
268
|
heightCm?: number | undefined;
|
|
269
269
|
targetWeightKg?: number | undefined;
|
|
270
|
-
activityLevel?: "
|
|
270
|
+
activityLevel?: "active" | "sedentary" | "light" | "moderate" | "very_active" | undefined;
|
|
271
271
|
manualDailyTargetKcal?: number | undefined;
|
|
272
272
|
notifyTimes?: string[] | undefined;
|
|
273
273
|
timezone?: string | undefined;
|
|
@@ -308,9 +308,10 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
308
308
|
isOnboardingSkipped: z.ZodBoolean;
|
|
309
309
|
createdAt: z.ZodDate;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
name: string;
|
|
311
312
|
id: string;
|
|
313
|
+
createdAt: Date;
|
|
312
314
|
email: string;
|
|
313
|
-
name: string;
|
|
314
315
|
goal: "lose" | "maintain" | "gain" | null;
|
|
315
316
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
316
317
|
age: number | null;
|
|
@@ -322,7 +323,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
322
323
|
targetProteinG: number | null;
|
|
323
324
|
targetCarbsG: number | null;
|
|
324
325
|
targetFatG: number | null;
|
|
325
|
-
activityLevel: "
|
|
326
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
326
327
|
manualDailyTargetKcal: number | null;
|
|
327
328
|
notifyTimes: string[] | null;
|
|
328
329
|
timezone: string | null;
|
|
@@ -332,11 +333,11 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
332
333
|
onboardingStep: number;
|
|
333
334
|
isOnboarded: boolean;
|
|
334
335
|
isOnboardingSkipped: boolean;
|
|
335
|
-
createdAt: Date;
|
|
336
336
|
}, {
|
|
337
|
+
name: string;
|
|
337
338
|
id: string;
|
|
339
|
+
createdAt: Date;
|
|
338
340
|
email: string;
|
|
339
|
-
name: string;
|
|
340
341
|
goal: "lose" | "maintain" | "gain" | null;
|
|
341
342
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
342
343
|
age: number | null;
|
|
@@ -348,7 +349,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
348
349
|
targetProteinG: number | null;
|
|
349
350
|
targetCarbsG: number | null;
|
|
350
351
|
targetFatG: number | null;
|
|
351
|
-
activityLevel: "
|
|
352
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
352
353
|
manualDailyTargetKcal: number | null;
|
|
353
354
|
notifyTimes: string[] | null;
|
|
354
355
|
timezone: string | null;
|
|
@@ -358,7 +359,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
358
359
|
onboardingStep: number;
|
|
359
360
|
isOnboarded: boolean;
|
|
360
361
|
isOnboardingSkipped: boolean;
|
|
361
|
-
createdAt: Date;
|
|
362
362
|
}>;
|
|
363
363
|
responseCode: z.ZodNumber;
|
|
364
364
|
message: z.ZodString;
|
|
@@ -367,9 +367,10 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
367
367
|
success: true;
|
|
368
368
|
responseCode: number;
|
|
369
369
|
data: {
|
|
370
|
+
name: string;
|
|
370
371
|
id: string;
|
|
372
|
+
createdAt: Date;
|
|
371
373
|
email: string;
|
|
372
|
-
name: string;
|
|
373
374
|
goal: "lose" | "maintain" | "gain" | null;
|
|
374
375
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
375
376
|
age: number | null;
|
|
@@ -381,7 +382,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
381
382
|
targetProteinG: number | null;
|
|
382
383
|
targetCarbsG: number | null;
|
|
383
384
|
targetFatG: number | null;
|
|
384
|
-
activityLevel: "
|
|
385
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
385
386
|
manualDailyTargetKcal: number | null;
|
|
386
387
|
notifyTimes: string[] | null;
|
|
387
388
|
timezone: string | null;
|
|
@@ -391,16 +392,16 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
391
392
|
onboardingStep: number;
|
|
392
393
|
isOnboarded: boolean;
|
|
393
394
|
isOnboardingSkipped: boolean;
|
|
394
|
-
createdAt: Date;
|
|
395
395
|
};
|
|
396
396
|
}, {
|
|
397
397
|
message: string;
|
|
398
398
|
success: true;
|
|
399
399
|
responseCode: number;
|
|
400
400
|
data: {
|
|
401
|
+
name: string;
|
|
401
402
|
id: string;
|
|
403
|
+
createdAt: Date;
|
|
402
404
|
email: string;
|
|
403
|
-
name: string;
|
|
404
405
|
goal: "lose" | "maintain" | "gain" | null;
|
|
405
406
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
406
407
|
age: number | null;
|
|
@@ -412,7 +413,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
412
413
|
targetProteinG: number | null;
|
|
413
414
|
targetCarbsG: number | null;
|
|
414
415
|
targetFatG: number | null;
|
|
415
|
-
activityLevel: "
|
|
416
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
416
417
|
manualDailyTargetKcal: number | null;
|
|
417
418
|
notifyTimes: string[] | null;
|
|
418
419
|
timezone: string | null;
|
|
@@ -422,7 +423,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
422
423
|
onboardingStep: number;
|
|
423
424
|
isOnboarded: boolean;
|
|
424
425
|
isOnboardingSkipped: boolean;
|
|
425
|
-
createdAt: Date;
|
|
426
426
|
};
|
|
427
427
|
}>;
|
|
428
428
|
export declare const deleteMeResponseSchema: z.ZodNull;
|