Skip to main content

service/domain/workflow/subproject_projected_budget_updated

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

Table of contents

Interfaces

Variables

Functions

Variables

schema

Const schema: ObjectSchema<any>

Defined in

src/service/domain/workflow/subproject_projected_budget_updated.ts:26

Functions

createEvent

createEvent(source, publisher, projectId, subprojectId, organization, value, currencyCode, time?, metadata?): Type<Event>

Parameters

NameType
sourcestring
publisherstring
projectIdstring
subprojectIdstring
organizationstring
valuestring
currencyCodestring
timestring
metadata?UserMetadata

Returns

Type<Event>

Defined in

src/service/domain/workflow/subproject_projected_budget_updated.ts:39


mutate

mutate(subproject, event): Type<void>

Applies the event to the given subproject, 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 subproject is automatically validated when obtained using subproject_eventsourcing.ts:newSubprojectFromEvent.

Parameters

NameType
subprojectSubproject
eventEvent

Returns

Type<void>

Defined in

src/service/domain/workflow/subproject_projected_budget_updated.ts:84


validate

validate(input): Type<Event>

Parameters

NameType
inputany

Returns

Type<Event>

Defined in

src/service/domain/workflow/subproject_projected_budget_updated.ts:69