refactor(schema): share server event assembly
This commit is contained in:
parent
b4bad02c8b
commit
99ce234118
1 changed files with 9 additions and 12 deletions
|
|
@ -54,19 +54,16 @@ const featureDefinitions = Event.inventory(
|
|||
...Question.Event.Definitions,
|
||||
)
|
||||
|
||||
export const CurrentServerDefinitions = Event.inventory(
|
||||
...foundationDefinitions,
|
||||
...currentCoreDefinitions,
|
||||
...featureDefinitions,
|
||||
...SessionTodo.Event.Definitions,
|
||||
)
|
||||
const serverDefinitions = (coreDefinitions: ReadonlyArray<Event.Definition>) =>
|
||||
Event.inventory(
|
||||
...foundationDefinitions,
|
||||
...coreDefinitions,
|
||||
...featureDefinitions,
|
||||
...SessionTodo.Event.Definitions,
|
||||
)
|
||||
|
||||
export const ServerDefinitions = Event.inventory(
|
||||
...foundationDefinitions,
|
||||
...compatibilityCoreDefinitions,
|
||||
...featureDefinitions,
|
||||
...SessionTodo.Event.Definitions,
|
||||
)
|
||||
export const CurrentServerDefinitions = serverDefinitions(currentCoreDefinitions)
|
||||
export const ServerDefinitions = serverDefinitions(compatibilityCoreDefinitions)
|
||||
|
||||
export const Definitions = Event.inventory(
|
||||
...foundationDefinitions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue