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
Name | Type |
---|---|
ctx | Ctx |
user | UserRecord |
event | BusinessEvent |
Returns
Defined in
src/service/domain/organization/user_eventsourcing.ts:147
sourceUserRecords
▸ sourceUserRecords(ctx
, events
, origin?
): Object
Parameters
Name | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
origin? | Map <string , UserRecord > |
Returns
Object
Name | Type |
---|---|
errors | Error [] |
users | UserRecord [] |