Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/job/helpers"

Index

Functions

prepareCommandInvocation

  • prepareCommandInvocation(md: CommandHandlerMetadata, parameters?: ParameterType): CommandInvocation
  • Prepare the CommandInvocation instance to be sent for execution

    This pieces apart provided values form the parameters into the command's parameter, mapped parameter and secret structures.

    Parameters

    • md: CommandHandlerMetadata
    • Default value parameters: ParameterType = {}

    Returns CommandInvocation

prepareHandlerContext

  • prepareHandlerContext(ctx: HandlerContext, trigger: any): HandlerContext
  • Decorate the HandlerContext to support response messages for this event handler invocation.

    Task execution happens is rooted in an event handler executing; this would prevent response messages to work out of the box which is why this function adds the respond function to the MessageClient if possible.

    Parameters

    • ctx: HandlerContext
    • trigger: any

    Returns HandlerContext

Generated using TypeDoc