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:
@@ -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"
|
||||
|
||||
+2
-1
@@ -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" }
|
||||
];
|
||||
|
||||
+2
-1
@@ -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" }
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user