refactor(schema): declare event durability at definition level (#35172)
This commit is contained in:
parent
bd8d858bf7
commit
de476aa51b
53 changed files with 700 additions and 1165 deletions
|
|
@ -1,7 +1,7 @@
|
|||
export * as Project from "./project.js"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { define, inventory } from "./event.js"
|
||||
import { ephemeral, inventory } from "./event.js"
|
||||
import { AbsolutePath, NonNegativeInt, optional } from "./schema.js"
|
||||
import { ProjectID } from "./project-id.js"
|
||||
|
||||
|
|
@ -56,5 +56,5 @@ export const Info = Schema.Struct({
|
|||
}).annotate({ identifier: "Project" })
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
|
||||
const Updated = define({ type: "project.updated", schema: Info.fields })
|
||||
const Updated = ephemeral({ type: "project.updated", schema: Info.fields })
|
||||
export const Event = { Updated, Definitions: inventory(Updated) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue