@bbc/timeline-state-resolver-types
Version:
Have timeline, control stuff
96 lines • 3.29 kB
TypeScript
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
*/
import type { ActionExecutionResult } from "../actions";
export interface VizMSEOptions {
/**
* Host name or IP adress to the MSE machine
*/
host: string;
/**
* Port number to the REST interface (optional)
*/
restPort?: number;
/**
* Port number to the web-sockets interface (optional)
*/
wsPort?: number;
/**
* Port number to the REST interfaces of Viz Engines (optional)
*/
engineRestPort?: number;
/**
* Identifier of the "profile" to send commands to
*/
profile: string;
/**
* Identifier of the "playlist" to send commands to
*/
playlistID?: string;
/**
* Path relative to "/directory/shows", where Shows managed by Sofie are listed e.g. "SOFIE"
*/
showDirectoryPath?: string;
/**
* Whether all elements should be preloaded or not
*/
preloadAllElements?: boolean;
/**
* Whether unknown elements should be purged from the rundown upon activation
*/
purgeUnknownElements?: boolean;
/**
* Whether internal elements should automatically be loaded when added to expectedPlayoutItems
*/
autoLoadInternalElements?: boolean;
/**
* It is a common practice to have an element which only purpose is to "clear all graphics" on the vizEngine.
* To use this in TSR, set a reference to that here
*/
clearAllTemplateName?: string;
/**
* If true, the rundown won't be deactivated on standdown
*/
dontDeactivateOnStandDown?: boolean;
/**
* If true, only elements in the currently active rundown will be loaded
*/
onlyPreloadActivePlaylist?: boolean;
/**
* List of commands to be sent to Viz Engines in order to fully clear them
*/
clearAllCommands?: string[];
}
export type SomeMappingVizMSE = Record<string, never>;
export interface VizResetPayload {
/**
* Optional property that helps track what rundown is active for optimisation reasons
*/
activeRundownPlaylistId?: string;
}
export interface ActivatePayload {
activeRundownPlaylistId: string;
clearAll?: boolean;
}
export declare enum VizMSEActions {
VizReset = "vizReset",
PurgeRundown = "purgeRundown",
Activate = "activate",
StandDown = "standDown",
ClearAllEngines = "clearAllEngines"
}
export interface VizMSEActionMethods {
[VizMSEActions.VizReset]: (payload: VizResetPayload) => Promise<ActionExecutionResult<void>>;
[VizMSEActions.PurgeRundown]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>;
[VizMSEActions.Activate]: (payload: ActivatePayload) => Promise<ActionExecutionResult<void>>;
[VizMSEActions.StandDown]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>;
[VizMSEActions.ClearAllEngines]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>;
}
export interface VizMSEDeviceTypes {
Options: VizMSEOptions;
Mappings: SomeMappingVizMSE;
Actions: VizMSEActionMethods;
}
//# sourceMappingURL=vizMSE.d.ts.map