@nikthegeek/dreamsforlittles-shared 0.18.6 → 0.18.7
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/analysis.d.ts +39 -0
- package/dist/auth.d.ts +18 -0
- package/dist/auth.js +2 -0
- package/dist/auth.js.map +1 -1
- package/dist/coach.d.ts +204 -0
- package/dist/enums.d.ts +1 -1
- package/dist/enums.js +2 -1
- package/dist/enums.js.map +1 -1
- package/dist/family.d.ts +540 -0
- package/dist/family.js +20 -2
- package/dist/family.js.map +1 -1
- package/dist/family.test.js +12 -0
- package/dist/family.test.js.map +1 -1
- package/dist/home-activity-context.d.ts +90 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/logged-sleep-averages.d.ts +22 -0
- package/dist/logged-sleep-averages.js +198 -0
- package/dist/logged-sleep-averages.js.map +1 -0
- package/dist/native-timer-state.d.ts +74 -0
- package/dist/sleep-average-context.d.ts +8 -0
- package/dist/sleep-average-context.js +2 -1
- package/dist/sleep-average-context.js.map +1 -1
- package/dist/sleep-average-context.test.js +12 -0
- package/dist/sleep-average-context.test.js.map +1 -1
- package/dist/sleep-awake-state.d.ts +3 -0
- package/dist/sleep-awake-state.js +1 -1
- package/dist/sleep-awake-state.js.map +1 -1
- package/dist/sleep-awake-state.test.js +12 -0
- package/dist/sleep-awake-state.test.js.map +1 -1
- package/dist/sleep-completed-night.d.ts +2826 -33
- package/dist/sleep-completed-night.js +30 -4
- package/dist/sleep-completed-night.js.map +1 -1
- package/dist/sleep-nap.d.ts +10 -0
- package/dist/sleep-nap.js +12 -0
- package/dist/sleep-nap.js.map +1 -0
- package/dist/sleep-nap.test.d.ts +1 -0
- package/dist/sleep-nap.test.js +18 -0
- package/dist/sleep-nap.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -1676,6 +1676,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
1676
1676
|
reminderSentAt: string | null;
|
|
1677
1677
|
}>>;
|
|
1678
1678
|
activity: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1679
|
+
wakeFeedIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1679
1680
|
importBatchId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1680
1681
|
importSource: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"huckleberry">>>;
|
|
1681
1682
|
importContext: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -2130,6 +2131,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2130
2131
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2131
2132
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2132
2133
|
}>>>;
|
|
2134
|
+
nappyTextures: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["watery", "seedy", "soft", "formed", "pellets", "mucusy"]>, "many">, ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[], ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[]>>>;
|
|
2133
2135
|
sleepMethods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2134
2136
|
fallAsleep: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "motion", "touch", "held"]>, "many">, ("fed" | "motion" | "touch" | "held")[], ("fed" | "motion" | "touch" | "held")[]>>>;
|
|
2135
2137
|
backToSleep: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "motion", "touch", "held"]>, "many">, ("fed" | "motion" | "touch" | "held")[], ("fed" | "motion" | "touch" | "held")[]>>>;
|
|
@@ -2172,6 +2174,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2172
2174
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2173
2175
|
} | undefined;
|
|
2174
2176
|
}>>>;
|
|
2177
|
+
sleepNapId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2175
2178
|
sleepNightId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2176
2179
|
breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
2177
2180
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -2375,6 +2378,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2375
2378
|
importBatchId?: string | null | undefined;
|
|
2376
2379
|
localDate?: string | null | undefined;
|
|
2377
2380
|
note?: string | null | undefined;
|
|
2381
|
+
wakeFeedIds?: string[] | undefined;
|
|
2378
2382
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
2379
2383
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
2380
2384
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -2419,6 +2423,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2419
2423
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2420
2424
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2421
2425
|
} | null | undefined;
|
|
2426
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
2422
2427
|
sleepMethods?: {
|
|
2423
2428
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2424
2429
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -2433,6 +2438,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2433
2438
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2434
2439
|
} | undefined;
|
|
2435
2440
|
} | null | undefined;
|
|
2441
|
+
sleepNapId?: string | null | undefined;
|
|
2436
2442
|
sleepNightId?: string | null | undefined;
|
|
2437
2443
|
breastfeedSession?: {
|
|
2438
2444
|
schemaVersion: 1;
|
|
@@ -2527,6 +2533,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2527
2533
|
importBatchId?: string | null | undefined;
|
|
2528
2534
|
localDate?: string | null | undefined;
|
|
2529
2535
|
note?: string | null | undefined;
|
|
2536
|
+
wakeFeedIds?: string[] | undefined;
|
|
2530
2537
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
2531
2538
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
2532
2539
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -2571,6 +2578,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2571
2578
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2572
2579
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2573
2580
|
} | null | undefined;
|
|
2581
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
2574
2582
|
sleepMethods?: {
|
|
2575
2583
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2576
2584
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -2585,6 +2593,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2585
2593
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2586
2594
|
} | undefined;
|
|
2587
2595
|
} | null | undefined;
|
|
2596
|
+
sleepNapId?: string | null | undefined;
|
|
2588
2597
|
sleepNightId?: string | null | undefined;
|
|
2589
2598
|
breastfeedSession?: {
|
|
2590
2599
|
schemaVersion: 1;
|
|
@@ -2679,6 +2688,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2679
2688
|
importBatchId?: string | null | undefined;
|
|
2680
2689
|
localDate?: string | null | undefined;
|
|
2681
2690
|
note?: string | null | undefined;
|
|
2691
|
+
wakeFeedIds?: string[] | undefined;
|
|
2682
2692
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
2683
2693
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
2684
2694
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -2723,6 +2733,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2723
2733
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2724
2734
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2725
2735
|
} | null | undefined;
|
|
2736
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
2726
2737
|
sleepMethods?: {
|
|
2727
2738
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2728
2739
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -2737,6 +2748,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2737
2748
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2738
2749
|
} | undefined;
|
|
2739
2750
|
} | null | undefined;
|
|
2751
|
+
sleepNapId?: string | null | undefined;
|
|
2740
2752
|
sleepNightId?: string | null | undefined;
|
|
2741
2753
|
breastfeedSession?: {
|
|
2742
2754
|
schemaVersion: 1;
|
|
@@ -2831,6 +2843,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2831
2843
|
importBatchId?: string | null | undefined;
|
|
2832
2844
|
localDate?: string | null | undefined;
|
|
2833
2845
|
note?: string | null | undefined;
|
|
2846
|
+
wakeFeedIds?: string[] | undefined;
|
|
2834
2847
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
2835
2848
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
2836
2849
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -2875,6 +2888,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2875
2888
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
2876
2889
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
2877
2890
|
} | null | undefined;
|
|
2891
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
2878
2892
|
sleepMethods?: {
|
|
2879
2893
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
2880
2894
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -2889,6 +2903,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2889
2903
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
2890
2904
|
} | undefined;
|
|
2891
2905
|
} | null | undefined;
|
|
2906
|
+
sleepNapId?: string | null | undefined;
|
|
2892
2907
|
sleepNightId?: string | null | undefined;
|
|
2893
2908
|
breastfeedSession?: {
|
|
2894
2909
|
schemaVersion: 1;
|
|
@@ -2983,6 +2998,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
2983
2998
|
importBatchId?: string | null | undefined;
|
|
2984
2999
|
localDate?: string | null | undefined;
|
|
2985
3000
|
note?: string | null | undefined;
|
|
3001
|
+
wakeFeedIds?: string[] | undefined;
|
|
2986
3002
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
2987
3003
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
2988
3004
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3027,6 +3043,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3027
3043
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3028
3044
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3029
3045
|
} | null | undefined;
|
|
3046
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3030
3047
|
sleepMethods?: {
|
|
3031
3048
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3032
3049
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3041,6 +3058,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3041
3058
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3042
3059
|
} | undefined;
|
|
3043
3060
|
} | null | undefined;
|
|
3061
|
+
sleepNapId?: string | null | undefined;
|
|
3044
3062
|
sleepNightId?: string | null | undefined;
|
|
3045
3063
|
breastfeedSession?: {
|
|
3046
3064
|
schemaVersion: 1;
|
|
@@ -3135,6 +3153,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3135
3153
|
importBatchId?: string | null | undefined;
|
|
3136
3154
|
localDate?: string | null | undefined;
|
|
3137
3155
|
note?: string | null | undefined;
|
|
3156
|
+
wakeFeedIds?: string[] | undefined;
|
|
3138
3157
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
3139
3158
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
3140
3159
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3179,6 +3198,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3179
3198
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3180
3199
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3181
3200
|
} | null | undefined;
|
|
3201
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3182
3202
|
sleepMethods?: {
|
|
3183
3203
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3184
3204
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3193,6 +3213,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3193
3213
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3194
3214
|
} | undefined;
|
|
3195
3215
|
} | null | undefined;
|
|
3216
|
+
sleepNapId?: string | null | undefined;
|
|
3196
3217
|
sleepNightId?: string | null | undefined;
|
|
3197
3218
|
breastfeedSession?: {
|
|
3198
3219
|
schemaVersion: 1;
|
|
@@ -3287,6 +3308,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3287
3308
|
importBatchId?: string | null | undefined;
|
|
3288
3309
|
localDate?: string | null | undefined;
|
|
3289
3310
|
note?: string | null | undefined;
|
|
3311
|
+
wakeFeedIds?: string[] | undefined;
|
|
3290
3312
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
3291
3313
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
3292
3314
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3331,6 +3353,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3331
3353
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3332
3354
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3333
3355
|
} | null | undefined;
|
|
3356
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3334
3357
|
sleepMethods?: {
|
|
3335
3358
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3336
3359
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3345,6 +3368,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3345
3368
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3346
3369
|
} | undefined;
|
|
3347
3370
|
} | null | undefined;
|
|
3371
|
+
sleepNapId?: string | null | undefined;
|
|
3348
3372
|
sleepNightId?: string | null | undefined;
|
|
3349
3373
|
breastfeedSession?: {
|
|
3350
3374
|
schemaVersion: 1;
|
|
@@ -3439,6 +3463,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3439
3463
|
importBatchId?: string | null | undefined;
|
|
3440
3464
|
localDate?: string | null | undefined;
|
|
3441
3465
|
note?: string | null | undefined;
|
|
3466
|
+
wakeFeedIds?: string[] | undefined;
|
|
3442
3467
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
3443
3468
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
3444
3469
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3483,6 +3508,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3483
3508
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3484
3509
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3485
3510
|
} | null | undefined;
|
|
3511
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3486
3512
|
sleepMethods?: {
|
|
3487
3513
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3488
3514
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3497,6 +3523,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3497
3523
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3498
3524
|
} | undefined;
|
|
3499
3525
|
} | null | undefined;
|
|
3526
|
+
sleepNapId?: string | null | undefined;
|
|
3500
3527
|
sleepNightId?: string | null | undefined;
|
|
3501
3528
|
breastfeedSession?: {
|
|
3502
3529
|
schemaVersion: 1;
|
|
@@ -3591,6 +3618,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3591
3618
|
importBatchId?: string | null | undefined;
|
|
3592
3619
|
localDate?: string | null | undefined;
|
|
3593
3620
|
note?: string | null | undefined;
|
|
3621
|
+
wakeFeedIds?: string[] | undefined;
|
|
3594
3622
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
3595
3623
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
3596
3624
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3635,6 +3663,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3635
3663
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3636
3664
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3637
3665
|
} | null | undefined;
|
|
3666
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3638
3667
|
sleepMethods?: {
|
|
3639
3668
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3640
3669
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3649,6 +3678,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3649
3678
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3650
3679
|
} | undefined;
|
|
3651
3680
|
} | null | undefined;
|
|
3681
|
+
sleepNapId?: string | null | undefined;
|
|
3652
3682
|
sleepNightId?: string | null | undefined;
|
|
3653
3683
|
breastfeedSession?: {
|
|
3654
3684
|
schemaVersion: 1;
|
|
@@ -3743,6 +3773,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3743
3773
|
importBatchId?: string | null | undefined;
|
|
3744
3774
|
localDate?: string | null | undefined;
|
|
3745
3775
|
note?: string | null | undefined;
|
|
3776
|
+
wakeFeedIds?: string[] | undefined;
|
|
3746
3777
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
3747
3778
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
3748
3779
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -3787,6 +3818,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3787
3818
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
3788
3819
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
3789
3820
|
} | null | undefined;
|
|
3821
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
3790
3822
|
sleepMethods?: {
|
|
3791
3823
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
3792
3824
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -3801,6 +3833,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
3801
3833
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
3802
3834
|
} | undefined;
|
|
3803
3835
|
} | null | undefined;
|
|
3836
|
+
sleepNapId?: string | null | undefined;
|
|
3804
3837
|
sleepNightId?: string | null | undefined;
|
|
3805
3838
|
breastfeedSession?: {
|
|
3806
3839
|
schemaVersion: 1;
|
|
@@ -4211,6 +4244,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4211
4244
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4212
4245
|
} | undefined;
|
|
4213
4246
|
}>>>;
|
|
4247
|
+
sleepNapId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4214
4248
|
sleepNightId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4215
4249
|
breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
4216
4250
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -4439,6 +4473,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4439
4473
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4440
4474
|
} | undefined;
|
|
4441
4475
|
} | null | undefined;
|
|
4476
|
+
sleepNapId?: string | null | undefined;
|
|
4442
4477
|
sleepNightId?: string | null | undefined;
|
|
4443
4478
|
breastfeedSession?: {
|
|
4444
4479
|
schemaVersion: 1;
|
|
@@ -4559,6 +4594,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4559
4594
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4560
4595
|
} | undefined;
|
|
4561
4596
|
} | null | undefined;
|
|
4597
|
+
sleepNapId?: string | null | undefined;
|
|
4562
4598
|
sleepNightId?: string | null | undefined;
|
|
4563
4599
|
breastfeedSession?: {
|
|
4564
4600
|
schemaVersion: 1;
|
|
@@ -4679,6 +4715,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4679
4715
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4680
4716
|
} | undefined;
|
|
4681
4717
|
} | null | undefined;
|
|
4718
|
+
sleepNapId?: string | null | undefined;
|
|
4682
4719
|
sleepNightId?: string | null | undefined;
|
|
4683
4720
|
breastfeedSession?: {
|
|
4684
4721
|
schemaVersion: 1;
|
|
@@ -4799,6 +4836,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4799
4836
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4800
4837
|
} | undefined;
|
|
4801
4838
|
} | null | undefined;
|
|
4839
|
+
sleepNapId?: string | null | undefined;
|
|
4802
4840
|
sleepNightId?: string | null | undefined;
|
|
4803
4841
|
breastfeedSession?: {
|
|
4804
4842
|
schemaVersion: 1;
|
|
@@ -4919,6 +4957,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
4919
4957
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
4920
4958
|
} | undefined;
|
|
4921
4959
|
} | null | undefined;
|
|
4960
|
+
sleepNapId?: string | null | undefined;
|
|
4922
4961
|
sleepNightId?: string | null | undefined;
|
|
4923
4962
|
breastfeedSession?: {
|
|
4924
4963
|
schemaVersion: 1;
|
|
@@ -5039,6 +5078,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5039
5078
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
5040
5079
|
} | undefined;
|
|
5041
5080
|
} | null | undefined;
|
|
5081
|
+
sleepNapId?: string | null | undefined;
|
|
5042
5082
|
sleepNightId?: string | null | undefined;
|
|
5043
5083
|
breastfeedSession?: {
|
|
5044
5084
|
schemaVersion: 1;
|
|
@@ -5159,6 +5199,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5159
5199
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
5160
5200
|
} | undefined;
|
|
5161
5201
|
} | null | undefined;
|
|
5202
|
+
sleepNapId?: string | null | undefined;
|
|
5162
5203
|
sleepNightId?: string | null | undefined;
|
|
5163
5204
|
breastfeedSession?: {
|
|
5164
5205
|
schemaVersion: 1;
|
|
@@ -5279,6 +5320,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5279
5320
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
5280
5321
|
} | undefined;
|
|
5281
5322
|
} | null | undefined;
|
|
5323
|
+
sleepNapId?: string | null | undefined;
|
|
5282
5324
|
sleepNightId?: string | null | undefined;
|
|
5283
5325
|
breastfeedSession?: {
|
|
5284
5326
|
schemaVersion: 1;
|
|
@@ -5399,6 +5441,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5399
5441
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
5400
5442
|
} | undefined;
|
|
5401
5443
|
} | null | undefined;
|
|
5444
|
+
sleepNapId?: string | null | undefined;
|
|
5402
5445
|
sleepNightId?: string | null | undefined;
|
|
5403
5446
|
breastfeedSession?: {
|
|
5404
5447
|
schemaVersion: 1;
|
|
@@ -5519,6 +5562,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5519
5562
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
5520
5563
|
} | undefined;
|
|
5521
5564
|
} | null | undefined;
|
|
5565
|
+
sleepNapId?: string | null | undefined;
|
|
5522
5566
|
sleepNightId?: string | null | undefined;
|
|
5523
5567
|
breastfeedSession?: {
|
|
5524
5568
|
schemaVersion: 1;
|
|
@@ -5615,6 +5659,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5615
5659
|
action: z.ZodLiteral<"back-to-sleep">;
|
|
5616
5660
|
timerId: z.ZodString;
|
|
5617
5661
|
startedAt: z.ZodString;
|
|
5662
|
+
location: z.ZodOptional<z.ZodEnum<["co-sleeping", "contact-napping", "baby-cot", "motion-nap", "other"]>>;
|
|
5618
5663
|
backToSleepMethods: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "motion", "touch", "held"]>, "many">, ("fed" | "motion" | "touch" | "held")[], ("fed" | "motion" | "touch" | "held")[]>>>;
|
|
5619
5664
|
reasons: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["fed", "resettled", "nappy"]>, "many">, ("fed" | "resettled" | "nappy")[], ("fed" | "resettled" | "nappy")[]>>;
|
|
5620
5665
|
sourceActivityId: z.ZodString;
|
|
@@ -5630,6 +5675,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5630
5675
|
commandId: string;
|
|
5631
5676
|
timerId: string;
|
|
5632
5677
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
5678
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
5633
5679
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
5634
5680
|
}, {
|
|
5635
5681
|
startedAt: string;
|
|
@@ -5640,6 +5686,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
5640
5686
|
commandId: string;
|
|
5641
5687
|
timerId: string;
|
|
5642
5688
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
5689
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
5643
5690
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
5644
5691
|
}>, z.ZodObject<{
|
|
5645
5692
|
action: z.ZodLiteral<"up-for-day">;
|
|
@@ -6166,6 +6213,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6166
6213
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6167
6214
|
} | undefined;
|
|
6168
6215
|
}>>>;
|
|
6216
|
+
sleepNapId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6169
6217
|
sleepNightId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6170
6218
|
breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
6171
6219
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -6394,6 +6442,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6394
6442
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6395
6443
|
} | undefined;
|
|
6396
6444
|
} | null | undefined;
|
|
6445
|
+
sleepNapId?: string | null | undefined;
|
|
6397
6446
|
sleepNightId?: string | null | undefined;
|
|
6398
6447
|
breastfeedSession?: {
|
|
6399
6448
|
schemaVersion: 1;
|
|
@@ -6514,6 +6563,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6514
6563
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6515
6564
|
} | undefined;
|
|
6516
6565
|
} | null | undefined;
|
|
6566
|
+
sleepNapId?: string | null | undefined;
|
|
6517
6567
|
sleepNightId?: string | null | undefined;
|
|
6518
6568
|
breastfeedSession?: {
|
|
6519
6569
|
schemaVersion: 1;
|
|
@@ -6634,6 +6684,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6634
6684
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6635
6685
|
} | undefined;
|
|
6636
6686
|
} | null | undefined;
|
|
6687
|
+
sleepNapId?: string | null | undefined;
|
|
6637
6688
|
sleepNightId?: string | null | undefined;
|
|
6638
6689
|
breastfeedSession?: {
|
|
6639
6690
|
schemaVersion: 1;
|
|
@@ -6754,6 +6805,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6754
6805
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6755
6806
|
} | undefined;
|
|
6756
6807
|
} | null | undefined;
|
|
6808
|
+
sleepNapId?: string | null | undefined;
|
|
6757
6809
|
sleepNightId?: string | null | undefined;
|
|
6758
6810
|
breastfeedSession?: {
|
|
6759
6811
|
schemaVersion: 1;
|
|
@@ -6874,6 +6926,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6874
6926
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6875
6927
|
} | undefined;
|
|
6876
6928
|
} | null | undefined;
|
|
6929
|
+
sleepNapId?: string | null | undefined;
|
|
6877
6930
|
sleepNightId?: string | null | undefined;
|
|
6878
6931
|
breastfeedSession?: {
|
|
6879
6932
|
schemaVersion: 1;
|
|
@@ -6994,6 +7047,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
6994
7047
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
6995
7048
|
} | undefined;
|
|
6996
7049
|
} | null | undefined;
|
|
7050
|
+
sleepNapId?: string | null | undefined;
|
|
6997
7051
|
sleepNightId?: string | null | undefined;
|
|
6998
7052
|
breastfeedSession?: {
|
|
6999
7053
|
schemaVersion: 1;
|
|
@@ -7114,6 +7168,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7114
7168
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7115
7169
|
} | undefined;
|
|
7116
7170
|
} | null | undefined;
|
|
7171
|
+
sleepNapId?: string | null | undefined;
|
|
7117
7172
|
sleepNightId?: string | null | undefined;
|
|
7118
7173
|
breastfeedSession?: {
|
|
7119
7174
|
schemaVersion: 1;
|
|
@@ -7234,6 +7289,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7234
7289
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7235
7290
|
} | undefined;
|
|
7236
7291
|
} | null | undefined;
|
|
7292
|
+
sleepNapId?: string | null | undefined;
|
|
7237
7293
|
sleepNightId?: string | null | undefined;
|
|
7238
7294
|
breastfeedSession?: {
|
|
7239
7295
|
schemaVersion: 1;
|
|
@@ -7354,6 +7410,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7354
7410
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7355
7411
|
} | undefined;
|
|
7356
7412
|
} | null | undefined;
|
|
7413
|
+
sleepNapId?: string | null | undefined;
|
|
7357
7414
|
sleepNightId?: string | null | undefined;
|
|
7358
7415
|
breastfeedSession?: {
|
|
7359
7416
|
schemaVersion: 1;
|
|
@@ -7474,6 +7531,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7474
7531
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7475
7532
|
} | undefined;
|
|
7476
7533
|
} | null | undefined;
|
|
7534
|
+
sleepNapId?: string | null | undefined;
|
|
7477
7535
|
sleepNightId?: string | null | undefined;
|
|
7478
7536
|
breastfeedSession?: {
|
|
7479
7537
|
schemaVersion: 1;
|
|
@@ -7513,6 +7571,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7513
7571
|
commandId: string;
|
|
7514
7572
|
timerId: string;
|
|
7515
7573
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
7574
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
7516
7575
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
7517
7576
|
} | {
|
|
7518
7577
|
babyId: string;
|
|
@@ -7661,6 +7720,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7661
7720
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7662
7721
|
} | undefined;
|
|
7663
7722
|
} | null | undefined;
|
|
7723
|
+
sleepNapId?: string | null | undefined;
|
|
7664
7724
|
sleepNightId?: string | null | undefined;
|
|
7665
7725
|
breastfeedSession?: {
|
|
7666
7726
|
schemaVersion: 1;
|
|
@@ -7700,6 +7760,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7700
7760
|
commandId: string;
|
|
7701
7761
|
timerId: string;
|
|
7702
7762
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
7763
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
7703
7764
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
7704
7765
|
} | {
|
|
7705
7766
|
babyId: string;
|
|
@@ -7848,6 +7909,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7848
7909
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
7849
7910
|
} | undefined;
|
|
7850
7911
|
} | null | undefined;
|
|
7912
|
+
sleepNapId?: string | null | undefined;
|
|
7851
7913
|
sleepNightId?: string | null | undefined;
|
|
7852
7914
|
breastfeedSession?: {
|
|
7853
7915
|
schemaVersion: 1;
|
|
@@ -7963,6 +8025,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
7963
8025
|
importBatchId?: string | null | undefined;
|
|
7964
8026
|
localDate?: string | null | undefined;
|
|
7965
8027
|
note?: string | null | undefined;
|
|
8028
|
+
wakeFeedIds?: string[] | undefined;
|
|
7966
8029
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
7967
8030
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
7968
8031
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -8007,6 +8070,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8007
8070
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
8008
8071
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
8009
8072
|
} | null | undefined;
|
|
8073
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
8010
8074
|
sleepMethods?: {
|
|
8011
8075
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
8012
8076
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -8021,6 +8085,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8021
8085
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8022
8086
|
} | undefined;
|
|
8023
8087
|
} | null | undefined;
|
|
8088
|
+
sleepNapId?: string | null | undefined;
|
|
8024
8089
|
sleepNightId?: string | null | undefined;
|
|
8025
8090
|
breastfeedSession?: {
|
|
8026
8091
|
schemaVersion: 1;
|
|
@@ -8145,6 +8210,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8145
8210
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8146
8211
|
} | undefined;
|
|
8147
8212
|
} | null | undefined;
|
|
8213
|
+
sleepNapId?: string | null | undefined;
|
|
8148
8214
|
sleepNightId?: string | null | undefined;
|
|
8149
8215
|
breastfeedSession?: {
|
|
8150
8216
|
schemaVersion: 1;
|
|
@@ -8206,6 +8272,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8206
8272
|
commandId: string;
|
|
8207
8273
|
timerId: string;
|
|
8208
8274
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
8275
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
8209
8276
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
8210
8277
|
} | {
|
|
8211
8278
|
babyId: string;
|
|
@@ -8354,6 +8421,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8354
8421
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8355
8422
|
} | undefined;
|
|
8356
8423
|
} | null | undefined;
|
|
8424
|
+
sleepNapId?: string | null | undefined;
|
|
8357
8425
|
sleepNightId?: string | null | undefined;
|
|
8358
8426
|
breastfeedSession?: {
|
|
8359
8427
|
schemaVersion: 1;
|
|
@@ -8469,6 +8537,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8469
8537
|
importBatchId?: string | null | undefined;
|
|
8470
8538
|
localDate?: string | null | undefined;
|
|
8471
8539
|
note?: string | null | undefined;
|
|
8540
|
+
wakeFeedIds?: string[] | undefined;
|
|
8472
8541
|
drinkType?: "breastmilk" | "formula" | "water" | "juice" | "cows-milk" | "dairy-free-milk" | null | undefined;
|
|
8473
8542
|
drinkContainer?: "bottle" | "cup" | null | undefined;
|
|
8474
8543
|
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
@@ -8513,6 +8582,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8513
8582
|
texture?: "soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy" | null | undefined;
|
|
8514
8583
|
colour?: "yellow" | "orange" | "brown" | "green" | null | undefined;
|
|
8515
8584
|
} | null | undefined;
|
|
8585
|
+
nappyTextures?: ("soft" | "watery" | "seedy" | "formed" | "pellets" | "mucusy")[] | null | undefined;
|
|
8516
8586
|
sleepMethods?: {
|
|
8517
8587
|
fallAsleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
8518
8588
|
backToSleep?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
@@ -8527,6 +8597,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8527
8597
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8528
8598
|
} | undefined;
|
|
8529
8599
|
} | null | undefined;
|
|
8600
|
+
sleepNapId?: string | null | undefined;
|
|
8530
8601
|
sleepNightId?: string | null | undefined;
|
|
8531
8602
|
breastfeedSession?: {
|
|
8532
8603
|
schemaVersion: 1;
|
|
@@ -8651,6 +8722,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8651
8722
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8652
8723
|
} | undefined;
|
|
8653
8724
|
} | null | undefined;
|
|
8725
|
+
sleepNapId?: string | null | undefined;
|
|
8654
8726
|
sleepNightId?: string | null | undefined;
|
|
8655
8727
|
breastfeedSession?: {
|
|
8656
8728
|
schemaVersion: 1;
|
|
@@ -8712,6 +8784,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8712
8784
|
commandId: string;
|
|
8713
8785
|
timerId: string;
|
|
8714
8786
|
reasons?: ("fed" | "resettled" | "nappy")[] | undefined;
|
|
8787
|
+
location?: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap" | undefined;
|
|
8715
8788
|
backToSleepMethods?: ("fed" | "motion" | "touch" | "held")[] | null | undefined;
|
|
8716
8789
|
} | {
|
|
8717
8790
|
babyId: string;
|
|
@@ -8860,6 +8933,7 @@ export declare const nativeTimerActionResponseSchema: z.ZodObject<{
|
|
|
8860
8933
|
reasons: ("fed" | "resettled" | "nappy")[];
|
|
8861
8934
|
} | undefined;
|
|
8862
8935
|
} | null | undefined;
|
|
8936
|
+
sleepNapId?: string | null | undefined;
|
|
8863
8937
|
sleepNightId?: string | null | undefined;
|
|
8864
8938
|
breastfeedSession?: {
|
|
8865
8939
|
schemaVersion: 1;
|
|
@@ -59,6 +59,7 @@ export declare const sleepAverageIntervalSchema: z.ZodObject<{
|
|
|
59
59
|
startAt: z.ZodString;
|
|
60
60
|
endAt: z.ZodString;
|
|
61
61
|
sleepType: z.ZodEnum<["nap", "night"]>;
|
|
62
|
+
sleepNapId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
63
|
recordedTimeZone: z.ZodNullable<z.ZodString>;
|
|
63
64
|
}, "strict", z.ZodTypeAny, {
|
|
64
65
|
recordedTimeZone: string | null;
|
|
@@ -67,6 +68,7 @@ export declare const sleepAverageIntervalSchema: z.ZodObject<{
|
|
|
67
68
|
activityUpdatedAt: string;
|
|
68
69
|
startAt: string;
|
|
69
70
|
endAt: string;
|
|
71
|
+
sleepNapId?: string | null | undefined;
|
|
70
72
|
}, {
|
|
71
73
|
recordedTimeZone: string | null;
|
|
72
74
|
activityId: string;
|
|
@@ -74,6 +76,7 @@ export declare const sleepAverageIntervalSchema: z.ZodObject<{
|
|
|
74
76
|
activityUpdatedAt: string;
|
|
75
77
|
startAt: string;
|
|
76
78
|
endAt: string;
|
|
79
|
+
sleepNapId?: string | null | undefined;
|
|
77
80
|
}>;
|
|
78
81
|
export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
79
82
|
familyUserId: z.ZodString;
|
|
@@ -148,6 +151,7 @@ export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
|
148
151
|
startAt: z.ZodString;
|
|
149
152
|
endAt: z.ZodString;
|
|
150
153
|
sleepType: z.ZodEnum<["nap", "night"]>;
|
|
154
|
+
sleepNapId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
155
|
recordedTimeZone: z.ZodNullable<z.ZodString>;
|
|
152
156
|
}, "strict", z.ZodTypeAny, {
|
|
153
157
|
recordedTimeZone: string | null;
|
|
@@ -156,6 +160,7 @@ export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
|
156
160
|
activityUpdatedAt: string;
|
|
157
161
|
startAt: string;
|
|
158
162
|
endAt: string;
|
|
163
|
+
sleepNapId?: string | null | undefined;
|
|
159
164
|
}, {
|
|
160
165
|
recordedTimeZone: string | null;
|
|
161
166
|
activityId: string;
|
|
@@ -163,6 +168,7 @@ export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
|
163
168
|
activityUpdatedAt: string;
|
|
164
169
|
startAt: string;
|
|
165
170
|
endAt: string;
|
|
171
|
+
sleepNapId?: string | null | undefined;
|
|
166
172
|
}>, "many">;
|
|
167
173
|
}, "strict", z.ZodTypeAny, {
|
|
168
174
|
familyUserId: string;
|
|
@@ -185,6 +191,7 @@ export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
|
185
191
|
activityUpdatedAt: string;
|
|
186
192
|
startAt: string;
|
|
187
193
|
endAt: string;
|
|
194
|
+
sleepNapId?: string | null | undefined;
|
|
188
195
|
}[];
|
|
189
196
|
exclusions: {
|
|
190
197
|
status: "known";
|
|
@@ -220,6 +227,7 @@ export declare const sleepAverageContextInputSchema: z.ZodObject<{
|
|
|
220
227
|
activityUpdatedAt: string;
|
|
221
228
|
startAt: string;
|
|
222
229
|
endAt: string;
|
|
230
|
+
sleepNapId?: string | null | undefined;
|
|
223
231
|
}[];
|
|
224
232
|
exclusions: {
|
|
225
233
|
status: "known";
|
|
@@ -36,6 +36,7 @@ export const sleepAverageIntervalSchema = z.object({
|
|
|
36
36
|
startAt: isoDateStringSchema,
|
|
37
37
|
endAt: isoDateStringSchema,
|
|
38
38
|
sleepType: z.enum(["nap", "night"]),
|
|
39
|
+
sleepNapId: z.string().uuid().nullable().optional(),
|
|
39
40
|
recordedTimeZone: recordedZoneSchema
|
|
40
41
|
}).strict();
|
|
41
42
|
export const sleepAverageContextInputSchema = z.object({
|
|
@@ -256,7 +257,7 @@ export const sampleSleepAverageContext = (value) => {
|
|
|
256
257
|
const duration = clippedEnd - clippedStart;
|
|
257
258
|
if (interval.source.sleepType === "nap") {
|
|
258
259
|
napMs += duration;
|
|
259
|
-
napActivityIds.add(interval.source.activityId);
|
|
260
|
+
napActivityIds.add(interval.source.sleepNapId ? `nap:${interval.source.sleepNapId.toLowerCase()}` : `activity:${interval.source.activityId}`);
|
|
260
261
|
}
|
|
261
262
|
else
|
|
262
263
|
nightMs += duration;
|