@kaiord/core / strainSummarySchema
Variable: strainSummarySchema
conststrainSummarySchema:ZodObject<{date:ZodISODate;dayAverageHeartRate:ZodOptional<ZodNumber>;dayMaxHeartRate:ZodOptional<ZodNumber>;energyKilojoules:ZodOptional<ZodNumber>;externalId:ZodOptional<ZodString>;kaiordRecordId:ZodOptional<ZodString>;kind:ZodLiteral<"strain">;sourceBridgeId:ZodOptional<ZodString>;strainScore:ZodNumber;version:ZodString; },$strip>
Defined in: packages/core/src/domain/schemas/health/strain.ts:14
Zod schema for extensions.health.strain — a read-only, source-agnostic cardiovascular-load summary (e.g. WHOOP's 0–21 strain scale plus companion day-level heart-rate and energy figures). Unlike the six FIT-core health types it is not mandated to round-trip through FIT.
A refinement requires dayMaxHeartRate >= dayAverageHeartRate when both are present.