Skip to content

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 TripStatusEnum
  • export type TripStatusValue
  • export const CreateTripSchema
  • export type CreateTripBody
  • export const UpdateTripSchema
  • export type UpdateTripBody
  • export const RequestRideSchema
  • export type RequestRideBody
  • export const TripQuerySchema
  • export type TripQuery

Imports ​

  • zod

Imported by ​

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.