mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Every new endpoint of the contract exists, wrapped in apiHandler, with its authentication, module gate and request validation, and answers 501 not_implemented until its behaviour lands. The OpenAPI document carries the new operations and schemas and the additive response fields on the changed routes. The four server feature flags are published as false. contract-stub-inventory.test.ts registers the stubbed routes; each one leaves the register with the change that fills it. The route, sharing, session, security, module-gate and outcome inventories name the new routes deliberately, and the error-code catalogue lists the codes the routes emit today.
15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
/**
|
|
* v1.43 (#1107 follow-up) — the admin pulse day-mean dry run and apply step.
|
|
*/
|
|
import { z } from "zod/v4";
|
|
|
|
export const PULSE_DAY_MEAN_METHODS = [
|
|
"hour_mean_v1",
|
|
"weighted_hour_mean_v2",
|
|
] as const;
|
|
|
|
export const pulseDayMeanActionSchema = z.strictObject({
|
|
action: z.enum(["dry_run", "apply"]),
|
|
});
|
|
export type PulseDayMeanActionInput = z.infer<typeof pulseDayMeanActionSchema>;
|