Feat/end action (#308)

* feat: end action

---------

Co-authored-by: Fabian Posenau <fabian@fphome.de>
Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com>
Co-authored-by: Fabian Posenau <19673098+kellhogs@users.noreply.github.com>
This commit is contained in:
Fabian Posenau
2023-03-16 19:27:15 +01:00
committed by GitHub
parent 76c8f8a4d5
commit 73533600a0
13 changed files with 79 additions and 45 deletions
@@ -0,0 +1,6 @@
export enum EndAction {
Continue = 'continue',
Stop = 'stop',
LoadNext = 'load-next',
PlayNext = 'play-next',
}
@@ -1,3 +1,4 @@
import { EndAction } from '../EndAction.type.js';
import { TimerType } from '../TimerType.type.js';
export enum SupportedEvent {
@@ -28,7 +29,7 @@ export type OntimeEvent = OntimeBaseEvent & {
subtitle: string;
presenter: string;
note: string;
timerBehaviour: 'start-end',
endAction: EndAction,
timerType: TimerType,
timeStart: number;
timeEnd: number;
@@ -1,4 +1,5 @@
import { TimerType } from '../TimerType.type.js';
import { EndAction } from '../EndAction.type.js';
export type TimerState = {
clock: number; // realtime clock
@@ -12,4 +13,5 @@ export type TimerState = {
selectedEventId: string | null;
duration: number | null;
timerType: TimerType | null;
endAction: EndAction | null;
};
+2
View File
@@ -1,5 +1,6 @@
import { Alias } from './definitions/core/Alias.type.js';
import { DatabaseModel } from './definitions/DataModel.type.js';
import { EndAction } from './definitions/EndAction.type.js';
import { EventData } from './definitions/core/EventData.type.js';
import { Message } from './definitions/runtime/MessageControl.type.js';
import {
@@ -28,6 +29,7 @@ export type { DatabaseModel };
// ---> Rundown
export { TimerType };
export { EndAction };
export { SupportedEvent };
export type { OntimeBaseEvent, OntimeBlock, OntimeDelay, OntimeEvent };
export type { OntimeRundown, OntimeRundownEntry };