fix event type valdiations
This commit is contained in:
+9
-7
@@ -142,13 +142,15 @@ interface EventTypeExtended extends Omit<EventType, "recurringEvent" | "location
|
||||
freq?: Frequency | undefined;
|
||||
until?: Date | undefined;
|
||||
tzid?: string | undefined;
|
||||
};
|
||||
locations: {
|
||||
link?: string | undefined;
|
||||
address?: string | undefined;
|
||||
hostPhoneNumber?: string | undefined;
|
||||
type: DefaultLocationType | AppStoreLocationType;
|
||||
}[];
|
||||
} | null;
|
||||
locations:
|
||||
| {
|
||||
link?: string | undefined;
|
||||
address?: string | undefined;
|
||||
hostPhoneNumber?: string | undefined;
|
||||
type: DefaultLocationType | AppStoreLocationType;
|
||||
}[]
|
||||
| null;
|
||||
}
|
||||
|
||||
// EventType
|
||||
|
||||
@@ -103,8 +103,7 @@ export const schemaEventTypeReadPublic = EventType.pick({
|
||||
tzid: timeZone.optional(),
|
||||
})
|
||||
.optional()
|
||||
.nullable()
|
||||
.or(z.null()),
|
||||
.nullable(),
|
||||
locations: z
|
||||
.array(
|
||||
z.object({
|
||||
|
||||
Reference in New Issue
Block a user