evo360-types 1.3.534 → 1.3.538

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.
@@ -14,6 +14,7 @@ export declare const EvoNotificationsCollections: {
14
14
  readonly EmailTemplates: "email_templates";
15
15
  readonly WhatsAppChannels: "whatsapp_channels";
16
16
  readonly QuickReplyActions: "quick-reply-actions";
17
+ readonly SmsChannels: "sms_channels";
17
18
  };
18
19
  export type EvoNotificationsCollectionName = (typeof EvoNotificationsCollections)[keyof typeof EvoNotificationsCollections];
19
20
  export declare const NotificationTaskKindEnum: {
@@ -234,6 +235,16 @@ export interface IWabaChannelConfig extends IFireDoc {
234
235
  company_id?: string;
235
236
  enabled: boolean;
236
237
  }
238
+ export interface ISmsChannelConfig extends IFireDoc {
239
+ display_name: string;
240
+ /** Sender/remetente registrado na Infobip (quando ausente, usa o default do provider global). */
241
+ sender?: string;
242
+ /** DDI default para normalização E.164 de números locais (ex.: '55'). */
243
+ default_country_code?: string;
244
+ /** CPaaSX entity da clínica na Infobip — reservado; quando presente, vai no payload de envio. */
245
+ infobip_entity_id?: string;
246
+ enabled: boolean;
247
+ }
237
248
  export interface INotificationProviderConfig {
238
249
  id: string;
239
250
  provider_name: string;
@@ -50,6 +50,7 @@ exports.EvoNotificationsCollections = {
50
50
  EmailTemplates: "email_templates", // subcollection de email_channels
51
51
  WhatsAppChannels: "whatsapp_channels",
52
52
  QuickReplyActions: "quick-reply-actions", // feat-047: cross-channel actionable buttons/links
53
+ SmsChannels: "sms_channels", // feat-148: canal SMS (Infobip)
53
54
  };
54
55
  // ----- Task Runner integration
55
56
  exports.NotificationTaskKindEnum = {
@@ -41,6 +41,7 @@ export const EvoNotificationsCollections = {
41
41
  EmailTemplates: "email_templates", // subcollection de email_channels
42
42
  WhatsAppChannels: "whatsapp_channels",
43
43
  QuickReplyActions: "quick-reply-actions", // feat-047: cross-channel actionable buttons/links
44
+ SmsChannels: "sms_channels", // feat-148: canal SMS (Infobip)
44
45
  } as const;
45
46
 
46
47
  export type EvoNotificationsCollectionName =
@@ -392,6 +393,26 @@ export interface IWabaChannelConfig extends IFireDoc {
392
393
  enabled: boolean;
393
394
  }
394
395
 
396
+ // ======================================================
397
+ // SMS channels (Infobip) — feat-148
398
+ // Path: /tenants/{tenant}/apps/evo-notifications/sms_channels/{channelId}
399
+ //
400
+ // A credencial (API key Infobip) é GLOBAL — vive nos `settings` do provider em
401
+ // platform/evo-notifications/providers (secret ref, nunca em texto plano).
402
+ // O doc do tenant é o gate de opt-in + preferências de envio.
403
+ // ======================================================
404
+
405
+ export interface ISmsChannelConfig extends IFireDoc {
406
+ display_name: string;
407
+ /** Sender/remetente registrado na Infobip (quando ausente, usa o default do provider global). */
408
+ sender?: string;
409
+ /** DDI default para normalização E.164 de números locais (ex.: '55'). */
410
+ default_country_code?: string;
411
+ /** CPaaSX entity da clínica na Infobip — reservado; quando presente, vai no payload de envio. */
412
+ infobip_entity_id?: string;
413
+ enabled: boolean;
414
+ }
415
+
395
416
  // ======================================================
396
417
  // Nexus / platform: configuração global de providers de envio
397
418
  // 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.534",
3
+ "version": "1.3.538",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",