@nikthegeek/dreamsforlittles-shared 0.14.0 → 0.15.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.
@@ -170,7 +170,7 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
170
170
  ladderId?: string | null | undefined;
171
171
  ladderStageId?: string | null | undefined;
172
172
  }>]>;
173
- breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
173
+ breastfeedSession: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
174
174
  schemaVersion: z.ZodLiteral<1>;
175
175
  segments: z.ZodArray<z.ZodObject<{
176
176
  side: z.ZodEnum<["left", "right"]>;
@@ -213,7 +213,85 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
213
213
  end: string;
214
214
  side: "left" | "right";
215
215
  }[];
216
- }>>>;
216
+ }>, z.ZodEffects<z.ZodObject<{
217
+ schemaVersion: z.ZodLiteral<2>;
218
+ phases: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
219
+ kind: z.ZodLiteral<"feeding">;
220
+ side: z.ZodEnum<["left", "right"]>;
221
+ start: z.ZodString;
222
+ end: z.ZodString;
223
+ }, "strict", z.ZodTypeAny, {
224
+ kind: "feeding";
225
+ start: string;
226
+ end: string;
227
+ side: "left" | "right";
228
+ }, {
229
+ kind: "feeding";
230
+ start: string;
231
+ end: string;
232
+ side: "left" | "right";
233
+ }>, z.ZodObject<{
234
+ kind: z.ZodLiteral<"pause">;
235
+ start: z.ZodString;
236
+ end: z.ZodString;
237
+ }, "strict", z.ZodTypeAny, {
238
+ kind: "pause";
239
+ start: string;
240
+ end: string;
241
+ }, {
242
+ kind: "pause";
243
+ start: string;
244
+ end: string;
245
+ }>]>, "many">;
246
+ }, "strict", z.ZodTypeAny, {
247
+ schemaVersion: 2;
248
+ phases: ({
249
+ kind: "feeding";
250
+ start: string;
251
+ end: string;
252
+ side: "left" | "right";
253
+ } | {
254
+ kind: "pause";
255
+ start: string;
256
+ end: string;
257
+ })[];
258
+ }, {
259
+ schemaVersion: 2;
260
+ phases: ({
261
+ kind: "feeding";
262
+ start: string;
263
+ end: string;
264
+ side: "left" | "right";
265
+ } | {
266
+ kind: "pause";
267
+ start: string;
268
+ end: string;
269
+ })[];
270
+ }>, {
271
+ schemaVersion: 2;
272
+ phases: ({
273
+ kind: "feeding";
274
+ start: string;
275
+ end: string;
276
+ side: "left" | "right";
277
+ } | {
278
+ kind: "pause";
279
+ start: string;
280
+ end: string;
281
+ })[];
282
+ }, {
283
+ schemaVersion: 2;
284
+ phases: ({
285
+ kind: "feeding";
286
+ start: string;
287
+ end: string;
288
+ side: "left" | "right";
289
+ } | {
290
+ kind: "pause";
291
+ start: string;
292
+ end: string;
293
+ })[];
294
+ }>]>>>;
217
295
  allergenIds: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodEnum<["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", ...("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")[]]>, "many">, ("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")[], ("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")[]>, ("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")[], ("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")[]>>;
218
296
  occurredAt: z.ZodString;
219
297
  timeZone: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
@@ -287,6 +365,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
287
365
  end: string;
288
366
  side: "left" | "right";
289
367
  }[];
368
+ } | {
369
+ schemaVersion: 2;
370
+ phases: ({
371
+ kind: "feeding";
372
+ start: string;
373
+ end: string;
374
+ side: "left" | "right";
375
+ } | {
376
+ kind: "pause";
377
+ start: string;
378
+ end: string;
379
+ })[];
290
380
  } | null | undefined;
291
381
  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;
292
382
  }, {
@@ -354,6 +444,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
354
444
  end: string;
355
445
  side: "left" | "right";
356
446
  }[];
447
+ } | {
448
+ schemaVersion: 2;
449
+ phases: ({
450
+ kind: "feeding";
451
+ start: string;
452
+ end: string;
453
+ side: "left" | "right";
454
+ } | {
455
+ kind: "pause";
456
+ start: string;
457
+ end: string;
458
+ })[];
357
459
  } | null | undefined;
358
460
  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;
359
461
  }>, {
@@ -421,6 +523,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
421
523
  end: string;
422
524
  side: "left" | "right";
423
525
  }[];
526
+ } | {
527
+ schemaVersion: 2;
528
+ phases: ({
529
+ kind: "feeding";
530
+ start: string;
531
+ end: string;
532
+ side: "left" | "right";
533
+ } | {
534
+ kind: "pause";
535
+ start: string;
536
+ end: string;
537
+ })[];
424
538
  } | null | undefined;
425
539
  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;
426
540
  }, {
@@ -488,6 +602,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
488
602
  end: string;
489
603
  side: "left" | "right";
490
604
  }[];
605
+ } | {
606
+ schemaVersion: 2;
607
+ phases: ({
608
+ kind: "feeding";
609
+ start: string;
610
+ end: string;
611
+ side: "left" | "right";
612
+ } | {
613
+ kind: "pause";
614
+ start: string;
615
+ end: string;
616
+ })[];
491
617
  } | null | undefined;
492
618
  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;
493
619
  }>, "many">;
@@ -557,6 +683,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
557
683
  end: string;
558
684
  side: "left" | "right";
559
685
  }[];
686
+ } | {
687
+ schemaVersion: 2;
688
+ phases: ({
689
+ kind: "feeding";
690
+ start: string;
691
+ end: string;
692
+ side: "left" | "right";
693
+ } | {
694
+ kind: "pause";
695
+ start: string;
696
+ end: string;
697
+ })[];
560
698
  } | null | undefined;
561
699
  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;
562
700
  }[];
@@ -626,6 +764,18 @@ export declare const analysisActivitiesResponseSchema: z.ZodObject<{
626
764
  end: string;
627
765
  side: "left" | "right";
628
766
  }[];
767
+ } | {
768
+ schemaVersion: 2;
769
+ phases: ({
770
+ kind: "feeding";
771
+ start: string;
772
+ end: string;
773
+ side: "left" | "right";
774
+ } | {
775
+ kind: "pause";
776
+ start: string;
777
+ end: string;
778
+ })[];
629
779
  } | null | undefined;
630
780
  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;
631
781
  }[];