feat(season): easter-offset + nth-weekday datumregler för marknads-högtider (MIKRO A)
CI / Typecheck, test & build (push) Failing after 42s

This commit is contained in:
Sven (AAMOS AI)
2026-08-14 21:46:17 +07:00
parent cd6a9eb556
commit 19af7e0720
2 changed files with 36 additions and 2 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ import { createdAt, updatedAt } from "./_shared.js";
type DateRule =
| { kind: "fixed"; monthDay: string }
| { kind: "range"; startMonthDay: string; endMonthDay: string }
| { kind: "computed"; algorithm: "midsummer" | "easter" | "advent" | "custom" };
| { kind: "computed"; algorithm: "midsummer" | "easter" | "advent" | "custom" }
| { kind: "easter-offset"; days: number }
| { kind: "nth-weekday"; month: number; weekday: number; n: number | "last" };
/**
* Datadriven Season & Events Engine (spec §28): midsommar, jul, påsk, kräftskiva,