service/domain/organization/user_enabled
Api Code Documentation / Exports / service/domain/organization/user_enabled
#
Table of contents#
Interfaces#
Variables#
Functions#
Variables#
schema• Const
schema: ObjectSchema
#
Defined insrc/service/domain/organization/user_enabled.ts:27
#
Functions#
createEventâ–¸ createEvent(source
, publisher
, user
, time?
): Type
<Event
>
#
ParametersName | Type |
---|---|
source | string |
publisher | string |
user | InitialData |
time | string |
#
Returns#
Defined insrc/service/domain/organization/user_enabled.ts:35
#
mutateâ–¸ mutate(user
, event
): Type
<void
>
Applies the event to the given user, 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 user
is automatically validated when obtained using
user_eventsourcing.ts
:newUserFromEvent
.
#
ParametersName | Type |
---|---|
user | UserRecord |
event | Event |
#
ReturnsType
<void
>
#
Defined insrc/service/domain/organization/user_enabled.ts:72
#
validateâ–¸ validate(input
): Type
<Event
>
#
ParametersName | Type |
---|---|
input | any |