feat(project): support project metadata updates
This commit is contained in:
parent
6bbf50b940
commit
9afd059fa1
13 changed files with 111 additions and 2 deletions
|
|
@ -56,5 +56,12 @@ export const Info = Schema.Struct({
|
|||
}).annotate({ identifier: "Project" })
|
||||
export interface Info extends Schema.Schema.Type<typeof Info> {}
|
||||
|
||||
export const UpdateInput = Schema.Struct({
|
||||
name: optional(Schema.String),
|
||||
icon: optional(Icon),
|
||||
commands: optional(Commands),
|
||||
}).annotate({ identifier: "Project.UpdateInput" })
|
||||
export interface UpdateInput extends Schema.Schema.Type<typeof UpdateInput> {}
|
||||
|
||||
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