feat: agregar soporte para el envío de plantillas de WhatsApp a través de Meta, incluyendo nueva funcionalidad y adaptadores

This commit is contained in:
2026-09-19 10:50:56 -03:00
parent 728d0a711c
commit 40bc65396f
17 changed files with 177 additions and 32 deletions
@@ -1,4 +1,4 @@
export type NotificationChannel = "whatsapp" | "email" | "system";
export type NotificationChannel = "whatsapp" | "meta_wap" | "email" | "system";
export interface QuietHours {
from: string; // "HH:mm"
@@ -18,7 +18,8 @@ type UrlData = {
};
const CHANNELS: { key: NotificationChannel; label: string }[] = [
{ key: "whatsapp", label: "WhatsApp" },
{ key: "whatsapp", label: "WhatsApp (Bot)" },
{ key: "meta_wap", label: "WhatsApp (Meta)" },
{ key: "email", label: "Email" },
{ key: "system", label: "Sistema" }
];
@@ -19,7 +19,8 @@ type UrlData = {
};
const CHANNELS: { key: NotificationChannel; label: string }[] = [
{ key: "whatsapp", label: "WhatsApp" },
{ key: "whatsapp", label: "WhatsApp (Bot)" },
{ key: "meta_wap", label: "WhatsApp (Meta)" },
{ key: "email", label: "Email" },
{ key: "system", label: "Sistema" }
];
@@ -15,7 +15,8 @@ import MaterialAlert from "@mui/material/Alert";
import styles from "./NotificationsPreferencesPage.module.css";
const CHANNELS: { key: NotificationChannel; label: string }[] = [
{ key: "whatsapp", label: "WhatsApp" },
{ key: "whatsapp", label: "WhatsApp (Bot)" },
{ key: "meta_wap", label: "WhatsApp (Meta)" },
{ key: "email", label: "Email" },
{ key: "system", label: "Sistema" }
];