@eveble/eveble

Hierarchy

Serializable

  • Stateful

  • Serializable

  • Stateful

    CommitReceiver

Implemented by

Index

Properties

Methods

Properties

appId

appId: string


Optional failedAt

failedAt? : Date


Optional publishedAt

publishedAt? : Date


receivedAt

receivedAt: Date


state

state: State

Overrides Stateful.state


Optional workerId

workerId? : string

Methods

equals

equals(other: any): boolean

Inherited from Definable.equals

Overrides void

Parameters:

NameType
otherany

Returns: boolean


flagAsFailed

flagAsFailed(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void

flagAsFailed(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void


flagAsPublished

flagAsPublished(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void

flagAsPublished(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void


flagAsReceived

flagAsReceived(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void

flagAsReceived(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void


flagAsTimeouted

flagAsTimeouted(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void

flagAsTimeouted(workerId: string | Stringifiable): void

Parameters:

NameType
workerIdstring | Stringifiable

Returns: void


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


getState

getState(): State

Inherited from Stateful.getState

Overrides void

Returns: State


getTypeName

getTypeName(): TypeName

Inherited from Serializable.getTypeName

Overrides void

Returns: TypeName


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


isInOneOfStates

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

Inherited from Stateful.isInOneOfStates

Overrides void

Parameters:

NameType
statesState | State[]

Returns: boolean


isInState

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

Inherited from Stateful.isInState

Overrides void

Parameters:

NameType
stateState | State[]

Returns: boolean


overrideLegacyTransformer

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

Inherited from Versionable.overrideLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber
transformerHook

Returns: void


registerLegacyTransformer

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

Inherited from Versionable.registerLegacyTransformer

Overrides void

Parameters:

NameType
schemaVersionnumber
transformerHook
shouldOverrideboolean

Returns: void


setState

setState(state: State): void

Inherited from Stateful.setState

Overrides void

Parameters:

NameType
stateState

Returns: void


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


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