michangarrito/apps/whatsapp-service/dist/webhook/dto/webhook.dto.d.ts
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -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 {};