Added Aircraft log to mission

This commit is contained in:
PxlLoewe
2025-05-20 14:15:24 -07:00
parent 1696c79122
commit df4cff827e
13 changed files with 354 additions and 84 deletions

View File

@@ -1,4 +1,4 @@
import { Station, User } from "../../generated/client";
import { Station } from "../../generated/client";
import { PublicUser } from "./User";
export interface MissionStationLog {
@@ -6,11 +6,23 @@ export interface MissionStationLog {
auto: true;
timeStamp: string;
data: {
stationId: string;
stationId: number;
oldFMSstatus: string;
newFMSstatus: string;
station: Station;
user: User;
user: PublicUser;
};
}
export interface MissionSdsLog {
type: "sds-log";
auto: false;
timeStamp: string;
data: {
station: Station;
user: PublicUser;
stationId: number;
message: string;
};
}
@@ -25,4 +37,4 @@ export interface MissionMessageLog {
};
}
export type MissionLog = MissionStationLog | MissionMessageLog;
export type MissionLog = MissionStationLog | MissionMessageLog | MissionSdsLog;