Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ActionsService

Index

Constructors

constructor

Methods

Static runActions

  • runActions(res: Response<any, Record<string, any>>, actions: typeof Action[][], variables?: {}): Promise<void>
  • Call a series of actions attached to a request The actions will not infer the actual response sent to the requester The will be performed if everything works well and abandonned if something goes wrong.

    Parameters

    • res: Response<any, Record<string, any>>

      Express Response to which these actions should be attached

    • actions: typeof Action[][]

      Two-level deep actions array. The first level of actions will be run asynchronously (in parallel) and the second layer actions will be called synchronously (serie)

    • Optional variables: {}
      • [key: string]: any

    Returns Promise<void>

Static Private runActionsInSerie

  • runActionsInSerie(res: Response<any, Record<string, any>>, actions: typeof Action[]): Promise<void>

Static setVariables

  • setVariables(res: Response<any, Record<string, any>>, variables: {}): void
  • Parameters

    • res: Response<any, Record<string, any>>
    • variables: {}
      • [key: string]: any

    Returns void

Generated using TypeDoc