Added first draft of story

This commit is contained in:
Alexis
2024-12-09 23:58:16 +01:00
parent 323eedec56
commit 49574d8ef1
8 changed files with 170 additions and 10 deletions

View File

@@ -2,6 +2,9 @@ import { z } from "zod"
import type { CalendarEvent } from "./CalendarEvent"
import { calendarMonthSchema, type CalendarMonth } from "./CalendarMonth"
import { dateSchema, type RPGDate } from "./Date"
import type { World } from "./World"
export type CalendarState = "published" | "draft" | "archived"
export interface CalendarConfig {
months: CalendarMonth[]
@@ -10,9 +13,12 @@ export interface CalendarConfig {
export interface Calendar extends CalendarConfig {
id?: number
shortId: string
name: string
events: CalendarEvent[]
state: CalendarState
color?: string
world?: World
}
export const postCalendarSchema = z.object({