2025-11-20 19:09:43 +00:00
|
|
|
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;
|
|
|
|
|
};
|
2025-11-21 08:55:23 +00:00
|
|
|
|
|
|
|
|
export type StatusIndicator = "neutral-quaternary" | "dark" | "info" | "success" | "warning" | "danger";
|
2025-11-21 16:01:34 +00:00
|
|
|
export type Region = {
|
|
|
|
|
name: string;
|
|
|
|
|
brushColour: string;
|
|
|
|
|
};
|
2025-11-24 16:17:27 +00:00
|
|
|
|
|
|
|
|
export type SystemHealthStatus = {
|
|
|
|
|
id: string;
|
|
|
|
|
tags: string[];
|
|
|
|
|
};
|
2025-11-25 10:07:35 +00:00
|
|
|
|
|
|
|
|
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;
|
2025-11-25 14:57:18 +00:00
|
|
|
|
|
|
|
|
export type PaintedCell = {
|
|
|
|
|
colour: string;
|
|
|
|
|
};
|