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;
	};
}

export type NotificationPayload = ValidationFailed | ValidationSuccess | AdminMessage;
