template-saas/apps/backend/dist/modules/webhooks/entities/webhook.entity.d.ts
rckrdmrd 50a821a415
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
[SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00

41 lines
966 B
TypeScript

export declare class WebhookEntity {
id: string;
tenantId: string;
name: string;
description: string;
url: string;
secret: string;
events: string[];
headers: Record<string, string>;
isActive: boolean;
createdAt: Date;
updatedAt: Date;
createdBy: string;
deliveries: WebhookDeliveryEntity[];
}
export declare enum DeliveryStatus {
PENDING = "pending",
DELIVERED = "delivered",
FAILED = "failed",
RETRYING = "retrying"
}
export declare class WebhookDeliveryEntity {
id: string;
webhookId: string;
tenantId: string;
eventType: string;
payload: Record<string, any>;
status: DeliveryStatus;
responseStatus: number;
responseBody: string;
responseHeaders: Record<string, string>;
attempt: number;
maxAttempts: number;
nextRetryAt: Date;
lastError: string;
createdAt: Date;
deliveredAt: Date;
completedAt: Date;
webhook: WebhookEntity;
}