@trii/types 2.10.589 → 2.10.591

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.
@@ -1,7 +1,8 @@
1
1
  import { ISchedule } from "../Schedules/Schedules";
2
2
  export declare enum WhatsAppConectionType {
3
3
  APIQR = 1,
4
- CLOUDAPI = 7
4
+ CLOUDAPI = 7,
5
+ CLOUDAPI_COEXISTENCE = 8
5
6
  }
6
7
  export declare class WhatsAppConfig {
7
8
  useInCampaigns?: boolean;
@@ -8,6 +8,7 @@ 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
12
  })(WhatsAppConectionType || (exports.WhatsAppConectionType = WhatsAppConectionType = {}));
12
13
  class WhatsAppConfig {
13
14
  }
@@ -19,6 +19,7 @@ export declare enum MessageDirection {
19
19
  OUT = 2
20
20
  }
21
21
  export declare enum MessageAck {
22
+ ACK_SCHEDULED = -3,
22
23
  ACK_QUEUE = -2,
23
24
  ACK_PENDING = -1,
24
25
  ACK_NONE = 0,
@@ -347,6 +348,7 @@ export interface IMessage {
347
348
  read?: boolean;
348
349
  /**ISO8601 timestamp */
349
350
  timestamp: Date;
351
+ scheduledDate?: Date | null;
350
352
  userId: string;
351
353
  channelInfo?: IChannelInfo;
352
354
  /**
@@ -8,6 +8,7 @@ var MessageDirection;
8
8
  })(MessageDirection || (exports.MessageDirection = MessageDirection = {}));
9
9
  var MessageAck;
10
10
  (function (MessageAck) {
11
+ MessageAck[MessageAck["ACK_SCHEDULED"] = -3] = "ACK_SCHEDULED";
11
12
  MessageAck[MessageAck["ACK_QUEUE"] = -2] = "ACK_QUEUE";
12
13
  MessageAck[MessageAck["ACK_PENDING"] = -1] = "ACK_PENDING";
13
14
  MessageAck[MessageAck["ACK_NONE"] = 0] = "ACK_NONE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.589",
3
+ "version": "2.10.591",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",