@trii/types 2.10.228 → 2.10.229
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,20 +1,26 @@
|
|
|
1
|
-
import { IContactAddress
|
|
1
|
+
import { IContactAddress } from "../../Contacts/contacts";
|
|
2
2
|
import { UserInfo } from "../../Users/UserTrii";
|
|
3
3
|
import { IChannelInfo } from "../Channels/Channel";
|
|
4
4
|
export interface IMessage {
|
|
5
5
|
id: string;
|
|
6
|
+
externalId?: string;
|
|
6
7
|
spaceId: string;
|
|
7
8
|
conversationId: string;
|
|
8
|
-
externalId?: string;
|
|
9
|
-
contact?: IContactInfo;
|
|
10
9
|
/**ISO8601 timestamp */
|
|
11
10
|
timestamp: Date;
|
|
12
11
|
author: UserInfo;
|
|
13
12
|
channelInfo?: IChannelInfo;
|
|
13
|
+
/**
|
|
14
|
+
* ejemplos
|
|
15
|
+
* wa:5493584023801,
|
|
16
|
+
* email:info@trii.app,
|
|
17
|
+
* Fb:11111111111111111,
|
|
18
|
+
* Ig:22222222222222222,
|
|
19
|
+
* sms:3584023801
|
|
20
|
+
* */
|
|
14
21
|
from: string;
|
|
15
|
-
fromContactData?: MessageContactData;
|
|
16
22
|
to: string;
|
|
17
|
-
|
|
23
|
+
remoteContactData?: MessageContactData;
|
|
18
24
|
direction: MessageDirection;
|
|
19
25
|
ack: MessageAck;
|
|
20
26
|
forwarded: boolean;
|
|
@@ -22,6 +28,7 @@ export interface IMessage {
|
|
|
22
28
|
type: MessageType;
|
|
23
29
|
header?: string;
|
|
24
30
|
footer?: string;
|
|
31
|
+
mentions: [];
|
|
25
32
|
context?: string;
|
|
26
33
|
text?: MessageText;
|
|
27
34
|
contacts?: MessageContact[];
|
|
@@ -37,6 +44,7 @@ export interface IMessage {
|
|
|
37
44
|
ticket?: MessageTicket;
|
|
38
45
|
email?: MessageEmail;
|
|
39
46
|
buttons?: [];
|
|
47
|
+
poll?: MessagePoll;
|
|
40
48
|
reactions?: MessageReaction[];
|
|
41
49
|
messageReference?: MessageReference;
|
|
42
50
|
isLoaded: boolean;
|
|
@@ -207,6 +215,16 @@ export interface MessageTicket {
|
|
|
207
215
|
}
|
|
208
216
|
export interface MessageForm {
|
|
209
217
|
}
|
|
218
|
+
export interface MessagePoll {
|
|
219
|
+
pollName: string;
|
|
220
|
+
pollOptions: MessagePollOption[];
|
|
221
|
+
pollSelectableOptionsCount: number;
|
|
222
|
+
pollInvalidated: boolean;
|
|
223
|
+
}
|
|
224
|
+
export interface MessagePollOption {
|
|
225
|
+
name: string;
|
|
226
|
+
localId: string;
|
|
227
|
+
}
|
|
210
228
|
export interface MessageContact {
|
|
211
229
|
addresses: MessageContactAddress[];
|
|
212
230
|
birthday: string;
|