feat(events): adding start and end times
This commit is contained in:
@@ -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_(),
|
||||
|
||||
Reference in New Issue
Block a user