@voyant-travel/charters-contracts
v0.104.1
Published
Pure charter content contracts for adapter implementers and external consumers that need to validate `charters/v1` rich content payloads without installing the full charters runtime package.
Readme
@voyant-travel/charters-contracts
Pure charter content contracts for adapter implementers and external
consumers that need to validate charters/v1 rich content payloads
without installing the full charters runtime package.
Use this package for CHARTERS_CONTENT_SCHEMA_VERSION,
charterContentSchema, CharterContent, nested content types, and
validateCharterContent. Use @voyant-travel/charters when you also need
Drizzle schema, routes, services, booking integration, catalog projection, or
runtime content resolution (including the mergeOverlaysIntoCharterContent
overlay composition).
Install
pnpm add @voyant-travel/charters-contracts zodUsage
import {
CHARTERS_CONTENT_SCHEMA_VERSION,
charterContentSchema,
type CharterContent,
} from "@voyant-travel/charters-contracts"Existing @voyant-travel/charters/content-shape imports remain available for
applications that already depend on the full runtime package.
