@beorchid-llc/thrivo-contracts 0.5.4 → 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.
@@ -0,0 +1,749 @@
1
+ import { z } from "zod";
2
+ export declare const unitSystemSchema: z.ZodEnum<["metric", "imperial"]>;
3
+ export type UnitSystem = z.infer<typeof unitSystemSchema>;
4
+ export declare const reminderWeekdaySchema: z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>;
5
+ export type ReminderWeekday = z.infer<typeof reminderWeekdaySchema>;
6
+ export declare const globalSettingsSchema: z.ZodObject<{
7
+ key: z.ZodLiteral<"default">;
8
+ pushNotificationsEnabled: z.ZodBoolean;
9
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
10
+ weightCheckReminderEnabled: z.ZodBoolean;
11
+ hydrationReminderEnabled: z.ZodBoolean;
12
+ subscriptionsEnabled: z.ZodBoolean;
13
+ trialsEnabled: z.ZodBoolean;
14
+ purchasesEnabled: z.ZodBoolean;
15
+ cancellationsEnabled: z.ZodBoolean;
16
+ trialDays: z.ZodNumber;
17
+ createdAt: z.ZodDate;
18
+ updatedAt: z.ZodDate;
19
+ }, "strip", z.ZodTypeAny, {
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ key: "default";
23
+ pushNotificationsEnabled: boolean;
24
+ dailyFoodLogReminderEnabled: boolean;
25
+ weightCheckReminderEnabled: boolean;
26
+ hydrationReminderEnabled: boolean;
27
+ subscriptionsEnabled: boolean;
28
+ trialsEnabled: boolean;
29
+ purchasesEnabled: boolean;
30
+ cancellationsEnabled: boolean;
31
+ trialDays: number;
32
+ }, {
33
+ createdAt: Date;
34
+ updatedAt: Date;
35
+ key: "default";
36
+ pushNotificationsEnabled: boolean;
37
+ dailyFoodLogReminderEnabled: boolean;
38
+ weightCheckReminderEnabled: boolean;
39
+ hydrationReminderEnabled: boolean;
40
+ subscriptionsEnabled: boolean;
41
+ trialsEnabled: boolean;
42
+ purchasesEnabled: boolean;
43
+ cancellationsEnabled: boolean;
44
+ trialDays: number;
45
+ }>;
46
+ export type GlobalSettings = z.infer<typeof globalSettingsSchema>;
47
+ export declare const userSettingsSchema: z.ZodObject<{
48
+ id: z.ZodString;
49
+ userId: z.ZodString;
50
+ unitSystem: z.ZodEnum<["metric", "imperial"]>;
51
+ pushNotificationsEnabled: z.ZodBoolean;
52
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
53
+ dailyFoodLogReminderTime: z.ZodString;
54
+ weightCheckReminderEnabled: z.ZodBoolean;
55
+ weightCheckReminderDay: z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>;
56
+ weightCheckReminderTime: z.ZodString;
57
+ hydrationReminderEnabled: z.ZodBoolean;
58
+ hydrationReminderIntervalMinutes: z.ZodNumber;
59
+ createdAt: z.ZodDate;
60
+ updatedAt: z.ZodDate;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: string;
63
+ createdAt: Date;
64
+ unitSystem: "metric" | "imperial";
65
+ updatedAt: Date;
66
+ userId: string;
67
+ pushNotificationsEnabled: boolean;
68
+ dailyFoodLogReminderEnabled: boolean;
69
+ weightCheckReminderEnabled: boolean;
70
+ hydrationReminderEnabled: boolean;
71
+ dailyFoodLogReminderTime: string;
72
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
73
+ weightCheckReminderTime: string;
74
+ hydrationReminderIntervalMinutes: number;
75
+ }, {
76
+ id: string;
77
+ createdAt: Date;
78
+ unitSystem: "metric" | "imperial";
79
+ updatedAt: Date;
80
+ userId: string;
81
+ pushNotificationsEnabled: boolean;
82
+ dailyFoodLogReminderEnabled: boolean;
83
+ weightCheckReminderEnabled: boolean;
84
+ hydrationReminderEnabled: boolean;
85
+ dailyFoodLogReminderTime: string;
86
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
87
+ weightCheckReminderTime: string;
88
+ hydrationReminderIntervalMinutes: number;
89
+ }>;
90
+ export type UserSettings = z.infer<typeof userSettingsSchema>;
91
+ export declare const effectiveSettingsSchema: z.ZodObject<{
92
+ global: z.ZodObject<{
93
+ key: z.ZodLiteral<"default">;
94
+ pushNotificationsEnabled: z.ZodBoolean;
95
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
96
+ weightCheckReminderEnabled: z.ZodBoolean;
97
+ hydrationReminderEnabled: z.ZodBoolean;
98
+ subscriptionsEnabled: z.ZodBoolean;
99
+ trialsEnabled: z.ZodBoolean;
100
+ purchasesEnabled: z.ZodBoolean;
101
+ cancellationsEnabled: z.ZodBoolean;
102
+ trialDays: z.ZodNumber;
103
+ createdAt: z.ZodDate;
104
+ updatedAt: z.ZodDate;
105
+ }, "strip", z.ZodTypeAny, {
106
+ createdAt: Date;
107
+ updatedAt: Date;
108
+ key: "default";
109
+ pushNotificationsEnabled: boolean;
110
+ dailyFoodLogReminderEnabled: boolean;
111
+ weightCheckReminderEnabled: boolean;
112
+ hydrationReminderEnabled: boolean;
113
+ subscriptionsEnabled: boolean;
114
+ trialsEnabled: boolean;
115
+ purchasesEnabled: boolean;
116
+ cancellationsEnabled: boolean;
117
+ trialDays: number;
118
+ }, {
119
+ createdAt: Date;
120
+ updatedAt: Date;
121
+ key: "default";
122
+ pushNotificationsEnabled: boolean;
123
+ dailyFoodLogReminderEnabled: boolean;
124
+ weightCheckReminderEnabled: boolean;
125
+ hydrationReminderEnabled: boolean;
126
+ subscriptionsEnabled: boolean;
127
+ trialsEnabled: boolean;
128
+ purchasesEnabled: boolean;
129
+ cancellationsEnabled: boolean;
130
+ trialDays: number;
131
+ }>;
132
+ user: z.ZodObject<{
133
+ id: z.ZodString;
134
+ userId: z.ZodString;
135
+ unitSystem: z.ZodEnum<["metric", "imperial"]>;
136
+ pushNotificationsEnabled: z.ZodBoolean;
137
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
138
+ dailyFoodLogReminderTime: z.ZodString;
139
+ weightCheckReminderEnabled: z.ZodBoolean;
140
+ weightCheckReminderDay: z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>;
141
+ weightCheckReminderTime: z.ZodString;
142
+ hydrationReminderEnabled: z.ZodBoolean;
143
+ hydrationReminderIntervalMinutes: z.ZodNumber;
144
+ createdAt: z.ZodDate;
145
+ updatedAt: z.ZodDate;
146
+ }, "strip", z.ZodTypeAny, {
147
+ id: string;
148
+ createdAt: Date;
149
+ unitSystem: "metric" | "imperial";
150
+ updatedAt: Date;
151
+ userId: string;
152
+ pushNotificationsEnabled: boolean;
153
+ dailyFoodLogReminderEnabled: boolean;
154
+ weightCheckReminderEnabled: boolean;
155
+ hydrationReminderEnabled: boolean;
156
+ dailyFoodLogReminderTime: string;
157
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
158
+ weightCheckReminderTime: string;
159
+ hydrationReminderIntervalMinutes: number;
160
+ }, {
161
+ id: string;
162
+ createdAt: Date;
163
+ unitSystem: "metric" | "imperial";
164
+ updatedAt: Date;
165
+ userId: string;
166
+ pushNotificationsEnabled: boolean;
167
+ dailyFoodLogReminderEnabled: boolean;
168
+ weightCheckReminderEnabled: boolean;
169
+ hydrationReminderEnabled: boolean;
170
+ dailyFoodLogReminderTime: string;
171
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
172
+ weightCheckReminderTime: string;
173
+ hydrationReminderIntervalMinutes: number;
174
+ }>;
175
+ effective: z.ZodObject<{
176
+ pushNotificationsEnabled: z.ZodBoolean;
177
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
178
+ weightCheckReminderEnabled: z.ZodBoolean;
179
+ hydrationReminderEnabled: z.ZodBoolean;
180
+ subscriptionsEnabled: z.ZodBoolean;
181
+ trialsEnabled: z.ZodBoolean;
182
+ purchasesEnabled: z.ZodBoolean;
183
+ cancellationsEnabled: z.ZodBoolean;
184
+ trialDays: z.ZodNumber;
185
+ }, "strip", z.ZodTypeAny, {
186
+ pushNotificationsEnabled: boolean;
187
+ dailyFoodLogReminderEnabled: boolean;
188
+ weightCheckReminderEnabled: boolean;
189
+ hydrationReminderEnabled: boolean;
190
+ subscriptionsEnabled: boolean;
191
+ trialsEnabled: boolean;
192
+ purchasesEnabled: boolean;
193
+ cancellationsEnabled: boolean;
194
+ trialDays: number;
195
+ }, {
196
+ pushNotificationsEnabled: boolean;
197
+ dailyFoodLogReminderEnabled: boolean;
198
+ weightCheckReminderEnabled: boolean;
199
+ hydrationReminderEnabled: boolean;
200
+ subscriptionsEnabled: boolean;
201
+ trialsEnabled: boolean;
202
+ purchasesEnabled: boolean;
203
+ cancellationsEnabled: boolean;
204
+ trialDays: number;
205
+ }>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ user: {
208
+ id: string;
209
+ createdAt: Date;
210
+ unitSystem: "metric" | "imperial";
211
+ updatedAt: Date;
212
+ userId: string;
213
+ pushNotificationsEnabled: boolean;
214
+ dailyFoodLogReminderEnabled: boolean;
215
+ weightCheckReminderEnabled: boolean;
216
+ hydrationReminderEnabled: boolean;
217
+ dailyFoodLogReminderTime: string;
218
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
219
+ weightCheckReminderTime: string;
220
+ hydrationReminderIntervalMinutes: number;
221
+ };
222
+ global: {
223
+ createdAt: Date;
224
+ updatedAt: Date;
225
+ key: "default";
226
+ pushNotificationsEnabled: boolean;
227
+ dailyFoodLogReminderEnabled: boolean;
228
+ weightCheckReminderEnabled: boolean;
229
+ hydrationReminderEnabled: boolean;
230
+ subscriptionsEnabled: boolean;
231
+ trialsEnabled: boolean;
232
+ purchasesEnabled: boolean;
233
+ cancellationsEnabled: boolean;
234
+ trialDays: number;
235
+ };
236
+ effective: {
237
+ pushNotificationsEnabled: boolean;
238
+ dailyFoodLogReminderEnabled: boolean;
239
+ weightCheckReminderEnabled: boolean;
240
+ hydrationReminderEnabled: boolean;
241
+ subscriptionsEnabled: boolean;
242
+ trialsEnabled: boolean;
243
+ purchasesEnabled: boolean;
244
+ cancellationsEnabled: boolean;
245
+ trialDays: number;
246
+ };
247
+ }, {
248
+ user: {
249
+ id: string;
250
+ createdAt: Date;
251
+ unitSystem: "metric" | "imperial";
252
+ updatedAt: Date;
253
+ userId: string;
254
+ pushNotificationsEnabled: boolean;
255
+ dailyFoodLogReminderEnabled: boolean;
256
+ weightCheckReminderEnabled: boolean;
257
+ hydrationReminderEnabled: boolean;
258
+ dailyFoodLogReminderTime: string;
259
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
260
+ weightCheckReminderTime: string;
261
+ hydrationReminderIntervalMinutes: number;
262
+ };
263
+ global: {
264
+ createdAt: Date;
265
+ updatedAt: Date;
266
+ key: "default";
267
+ pushNotificationsEnabled: boolean;
268
+ dailyFoodLogReminderEnabled: boolean;
269
+ weightCheckReminderEnabled: boolean;
270
+ hydrationReminderEnabled: boolean;
271
+ subscriptionsEnabled: boolean;
272
+ trialsEnabled: boolean;
273
+ purchasesEnabled: boolean;
274
+ cancellationsEnabled: boolean;
275
+ trialDays: number;
276
+ };
277
+ effective: {
278
+ pushNotificationsEnabled: boolean;
279
+ dailyFoodLogReminderEnabled: boolean;
280
+ weightCheckReminderEnabled: boolean;
281
+ hydrationReminderEnabled: boolean;
282
+ subscriptionsEnabled: boolean;
283
+ trialsEnabled: boolean;
284
+ purchasesEnabled: boolean;
285
+ cancellationsEnabled: boolean;
286
+ trialDays: number;
287
+ };
288
+ }>;
289
+ export type EffectiveSettings = z.infer<typeof effectiveSettingsSchema>;
290
+ export declare const updateUserSettingsPayloadSchema: z.ZodObject<{
291
+ unitSystem: z.ZodOptional<z.ZodEnum<["metric", "imperial"]>>;
292
+ pushNotificationsEnabled: z.ZodOptional<z.ZodBoolean>;
293
+ dailyFoodLogReminderEnabled: z.ZodOptional<z.ZodBoolean>;
294
+ dailyFoodLogReminderTime: z.ZodOptional<z.ZodString>;
295
+ weightCheckReminderEnabled: z.ZodOptional<z.ZodBoolean>;
296
+ weightCheckReminderDay: z.ZodOptional<z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>>;
297
+ weightCheckReminderTime: z.ZodOptional<z.ZodString>;
298
+ hydrationReminderEnabled: z.ZodOptional<z.ZodBoolean>;
299
+ hydrationReminderIntervalMinutes: z.ZodOptional<z.ZodNumber>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ unitSystem?: "metric" | "imperial" | undefined;
302
+ pushNotificationsEnabled?: boolean | undefined;
303
+ dailyFoodLogReminderEnabled?: boolean | undefined;
304
+ weightCheckReminderEnabled?: boolean | undefined;
305
+ hydrationReminderEnabled?: boolean | undefined;
306
+ dailyFoodLogReminderTime?: string | undefined;
307
+ weightCheckReminderDay?: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | undefined;
308
+ weightCheckReminderTime?: string | undefined;
309
+ hydrationReminderIntervalMinutes?: number | undefined;
310
+ }, {
311
+ unitSystem?: "metric" | "imperial" | undefined;
312
+ pushNotificationsEnabled?: boolean | undefined;
313
+ dailyFoodLogReminderEnabled?: boolean | undefined;
314
+ weightCheckReminderEnabled?: boolean | undefined;
315
+ hydrationReminderEnabled?: boolean | undefined;
316
+ dailyFoodLogReminderTime?: string | undefined;
317
+ weightCheckReminderDay?: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | undefined;
318
+ weightCheckReminderTime?: string | undefined;
319
+ hydrationReminderIntervalMinutes?: number | undefined;
320
+ }>;
321
+ export type UpdateUserSettingsPayload = z.infer<typeof updateUserSettingsPayloadSchema>;
322
+ export declare const updateGlobalSettingsPayloadSchema: z.ZodObject<{
323
+ pushNotificationsEnabled: z.ZodOptional<z.ZodBoolean>;
324
+ dailyFoodLogReminderEnabled: z.ZodOptional<z.ZodBoolean>;
325
+ weightCheckReminderEnabled: z.ZodOptional<z.ZodBoolean>;
326
+ hydrationReminderEnabled: z.ZodOptional<z.ZodBoolean>;
327
+ subscriptionsEnabled: z.ZodOptional<z.ZodBoolean>;
328
+ trialsEnabled: z.ZodOptional<z.ZodBoolean>;
329
+ purchasesEnabled: z.ZodOptional<z.ZodBoolean>;
330
+ cancellationsEnabled: z.ZodOptional<z.ZodBoolean>;
331
+ trialDays: z.ZodOptional<z.ZodNumber>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ pushNotificationsEnabled?: boolean | undefined;
334
+ dailyFoodLogReminderEnabled?: boolean | undefined;
335
+ weightCheckReminderEnabled?: boolean | undefined;
336
+ hydrationReminderEnabled?: boolean | undefined;
337
+ subscriptionsEnabled?: boolean | undefined;
338
+ trialsEnabled?: boolean | undefined;
339
+ purchasesEnabled?: boolean | undefined;
340
+ cancellationsEnabled?: boolean | undefined;
341
+ trialDays?: number | undefined;
342
+ }, {
343
+ pushNotificationsEnabled?: boolean | undefined;
344
+ dailyFoodLogReminderEnabled?: boolean | undefined;
345
+ weightCheckReminderEnabled?: boolean | undefined;
346
+ hydrationReminderEnabled?: boolean | undefined;
347
+ subscriptionsEnabled?: boolean | undefined;
348
+ trialsEnabled?: boolean | undefined;
349
+ purchasesEnabled?: boolean | undefined;
350
+ cancellationsEnabled?: boolean | undefined;
351
+ trialDays?: number | undefined;
352
+ }>;
353
+ export type UpdateGlobalSettingsPayload = z.infer<typeof updateGlobalSettingsPayloadSchema>;
354
+ export declare const userSettingsResponseSchema: z.ZodObject<{
355
+ success: z.ZodLiteral<true>;
356
+ data: z.ZodObject<{
357
+ id: z.ZodString;
358
+ userId: z.ZodString;
359
+ unitSystem: z.ZodEnum<["metric", "imperial"]>;
360
+ pushNotificationsEnabled: z.ZodBoolean;
361
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
362
+ dailyFoodLogReminderTime: z.ZodString;
363
+ weightCheckReminderEnabled: z.ZodBoolean;
364
+ weightCheckReminderDay: z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>;
365
+ weightCheckReminderTime: z.ZodString;
366
+ hydrationReminderEnabled: z.ZodBoolean;
367
+ hydrationReminderIntervalMinutes: z.ZodNumber;
368
+ createdAt: z.ZodDate;
369
+ updatedAt: z.ZodDate;
370
+ }, "strip", z.ZodTypeAny, {
371
+ id: string;
372
+ createdAt: Date;
373
+ unitSystem: "metric" | "imperial";
374
+ updatedAt: Date;
375
+ userId: string;
376
+ pushNotificationsEnabled: boolean;
377
+ dailyFoodLogReminderEnabled: boolean;
378
+ weightCheckReminderEnabled: boolean;
379
+ hydrationReminderEnabled: boolean;
380
+ dailyFoodLogReminderTime: string;
381
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
382
+ weightCheckReminderTime: string;
383
+ hydrationReminderIntervalMinutes: number;
384
+ }, {
385
+ id: string;
386
+ createdAt: Date;
387
+ unitSystem: "metric" | "imperial";
388
+ updatedAt: Date;
389
+ userId: string;
390
+ pushNotificationsEnabled: boolean;
391
+ dailyFoodLogReminderEnabled: boolean;
392
+ weightCheckReminderEnabled: boolean;
393
+ hydrationReminderEnabled: boolean;
394
+ dailyFoodLogReminderTime: string;
395
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
396
+ weightCheckReminderTime: string;
397
+ hydrationReminderIntervalMinutes: number;
398
+ }>;
399
+ responseCode: z.ZodNumber;
400
+ message: z.ZodString;
401
+ }, "strip", z.ZodTypeAny, {
402
+ message: string;
403
+ success: true;
404
+ responseCode: number;
405
+ data: {
406
+ id: string;
407
+ createdAt: Date;
408
+ unitSystem: "metric" | "imperial";
409
+ updatedAt: Date;
410
+ userId: string;
411
+ pushNotificationsEnabled: boolean;
412
+ dailyFoodLogReminderEnabled: boolean;
413
+ weightCheckReminderEnabled: boolean;
414
+ hydrationReminderEnabled: boolean;
415
+ dailyFoodLogReminderTime: string;
416
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
417
+ weightCheckReminderTime: string;
418
+ hydrationReminderIntervalMinutes: number;
419
+ };
420
+ }, {
421
+ message: string;
422
+ success: true;
423
+ responseCode: number;
424
+ data: {
425
+ id: string;
426
+ createdAt: Date;
427
+ unitSystem: "metric" | "imperial";
428
+ updatedAt: Date;
429
+ userId: string;
430
+ pushNotificationsEnabled: boolean;
431
+ dailyFoodLogReminderEnabled: boolean;
432
+ weightCheckReminderEnabled: boolean;
433
+ hydrationReminderEnabled: boolean;
434
+ dailyFoodLogReminderTime: string;
435
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
436
+ weightCheckReminderTime: string;
437
+ hydrationReminderIntervalMinutes: number;
438
+ };
439
+ }>;
440
+ export type UserSettingsResponse = z.infer<typeof userSettingsResponseSchema>;
441
+ export declare const effectiveSettingsResponseSchema: z.ZodObject<{
442
+ success: z.ZodLiteral<true>;
443
+ data: z.ZodObject<{
444
+ global: z.ZodObject<{
445
+ key: z.ZodLiteral<"default">;
446
+ pushNotificationsEnabled: z.ZodBoolean;
447
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
448
+ weightCheckReminderEnabled: z.ZodBoolean;
449
+ hydrationReminderEnabled: z.ZodBoolean;
450
+ subscriptionsEnabled: z.ZodBoolean;
451
+ trialsEnabled: z.ZodBoolean;
452
+ purchasesEnabled: z.ZodBoolean;
453
+ cancellationsEnabled: z.ZodBoolean;
454
+ trialDays: z.ZodNumber;
455
+ createdAt: z.ZodDate;
456
+ updatedAt: z.ZodDate;
457
+ }, "strip", z.ZodTypeAny, {
458
+ createdAt: Date;
459
+ updatedAt: Date;
460
+ key: "default";
461
+ pushNotificationsEnabled: boolean;
462
+ dailyFoodLogReminderEnabled: boolean;
463
+ weightCheckReminderEnabled: boolean;
464
+ hydrationReminderEnabled: boolean;
465
+ subscriptionsEnabled: boolean;
466
+ trialsEnabled: boolean;
467
+ purchasesEnabled: boolean;
468
+ cancellationsEnabled: boolean;
469
+ trialDays: number;
470
+ }, {
471
+ createdAt: Date;
472
+ updatedAt: Date;
473
+ key: "default";
474
+ pushNotificationsEnabled: boolean;
475
+ dailyFoodLogReminderEnabled: boolean;
476
+ weightCheckReminderEnabled: boolean;
477
+ hydrationReminderEnabled: boolean;
478
+ subscriptionsEnabled: boolean;
479
+ trialsEnabled: boolean;
480
+ purchasesEnabled: boolean;
481
+ cancellationsEnabled: boolean;
482
+ trialDays: number;
483
+ }>;
484
+ user: z.ZodObject<{
485
+ id: z.ZodString;
486
+ userId: z.ZodString;
487
+ unitSystem: z.ZodEnum<["metric", "imperial"]>;
488
+ pushNotificationsEnabled: z.ZodBoolean;
489
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
490
+ dailyFoodLogReminderTime: z.ZodString;
491
+ weightCheckReminderEnabled: z.ZodBoolean;
492
+ weightCheckReminderDay: z.ZodEnum<["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]>;
493
+ weightCheckReminderTime: z.ZodString;
494
+ hydrationReminderEnabled: z.ZodBoolean;
495
+ hydrationReminderIntervalMinutes: z.ZodNumber;
496
+ createdAt: z.ZodDate;
497
+ updatedAt: z.ZodDate;
498
+ }, "strip", z.ZodTypeAny, {
499
+ id: string;
500
+ createdAt: Date;
501
+ unitSystem: "metric" | "imperial";
502
+ updatedAt: Date;
503
+ userId: string;
504
+ pushNotificationsEnabled: boolean;
505
+ dailyFoodLogReminderEnabled: boolean;
506
+ weightCheckReminderEnabled: boolean;
507
+ hydrationReminderEnabled: boolean;
508
+ dailyFoodLogReminderTime: string;
509
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
510
+ weightCheckReminderTime: string;
511
+ hydrationReminderIntervalMinutes: number;
512
+ }, {
513
+ id: string;
514
+ createdAt: Date;
515
+ unitSystem: "metric" | "imperial";
516
+ updatedAt: Date;
517
+ userId: string;
518
+ pushNotificationsEnabled: boolean;
519
+ dailyFoodLogReminderEnabled: boolean;
520
+ weightCheckReminderEnabled: boolean;
521
+ hydrationReminderEnabled: boolean;
522
+ dailyFoodLogReminderTime: string;
523
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
524
+ weightCheckReminderTime: string;
525
+ hydrationReminderIntervalMinutes: number;
526
+ }>;
527
+ effective: z.ZodObject<{
528
+ pushNotificationsEnabled: z.ZodBoolean;
529
+ dailyFoodLogReminderEnabled: z.ZodBoolean;
530
+ weightCheckReminderEnabled: z.ZodBoolean;
531
+ hydrationReminderEnabled: z.ZodBoolean;
532
+ subscriptionsEnabled: z.ZodBoolean;
533
+ trialsEnabled: z.ZodBoolean;
534
+ purchasesEnabled: z.ZodBoolean;
535
+ cancellationsEnabled: z.ZodBoolean;
536
+ trialDays: z.ZodNumber;
537
+ }, "strip", z.ZodTypeAny, {
538
+ pushNotificationsEnabled: boolean;
539
+ dailyFoodLogReminderEnabled: boolean;
540
+ weightCheckReminderEnabled: boolean;
541
+ hydrationReminderEnabled: boolean;
542
+ subscriptionsEnabled: boolean;
543
+ trialsEnabled: boolean;
544
+ purchasesEnabled: boolean;
545
+ cancellationsEnabled: boolean;
546
+ trialDays: number;
547
+ }, {
548
+ pushNotificationsEnabled: boolean;
549
+ dailyFoodLogReminderEnabled: boolean;
550
+ weightCheckReminderEnabled: boolean;
551
+ hydrationReminderEnabled: boolean;
552
+ subscriptionsEnabled: boolean;
553
+ trialsEnabled: boolean;
554
+ purchasesEnabled: boolean;
555
+ cancellationsEnabled: boolean;
556
+ trialDays: number;
557
+ }>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ user: {
560
+ id: string;
561
+ createdAt: Date;
562
+ unitSystem: "metric" | "imperial";
563
+ updatedAt: Date;
564
+ userId: string;
565
+ pushNotificationsEnabled: boolean;
566
+ dailyFoodLogReminderEnabled: boolean;
567
+ weightCheckReminderEnabled: boolean;
568
+ hydrationReminderEnabled: boolean;
569
+ dailyFoodLogReminderTime: string;
570
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
571
+ weightCheckReminderTime: string;
572
+ hydrationReminderIntervalMinutes: number;
573
+ };
574
+ global: {
575
+ createdAt: Date;
576
+ updatedAt: Date;
577
+ key: "default";
578
+ pushNotificationsEnabled: boolean;
579
+ dailyFoodLogReminderEnabled: boolean;
580
+ weightCheckReminderEnabled: boolean;
581
+ hydrationReminderEnabled: boolean;
582
+ subscriptionsEnabled: boolean;
583
+ trialsEnabled: boolean;
584
+ purchasesEnabled: boolean;
585
+ cancellationsEnabled: boolean;
586
+ trialDays: number;
587
+ };
588
+ effective: {
589
+ pushNotificationsEnabled: boolean;
590
+ dailyFoodLogReminderEnabled: boolean;
591
+ weightCheckReminderEnabled: boolean;
592
+ hydrationReminderEnabled: boolean;
593
+ subscriptionsEnabled: boolean;
594
+ trialsEnabled: boolean;
595
+ purchasesEnabled: boolean;
596
+ cancellationsEnabled: boolean;
597
+ trialDays: number;
598
+ };
599
+ }, {
600
+ user: {
601
+ id: string;
602
+ createdAt: Date;
603
+ unitSystem: "metric" | "imperial";
604
+ updatedAt: Date;
605
+ userId: string;
606
+ pushNotificationsEnabled: boolean;
607
+ dailyFoodLogReminderEnabled: boolean;
608
+ weightCheckReminderEnabled: boolean;
609
+ hydrationReminderEnabled: boolean;
610
+ dailyFoodLogReminderTime: string;
611
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
612
+ weightCheckReminderTime: string;
613
+ hydrationReminderIntervalMinutes: number;
614
+ };
615
+ global: {
616
+ createdAt: Date;
617
+ updatedAt: Date;
618
+ key: "default";
619
+ pushNotificationsEnabled: boolean;
620
+ dailyFoodLogReminderEnabled: boolean;
621
+ weightCheckReminderEnabled: boolean;
622
+ hydrationReminderEnabled: boolean;
623
+ subscriptionsEnabled: boolean;
624
+ trialsEnabled: boolean;
625
+ purchasesEnabled: boolean;
626
+ cancellationsEnabled: boolean;
627
+ trialDays: number;
628
+ };
629
+ effective: {
630
+ pushNotificationsEnabled: boolean;
631
+ dailyFoodLogReminderEnabled: boolean;
632
+ weightCheckReminderEnabled: boolean;
633
+ hydrationReminderEnabled: boolean;
634
+ subscriptionsEnabled: boolean;
635
+ trialsEnabled: boolean;
636
+ purchasesEnabled: boolean;
637
+ cancellationsEnabled: boolean;
638
+ trialDays: number;
639
+ };
640
+ }>;
641
+ responseCode: z.ZodNumber;
642
+ message: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ message: string;
645
+ success: true;
646
+ responseCode: number;
647
+ data: {
648
+ user: {
649
+ id: string;
650
+ createdAt: Date;
651
+ unitSystem: "metric" | "imperial";
652
+ updatedAt: Date;
653
+ userId: string;
654
+ pushNotificationsEnabled: boolean;
655
+ dailyFoodLogReminderEnabled: boolean;
656
+ weightCheckReminderEnabled: boolean;
657
+ hydrationReminderEnabled: boolean;
658
+ dailyFoodLogReminderTime: string;
659
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
660
+ weightCheckReminderTime: string;
661
+ hydrationReminderIntervalMinutes: number;
662
+ };
663
+ global: {
664
+ createdAt: Date;
665
+ updatedAt: Date;
666
+ key: "default";
667
+ pushNotificationsEnabled: boolean;
668
+ dailyFoodLogReminderEnabled: boolean;
669
+ weightCheckReminderEnabled: boolean;
670
+ hydrationReminderEnabled: boolean;
671
+ subscriptionsEnabled: boolean;
672
+ trialsEnabled: boolean;
673
+ purchasesEnabled: boolean;
674
+ cancellationsEnabled: boolean;
675
+ trialDays: number;
676
+ };
677
+ effective: {
678
+ pushNotificationsEnabled: boolean;
679
+ dailyFoodLogReminderEnabled: boolean;
680
+ weightCheckReminderEnabled: boolean;
681
+ hydrationReminderEnabled: boolean;
682
+ subscriptionsEnabled: boolean;
683
+ trialsEnabled: boolean;
684
+ purchasesEnabled: boolean;
685
+ cancellationsEnabled: boolean;
686
+ trialDays: number;
687
+ };
688
+ };
689
+ }, {
690
+ message: string;
691
+ success: true;
692
+ responseCode: number;
693
+ data: {
694
+ user: {
695
+ id: string;
696
+ createdAt: Date;
697
+ unitSystem: "metric" | "imperial";
698
+ updatedAt: Date;
699
+ userId: string;
700
+ pushNotificationsEnabled: boolean;
701
+ dailyFoodLogReminderEnabled: boolean;
702
+ weightCheckReminderEnabled: boolean;
703
+ hydrationReminderEnabled: boolean;
704
+ dailyFoodLogReminderTime: string;
705
+ weightCheckReminderDay: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
706
+ weightCheckReminderTime: string;
707
+ hydrationReminderIntervalMinutes: number;
708
+ };
709
+ global: {
710
+ createdAt: Date;
711
+ updatedAt: Date;
712
+ key: "default";
713
+ pushNotificationsEnabled: boolean;
714
+ dailyFoodLogReminderEnabled: boolean;
715
+ weightCheckReminderEnabled: boolean;
716
+ hydrationReminderEnabled: boolean;
717
+ subscriptionsEnabled: boolean;
718
+ trialsEnabled: boolean;
719
+ purchasesEnabled: boolean;
720
+ cancellationsEnabled: boolean;
721
+ trialDays: number;
722
+ };
723
+ effective: {
724
+ pushNotificationsEnabled: boolean;
725
+ dailyFoodLogReminderEnabled: boolean;
726
+ weightCheckReminderEnabled: boolean;
727
+ hydrationReminderEnabled: boolean;
728
+ subscriptionsEnabled: boolean;
729
+ trialsEnabled: boolean;
730
+ purchasesEnabled: boolean;
731
+ cancellationsEnabled: boolean;
732
+ trialDays: number;
733
+ };
734
+ };
735
+ }>;
736
+ export type EffectiveSettingsResponse = z.infer<typeof effectiveSettingsResponseSchema>;
737
+ export declare const settingsRoutes: {
738
+ getUserSettings: {
739
+ method: "GET";
740
+ path: "/api/v1/users/me/settings";
741
+ auth: "user";
742
+ };
743
+ updateUserSettings: {
744
+ method: "PATCH";
745
+ path: "/api/v1/users/me/settings";
746
+ auth: "user";
747
+ };
748
+ };
749
+ //# sourceMappingURL=settings.d.ts.map