@eveble/eveble

Hierarchy

Entity

Implemented by

Index

Properties

Methods

Properties

state

state: State

Inherited from Stateful.state

Overrides void


status

status: Status

Inherited from Statusful.status

Overrides void

Methods

[ROLLBACK_STATE_METHOD_KEY]

[ROLLBACK_STATE_METHOD_KEY](): void

Inherited from Entity.[ROLLBACK_STATE_METHOD_KEY]

Overrides void

Returns: void


[SAVE_STATE_METHOD_KEY]

[SAVE_STATE_METHOD_KEY](): void

Inherited from Entity.[SAVE_STATE_METHOD_KEY]

Overrides void

Returns: void


assignMetadata

assignMetadata(metadata: Record‹string, any›): void

Parameters:

NameType
metadataRecord‹string, any›

Returns: void

assignMetadata(metadata: Record‹string, any›): void

Parameters:

NameType
metadataRecord‹string, any›

Returns: void


ensureHandleability

ensureHandleability(messageType: MessageTypeMessage›, handleableTypes: MessageTypeMessage› | MessageTypeMessage›[]): boolean

Inherited from Controller.ensureHandleability

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: boolean


equals

equals(other: any): boolean

Inherited from Definable.equals

Overrides void

Parameters:

NameType
otherany

Returns: boolean


eventProps

eventProps(): Record‹keyof any, any›

Returns: Record‹keyof any, any›

eventProps(): Record‹keyof any, any›

Returns: Record‹keyof any, any›


getCommands

getCommands(): Command[]

Returns: Command[]

getCommands(): Command[]

Returns: Command[]


getEvents

getEvents(): Event[]

Returns: Event[]

getEvents(): Event[]

Returns: Event[]


getHandleableTypes

getHandleableTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandleableTypes

Overrides void

Returns: MessageTypeMessage›[]


getHandled

getHandled(messageType: MessageTypeMessage›): MessageTypeMessage›[]

Inherited from Controller.getHandled

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: MessageTypeMessage›[]


getHandledTypes

getHandledTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandledTypes

Overrides void

Returns: MessageTypeMessage›[]


getHandler

getHandler(messageType: MessageTypeMessage›): Handler | Handler[] | undefined

Inherited from Controller.getHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[] | undefined


getHandlerOrThrow

getHandlerOrThrow(messageType: MessageTypeMessage›): Handler | Handler[]

Inherited from Controller.getHandlerOrThrow

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[]


getHandlers

getHandlers(): Map‹MessageTypeMessage›, Handler | Handler[]›

Inherited from Controller.getHandlers

Overrides void

Returns: Map‹MessageTypeMessage›, Handler | Handler[]›


getId

getId(): string | Stringifiable

Inherited from Identifiable.getId

Overrides void

Returns: string | Stringifiable


getLegacyTransformer

getLegacyTransformer(schemaVersion: number): Hook

Inherited from Versionable.getLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber

Returns: Hook


getLegacyTransformers

getLegacyTransformers(): LegacyTransformers

Inherited from Versionable.getLegacyTransformers

Overrides void

Returns: LegacyTransformers


getPropTypes

getPropTypes(): Record‹keyof any, any›

Inherited from Definable.getPropTypes

Overrides void

Returns: Record‹keyof any, any›


getPropertyInitializers

getPropertyInitializers(): Props

Inherited from Definable.getPropertyInitializers

Overrides void

Returns: Props


getSchemaVersion

getSchemaVersion(): number | undefined

Inherited from Versionable.getSchemaVersion

Overrides void

Returns: number | undefined


getSelectableStates

getSelectableStates(): Record‹string, State

Inherited from Stateful.getSelectableStates

Overrides void

Returns: Record‹string, State


getSelectableStatuses

getSelectableStatuses(): Record‹string, Status

Inherited from Statusful.getSelectableStatuses

Overrides void

Returns: Record‹string, Status


getState

getState(): State

Inherited from Stateful.getState

Overrides void

Returns: State


getStatus

getStatus(): Status

Inherited from Statusful.getStatus

Overrides void

Returns: Status


getTypeName

getTypeName(): TypeName

Inherited from Serializable.getTypeName

Overrides void

Returns: TypeName


getVersion

getVersion(): number

Returns: number

getVersion(): number

Returns: number


handle

handle(message: Message): any

Overrides Controller.handle

Parameters:

NameType
messageMessage

Returns: any

handle(message: Message): any

Parameters:

NameType
messageMessage

Returns: any


handles

handles(): Map‹MessageTypeCommand›, Handler

Inherited from Controller.handles

Overrides void

Returns: Map‹MessageTypeCommand›, Handler


hasHandler

hasHandler(messageType: MessageTypeMessage›): boolean

Inherited from Controller.hasHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


hasLegacyTransformer

hasLegacyTransformer(schemaVersion: number): boolean

Inherited from Versionable.hasLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber

Returns: boolean


hasState

hasState(): boolean

Inherited from Stateful.hasState

Overrides void

Returns: boolean


hasStatus

hasStatus(): boolean

Inherited from Statusful.hasStatus

Overrides void

Returns: boolean


incrementVersion

incrementVersion(): void

Returns: void

incrementVersion(): void

Returns: void


initialize

initialize(): void

Inherited from Controller.initialize

Overrides void

