Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionProcessor<ActionClass>

Type parameters

Hierarchy

  • ActionProcessor

Index

Constructors

Properties

action: ActionClass["name"]
actionStartTime: number
actionStatus: ActionsStatus
actionTemplate: ActionClass
connection: Connection
duration: number
messageId: string | number
missingParams: string[]
params: { action?: string; apiVersion?: string | number }

Type declaration

  • [key: string]: any
  • Optional action?: string
  • Optional apiVersion?: string | number
response: {}

Type declaration

  • [key: string]: any
session: any
toProcess: boolean
toRender: boolean
validatorErrors: (string | Error)[]
working: boolean

Methods

  • applyDefaultErrorLogLineFormat(error: ErrnoException): { errorFields: { error: string }; logLevel: ActionheroLogLevel }
  • completeAction(status: ActionsStatus, _error?: ErrnoException): Promise<ActionProcessor<ActionClass>>
  • getPendingActionCount(): number
  • incrementPendingActions(count?: number): void
  • incrementTotalActions(count?: number): void
  • lockParams(): void
  • logAndReportAction(status: ActionsStatus, error: ErrnoException): void
  • postProcessAction(): Promise<void>
  • preProcessAction(): Promise<void>
  • prepareStringMethod(method: string): Function
  • processAction(actionName?: string, apiVersion?: string | number): Promise<ActionProcessor<ActionClass>>
  • reduceParams(schemaKey?: string): void
  • validateParam(props: Input, params: { action?: string; apiVersion?: string | number }, key: string, schemaKey: string): Promise<void>
  • Parameters

    • props: Input
    • params: { action?: string; apiVersion?: string | number }
      • [key: string]: any
      • Optional action?: string
      • Optional apiVersion?: string | number
    • key: string
    • schemaKey: string

    Returns Promise<void>

  • validateParams(schemaKey?: string): Promise<void>

Generated using TypeDoc