feat(events): adding start and end times

This commit is contained in:
2025-03-31 17:32:55 +00:00
parent 3f53317c06
commit c817654f3e
4 changed files with 41 additions and 18 deletions

View File

@@ -10,6 +10,9 @@ import {
uuid,
literal,
variant,
date,
isoDate,
isoDateTime,
} from "valibot";
type BaseRequestParams = Partial<{
@@ -53,13 +56,14 @@ const locationValidator = object({
ID: pipe(string(), uuid()),
Name: string(),
Address: nullable(string()),
Coordinates: nullable(string()),
Description: nullable(string()),
});
const eventValidator = object({
ID: pipe(string(), uuid()),
Name: string(),
StartDateTime: nullable(pipe(string())),
EndDateTime: nullable(pipe(string())),
Description: nullable(string()),
LocationID: nullable(pipe(string(), uuid())),
Location: null_(),