template-saas/apps/backend/dist/modules/webhooks/webhooks.controller.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

28 lines
1.3 KiB
TypeScript

import { WebhookService } from './services';
import { CreateWebhookDto, UpdateWebhookDto, TestWebhookDto, ListDeliveriesQueryDto, WebhookResponseDto, DeliveryResponseDto, PaginatedDeliveriesDto, AvailableEventsDto } from './dto';
interface RequestUser {
id: string;
tenant_id: string;
email: string;
role: string;
}
export declare class WebhooksController {
private readonly webhookService;
constructor(webhookService: WebhookService);
getAvailableEvents(): AvailableEventsDto;
findAll(user: RequestUser): Promise<WebhookResponseDto[]>;
findOne(user: RequestUser, id: string): Promise<WebhookResponseDto>;
create(user: RequestUser, dto: CreateWebhookDto): Promise<WebhookResponseDto>;
update(user: RequestUser, id: string, dto: UpdateWebhookDto): Promise<WebhookResponseDto>;
remove(user: RequestUser, id: string): Promise<{
message: string;
}>;
regenerateSecret(user: RequestUser, id: string): Promise<{
secret: string;
}>;
test(user: RequestUser, id: string, dto: TestWebhookDto): Promise<DeliveryResponseDto>;
getDeliveries(user: RequestUser, id: string, query: ListDeliveriesQueryDto): Promise<PaginatedDeliveriesDto>;
retryDelivery(user: RequestUser, id: string, deliveryId: string): Promise<DeliveryResponseDto>;
}
export {};