mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
refactor: normalise data (#756)
* chore: remove legal from bundle * refactor: create normalised dataset * refactor: cuesheet uses flat rundown * refactor: multi-selection * refactor: prevent stale data on server restart * refactor: increase ID size * chore: instrument operation * chore: update csv tests * fix: resolve directory to test-db (#758)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { OntimeRundown } from '../../definitions/core/Rundown.type.js';
|
||||
import { OntimeRundownEntry } from '../../definitions/core/Rundown.type.js';
|
||||
|
||||
export interface GetRundownCached {
|
||||
rundown: OntimeRundown;
|
||||
type EventId = string;
|
||||
export type NormalisedRundown = Record<EventId, OntimeRundownEntry>;
|
||||
|
||||
export interface RundownCached {
|
||||
rundown: NormalisedRundown;
|
||||
order: EventId[];
|
||||
revision: number;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ export type OntimeBaseEvent = {
|
||||
export type OntimeDelay = OntimeBaseEvent & {
|
||||
type: SupportedEvent.Delay;
|
||||
duration: number;
|
||||
revision: number;
|
||||
};
|
||||
|
||||
export type OntimeBlock = OntimeBaseEvent & {
|
||||
|
||||
@@ -48,7 +48,7 @@ export type {
|
||||
ProjectFileListResponse,
|
||||
MessageResponse,
|
||||
} from './api/ontime-controller/BackendResponse.type.js';
|
||||
export type { GetRundownCached } from './api/rundown-controller/BackendResponse.type.js';
|
||||
export type { RundownCached, NormalisedRundown } from './api/rundown-controller/BackendResponse.type.js';
|
||||
|
||||
// SERVER RUNTIME
|
||||
export { type Log, LogLevel, type LogMessage, LogOrigin } from './definitions/runtime/Logger.type.js';
|
||||
|
||||
Reference in New Issue
Block a user