@x-ecosystem/core
v0.0.3
Published
Shared types, Mongoose schemas, and proto definitions for the x-ecosystem.
Downloads
339
Readme
@x-ecosystem/core
Shared types, Mongoose schemas, and proto definitions for the x-ecosystem.
Codifies the conventions in:
docs/STANDARDS-MONGODB.mddocs/STANDARDS-REST-API.mddocs/STANDARDS-GRPC-API.md
Planned layout
src/
enums/ # RecordState, Currency, JobStatus
interfaces/ # IRecord, IXRN, IMoney, IXError, IPage, IJob
schemas/ # Mongoose embedded schemas: Record, XRN, Money
protos/ # Shared gRPC proto messages (XRN, Job, XError, ...)Build
npm install
npm run buildUsage
import { RecordSchema, XRNSchema, MoneySchema } from '@x-ecosystem/core';mongoose and @nestjs/mongoose are optional peer dependencies — install them in consuming services when you use the Mongoose schemas.
Status
Initial scaffold. Contents will be migrated from the standards docs.
