@typexim/web-sdk 0.0.4-alpha.0 → 0.0.4-alpha.1

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.
Files changed (2) hide show
  1. package/README.md +60 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # TypeX WEB SDK
2
+
3
+ ## API清单
4
+
5
+ ### 事件
6
+
7
+ 1. on
8
+ 2. off
9
+
10
+ ### 事件码
11
+
12
+ 1. SDK_READY
13
+ 2. SDK_NOT_READY
14
+ 3. MESSAGE_RECEIVED
15
+ 4. MESSAGE_UPDATED
16
+ 5. MESSAGE_RECEIPT_RECEIVED
17
+ 6. FEED_LIST_UPDATED
18
+ 7. ROOM_MESSAGE_RECEIVED
19
+
20
+ ### 初始化
21
+
22
+ 1. create
23
+
24
+ ### 设置日志级别
25
+
26
+ 1. setLogLevel
27
+
28
+ ### SDK是否ready
29
+
30
+ 1. isReady
31
+
32
+ ### 登录
33
+
34
+ 1. login
35
+ 2. logout
36
+ 3. getLoginUser
37
+
38
+ ### 会话Feed
39
+
40
+ 1. createSingleChatFeed
41
+ 2. deleteFeed
42
+ 3. getFeedList(不分页,最多100条)
43
+ 4. getFeedDetail
44
+
45
+ ### 会话Feed消息
46
+
47
+ 1. getFeedMessageList(分页)
48
+ 2. createCustomMessage
49
+ 3. sendMessageToFeed
50
+ 4. sendMessageReadReceipt
51
+
52
+ ### 聊天室Room
53
+
54
+ 1. joinRoom
55
+ 2. leaveRoom
56
+
57
+ ### 聊天室Room消息
58
+
59
+ 1. getRoomRecentMessageList(最近50条)
60
+ 2. sendMessageToRoom
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typexim/web-sdk",
3
- "version": "0.0.4-alpha.0",
3
+ "version": "0.0.4-alpha.1",
4
4
  "private": false,
5
5
  "repository": "git@github.com:secure-typex/typex-web-sdk.git",
6
6
  "license": "MIT",