Metakit / API
@doeixd/metakit/domain
Domain Schemas & symbolic ops (@doeixd/metakit/domain):
Money(fixed-scale integer minor units + compile-time currency safety)Decimal(fixed-scale integer units + compile-time scale safety + half-even rounding)CalendarDay(timezone-free epoch days)OrderedEnum(totally ordered string literal enums lowered to integer ranks)Text(text holding no NUL, which the checkers can prove rules over)Domainannotation reader (domainOf)
Namespaces
CalendarDay | Timezone-free CalendarDay Schema backed by integer epoch days (days since 1970-01-01), with symbolic arithmetic and ordering lowering directly to integer… |
Decimal | Fixed-scale integer-backed Decimal Schema (@doeixd/metakit/domain) with compile-time scale safety, exact decimal text parsing and formatting, half-even… |
Domain | Domain annotations attached to Effect Schemas so non-interpreter consumers (forms, grids, JSON Schema, agents) recognize Money, CalendarDay, OrderedEnum,… |
Id | Id: branded, non-empty, NUL-free entity identifiers (@doeixd/metakit/domain). |
Money | Fixed-scale integer-backed Money and Currency Schemas + symbolic ops. |
OrderedEnum | OrderedEnum: an Effect Schema.Literals with a total order (e.g. draft < pending < paid < refunded). |
Ordinal | Ordinal: lexicographic fractional-index ordering keys (@doeixd/metakit/domain). |
Text | Text that holds no NUL character (U+0000), which Postgres cannot store and every text and equality operation refuses. A field of Text.schema is one the… |
Interfaces
Types
CalendarDayValue | Integer epoch day (0 = 1970-01-01), timezone-free. |
DecimalValue | Integer count of fixed-scale decimal units (10^-S). |
IdValue | A branded string identifier for entity Entity. |
MoneyValue | Integer minor-unit amount branded by currency C and decimal scale S. |
OrdinalValue | A base-62 lexicographic ordinal key (0-9A-Za-z, non-empty). |