Skip to content

apps/api/src/features/marketplace/marketplace.schema.ts ​

Auto-generated by scripts/generate-file-docs.ts. Do not edit — overwritten on every run.

Purpose ​

Request body / query schemas for the marketplace feature slice. Backs /api/v1/marketplace per docs/internal/design/api-contracts.md (Marketplace) and the Prisma Listing / ListingReview models. Visibility: - Member-only feature. requireAuth gates access in the router; service additionally enforces ACTIVE + MEMBER+ for write operations. - Listings expire after 30 days by default (caller may override). - One review per buyer per listing (enforced by Prisma @@unique). /

Exports ​

  • export const ListingCategoryEnum
  • export type ListingCategoryValue
  • export const ListingStatusEnum
  • export type ListingStatusValue
  • export const CreateListingSchema
  • export type CreateListingBody
  • export const UpdateListingSchema
  • export type UpdateListingBody
  • export const CreateReviewSchema
  • export type CreateReviewBody
  • export const ListingQuerySchema
  • export type ListingQuery

Imports ​

  • zod

Imported by ​

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