- ScanScheduler: tier-based scheduling (BASIC=24h, PLUS=6h, PREMIUM=1h) - WebhookHandler: HMAC-verified webhook ingestion with SCAN_TRIGGER support - API routes: /scheduler and /webhooks endpoints under /api/v1/darkwatch - Jobs: scheduled scan checker + webhook retry processor via BullMQ - Schema: ScanSchedule, WebhookEvent models; ScanJob.scheduledBy field - Types: ScheduleStatus, WebhookEventType, WebhookTriggerInput - Tests: scheduler lifecycle + webhook signature/processing tests Co-Authored-By: Paperclip <noreply@paperclip.ing>
8 lines
256 B
TypeScript
8 lines
256 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
import { FieldEncryptionService } from './services/field-encryption.service';
|
|
|
|
export const prisma = new PrismaClient();
|
|
export default prisma;
|
|
export { FieldEncryptionService };
|
|
export type { PrismaClient };
|