@trii/types 2.10.642 → 2.10.644

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.
@@ -18,7 +18,14 @@ interface IChannelInfo {
18
18
  name?: string | null;
19
19
  description?: string | null;
20
20
  type?: ChannelType | null;
21
+ /**
22
+ * Whatsapp specific - indicates the type of connection (Cloud API or APIQR)
23
+ */
21
24
  connectionType?: WhatsAppConectionType | null;
25
+ /**
26
+ * Indicates if the WhatsApp business is on the WhatsApp Business App
27
+ */
28
+ isOnBizApp?: boolean | null;
22
29
  }
23
30
  interface IChannel {
24
31
  id?: string | null;
@@ -1,8 +1,7 @@
1
1
  import { ISchedule } from "../Schedules/Schedules";
2
2
  export declare enum WhatsAppConectionType {
3
3
  APIQR = 1,
4
- CLOUDAPI = 7,
5
- CLOUDAPI_COEXISTENCE = 8
4
+ CLOUDAPI = 7
6
5
  }
7
6
  export interface WhatsAppConfig {
8
7
  useInCampaigns?: boolean;
@@ -53,6 +52,9 @@ export interface CloudApiInfo {
53
52
  username?: string;
54
53
  isActive: boolean;
55
54
  isWebhookSet: boolean;
55
+ /**
56
+ * cloudAPI + Business App
57
+ */
56
58
  isOnBizApp: boolean;
57
59
  about: string;
58
60
  address: string;
@@ -8,5 +8,5 @@ var WhatsAppConectionType;
8
8
  // TWILIO = 2,
9
9
  // DIALOG360 = 6,
10
10
  WhatsAppConectionType[WhatsAppConectionType["CLOUDAPI"] = 7] = "CLOUDAPI";
11
- WhatsAppConectionType[WhatsAppConectionType["CLOUDAPI_COEXISTENCE"] = 8] = "CLOUDAPI_COEXISTENCE";
11
+ // CLOUDAPI_COEXISTENCE = 8,
12
12
  })(WhatsAppConectionType || (exports.WhatsAppConectionType = WhatsAppConectionType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.642",
3
+ "version": "2.10.644",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",