UNPKG

@hotmeshio/hotmesh

Version:

Serverless Workflow

21 lines (20 loc) 812 B
import { EngineService } from '../engine'; import { ActivityData, ActivityMetadata, ActivityType, SignalActivity } from '../../types/activity'; import { JobState } from '../../types/job'; import { Activity } from './activity'; declare class Signal extends Activity { config: SignalActivity; constructor(config: ActivityType, data: ActivityData, metadata: ActivityMetadata, hook: ActivityData | null, engine: EngineService, context?: JobState); process(): Promise<string>; mapSignalData(): Record<string, any>; mapResolverData(): Record<string, any>; /** * The signal activity will hook one */ hookOne(): Promise<string>; /** * The signal activity will hook all paused jobs that share the same job key. */ hookAll(): Promise<string[]>; } export { Signal };