feat: add functional authentication
This commit is contained in:
11
api/stores/event-store/events/organization.ts
Normal file
11
api/stores/event-store/events/organization.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { event } from "@valkyr/event-store";
|
||||
import z from "zod";
|
||||
|
||||
import { AuditorSchema } from "./auditor.ts";
|
||||
|
||||
export default [
|
||||
event
|
||||
.type("organization:created")
|
||||
.data(z.object({ name: z.string() }))
|
||||
.meta(AuditorSchema),
|
||||
];
|
||||
Reference in New Issue
Block a user