@beorchid-llc/thrivo-contracts 0.5.3 → 0.5.5
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.d.ts +358 -45
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +28 -19
- package/dist/admin.js.map +1 -1
- package/dist/auth.d.ts +40 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +30 -3
- package/dist/auth.js.map +1 -1
- package/dist/common.d.ts +1 -0
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +1 -0
- package/dist/common.js.map +1 -1
- package/dist/dashboard.d.ts +366 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +46 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/foods.d.ts +891 -0
- package/dist/foods.d.ts.map +1 -0
- package/dist/foods.js +67 -0
- package/dist/foods.js.map +1 -0
- 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 +130 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +29 -0
- package/dist/metrics.js.map +1 -0
- package/dist/settings.d.ts +749 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +94 -0
- package/dist/settings.js.map +1 -0
- package/dist/subscriptions.d.ts +290 -0
- package/dist/subscriptions.d.ts.map +1 -0
- package/dist/subscriptions.js +63 -0
- package/dist/subscriptions.js.map +1 -0
- package/dist/users.d.ts +22 -22
- package/package.json +22 -1
package/dist/users.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
35
35
|
id: string;
|
|
36
36
|
email: string;
|
|
37
37
|
name: string;
|
|
38
|
-
createdAt: Date;
|
|
39
38
|
goal: "lose" | "maintain" | "gain" | null;
|
|
40
39
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
41
40
|
age: number | null;
|
|
@@ -47,7 +46,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
47
46
|
targetProteinG: number | null;
|
|
48
47
|
targetCarbsG: number | null;
|
|
49
48
|
targetFatG: number | null;
|
|
50
|
-
activityLevel: "
|
|
49
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
51
50
|
manualDailyTargetKcal: number | null;
|
|
52
51
|
notifyTimes: string[] | null;
|
|
53
52
|
timezone: string | null;
|
|
@@ -57,11 +56,11 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
57
56
|
onboardingStep: number;
|
|
58
57
|
isOnboarded: boolean;
|
|
59
58
|
isOnboardingSkipped: boolean;
|
|
59
|
+
createdAt: Date;
|
|
60
60
|
}, {
|
|
61
61
|
id: string;
|
|
62
62
|
email: string;
|
|
63
63
|
name: string;
|
|
64
|
-
createdAt: Date;
|
|
65
64
|
goal: "lose" | "maintain" | "gain" | null;
|
|
66
65
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
67
66
|
age: number | null;
|
|
@@ -73,7 +72,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
73
72
|
targetProteinG: number | null;
|
|
74
73
|
targetCarbsG: number | null;
|
|
75
74
|
targetFatG: number | null;
|
|
76
|
-
activityLevel: "
|
|
75
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
77
76
|
manualDailyTargetKcal: number | null;
|
|
78
77
|
notifyTimes: string[] | null;
|
|
79
78
|
timezone: string | null;
|
|
@@ -83,6 +82,7 @@ export declare const userProfileSchema: z.ZodObject<{
|
|
|
83
82
|
onboardingStep: number;
|
|
84
83
|
isOnboarded: boolean;
|
|
85
84
|
isOnboardingSkipped: boolean;
|
|
85
|
+
createdAt: Date;
|
|
86
86
|
}>;
|
|
87
87
|
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
88
88
|
export declare const getMeResponseSchema: z.ZodObject<{
|
|
@@ -117,7 +117,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
117
117
|
id: string;
|
|
118
118
|
email: string;
|
|
119
119
|
name: string;
|
|
120
|
-
createdAt: Date;
|
|
121
120
|
goal: "lose" | "maintain" | "gain" | null;
|
|
122
121
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
123
122
|
age: number | null;
|
|
@@ -129,7 +128,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
129
128
|
targetProteinG: number | null;
|
|
130
129
|
targetCarbsG: number | null;
|
|
131
130
|
targetFatG: number | null;
|
|
132
|
-
activityLevel: "
|
|
131
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
133
132
|
manualDailyTargetKcal: number | null;
|
|
134
133
|
notifyTimes: string[] | null;
|
|
135
134
|
timezone: string | null;
|
|
@@ -139,11 +138,11 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
139
138
|
onboardingStep: number;
|
|
140
139
|
isOnboarded: boolean;
|
|
141
140
|
isOnboardingSkipped: boolean;
|
|
141
|
+
createdAt: Date;
|
|
142
142
|
}, {
|
|
143
143
|
id: string;
|
|
144
144
|
email: string;
|
|
145
145
|
name: string;
|
|
146
|
-
createdAt: Date;
|
|
147
146
|
goal: "lose" | "maintain" | "gain" | null;
|
|
148
147
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
149
148
|
age: number | null;
|
|
@@ -155,7 +154,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
155
154
|
targetProteinG: number | null;
|
|
156
155
|
targetCarbsG: number | null;
|
|
157
156
|
targetFatG: number | null;
|
|
158
|
-
activityLevel: "
|
|
157
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
159
158
|
manualDailyTargetKcal: number | null;
|
|
160
159
|
notifyTimes: string[] | null;
|
|
161
160
|
timezone: string | null;
|
|
@@ -165,6 +164,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
165
164
|
onboardingStep: number;
|
|
166
165
|
isOnboarded: boolean;
|
|
167
166
|
isOnboardingSkipped: boolean;
|
|
167
|
+
createdAt: Date;
|
|
168
168
|
}>;
|
|
169
169
|
responseCode: z.ZodNumber;
|
|
170
170
|
message: z.ZodString;
|
|
@@ -176,7 +176,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
176
176
|
id: string;
|
|
177
177
|
email: string;
|
|
178
178
|
name: string;
|
|
179
|
-
createdAt: Date;
|
|
180
179
|
goal: "lose" | "maintain" | "gain" | null;
|
|
181
180
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
182
181
|
age: number | null;
|
|
@@ -188,7 +187,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
188
187
|
targetProteinG: number | null;
|
|
189
188
|
targetCarbsG: number | null;
|
|
190
189
|
targetFatG: number | null;
|
|
191
|
-
activityLevel: "
|
|
190
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
192
191
|
manualDailyTargetKcal: number | null;
|
|
193
192
|
notifyTimes: string[] | null;
|
|
194
193
|
timezone: string | null;
|
|
@@ -198,6 +197,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
198
197
|
onboardingStep: number;
|
|
199
198
|
isOnboarded: boolean;
|
|
200
199
|
isOnboardingSkipped: boolean;
|
|
200
|
+
createdAt: Date;
|
|
201
201
|
};
|
|
202
202
|
}, {
|
|
203
203
|
message: string;
|
|
@@ -207,7 +207,6 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
207
207
|
id: string;
|
|
208
208
|
email: string;
|
|
209
209
|
name: string;
|
|
210
|
-
createdAt: Date;
|
|
211
210
|
goal: "lose" | "maintain" | "gain" | null;
|
|
212
211
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
213
212
|
age: number | null;
|
|
@@ -219,7 +218,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
219
218
|
targetProteinG: number | null;
|
|
220
219
|
targetCarbsG: number | null;
|
|
221
220
|
targetFatG: number | null;
|
|
222
|
-
activityLevel: "
|
|
221
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
223
222
|
manualDailyTargetKcal: number | null;
|
|
224
223
|
notifyTimes: string[] | null;
|
|
225
224
|
timezone: string | null;
|
|
@@ -229,6 +228,7 @@ export declare const getMeResponseSchema: z.ZodObject<{
|
|
|
229
228
|
onboardingStep: number;
|
|
230
229
|
isOnboarded: boolean;
|
|
231
230
|
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?: "sedentary" | "light" | "moderate" | "active" | "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?: "sedentary" | "light" | "moderate" | "active" | "very_active" | undefined;
|
|
271
271
|
manualDailyTargetKcal?: number | undefined;
|
|
272
272
|
notifyTimes?: string[] | undefined;
|
|
273
273
|
timezone?: string | undefined;
|
|
@@ -311,7 +311,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
311
311
|
id: string;
|
|
312
312
|
email: string;
|
|
313
313
|
name: string;
|
|
314
|
-
createdAt: Date;
|
|
315
314
|
goal: "lose" | "maintain" | "gain" | null;
|
|
316
315
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
317
316
|
age: number | null;
|
|
@@ -323,7 +322,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
323
322
|
targetProteinG: number | null;
|
|
324
323
|
targetCarbsG: number | null;
|
|
325
324
|
targetFatG: number | null;
|
|
326
|
-
activityLevel: "
|
|
325
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
327
326
|
manualDailyTargetKcal: number | null;
|
|
328
327
|
notifyTimes: string[] | null;
|
|
329
328
|
timezone: string | null;
|
|
@@ -333,11 +332,11 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
333
332
|
onboardingStep: number;
|
|
334
333
|
isOnboarded: boolean;
|
|
335
334
|
isOnboardingSkipped: boolean;
|
|
335
|
+
createdAt: Date;
|
|
336
336
|
}, {
|
|
337
337
|
id: string;
|
|
338
338
|
email: string;
|
|
339
339
|
name: string;
|
|
340
|
-
createdAt: Date;
|
|
341
340
|
goal: "lose" | "maintain" | "gain" | null;
|
|
342
341
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
343
342
|
age: number | null;
|
|
@@ -349,7 +348,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
349
348
|
targetProteinG: number | null;
|
|
350
349
|
targetCarbsG: number | null;
|
|
351
350
|
targetFatG: number | null;
|
|
352
|
-
activityLevel: "
|
|
351
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
353
352
|
manualDailyTargetKcal: number | null;
|
|
354
353
|
notifyTimes: string[] | null;
|
|
355
354
|
timezone: string | null;
|
|
@@ -359,6 +358,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
359
358
|
onboardingStep: number;
|
|
360
359
|
isOnboarded: boolean;
|
|
361
360
|
isOnboardingSkipped: boolean;
|
|
361
|
+
createdAt: Date;
|
|
362
362
|
}>;
|
|
363
363
|
responseCode: z.ZodNumber;
|
|
364
364
|
message: z.ZodString;
|
|
@@ -370,7 +370,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
370
370
|
id: string;
|
|
371
371
|
email: string;
|
|
372
372
|
name: string;
|
|
373
|
-
createdAt: Date;
|
|
374
373
|
goal: "lose" | "maintain" | "gain" | null;
|
|
375
374
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
376
375
|
age: number | null;
|
|
@@ -382,7 +381,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
382
381
|
targetProteinG: number | null;
|
|
383
382
|
targetCarbsG: number | null;
|
|
384
383
|
targetFatG: number | null;
|
|
385
|
-
activityLevel: "
|
|
384
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
386
385
|
manualDailyTargetKcal: number | null;
|
|
387
386
|
notifyTimes: string[] | null;
|
|
388
387
|
timezone: string | null;
|
|
@@ -392,6 +391,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
392
391
|
onboardingStep: number;
|
|
393
392
|
isOnboarded: boolean;
|
|
394
393
|
isOnboardingSkipped: boolean;
|
|
394
|
+
createdAt: Date;
|
|
395
395
|
};
|
|
396
396
|
}, {
|
|
397
397
|
message: string;
|
|
@@ -401,7 +401,6 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
401
401
|
id: string;
|
|
402
402
|
email: string;
|
|
403
403
|
name: string;
|
|
404
|
-
createdAt: Date;
|
|
405
404
|
goal: "lose" | "maintain" | "gain" | null;
|
|
406
405
|
sex: "male" | "female" | "prefer_not_to_say" | null;
|
|
407
406
|
age: number | null;
|
|
@@ -413,7 +412,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
413
412
|
targetProteinG: number | null;
|
|
414
413
|
targetCarbsG: number | null;
|
|
415
414
|
targetFatG: number | null;
|
|
416
|
-
activityLevel: "
|
|
415
|
+
activityLevel: "sedentary" | "light" | "moderate" | "active" | "very_active" | null;
|
|
417
416
|
manualDailyTargetKcal: number | null;
|
|
418
417
|
notifyTimes: string[] | null;
|
|
419
418
|
timezone: string | null;
|
|
@@ -423,6 +422,7 @@ export declare const updateProfileResponseSchema: z.ZodObject<{
|
|
|
423
422
|
onboardingStep: number;
|
|
424
423
|
isOnboarded: boolean;
|
|
425
424
|
isOnboardingSkipped: boolean;
|
|
425
|
+
createdAt: Date;
|
|
426
426
|
};
|
|
427
427
|
}>;
|
|
428
428
|
export declare const deleteMeResponseSchema: z.ZodNull;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beorchid-llc/thrivo-contracts",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "Shared Thrivo API request and response contracts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -27,6 +27,26 @@
|
|
|
27
27
|
"./admin": {
|
|
28
28
|
"types": "./dist/admin.d.ts",
|
|
29
29
|
"import": "./dist/admin.js"
|
|
30
|
+
},
|
|
31
|
+
"./dashboard": {
|
|
32
|
+
"types": "./dist/dashboard.d.ts",
|
|
33
|
+
"import": "./dist/dashboard.js"
|
|
34
|
+
},
|
|
35
|
+
"./foods": {
|
|
36
|
+
"types": "./dist/foods.d.ts",
|
|
37
|
+
"import": "./dist/foods.js"
|
|
38
|
+
},
|
|
39
|
+
"./metrics": {
|
|
40
|
+
"types": "./dist/metrics.d.ts",
|
|
41
|
+
"import": "./dist/metrics.js"
|
|
42
|
+
},
|
|
43
|
+
"./settings": {
|
|
44
|
+
"types": "./dist/settings.d.ts",
|
|
45
|
+
"import": "./dist/settings.js"
|
|
46
|
+
},
|
|
47
|
+
"./subscriptions": {
|
|
48
|
+
"types": "./dist/subscriptions.d.ts",
|
|
49
|
+
"import": "./dist/subscriptions.js"
|
|
30
50
|
}
|
|
31
51
|
},
|
|
32
52
|
"files": [
|
|
@@ -47,6 +67,7 @@
|
|
|
47
67
|
"typescript": "^5.6.0"
|
|
48
68
|
},
|
|
49
69
|
"scripts": {
|
|
70
|
+
"prepack": "npm run build",
|
|
50
71
|
"build": "tsc -p tsconfig.json",
|
|
51
72
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
52
73
|
"pack:dry": "npm pack --dry-run"
|