Skip to content

@kaiord/core


@kaiord/core / ComputeDailyDeltaInput

Type Alias: ComputeDailyDeltaInput ​

ComputeDailyDeltaInput = object

Defined in: packages/core/src/application/energy/goal-delta.ts:33

Properties ​

currentWeightKg ​

currentWeightKg: number

Defined in: packages/core/src/application/energy/goal-delta.ts:35


goalType ​

goalType: GoalType

Defined in: packages/core/src/application/energy/goal-delta.ts:34


maintenanceKcal ​

maintenanceKcal: number

Defined in: packages/core/src/application/energy/goal-delta.ts:41


overrideCap? ​

optional overrideCap?: boolean

Defined in: packages/core/src/application/energy/goal-delta.ts:46

When true and a safety cap would bind, return the raw (unclamped) delta while still reporting capped/capReason so callers keep the warning.


targetDate ​

targetDate: string

Defined in: packages/core/src/application/energy/goal-delta.ts:38

ISO date (YYYY-MM-DD) for the planned horizon.


targetWeightKg ​

targetWeightKg: number

Defined in: packages/core/src/application/energy/goal-delta.ts:36


today ​

today: string

Defined in: packages/core/src/application/energy/goal-delta.ts:40

ISO date (YYYY-MM-DD) for "now".