mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
refactor: runtime service (#1722)
* refactor: trim type * refactor: update runtime service data push logic * keep using just deep * reword didDependencyUpdate * remove dulicate
This commit is contained in:
committed by
Carlos Valente
parent
e0149c1cbf
commit
022a58e142
@@ -1,7 +1,7 @@
|
||||
import type { MaybeNumber } from '../../utils/utils.type.js';
|
||||
import type { EntryId } from '../core/OntimeEntry.js';
|
||||
|
||||
export type CurrentGroupState = {
|
||||
export type GroupState = {
|
||||
id: EntryId;
|
||||
startedAt: MaybeNumber;
|
||||
expectedEnd: MaybeNumber;
|
||||
@@ -9,12 +9,5 @@ export type CurrentGroupState = {
|
||||
|
||||
export type UpcomingEntry = {
|
||||
id: EntryId;
|
||||
start: number;
|
||||
};
|
||||
|
||||
export type EntryMetaData = {
|
||||
id: EntryId;
|
||||
actualStart: MaybeNumber;
|
||||
expectedStart: MaybeNumber;
|
||||
expectedEnd: MaybeNumber;
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { MaybeString } from '../../utils/utils.type.js';
|
||||
import type { OntimeEvent } from '../core/OntimeEntry.js';
|
||||
import type { SimpleTimerState } from './AuxTimer.type.js';
|
||||
import type { CurrentGroupState, EntryMetaData } from './CurrentGroupState.type.js';
|
||||
import type { GroupState, UpcomingEntry } from './CurrentGroupState.type.js';
|
||||
import type { MessageState } from './MessageControl.type.js';
|
||||
import type { Runtime } from './Runtime.type.js';
|
||||
import type { TimerState } from './TimerState.type.js';
|
||||
@@ -19,9 +19,9 @@ export type RuntimeStore = {
|
||||
eventNow: OntimeEvent | null;
|
||||
eventNext: OntimeEvent | null;
|
||||
|
||||
groupNow: CurrentGroupState | null;
|
||||
groupNow: GroupState | null;
|
||||
groupNext: MaybeString;
|
||||
nextFlag: EntryMetaData | null;
|
||||
nextFlag: UpcomingEntry | null;
|
||||
|
||||
// extra timers
|
||||
auxtimer1: SimpleTimerState;
|
||||
|
||||
@@ -101,7 +101,7 @@ export { OffsetMode } from './definitions/runtime/Runtime.type.js';
|
||||
export type { RuntimeStore } from './definitions/runtime/RuntimeStore.type.js';
|
||||
export { runtimeStorePlaceholder } from './definitions/runtime/RuntimeStore.js';
|
||||
export { type TimerState, TimerPhase } from './definitions/runtime/TimerState.type.js';
|
||||
export type { CurrentGroupState, UpcomingEntry, EntryMetaData } from './definitions/runtime/CurrentGroupState.type.js';
|
||||
export type { GroupState, UpcomingEntry } from './definitions/runtime/CurrentGroupState.type.js';
|
||||
|
||||
// ---> Extra Timer
|
||||
export { type SimpleTimerState, SimplePlayback, SimpleDirection } from './definitions/runtime/AuxTimer.type.js';
|
||||
|
||||
Reference in New Issue
Block a user