- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
781 B
TypeScript
24 lines
781 B
TypeScript
import { WorkerHost } from '@nestjs/bullmq';
|
|
import { Repository } from 'typeorm';
|
|
import { Job } from 'bullmq';
|
|
import { WebhookDeliveryEntity } from '../entities';
|
|
interface WebhookDeliveryJob {
|
|
deliveryId: string;
|
|
webhookId: string;
|
|
url: string;
|
|
secret: string;
|
|
headers: Record<string, string>;
|
|
eventType: string;
|
|
payload: Record<string, any>;
|
|
}
|
|
export declare class WebhookProcessor extends WorkerHost {
|
|
private readonly deliveryRepo;
|
|
private readonly logger;
|
|
constructor(deliveryRepo: Repository<WebhookDeliveryEntity>);
|
|
process(job: Job<WebhookDeliveryJob>): Promise<void>;
|
|
private handleFailure;
|
|
onCompleted(job: Job<WebhookDeliveryJob>): void;
|
|
onFailed(job: Job<WebhookDeliveryJob>, error: Error): void;
|
|
}
|
|
export {};
|