@bbc/timeline-state-resolver-types
Version:
Have timeline, control stuff
41 lines • 1.39 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 SofieChefOptions {
/**
* Address to the Sofie Chef websocket server. Example: 'ws://127.0.0.1:5271'
*/
address: string;
/**
* Access key to the Sofie Chef API
*/
apiKey?: string;
}
export interface MappingSofieChefWindow {
windowId: string;
mappingType: MappingSofieChefType.Window;
}
export declare enum MappingSofieChefType {
Window = "window"
}
export type SomeMappingSofieChef = MappingSofieChefWindow;
export interface RestartWindowPayload {
windowId: string;
}
export declare enum SofieChefActions {
RestartAllWindows = "restartAllWindows",
RestartWindow = "restartWindow"
}
export interface SofieChefActionMethods {
[SofieChefActions.RestartAllWindows]: (payload: Record<string, never>) => Promise<ActionExecutionResult<void>>;
[SofieChefActions.RestartWindow]: (payload: RestartWindowPayload) => Promise<ActionExecutionResult<void>>;
}
export interface SofieChefDeviceTypes {
Options: SofieChefOptions;
Mappings: SomeMappingSofieChef;
Actions: SofieChefActionMethods;
}
//# sourceMappingURL=sofieChef.d.ts.map