@trii/types 2.10.425 → 2.10.427
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.
|
@@ -140,9 +140,21 @@ export interface MessageDocument {
|
|
|
140
140
|
mediaid?: string;
|
|
141
141
|
}
|
|
142
142
|
export interface MessageReference {
|
|
143
|
-
messageId: string;
|
|
144
143
|
channelId: string;
|
|
145
144
|
externalId?: string;
|
|
145
|
+
messageId?: string;
|
|
146
|
+
massageData?: MessageReferenceData;
|
|
147
|
+
}
|
|
148
|
+
export interface MessageReferenceData {
|
|
149
|
+
messageType: MessageType2;
|
|
150
|
+
isStatus: boolean;
|
|
151
|
+
isReel: boolean;
|
|
152
|
+
isStory: boolean;
|
|
153
|
+
body?: string;
|
|
154
|
+
mimeType?: string;
|
|
155
|
+
url?: string;
|
|
156
|
+
filename?: string;
|
|
157
|
+
caption?: string;
|
|
146
158
|
}
|
|
147
159
|
export interface MessageReaction {
|
|
148
160
|
emoji: string;
|
|
@@ -309,6 +321,11 @@ export interface MessageContactUrl {
|
|
|
309
321
|
url: string;
|
|
310
322
|
type: string;
|
|
311
323
|
}
|
|
324
|
+
export interface MessageTemplateVar {
|
|
325
|
+
var?: number;
|
|
326
|
+
value: string;
|
|
327
|
+
btn?: number;
|
|
328
|
+
}
|
|
312
329
|
export interface IMessage {
|
|
313
330
|
id: string;
|
|
314
331
|
externalId?: string;
|
|
@@ -344,6 +361,11 @@ export interface IMessage {
|
|
|
344
361
|
header?: MessageHeader;
|
|
345
362
|
footer?: string;
|
|
346
363
|
mentions: [];
|
|
364
|
+
templateId: string;
|
|
365
|
+
templateName: string;
|
|
366
|
+
templateHeaderVars: MessageTemplateVar[];
|
|
367
|
+
templateBodyVars: MessageTemplateVar[];
|
|
368
|
+
templateButtonVars: MessageTemplateVar[];
|
|
347
369
|
context?: string;
|
|
348
370
|
text?: MessageText;
|
|
349
371
|
contacts?: MessageContact[];
|