2023-12-22 09:13:53 +01:00
|
|
|
import { z } from '../../../zod'
|
2023-11-08 15:34:16 +01:00
|
|
|
import { eventBaseSchema } from '../shared'
|
|
|
|
|
import { EventType } from '../constants'
|
|
|
|
|
|
2023-12-22 09:13:53 +01:00
|
|
|
export const startEventSchema = eventBaseSchema
|
|
|
|
|
.extend({
|
|
|
|
|
type: z.literal(EventType.START),
|
|
|
|
|
})
|
|
|
|
|
.openapi({
|
|
|
|
|
description: 'Event',
|
|
|
|
|
ref: 'event',
|
|
|
|
|
})
|