The SDK requires Node.js v18 or above
NameDescription
TriggerClientTriggerClient is used to create a client that connects to the Trigger.dev platform
JobCreate, configure and run a Job
IOThe second parameter in a Job’s run() function. It holds Integrations and useful actions you can perform.
contextThe third parameter in a Job’s run() function. An object that contains information about the Organization, Job, Run and more.
eventTrigger()eventTrigger() is set as a Job’s trigger to subscribe to an event a Job from a sent event.
cronTrigger()cronTrigger() is set as a Job’s trigger to trigger a Job on a recurring schedule using a CRON expression.
intervalTrigger()intervalTrigger() is set as a Job’s trigger to trigger a Job at a recurring interval.
DynamicTriggerDynamicTrigger allows you to define a trigger that can be configured dynamically at runtime.
DynamicScheduleDynamicSchedule allows you to define a scheduled trigger that can be configured dynamically at runtime.
isTriggerErrorUse this function if you’re using a try/catch block to catch errors.
redactStringAn easy way to redact sensitive information from a string