@nikthegeek/dreamsforlittles-shared 0.15.2 → 0.17.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/access.d.ts +216 -3
- package/dist/access.js +6 -1
- package/dist/access.js.map +1 -1
- package/dist/activity-import-readers.d.ts +18 -0
- package/dist/activity-import-readers.js +26 -0
- package/dist/activity-import-readers.js.map +1 -0
- package/dist/admin.d.ts +526 -23
- package/dist/analysis-teaser.test.d.ts +1 -0
- package/dist/analysis-teaser.test.js +52 -0
- package/dist/analysis-teaser.test.js.map +1 -0
- package/dist/analysis.d.ts +1400 -26
- package/dist/analysis.js +20 -0
- package/dist/analysis.js.map +1 -1
- package/dist/archive-zip.d.ts +5 -0
- package/dist/archive-zip.js +39 -0
- package/dist/archive-zip.js.map +1 -0
- package/dist/auth.d.ts +68 -0
- package/dist/auth.js +2 -0
- package/dist/auth.js.map +1 -1
- package/dist/booking-coach-setup.d.ts +385 -0
- package/dist/booking-coach-setup.js +48 -0
- package/dist/booking-coach-setup.js.map +1 -0
- package/dist/booking-embed-preferences.d.ts +58 -0
- package/dist/booking-embed-preferences.js +17 -0
- package/dist/booking-embed-preferences.js.map +1 -0
- package/dist/booking-enquiries.d.ts +10 -10
- package/dist/booking-family-email-content.d.ts +2 -2
- package/dist/booking-family-scope.d.ts +29 -0
- package/dist/booking-family-scope.js +6 -0
- package/dist/booking-family-scope.js.map +1 -0
- package/dist/booking-forms.d.ts +6 -6
- package/dist/booking-system.d.ts +845 -323
- package/dist/booking-system.js +96 -9
- package/dist/booking-system.js.map +1 -1
- package/dist/booking-system.test.js +21 -0
- package/dist/booking-system.test.js.map +1 -1
- package/dist/booking-team-selection.d.ts +11 -0
- package/dist/booking-team-selection.js +6 -0
- package/dist/booking-team-selection.js.map +1 -0
- package/dist/booking-team.d.ts +196 -0
- package/dist/booking-team.js +23 -0
- package/dist/booking-team.js.map +1 -0
- package/dist/calendar-connections.d.ts +6 -6
- package/dist/chat-archives.d.ts +100 -0
- package/dist/chat-archives.js +10 -0
- package/dist/chat-archives.js.map +1 -0
- package/dist/coach-activity-notifications.d.ts +36 -36
- package/dist/coach-family-chat-photos.d.ts +9 -9
- package/dist/coach-family-chat-voice-notes.d.ts +4 -4
- package/dist/coach-family-chat.d.ts +87 -59
- package/dist/coach-family-chat.js +10 -2
- package/dist/coach-family-chat.js.map +1 -1
- package/dist/coach-family-chat.test.js +18 -0
- package/dist/coach-family-chat.test.js.map +1 -1
- package/dist/coach-family-roster.d.ts +39 -0
- package/dist/coach-family-roster.js +63 -0
- package/dist/coach-family-roster.js.map +1 -0
- package/dist/coach-messaging-policy.d.ts +219 -0
- package/dist/coach-messaging-policy.js +24 -0
- package/dist/coach-messaging-policy.js.map +1 -0
- package/dist/coach-portal-link.test.d.ts +1 -0
- package/dist/coach-portal-link.test.js +35 -0
- package/dist/coach-portal-link.test.js.map +1 -0
- package/dist/coach-sleep-plan-templates.d.ts +626 -0
- package/dist/coach-sleep-plan-templates.js +32 -0
- package/dist/coach-sleep-plan-templates.js.map +1 -0
- package/dist/coach-sleep-plans.d.ts +1069 -0
- package/dist/coach-sleep-plans.js +9 -0
- package/dist/coach-sleep-plans.js.map +1 -0
- package/dist/coach-today.d.ts +206 -0
- package/dist/coach-today.js +33 -0
- package/dist/coach-today.js.map +1 -0
- package/dist/coach.d.ts +14881 -2356
- package/dist/coach.js +63 -1
- package/dist/coach.js.map +1 -1
- package/dist/enums.d.ts +2 -2
- package/dist/enums.js +10 -2
- package/dist/enums.js.map +1 -1
- package/dist/family-account-retention.d.ts +57 -0
- package/dist/family-account-retention.js +14 -0
- package/dist/family-account-retention.js.map +1 -0
- package/dist/family-artifact-summary.d.ts +49 -0
- package/dist/family-artifact-summary.js +28 -0
- package/dist/family-artifact-summary.js.map +1 -0
- package/dist/family-consent.d.ts +39 -0
- package/dist/family-consent.js +20 -0
- package/dist/family-consent.js.map +1 -0
- package/dist/family-invitations.d.ts +195 -14
- package/dist/family-invitations.js +21 -0
- package/dist/family-invitations.js.map +1 -1
- package/dist/family-profile-artifacts.d.ts +1540 -72
- package/dist/family-profile-artifacts.js +33 -2
- package/dist/family-profile-artifacts.js.map +1 -1
- package/dist/family-recovery.d.ts +123 -0
- package/dist/family-recovery.js +13 -0
- package/dist/family-recovery.js.map +1 -0
- package/dist/family-retention-policy.d.ts +65 -0
- package/dist/family-retention-policy.js +41 -0
- package/dist/family-retention-policy.js.map +1 -0
- package/dist/family-sleep-plan.test.js +17 -0
- package/dist/family-sleep-plan.test.js.map +1 -1
- package/dist/family.d.ts +36596 -4989
- package/dist/family.js +139 -14
- package/dist/family.js.map +1 -1
- package/dist/family.test.js +149 -1
- package/dist/family.test.js.map +1 -1
- package/dist/files.d.ts +4 -4
- package/dist/history-export-csv.d.ts +5 -0
- package/dist/history-export-csv.js +67 -0
- package/dist/history-export-csv.js.map +1 -0
- package/dist/history-export.d.ts +605 -0
- package/dist/history-export.js +40 -0
- package/dist/history-export.js.map +1 -0
- package/dist/home-activity-context.d.ts +6396 -0
- package/dist/home-activity-context.js +97 -0
- package/dist/home-activity-context.js.map +1 -0
- package/dist/home-activity-context.test.d.ts +1 -0
- package/dist/home-activity-context.test.js +111 -0
- package/dist/home-activity-context.test.js.map +1 -0
- package/dist/huckleberry-import.d.ts +452 -0
- package/dist/huckleberry-import.js +37 -0
- package/dist/huckleberry-import.js.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/invites.d.ts +63 -10
- package/dist/invites.js +5 -2
- package/dist/invites.js.map +1 -1
- package/dist/lead-insights.d.ts +1242 -51
- package/dist/lead-insights.js +53 -2
- package/dist/lead-insights.js.map +1 -1
- package/dist/lead-insights.test.js +35 -1
- package/dist/lead-insights.test.js.map +1 -1
- package/dist/lead-management.d.ts +1252 -96
- package/dist/lead-management.js +59 -5
- package/dist/lead-management.js.map +1 -1
- package/dist/lead-management.test.js +54 -0
- package/dist/lead-management.test.js.map +1 -1
- package/dist/milestone-photos.d.ts +492 -0
- package/dist/milestone-photos.js +35 -0
- package/dist/milestone-photos.js.map +1 -0
- package/dist/milestone-photos.test.d.ts +1 -0
- package/dist/milestone-photos.test.js +11 -0
- package/dist/milestone-photos.test.js.map +1 -0
- package/dist/milestones.d.ts +267 -23
- package/dist/milestones.js +10 -0
- package/dist/milestones.js.map +1 -1
- package/dist/milestones.test.js +23 -1
- package/dist/milestones.test.js.map +1 -1
- package/dist/native-timer-state.d.ts +8807 -0
- package/dist/native-timer-state.js +104 -0
- package/dist/native-timer-state.js.map +1 -0
- package/dist/parent-check-ins.d.ts +196 -0
- package/dist/parent-check-ins.js +37 -0
- package/dist/parent-check-ins.js.map +1 -0
- package/dist/parent-check-ins.test.d.ts +1 -0
- package/dist/parent-check-ins.test.js +27 -0
- package/dist/parent-check-ins.test.js.map +1 -0
- package/dist/practice-bookings.d.ts +261 -0
- package/dist/practice-bookings.js +22 -0
- package/dist/practice-bookings.js.map +1 -0
- package/dist/practice-insights.d.ts +437 -0
- package/dist/practice-insights.js +42 -0
- package/dist/practice-insights.js.map +1 -0
- package/dist/practice-profile.d.ts +22 -0
- package/dist/practice-profile.js +4 -0
- package/dist/practice-profile.js.map +1 -0
- package/dist/practice-teams.d.ts +1259 -0
- package/dist/practice-teams.js +100 -0
- package/dist/practice-teams.js.map +1 -0
- package/dist/product-analytics.d.ts +113 -80
- package/dist/product-analytics.js +18 -1
- package/dist/product-analytics.js.map +1 -1
- package/dist/pumping.d.ts +486 -0
- package/dist/pumping.js +94 -0
- package/dist/pumping.js.map +1 -0
- package/dist/pumping.test.d.ts +1 -0
- package/dist/pumping.test.js +62 -0
- package/dist/pumping.test.js.map +1 -0
- package/dist/questionnaire-imports.d.ts +197 -5
- package/dist/questionnaire-photos.d.ts +4 -4
- package/dist/sleep-average-context.d.ts +570 -0
- package/dist/sleep-average-context.js +286 -0
- package/dist/sleep-average-context.js.map +1 -0
- package/dist/sleep-average-context.test.d.ts +1 -0
- package/dist/sleep-average-context.test.js +290 -0
- package/dist/sleep-average-context.test.js.map +1 -0
- package/dist/sleep-average-summary.d.ts +46 -0
- package/dist/sleep-average-summary.js +127 -0
- package/dist/sleep-average-summary.js.map +1 -0
- package/dist/sleep-average-summary.test.d.ts +1 -0
- package/dist/sleep-average-summary.test.js +169 -0
- package/dist/sleep-average-summary.test.js.map +1 -0
- package/dist/sleep-awake-state.d.ts +197 -0
- package/dist/sleep-awake-state.js +25 -0
- package/dist/sleep-awake-state.js.map +1 -0
- package/dist/sleep-awake-state.test.d.ts +1 -0
- package/dist/sleep-awake-state.test.js +47 -0
- package/dist/sleep-awake-state.test.js.map +1 -0
- package/dist/sleep-completed-night.d.ts +2786 -0
- package/dist/sleep-completed-night.js +31 -0
- package/dist/sleep-completed-night.js.map +1 -0
- package/dist/sleep-methods.d.ts +15 -0
- package/dist/sleep-methods.js +9 -0
- package/dist/sleep-methods.js.map +1 -0
- package/dist/subscription-cancellation-feedback.d.ts +24 -24
- package/dist/support-faqs.d.ts +6 -6
- package/dist/support-tickets.d.ts +18 -18
- package/dist/trial-cards.test.d.ts +1 -0
- package/dist/trial-cards.test.js +30 -0
- package/dist/trial-cards.test.js.map +1 -0
- package/dist/website-feedback.d.ts +12 -12
- package/dist/zoom-meetings.d.ts +4 -4
- package/package.json +1 -1
package/dist/analysis.d.ts
CHANGED
|
@@ -8,30 +8,72 @@ export declare const analysisActivitiesQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
babyId: string;
|
|
10
10
|
familyUserId?: string | undefined;
|
|
11
|
-
activityType?: "
|
|
11
|
+
activityType?: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
12
12
|
from?: string | undefined;
|
|
13
13
|
to?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
babyId: string;
|
|
16
16
|
familyUserId?: string | undefined;
|
|
17
|
-
activityType?: "
|
|
17
|
+
activityType?: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
18
18
|
from?: string | undefined;
|
|
19
19
|
to?: string | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
babyId: string;
|
|
22
22
|
familyUserId?: string | undefined;
|
|
23
|
-
activityType?: "
|
|
23
|
+
activityType?: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
24
24
|
from?: string | undefined;
|
|
25
25
|
to?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
babyId: string;
|
|
28
28
|
familyUserId?: string | undefined;
|
|
29
|
-
activityType?: "
|
|
29
|
+
activityType?: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids" | undefined;
|
|
30
30
|
from?: string | undefined;
|
|
31
31
|
to?: string | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
34
|
-
activities: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
34
|
+
activities: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
35
|
+
importBatchId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
importSource: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"huckleberry">>>;
|
|
37
|
+
importContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
breastfeed: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
totalMinutes: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
leftMinutes: z.ZodNullable<z.ZodNumber>;
|
|
41
|
+
rightMinutes: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
totalMinutes: number | null;
|
|
44
|
+
leftMinutes: number | null;
|
|
45
|
+
rightMinutes: number | null;
|
|
46
|
+
}, {
|
|
47
|
+
totalMinutes: number | null;
|
|
48
|
+
leftMinutes: number | null;
|
|
49
|
+
rightMinutes: number | null;
|
|
50
|
+
}>>;
|
|
51
|
+
sleep: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
environment: z.ZodNullable<z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
55
|
+
}, {
|
|
56
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
57
|
+
}>>;
|
|
58
|
+
}, "strict", z.ZodTypeAny, {
|
|
59
|
+
breastfeed?: {
|
|
60
|
+
totalMinutes: number | null;
|
|
61
|
+
leftMinutes: number | null;
|
|
62
|
+
rightMinutes: number | null;
|
|
63
|
+
} | undefined;
|
|
64
|
+
sleep?: {
|
|
65
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
breastfeed?: {
|
|
69
|
+
totalMinutes: number | null;
|
|
70
|
+
leftMinutes: number | null;
|
|
71
|
+
rightMinutes: number | null;
|
|
72
|
+
} | undefined;
|
|
73
|
+
sleep?: {
|
|
74
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}>>>;
|
|
35
77
|
id: z.ZodString;
|
|
36
78
|
familyUserId: z.ZodString;
|
|
37
79
|
babyId: z.ZodString;
|
|
@@ -81,18 +123,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
81
123
|
}, "strict", z.ZodTypeAny, {
|
|
82
124
|
type: "day" | "night";
|
|
83
125
|
date: string;
|
|
126
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
84
127
|
start: string;
|
|
85
128
|
end: string;
|
|
86
129
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
87
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
88
130
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
89
131
|
}, {
|
|
90
132
|
type: "day" | "night";
|
|
91
133
|
date: string;
|
|
134
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
92
135
|
start: string;
|
|
93
136
|
end: string;
|
|
94
137
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
95
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
96
138
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
97
139
|
}>, z.ZodObject<{
|
|
98
140
|
date: z.ZodString;
|
|
@@ -173,28 +215,304 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
173
215
|
drinkType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["breastmilk", "formula", "cows-milk", "dairy-free-milk", "water", "juice"]>>>;
|
|
174
216
|
drinkContainer: z.ZodOptional<z.ZodNullable<z.ZodEnum<["bottle", "cup"]>>>;
|
|
175
217
|
pumpingSide: z.ZodOptional<z.ZodNullable<z.ZodEnum<["left", "right", "both"]>>>;
|
|
218
|
+
pumpingAmounts: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
219
|
+
unit: z.ZodEnum<["ml", "oz"]>;
|
|
220
|
+
left: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
221
|
+
right: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
222
|
+
}, "strict", z.ZodTypeAny, {
|
|
223
|
+
unit: "ml" | "oz";
|
|
224
|
+
left?: number | null | undefined;
|
|
225
|
+
right?: number | null | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
unit: "ml" | "oz";
|
|
228
|
+
left?: number | null | undefined;
|
|
229
|
+
right?: number | null | undefined;
|
|
230
|
+
}>>>;
|
|
231
|
+
pumpingSession: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
232
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
233
|
+
revision: z.ZodNumber;
|
|
234
|
+
sides: z.ZodObject<{
|
|
235
|
+
left: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
236
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
237
|
+
start: z.ZodString;
|
|
238
|
+
end: z.ZodNullable<z.ZodString>;
|
|
239
|
+
}, "strict", z.ZodTypeAny, {
|
|
240
|
+
start: string;
|
|
241
|
+
end: string | null;
|
|
242
|
+
}, {
|
|
243
|
+
start: string;
|
|
244
|
+
end: string | null;
|
|
245
|
+
}>, "many">;
|
|
246
|
+
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
247
|
+
}, "strict", z.ZodTypeAny, {
|
|
248
|
+
segments: {
|
|
249
|
+
start: string;
|
|
250
|
+
end: string | null;
|
|
251
|
+
}[];
|
|
252
|
+
stoppedAt: string | null;
|
|
253
|
+
}, {
|
|
254
|
+
segments: {
|
|
255
|
+
start: string;
|
|
256
|
+
end: string | null;
|
|
257
|
+
}[];
|
|
258
|
+
stoppedAt: string | null;
|
|
259
|
+
}>, {
|
|
260
|
+
segments: {
|
|
261
|
+
start: string;
|
|
262
|
+
end: string | null;
|
|
263
|
+
}[];
|
|
264
|
+
stoppedAt: string | null;
|
|
265
|
+
}, {
|
|
266
|
+
segments: {
|
|
267
|
+
start: string;
|
|
268
|
+
end: string | null;
|
|
269
|
+
}[];
|
|
270
|
+
stoppedAt: string | null;
|
|
271
|
+
}>>;
|
|
272
|
+
right: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
273
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
274
|
+
start: z.ZodString;
|
|
275
|
+
end: z.ZodNullable<z.ZodString>;
|
|
276
|
+
}, "strict", z.ZodTypeAny, {
|
|
277
|
+
start: string;
|
|
278
|
+
end: string | null;
|
|
279
|
+
}, {
|
|
280
|
+
start: string;
|
|
281
|
+
end: string | null;
|
|
282
|
+
}>, "many">;
|
|
283
|
+
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
284
|
+
}, "strict", z.ZodTypeAny, {
|
|
285
|
+
segments: {
|
|
286
|
+
start: string;
|
|
287
|
+
end: string | null;
|
|
288
|
+
}[];
|
|
289
|
+
stoppedAt: string | null;
|
|
290
|
+
}, {
|
|
291
|
+
segments: {
|
|
292
|
+
start: string;
|
|
293
|
+
end: string | null;
|
|
294
|
+
}[];
|
|
295
|
+
stoppedAt: string | null;
|
|
296
|
+
}>, {
|
|
297
|
+
segments: {
|
|
298
|
+
start: string;
|
|
299
|
+
end: string | null;
|
|
300
|
+
}[];
|
|
301
|
+
stoppedAt: string | null;
|
|
302
|
+
}, {
|
|
303
|
+
segments: {
|
|
304
|
+
start: string;
|
|
305
|
+
end: string | null;
|
|
306
|
+
}[];
|
|
307
|
+
stoppedAt: string | null;
|
|
308
|
+
}>>;
|
|
309
|
+
}, "strict", z.ZodTypeAny, {
|
|
310
|
+
left?: {
|
|
311
|
+
segments: {
|
|
312
|
+
start: string;
|
|
313
|
+
end: string | null;
|
|
314
|
+
}[];
|
|
315
|
+
stoppedAt: string | null;
|
|
316
|
+
} | undefined;
|
|
317
|
+
right?: {
|
|
318
|
+
segments: {
|
|
319
|
+
start: string;
|
|
320
|
+
end: string | null;
|
|
321
|
+
}[];
|
|
322
|
+
stoppedAt: string | null;
|
|
323
|
+
} | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
left?: {
|
|
326
|
+
segments: {
|
|
327
|
+
start: string;
|
|
328
|
+
end: string | null;
|
|
329
|
+
}[];
|
|
330
|
+
stoppedAt: string | null;
|
|
331
|
+
} | undefined;
|
|
332
|
+
right?: {
|
|
333
|
+
segments: {
|
|
334
|
+
start: string;
|
|
335
|
+
end: string | null;
|
|
336
|
+
}[];
|
|
337
|
+
stoppedAt: string | null;
|
|
338
|
+
} | undefined;
|
|
339
|
+
}>;
|
|
340
|
+
}, "strict", z.ZodTypeAny, {
|
|
341
|
+
schemaVersion: 1;
|
|
342
|
+
revision: number;
|
|
343
|
+
sides: {
|
|
344
|
+
left?: {
|
|
345
|
+
segments: {
|
|
346
|
+
start: string;
|
|
347
|
+
end: string | null;
|
|
348
|
+
}[];
|
|
349
|
+
stoppedAt: string | null;
|
|
350
|
+
} | undefined;
|
|
351
|
+
right?: {
|
|
352
|
+
segments: {
|
|
353
|
+
start: string;
|
|
354
|
+
end: string | null;
|
|
355
|
+
}[];
|
|
356
|
+
stoppedAt: string | null;
|
|
357
|
+
} | undefined;
|
|
358
|
+
};
|
|
359
|
+
}, {
|
|
360
|
+
schemaVersion: 1;
|
|
361
|
+
revision: number;
|
|
362
|
+
sides: {
|
|
363
|
+
left?: {
|
|
364
|
+
segments: {
|
|
365
|
+
start: string;
|
|
366
|
+
end: string | null;
|
|
367
|
+
}[];
|
|
368
|
+
stoppedAt: string | null;
|
|
369
|
+
} | undefined;
|
|
370
|
+
right?: {
|
|
371
|
+
segments: {
|
|
372
|
+
start: string;
|
|
373
|
+
end: string | null;
|
|
374
|
+
}[];
|
|
375
|
+
stoppedAt: string | null;
|
|
376
|
+
} | undefined;
|
|
377
|
+
};
|
|
378
|
+
}>, {
|
|
379
|
+
schemaVersion: 1;
|
|
380
|
+
revision: number;
|
|
381
|
+
sides: {
|
|
382
|
+
left?: {
|
|
383
|
+
segments: {
|
|
384
|
+
start: string;
|
|
385
|
+
end: string | null;
|
|
386
|
+
}[];
|
|
387
|
+
stoppedAt: string | null;
|
|
388
|
+
} | undefined;
|
|
389
|
+
right?: {
|
|
390
|
+
segments: {
|
|
391
|
+
start: string;
|
|
392
|
+
end: string | null;
|
|
393
|
+
}[];
|
|
394
|
+
stoppedAt: string | null;
|
|
395
|
+
} | undefined;
|
|
396
|
+
};
|
|
397
|
+
}, {
|
|
398
|
+
schemaVersion: 1;
|
|
399
|
+
revision: number;
|
|
400
|
+
sides: {
|
|
401
|
+
left?: {
|
|
402
|
+
segments: {
|
|
403
|
+
start: string;
|
|
404
|
+
end: string | null;
|
|
405
|
+
}[];
|
|
406
|
+
stoppedAt: string | null;
|
|
407
|
+
} | undefined;
|
|
408
|
+
right?: {
|
|
409
|
+
segments: {
|
|
410
|
+
start: string;
|
|
411
|
+
end: string | null;
|
|
412
|
+
}[];
|
|
413
|
+
stoppedAt: string | null;
|
|
414
|
+
} | undefined;
|
|
415
|
+
};
|
|
416
|
+
}>, {
|
|
417
|
+
schemaVersion: 1;
|
|
418
|
+
revision: number;
|
|
419
|
+
sides: {
|
|
420
|
+
left?: {
|
|
421
|
+
segments: {
|
|
422
|
+
start: string;
|
|
423
|
+
end: string | null;
|
|
424
|
+
}[];
|
|
425
|
+
stoppedAt: string | null;
|
|
426
|
+
} | undefined;
|
|
427
|
+
right?: {
|
|
428
|
+
segments: {
|
|
429
|
+
start: string;
|
|
430
|
+
end: string | null;
|
|
431
|
+
}[];
|
|
432
|
+
stoppedAt: string | null;
|
|
433
|
+
} | undefined;
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
schemaVersion: 1;
|
|
437
|
+
revision: number;
|
|
438
|
+
sides: {
|
|
439
|
+
left?: {
|
|
440
|
+
segments: {
|
|
441
|
+
start: string;
|
|
442
|
+
end: string | null;
|
|
443
|
+
}[];
|
|
444
|
+
stoppedAt: string | null;
|
|
445
|
+
} | undefined;
|
|
446
|
+
right?: {
|
|
447
|
+
segments: {
|
|
448
|
+
start: string;
|
|
449
|
+
end: string | null;
|
|
450
|
+
}[];
|
|
451
|
+
stoppedAt: string | null;
|
|
452
|
+
} | undefined;
|
|
453
|
+
};
|
|
454
|
+
}>>>;
|
|
176
455
|
medicationDose: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
456
|
solidsFoods: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>>;
|
|
178
457
|
solidsAcceptance: z.ZodOptional<z.ZodNullable<z.ZodEnum<["loved", "liked", "not-keen-yet"]>>>;
|
|
458
|
+
solidsMeal: z.ZodOptional<z.ZodNullable<z.ZodEnum<["breakfast", "lunch", "dinner", "snack"]>>>;
|
|
459
|
+
solidsResponse: z.ZodOptional<z.ZodNullable<z.ZodEnum<["loved", "liked", "not-keen-yet", "not-sure", "refused"]>>>;
|
|
460
|
+
nappyContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
461
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodEnum<["smear", "palm-sized", "full-nappy", "blowout"]>>>;
|
|
462
|
+
texture: z.ZodOptional<z.ZodNullable<z.ZodEnum<["watery", "seedy", "soft", "formed", "pellets", "mucusy"]>>>;
|
|
463
|
+
colour: z.ZodOptional<z.ZodNullable<z.ZodEnum<["yellow", "orange", "brown", "green"]>>>;
|
|
464
|
+
}, "strict", z.ZodTypeAny, {
|
|
465
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
466
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
467
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
468
|
+
}, {
|
|
469
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
470
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
471
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
472
|
+
}>>>;
|
|
473
|
+
sleepMethods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
474
|
+
fallAsleep: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "motion", "touch", "held"]>, "many">, ("fed" | "motion" | "touch" | "held")[], ("fed" | "motion" | "touch" | "held")[]>>>;
|
|
475
|
+
backToSleep: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "motion", "touch", "held"]>, "many">, ("fed" | "motion" | "touch" | "held")[], ("fed" | "motion" | "touch" | "held")[]>>>;
|
|
476
|
+
}, "strict", z.ZodTypeAny, {
|
|
477
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
478
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
481
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
482
|
+
}>>>;
|
|
179
483
|
sleepContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
180
484
|
settled: z.ZodOptional<z.ZodNullable<z.ZodEnum<["content", "unsettled", "wide-awake", "upset"]>>>;
|
|
181
485
|
timeToFallAsleep: z.ZodOptional<z.ZodNullable<z.ZodEnum<["under-10", "10-20", "20-30", "30-plus"]>>>;
|
|
182
486
|
awakeBefore: z.ZodOptional<z.ZodNullable<z.ZodEnum<["calm", "mixed", "busy"]>>>;
|
|
183
487
|
activitiesBefore: z.ZodOptional<z.ZodArray<z.ZodEnum<["out-and-about", "visitors", "class-or-group", "nursery", "car-or-pram", "quiet-play-at-home"]>, "many">>;
|
|
184
488
|
moodOnWaking: z.ZodOptional<z.ZodNullable<z.ZodEnum<["content", "unsettled", "upset"]>>>;
|
|
489
|
+
wake: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
reasons: z.ZodArray<z.ZodEnum<["fed", "resettled", "nappy"]>, "many">;
|
|
491
|
+
}, "strict", z.ZodTypeAny, {
|
|
492
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
493
|
+
}, {
|
|
494
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
495
|
+
}>>;
|
|
185
496
|
}, "strict", z.ZodTypeAny, {
|
|
186
497
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
187
498
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
188
499
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
189
500
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
190
501
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
502
|
+
wake?: {
|
|
503
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
504
|
+
} | undefined;
|
|
191
505
|
}, {
|
|
192
506
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
193
507
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
194
508
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
195
509
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
196
510
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
511
|
+
wake?: {
|
|
512
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
513
|
+
} | undefined;
|
|
197
514
|
}>>>;
|
|
515
|
+
sleepNightId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
516
|
breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
199
517
|
schemaVersion: z.ZodLiteral<1>;
|
|
200
518
|
segments: z.ZodArray<z.ZodObject<{
|
|
@@ -325,12 +643,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
325
643
|
updatedAt: z.ZodString;
|
|
326
644
|
createdByUserId: z.ZodString;
|
|
327
645
|
updatedByUserId: z.ZodString;
|
|
646
|
+
addedByCoach: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
editedByCoach: z.ZodOptional<z.ZodBoolean>;
|
|
328
648
|
}, "strip", z.ZodTypeAny, {
|
|
329
649
|
id: string;
|
|
330
650
|
createdAt: string;
|
|
331
651
|
updatedAt: string;
|
|
332
652
|
familyUserId: string;
|
|
333
|
-
activityType: "
|
|
653
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
334
654
|
occurredAt: string;
|
|
335
655
|
babyId: string;
|
|
336
656
|
details: {
|
|
@@ -347,10 +667,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
347
667
|
} | {
|
|
348
668
|
type: "day" | "night";
|
|
349
669
|
date: string;
|
|
670
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
350
671
|
start: string;
|
|
351
672
|
end: string;
|
|
352
673
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
353
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
354
674
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
355
675
|
} | {
|
|
356
676
|
type: ("dirty" | "wet")[];
|
|
@@ -381,21 +701,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
381
701
|
createdByUserId: string;
|
|
382
702
|
updatedByUserId: string;
|
|
383
703
|
timeZone?: string | null | undefined;
|
|
704
|
+
importContext?: {
|
|
705
|
+
breastfeed?: {
|
|
706
|
+
totalMinutes: number | null;
|
|
707
|
+
leftMinutes: number | null;
|
|
708
|
+
rightMinutes: number | null;
|
|
709
|
+
} | undefined;
|
|
710
|
+
sleep?: {
|
|
711
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
712
|
+
} | undefined;
|
|
713
|
+
} | null | undefined;
|
|
714
|
+
importSource?: "huckleberry" | null | undefined;
|
|
715
|
+
importBatchId?: string | null | undefined;
|
|
384
716
|
localDate?: string | null | undefined;
|
|
385
717
|
note?: string | null | undefined;
|
|
386
718
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
387
719
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
388
720
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
721
|
+
pumpingAmounts?: {
|
|
722
|
+
unit: "ml" | "oz";
|
|
723
|
+
left?: number | null | undefined;
|
|
724
|
+
right?: number | null | undefined;
|
|
725
|
+
} | null | undefined;
|
|
726
|
+
pumpingSession?: {
|
|
727
|
+
schemaVersion: 1;
|
|
728
|
+
revision: number;
|
|
729
|
+
sides: {
|
|
730
|
+
left?: {
|
|
731
|
+
segments: {
|
|
732
|
+
start: string;
|
|
733
|
+
end: string | null;
|
|
734
|
+
}[];
|
|
735
|
+
stoppedAt: string | null;
|
|
736
|
+
} | undefined;
|
|
737
|
+
right?: {
|
|
738
|
+
segments: {
|
|
739
|
+
start: string;
|
|
740
|
+
end: string | null;
|
|
741
|
+
}[];
|
|
742
|
+
stoppedAt: string | null;
|
|
743
|
+
} | undefined;
|
|
744
|
+
};
|
|
745
|
+
} | null | undefined;
|
|
389
746
|
medicationDose?: string | null | undefined;
|
|
390
747
|
solidsFoods?: string[] | null | undefined;
|
|
391
748
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
749
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
750
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
751
|
+
nappyContext?: {
|
|
752
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
753
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
754
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
755
|
+
} | null | undefined;
|
|
756
|
+
sleepMethods?: {
|
|
757
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
758
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
759
|
+
} | null | undefined;
|
|
392
760
|
sleepContext?: {
|
|
393
761
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
394
762
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
395
763
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
396
764
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
397
765
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
766
|
+
wake?: {
|
|
767
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
768
|
+
} | undefined;
|
|
398
769
|
} | null | undefined;
|
|
770
|
+
sleepNightId?: string | null | undefined;
|
|
399
771
|
breastfeedSession?: {
|
|
400
772
|
schemaVersion: 1;
|
|
401
773
|
segments: {
|
|
@@ -417,12 +789,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
417
789
|
})[];
|
|
418
790
|
} | null | undefined;
|
|
419
791
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
792
|
+
addedByCoach?: boolean | undefined;
|
|
793
|
+
editedByCoach?: boolean | undefined;
|
|
420
794
|
}, {
|
|
421
795
|
id: string;
|
|
422
796
|
createdAt: string;
|
|
423
797
|
updatedAt: string;
|
|
424
798
|
familyUserId: string;
|
|
425
|
-
activityType: "
|
|
799
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
426
800
|
occurredAt: string;
|
|
427
801
|
babyId: string;
|
|
428
802
|
details: {
|
|
@@ -439,10 +813,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
439
813
|
} | {
|
|
440
814
|
type: "day" | "night";
|
|
441
815
|
date: string;
|
|
816
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
442
817
|
start: string;
|
|
443
818
|
end: string;
|
|
444
819
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
445
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
446
820
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
447
821
|
} | {
|
|
448
822
|
type: ("dirty" | "wet")[];
|
|
@@ -473,21 +847,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
473
847
|
createdByUserId: string;
|
|
474
848
|
updatedByUserId: string;
|
|
475
849
|
timeZone?: string | null | undefined;
|
|
850
|
+
importContext?: {
|
|
851
|
+
breastfeed?: {
|
|
852
|
+
totalMinutes: number | null;
|
|
853
|
+
leftMinutes: number | null;
|
|
854
|
+
rightMinutes: number | null;
|
|
855
|
+
} | undefined;
|
|
856
|
+
sleep?: {
|
|
857
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
858
|
+
} | undefined;
|
|
859
|
+
} | null | undefined;
|
|
860
|
+
importSource?: "huckleberry" | null | undefined;
|
|
861
|
+
importBatchId?: string | null | undefined;
|
|
476
862
|
localDate?: string | null | undefined;
|
|
477
863
|
note?: string | null | undefined;
|
|
478
864
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
479
865
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
480
866
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
867
|
+
pumpingAmounts?: {
|
|
868
|
+
unit: "ml" | "oz";
|
|
869
|
+
left?: number | null | undefined;
|
|
870
|
+
right?: number | null | undefined;
|
|
871
|
+
} | null | undefined;
|
|
872
|
+
pumpingSession?: {
|
|
873
|
+
schemaVersion: 1;
|
|
874
|
+
revision: number;
|
|
875
|
+
sides: {
|
|
876
|
+
left?: {
|
|
877
|
+
segments: {
|
|
878
|
+
start: string;
|
|
879
|
+
end: string | null;
|
|
880
|
+
}[];
|
|
881
|
+
stoppedAt: string | null;
|
|
882
|
+
} | undefined;
|
|
883
|
+
right?: {
|
|
884
|
+
segments: {
|
|
885
|
+
start: string;
|
|
886
|
+
end: string | null;
|
|
887
|
+
}[];
|
|
888
|
+
stoppedAt: string | null;
|
|
889
|
+
} | undefined;
|
|
890
|
+
};
|
|
891
|
+
} | null | undefined;
|
|
481
892
|
medicationDose?: string | null | undefined;
|
|
482
893
|
solidsFoods?: string[] | null | undefined;
|
|
483
894
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
895
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
896
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
897
|
+
nappyContext?: {
|
|
898
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
899
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
900
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
901
|
+
} | null | undefined;
|
|
902
|
+
sleepMethods?: {
|
|
903
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
904
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
905
|
+
} | null | undefined;
|
|
484
906
|
sleepContext?: {
|
|
485
907
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
486
908
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
487
909
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
488
910
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
489
911
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
912
|
+
wake?: {
|
|
913
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
914
|
+
} | undefined;
|
|
490
915
|
} | null | undefined;
|
|
916
|
+
sleepNightId?: string | null | undefined;
|
|
491
917
|
breastfeedSession?: {
|
|
492
918
|
schemaVersion: 1;
|
|
493
919
|
segments: {
|
|
@@ -509,12 +935,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
509
935
|
})[];
|
|
510
936
|
} | null | undefined;
|
|
511
937
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
938
|
+
addedByCoach?: boolean | undefined;
|
|
939
|
+
editedByCoach?: boolean | undefined;
|
|
512
940
|
}>, {
|
|
513
941
|
id: string;
|
|
514
942
|
createdAt: string;
|
|
515
943
|
updatedAt: string;
|
|
516
944
|
familyUserId: string;
|
|
517
|
-
activityType: "
|
|
945
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
518
946
|
occurredAt: string;
|
|
519
947
|
babyId: string;
|
|
520
948
|
details: {
|
|
@@ -531,10 +959,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
531
959
|
} | {
|
|
532
960
|
type: "day" | "night";
|
|
533
961
|
date: string;
|
|
962
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
534
963
|
start: string;
|
|
535
964
|
end: string;
|
|
536
965
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
537
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
538
966
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
539
967
|
} | {
|
|
540
968
|
type: ("dirty" | "wet")[];
|
|
@@ -565,21 +993,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
565
993
|
createdByUserId: string;
|
|
566
994
|
updatedByUserId: string;
|
|
567
995
|
timeZone?: string | null | undefined;
|
|
996
|
+
importContext?: {
|
|
997
|
+
breastfeed?: {
|
|
998
|
+
totalMinutes: number | null;
|
|
999
|
+
leftMinutes: number | null;
|
|
1000
|
+
rightMinutes: number | null;
|
|
1001
|
+
} | undefined;
|
|
1002
|
+
sleep?: {
|
|
1003
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
} | null | undefined;
|
|
1006
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1007
|
+
importBatchId?: string | null | undefined;
|
|
568
1008
|
localDate?: string | null | undefined;
|
|
569
1009
|
note?: string | null | undefined;
|
|
570
1010
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
571
1011
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
572
1012
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1013
|
+
pumpingAmounts?: {
|
|
1014
|
+
unit: "ml" | "oz";
|
|
1015
|
+
left?: number | null | undefined;
|
|
1016
|
+
right?: number | null | undefined;
|
|
1017
|
+
} | null | undefined;
|
|
1018
|
+
pumpingSession?: {
|
|
1019
|
+
schemaVersion: 1;
|
|
1020
|
+
revision: number;
|
|
1021
|
+
sides: {
|
|
1022
|
+
left?: {
|
|
1023
|
+
segments: {
|
|
1024
|
+
start: string;
|
|
1025
|
+
end: string | null;
|
|
1026
|
+
}[];
|
|
1027
|
+
stoppedAt: string | null;
|
|
1028
|
+
} | undefined;
|
|
1029
|
+
right?: {
|
|
1030
|
+
segments: {
|
|
1031
|
+
start: string;
|
|
1032
|
+
end: string | null;
|
|
1033
|
+
}[];
|
|
1034
|
+
stoppedAt: string | null;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
};
|
|
1037
|
+
} | null | undefined;
|
|
573
1038
|
medicationDose?: string | null | undefined;
|
|
574
1039
|
solidsFoods?: string[] | null | undefined;
|
|
575
1040
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1041
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1042
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1043
|
+
nappyContext?: {
|
|
1044
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1045
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1046
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1047
|
+
} | null | undefined;
|
|
1048
|
+
sleepMethods?: {
|
|
1049
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1050
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1051
|
+
} | null | undefined;
|
|
576
1052
|
sleepContext?: {
|
|
577
1053
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
578
1054
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
579
1055
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
580
1056
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
581
1057
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1058
|
+
wake?: {
|
|
1059
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1060
|
+
} | undefined;
|
|
582
1061
|
} | null | undefined;
|
|
1062
|
+
sleepNightId?: string | null | undefined;
|
|
583
1063
|
breastfeedSession?: {
|
|
584
1064
|
schemaVersion: 1;
|
|
585
1065
|
segments: {
|
|
@@ -601,12 +1081,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
601
1081
|
})[];
|
|
602
1082
|
} | null | undefined;
|
|
603
1083
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1084
|
+
addedByCoach?: boolean | undefined;
|
|
1085
|
+
editedByCoach?: boolean | undefined;
|
|
604
1086
|
}, {
|
|
605
1087
|
id: string;
|
|
606
1088
|
createdAt: string;
|
|
607
1089
|
updatedAt: string;
|
|
608
1090
|
familyUserId: string;
|
|
609
|
-
activityType: "
|
|
1091
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
610
1092
|
occurredAt: string;
|
|
611
1093
|
babyId: string;
|
|
612
1094
|
details: {
|
|
@@ -623,10 +1105,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
623
1105
|
} | {
|
|
624
1106
|
type: "day" | "night";
|
|
625
1107
|
date: string;
|
|
1108
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
626
1109
|
start: string;
|
|
627
1110
|
end: string;
|
|
628
1111
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
629
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
630
1112
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
631
1113
|
} | {
|
|
632
1114
|
type: ("dirty" | "wet")[];
|
|
@@ -657,21 +1139,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
657
1139
|
createdByUserId: string;
|
|
658
1140
|
updatedByUserId: string;
|
|
659
1141
|
timeZone?: string | null | undefined;
|
|
1142
|
+
importContext?: {
|
|
1143
|
+
breastfeed?: {
|
|
1144
|
+
totalMinutes: number | null;
|
|
1145
|
+
leftMinutes: number | null;
|
|
1146
|
+
rightMinutes: number | null;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
sleep?: {
|
|
1149
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1150
|
+
} | undefined;
|
|
1151
|
+
} | null | undefined;
|
|
1152
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1153
|
+
importBatchId?: string | null | undefined;
|
|
660
1154
|
localDate?: string | null | undefined;
|
|
661
1155
|
note?: string | null | undefined;
|
|
662
1156
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
663
1157
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
664
1158
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1159
|
+
pumpingAmounts?: {
|
|
1160
|
+
unit: "ml" | "oz";
|
|
1161
|
+
left?: number | null | undefined;
|
|
1162
|
+
right?: number | null | undefined;
|
|
1163
|
+
} | null | undefined;
|
|
1164
|
+
pumpingSession?: {
|
|
1165
|
+
schemaVersion: 1;
|
|
1166
|
+
revision: number;
|
|
1167
|
+
sides: {
|
|
1168
|
+
left?: {
|
|
1169
|
+
segments: {
|
|
1170
|
+
start: string;
|
|
1171
|
+
end: string | null;
|
|
1172
|
+
}[];
|
|
1173
|
+
stoppedAt: string | null;
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
right?: {
|
|
1176
|
+
segments: {
|
|
1177
|
+
start: string;
|
|
1178
|
+
end: string | null;
|
|
1179
|
+
}[];
|
|
1180
|
+
stoppedAt: string | null;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
};
|
|
1183
|
+
} | null | undefined;
|
|
665
1184
|
medicationDose?: string | null | undefined;
|
|
666
1185
|
solidsFoods?: string[] | null | undefined;
|
|
667
1186
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1187
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1188
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1189
|
+
nappyContext?: {
|
|
1190
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1191
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1192
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1193
|
+
} | null | undefined;
|
|
1194
|
+
sleepMethods?: {
|
|
1195
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1196
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1197
|
+
} | null | undefined;
|
|
668
1198
|
sleepContext?: {
|
|
669
1199
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
670
1200
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
671
1201
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
672
1202
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
673
1203
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1204
|
+
wake?: {
|
|
1205
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1206
|
+
} | undefined;
|
|
674
1207
|
} | null | undefined;
|
|
1208
|
+
sleepNightId?: string | null | undefined;
|
|
675
1209
|
breastfeedSession?: {
|
|
676
1210
|
schemaVersion: 1;
|
|
677
1211
|
segments: {
|
|
@@ -693,12 +1227,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
693
1227
|
})[];
|
|
694
1228
|
} | null | undefined;
|
|
695
1229
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1230
|
+
addedByCoach?: boolean | undefined;
|
|
1231
|
+
editedByCoach?: boolean | undefined;
|
|
696
1232
|
}>, {
|
|
697
1233
|
id: string;
|
|
698
1234
|
createdAt: string;
|
|
699
1235
|
updatedAt: string;
|
|
700
1236
|
familyUserId: string;
|
|
701
|
-
activityType: "
|
|
1237
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
702
1238
|
occurredAt: string;
|
|
703
1239
|
babyId: string;
|
|
704
1240
|
details: {
|
|
@@ -715,10 +1251,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
715
1251
|
} | {
|
|
716
1252
|
type: "day" | "night";
|
|
717
1253
|
date: string;
|
|
1254
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
718
1255
|
start: string;
|
|
719
1256
|
end: string;
|
|
720
1257
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
721
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
722
1258
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
723
1259
|
} | {
|
|
724
1260
|
type: ("dirty" | "wet")[];
|
|
@@ -749,21 +1285,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
749
1285
|
createdByUserId: string;
|
|
750
1286
|
updatedByUserId: string;
|
|
751
1287
|
timeZone?: string | null | undefined;
|
|
1288
|
+
importContext?: {
|
|
1289
|
+
breastfeed?: {
|
|
1290
|
+
totalMinutes: number | null;
|
|
1291
|
+
leftMinutes: number | null;
|
|
1292
|
+
rightMinutes: number | null;
|
|
1293
|
+
} | undefined;
|
|
1294
|
+
sleep?: {
|
|
1295
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1296
|
+
} | undefined;
|
|
1297
|
+
} | null | undefined;
|
|
1298
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1299
|
+
importBatchId?: string | null | undefined;
|
|
752
1300
|
localDate?: string | null | undefined;
|
|
753
1301
|
note?: string | null | undefined;
|
|
754
1302
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
755
1303
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
756
1304
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1305
|
+
pumpingAmounts?: {
|
|
1306
|
+
unit: "ml" | "oz";
|
|
1307
|
+
left?: number | null | undefined;
|
|
1308
|
+
right?: number | null | undefined;
|
|
1309
|
+
} | null | undefined;
|
|
1310
|
+
pumpingSession?: {
|
|
1311
|
+
schemaVersion: 1;
|
|
1312
|
+
revision: number;
|
|
1313
|
+
sides: {
|
|
1314
|
+
left?: {
|
|
1315
|
+
segments: {
|
|
1316
|
+
start: string;
|
|
1317
|
+
end: string | null;
|
|
1318
|
+
}[];
|
|
1319
|
+
stoppedAt: string | null;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
right?: {
|
|
1322
|
+
segments: {
|
|
1323
|
+
start: string;
|
|
1324
|
+
end: string | null;
|
|
1325
|
+
}[];
|
|
1326
|
+
stoppedAt: string | null;
|
|
1327
|
+
} | undefined;
|
|
1328
|
+
};
|
|
1329
|
+
} | null | undefined;
|
|
757
1330
|
medicationDose?: string | null | undefined;
|
|
758
1331
|
solidsFoods?: string[] | null | undefined;
|
|
759
1332
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1333
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1334
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1335
|
+
nappyContext?: {
|
|
1336
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1337
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1338
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1339
|
+
} | null | undefined;
|
|
1340
|
+
sleepMethods?: {
|
|
1341
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1342
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1343
|
+
} | null | undefined;
|
|
760
1344
|
sleepContext?: {
|
|
761
1345
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
762
1346
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
763
1347
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
764
1348
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
765
1349
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1350
|
+
wake?: {
|
|
1351
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1352
|
+
} | undefined;
|
|
766
1353
|
} | null | undefined;
|
|
1354
|
+
sleepNightId?: string | null | undefined;
|
|
767
1355
|
breastfeedSession?: {
|
|
768
1356
|
schemaVersion: 1;
|
|
769
1357
|
segments: {
|
|
@@ -785,12 +1373,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
785
1373
|
})[];
|
|
786
1374
|
} | null | undefined;
|
|
787
1375
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1376
|
+
addedByCoach?: boolean | undefined;
|
|
1377
|
+
editedByCoach?: boolean | undefined;
|
|
788
1378
|
}, {
|
|
789
1379
|
id: string;
|
|
790
1380
|
createdAt: string;
|
|
791
1381
|
updatedAt: string;
|
|
792
1382
|
familyUserId: string;
|
|
793
|
-
activityType: "
|
|
1383
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
794
1384
|
occurredAt: string;
|
|
795
1385
|
babyId: string;
|
|
796
1386
|
details: {
|
|
@@ -807,10 +1397,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
807
1397
|
} | {
|
|
808
1398
|
type: "day" | "night";
|
|
809
1399
|
date: string;
|
|
1400
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
810
1401
|
start: string;
|
|
811
1402
|
end: string;
|
|
812
1403
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
813
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
814
1404
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
815
1405
|
} | {
|
|
816
1406
|
type: ("dirty" | "wet")[];
|
|
@@ -841,21 +1431,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
841
1431
|
createdByUserId: string;
|
|
842
1432
|
updatedByUserId: string;
|
|
843
1433
|
timeZone?: string | null | undefined;
|
|
1434
|
+
importContext?: {
|
|
1435
|
+
breastfeed?: {
|
|
1436
|
+
totalMinutes: number | null;
|
|
1437
|
+
leftMinutes: number | null;
|
|
1438
|
+
rightMinutes: number | null;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
sleep?: {
|
|
1441
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1442
|
+
} | undefined;
|
|
1443
|
+
} | null | undefined;
|
|
1444
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1445
|
+
importBatchId?: string | null | undefined;
|
|
844
1446
|
localDate?: string | null | undefined;
|
|
845
1447
|
note?: string | null | undefined;
|
|
846
1448
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
847
1449
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
848
1450
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1451
|
+
pumpingAmounts?: {
|
|
1452
|
+
unit: "ml" | "oz";
|
|
1453
|
+
left?: number | null | undefined;
|
|
1454
|
+
right?: number | null | undefined;
|
|
1455
|
+
} | null | undefined;
|
|
1456
|
+
pumpingSession?: {
|
|
1457
|
+
schemaVersion: 1;
|
|
1458
|
+
revision: number;
|
|
1459
|
+
sides: {
|
|
1460
|
+
left?: {
|
|
1461
|
+
segments: {
|
|
1462
|
+
start: string;
|
|
1463
|
+
end: string | null;
|
|
1464
|
+
}[];
|
|
1465
|
+
stoppedAt: string | null;
|
|
1466
|
+
} | undefined;
|
|
1467
|
+
right?: {
|
|
1468
|
+
segments: {
|
|
1469
|
+
start: string;
|
|
1470
|
+
end: string | null;
|
|
1471
|
+
}[];
|
|
1472
|
+
stoppedAt: string | null;
|
|
1473
|
+
} | undefined;
|
|
1474
|
+
};
|
|
1475
|
+
} | null | undefined;
|
|
849
1476
|
medicationDose?: string | null | undefined;
|
|
850
1477
|
solidsFoods?: string[] | null | undefined;
|
|
851
1478
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1479
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1480
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1481
|
+
nappyContext?: {
|
|
1482
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1483
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1484
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1485
|
+
} | null | undefined;
|
|
1486
|
+
sleepMethods?: {
|
|
1487
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1488
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1489
|
+
} | null | undefined;
|
|
852
1490
|
sleepContext?: {
|
|
853
1491
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
854
1492
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
855
1493
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
856
1494
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
857
1495
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1496
|
+
wake?: {
|
|
1497
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1498
|
+
} | undefined;
|
|
858
1499
|
} | null | undefined;
|
|
1500
|
+
sleepNightId?: string | null | undefined;
|
|
859
1501
|
breastfeedSession?: {
|
|
860
1502
|
schemaVersion: 1;
|
|
861
1503
|
segments: {
|
|
@@ -877,12 +1519,14 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
877
1519
|
})[];
|
|
878
1520
|
} | null | undefined;
|
|
879
1521
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1522
|
+
addedByCoach?: boolean | undefined;
|
|
1523
|
+
editedByCoach?: boolean | undefined;
|
|
880
1524
|
}>, {
|
|
881
1525
|
id: string;
|
|
882
1526
|
createdAt: string;
|
|
883
1527
|
updatedAt: string;
|
|
884
1528
|
familyUserId: string;
|
|
885
|
-
activityType: "
|
|
1529
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
886
1530
|
occurredAt: string;
|
|
887
1531
|
babyId: string;
|
|
888
1532
|
details: {
|
|
@@ -899,10 +1543,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
899
1543
|
} | {
|
|
900
1544
|
type: "day" | "night";
|
|
901
1545
|
date: string;
|
|
1546
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
902
1547
|
start: string;
|
|
903
1548
|
end: string;
|
|
904
1549
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
905
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
906
1550
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
907
1551
|
} | {
|
|
908
1552
|
type: ("dirty" | "wet")[];
|
|
@@ -933,21 +1577,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
933
1577
|
createdByUserId: string;
|
|
934
1578
|
updatedByUserId: string;
|
|
935
1579
|
timeZone?: string | null | undefined;
|
|
1580
|
+
importContext?: {
|
|
1581
|
+
breastfeed?: {
|
|
1582
|
+
totalMinutes: number | null;
|
|
1583
|
+
leftMinutes: number | null;
|
|
1584
|
+
rightMinutes: number | null;
|
|
1585
|
+
} | undefined;
|
|
1586
|
+
sleep?: {
|
|
1587
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
} | null | undefined;
|
|
1590
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1591
|
+
importBatchId?: string | null | undefined;
|
|
936
1592
|
localDate?: string | null | undefined;
|
|
937
1593
|
note?: string | null | undefined;
|
|
938
1594
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
939
1595
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
940
1596
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1597
|
+
pumpingAmounts?: {
|
|
1598
|
+
unit: "ml" | "oz";
|
|
1599
|
+
left?: number | null | undefined;
|
|
1600
|
+
right?: number | null | undefined;
|
|
1601
|
+
} | null | undefined;
|
|
1602
|
+
pumpingSession?: {
|
|
1603
|
+
schemaVersion: 1;
|
|
1604
|
+
revision: number;
|
|
1605
|
+
sides: {
|
|
1606
|
+
left?: {
|
|
1607
|
+
segments: {
|
|
1608
|
+
start: string;
|
|
1609
|
+
end: string | null;
|
|
1610
|
+
}[];
|
|
1611
|
+
stoppedAt: string | null;
|
|
1612
|
+
} | undefined;
|
|
1613
|
+
right?: {
|
|
1614
|
+
segments: {
|
|
1615
|
+
start: string;
|
|
1616
|
+
end: string | null;
|
|
1617
|
+
}[];
|
|
1618
|
+
stoppedAt: string | null;
|
|
1619
|
+
} | undefined;
|
|
1620
|
+
};
|
|
1621
|
+
} | null | undefined;
|
|
941
1622
|
medicationDose?: string | null | undefined;
|
|
942
1623
|
solidsFoods?: string[] | null | undefined;
|
|
943
1624
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1625
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1626
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1627
|
+
nappyContext?: {
|
|
1628
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1629
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1630
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1631
|
+
} | null | undefined;
|
|
1632
|
+
sleepMethods?: {
|
|
1633
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1634
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1635
|
+
} | null | undefined;
|
|
944
1636
|
sleepContext?: {
|
|
945
1637
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
946
1638
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
947
1639
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
948
1640
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
949
1641
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1642
|
+
wake?: {
|
|
1643
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1644
|
+
} | undefined;
|
|
950
1645
|
} | null | undefined;
|
|
1646
|
+
sleepNightId?: string | null | undefined;
|
|
951
1647
|
breastfeedSession?: {
|
|
952
1648
|
schemaVersion: 1;
|
|
953
1649
|
segments: {
|
|
@@ -969,12 +1665,160 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
969
1665
|
})[];
|
|
970
1666
|
} | null | undefined;
|
|
971
1667
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1668
|
+
addedByCoach?: boolean | undefined;
|
|
1669
|
+
editedByCoach?: boolean | undefined;
|
|
972
1670
|
}, {
|
|
973
1671
|
id: string;
|
|
974
1672
|
createdAt: string;
|
|
975
1673
|
updatedAt: string;
|
|
976
1674
|
familyUserId: string;
|
|
977
|
-
activityType: "
|
|
1675
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
1676
|
+
occurredAt: string;
|
|
1677
|
+
babyId: string;
|
|
1678
|
+
details: {
|
|
1679
|
+
date: string;
|
|
1680
|
+
start: string;
|
|
1681
|
+
end: string;
|
|
1682
|
+
side: "left" | "right";
|
|
1683
|
+
} | {
|
|
1684
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
1685
|
+
date: string;
|
|
1686
|
+
unit: "ml" | "oz";
|
|
1687
|
+
time: string;
|
|
1688
|
+
amount: number;
|
|
1689
|
+
} | {
|
|
1690
|
+
type: "day" | "night";
|
|
1691
|
+
date: string;
|
|
1692
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1693
|
+
start: string;
|
|
1694
|
+
end: string;
|
|
1695
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
1696
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
1697
|
+
} | {
|
|
1698
|
+
type: ("dirty" | "wet")[];
|
|
1699
|
+
date: string;
|
|
1700
|
+
time: string;
|
|
1701
|
+
imageURL?: string | null | undefined;
|
|
1702
|
+
} | {
|
|
1703
|
+
date: string;
|
|
1704
|
+
unit: "ml" | "oz";
|
|
1705
|
+
start: string;
|
|
1706
|
+
end: string;
|
|
1707
|
+
side: "left" | "right";
|
|
1708
|
+
amount: number;
|
|
1709
|
+
} | {
|
|
1710
|
+
date: string;
|
|
1711
|
+
time: string;
|
|
1712
|
+
medicationName: string;
|
|
1713
|
+
} | {
|
|
1714
|
+
date: string;
|
|
1715
|
+
time: string;
|
|
1716
|
+
allergicReaction: boolean;
|
|
1717
|
+
allergicReactionNote?: string | null | undefined;
|
|
1718
|
+
accidentalExposure?: boolean | undefined;
|
|
1719
|
+
accidentalExposureNote?: string | null | undefined;
|
|
1720
|
+
ladderId?: string | null | undefined;
|
|
1721
|
+
ladderStageId?: string | null | undefined;
|
|
1722
|
+
};
|
|
1723
|
+
createdByUserId: string;
|
|
1724
|
+
updatedByUserId: string;
|
|
1725
|
+
timeZone?: string | null | undefined;
|
|
1726
|
+
importContext?: {
|
|
1727
|
+
breastfeed?: {
|
|
1728
|
+
totalMinutes: number | null;
|
|
1729
|
+
leftMinutes: number | null;
|
|
1730
|
+
rightMinutes: number | null;
|
|
1731
|
+
} | undefined;
|
|
1732
|
+
sleep?: {
|
|
1733
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1734
|
+
} | undefined;
|
|
1735
|
+
} | null | undefined;
|
|
1736
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1737
|
+
importBatchId?: string | null | undefined;
|
|
1738
|
+
localDate?: string | null | undefined;
|
|
1739
|
+
note?: string | null | undefined;
|
|
1740
|
+
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
1741
|
+
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
1742
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1743
|
+
pumpingAmounts?: {
|
|
1744
|
+
unit: "ml" | "oz";
|
|
1745
|
+
left?: number | null | undefined;
|
|
1746
|
+
right?: number | null | undefined;
|
|
1747
|
+
} | null | undefined;
|
|
1748
|
+
pumpingSession?: {
|
|
1749
|
+
schemaVersion: 1;
|
|
1750
|
+
revision: number;
|
|
1751
|
+
sides: {
|
|
1752
|
+
left?: {
|
|
1753
|
+
segments: {
|
|
1754
|
+
start: string;
|
|
1755
|
+
end: string | null;
|
|
1756
|
+
}[];
|
|
1757
|
+
stoppedAt: string | null;
|
|
1758
|
+
} | undefined;
|
|
1759
|
+
right?: {
|
|
1760
|
+
segments: {
|
|
1761
|
+
start: string;
|
|
1762
|
+
end: string | null;
|
|
1763
|
+
}[];
|
|
1764
|
+
stoppedAt: string | null;
|
|
1765
|
+
} | undefined;
|
|
1766
|
+
};
|
|
1767
|
+
} | null | undefined;
|
|
1768
|
+
medicationDose?: string | null | undefined;
|
|
1769
|
+
solidsFoods?: string[] | null | undefined;
|
|
1770
|
+
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1771
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1772
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1773
|
+
nappyContext?: {
|
|
1774
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1775
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1776
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1777
|
+
} | null | undefined;
|
|
1778
|
+
sleepMethods?: {
|
|
1779
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1780
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1781
|
+
} | null | undefined;
|
|
1782
|
+
sleepContext?: {
|
|
1783
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
1784
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
1785
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
1786
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
1787
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1788
|
+
wake?: {
|
|
1789
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1790
|
+
} | undefined;
|
|
1791
|
+
} | null | undefined;
|
|
1792
|
+
sleepNightId?: string | null | undefined;
|
|
1793
|
+
breastfeedSession?: {
|
|
1794
|
+
schemaVersion: 1;
|
|
1795
|
+
segments: {
|
|
1796
|
+
start: string;
|
|
1797
|
+
end: string;
|
|
1798
|
+
side: "left" | "right";
|
|
1799
|
+
}[];
|
|
1800
|
+
} | {
|
|
1801
|
+
schemaVersion: 2;
|
|
1802
|
+
phases: ({
|
|
1803
|
+
kind: "feeding";
|
|
1804
|
+
start: string;
|
|
1805
|
+
end: string;
|
|
1806
|
+
side: "left" | "right";
|
|
1807
|
+
} | {
|
|
1808
|
+
kind: "pause";
|
|
1809
|
+
start: string;
|
|
1810
|
+
end: string;
|
|
1811
|
+
})[];
|
|
1812
|
+
} | null | undefined;
|
|
1813
|
+
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1814
|
+
addedByCoach?: boolean | undefined;
|
|
1815
|
+
editedByCoach?: boolean | undefined;
|
|
1816
|
+
}>, {
|
|
1817
|
+
id: string;
|
|
1818
|
+
createdAt: string;
|
|
1819
|
+
updatedAt: string;
|
|
1820
|
+
familyUserId: string;
|
|
1821
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
978
1822
|
occurredAt: string;
|
|
979
1823
|
babyId: string;
|
|
980
1824
|
details: {
|
|
@@ -991,10 +1835,156 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
991
1835
|
} | {
|
|
992
1836
|
type: "day" | "night";
|
|
993
1837
|
date: string;
|
|
1838
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
994
1839
|
start: string;
|
|
995
1840
|
end: string;
|
|
996
1841
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
1842
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
1843
|
+
} | {
|
|
1844
|
+
type: ("dirty" | "wet")[];
|
|
1845
|
+
date: string;
|
|
1846
|
+
time: string;
|
|
1847
|
+
imageURL?: string | null | undefined;
|
|
1848
|
+
} | {
|
|
1849
|
+
date: string;
|
|
1850
|
+
unit: "ml" | "oz";
|
|
1851
|
+
start: string;
|
|
1852
|
+
end: string;
|
|
1853
|
+
side: "left" | "right";
|
|
1854
|
+
amount: number;
|
|
1855
|
+
} | {
|
|
1856
|
+
date: string;
|
|
1857
|
+
time: string;
|
|
1858
|
+
medicationName: string;
|
|
1859
|
+
} | {
|
|
1860
|
+
date: string;
|
|
1861
|
+
time: string;
|
|
1862
|
+
allergicReaction: boolean;
|
|
1863
|
+
allergicReactionNote?: string | null | undefined;
|
|
1864
|
+
accidentalExposure?: boolean | undefined;
|
|
1865
|
+
accidentalExposureNote?: string | null | undefined;
|
|
1866
|
+
ladderId?: string | null | undefined;
|
|
1867
|
+
ladderStageId?: string | null | undefined;
|
|
1868
|
+
};
|
|
1869
|
+
createdByUserId: string;
|
|
1870
|
+
updatedByUserId: string;
|
|
1871
|
+
timeZone?: string | null | undefined;
|
|
1872
|
+
importContext?: {
|
|
1873
|
+
breastfeed?: {
|
|
1874
|
+
totalMinutes: number | null;
|
|
1875
|
+
leftMinutes: number | null;
|
|
1876
|
+
rightMinutes: number | null;
|
|
1877
|
+
} | undefined;
|
|
1878
|
+
sleep?: {
|
|
1879
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
1880
|
+
} | undefined;
|
|
1881
|
+
} | null | undefined;
|
|
1882
|
+
importSource?: "huckleberry" | null | undefined;
|
|
1883
|
+
importBatchId?: string | null | undefined;
|
|
1884
|
+
localDate?: string | null | undefined;
|
|
1885
|
+
note?: string | null | undefined;
|
|
1886
|
+
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
1887
|
+
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
1888
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
1889
|
+
pumpingAmounts?: {
|
|
1890
|
+
unit: "ml" | "oz";
|
|
1891
|
+
left?: number | null | undefined;
|
|
1892
|
+
right?: number | null | undefined;
|
|
1893
|
+
} | null | undefined;
|
|
1894
|
+
pumpingSession?: {
|
|
1895
|
+
schemaVersion: 1;
|
|
1896
|
+
revision: number;
|
|
1897
|
+
sides: {
|
|
1898
|
+
left?: {
|
|
1899
|
+
segments: {
|
|
1900
|
+
start: string;
|
|
1901
|
+
end: string | null;
|
|
1902
|
+
}[];
|
|
1903
|
+
stoppedAt: string | null;
|
|
1904
|
+
} | undefined;
|
|
1905
|
+
right?: {
|
|
1906
|
+
segments: {
|
|
1907
|
+
start: string;
|
|
1908
|
+
end: string | null;
|
|
1909
|
+
}[];
|
|
1910
|
+
stoppedAt: string | null;
|
|
1911
|
+
} | undefined;
|
|
1912
|
+
};
|
|
1913
|
+
} | null | undefined;
|
|
1914
|
+
medicationDose?: string | null | undefined;
|
|
1915
|
+
solidsFoods?: string[] | null | undefined;
|
|
1916
|
+
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
1917
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
1918
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
1919
|
+
nappyContext?: {
|
|
1920
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
1921
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
1922
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
1923
|
+
} | null | undefined;
|
|
1924
|
+
sleepMethods?: {
|
|
1925
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1926
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
1927
|
+
} | null | undefined;
|
|
1928
|
+
sleepContext?: {
|
|
1929
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
1930
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
1931
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
1932
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
1933
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
1934
|
+
wake?: {
|
|
1935
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
1936
|
+
} | undefined;
|
|
1937
|
+
} | null | undefined;
|
|
1938
|
+
sleepNightId?: string | null | undefined;
|
|
1939
|
+
breastfeedSession?: {
|
|
1940
|
+
schemaVersion: 1;
|
|
1941
|
+
segments: {
|
|
1942
|
+
start: string;
|
|
1943
|
+
end: string;
|
|
1944
|
+
side: "left" | "right";
|
|
1945
|
+
}[];
|
|
1946
|
+
} | {
|
|
1947
|
+
schemaVersion: 2;
|
|
1948
|
+
phases: ({
|
|
1949
|
+
kind: "feeding";
|
|
1950
|
+
start: string;
|
|
1951
|
+
end: string;
|
|
1952
|
+
side: "left" | "right";
|
|
1953
|
+
} | {
|
|
1954
|
+
kind: "pause";
|
|
1955
|
+
start: string;
|
|
1956
|
+
end: string;
|
|
1957
|
+
})[];
|
|
1958
|
+
} | null | undefined;
|
|
1959
|
+
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
1960
|
+
addedByCoach?: boolean | undefined;
|
|
1961
|
+
editedByCoach?: boolean | undefined;
|
|
1962
|
+
}, {
|
|
1963
|
+
id: string;
|
|
1964
|
+
createdAt: string;
|
|
1965
|
+
updatedAt: string;
|
|
1966
|
+
familyUserId: string;
|
|
1967
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
1968
|
+
occurredAt: string;
|
|
1969
|
+
babyId: string;
|
|
1970
|
+
details: {
|
|
1971
|
+
date: string;
|
|
1972
|
+
start: string;
|
|
1973
|
+
end: string;
|
|
1974
|
+
side: "left" | "right";
|
|
1975
|
+
} | {
|
|
1976
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
1977
|
+
date: string;
|
|
1978
|
+
unit: "ml" | "oz";
|
|
1979
|
+
time: string;
|
|
1980
|
+
amount: number;
|
|
1981
|
+
} | {
|
|
1982
|
+
type: "day" | "night";
|
|
1983
|
+
date: string;
|
|
997
1984
|
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1985
|
+
start: string;
|
|
1986
|
+
end: string;
|
|
1987
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
998
1988
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
999
1989
|
} | {
|
|
1000
1990
|
type: ("dirty" | "wet")[];
|
|
@@ -1025,21 +2015,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1025
2015
|
createdByUserId: string;
|
|
1026
2016
|
updatedByUserId: string;
|
|
1027
2017
|
timeZone?: string | null | undefined;
|
|
2018
|
+
importContext?: {
|
|
2019
|
+
breastfeed?: {
|
|
2020
|
+
totalMinutes: number | null;
|
|
2021
|
+
leftMinutes: number | null;
|
|
2022
|
+
rightMinutes: number | null;
|
|
2023
|
+
} | undefined;
|
|
2024
|
+
sleep?: {
|
|
2025
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
} | null | undefined;
|
|
2028
|
+
importSource?: "huckleberry" | null | undefined;
|
|
2029
|
+
importBatchId?: string | null | undefined;
|
|
1028
2030
|
localDate?: string | null | undefined;
|
|
1029
2031
|
note?: string | null | undefined;
|
|
1030
2032
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
1031
2033
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
1032
2034
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
2035
|
+
pumpingAmounts?: {
|
|
2036
|
+
unit: "ml" | "oz";
|
|
2037
|
+
left?: number | null | undefined;
|
|
2038
|
+
right?: number | null | undefined;
|
|
2039
|
+
} | null | undefined;
|
|
2040
|
+
pumpingSession?: {
|
|
2041
|
+
schemaVersion: 1;
|
|
2042
|
+
revision: number;
|
|
2043
|
+
sides: {
|
|
2044
|
+
left?: {
|
|
2045
|
+
segments: {
|
|
2046
|
+
start: string;
|
|
2047
|
+
end: string | null;
|
|
2048
|
+
}[];
|
|
2049
|
+
stoppedAt: string | null;
|
|
2050
|
+
} | undefined;
|
|
2051
|
+
right?: {
|
|
2052
|
+
segments: {
|
|
2053
|
+
start: string;
|
|
2054
|
+
end: string | null;
|
|
2055
|
+
}[];
|
|
2056
|
+
stoppedAt: string | null;
|
|
2057
|
+
} | undefined;
|
|
2058
|
+
};
|
|
2059
|
+
} | null | undefined;
|
|
1033
2060
|
medicationDose?: string | null | undefined;
|
|
1034
2061
|
solidsFoods?: string[] | null | undefined;
|
|
1035
2062
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
2063
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
2064
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
2065
|
+
nappyContext?: {
|
|
2066
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
2067
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2068
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2069
|
+
} | null | undefined;
|
|
2070
|
+
sleepMethods?: {
|
|
2071
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2072
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2073
|
+
} | null | undefined;
|
|
1036
2074
|
sleepContext?: {
|
|
1037
2075
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
1038
2076
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
1039
2077
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
1040
2078
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
1041
2079
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
2080
|
+
wake?: {
|
|
2081
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2082
|
+
} | undefined;
|
|
1042
2083
|
} | null | undefined;
|
|
2084
|
+
sleepNightId?: string | null | undefined;
|
|
1043
2085
|
breastfeedSession?: {
|
|
1044
2086
|
schemaVersion: 1;
|
|
1045
2087
|
segments: {
|
|
@@ -1061,6 +2103,8 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1061
2103
|
})[];
|
|
1062
2104
|
} | null | undefined;
|
|
1063
2105
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
2106
|
+
addedByCoach?: boolean | undefined;
|
|
2107
|
+
editedByCoach?: boolean | undefined;
|
|
1064
2108
|
}>, "many">;
|
|
1065
2109
|
}, "strip", z.ZodTypeAny, {
|
|
1066
2110
|
activities: {
|
|
@@ -1068,7 +2112,7 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1068
2112
|
createdAt: string;
|
|
1069
2113
|
updatedAt: string;
|
|
1070
2114
|
familyUserId: string;
|
|
1071
|
-
activityType: "
|
|
2115
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
1072
2116
|
occurredAt: string;
|
|
1073
2117
|
babyId: string;
|
|
1074
2118
|
details: {
|
|
@@ -1085,10 +2129,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1085
2129
|
} | {
|
|
1086
2130
|
type: "day" | "night";
|
|
1087
2131
|
date: string;
|
|
2132
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1088
2133
|
start: string;
|
|
1089
2134
|
end: string;
|
|
1090
2135
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
1091
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1092
2136
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
1093
2137
|
} | {
|
|
1094
2138
|
type: ("dirty" | "wet")[];
|
|
@@ -1119,21 +2163,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1119
2163
|
createdByUserId: string;
|
|
1120
2164
|
updatedByUserId: string;
|
|
1121
2165
|
timeZone?: string | null | undefined;
|
|
2166
|
+
importContext?: {
|
|
2167
|
+
breastfeed?: {
|
|
2168
|
+
totalMinutes: number | null;
|
|
2169
|
+
leftMinutes: number | null;
|
|
2170
|
+
rightMinutes: number | null;
|
|
2171
|
+
} | undefined;
|
|
2172
|
+
sleep?: {
|
|
2173
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
2174
|
+
} | undefined;
|
|
2175
|
+
} | null | undefined;
|
|
2176
|
+
importSource?: "huckleberry" | null | undefined;
|
|
2177
|
+
importBatchId?: string | null | undefined;
|
|
1122
2178
|
localDate?: string | null | undefined;
|
|
1123
2179
|
note?: string | null | undefined;
|
|
1124
2180
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
1125
2181
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
1126
2182
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
2183
|
+
pumpingAmounts?: {
|
|
2184
|
+
unit: "ml" | "oz";
|
|
2185
|
+
left?: number | null | undefined;
|
|
2186
|
+
right?: number | null | undefined;
|
|
2187
|
+
} | null | undefined;
|
|
2188
|
+
pumpingSession?: {
|
|
2189
|
+
schemaVersion: 1;
|
|
2190
|
+
revision: number;
|
|
2191
|
+
sides: {
|
|
2192
|
+
left?: {
|
|
2193
|
+
segments: {
|
|
2194
|
+
start: string;
|
|
2195
|
+
end: string | null;
|
|
2196
|
+
}[];
|
|
2197
|
+
stoppedAt: string | null;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
right?: {
|
|
2200
|
+
segments: {
|
|
2201
|
+
start: string;
|
|
2202
|
+
end: string | null;
|
|
2203
|
+
}[];
|
|
2204
|
+
stoppedAt: string | null;
|
|
2205
|
+
} | undefined;
|
|
2206
|
+
};
|
|
2207
|
+
} | null | undefined;
|
|
1127
2208
|
medicationDose?: string | null | undefined;
|
|
1128
2209
|
solidsFoods?: string[] | null | undefined;
|
|
1129
2210
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
2211
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
2212
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
2213
|
+
nappyContext?: {
|
|
2214
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
2215
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2216
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2217
|
+
} | null | undefined;
|
|
2218
|
+
sleepMethods?: {
|
|
2219
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2220
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2221
|
+
} | null | undefined;
|
|
1130
2222
|
sleepContext?: {
|
|
1131
2223
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
1132
2224
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
1133
2225
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
1134
2226
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
1135
2227
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
2228
|
+
wake?: {
|
|
2229
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2230
|
+
} | undefined;
|
|
1136
2231
|
} | null | undefined;
|
|
2232
|
+
sleepNightId?: string | null | undefined;
|
|
1137
2233
|
breastfeedSession?: {
|
|
1138
2234
|
schemaVersion: 1;
|
|
1139
2235
|
segments: {
|
|
@@ -1155,6 +2251,8 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1155
2251
|
})[];
|
|
1156
2252
|
} | null | undefined;
|
|
1157
2253
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
2254
|
+
addedByCoach?: boolean | undefined;
|
|
2255
|
+
editedByCoach?: boolean | undefined;
|
|
1158
2256
|
}[];
|
|
1159
2257
|
}, {
|
|
1160
2258
|
activities: {
|
|
@@ -1162,7 +2260,7 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1162
2260
|
createdAt: string;
|
|
1163
2261
|
updatedAt: string;
|
|
1164
2262
|
familyUserId: string;
|
|
1165
|
-
activityType: "
|
|
2263
|
+
activityType: "breastfeed" | "sleep" | "pumping" | "bottles" | "nappies" | "medication" | "solids";
|
|
1166
2264
|
occurredAt: string;
|
|
1167
2265
|
babyId: string;
|
|
1168
2266
|
details: {
|
|
@@ -1179,10 +2277,10 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1179
2277
|
} | {
|
|
1180
2278
|
type: "day" | "night";
|
|
1181
2279
|
date: string;
|
|
2280
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1182
2281
|
start: string;
|
|
1183
2282
|
end: string;
|
|
1184
2283
|
mood: "content" | "restless" | "unsettled" | "wired";
|
|
1185
|
-
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
1186
2284
|
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
1187
2285
|
} | {
|
|
1188
2286
|
type: ("dirty" | "wet")[];
|
|
@@ -1213,21 +2311,73 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1213
2311
|
createdByUserId: string;
|
|
1214
2312
|
updatedByUserId: string;
|
|
1215
2313
|
timeZone?: string | null | undefined;
|
|
2314
|
+
importContext?: {
|
|
2315
|
+
breastfeed?: {
|
|
2316
|
+
totalMinutes: number | null;
|
|
2317
|
+
leftMinutes: number | null;
|
|
2318
|
+
rightMinutes: number | null;
|
|
2319
|
+
} | undefined;
|
|
2320
|
+
sleep?: {
|
|
2321
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | null;
|
|
2322
|
+
} | undefined;
|
|
2323
|
+
} | null | undefined;
|
|
2324
|
+
importSource?: "huckleberry" | null | undefined;
|
|
2325
|
+
importBatchId?: string | null | undefined;
|
|
1216
2326
|
localDate?: string | null | undefined;
|
|
1217
2327
|
note?: string | null | undefined;
|
|
1218
2328
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
1219
2329
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
1220
2330
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
2331
|
+
pumpingAmounts?: {
|
|
2332
|
+
unit: "ml" | "oz";
|
|
2333
|
+
left?: number | null | undefined;
|
|
2334
|
+
right?: number | null | undefined;
|
|
2335
|
+
} | null | undefined;
|
|
2336
|
+
pumpingSession?: {
|
|
2337
|
+
schemaVersion: 1;
|
|
2338
|
+
revision: number;
|
|
2339
|
+
sides: {
|
|
2340
|
+
left?: {
|
|
2341
|
+
segments: {
|
|
2342
|
+
start: string;
|
|
2343
|
+
end: string | null;
|
|
2344
|
+
}[];
|
|
2345
|
+
stoppedAt: string | null;
|
|
2346
|
+
} | undefined;
|
|
2347
|
+
right?: {
|
|
2348
|
+
segments: {
|
|
2349
|
+
start: string;
|
|
2350
|
+
end: string | null;
|
|
2351
|
+
}[];
|
|
2352
|
+
stoppedAt: string | null;
|
|
2353
|
+
} | undefined;
|
|
2354
|
+
};
|
|
2355
|
+
} | null | undefined;
|
|
1221
2356
|
medicationDose?: string | null | undefined;
|
|
1222
2357
|
solidsFoods?: string[] | null | undefined;
|
|
1223
2358
|
solidsAcceptance?: "loved" | "liked" | "not-keen-yet" | null | undefined;
|
|
2359
|
+
solidsMeal?: "breakfast" | "lunch" | "dinner" | "snack" | null | undefined;
|
|
2360
|
+
solidsResponse?: "loved" | "liked" | "not-keen-yet" | "not-sure" | "refused" | null | undefined;
|
|
2361
|
+
nappyContext?: {
|
|
2362
|
+
amount?: "smear" | "palm-sized" | "full-nappy" | "blowout" | null | undefined;
|
|
2363
|
+
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2364
|
+
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2365
|
+
} | null | undefined;
|
|
2366
|
+
sleepMethods?: {
|
|
2367
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2368
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2369
|
+
} | null | undefined;
|
|
1224
2370
|
sleepContext?: {
|
|
1225
2371
|
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
1226
2372
|
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
1227
2373
|
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
1228
2374
|
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
1229
2375
|
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
2376
|
+
wake?: {
|
|
2377
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2378
|
+
} | undefined;
|
|
1230
2379
|
} | null | undefined;
|
|
2380
|
+
sleepNightId?: string | null | undefined;
|
|
1231
2381
|
breastfeedSession?: {
|
|
1232
2382
|
schemaVersion: 1;
|
|
1233
2383
|
segments: {
|
|
@@ -1249,7 +2399,231 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
|
|
|
1249
2399
|
})[];
|
|
1250
2400
|
} | null | undefined;
|
|
1251
2401
|
allergenIds?: ("milk" | "egg" | "soya" | "peanut" | "almond" | "brazil_nut" | "cashew" | "hazelnut" | "macadamia" | "pecan" | "pistachio" | "walnut" | "wheat" | "barley" | "rye" | "oats" | "sesame" | "fish" | "crustacean" | "mollusc" | "celery" | "mustard" | "lupin" | "sulphites" | "other_food")[] | undefined;
|
|
2402
|
+
addedByCoach?: boolean | undefined;
|
|
2403
|
+
editedByCoach?: boolean | undefined;
|
|
1252
2404
|
}[];
|
|
1253
2405
|
}>;
|
|
1254
2406
|
export type AnalysisActivitiesQuery = z.infer<typeof analysisActivitiesQuerySchema>;
|
|
1255
2407
|
export type AnalysisActivitiesResponse = z.infer<typeof analysisActivitiesResponseSchema>;
|
|
2408
|
+
/** Self-family only. The server owns the seven-day window. */
|
|
2409
|
+
export declare const analysisTeaserQuerySchema: z.ZodObject<{
|
|
2410
|
+
babyId: z.ZodString;
|
|
2411
|
+
}, "strict", z.ZodTypeAny, {
|
|
2412
|
+
babyId: string;
|
|
2413
|
+
}, {
|
|
2414
|
+
babyId: string;
|
|
2415
|
+
}>;
|
|
2416
|
+
export declare const analysisTeaserResponseSchema: z.ZodObject<{
|
|
2417
|
+
entryCount: z.ZodNumber;
|
|
2418
|
+
averageSleepMinutes: z.ZodNullable<z.ZodNumber>;
|
|
2419
|
+
dayLevels: z.ZodArray<z.ZodNumber, "many">;
|
|
2420
|
+
}, "strict", z.ZodTypeAny, {
|
|
2421
|
+
entryCount: number;
|
|
2422
|
+
averageSleepMinutes: number | null;
|
|
2423
|
+
dayLevels: number[];
|
|
2424
|
+
}, {
|
|
2425
|
+
entryCount: number;
|
|
2426
|
+
averageSleepMinutes: number | null;
|
|
2427
|
+
dayLevels: number[];
|
|
2428
|
+
}>;
|
|
2429
|
+
export type AnalysisTeaserQuery = z.infer<typeof analysisTeaserQuerySchema>;
|
|
2430
|
+
export type AnalysisTeaserResponse = z.infer<typeof analysisTeaserResponseSchema>;
|
|
2431
|
+
/** Explicit opt-in: released strict teaser clients retain their exact default response. */
|
|
2432
|
+
export declare const analysisCompletedDayTeaserQuerySchema: z.ZodObject<{
|
|
2433
|
+
babyId: z.ZodString;
|
|
2434
|
+
basis: z.ZodLiteral<"completed-days">;
|
|
2435
|
+
}, "strict", z.ZodTypeAny, {
|
|
2436
|
+
babyId: string;
|
|
2437
|
+
basis: "completed-days";
|
|
2438
|
+
}, {
|
|
2439
|
+
babyId: string;
|
|
2440
|
+
basis: "completed-days";
|
|
2441
|
+
}>;
|
|
2442
|
+
export declare const analysisCompletedDayTeaserResponseSchema: z.ZodObject<Omit<{
|
|
2443
|
+
entryCount: z.ZodNumber;
|
|
2444
|
+
averageSleepMinutes: z.ZodNullable<z.ZodNumber>;
|
|
2445
|
+
dayLevels: z.ZodArray<z.ZodNumber, "many">;
|
|
2446
|
+
}, "averageSleepMinutes"> & {
|
|
2447
|
+
basis: z.ZodLiteral<"completed-days">;
|
|
2448
|
+
sleep: z.ZodObject<Pick<{
|
|
2449
|
+
modelVersion: z.ZodLiteral<"wake-to-wake-v1">;
|
|
2450
|
+
familyUserId: z.ZodString;
|
|
2451
|
+
babyId: z.ZodString;
|
|
2452
|
+
sourceRevision: z.ZodString;
|
|
2453
|
+
asOf: z.ZodString;
|
|
2454
|
+
recordedTimeZone: z.ZodNullable<z.ZodString>;
|
|
2455
|
+
openingDates: z.ZodEffects<z.ZodObject<{
|
|
2456
|
+
since: z.ZodEffects<z.ZodString, string, string>;
|
|
2457
|
+
until: z.ZodEffects<z.ZodString, string, string>;
|
|
2458
|
+
}, "strict", z.ZodTypeAny, {
|
|
2459
|
+
since: string;
|
|
2460
|
+
until: string;
|
|
2461
|
+
}, {
|
|
2462
|
+
since: string;
|
|
2463
|
+
until: string;
|
|
2464
|
+
}>, {
|
|
2465
|
+
since: string;
|
|
2466
|
+
until: string;
|
|
2467
|
+
}, {
|
|
2468
|
+
since: string;
|
|
2469
|
+
until: string;
|
|
2470
|
+
}>;
|
|
2471
|
+
samples: z.ZodArray<z.ZodObject<{
|
|
2472
|
+
date: z.ZodEffects<z.ZodString, string, string>;
|
|
2473
|
+
openingAt: z.ZodString;
|
|
2474
|
+
closingAt: z.ZodString;
|
|
2475
|
+
elapsedMs: z.ZodNumber;
|
|
2476
|
+
napMs: z.ZodNumber;
|
|
2477
|
+
napCount: z.ZodNumber;
|
|
2478
|
+
nightMs: z.ZodNumber;
|
|
2479
|
+
totalSleepMs: z.ZodNumber;
|
|
2480
|
+
activityIds: z.ZodArray<z.ZodString, "many">;
|
|
2481
|
+
}, "strict", z.ZodTypeAny, {
|
|
2482
|
+
date: string;
|
|
2483
|
+
openingAt: string;
|
|
2484
|
+
closingAt: string;
|
|
2485
|
+
elapsedMs: number;
|
|
2486
|
+
napMs: number;
|
|
2487
|
+
napCount: number;
|
|
2488
|
+
nightMs: number;
|
|
2489
|
+
totalSleepMs: number;
|
|
2490
|
+
activityIds: string[];
|
|
2491
|
+
}, {
|
|
2492
|
+
date: string;
|
|
2493
|
+
openingAt: string;
|
|
2494
|
+
closingAt: string;
|
|
2495
|
+
elapsedMs: number;
|
|
2496
|
+
napMs: number;
|
|
2497
|
+
napCount: number;
|
|
2498
|
+
nightMs: number;
|
|
2499
|
+
totalSleepMs: number;
|
|
2500
|
+
activityIds: string[];
|
|
2501
|
+
}>, "many">;
|
|
2502
|
+
excluded: z.ZodArray<z.ZodObject<{
|
|
2503
|
+
date: z.ZodEffects<z.ZodString, string, string>;
|
|
2504
|
+
reason: z.ZodEnum<["today-or-future", "life-tag"]>;
|
|
2505
|
+
}, "strict", z.ZodTypeAny, {
|
|
2506
|
+
date: string;
|
|
2507
|
+
reason: "life-tag" | "today-or-future";
|
|
2508
|
+
}, {
|
|
2509
|
+
date: string;
|
|
2510
|
+
reason: "life-tag" | "today-or-future";
|
|
2511
|
+
}>, "many">;
|
|
2512
|
+
unknown: z.ZodArray<z.ZodObject<{
|
|
2513
|
+
date: z.ZodEffects<z.ZodString, string, string>;
|
|
2514
|
+
reasons: z.ZodArray<z.ZodEnum<["unknown-recorded-calendar", "incompatible-recorded-calendar", "boundary-coverage", "conflicting-boundaries", "missing-opening-boundary", "missing-closing-boundary", "incomplete-period", "interval-coverage", "conflicting-intervals", "invalid-interval", "overlapping-intervals", "inconsistent-interval-coverage", "unknown-exclusions"]>, "many">;
|
|
2515
|
+
}, "strict", z.ZodTypeAny, {
|
|
2516
|
+
date: string;
|
|
2517
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2518
|
+
}, {
|
|
2519
|
+
date: string;
|
|
2520
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2521
|
+
}>, "many">;
|
|
2522
|
+
sampleCount: z.ZodNumber;
|
|
2523
|
+
excludedCount: z.ZodNumber;
|
|
2524
|
+
unknownCount: z.ZodNumber;
|
|
2525
|
+
}, "unknown" | "asOf" | "recordedTimeZone" | "modelVersion" | "sourceRevision" | "openingDates" | "excluded" | "sampleCount" | "excludedCount" | "unknownCount"> & {
|
|
2526
|
+
totalSleepMs: z.ZodNumber;
|
|
2527
|
+
averageSleepMs: z.ZodNullable<z.ZodNumber>;
|
|
2528
|
+
}, "strict", z.ZodTypeAny, {
|
|
2529
|
+
unknown: {
|
|
2530
|
+
date: string;
|
|
2531
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2532
|
+
}[];
|
|
2533
|
+
asOf: string;
|
|
2534
|
+
recordedTimeZone: string | null;
|
|
2535
|
+
modelVersion: "wake-to-wake-v1";
|
|
2536
|
+
sourceRevision: string;
|
|
2537
|
+
openingDates: {
|
|
2538
|
+
since: string;
|
|
2539
|
+
until: string;
|
|
2540
|
+
};
|
|
2541
|
+
totalSleepMs: number;
|
|
2542
|
+
excluded: {
|
|
2543
|
+
date: string;
|
|
2544
|
+
reason: "life-tag" | "today-or-future";
|
|
2545
|
+
}[];
|
|
2546
|
+
sampleCount: number;
|
|
2547
|
+
excludedCount: number;
|
|
2548
|
+
unknownCount: number;
|
|
2549
|
+
averageSleepMs: number | null;
|
|
2550
|
+
}, {
|
|
2551
|
+
unknown: {
|
|
2552
|
+
date: string;
|
|
2553
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2554
|
+
}[];
|
|
2555
|
+
asOf: string;
|
|
2556
|
+
recordedTimeZone: string | null;
|
|
2557
|
+
modelVersion: "wake-to-wake-v1";
|
|
2558
|
+
sourceRevision: string;
|
|
2559
|
+
openingDates: {
|
|
2560
|
+
since: string;
|
|
2561
|
+
until: string;
|
|
2562
|
+
};
|
|
2563
|
+
totalSleepMs: number;
|
|
2564
|
+
excluded: {
|
|
2565
|
+
date: string;
|
|
2566
|
+
reason: "life-tag" | "today-or-future";
|
|
2567
|
+
}[];
|
|
2568
|
+
sampleCount: number;
|
|
2569
|
+
excludedCount: number;
|
|
2570
|
+
unknownCount: number;
|
|
2571
|
+
averageSleepMs: number | null;
|
|
2572
|
+
}>;
|
|
2573
|
+
}, "strict", z.ZodTypeAny, {
|
|
2574
|
+
sleep: {
|
|
2575
|
+
unknown: {
|
|
2576
|
+
date: string;
|
|
2577
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2578
|
+
}[];
|
|
2579
|
+
asOf: string;
|
|
2580
|
+
recordedTimeZone: string | null;
|
|
2581
|
+
modelVersion: "wake-to-wake-v1";
|
|
2582
|
+
sourceRevision: string;
|
|
2583
|
+
openingDates: {
|
|
2584
|
+
since: string;
|
|
2585
|
+
until: string;
|
|
2586
|
+
};
|
|
2587
|
+
totalSleepMs: number;
|
|
2588
|
+
excluded: {
|
|
2589
|
+
date: string;
|
|
2590
|
+
reason: "life-tag" | "today-or-future";
|
|
2591
|
+
}[];
|
|
2592
|
+
sampleCount: number;
|
|
2593
|
+
excludedCount: number;
|
|
2594
|
+
unknownCount: number;
|
|
2595
|
+
averageSleepMs: number | null;
|
|
2596
|
+
};
|
|
2597
|
+
entryCount: number;
|
|
2598
|
+
dayLevels: number[];
|
|
2599
|
+
basis: "completed-days";
|
|
2600
|
+
}, {
|
|
2601
|
+
sleep: {
|
|
2602
|
+
unknown: {
|
|
2603
|
+
date: string;
|
|
2604
|
+
reasons: ("missing-closing-boundary" | "unknown-recorded-calendar" | "incompatible-recorded-calendar" | "boundary-coverage" | "conflicting-boundaries" | "missing-opening-boundary" | "incomplete-period" | "interval-coverage" | "conflicting-intervals" | "invalid-interval" | "overlapping-intervals" | "inconsistent-interval-coverage" | "unknown-exclusions")[];
|
|
2605
|
+
}[];
|
|
2606
|
+
asOf: string;
|
|
2607
|
+
recordedTimeZone: string | null;
|
|
2608
|
+
modelVersion: "wake-to-wake-v1";
|
|
2609
|
+
sourceRevision: string;
|
|
2610
|
+
openingDates: {
|
|
2611
|
+
since: string;
|
|
2612
|
+
until: string;
|
|
2613
|
+
};
|
|
2614
|
+
totalSleepMs: number;
|
|
2615
|
+
excluded: {
|
|
2616
|
+
date: string;
|
|
2617
|
+
reason: "life-tag" | "today-or-future";
|
|
2618
|
+
}[];
|
|
2619
|
+
sampleCount: number;
|
|
2620
|
+
excludedCount: number;
|
|
2621
|
+
unknownCount: number;
|
|
2622
|
+
averageSleepMs: number | null;
|
|
2623
|
+
};
|
|
2624
|
+
entryCount: number;
|
|
2625
|
+
dayLevels: number[];
|
|
2626
|
+
basis: "completed-days";
|
|
2627
|
+
}>;
|
|
2628
|
+
export type AnalysisCompletedDayTeaserQuery = z.infer<typeof analysisCompletedDayTeaserQuerySchema>;
|
|
2629
|
+
export type AnalysisCompletedDayTeaserResponse = z.infer<typeof analysisCompletedDayTeaserResponseSchema>;
|