Added state selector for world

This commit is contained in:
Alexis
2025-03-04 19:02:27 +01:00
parent 204de011f6
commit 282aabb7fa
7 changed files with 54 additions and 9 deletions

View File

@@ -3,8 +3,8 @@ import type { CalendarEvent } from "./CalendarEvent"
import { calendarMonthSchema, type CalendarMonth } from "./CalendarMonth"
import { dateSchema, type RPGDate } from "./Date"
import type { World } from "./World"
import type { ContentState } from "./Entity"
export type CalendarState = "published" | "draft" | "archived"
export interface CalendarConfig {
months: CalendarMonth[]
@@ -17,7 +17,7 @@ export interface Calendar extends CalendarConfig {
name: string
events: CalendarEvent[]
eventNb?: Array<{ count: number }>
state: CalendarState
state: ContentState
color?: string
world?: World
createdAt?: string