@rodrigobeber/patoai-dtos 4.8.4 → 4.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,11 @@ export declare enum AlertTypeEnum {
11
11
  }
12
12
  /** Alertas que PODEM ser entregues por WhatsApp (os demais = só e-mail). */
13
13
  export declare const WHATSAPP_ELIGIBLE_ALERTS: readonly AlertTypeEnum[];
14
- /** Trio crítico: WhatsApp vem LIGADO por padrão ao habilitar o alerta. */
15
- export declare const WHATSAPP_DEFAULT_ON_ALERTS: readonly AlertTypeEnum[];
14
+ /**
15
+ * Trio crítico: vem LIGADO por padrão (inclusive em crews existentes, via backfill da V151)
16
+ * e SÓ por e-mail — WhatsApp começa desligado em todos os tipos.
17
+ */
18
+ export declare const DEFAULT_ENABLED_ALERTS: readonly AlertTypeEnum[];
16
19
  /** Alertas que só existem/avaliam quando a crew tem agenda ativa. */
17
20
  export declare const AGENDA_REQUIRED_ALERTS: readonly AlertTypeEnum[];
18
21
  /** Nome do template UTILITY na Meta por tipo de alerta (só os WhatsApp-elegíveis). */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALERT_TEMPLATE = exports.AGENDA_REQUIRED_ALERTS = exports.WHATSAPP_DEFAULT_ON_ALERTS = exports.WHATSAPP_ELIGIBLE_ALERTS = exports.AlertTypeEnum = void 0;
3
+ exports.ALERT_TEMPLATE = exports.AGENDA_REQUIRED_ALERTS = exports.DEFAULT_ENABLED_ALERTS = exports.WHATSAPP_ELIGIBLE_ALERTS = exports.AlertTypeEnum = void 0;
4
4
  var AlertTypeEnum;
5
5
  (function (AlertTypeEnum) {
6
6
  AlertTypeEnum["WHATSAPP_HEALTH"] = "whatsapp_health";
@@ -23,8 +23,11 @@ exports.WHATSAPP_ELIGIBLE_ALERTS = [
23
23
  AlertTypeEnum.SCHEDULE_CANCELED,
24
24
  AlertTypeEnum.DAILY_DIGEST
25
25
  ];
26
- /** Trio crítico: WhatsApp vem LIGADO por padrão ao habilitar o alerta. */
27
- exports.WHATSAPP_DEFAULT_ON_ALERTS = [
26
+ /**
27
+ * Trio crítico: já vem LIGADO por padrão (inclusive em crews existentes, via backfill da V151)
28
+ * e SÓ por e-mail — WhatsApp começa desligado em todos os tipos.
29
+ */
30
+ exports.DEFAULT_ENABLED_ALERTS = [
28
31
  AlertTypeEnum.WHATSAPP_HEALTH,
29
32
  AlertTypeEnum.SUBSCRIPTION,
30
33
  AlertTypeEnum.LOW_CREDITS
@@ -43,5 +46,7 @@ exports.ALERT_TEMPLATE = {
43
46
  [AlertTypeEnum.SCHEDULE_UPCOMING]: "alert_schedule_upcoming",
44
47
  [AlertTypeEnum.SCHEDULE_CREATED]: "alert_schedule_created",
45
48
  [AlertTypeEnum.SCHEDULE_CANCELED]: "alert_schedule_canceled",
46
- [AlertTypeEnum.DAILY_DIGEST]: "alert_daily_digest"
49
+ // v2: o nome anterior "alert_daily_digest" foi deletado na Meta e o nome fica bloqueado por um
50
+ // tempo; recriado como _v2 com o novo formato (agente, data, resumo de ontem).
51
+ [AlertTypeEnum.DAILY_DIGEST]: "alert_daily_digest_v2"
47
52
  };
@@ -10,6 +10,7 @@ export interface AlertRouteDto {
10
10
  export interface WebChatCrewAlertsDto {
11
11
  active: boolean;
12
12
  recipients: string[];
13
+ defaultRecipients: string[];
13
14
  whatsappTo: string[];
14
15
  whatsappOptin: boolean;
15
16
  lowCreditsThreshold: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.8.4",
3
+ "version": "4.8.6",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",