service/domain/workflow/subproject_eventsourcing
Api Code Documentation / Exports / service/domain/workflow/subproject_eventsourcing
Table of contents
Functions
Functions
newSubprojectFromEvent
▸ newSubprojectFromEvent(ctx
, subproject
, event
): Type
<Subproject
>
Returns a new subproject with the given event applied, or an error.
Parameters
Name | Type |
---|---|
ctx | Ctx |
subproject | Subproject |
event | BusinessEvent |
Returns
Defined in
src/service/domain/workflow/subproject_eventsourcing.ts:221
parseSubprojectFromSnapshot
▸ parseSubprojectFromSnapshot(subprojectJson
): Subproject
Parameters
Name | Type |
---|---|
subprojectJson | any |
Returns
Defined in
src/service/domain/workflow/subproject_eventsourcing.ts:90
sourceSubprojectFromSnapshot
▸ sourceSubprojectFromSnapshot(ctx
, events
, withLog
, subprojectJson?
): Type
<Subproject
>
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
withLog | boolean |
subprojectJson? | any |
Returns
Defined in
src/service/domain/workflow/subproject_eventsourcing.ts:22
sourceSubprojects
▸ sourceSubprojects(ctx
, events
, origin?
): Object
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
origin? | Map <string , Subproject > |
Returns
Object
Name | Type |
---|---|
errors | Error [] |
subprojects | Subproject [] |