Variable createEventSchemaConst
createEventSchema: ZodObject<
{
placeId: ZodString;
title: ZodString;
description: ZodOptional<ZodString>;
category: ZodEnum<
[
"concert",
"theater",
"sport",
"community",
"festival",
"exhibition",
"workshop",
"other",
],
>;
status: ZodDefault<ZodEnum<["live", "stale", "ended", "past"]>>;
startDate: ZodString;
endDate: ZodOptional<ZodString>;
buyUrl: ZodOptional<ZodEffects<ZodString, string, string>>;
sourceUrl: ZodOptional<ZodEffects<ZodString, string, string>>;
sourcePlatform: ZodOptional<ZodString>;
imageUrl: ZodOptional<ZodEffects<ZodString, string, string>>;
price: ZodOptional<ZodNumber>;
currency: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
placeId: string;
title: string;
description?: string;
category: | "theater"
| "other"
| "concert"
| "sport"
| "community"
| "festival"
| "exhibition"
| "workshop";
status: "live"
| "stale"
| "ended"
| "past";
startDate: string;
endDate?: string;
buyUrl?: string;
sourceUrl?: string;
sourcePlatform?: string;
imageUrl?: string;
price?: number;
currency?: string;
},
{
placeId: string;
title: string;
description?: string;
category: | "theater"
| "other"
| "concert"
| "sport"
| "community"
| "festival"
| "exhibition"
| "workshop";
status?: "live"
| "stale"
| "ended"
| "past";
startDate: string;
endDate?: string;
buyUrl?: string;
sourceUrl?: string;
sourcePlatform?: string;
imageUrl?: string;
price?: number;
currency?: string;
},
> = ...