@beorchid-llc/thrivo-contracts 0.6.0 → 0.8.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 +86 -75
- package/dist/admin.d.ts.map +1 -1
- package/dist/checkins.d.ts +22 -22
- package/dist/foods.d.ts +60 -60
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -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/uploads.d.ts +194 -0
- package/dist/uploads.d.ts.map +1 -0
- package/dist/uploads.js +54 -0
- package/dist/uploads.js.map +1 -0
- package/dist/users.d.ts +48 -32
- package/dist/users.d.ts.map +1 -1
- package/dist/users.js +4 -0
- package/dist/users.js.map +1 -1
- package/package.json +5 -1
package/dist/users.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodString;
|
|
10
10
|
email: z.ZodString;
|
|
11
11
|
name: z.ZodString;
|
|
12
|
+
image: z.ZodNullable<z.ZodString>;
|
|
12
13
|
goal: z.ZodNullable<z.ZodEnum<["lose", "maintain", "gain"]>>;
|
|
13
14
|
sex: z.ZodNullable<z.ZodEnum<["male", "female", "prefer_not_to_say"]>>;
|
|
14
15
|
age: z.ZodNullable<z.ZodNumber>;
|
|
@@ -32,9 +33,11 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
32
33
|
isOnboardingSkipped: z.ZodBoolean;
|
|
33
34
|
createdAt: z.ZodDate;
|
|
34
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
name: string;
|
|
35
37
|
id: string;
|
|
38
|
+
createdAt: Date;
|
|
36
39
|
email: string;
|
|
37
|
-
|
|
40
|
+
image: string | null;
|
|
38
41
|
goal: "lose" | "maintain" | "gain" | null;
|
|
39
42
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
40
43
|
age: number | null;
|
|
@@ -46,7 +49,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
46
49
|
targetProteinG: number | null;
|
|
47
50
|
targetCarbsG: number | null;
|
|
48
51
|
targetFatG: number | null;
|
|
49
|
-
activityLevel: "
|
|
52
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
50
53
|
manualDailyTargetKcal: number | null;
|
|
51
54
|
notifyTimes: string[] | null;
|
|
52
55
|
timezone: string | null;
|
|
@@ -56,11 +59,12 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
56
59
|
onboardingStep: number;
|
|
57
60
|
isOnboarded: boolean;
|
|
58
61
|
isOnboardingSkipped: boolean;
|
|
59
|
-
createdAt: Date;
|
|
60
62
|
}, {
|
|
63
|
+
name: string;
|
|
61
64
|
id: string;
|
|
65
|
+
createdAt: Date;
|
|
62
66
|
email: string;
|
|
63
|
-
|
|
67
|
+
image: string | null;
|
|
64
68
|
goal: "lose" | "maintain" | "gain" | null;
|
|
65
69
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
66
70
|
age: number | null;
|
|
@@ -72,7 +76,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
72
76
|
targetProteinG: number | null;
|
|
73
77
|
targetCarbsG: number | null;
|
|
74
78
|
targetFatG: number | null;
|
|
75
|
-
activityLevel: "
|
|
79
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
76
80
|
manualDailyTargetKcal: number | null;
|
|
77
81
|
notifyTimes: string[] | null;
|
|
78
82
|
timezone: string | null;
|
|
@@ -82,7 +86,6 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
82
86
|
onboardingStep: number;
|
|
83
87
|
isOnboarded: boolean;
|
|
84
88
|
isOnboardingSkipped: boolean;
|
|
85
|
-
createdAt: Date;
|
|
86
89
|
}>;
|
|
87
90
|
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
88
91
|
export declare const getMeResponseSchema: z.ZodObject<{
|
|
@@ -91,6 +94,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
91
94
|
id: z.ZodString;
|
|
92
95
|
email: z.ZodString;
|
|
93
96
|
name: z.ZodString;
|
|
97
|
+
image: z.ZodNullable<z.ZodString>;
|
|
94
98
|
goal: z.ZodNullable<z.ZodEnum<["lose", "maintain", "gain"]>>;
|
|
95
99
|
sex: z.ZodNullable<z.ZodEnum<["male", "female", "prefer_not_to_say"]>>;
|
|
96
100
|
age: z.ZodNullable<z.ZodNumber>;
|
|
@@ -114,9 +118,11 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
114
118
|
isOnboardingSkipped: z.ZodBoolean;
|
|
115
119
|
createdAt: z.ZodDate;
|
|
116
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
name: string;
|
|
117
122
|
id: string;
|
|
123
|
+
createdAt: Date;
|
|
118
124
|
email: string;
|
|
119
|
-
|
|
125
|
+
image: string | null;
|
|
120
126
|
goal: "lose" | "maintain" | "gain" | null;
|
|
121
127
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
122
128
|
age: number | null;
|
|
@@ -128,7 +134,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
128
134
|
targetProteinG: number | null;
|
|
129
135
|
targetCarbsG: number | null;
|
|
130
136
|
targetFatG: number | null;
|
|
131
|
-
activityLevel: "
|
|
137
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
132
138
|
manualDailyTargetKcal: number | null;
|
|
133
139
|
notifyTimes: string[] | null;
|
|
134
140
|
timezone: string | null;
|
|
@@ -138,11 +144,12 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
138
144
|
onboardingStep: number;
|
|
139
145
|
isOnboarded: boolean;
|
|
140
146
|
isOnboardingSkipped: boolean;
|
|
141
|
-
createdAt: Date;
|
|
142
147
|
}, {
|
|
148
|
+
name: string;
|
|
143
149
|
id: string;
|
|
150
|
+
createdAt: Date;
|
|
144
151
|
email: string;
|
|
145
|
-
|
|
152
|
+
image: string | null;
|
|
146
153
|
goal: "lose" | "maintain" | "gain" | null;
|
|
147
154
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
148
155
|
age: number | null;
|
|
@@ -154,7 +161,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
154
161
|
targetProteinG: number | null;
|
|
155
162
|
targetCarbsG: number | null;
|
|
156
163
|
targetFatG: number | null;
|
|
157
|
-
activityLevel: "
|
|
164
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
158
165
|
manualDailyTargetKcal: number | null;
|
|
159
166
|
notifyTimes: string[] | null;
|
|
160
167
|
timezone: string | null;
|
|
@@ -164,7 +171,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
164
171
|
onboardingStep: number;
|
|
165
172
|
isOnboarded: boolean;
|
|
166
173
|
isOnboardingSkipped: boolean;
|
|
167
|
-
createdAt: Date;
|
|
168
174
|
}>;
|
|
169
175
|
responseCode: z.ZodNumber;
|
|
170
176
|
message: z.ZodString;
|
|
@@ -173,9 +179,11 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
173
179
|
success: true;
|
|
174
180
|
responseCode: number;
|
|
175
181
|
data: {
|
|
182
|
+
name: string;
|
|
176
183
|
id: string;
|
|
184
|
+
createdAt: Date;
|
|
177
185
|
email: string;
|
|
178
|
-
|
|
186
|
+
image: string | null;
|
|
179
187
|
goal: "lose" | "maintain" | "gain" | null;
|
|
180
188
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
181
189
|
age: number | null;
|
|
@@ -187,7 +195,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
187
195
|
targetProteinG: number | null;
|
|
188
196
|
targetCarbsG: number | null;
|
|
189
197
|
targetFatG: number | null;
|
|
190
|
-
activityLevel: "
|
|
198
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
191
199
|
manualDailyTargetKcal: number | null;
|
|
192
200
|
notifyTimes: string[] | null;
|
|
193
201
|
timezone: string | null;
|
|
@@ -197,16 +205,17 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
197
205
|
onboardingStep: number;
|
|
198
206
|
isOnboarded: boolean;
|
|
199
207
|
isOnboardingSkipped: boolean;
|
|
200
|
-
createdAt: Date;
|
|
201
208
|
};
|
|
202
209
|
}, {
|
|
203
210
|
message: string;
|
|
204
211
|
success: true;
|
|
205
212
|
responseCode: number;
|
|
206
213
|
data: {
|
|
214
|
+
name: string;
|
|
207
215
|
id: string;
|
|
216
|
+
createdAt: Date;
|
|
208
217
|
email: string;
|
|
209
|
-
|
|
218
|
+
image: string | null;
|
|
210
219
|
goal: "lose" | "maintain" | "gain" | null;
|
|
211
220
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
212
221
|
age: number | null;
|
|
@@ -218,7 +227,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
218
227
|
targetProteinG: number | null;
|
|
219
228
|
targetCarbsG: number | null;
|
|
220
229
|
targetFatG: number | null;
|
|
221
|
-
activityLevel: "
|
|
230
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
222
231
|
manualDailyTargetKcal: number | null;
|
|
223
232
|
notifyTimes: string[] | null;
|
|
224
233
|
timezone: string | null;
|
|
@@ -228,12 +237,12 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
228
237
|
onboardingStep: number;
|
|
229
238
|
isOnboarded: boolean;
|
|
230
239
|
isOnboardingSkipped: boolean;
|
|
231
|
-
createdAt: Date;
|
|
232
240
|
};
|
|
233
241
|
}>;
|
|
234
242
|
export type GetMeResponse = z.infer<typeof getMeResponseSchema>;
|
|
235
243
|
export declare const updateProfilePayloadSchema: z.ZodObject<{
|
|
236
244
|
firstName: z.ZodOptional<z.ZodString>;
|
|
245
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
246
|
goal: z.ZodOptional<z.ZodEnum<["lose", "maintain", "gain"]>>;
|
|
238
247
|
currentWeightKg: z.ZodOptional<z.ZodNumber>;
|
|
239
248
|
targetWeightKg: z.ZodOptional<z.ZodNumber>;
|
|
@@ -248,11 +257,12 @@ export declare const updateProfilePayloadSchema: z.ZodObject<{
|
|
|
248
257
|
onboardingStep: z.ZodOptional<z.ZodNumber>;
|
|
249
258
|
activationIntent: z.ZodOptional<z.ZodEnum<["skip", "start_free_trial", "complete"]>>;
|
|
250
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
image?: string | null | undefined;
|
|
251
261
|
goal?: "lose" | "maintain" | "gain" | undefined;
|
|
252
262
|
sex?: "male" | "female" | "prefer_not_to_say" | undefined;
|
|
253
263
|
heightCm?: number | undefined;
|
|
254
264
|
targetWeightKg?: number | undefined;
|
|
255
|
-
activityLevel?: "
|
|
265
|
+
activityLevel?: "active" | "sedentary" | "light" | "moderate" | "very_active" | undefined;
|
|
256
266
|
manualDailyTargetKcal?: number | undefined;
|
|
257
267
|
notifyTimes?: string[] | undefined;
|
|
258
268
|
timezone?: string | undefined;
|
|
@@ -263,11 +273,12 @@ export declare const updateProfilePayloadSchema: z.ZodObject<{
|
|
|
263
273
|
unitSystem?: "metric" | "imperial" | undefined;
|
|
264
274
|
activationIntent?: "skip" | "start_free_trial" | "complete" | undefined;
|
|
265
275
|
}, {
|
|
276
|
+
image?: string | null | undefined;
|
|
266
277
|
goal?: "lose" | "maintain" | "gain" | undefined;
|
|
267
278
|
sex?: "male" | "female" | "prefer_not_to_say" | undefined;
|
|
268
279
|
heightCm?: number | undefined;
|
|
269
280
|
targetWeightKg?: number | undefined;
|
|
270
|
-
activityLevel?: "
|
|
281
|
+
activityLevel?: "active" | "sedentary" | "light" | "moderate" | "very_active" | undefined;
|
|
271
282
|
manualDailyTargetKcal?: number | undefined;
|
|
272
283
|
notifyTimes?: string[] | undefined;
|
|
273
284
|
timezone?: string | undefined;
|
|
@@ -285,6 +296,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
285
296
|
id: z.ZodString;
|
|
286
297
|
email: z.ZodString;
|
|
287
298
|
name: z.ZodString;
|
|
299
|
+
image: z.ZodNullable<z.ZodString>;
|
|
288
300
|
goal: z.ZodNullable<z.ZodEnum<["lose", "maintain", "gain"]>>;
|
|
289
301
|
sex: z.ZodNullable<z.ZodEnum<["male", "female", "prefer_not_to_say"]>>;
|
|
290
302
|
age: z.ZodNullable<z.ZodNumber>;
|
|
@@ -308,9 +320,11 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
308
320
|
isOnboardingSkipped: z.ZodBoolean;
|
|
309
321
|
createdAt: z.ZodDate;
|
|
310
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
name: string;
|
|
311
324
|
id: string;
|
|
325
|
+
createdAt: Date;
|
|
312
326
|
email: string;
|
|
313
|
-
|
|
327
|
+
image: string | null;
|
|
314
328
|
goal: "lose" | "maintain" | "gain" | null;
|
|
315
329
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
316
330
|
age: number | null;
|
|
@@ -322,7 +336,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
322
336
|
targetProteinG: number | null;
|
|
323
337
|
targetCarbsG: number | null;
|
|
324
338
|
targetFatG: number | null;
|
|
325
|
-
activityLevel: "
|
|
339
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
326
340
|
manualDailyTargetKcal: number | null;
|
|
327
341
|
notifyTimes: string[] | null;
|
|
328
342
|
timezone: string | null;
|
|
@@ -332,11 +346,12 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
332
346
|
onboardingStep: number;
|
|
333
347
|
isOnboarded: boolean;
|
|
334
348
|
isOnboardingSkipped: boolean;
|
|
335
|
-
createdAt: Date;
|
|
336
349
|
}, {
|
|
350
|
+
name: string;
|
|
337
351
|
id: string;
|
|
352
|
+
createdAt: Date;
|
|
338
353
|
email: string;
|
|
339
|
-
|
|
354
|
+
image: string | null;
|
|
340
355
|
goal: "lose" | "maintain" | "gain" | null;
|
|
341
356
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
342
357
|
age: number | null;
|
|
@@ -348,7 +363,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
348
363
|
targetProteinG: number | null;
|
|
349
364
|
targetCarbsG: number | null;
|
|
350
365
|
targetFatG: number | null;
|
|
351
|
-
activityLevel: "
|
|
366
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
352
367
|
manualDailyTargetKcal: number | null;
|
|
353
368
|
notifyTimes: string[] | null;
|
|
354
369
|
timezone: string | null;
|
|
@@ -358,7 +373,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
358
373
|
onboardingStep: number;
|
|
359
374
|
isOnboarded: boolean;
|
|
360
375
|
isOnboardingSkipped: boolean;
|
|
361
|
-
createdAt: Date;
|
|
362
376
|
}>;
|
|
363
377
|
responseCode: z.ZodNumber;
|
|
364
378
|
message: z.ZodString;
|
|
@@ -367,9 +381,11 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
367
381
|
success: true;
|
|
368
382
|
responseCode: number;
|
|
369
383
|
data: {
|
|
384
|
+
name: string;
|
|
370
385
|
id: string;
|
|
386
|
+
createdAt: Date;
|
|
371
387
|
email: string;
|
|
372
|
-
|
|
388
|
+
image: string | null;
|
|
373
389
|
goal: "lose" | "maintain" | "gain" | null;
|
|
374
390
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
375
391
|
age: number | null;
|
|
@@ -381,7 +397,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
381
397
|
targetProteinG: number | null;
|
|
382
398
|
targetCarbsG: number | null;
|
|
383
399
|
targetFatG: number | null;
|
|
384
|
-
activityLevel: "
|
|
400
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
385
401
|
manualDailyTargetKcal: number | null;
|
|
386
402
|
notifyTimes: string[] | null;
|
|
387
403
|
timezone: string | null;
|
|
@@ -391,16 +407,17 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
391
407
|
onboardingStep: number;
|
|
392
408
|
isOnboarded: boolean;
|
|
393
409
|
isOnboardingSkipped: boolean;
|
|
394
|
-
createdAt: Date;
|
|
395
410
|
};
|
|
396
411
|
}, {
|
|
397
412
|
message: string;
|
|
398
413
|
success: true;
|
|
399
414
|
responseCode: number;
|
|
400
415
|
data: {
|
|
416
|
+
name: string;
|
|
401
417
|
id: string;
|
|
418
|
+
createdAt: Date;
|
|
402
419
|
email: string;
|
|
403
|
-
|
|
420
|
+
image: string | null;
|
|
404
421
|
goal: "lose" | "maintain" | "gain" | null;
|
|
405
422
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
406
423
|
age: number | null;
|
|
@@ -412,7 +429,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
412
429
|
targetProteinG: number | null;
|
|
413
430
|
targetCarbsG: number | null;
|
|
414
431
|
targetFatG: number | null;
|
|
415
|
-
activityLevel: "
|
|
432
|
+
activityLevel: "active" | "sedentary" | "light" | "moderate" | "very_active" | null;
|
|
416
433
|
manualDailyTargetKcal: number | null;
|
|
417
434
|
notifyTimes: string[] | null;
|
|
418
435
|
timezone: string | null;
|
|
@@ -422,7 +439,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
422
439
|
onboardingStep: number;
|
|
423
440
|
isOnboarded: boolean;
|
|
424
441
|
isOnboardingSkipped: boolean;
|
|
425
|
-
createdAt: Date;
|
|
426
442
|
};
|
|
427
443
|
}>;
|
|
428
444
|
export declare const deleteMeResponseSchema: z.ZodNull;
|
package/dist/users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU,yCAAuC,CAAC;AAC/D,eAAO,MAAM,SAAS,oDAAkD,CAAC;AACzE,eAAO,MAAM,UAAU,gCAA8B,CAAC;AACtD,eAAO,MAAM,mBAAmB,2DAAyD,CAAC;AAC1F,eAAO,MAAM,mBAAmB,wEAM9B,CAAC;AACH,eAAO,MAAM,sBAAsB,qDAAmD,CAAC;AAEvF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU,yCAAuC,CAAC;AAC/D,eAAO,MAAM,SAAS,oDAAkD,CAAC;AACzE,eAAO,MAAM,UAAU,gCAA8B,CAAC;AACtD,eAAO,MAAM,mBAAmB,2DAAyD,CAAC;AAC1F,eAAO,MAAM,mBAAmB,wEAM9B,CAAC;AACH,eAAO,MAAM,sBAAsB,qDAAmD,CAAC;AAEvF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AAEvE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC;AAE/E,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAgBkB,CAAC"}
|
package/dist/users.js
CHANGED
|
@@ -16,6 +16,7 @@ export const userProfileSchema = z.object({
|
|
|
16
16
|
id: z.string().uuid(),
|
|
17
17
|
email: z.string().email(),
|
|
18
18
|
name: z.string(),
|
|
19
|
+
image: z.string().url().nullable(),
|
|
19
20
|
goal: goalSchema.nullable(),
|
|
20
21
|
sex: sexSchema.nullable(),
|
|
21
22
|
age: z.number().int().nullable(),
|
|
@@ -42,6 +43,9 @@ export const userProfileSchema = z.object({
|
|
|
42
43
|
export const getMeResponseSchema = apiSuccessSchema(userProfileSchema);
|
|
43
44
|
export const updateProfilePayloadSchema = z.object({
|
|
44
45
|
firstName: z.string().trim().min(1).optional(),
|
|
46
|
+
// Profile avatar URL — a verified R2 public URL from the upload flow, or null
|
|
47
|
+
// to clear it. Sending only `{ image }` is valid (every field is optional).
|
|
48
|
+
image: z.string().url().nullable().optional(),
|
|
45
49
|
goal: goalSchema.optional(),
|
|
46
50
|
currentWeightKg: z.number().positive().optional(),
|
|
47
51
|
targetWeightKg: z.number().positive().optional(),
|
package/dist/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../src/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAsB,MAAM,UAAU,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC;AACzE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AACtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,WAAW;IACX,OAAO;IACP,UAAU;IACV,QAAQ;IACR,aAAa;CACd,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;AAEv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AG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,gBAAgB,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAE/E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAM;KACb;IACD,aAAa,EAAE;QACb,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,MAAM;KACb;IACD,QAAQ,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAM;KACb;CACsC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beorchid-llc/thrivo-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Shared Thrivo API request and response contracts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"./subscriptions": {
|
|
48
48
|
"types": "./dist/subscriptions.d.ts",
|
|
49
49
|
"import": "./dist/subscriptions.js"
|
|
50
|
+
},
|
|
51
|
+
"./uploads": {
|
|
52
|
+
"types": "./dist/uploads.d.ts",
|
|
53
|
+
"import": "./dist/uploads.js"
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
"files": [
|