@trii/types 2.10.254 → 2.10.256

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.
@@ -3,7 +3,8 @@ export declare enum WhatsAppConectionType {
3
3
  NULL = 0,
4
4
  APIQR = 1,
5
5
  TWILIO = 2,
6
- DIALOG360 = 6
6
+ DIALOG360 = 6,
7
+ CLOUDAPI = 7
7
8
  }
8
9
  export declare class WhatsAppConfig {
9
10
  useInCampaigns?: boolean;
@@ -30,4 +31,10 @@ export declare class WhatsAppConfig {
30
31
  twilioNumber?: string;
31
32
  apiqrId?: string;
32
33
  apiqrToken?: string;
34
+ cloudApiNameSpace?: string;
35
+ cloudApiSystemUserAccessToken?: string;
36
+ cloudApiAppToken?: string;
37
+ cloudApiWhatsAppBusinessAccountId?: string;
38
+ cloudApiMetaDeveloperAppId?: string;
39
+ cloudApiWhatsAppPhoneNumberId?: string;
33
40
  }
@@ -4,6 +4,7 @@ export var WhatsAppConectionType;
4
4
  WhatsAppConectionType[WhatsAppConectionType["APIQR"] = 1] = "APIQR";
5
5
  WhatsAppConectionType[WhatsAppConectionType["TWILIO"] = 2] = "TWILIO";
6
6
  WhatsAppConectionType[WhatsAppConectionType["DIALOG360"] = 6] = "DIALOG360";
7
+ WhatsAppConectionType[WhatsAppConectionType["CLOUDAPI"] = 7] = "CLOUDAPI";
7
8
  })(WhatsAppConectionType || (WhatsAppConectionType = {}));
8
9
  export class WhatsAppConfig {
9
10
  }
@@ -28,10 +28,19 @@ export interface IConversation {
28
28
  assignedTo?: ConversationAssigned;
29
29
  participants: UserInfo[];
30
30
  archived: boolean;
31
+ botStatus: ConversationBotStatus;
32
+ botId?: string;
31
33
  finalizedAt: Date;
32
34
  createdAt: Date;
33
35
  updatedAt: Date;
34
36
  }
37
+ export declare enum ConversationBotStatus {
38
+ NONE = 0,
39
+ WAITING = 1,
40
+ PROCESSING = 2,
41
+ FINALIZED = 4,
42
+ CANCELED = 5
43
+ }
35
44
  export declare enum ChatType {
36
45
  /**Conversation with a external channel/contact */
37
46
  EXTERNAL = 0,
@@ -1,3 +1,11 @@
1
+ export var ConversationBotStatus;
2
+ (function (ConversationBotStatus) {
3
+ ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
4
+ ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
5
+ ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
6
+ ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
7
+ ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
8
+ })(ConversationBotStatus || (ConversationBotStatus = {}));
1
9
  export var ChatType;
2
10
  (function (ChatType) {
3
11
  /**Conversation with a external channel/contact */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.254",
3
+ "version": "2.10.256",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",