107 lines
2.1 KiB
TypeScript
107 lines
2.1 KiB
TypeScript
export type WebSocketContextValue = {
|
|
connected: boolean;
|
|
send?: (msg: unknown) => void;
|
|
latestStats: { activeUsers: number; alerts: number } | null;
|
|
};
|
|
|
|
export type InfoBarData = {
|
|
"system-clock-utc": string;
|
|
"system-clock-local": string;
|
|
"memory-cpu-status": string;
|
|
"thread-count": string;
|
|
};
|
|
|
|
export type StatusIndicator = "neutral-quaternary" | "dark" | "info" | "success" | "warning" | "danger";
|
|
export type Region = {
|
|
name: string;
|
|
brushColour: string;
|
|
};
|
|
|
|
export type SystemHealthStatus = {
|
|
id: string;
|
|
tags: string[];
|
|
};
|
|
|
|
export type BearerTypeFields = {
|
|
format: string;
|
|
enabled: boolean;
|
|
backOfficeURL: string;
|
|
username: string;
|
|
password: string;
|
|
connectTimeoutSeconds: number;
|
|
readTimeoutSeconds: number;
|
|
overviewQuality: string;
|
|
cropSizeFactor: string;
|
|
};
|
|
|
|
export type OptionalConstants = {
|
|
FFID?: string;
|
|
SCID?: string;
|
|
timestampSource?: string;
|
|
GPSFormat?: string;
|
|
};
|
|
|
|
export type OptionalLaneIDs = {
|
|
laneId?: string;
|
|
LID1?: string;
|
|
LID2?: string;
|
|
LID3?: string;
|
|
};
|
|
|
|
export type InitialValuesFormErrors = {
|
|
backOfficeURL?: string;
|
|
username?: string;
|
|
password?: string;
|
|
connectTimeoutSeconds?: string;
|
|
readTimeoutSeconds?: string;
|
|
};
|
|
|
|
export type FormTypes = BearerTypeFields & OptionalConstants & OptionalLaneIDs;
|
|
type FieldProperty = {
|
|
datatype: string;
|
|
value: string;
|
|
};
|
|
export type OutputDataResponse = {
|
|
id: string;
|
|
configHash: string;
|
|
} & Record<string, FieldProperty>;
|
|
|
|
export type PaintedCell = {
|
|
colour: string;
|
|
};
|
|
|
|
export type DispatcherConfig = {
|
|
format: string;
|
|
enabled: boolean;
|
|
};
|
|
|
|
export type OptionalBOF2Constants = {
|
|
format?: string;
|
|
FFID?: string;
|
|
SCID?: string;
|
|
timestampSource?: string;
|
|
GPSFormat?: string;
|
|
};
|
|
|
|
export type OptionalUTMCConstants = {
|
|
format?: string;
|
|
SCID?: string;
|
|
timestampSource?: string;
|
|
GPSFormat?: string;
|
|
};
|
|
export type OptionalBOF2LaneIDs = {
|
|
laneId?: string;
|
|
LID1?: string;
|
|
LID2?: string;
|
|
LID3?: string;
|
|
};
|
|
|
|
export type CameraFeedState = {
|
|
cameraFeedID: "A" | "B" | "C" | null;
|
|
};
|
|
|
|
export type CameraFeedAction = {
|
|
type: string;
|
|
payload: "A" | "B" | "C" | null;
|
|
};
|