michangarrito/apps/whatsapp-service/dist/webhook/dto/webhook.dto.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

85 lines
1.7 KiB
TypeScript

declare class WebhookMessageText {
body: string;
}
declare class WebhookMessageInteractive {
type: string;
button_reply?: {
id: string;
title: string;
};
list_reply?: {
id: string;
title: string;
description?: string;
};
}
declare class WebhookMessage {
from: string;
id: string;
timestamp: string;
type: string;
text?: WebhookMessageText;
interactive?: WebhookMessageInteractive;
image?: {
id: string;
mime_type: string;
caption?: string;
};
audio?: {
id: string;
mime_type: string;
};
document?: {
id: string;
mime_type: string;
filename?: string;
};
location?: {
latitude: number;
longitude: number;
name?: string;
address?: string;
};
}
declare class WebhookContact {
profile: {
name: string;
};
wa_id: string;
}
declare class WebhookStatus {
id: string;
status: string;
timestamp: string;
recipient_id: string;
errors?: Array<{
code: number;
title: string;
message: string;
}>;
}
declare class WebhookMetadata {
display_phone_number: string;
phone_number_id: string;
}
declare class WebhookValue {
messaging_product: string;
metadata: WebhookMetadata;
contacts?: WebhookContact[];
messages?: WebhookMessage[];
statuses?: WebhookStatus[];
}
declare class WebhookChange {
value: WebhookValue;
field: string;
}
declare class WebhookEntry {
id: string;
changes: WebhookChange[];
}
export declare class WebhookPayloadDto {
object: string;
entry: WebhookEntry[];
}
export {};