evo360-types 1.3.302 → 1.3.304

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.
@@ -12,6 +12,7 @@ export declare const EvoNotificationsCollections: {
12
12
  readonly Logs: "logs";
13
13
  readonly EmailChannels: "email_channels";
14
14
  readonly EmailTemplates: "email_templates";
15
+ readonly WhatsAppChannels: "whatsapp_channels";
15
16
  };
16
17
  export type EvoNotificationsCollectionName = (typeof EvoNotificationsCollections)[keyof typeof EvoNotificationsCollections];
17
18
  export declare const NotificationTaskKindEnum: {
@@ -197,6 +198,17 @@ export interface IEmailTemplate extends IFireDoc {
197
198
  variables: string[];
198
199
  enabled: boolean;
199
200
  }
201
+ export interface IWabaChannelConfig extends IFireDoc {
202
+ display_name: string;
203
+ phone_number_id: string;
204
+ waba_id: string;
205
+ business_id?: string;
206
+ number?: string;
207
+ access_token_secret_ref?: string;
208
+ default_department_id: string;
209
+ company_id?: string;
210
+ enabled: boolean;
211
+ }
200
212
  export interface INotificationProviderConfig {
201
213
  id: string;
202
214
  provider_name: string;
@@ -48,6 +48,7 @@ exports.EvoNotificationsCollections = {
48
48
  Logs: "logs",
49
49
  EmailChannels: "email_channels",
50
50
  EmailTemplates: "email_templates", // subcollection de email_channels
51
+ WhatsAppChannels: "whatsapp_channels",
51
52
  };
52
53
  // ----- Task Runner integration
53
54
  exports.NotificationTaskKindEnum = {
@@ -39,6 +39,7 @@ export const EvoNotificationsCollections = {
39
39
  Logs: "logs",
40
40
  EmailChannels: "email_channels",
41
41
  EmailTemplates: "email_templates", // subcollection de email_channels
42
+ WhatsAppChannels: "whatsapp_channels",
42
43
  } as const;
43
44
 
44
45
  export type EvoNotificationsCollectionName =
@@ -341,6 +342,23 @@ export interface IEmailTemplate extends IFireDoc {
341
342
  enabled: boolean;
342
343
  }
343
344
 
345
+ // ======================================================
346
+ // WhatsApp channels (hub-waba)
347
+ // Path: /tenants/{tenant}/apps/evo-notifications/whatsapp_channels/{channelId}
348
+ // ======================================================
349
+
350
+ export interface IWabaChannelConfig extends IFireDoc {
351
+ display_name: string;
352
+ phone_number_id: string;
353
+ waba_id: string;
354
+ business_id?: string;
355
+ number?: string;
356
+ access_token_secret_ref?: string;
357
+ default_department_id: string;
358
+ company_id?: string;
359
+ enabled: boolean;
360
+ }
361
+
344
362
  // ======================================================
345
363
  // Nexus / platform: configuração global de providers de envio
346
364
  // Path Firestore: platform/evo-notifications/providers/{providerId}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.302",
3
+ "version": "1.3.304",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",