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.
#
ParametersName | Type |
---|---|
ctx | Ctx |
user | UserRecord |
event | BusinessEvent |
#
Returns#
Defined insrc/service/domain/organization/user_eventsourcing.ts:145
#
sourceUserRecordsâ–¸ sourceUserRecords(ctx
, events
, origin?
): Object
#
ParametersName | Type |
---|---|
ctx | Ctx |
events | BusinessEvent [] |
origin? | Map <string , UserRecord > |
#
ReturnsObject
Name | Type |
---|---|
errors | Error [] |
users | UserRecord [] |