mirror of
https://github.com/documenso/documenso.git
synced 2026-07-23 00:13:46 +10:00
138d663c25
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
30 lines
967 B
TypeScript
30 lines
967 B
TypeScript
import type { Context as HonoContext } from 'hono';
|
|
|
|
import type { JobDefinition, SimpleTriggerJobOptions } from './_internal/job';
|
|
|
|
export abstract class BaseJobProvider {
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
public async triggerJob(_options: SimpleTriggerJobOptions): Promise<void> {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
public defineJob<N extends string, T>(_job: JobDefinition<N, T>): void {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
public getApiHandler(): (req: HonoContext) => Promise<Response | void> {
|
|
throw new Error('Not implemented');
|
|
}
|
|
|
|
/**
|
|
* Start the cron scheduler for any registered cron jobs.
|
|
*
|
|
* No-op for providers that handle cron scheduling externally (e.g. Inngest).
|
|
* Must be called explicitly at application startup.
|
|
*/
|
|
public startCron(): void {
|
|
// No-op by default — providers override if needed.
|
|
}
|
|
}
|