mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
Merge branch 'fix/v1391-cycle-and-links' into release/v1.39.1
This commit is contained in:
commit
ee23409b77
37 files changed
+1236
-101
No files matched your search
@@ -186,7 +186,7 @@ const cyclePredictionDto = z
|
||||
"The materialised forecast. Fertile-window fields (and predictedOvulation/ovulationConfirmed) are server-suppressed (null/false) unless the goal is TRYING_TO_CONCEIVE or AVOID_PREGNANCY.",
|
||||
});
|
||||
|
||||
const cycleCalendarDayDto = z.object({
|
||||
export const cycleCalendarDayDto = z.object({
|
||||
date: z.string(),
|
||||
phase: cyclePhaseEnumOpenapi.nullable(),
|
||||
isPredictedPeriod: z.boolean(),
|
||||
@@ -218,6 +218,23 @@ const cycleCalendarDayDto = z.object({
|
||||
cervixPosition: cervixPositionEnum.nullable(),
|
||||
cervixFirmness: cervixFirmnessEnum.nullable(),
|
||||
cervixOpening: cervixOpeningEnum.nullable(),
|
||||
// v1.39.1 — the rest of what a day log can hold, so a day with only one of
|
||||
// these logged no longer reads as an empty day. Additive: an older client
|
||||
// that does not know a field ignores it.
|
||||
intermenstrualBleeding: z.boolean().meta({
|
||||
description: "Spotting or bleeding outside the period logged on this day.",
|
||||
}),
|
||||
sexualActivity: z.boolean().meta({
|
||||
description:
|
||||
"Intercourse logged on this day. Resolved from the plaintext column or the encrypted envelope, exactly as the day-log read resolves it, and served under the same cycle grant.",
|
||||
}),
|
||||
pregnancyTest: homeTestResultEnumOpenapi.nullable(),
|
||||
progesteroneTest: homeTestResultEnumOpenapi.nullable(),
|
||||
contraceptive: z.string().nullable(),
|
||||
hasNote: z.boolean().meta({
|
||||
description:
|
||||
"Whether the day carries a note. The note text is only on the day-log read.",
|
||||
}),
|
||||
});
|
||||
|
||||
const cycleVerdictDto = z
|
||||
|
||||
Reference in new issue
Block a user