Returns: void


isHandleabe

isHandleabe(messageType: MessageTypeMessage›): boolean

Inherited from Controller.isHandleabe

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


isInOneOfStates

isInOneOfStates(states: State | State[]): boolean

Inherited from Stateful.isInOneOfStates

Overrides void

Parameters:

NameType
statesState | State[]

Returns: boolean


isInOneOfStatuses

isInOneOfStatuses(status: Status | Status[]): boolean

Inherited from Statusful.isInOneOfStatuses

Overrides void

Parameters:

NameType
statusStatus | Status[]

Returns: boolean


isInState

isInState(state: State | State[]): boolean

Inherited from Stateful.isInState

Overrides void

Parameters:

NameType
stateState | State[]

Returns: boolean


isInStatus

isInStatus(status: Status | Status[]): boolean

Inherited from Statusful.isInStatus

Overrides void

Parameters:

NameType
statusStatus | Status[]

Returns: boolean


isStateSaved

isStateSaved(): boolean

Inherited from Entity.isStateSaved

Overrides void

Returns: boolean


on

on(action: string | Stringifiable): any

Inherited from Entity.on

Overrides void

Parameters:

NameType
actionstring | Stringifiable

Returns: any


overrideHandler

overrideHandler(messageType: MessageTypeMessage›, handler: Handler): void

Inherited from Controller.overrideHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler

Returns: void


overrideLegacyTransformer

overrideLegacyTransformer(schemaVersion: number, transformer: Hook): void

Inherited from Versionable.overrideLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber
transformerHook

Returns: void


record

record(event: Event): void

Parameters:

NameType
eventEvent

Returns: void

record(event: Event): void

Parameters:

NameType
eventEvent

Returns: void


registerHandler

registerHandler(messageType: MessageTypeMessage›, handler: Handler, shouldOverride?: boolean): void

Inherited from Controller.registerHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler
shouldOverride?boolean

Returns: void


registerLegacyTransformer

registerLegacyTransformer(schemaVersion: number, transformer: Hook, shouldOverride: boolean): void

Inherited from Versionable.registerLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber
transformerHook
shouldOverrideboolean

Returns: void


removeHandler

removeHandler(messageType: MessageTypeMessage›): void

Inherited from Controller.removeHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: void


replay

replay(event: Event): void

Parameters:

NameType
eventEvent

Returns: void

replay(event: Event): void

Parameters:

NameType
eventEvent

Returns: void


replayHistory

replayHistory(history: Event[]): void

Parameters:

NameType
historyEvent[]

Returns: void

replayHistory(history: Event[]): void

Parameters:

NameType
historyEvent[]

Returns: void


schedule

schedule(command: Command, deliverAt: Date, assignmentId?: string | Stringifiable): void

Parameters:

NameType
commandCommand
deliverAtDate
assignmentId?string | Stringifiable

Returns: void

schedule(command: Command, deliverAt: Date, assignmentId?: string | Stringifiable): void

Parameters:

NameType
commandCommand
deliverAtDate
assignmentId?string | Stringifiable

Returns: void


setHandleableTypes

setHandleableTypes(handleableTypes: MessageTypeMessage› | MessageTypeMessage›[]): void

Inherited from Controller.setHandleableTypes

Overrides void

Parameters:

NameType
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: void


setState

setState(state: State): void

Inherited from Stateful.setState

Overrides void

Parameters:

NameType
stateState

Returns: void


setStatus

setStatus(status: Status): void

Inherited from Statusful.setStatus

Overrides void

Parameters:

NameType
statusStatus

Returns: void


subscribes

subscribes(): Map‹MessageTypeEvent›, Handler

Inherited from Controller.subscribes

Overrides void

Returns: Map‹MessageTypeEvent›, Handler


toPlainObject

toPlainObject(): Props

Inherited from Definable.toPlainObject

Overrides void

Returns: Props


toString

toString(): TypeName | string

Inherited from Serializable.toString

Overrides void

Returns: TypeName | string


transformLegacyProps

transformLegacyProps(props: Props): Props

Inherited from Versionable.transformLegacyProps

Overrides void

Parameters:

NameType
propsProps

Returns: Props


unschedule

unschedule(assignmentId: string | Stringifiable, commandType: MessageTypeCommand›): void

Parameters:

NameType
assignmentIdstring | Stringifiable
commandTypeMessageTypeCommand

Returns: void

unschedule(assignmentId: string | Stringifiable, commandType: MessageType‹Command›): void

Parameters:

NameType
assignmentIdstring | Stringifiable
commandTypeMessageType‹Command›

Returns: void


validateProps

validateProps(props: Props, propTypes: PropTypes, isStrict?: boolean): boolean

Inherited from Definable.validateProps

Overrides void

Parameters:

NameType
propsProps
propTypesPropTypes
isStrict?boolean

Returns: boolean


validateState

validateState(stateOrStates: State | State[], error?: Error): boolean

Inherited from Stateful.validateState

Overrides void

Parameters:

NameType
stateOrStatesState | State[]
error?Error

Returns: boolean


validateStatus

validateStatus(statusOrStatuses: Status | Status[], error?: Error): boolean

Inherited from Statusful.validateStatus

Overrides void

Parameters:

NameType
statusOrStatusesStatus | Status[]
error?Error

Returns: boolean