33 lines
600 B
TypeScript
33 lines
600 B
TypeScript
import { Mission } from "../../generated/client";
|
|
import { PublicUser } from "./User";
|
|
|
|
export interface ValidationFailed {
|
|
type: "hpg-validation";
|
|
status: "failed";
|
|
message: string;
|
|
data: {
|
|
mission: Mission;
|
|
};
|
|
}
|
|
|
|
export interface ValidationSuccess {
|
|
type: "hpg-validation";
|
|
status: "success";
|
|
message: string;
|
|
data: {
|
|
mission: Mission;
|
|
};
|
|
}
|
|
|
|
export interface AdminMessage {
|
|
type: "admin-message";
|
|
status: "kick" | "ban";
|
|
message: string;
|
|
data?: {
|
|
admin: PublicUser;
|
|
reason: string;
|
|
};
|
|
}
|
|
|
|
export type NotificationPayload = ValidationFailed | ValidationSuccess | AdminMessage;
|