/** * Near-Me Review Schemas * ====================== * A rating + optional text/photos left by a seeker on a business (one review * per user per business). Owners may respond once. The list endpoint attaches * the business's rating aggregate. */ import { z } from 'zod'; /** Create (or update) a review. */ export declare const createReviewBodySchema: z.ZodObject<{ businessId: z.ZodString; rating: z.ZodNumber; text: z.ZodPreprocess>; photos: z.ZodDefault>; }, z.core.$strip>; export type CreateReviewInput = z.infer; /** Owner's single response to a review. */ export declare const ownerRespondBodySchema: z.ZodObject<{ response: z.ZodString; }, z.core.$strip>; export type OwnerRespondInput = z.infer; /** Reviews list query. */ export declare const reviewsQuerySchema: z.ZodObject<{ page: z.ZodDefault>; limit: z.ZodDefault>; }, z.core.$strip>; export type ReviewsQuery = z.infer; export interface NearMeReview { _id: string; businessId: string; userId: string; userName: string; rating: number; text?: string; photos: string[]; ownerResponse?: string; ownerRespondedAt?: string; helpfulCount: number; createdAt: string; updatedAt: string; } /** Paginated reviews + the business rating aggregate. */ export interface NearMeReviewListResult { items: NearMeReview[]; total: number; page: number; limit: number; totalPages: number; ratingAvg: number; ratingCount: number; } //# sourceMappingURL=review.schema.d.ts.map