Completed Admin Users form
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Mission } from "../../generated/client";
|
||||
import { PublicUser } from "./User";
|
||||
|
||||
interface ValidationFailed {
|
||||
export interface ValidationFailed {
|
||||
type: "hpg-validation";
|
||||
status: "failed";
|
||||
message: string;
|
||||
@@ -9,7 +10,7 @@ interface ValidationFailed {
|
||||
};
|
||||
}
|
||||
|
||||
interface ValidationSuccess {
|
||||
export interface ValidationSuccess {
|
||||
type: "hpg-validation";
|
||||
status: "success";
|
||||
message: string;
|
||||
@@ -18,4 +19,13 @@ interface ValidationSuccess {
|
||||
};
|
||||
}
|
||||
|
||||
export type NotificationPayload = ValidationFailed | ValidationSuccess;
|
||||
export interface AdminMessage {
|
||||
type: "admin-message";
|
||||
status: "kick" | "ban";
|
||||
message: string;
|
||||
data?: {
|
||||
admin: PublicUser;
|
||||
};
|
||||
}
|
||||
|
||||
export type NotificationPayload = ValidationFailed | ValidationSuccess | AdminMessage;
|
||||
|
||||
Reference in New Issue
Block a user