Files
sign/packages/lib/jobs/client.ts

13 lines
489 B
TypeScript
Raw Normal View History

2024-05-15 18:55:05 +10:00
import { JobClient } from './client/client';
2024-05-22 21:57:05 +10:00
import { SEND_CONFIRMATION_EMAIL_JOB_DEFINITION } from './definitions/send-confirmation-email';
import { SEND_SIGNING_EMAIL_JOB_DEFINITION } from './definitions/send-signing-email';
2024-05-15 18:55:05 +10:00
2024-05-22 21:57:05 +10:00
/**
* The `as const` assertion is load bearing as it provides the correct level of type inference for
* triggering jobs.
*/
export const jobsClient = new JobClient([
SEND_CONFIRMATION_EMAIL_JOB_DEFINITION,
SEND_SIGNING_EMAIL_JOB_DEFINITION,
] as const);