Skip to main content

service/domain/workflow/project_updated

Api Code Documentation / Exports / service/domain/workflow/project_updated

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

modificationSchema#

• Const modificationSchema: ObjectSchema

Defined in#

src/service/domain/workflow/project_updated.ts:25


schema#

• Const schema: ObjectSchema

Defined in#

src/service/domain/workflow/project_updated.ts:42

Functions#

createEvent#

â–¸ createEvent(source, publisher, projectId, modification, time?): Type<Event>

Parameters#

NameType
sourcestring
publisherstring
projectIdstring
modificationModification
timestring

Returns#

Type<Event>

Defined in#

src/service/domain/workflow/project_updated.ts:51


mutate#

â–¸ mutate(project, event): Type<void>

Applies the event to the given project, or returns an error.

When an error is returned (or thrown), any already applied modifications are discarded.

This function is not expected to validate its changes; instead, the modified project is automatically validated when obtained using project_eventsourcing.ts:newProjectFromEvent.

Parameters#

NameType
projectProject
eventEvent

Returns#

Type<void>

Defined in#

src/service/domain/workflow/project_updated.ts:90


validate#

â–¸ validate(input): Type<Event>

Parameters#

NameType
inputany

Returns#

Type<Event>

Defined in#

src/service/domain/workflow/project_updated.ts:75