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;
|
||||
Reference in New Issue
Block a user