easemob-websdk 4.1.1 → 4.1.2

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.
@@ -11,6 +11,17 @@ export interface FileObj {
11
11
  filetype: string;
12
12
  data: File;
13
13
  }
14
+
15
+ /** The delivery priority of chat room messages.
16
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
17
+ export type MessagePriority =
18
+ /** High. */
19
+ | 'high'
20
+ /** Medium. */
21
+ | 'normal'
22
+ /** Low. */
23
+ | 'low';
24
+
14
25
  export interface AudioMsgSetParameters {
15
26
  /** The session type. */
16
27
  chatType: ChatType;
@@ -73,6 +84,8 @@ export interface AudioMsgBody extends AudioMsgSetParameters {
73
84
  time: number;
74
85
  /** Whether the message is a thread message. */
75
86
  isChatThread?: boolean;
87
+ /** Message priority. */
88
+ priority?: MessagePriority;
76
89
  }
77
90
  export interface CreateAudioMsgParameters {
78
91
  /** The message type. */
@@ -118,6 +131,8 @@ export interface CreateAudioMsgParameters {
118
131
  };
119
132
  /** Whether the message is a thread message. */
120
133
  isChatThread?: boolean;
134
+ /** Message priority. */
135
+ priority?: MessagePriority;
121
136
  }
122
137
  export declare class Audio {
123
138
  id: string;
package/message/cmd.d.ts CHANGED
@@ -5,6 +5,17 @@ export interface CmdParameters {
5
5
  /** The message ID. */
6
6
  id: string;
7
7
  }
8
+
9
+ /** The delivery priority of chat room messages.
10
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
11
+ export type MessagePriority =
12
+ /** High. */
13
+ | 'high'
14
+ /** Medium. */
15
+ | 'normal'
16
+ /** Low. */
17
+ | 'low';
18
+
8
19
  export interface CmdMsgSetParameters {
9
20
  /** The session type. */
10
21
  chatType: ChatType;
@@ -58,6 +69,8 @@ export interface CmdMsgBody {
58
69
  time: number;
59
70
  /** Whether the message is a thread message. */
60
71
  isChatThread?: boolean;
72
+ /** Message priority. */
73
+ priority?: MessagePriority;
61
74
  }
62
75
  export interface CreateCmdMsgParameters {
63
76
  /** The message type. */
@@ -80,6 +93,8 @@ export interface CreateCmdMsgParameters {
80
93
  };
81
94
  /** Whether the message is a thread message. */
82
95
  isChatThread?: boolean;
96
+ /** Message priority. */
97
+ priority?: MessagePriority;
83
98
  }
84
99
  export declare class Cmd {
85
100
  id: string;
@@ -5,6 +5,16 @@ export interface CustomParameters {
5
5
  /** The message ID. */
6
6
  id: string;
7
7
  }
8
+ /** The delivery priority of chat room messages.
9
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
10
+ export type MessagePriority =
11
+ /** High. */
12
+ | 'high'
13
+ /** Medium. */
14
+ | 'normal'
15
+ /** Low. */
16
+ | 'low';
17
+
8
18
  export interface CustomMsgSetParameters {
9
19
  /** The session type. */
10
20
  chatType: ChatType;
@@ -46,6 +56,8 @@ export interface CustomMsgBody extends CreateCustomMsgParameters {
46
56
  fail?: () => void;
47
57
  /** Time. */
48
58
  time: number;
59
+ /** Message priority. */
60
+ priority?: MessagePriority;
49
61
  }
50
62
  export interface CreateCustomMsgParameters {
51
63
  /** The message type. */
@@ -72,6 +84,8 @@ export interface CreateCustomMsgParameters {
72
84
  };
73
85
  /** Whether the message is a thread message. */
74
86
  isChatThread?: boolean;
87
+ /** Message priority. */
88
+ priority?: MessagePriority;
75
89
  }
76
90
  export declare class Custom {
77
91
  id: string;
package/message/file.d.ts CHANGED
@@ -5,6 +5,16 @@ export interface FileParameters {
5
5
  /** The message ID. */
6
6
  id: string;
7
7
  }
8
+ /** The delivery priority of chat room messages.
9
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
10
+ export type MessagePriority =
11
+ /** High. */
12
+ | 'high'
13
+ /** Medium. */
14
+ | 'normal'
15
+ /** Low. */
16
+ | 'low';
17
+
8
18
  export interface FileObj {
9
19
  url: string;
10
20
  filename: string;
@@ -71,6 +81,8 @@ export interface FileMsgBody extends CreateFileMsgParameters {
71
81
  msgConfig?: {
72
82
  allowGroupAck: boolean;
73
83
  };
84
+ /** Message priority. */
85
+ priority?: MessagePriority;
74
86
  }
75
87
  export interface CreateFileMsgParameters {
76
88
  /** The message type. */
@@ -112,6 +124,8 @@ export interface CreateFileMsgParameters {
112
124
  };
113
125
  /** Whether the message is a thread message. */
114
126
  isChatThread?: boolean;
127
+ /** Message priority. */
128
+ priority?: MessagePriority;
115
129
  }
116
130
  export declare class FileMsg {
117
131
  id: string;
package/message/img.d.ts CHANGED
@@ -11,6 +11,15 @@ export interface FileObj {
11
11
  filetype: string;
12
12
  data: File;
13
13
  }
14
+ /** The delivery priority of chat room messages.
15
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
16
+ export type MessagePriority =
17
+ /** High. */
18
+ | 'high'
19
+ /** Medium. */
20
+ | 'normal'
21
+ /** Low. */
22
+ | 'low';
14
23
  export interface ImgMsgSetParameters {
15
24
  /** Session type. */
16
25
  chatType: ChatType;
@@ -85,6 +94,8 @@ export interface ImgMsgBody extends CreateImgMsgParameters {
85
94
  success?: () => void;
86
95
  /** The callback for a message sending failure. */
87
96
  fail?: () => void;
97
+ /** Message priority. */
98
+ priority?: MessagePriority;
88
99
  }
89
100
  export interface CreateImgMsgParameters {
90
101
  /** The message type. */
@@ -128,6 +139,8 @@ export interface CreateImgMsgParameters {
128
139
  };
129
140
  /** Whether the message is a thread message. */
130
141
  isChatThread?: boolean;
142
+ /** Message priority. */
143
+ priority?: MessagePriority;
131
144
  }
132
145
  export declare class Img {
133
146
  id: string;
@@ -5,6 +5,15 @@ export interface LocationParameters {
5
5
  /** The message ID. */
6
6
  id: string;
7
7
  }
8
+ /** The delivery priority of chat room messages.
9
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
10
+ export type MessagePriority =
11
+ /** High. */
12
+ | 'high'
13
+ /** Medium. */
14
+ | 'normal'
15
+ /** Low. */
16
+ | 'low';
8
17
  export interface LocationMsgSetParameters {
9
18
  /** The session type. */
10
19
  chatType: ChatType;
@@ -48,6 +57,8 @@ export interface LocationMsgBody extends CreateLocationMsgParameters {
48
57
  fail?: () => void;
49
58
  /** Time. */
50
59
  time: number;
60
+ /** Message priority. */
61
+ priority?: MessagePriority;
51
62
  }
52
63
  export interface CreateLocationMsgParameters {
53
64
  /** The message type. */
@@ -76,6 +87,8 @@ export interface CreateLocationMsgParameters {
76
87
  };
77
88
  /** Whether the message is a thread message. */
78
89
  isChatThread?: boolean;
90
+ /** Message priority. */
91
+ priority?: MessagePriority;
79
92
  }
80
93
  export declare class Location {
81
94
  id: string;
package/message/text.d.ts CHANGED
@@ -5,6 +5,15 @@ export interface TextParameters {
5
5
  /** The message ID. */
6
6
  id: string;
7
7
  }
8
+ /** The delivery priority of chat room messages.
9
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
10
+ export type MessagePriority =
11
+ /** High. */
12
+ | 'high'
13
+ /** Medium. */
14
+ | 'normal'
15
+ /** Low. */
16
+ | 'low';
8
17
  export interface TextMsgSetParameters {
9
18
  /** The session type. */
10
19
  chatType: ChatType;
@@ -61,6 +70,8 @@ export interface TextMsgBody {
61
70
  time: number;
62
71
  /** Whether the message is a thread message. */
63
72
  isChatThread?: boolean;
73
+ /** Message priority. */
74
+ priority?: MessagePriority;
64
75
  }
65
76
  export interface CreateTextMsgParameters {
66
77
  /** The session type. */
@@ -84,6 +95,8 @@ export interface CreateTextMsgParameters {
84
95
  };
85
96
  /** Whether the message is a thread message. */
86
97
  isChatThread?: boolean;
98
+ /** Message priority. */
99
+ priority?: MessagePriority;
87
100
  }
88
101
  export declare class Text {
89
102
  id: string;
@@ -11,6 +11,15 @@ export interface FileObj {
11
11
  filetype: string;
12
12
  data: File;
13
13
  }
14
+ /** The delivery priority of chat room messages.
15
+ * Currently, this attribute is available only to chat room messages. If this attribute is not set, messages are assigned a medium priority. */
16
+ export type MessagePriority =
17
+ /** High. */
18
+ | 'high'
19
+ /** Medium. */
20
+ | 'normal'
21
+ /** Low. */
22
+ | 'low';
14
23
  export interface VideoMsgSetParameters {
15
24
  /** The session type. */
16
25
  chatType: ChatType;
@@ -73,6 +82,8 @@ export interface VideoMsgBody extends VideoMsgSetParameters {
73
82
  };
74
83
  /** Whether the message is a thread message. */
75
84
  isChatThread?: boolean;
85
+ /** Message priority. */
86
+ priority?: MessagePriority;
76
87
  }
77
88
  export interface CreateVideoMsgParameters {
78
89
  /** The message type. */
@@ -118,6 +129,8 @@ export interface CreateVideoMsgParameters {
118
129
  };
119
130
  /** Whether the message is a thread message. */
120
131
  isChatThread?: boolean;
132
+ /** Message priority. */
133
+ priority?: MessagePriority;
121
134
  }
122
135
  export declare class Video {
123
136
  id: string;