refactor: event instances

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-07-03 19:10:00 -04:00
parent acbe0ad5ca
commit 37fa7b911e
17 changed files with 498 additions and 479 deletions
@@ -1,9 +1,9 @@
import type { EntityObject } from '@ChronoManager/models/entity'
export interface CalendarOccurrence {
export interface CalendarInstance {
key: string
entity: EntityObject
occurrenceId: string | null
instanceId: string | null
startMs: number
endMs: number
dayStartMs: number
@@ -13,9 +13,3 @@ export interface CalendarOccurrence {
label: string | null
color: string | null
}
export interface CalendarOccurrenceIndex {
byDay: Map<number, CalendarOccurrence[]>
byEntity: Map<string, CalendarOccurrence[]>
sorted: CalendarOccurrence[]
}