Commit b7bd9402 authored by Tim Kinnane's avatar Tim Kinnane

fix(payload): Update message interface for payload

parent f17a340b
......@@ -36,20 +36,20 @@ FN:218,(anonymous_42)
FN:218,(anonymous_43)
FNF:34
FNH:16
FNDA:65,loggedIn
FNDA:50,getQueryString
FNDA:66,(anonymous_9)
FNDA:64,loggedIn
FNDA:49,getQueryString
FNDA:64,(anonymous_9)
FNDA:12,setAuth
FNDA:81,getHeaders
FNDA:80,getHeaders
FNDA:15,clearHeaders
FNDA:83,success
FNDA:82,success
FNDA:31,post
FNDA:31,(anonymous_16)
FNDA:31,(anonymous_17)
FNDA:0,(anonymous_18)
FNDA:47,get
FNDA:47,(anonymous_21)
FNDA:47,(anonymous_22)
FNDA:46,get
FNDA:46,(anonymous_21)
FNDA:46,(anonymous_22)
FNDA:0,(anonymous_23)
FNDA:26,login
FNDA:25,logout
......@@ -75,30 +75,30 @@ DA:2,1
DA:3,1
DA:17,1
DA:25,1
DA:26,65
DA:26,64
DA:30,1
DA:31,1
DA:37,1
DA:42,1
DA:43,50
DA:44,36
DA:45,66
DA:48,66
DA:43,49
DA:44,35
DA:45,64
DA:48,64
DA:53,1
DA:54,1
DA:57,1
DA:58,12
DA:59,12
DA:63,1
DA:64,81
DA:65,67
DA:64,80
DA:65,66
DA:70,1
DA:72,66
DA:72,65
DA:76,1
DA:77,15
DA:78,15
DA:82,1
DA:83,83
DA:83,82
DA:104,1
DA:110,31
DA:111,31
......@@ -115,19 +115,19 @@ DA:122,31
DA:124,0
DA:125,0
DA:136,1
DA:142,47
DA:143,47
DA:144,47
DA:145,47
DA:146,47
DA:147,47
DA:148,47
DA:149,47
DA:150,47
DA:151,47
DA:142,46
DA:143,46
DA:144,46
DA:145,46
DA:146,46
DA:147,46
DA:148,46
DA:149,46
DA:150,46
DA:151,46
DA:152,0
DA:154,47
DA:155,47
DA:154,46
DA:155,46
DA:157,0
DA:166,1
DA:170,26
......@@ -161,33 +161,33 @@ DA:217,0
DA:218,0
LF:89
LH:77
BRDA:38,0,0,0
BRDA:38,0,1,1
BRDA:38,0,0,1
BRDA:38,0,1,0
BRDA:43,1,0,14
BRDA:43,1,1,36
BRDA:43,2,0,50
BRDA:43,2,1,38
BRDA:43,2,2,38
BRDA:43,1,1,35
BRDA:43,2,0,49
BRDA:43,2,1,37
BRDA:43,2,2,37
BRDA:46,3,0,3
BRDA:46,3,1,63
BRDA:46,3,1,61
BRDA:63,4,0,1
BRDA:64,5,0,14
BRDA:64,5,1,67
BRDA:64,5,1,66
BRDA:65,6,0,1
BRDA:65,6,1,66
BRDA:66,7,0,67
BRDA:66,7,1,66
BRDA:66,7,2,66
BRDA:66,7,3,66
BRDA:92,8,0,81
BRDA:65,6,1,65
BRDA:66,7,0,66
BRDA:66,7,1,65
BRDA:66,7,2,65
BRDA:66,7,3,65
BRDA:92,8,0,80
BRDA:92,8,1,2
BRDA:85,9,0,83
BRDA:85,9,1,83
BRDA:85,9,2,57
BRDA:85,9,3,82
BRDA:85,9,0,82
BRDA:85,9,1,82
BRDA:85,9,2,56
BRDA:85,9,3,81
BRDA:85,9,4,26
BRDA:85,9,5,57
BRDA:85,9,6,55
BRDA:85,9,5,56
BRDA:85,9,6,54
BRDA:85,9,7,2
BRDA:85,9,8,0
BRDA:85,9,9,0
......@@ -200,15 +200,15 @@ BRDA:116,13,0,0
BRDA:116,13,1,31
BRDA:117,14,0,0
BRDA:117,14,1,31
BRDA:139,15,0,17
BRDA:139,15,0,16
BRDA:144,16,0,1
BRDA:144,16,1,46
BRDA:144,17,0,47
BRDA:144,17,1,46
BRDA:144,16,1,45
BRDA:144,17,0,46
BRDA:144,17,1,45
BRDA:149,18,0,0
BRDA:149,18,1,47
BRDA:149,18,1,46
BRDA:150,19,0,0
BRDA:150,19,1,47
BRDA:150,19,1,46
BRDA:166,20,0,6
BRDA:171,21,0,19
BRDA:171,21,1,7
......@@ -606,7 +606,7 @@ FNDA:0,(anonymous_3)
FNDA:0,(anonymous_4)
FNDA:2,replaceLog
FNDA:2,silence
FNDA:330,(anonymous_7)
FNDA:328,(anonymous_7)
FNDA:314,(anonymous_8)
FNDA:0,(anonymous_9)
FNDA:0,(anonymous_10)
......@@ -619,7 +619,7 @@ DA:18,0
DA:22,1
DA:25,2
DA:29,2
DA:30,330
DA:30,328
DA:31,314
DA:32,0
DA:33,0
......@@ -724,7 +724,7 @@ SF:/Volumes/x/code/rocketchat/Rocket.Chat.js.SDK/src/lib/settings.ts
FN:16,(anonymous_0)
FNF:1
FNH:1
FNDA:4,(anonymous_0)
FNDA:3,(anonymous_0)
DA:3,9
DA:4,9
DA:5,9
......@@ -732,7 +732,7 @@ DA:8,9
DA:9,9
DA:12,9
DA:15,9
DA:16,4
DA:16,3
DA:18,9
DA:19,9
DA:20,9
......@@ -745,20 +745,20 @@ DA:30,9
LF:17
LH:17
BRDA:3,0,0,9
BRDA:3,0,1,0
BRDA:3,0,1,9
BRDA:4,1,0,9
BRDA:4,1,1,9
BRDA:8,2,0,9
BRDA:8,2,1,5
BRDA:8,2,1,6
BRDA:10,3,0,2
BRDA:10,3,1,7
BRDA:10,4,0,2
BRDA:10,4,1,0
BRDA:11,5,0,7
BRDA:11,5,1,4
BRDA:16,6,0,3
BRDA:16,6,1,6
BRDA:16,7,0,3
BRDA:11,5,1,5
BRDA:16,6,0,2
BRDA:16,6,1,7
BRDA:16,7,0,2
BRDA:16,7,1,0
BRDA:18,8,0,9
BRDA:18,8,1,8
......@@ -779,5 +779,5 @@ BRDA:29,15,1,9
BRDA:30,16,0,9
BRDA:30,16,1,9
BRF:34
BRH:31
BRH:32
end_of_record
......@@ -53,9 +53,11 @@ export interface IMessageAction {
url?: string;
image_url?: string;
is_webview?: boolean;
webview_height_ratio?: string;
webview_height_ratio?: 'compact' | 'tall' | 'full';
msg?: string;
msg_in_chat_window?: boolean;
button_alignment?: 'vertical' | 'horizontal';
temporary_buttons?: boolean;
}
export interface IMessageLocation {
type: string;
......
{"version":3,"file":"messageInterfaces.js","sourceRoot":"","sources":["../../src/config/messageInterfaces.ts"],"names":[],"mappings":";AAAA,8DAA8D","sourcesContent":["/** @todo contribute these to @types/rocketchat and require */\n\nexport interface IMessage {\n rid: string | null // room ID\n _id?: string // generated by Random.id()\n t?: string // type e.g. rm\n msg?: string // text content\n alias?: string // ??\n emoji?: string // emoji to use as avatar\n avatar?: string // url\n groupable?: boolean // ?\n bot?: any // integration details\n urls?: string[] // ?\n mentions?: string[] // ?\n attachments?: IMessageAttachment[]\n reactions?: IMessageReaction\n location ?: IMessageLocation\n u?: IUser // User that sent the message\n editedBy?: IUser // User that edited the message\n editedAt?: Date // When the message was edited\n}\n\nexport interface IUser {\n _id: string\n username: string\n name?: string\n}\n\nexport interface IMessageAttachment {\n fields?: IAttachmentField[]\n actions?: IMessageAction[]\n color?: string\n text?: string\n ts?: string\n thumb_url?: string\n message_link?: string\n collapsed?: boolean\n author_name?: string\n author_link?: string\n author_icon?: string\n title?: string\n title_link?: string\n title_link_download?: string\n image_url?: string\n audio_url?: string\n video_url?: string\n}\n\nexport interface IAttachmentField {\n short?: boolean\n title?: string\n value?: string\n}\n\nexport interface IMessageAction {\n type?: string,\n text?: string,\n url?: string,\n image_url?: string,\n is_webview?: boolean,\n webview_height_ratio?: string,\n msg?: string,\n msg_in_chat_window?: boolean\n}\n\nexport interface IMessageLocation {\n type: string // e.g. Point\n coordinates: string[] // longitude latitude\n}\n\nexport interface IMessageReaction {\n [emoji: string]: { usernames: string[] } // emoji: [usernames that reacted]\n}\n"]}
\ No newline at end of file
{"version":3,"file":"messageInterfaces.js","sourceRoot":"","sources":["../../src/config/messageInterfaces.ts"],"names":[],"mappings":";AAAA,8DAA8D","sourcesContent":["/** @todo contribute these to @types/rocketchat and require */\n\nexport interface IMessage {\n rid: string | null // room ID\n _id?: string // generated by Random.id()\n t?: string // type e.g. rm\n msg?: string // text content\n alias?: string // ??\n emoji?: string // emoji to use as avatar\n avatar?: string // url\n groupable?: boolean // ?\n bot?: any // integration details\n urls?: string[] // ?\n mentions?: string[] // ?\n attachments?: IMessageAttachment[]\n reactions?: IMessageReaction\n location ?: IMessageLocation\n u?: IUser // User that sent the message\n editedBy?: IUser // User that edited the message\n editedAt?: Date // When the message was edited\n}\n\nexport interface IUser {\n _id: string\n username: string\n name?: string\n}\n\nexport interface IMessageAttachment {\n fields?: IAttachmentField[]\n actions?: IMessageAction[]\n color?: string\n text?: string\n ts?: string\n thumb_url?: string\n message_link?: string\n collapsed?: boolean\n author_name?: string\n author_link?: string\n author_icon?: string\n title?: string\n title_link?: string\n title_link_download?: string\n image_url?: string\n audio_url?: string\n video_url?: string\n}\n\nexport interface IAttachmentField {\n short?: boolean\n title?: string\n value?: string\n}\n\nexport interface IMessageAction {\n type?: string\n text?: string\n url?: string\n image_url?: string\n is_webview?: boolean\n webview_height_ratio?: 'compact' | 'tall' | 'full'\n msg?: string\n msg_in_chat_window?: boolean\n button_alignment?: 'vertical' | 'horizontal'\n temporary_buttons?: boolean\n}\n\nexport interface IMessageLocation {\n type: string // e.g. Point\n coordinates: string[] // longitude latitude\n}\n\nexport interface IMessageReaction {\n [emoji: string]: { usernames: string[] } // emoji: [usernames that reacted]\n}\n"]}
\ No newline at end of file
......@@ -53,14 +53,16 @@ export interface IAttachmentField {
}
export interface IMessageAction {
type?: string,
text?: string,
url?: string,
image_url?: string,
is_webview?: boolean,
webview_height_ratio?: string,
msg?: string,
type?: string
text?: string
url?: string
image_url?: string
is_webview?: boolean
webview_height_ratio?: 'compact' | 'tall' | 'full'
msg?: string
msg_in_chat_window?: boolean
button_alignment?: 'vertical' | 'horizontal'
temporary_buttons?: boolean
}
export interface IMessageLocation {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment