mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
Merge branch 'master' into feat/http-integration
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { OSCSettings } from '../../definitions/core/OscSettings.type.js';
|
||||
|
||||
export type NetworkInterface = {
|
||||
name: string;
|
||||
address: string;
|
||||
};
|
||||
|
||||
export interface GetInfo {
|
||||
networkInterfaces: NetworkInterface[];
|
||||
version: string;
|
||||
serverPort: number;
|
||||
osc: OSCSettings;
|
||||
cssOverride: string;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { OntimeRundown } from '../../definitions/core/Rundown.type.js';
|
||||
|
||||
export interface GetRundownCached {
|
||||
rundown: OntimeRundown;
|
||||
revision: number;
|
||||
}
|
||||
@@ -2,4 +2,4 @@ export type Alias = {
|
||||
enabled: boolean;
|
||||
alias: string;
|
||||
pathAndParams: string;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { TimeFormat } from './TimeFormat.type';
|
||||
import { TimeFormat } from './TimeFormat.type.js';
|
||||
|
||||
export type Settings = {
|
||||
app: 'ontime';
|
||||
version: 2;
|
||||
version: string;
|
||||
serverPort: number;
|
||||
editorKey: null | string;
|
||||
operatorKey: null | string;
|
||||
|
||||
@@ -9,5 +9,4 @@ export type UserFields = {
|
||||
user7: string;
|
||||
user8: string;
|
||||
user9: string;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -6,4 +6,4 @@ export type ViewSettings = {
|
||||
warningThreshold: number;
|
||||
dangerColor: string;
|
||||
dangerThreshold: number;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -23,5 +23,5 @@ export enum LogOrigin {
|
||||
Rx = 'RX',
|
||||
Server = 'SERVER',
|
||||
Tx = 'TX',
|
||||
User = 'USER'
|
||||
User = 'USER',
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@ export type Message = {
|
||||
export type TimerMessage = Message & {
|
||||
timerBlink: boolean;
|
||||
timerBlackout: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -35,6 +35,10 @@ export type { OSCSettings } from './definitions/core/OscSettings.type.js';
|
||||
// ---> HTTP
|
||||
export type { HTTPSettings } from './definitions/core/HttpSettings.type.js';
|
||||
|
||||
// SERVER RESPONSES
|
||||
export type { NetworkInterface, GetInfo } from './api/ontime-controller/BackendResponse.type.js';
|
||||
export type { GetRundownCached } from './api/rundown-controller/BackendResponse.type.js';
|
||||
|
||||
// SERVER RUNTIME
|
||||
export { type Log, LogLevel, type LogMessage, LogOrigin } from './definitions/runtime/Logger.type.js';
|
||||
export { Playback } from './definitions/runtime/Playback.type.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { OntimeRundownEntry } from '../definitions/core/Rundown.type.js';
|
||||
import { OntimeBlock, OntimeDelay, OntimeEvent, SupportedEvent } from '../definitions/core/OntimeEvent.type.js';
|
||||
|
||||
type MaybeEvent = OntimeRundownEntry | null | undefined;
|
||||
type MaybeEvent = Partial<OntimeRundownEntry> | null | undefined;
|
||||
|
||||
export function isOntimeEvent(event: MaybeEvent): event is OntimeEvent {
|
||||
return event?.type === SupportedEvent.Event;
|
||||
|
||||
Reference in New Issue
Block a user