class WorkflowDefinition
implements ISlackWorkflow
import { WorkflowDefinition } from "https://deno.land/x/deno_slack_sdk@1.0.1/workflows/mod.ts";
Constructors
new
WorkflowDefinition(definition: SlackWorkflowDefinitionArgs<Inputs, Outputs, RequiredInputs, RequiredOutputs, CallbackID>)Type Parameters
Inputs extends ParameterSetDefinition
Outputs extends ParameterSetDefinition
RequiredInputs extends PossibleParameterKeys<Inputs>
RequiredOutputs extends PossibleParameterKeys<Outputs>
Properties
definition: SlackWorkflowDefinitionArgs<Inputs, Outputs, RequiredInputs, RequiredOutputs, CallbackID>
inputs: WorkflowInputs<Inputs, RequiredInputs>
outputs: WorkflowOutputs<Outputs, RequiredOutputs>
steps: WorkflowStepDefinition[]
Methods
addStep<StepInputs extends ParameterSetDefinition, StepOutputs extends ParameterSetDefinition, RequiredStepInputs extends PossibleParameterKeys<StepInputs>, RequiredStepOutputs extends PossibleParameterKeys<StepOutputs>>(slackFunction: ISlackFunctionDefinition<StepInputs, StepOutputs, RequiredStepInputs, RequiredStepOutputs>, inputs: WorkflowStepInputs<StepInputs, RequiredStepInputs>): TypedWorkflowStepDefinition<StepInputs, StepOutputs, RequiredStepInputs, RequiredStepOutputs>
addStep(functionReference: string, inputs: WorkflowStepInputs<ParameterSetDefinition, PossibleParameterKeys<ParameterSetDefinition>>): UntypedWorkflowStepDefinition
registerParameterTypes(manifest: SlackManifest)
registerStepFunctions(manifest: SlackManifest)
toJSON()