refactor: event instances
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user