refactor: add rundown summary to import preview

This commit is contained in:
Carlos Valente
2025-11-02 12:46:26 +01:00
committed by Carlos Valente
parent 3918664945
commit e6070e6efd
12 changed files with 103 additions and 35 deletions
@@ -1,4 +1,5 @@
import type { EntryId, OntimeEntry } from '../../definitions/core/OntimeEntry.js';
import type { MaybeNumber } from '../../utils/utils.type.js';
export type PatchWithId<T extends OntimeEntry = OntimeEntry> = Partial<T> & { id: EntryId };
@@ -23,3 +24,9 @@ export type ProjectRundownsList = {
loaded: string;
rundowns: ProjectRundown[];
};
export type RundownSummary = {
duration: number;
start: MaybeNumber;
end: MaybeNumber;
};
+1
View File
@@ -83,6 +83,7 @@ export type {
ProjectRundown,
ProjectRundownsList,
TransientEventPayload,
RundownSummary,
} from './api/rundown-controller/BackendResponse.type.js';
export type { LinkOptions } from './api/session-controller/BackendResponse.type.js';