@nikthegeek/dreamsforlittles-shared 0.18.25 → 0.18.27
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/family.d.ts +530 -2
- package/dist/family.js +16 -4
- package/dist/family.js.map +1 -1
- package/dist/home-activity-context.d.ts +258 -0
- package/dist/home-activity-context.js +7 -2
- package/dist/home-activity-context.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/sleep-nap-join.d.ts +2712 -0
- package/dist/sleep-nap-join.js +46 -0
- package/dist/sleep-nap-join.js.map +1 -0
- package/dist/sleep-nap-join.test.d.ts +1 -0
- package/dist/sleep-nap-join.test.js +46 -0
- package/dist/sleep-nap-join.test.js.map +1 -0
- package/package.json +1 -1
package/dist/family.d.ts
CHANGED
|
@@ -13934,7 +13934,7 @@ export declare const activeActivityTimerSchema: z.ZodEffects<z.ZodEffects<z.ZodE
|
|
|
13934
13934
|
})[];
|
|
13935
13935
|
} | null | undefined;
|
|
13936
13936
|
}>;
|
|
13937
|
-
export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
13937
|
+
export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
13938
13938
|
babyId: z.ZodString;
|
|
13939
13939
|
activityType: z.ZodEnum<["breastfeed", "sleep", "pumping"]>;
|
|
13940
13940
|
startedAt: z.ZodString;
|
|
@@ -14444,6 +14444,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
14444
14444
|
}>]>>>;
|
|
14445
14445
|
requestNativeActionToken: z.ZodOptional<z.ZodBoolean>;
|
|
14446
14446
|
joinSleepActivityIds: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>>;
|
|
14447
|
+
joinSleepNapActivityId: z.ZodOptional<z.ZodString>;
|
|
14447
14448
|
}, "strict", z.ZodTypeAny, {
|
|
14448
14449
|
timeZone: string;
|
|
14449
14450
|
startedAt: string;
|
|
@@ -14560,6 +14561,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
14560
14561
|
expectedTimerUpdatedAt?: string | undefined;
|
|
14561
14562
|
requestNativeActionToken?: boolean | undefined;
|
|
14562
14563
|
joinSleepActivityIds?: string[] | undefined;
|
|
14564
|
+
joinSleepNapActivityId?: string | undefined;
|
|
14563
14565
|
}, {
|
|
14564
14566
|
timeZone: string;
|
|
14565
14567
|
startedAt: string;
|
|
@@ -14676,6 +14678,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
14676
14678
|
expectedTimerUpdatedAt?: string | undefined;
|
|
14677
14679
|
requestNativeActionToken?: boolean | undefined;
|
|
14678
14680
|
joinSleepActivityIds?: string[] | undefined;
|
|
14681
|
+
joinSleepNapActivityId?: string | undefined;
|
|
14679
14682
|
}>, {
|
|
14680
14683
|
timeZone: string;
|
|
14681
14684
|
startedAt: string;
|
|
@@ -14792,6 +14795,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
14792
14795
|
expectedTimerUpdatedAt?: string | undefined;
|
|
14793
14796
|
requestNativeActionToken?: boolean | undefined;
|
|
14794
14797
|
joinSleepActivityIds?: string[] | undefined;
|
|
14798
|
+
joinSleepNapActivityId?: string | undefined;
|
|
14795
14799
|
}, {
|
|
14796
14800
|
timeZone: string;
|
|
14797
14801
|
startedAt: string;
|
|
@@ -14908,6 +14912,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
14908
14912
|
expectedTimerUpdatedAt?: string | undefined;
|
|
14909
14913
|
requestNativeActionToken?: boolean | undefined;
|
|
14910
14914
|
joinSleepActivityIds?: string[] | undefined;
|
|
14915
|
+
joinSleepNapActivityId?: string | undefined;
|
|
14911
14916
|
}>, {
|
|
14912
14917
|
timeZone: string;
|
|
14913
14918
|
startedAt: string;
|
|
@@ -15024,6 +15029,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15024
15029
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15025
15030
|
requestNativeActionToken?: boolean | undefined;
|
|
15026
15031
|
joinSleepActivityIds?: string[] | undefined;
|
|
15032
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15027
15033
|
}, {
|
|
15028
15034
|
timeZone: string;
|
|
15029
15035
|
startedAt: string;
|
|
@@ -15140,6 +15146,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15140
15146
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15141
15147
|
requestNativeActionToken?: boolean | undefined;
|
|
15142
15148
|
joinSleepActivityIds?: string[] | undefined;
|
|
15149
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15143
15150
|
}>, {
|
|
15144
15151
|
timeZone: string;
|
|
15145
15152
|
startedAt: string;
|
|
@@ -15256,6 +15263,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15256
15263
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15257
15264
|
requestNativeActionToken?: boolean | undefined;
|
|
15258
15265
|
joinSleepActivityIds?: string[] | undefined;
|
|
15266
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15259
15267
|
}, {
|
|
15260
15268
|
timeZone: string;
|
|
15261
15269
|
startedAt: string;
|
|
@@ -15372,6 +15380,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15372
15380
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15373
15381
|
requestNativeActionToken?: boolean | undefined;
|
|
15374
15382
|
joinSleepActivityIds?: string[] | undefined;
|
|
15383
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15375
15384
|
}>, {
|
|
15376
15385
|
timeZone: string;
|
|
15377
15386
|
startedAt: string;
|
|
@@ -15488,6 +15497,7 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15488
15497
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15489
15498
|
requestNativeActionToken?: boolean | undefined;
|
|
15490
15499
|
joinSleepActivityIds?: string[] | undefined;
|
|
15500
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15491
15501
|
}, {
|
|
15492
15502
|
timeZone: string;
|
|
15493
15503
|
startedAt: string;
|
|
@@ -15604,6 +15614,241 @@ export declare const activeActivityTimerUpsertRequestSchema: z.ZodEffects<z.ZodE
|
|
|
15604
15614
|
expectedTimerUpdatedAt?: string | undefined;
|
|
15605
15615
|
requestNativeActionToken?: boolean | undefined;
|
|
15606
15616
|
joinSleepActivityIds?: string[] | undefined;
|
|
15617
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15618
|
+
}>, {
|
|
15619
|
+
timeZone: string;
|
|
15620
|
+
startedAt: string;
|
|
15621
|
+
activityType: "sleep" | "breastfeed" | "pumping";
|
|
15622
|
+
babyId: string;
|
|
15623
|
+
pumpingSession?: {
|
|
15624
|
+
schemaVersion: 1;
|
|
15625
|
+
revision: number;
|
|
15626
|
+
sides: {
|
|
15627
|
+
left?: {
|
|
15628
|
+
segments: {
|
|
15629
|
+
start: string;
|
|
15630
|
+
end: string | null;
|
|
15631
|
+
}[];
|
|
15632
|
+
stoppedAt: string | null;
|
|
15633
|
+
} | undefined;
|
|
15634
|
+
right?: {
|
|
15635
|
+
segments: {
|
|
15636
|
+
start: string;
|
|
15637
|
+
end: string | null;
|
|
15638
|
+
}[];
|
|
15639
|
+
stoppedAt: string | null;
|
|
15640
|
+
} | undefined;
|
|
15641
|
+
};
|
|
15642
|
+
} | null | undefined;
|
|
15643
|
+
details?: {
|
|
15644
|
+
date: string;
|
|
15645
|
+
start: string;
|
|
15646
|
+
end: string;
|
|
15647
|
+
side: "left" | "right";
|
|
15648
|
+
} | {
|
|
15649
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
15650
|
+
date: string;
|
|
15651
|
+
unit: "ml" | "oz";
|
|
15652
|
+
time: string;
|
|
15653
|
+
amount: number;
|
|
15654
|
+
} | {
|
|
15655
|
+
type: "day" | "night";
|
|
15656
|
+
date: string;
|
|
15657
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
15658
|
+
start: string;
|
|
15659
|
+
end: string;
|
|
15660
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
15661
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
15662
|
+
} | {
|
|
15663
|
+
type: ("dirty" | "wet")[];
|
|
15664
|
+
date: string;
|
|
15665
|
+
time: string;
|
|
15666
|
+
imageURL?: string | null | undefined;
|
|
15667
|
+
} | {
|
|
15668
|
+
date: string;
|
|
15669
|
+
start: string;
|
|
15670
|
+
end: string;
|
|
15671
|
+
unit: "ml" | "oz";
|
|
15672
|
+
side: "left" | "right";
|
|
15673
|
+
amount: number;
|
|
15674
|
+
} | {
|
|
15675
|
+
date: string;
|
|
15676
|
+
time: string;
|
|
15677
|
+
medicationName: string;
|
|
15678
|
+
} | {
|
|
15679
|
+
date: string;
|
|
15680
|
+
time: string;
|
|
15681
|
+
allergicReaction: boolean;
|
|
15682
|
+
allergicReactionNote?: string | null | undefined;
|
|
15683
|
+
accidentalExposure?: boolean | undefined;
|
|
15684
|
+
accidentalExposureNote?: string | null | undefined;
|
|
15685
|
+
ladderId?: string | null | undefined;
|
|
15686
|
+
ladderStageId?: string | null | undefined;
|
|
15687
|
+
} | undefined;
|
|
15688
|
+
note?: string | null | undefined;
|
|
15689
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
15690
|
+
pumpingAmounts?: {
|
|
15691
|
+
unit: "ml" | "oz";
|
|
15692
|
+
left?: number | null | undefined;
|
|
15693
|
+
right?: number | null | undefined;
|
|
15694
|
+
} | null | undefined;
|
|
15695
|
+
sleepMethods?: {
|
|
15696
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
15697
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
15698
|
+
} | null | undefined;
|
|
15699
|
+
sleepContext?: {
|
|
15700
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
15701
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
15702
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
15703
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
15704
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
15705
|
+
wake?: {
|
|
15706
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
15707
|
+
} | undefined;
|
|
15708
|
+
} | null | undefined;
|
|
15709
|
+
sleepNightId?: string | null | undefined;
|
|
15710
|
+
breastfeedSession?: {
|
|
15711
|
+
schemaVersion: 1;
|
|
15712
|
+
segments: {
|
|
15713
|
+
start: string;
|
|
15714
|
+
end: string | null;
|
|
15715
|
+
side: "left" | "right";
|
|
15716
|
+
}[];
|
|
15717
|
+
} | {
|
|
15718
|
+
schemaVersion: 2;
|
|
15719
|
+
phases: ({
|
|
15720
|
+
start: string;
|
|
15721
|
+
end: string | null;
|
|
15722
|
+
kind: "feeding";
|
|
15723
|
+
side: "left" | "right";
|
|
15724
|
+
} | {
|
|
15725
|
+
start: string;
|
|
15726
|
+
end: string | null;
|
|
15727
|
+
kind: "pause";
|
|
15728
|
+
})[];
|
|
15729
|
+
} | null | undefined;
|
|
15730
|
+
expectedPumpingRevision?: number | null | undefined;
|
|
15731
|
+
expectedTimerUpdatedAt?: string | undefined;
|
|
15732
|
+
requestNativeActionToken?: boolean | undefined;
|
|
15733
|
+
joinSleepActivityIds?: string[] | undefined;
|
|
15734
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15735
|
+
}, {
|
|
15736
|
+
timeZone: string;
|
|
15737
|
+
startedAt: string;
|
|
15738
|
+
activityType: "sleep" | "breastfeed" | "pumping";
|
|
15739
|
+
babyId: string;
|
|
15740
|
+
pumpingSession?: {
|
|
15741
|
+
schemaVersion: 1;
|
|
15742
|
+
revision: number;
|
|
15743
|
+
sides: {
|
|
15744
|
+
left?: {
|
|
15745
|
+
segments: {
|
|
15746
|
+
start: string;
|
|
15747
|
+
end: string | null;
|
|
15748
|
+
}[];
|
|
15749
|
+
stoppedAt: string | null;
|
|
15750
|
+
} | undefined;
|
|
15751
|
+
right?: {
|
|
15752
|
+
segments: {
|
|
15753
|
+
start: string;
|
|
15754
|
+
end: string | null;
|
|
15755
|
+
}[];
|
|
15756
|
+
stoppedAt: string | null;
|
|
15757
|
+
} | undefined;
|
|
15758
|
+
};
|
|
15759
|
+
} | null | undefined;
|
|
15760
|
+
details?: {
|
|
15761
|
+
date: string;
|
|
15762
|
+
start: string;
|
|
15763
|
+
end: string;
|
|
15764
|
+
side: "left" | "right";
|
|
15765
|
+
} | {
|
|
15766
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
15767
|
+
date: string;
|
|
15768
|
+
unit: "ml" | "oz";
|
|
15769
|
+
time: string;
|
|
15770
|
+
amount: number;
|
|
15771
|
+
} | {
|
|
15772
|
+
type: "day" | "night";
|
|
15773
|
+
date: string;
|
|
15774
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
15775
|
+
start: string;
|
|
15776
|
+
end: string;
|
|
15777
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
15778
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
15779
|
+
} | {
|
|
15780
|
+
type: ("dirty" | "wet")[];
|
|
15781
|
+
date: string;
|
|
15782
|
+
time: string;
|
|
15783
|
+
imageURL?: string | null | undefined;
|
|
15784
|
+
} | {
|
|
15785
|
+
date: string;
|
|
15786
|
+
start: string;
|
|
15787
|
+
end: string;
|
|
15788
|
+
unit: "ml" | "oz";
|
|
15789
|
+
side: "left" | "right";
|
|
15790
|
+
amount: number;
|
|
15791
|
+
} | {
|
|
15792
|
+
date: string;
|
|
15793
|
+
time: string;
|
|
15794
|
+
medicationName: string;
|
|
15795
|
+
} | {
|
|
15796
|
+
date: string;
|
|
15797
|
+
time: string;
|
|
15798
|
+
allergicReaction: boolean;
|
|
15799
|
+
allergicReactionNote?: string | null | undefined;
|
|
15800
|
+
accidentalExposure?: boolean | undefined;
|
|
15801
|
+
accidentalExposureNote?: string | null | undefined;
|
|
15802
|
+
ladderId?: string | null | undefined;
|
|
15803
|
+
ladderStageId?: string | null | undefined;
|
|
15804
|
+
} | undefined;
|
|
15805
|
+
note?: string | null | undefined;
|
|
15806
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
15807
|
+
pumpingAmounts?: {
|
|
15808
|
+
unit: "ml" | "oz";
|
|
15809
|
+
left?: number | null | undefined;
|
|
15810
|
+
right?: number | null | undefined;
|
|
15811
|
+
} | null | undefined;
|
|
15812
|
+
sleepMethods?: {
|
|
15813
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
15814
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
15815
|
+
} | null | undefined;
|
|
15816
|
+
sleepContext?: {
|
|
15817
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
15818
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
15819
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
15820
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
15821
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
15822
|
+
wake?: {
|
|
15823
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
15824
|
+
} | undefined;
|
|
15825
|
+
} | null | undefined;
|
|
15826
|
+
sleepNightId?: string | null | undefined;
|
|
15827
|
+
breastfeedSession?: {
|
|
15828
|
+
schemaVersion: 1;
|
|
15829
|
+
segments: {
|
|
15830
|
+
start: string;
|
|
15831
|
+
end: string | null;
|
|
15832
|
+
side: "left" | "right";
|
|
15833
|
+
}[];
|
|
15834
|
+
} | {
|
|
15835
|
+
schemaVersion: 2;
|
|
15836
|
+
phases: ({
|
|
15837
|
+
start: string;
|
|
15838
|
+
end: string | null;
|
|
15839
|
+
kind: "feeding";
|
|
15840
|
+
side: "left" | "right";
|
|
15841
|
+
} | {
|
|
15842
|
+
start: string;
|
|
15843
|
+
end: string | null;
|
|
15844
|
+
kind: "pause";
|
|
15845
|
+
})[];
|
|
15846
|
+
} | null | undefined;
|
|
15847
|
+
expectedPumpingRevision?: number | null | undefined;
|
|
15848
|
+
expectedTimerUpdatedAt?: string | undefined;
|
|
15849
|
+
requestNativeActionToken?: boolean | undefined;
|
|
15850
|
+
joinSleepActivityIds?: string[] | undefined;
|
|
15851
|
+
joinSleepNapActivityId?: string | undefined;
|
|
15607
15852
|
}>;
|
|
15608
15853
|
export declare const stoppedActivityTimerDraftSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
15609
15854
|
id: z.ZodString;
|
|
@@ -17731,7 +17976,7 @@ export declare const stoppedActivityTimerDraftSchema: z.ZodEffects<z.ZodEffects<
|
|
|
17731
17976
|
};
|
|
17732
17977
|
} | null | undefined;
|
|
17733
17978
|
}>;
|
|
17734
|
-
export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
17979
|
+
export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
17735
17980
|
babyId: z.ZodString;
|
|
17736
17981
|
activityType: z.ZodEnum<["breastfeed", "sleep", "pumping"]>;
|
|
17737
17982
|
startedAt: z.ZodString;
|
|
@@ -18462,6 +18707,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
18462
18707
|
kind: "pause";
|
|
18463
18708
|
})[];
|
|
18464
18709
|
}>]>>>;
|
|
18710
|
+
joinSleepNapActivityId: z.ZodOptional<z.ZodString>;
|
|
18465
18711
|
}, "strict", z.ZodTypeAny, {
|
|
18466
18712
|
timeZone: string;
|
|
18467
18713
|
startedAt: string;
|
|
@@ -18577,6 +18823,279 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
18577
18823
|
} | null | undefined;
|
|
18578
18824
|
expectedPumpingRevision?: number | null | undefined;
|
|
18579
18825
|
expectedTimerUpdatedAt?: string | undefined;
|
|
18826
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18827
|
+
pumpingSessionBeforeStop?: {
|
|
18828
|
+
schemaVersion: 1;
|
|
18829
|
+
revision: number;
|
|
18830
|
+
sides: {
|
|
18831
|
+
left?: {
|
|
18832
|
+
segments: {
|
|
18833
|
+
start: string;
|
|
18834
|
+
end: string | null;
|
|
18835
|
+
}[];
|
|
18836
|
+
stoppedAt: string | null;
|
|
18837
|
+
} | undefined;
|
|
18838
|
+
right?: {
|
|
18839
|
+
segments: {
|
|
18840
|
+
start: string;
|
|
18841
|
+
end: string | null;
|
|
18842
|
+
}[];
|
|
18843
|
+
stoppedAt: string | null;
|
|
18844
|
+
} | undefined;
|
|
18845
|
+
};
|
|
18846
|
+
} | null | undefined;
|
|
18847
|
+
}, {
|
|
18848
|
+
timeZone: string;
|
|
18849
|
+
startedAt: string;
|
|
18850
|
+
activityType: "sleep" | "breastfeed" | "pumping";
|
|
18851
|
+
babyId: string;
|
|
18852
|
+
stoppedAt: string;
|
|
18853
|
+
pumpingSession?: {
|
|
18854
|
+
schemaVersion: 1;
|
|
18855
|
+
revision: number;
|
|
18856
|
+
sides: {
|
|
18857
|
+
left?: {
|
|
18858
|
+
segments: {
|
|
18859
|
+
start: string;
|
|
18860
|
+
end: string | null;
|
|
18861
|
+
}[];
|
|
18862
|
+
stoppedAt: string | null;
|
|
18863
|
+
} | undefined;
|
|
18864
|
+
right?: {
|
|
18865
|
+
segments: {
|
|
18866
|
+
start: string;
|
|
18867
|
+
end: string | null;
|
|
18868
|
+
}[];
|
|
18869
|
+
stoppedAt: string | null;
|
|
18870
|
+
} | undefined;
|
|
18871
|
+
};
|
|
18872
|
+
} | null | undefined;
|
|
18873
|
+
details?: {
|
|
18874
|
+
date: string;
|
|
18875
|
+
start: string;
|
|
18876
|
+
end: string;
|
|
18877
|
+
side: "left" | "right";
|
|
18878
|
+
} | {
|
|
18879
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
18880
|
+
date: string;
|
|
18881
|
+
unit: "ml" | "oz";
|
|
18882
|
+
time: string;
|
|
18883
|
+
amount: number;
|
|
18884
|
+
} | {
|
|
18885
|
+
type: "day" | "night";
|
|
18886
|
+
date: string;
|
|
18887
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
18888
|
+
start: string;
|
|
18889
|
+
end: string;
|
|
18890
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
18891
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
18892
|
+
} | {
|
|
18893
|
+
type: ("dirty" | "wet")[];
|
|
18894
|
+
date: string;
|
|
18895
|
+
time: string;
|
|
18896
|
+
imageURL?: string | null | undefined;
|
|
18897
|
+
} | {
|
|
18898
|
+
date: string;
|
|
18899
|
+
start: string;
|
|
18900
|
+
end: string;
|
|
18901
|
+
unit: "ml" | "oz";
|
|
18902
|
+
side: "left" | "right";
|
|
18903
|
+
amount: number;
|
|
18904
|
+
} | {
|
|
18905
|
+
date: string;
|
|
18906
|
+
time: string;
|
|
18907
|
+
medicationName: string;
|
|
18908
|
+
} | {
|
|
18909
|
+
date: string;
|
|
18910
|
+
time: string;
|
|
18911
|
+
allergicReaction: boolean;
|
|
18912
|
+
allergicReactionNote?: string | null | undefined;
|
|
18913
|
+
accidentalExposure?: boolean | undefined;
|
|
18914
|
+
accidentalExposureNote?: string | null | undefined;
|
|
18915
|
+
ladderId?: string | null | undefined;
|
|
18916
|
+
ladderStageId?: string | null | undefined;
|
|
18917
|
+
} | undefined;
|
|
18918
|
+
note?: string | null | undefined;
|
|
18919
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
18920
|
+
pumpingAmounts?: {
|
|
18921
|
+
unit: "ml" | "oz";
|
|
18922
|
+
left?: number | null | undefined;
|
|
18923
|
+
right?: number | null | undefined;
|
|
18924
|
+
} | null | undefined;
|
|
18925
|
+
sleepMethods?: {
|
|
18926
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
18927
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
18928
|
+
} | null | undefined;
|
|
18929
|
+
sleepContext?: {
|
|
18930
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
18931
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
18932
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
18933
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
18934
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
18935
|
+
wake?: {
|
|
18936
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
18937
|
+
} | undefined;
|
|
18938
|
+
} | null | undefined;
|
|
18939
|
+
sleepNightId?: string | null | undefined;
|
|
18940
|
+
breastfeedSession?: {
|
|
18941
|
+
schemaVersion: 1;
|
|
18942
|
+
segments: {
|
|
18943
|
+
start: string;
|
|
18944
|
+
end: string;
|
|
18945
|
+
side: "left" | "right";
|
|
18946
|
+
}[];
|
|
18947
|
+
} | {
|
|
18948
|
+
schemaVersion: 2;
|
|
18949
|
+
phases: ({
|
|
18950
|
+
start: string;
|
|
18951
|
+
end: string;
|
|
18952
|
+
kind: "feeding";
|
|
18953
|
+
side: "left" | "right";
|
|
18954
|
+
} | {
|
|
18955
|
+
start: string;
|
|
18956
|
+
end: string;
|
|
18957
|
+
kind: "pause";
|
|
18958
|
+
})[];
|
|
18959
|
+
} | null | undefined;
|
|
18960
|
+
expectedPumpingRevision?: number | null | undefined;
|
|
18961
|
+
expectedTimerUpdatedAt?: string | undefined;
|
|
18962
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18963
|
+
pumpingSessionBeforeStop?: {
|
|
18964
|
+
schemaVersion: 1;
|
|
18965
|
+
revision: number;
|
|
18966
|
+
sides: {
|
|
18967
|
+
left?: {
|
|
18968
|
+
segments: {
|
|
18969
|
+
start: string;
|
|
18970
|
+
end: string | null;
|
|
18971
|
+
}[];
|
|
18972
|
+
stoppedAt: string | null;
|
|
18973
|
+
} | undefined;
|
|
18974
|
+
right?: {
|
|
18975
|
+
segments: {
|
|
18976
|
+
start: string;
|
|
18977
|
+
end: string | null;
|
|
18978
|
+
}[];
|
|
18979
|
+
stoppedAt: string | null;
|
|
18980
|
+
} | undefined;
|
|
18981
|
+
};
|
|
18982
|
+
} | null | undefined;
|
|
18983
|
+
}>, {
|
|
18984
|
+
timeZone: string;
|
|
18985
|
+
startedAt: string;
|
|
18986
|
+
activityType: "sleep" | "breastfeed" | "pumping";
|
|
18987
|
+
babyId: string;
|
|
18988
|
+
stoppedAt: string;
|
|
18989
|
+
pumpingSession?: {
|
|
18990
|
+
schemaVersion: 1;
|
|
18991
|
+
revision: number;
|
|
18992
|
+
sides: {
|
|
18993
|
+
left?: {
|
|
18994
|
+
segments: {
|
|
18995
|
+
start: string;
|
|
18996
|
+
end: string | null;
|
|
18997
|
+
}[];
|
|
18998
|
+
stoppedAt: string | null;
|
|
18999
|
+
} | undefined;
|
|
19000
|
+
right?: {
|
|
19001
|
+
segments: {
|
|
19002
|
+
start: string;
|
|
19003
|
+
end: string | null;
|
|
19004
|
+
}[];
|
|
19005
|
+
stoppedAt: string | null;
|
|
19006
|
+
} | undefined;
|
|
19007
|
+
};
|
|
19008
|
+
} | null | undefined;
|
|
19009
|
+
details?: {
|
|
19010
|
+
date: string;
|
|
19011
|
+
start: string;
|
|
19012
|
+
end: string;
|
|
19013
|
+
side: "left" | "right";
|
|
19014
|
+
} | {
|
|
19015
|
+
type: "breastmilk" | "formula" | "water" | "juice";
|
|
19016
|
+
date: string;
|
|
19017
|
+
unit: "ml" | "oz";
|
|
19018
|
+
time: string;
|
|
19019
|
+
amount: number;
|
|
19020
|
+
} | {
|
|
19021
|
+
type: "day" | "night";
|
|
19022
|
+
date: string;
|
|
19023
|
+
environment: "other" | "co-sleeping" | "contact-napping" | "baby-cot" | "motion-nap";
|
|
19024
|
+
start: string;
|
|
19025
|
+
end: string;
|
|
19026
|
+
mood: "content" | "restless" | "unsettled" | "wired";
|
|
19027
|
+
timeToSleep: "less-than-10-mins" | "10-to-20-mins" | "20-to-30-mins" | "30-to-40-mins" | "more-than-60-mins";
|
|
19028
|
+
} | {
|
|
19029
|
+
type: ("dirty" | "wet")[];
|
|
19030
|
+
date: string;
|
|
19031
|
+
time: string;
|
|
19032
|
+
imageURL?: string | null | undefined;
|
|
19033
|
+
} | {
|
|
19034
|
+
date: string;
|
|
19035
|
+
start: string;
|
|
19036
|
+
end: string;
|
|
19037
|
+
unit: "ml" | "oz";
|
|
19038
|
+
side: "left" | "right";
|
|
19039
|
+
amount: number;
|
|
19040
|
+
} | {
|
|
19041
|
+
date: string;
|
|
19042
|
+
time: string;
|
|
19043
|
+
medicationName: string;
|
|
19044
|
+
} | {
|
|
19045
|
+
date: string;
|
|
19046
|
+
time: string;
|
|
19047
|
+
allergicReaction: boolean;
|
|
19048
|
+
allergicReactionNote?: string | null | undefined;
|
|
19049
|
+
accidentalExposure?: boolean | undefined;
|
|
19050
|
+
accidentalExposureNote?: string | null | undefined;
|
|
19051
|
+
ladderId?: string | null | undefined;
|
|
19052
|
+
ladderStageId?: string | null | undefined;
|
|
19053
|
+
} | undefined;
|
|
19054
|
+
note?: string | null | undefined;
|
|
19055
|
+
pumpingSide?: "left" | "right" | "both" | null | undefined;
|
|
19056
|
+
pumpingAmounts?: {
|
|
19057
|
+
unit: "ml" | "oz";
|
|
19058
|
+
left?: number | null | undefined;
|
|
19059
|
+
right?: number | null | undefined;
|
|
19060
|
+
} | null | undefined;
|
|
19061
|
+
sleepMethods?: {
|
|
19062
|
+
fallAsleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
19063
|
+
backToSleep?: ("fed" | "motion" | "touch" | "held" | "dummy")[] | null | undefined;
|
|
19064
|
+
} | null | undefined;
|
|
19065
|
+
sleepContext?: {
|
|
19066
|
+
settled?: "content" | "unsettled" | "wide-awake" | "upset" | null | undefined;
|
|
19067
|
+
timeToFallAsleep?: "under-10" | "10-20" | "20-30" | "30-plus" | null | undefined;
|
|
19068
|
+
awakeBefore?: "calm" | "mixed" | "busy" | null | undefined;
|
|
19069
|
+
activitiesBefore?: ("out-and-about" | "visitors" | "class-or-group" | "nursery" | "car-or-pram" | "quiet-play-at-home")[] | undefined;
|
|
19070
|
+
moodOnWaking?: "content" | "unsettled" | "upset" | null | undefined;
|
|
19071
|
+
wake?: {
|
|
19072
|
+
reasons: ("fed" | "resettled" | "nappy")[];
|
|
19073
|
+
} | undefined;
|
|
19074
|
+
} | null | undefined;
|
|
19075
|
+
sleepNightId?: string | null | undefined;
|
|
19076
|
+
breastfeedSession?: {
|
|
19077
|
+
schemaVersion: 1;
|
|
19078
|
+
segments: {
|
|
19079
|
+
start: string;
|
|
19080
|
+
end: string;
|
|
19081
|
+
side: "left" | "right";
|
|
19082
|
+
}[];
|
|
19083
|
+
} | {
|
|
19084
|
+
schemaVersion: 2;
|
|
19085
|
+
phases: ({
|
|
19086
|
+
start: string;
|
|
19087
|
+
end: string;
|
|
19088
|
+
kind: "feeding";
|
|
19089
|
+
side: "left" | "right";
|
|
19090
|
+
} | {
|
|
19091
|
+
start: string;
|
|
19092
|
+
end: string;
|
|
19093
|
+
kind: "pause";
|
|
19094
|
+
})[];
|
|
19095
|
+
} | null | undefined;
|
|
19096
|
+
expectedPumpingRevision?: number | null | undefined;
|
|
19097
|
+
expectedTimerUpdatedAt?: string | undefined;
|
|
19098
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18580
19099
|
pumpingSessionBeforeStop?: {
|
|
18581
19100
|
schemaVersion: 1;
|
|
18582
19101
|
revision: number;
|
|
@@ -18712,6 +19231,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
18712
19231
|
} | null | undefined;
|
|
18713
19232
|
expectedPumpingRevision?: number | null | undefined;
|
|
18714
19233
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19234
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18715
19235
|
pumpingSessionBeforeStop?: {
|
|
18716
19236
|
schemaVersion: 1;
|
|
18717
19237
|
revision: number;
|
|
@@ -18847,6 +19367,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
18847
19367
|
} | null | undefined;
|
|
18848
19368
|
expectedPumpingRevision?: number | null | undefined;
|
|
18849
19369
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19370
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18850
19371
|
pumpingSessionBeforeStop?: {
|
|
18851
19372
|
schemaVersion: 1;
|
|
18852
19373
|
revision: number;
|
|
@@ -18982,6 +19503,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
18982
19503
|
} | null | undefined;
|
|
18983
19504
|
expectedPumpingRevision?: number | null | undefined;
|
|
18984
19505
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19506
|
+
joinSleepNapActivityId?: string | undefined;
|
|
18985
19507
|
pumpingSessionBeforeStop?: {
|
|
18986
19508
|
schemaVersion: 1;
|
|
18987
19509
|
revision: number;
|
|
@@ -19117,6 +19639,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19117
19639
|
} | null | undefined;
|
|
19118
19640
|
expectedPumpingRevision?: number | null | undefined;
|
|
19119
19641
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19642
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19120
19643
|
pumpingSessionBeforeStop?: {
|
|
19121
19644
|
schemaVersion: 1;
|
|
19122
19645
|
revision: number;
|
|
@@ -19252,6 +19775,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19252
19775
|
} | null | undefined;
|
|
19253
19776
|
expectedPumpingRevision?: number | null | undefined;
|
|
19254
19777
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19778
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19255
19779
|
pumpingSessionBeforeStop?: {
|
|
19256
19780
|
schemaVersion: 1;
|
|
19257
19781
|
revision: number;
|
|
@@ -19387,6 +19911,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19387
19911
|
} | null | undefined;
|
|
19388
19912
|
expectedPumpingRevision?: number | null | undefined;
|
|
19389
19913
|
expectedTimerUpdatedAt?: string | undefined;
|
|
19914
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19390
19915
|
pumpingSessionBeforeStop?: {
|
|
19391
19916
|
schemaVersion: 1;
|
|
19392
19917
|
revision: number;
|
|
@@ -19522,6 +20047,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19522
20047
|
} | null | undefined;
|
|
19523
20048
|
expectedPumpingRevision?: number | null | undefined;
|
|
19524
20049
|
expectedTimerUpdatedAt?: string | undefined;
|
|
20050
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19525
20051
|
pumpingSessionBeforeStop?: {
|
|
19526
20052
|
schemaVersion: 1;
|
|
19527
20053
|
revision: number;
|
|
@@ -19657,6 +20183,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19657
20183
|
} | null | undefined;
|
|
19658
20184
|
expectedPumpingRevision?: number | null | undefined;
|
|
19659
20185
|
expectedTimerUpdatedAt?: string | undefined;
|
|
20186
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19660
20187
|
pumpingSessionBeforeStop?: {
|
|
19661
20188
|
schemaVersion: 1;
|
|
19662
20189
|
revision: number;
|
|
@@ -19792,6 +20319,7 @@ export declare const activeActivityTimerStopRequestSchema: z.ZodEffects<z.ZodEff
|
|
|
19792
20319
|
} | null | undefined;
|
|
19793
20320
|
expectedPumpingRevision?: number | null | undefined;
|
|
19794
20321
|
expectedTimerUpdatedAt?: string | undefined;
|
|
20322
|
+
joinSleepNapActivityId?: string | undefined;
|
|
19795
20323
|
pumpingSessionBeforeStop?: {
|
|
19796
20324
|
schemaVersion: 1;
|
|
19797
20325
|
revision: number;
|