@trii/types 2.10.280 → 2.10.281
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,4 +1,4 @@
|
|
|
1
|
-
export declare type QueueType = 'Message' | 'MessageStatus' | 'Post' | 'PostComment' | 'PostResponse' | 'MessageAckStatus' | 'Conversation' | 'Reaction';
|
|
1
|
+
export declare type QueueType = 'Message' | 'MessageStatus' | 'Post' | 'PostComment' | 'PostResponse' | 'MessageAckStatus' | 'Conversation' | 'Reaction' | 'ChannelML';
|
|
2
2
|
export declare type QueueAction = 'add' | 'remove' | 'edited' | 'react' | 'unreact';
|
|
3
3
|
export declare type EventQueue = {
|
|
4
4
|
type: QueueType;
|
|
@@ -30,7 +30,7 @@ export interface IMessage {
|
|
|
30
30
|
forwarded: boolean;
|
|
31
31
|
remoteDeleted: boolean;
|
|
32
32
|
type: MessageType;
|
|
33
|
-
header?:
|
|
33
|
+
header?: MessageHeader;
|
|
34
34
|
footer?: string;
|
|
35
35
|
mentions: [];
|
|
36
36
|
context?: string;
|
|
@@ -99,6 +99,22 @@ export declare enum MessageType {
|
|
|
99
99
|
N2B = 13
|
|
100
100
|
}
|
|
101
101
|
export declare type MessageType2 = 'audio' | 'button' | 'contact' | 'document' | 'image' | 'location' | 'sticker' | 'text' | 'video' | 'interactive';
|
|
102
|
+
export interface MessageHeader {
|
|
103
|
+
type: MessageHeaderType;
|
|
104
|
+
text: string;
|
|
105
|
+
url: string;
|
|
106
|
+
mimeType: string;
|
|
107
|
+
filename: string;
|
|
108
|
+
locationName: string;
|
|
109
|
+
locationAddress: string;
|
|
110
|
+
}
|
|
111
|
+
export declare enum MessageHeaderType {
|
|
112
|
+
TEXT = 0,
|
|
113
|
+
IMAGE = 1,
|
|
114
|
+
VIDEO = 2,
|
|
115
|
+
FILE = 3,
|
|
116
|
+
LOCATION = 4
|
|
117
|
+
}
|
|
102
118
|
export interface MessageText {
|
|
103
119
|
previewUrl: boolean;
|
|
104
120
|
body: string;
|
|
@@ -26,6 +26,14 @@ export var MessageType;
|
|
|
26
26
|
MessageType[MessageType["NOTIFICATION_NEW_CONVERSATION"] = 12] = "NOTIFICATION_NEW_CONVERSATION";
|
|
27
27
|
MessageType[MessageType["N2B"] = 13] = "N2B";
|
|
28
28
|
})(MessageType || (MessageType = {}));
|
|
29
|
+
export var MessageHeaderType;
|
|
30
|
+
(function (MessageHeaderType) {
|
|
31
|
+
MessageHeaderType[MessageHeaderType["TEXT"] = 0] = "TEXT";
|
|
32
|
+
MessageHeaderType[MessageHeaderType["IMAGE"] = 1] = "IMAGE";
|
|
33
|
+
MessageHeaderType[MessageHeaderType["VIDEO"] = 2] = "VIDEO";
|
|
34
|
+
MessageHeaderType[MessageHeaderType["FILE"] = 3] = "FILE";
|
|
35
|
+
MessageHeaderType[MessageHeaderType["LOCATION"] = 4] = "LOCATION";
|
|
36
|
+
})(MessageHeaderType || (MessageHeaderType = {}));
|
|
29
37
|
export var MessageCdrCallStatus;
|
|
30
38
|
(function (MessageCdrCallStatus) {
|
|
31
39
|
MessageCdrCallStatus[MessageCdrCallStatus["ANSWERED"] = 1] = "ANSWERED";
|