Appearance
apps/api/src/features/rideshare/rideshare.schema.ts ​
Auto-generated by
scripts/generate-file-docs.ts. Do not edit — overwritten on every run.
Purpose ​
Request body / query schemas for the ride share feature slice. Covers /rideshare/trips, /rideshare/trips/:id, and the per-passenger confirm/decline/cancel routes per docs/internal/design/api-contracts.md (Ride Share) and the Prisma Trip / TripPassenger models. Member-only feature: VISITOR may not interact with any of these routes. Role gating lives in the service layer (RideshareService) so the schemas stay transport-agnostic. /
Exports ​
export const TripStatusEnumexport type TripStatusValueexport const CreateTripSchemaexport type CreateTripBodyexport const UpdateTripSchemaexport type UpdateTripBodyexport const RequestRideSchemaexport type RequestRideBodyexport const TripQuerySchemaexport type TripQuery
Imports ​
zod