service/domain/workflow/project_eventsourcing
Api Code Documentation / Exports / service/domain/workflow/project_eventsourcing
Table of contents
Functions
Functions
newProjectFromEvent
▸ newProjectFromEvent(ctx
, project
, event
): Type
<Project
>
Returns a new project with the given event applied, or an error.
Parameters
Name | Type |
---|---|
ctx | Ctx |
project | Project |
event | BusinessEvent |
Returns
Defined in
src/service/domain/workflow/project_eventsourcing.ts:128
parseProjectFromSnapshot
▸ parseProjectFromSnapshot(projectJson
): Project
Parameters
Name | Type |
---|---|
projectJson | any |
Returns
Defined in
src/service/domain/workflow/project_eventsourcing.ts:268
sourceProjectFromSnapshot
▸ sourceProjectFromSnapshot(ctx
, events
, withLog
, projectJson?
): Type
<Project
>
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
withLog | boolean |
projectJson? | any |
Returns
Defined in
src/service/domain/workflow/project_eventsourcing.ts:200
sourceProjects
▸ sourceProjects(ctx
, events
, origin?
): Object
deprecated
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
origin? | Map <string , Project > |
Returns
Object
Name | Type |
---|---|
errors | Error [] |
projects | Project [] |