Skip to main content

service/domain/organization/user_eventsourcing

Api Code Documentation / Exports / service/domain/organization/user_eventsourcing

Table of contents#

Functions#

Functions#

newUserFromEvent#

newUserFromEvent(ctx, user, event): Type<UserRecord>

Returns a new user with the given event applied, or an error.

Parameters#

NameType
ctxCtx
userUserRecord
eventBusinessEvent

Returns#

Type<UserRecord>

Defined in#

src/service/domain/organization/user_eventsourcing.ts:145


sourceUserRecords#

sourceUserRecords(ctx, events, origin?): Object

Parameters#

NameType
ctxCtx
eventsBusinessEvent[]
origin?Map<string, UserRecord>

Returns#

Object

NameType
errorsError[]
usersUserRecord[]

Defined in#

src/service/domain/organization/user_eventsourcing.ts:17