- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
1.3 KiB
TypeScript
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 {};
|