@gtom/omni-tom-contracts
v0.5.6
Published
Shared types, constants, and WebSocket event names for Omni-Tom
Downloads
412
Readme
@gtom/omni-tom-contracts
Shared types, constants, and WebSocket event names for Omni-Tom. No runtime logic.
Published to the npm registry when a contracts-v* tag is pushed (e.g. contracts-v0.1.0).
Install
npm install @gtom/omni-tom-contractsNo extra .npmrc is required for consumers (public scoped package on npmjs.org).
CI publish setup
- Create the
@gtomorganization on npmjs.com (or ensure the scope exists). - Generate an automation token with publish rights.
- Add it as
NPM_TOKENin the GitHub environment Omni-Tom-Production. - Push a tag (e.g.
git tag contracts-v0.1.0 && git push origin contracts-v0.1.0) to runpublish-contracts.yml.
Backend and frontend consume this package from npm (^0.1.0), not via file: paths.
Build
npm run buildExports
SUPPORTED_LOCALES,Locale,DEFAULT_LOCALE,FALLBACK_LOCALEErrorCode,ApiErrorResponse- REST DTOs (
Message,Conversation,AuthMeResponse, …) RealtimeClientEvent,RealtimeServerEvent, room helpers, payload types
