added Callback and custon notification Toast, client notification event handler
This commit is contained in:
21
packages/database/prisma/json/SocketEvents.ts
Normal file
21
packages/database/prisma/json/SocketEvents.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Mission } from "../../generated/client";
|
||||
|
||||
interface ValidationFailed {
|
||||
type: "hpg-validation";
|
||||
status: "failed";
|
||||
message: string;
|
||||
data: {
|
||||
mission: Mission;
|
||||
};
|
||||
}
|
||||
|
||||
interface ValidationSuccess {
|
||||
type: "hpg-validation";
|
||||
status: "success";
|
||||
message: string;
|
||||
data: {
|
||||
mission: Mission;
|
||||
};
|
||||
}
|
||||
|
||||
export type NotificationPayload = ValidationFailed | ValidationSuccess;
|
||||
@@ -2,3 +2,4 @@ export * from "./ParticipantLog";
|
||||
export * from "./MissionVehicleLog";
|
||||
export * from "./User";
|
||||
export * from "./OSMway";
|
||||
export * from "./SocketEvents";
|
||||
|
||||
Reference in New Issue
Block a user