@eveble/eveble

Hierarchy

Implemented by

Index

Properties

Methods

Properties

Optional completedAt

completedAt? : Date


data

data: Record‹string, any›


Optional failedAt

failedAt? : Date


id

id: string | Stringifiable


Optional lastRunAt

lastRunAt? : Date


Optional lockedAt

lockedAt? : Date


name

name: string


Optional nextRunAt

nextRunAt? : Date


priority

priority: "lowest" | "low" | "normal" | "high" | "highest" | number


state

state: State

Overrides Stateful.state

Methods

equals

equals(other: any): boolean

Inherited from Definable.equals

Overrides void

Parameters:

NameType
otherany

Returns: boolean


getActions

getActions(): Actions

Inherited from Hookable.getActions

Overrides void

Returns: Actions


getHook

getHook(action: string, id: string): Hook | undefined

Inherited from Hookable.getHook

Overrides void

Parameters:

NameType
actionstring
idstring

Returns: Hook | undefined


getHookOrThrow

getHookOrThrow(action: string, id: string): Hook | undefined

Inherited from Hookable.getHookOrThrow

Overrides void

Parameters:

NameType
actionstring
idstring

Returns: Hook | undefined


getHooks

getHooks(action: string): Mappings

Inherited from Hookable.getHooks

Overrides void

Parameters:

NameType
actionstring

Returns: Mappings


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


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


hasAction

hasAction(action: string): boolean

Inherited from Hookable.hasAction

Overrides void

Parameters:

NameType
actionstring

Returns: boolean


hasHook

hasHook(action: string, id: string): boolean

Inherited from Hookable.hasHook

Overrides void

Parameters:

NameType
actionstring
idstring

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


overrideHook

overrideHook(action: string, id: string, hook: Hook): void

Inherited from Hookable.overrideHook

Overrides void

Parameters:

NameType
actionstring
idstring
hookHook

Returns: void


registerHook

registerHook(action: string, id: string, hook: Hook, shouldOverride?: boolean): void

Inherited from Hookable.registerHook

Overrides void

Parameters:

NameType
actionstring
idstring
hookHook
shouldOverride?boolean

Returns: void


removeHook

removeHook(action: string, id: string): void

Inherited from Hookable.removeHook

Overrides void

Parameters:

NameType
actionstring
idstring

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


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