Skip to main content

service/domain/organization/user_password_changed

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

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

schema#

• Const schema: ObjectSchema

Defined in#

src/service/domain/organization/user_password_changed.ts:29

Functions#

createEvent#

â–¸ createEvent(source, publisher, user, time?): Type<Event>

Parameters#

NameType
sourcestring
publisherstring
userInitialData
timestring

Returns#

Type<Event>

Defined in#

src/service/domain/organization/user_password_changed.ts:37


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.

Parameters#

NameType
userUserRecord
eventEvent

Returns#

Type<void>

Defined in#

src/service/domain/organization/user_password_changed.ts:74


validate#

â–¸ validate(input): Type<Event>

Parameters#

NameType
inputany

Returns#

Type<Event>

Defined in#

src/service/domain/organization/user_password_changed.ts:59