Appearance
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 ListingCategoryEnumexport type ListingCategoryValueexport const ListingStatusEnumexport type ListingStatusValueexport const CreateListingSchemaexport type CreateListingBodyexport const UpdateListingSchemaexport type UpdateListingBodyexport const CreateReviewSchemaexport type CreateReviewBodyexport const ListingQuerySchemaexport type ListingQuery
Imports ​
zod