@xylink/xy-rtc-sdk 3.8.1 → 3.9.0

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 (43) hide show
  1. package/lib/action/index.d.ts +20 -5
  2. package/lib/enum/client.d.ts +15 -0
  3. package/lib/enum/contraints.d.ts +33 -96
  4. package/lib/enum/device.d.ts +1 -0
  5. package/lib/enum/errorCode.d.ts +58 -1
  6. package/lib/enum/index.d.ts +44 -16
  7. package/lib/index.d.ts +11 -8
  8. package/lib/main/client.d.ts +93 -63
  9. package/lib/main/deviceManager.d.ts +23 -4
  10. package/lib/main/helper.d.ts +2 -2
  11. package/lib/main/iauth.d.ts +14 -1
  12. package/lib/main/layoutManager.d.ts +29 -11
  13. package/lib/main/meeting.d.ts +71 -34
  14. package/lib/main/peer.d.ts +70 -121
  15. package/lib/main/qualityManager.d.ts +38 -9
  16. package/lib/main/stream.d.ts +237 -104
  17. package/lib/main/videoManager.d.ts +1 -9
  18. package/lib/tools/dbManager.d.ts +106 -0
  19. package/lib/tools/detect.d.ts +2 -2
  20. package/lib/tools/enum.d.ts +1 -1
  21. package/lib/tools/httpClient.d.ts +4 -4
  22. package/lib/tools/i18n.d.ts +1 -1
  23. package/lib/tools/logger.d.ts +75 -74
  24. package/lib/tools/logger.worker.d.ts +13 -0
  25. package/lib/tools/quality.d.ts +113 -0
  26. package/lib/tools/quality.worker.d.ts +13 -0
  27. package/lib/tools/queue.d.ts +38 -3
  28. package/lib/tools/template.d.ts +3 -3
  29. package/lib/tools/utils.d.ts +8 -0
  30. package/lib/type/base.d.ts +2 -2
  31. package/lib/type/client.d.ts +255 -150
  32. package/lib/type/device.d.ts +21 -15
  33. package/lib/type/index.d.ts +3 -0
  34. package/lib/type/layout.d.ts +18 -1
  35. package/lib/type/logger.d.ts +112 -0
  36. package/lib/type/meeting.d.ts +11 -2
  37. package/lib/type/peer.d.ts +20 -0
  38. package/lib/type/quality.d.ts +101 -0
  39. package/lib/type/stream.d.ts +332 -134
  40. package/lib/xyrtc.cjs.js +1 -1
  41. package/lib/xyrtc.umd.js +1 -1
  42. package/package.json +4 -4
  43. package/lib/tools/db.d.ts +0 -85
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylink/xy-rtc-sdk",
3
- "version": "3.8.1",
3
+ "version": "3.9.0",
4
4
  "description": "XYLink RTC SDK(小鱼易连WebRTC SDK)",
5
5
  "keywords": [
6
6
  "XYLink RTC SDK",
@@ -49,8 +49,8 @@
49
49
  "core-js": "^3.24.1",
50
50
  "cross-env": "^7.0.3",
51
51
  "css-loader": "^6.7.1",
52
- "dexie": "^2.0.4",
53
- "dexie-export-import": "^1.0.0-rc.1",
52
+ "dexie": "^3.2.3",
53
+ "dexie-export-import": "^4.0.7",
54
54
  "downloadjs": "^1.4.7",
55
55
  "eslint": "^6.7.1",
56
56
  "eslint-config-alloy": "^3.4.0",
@@ -63,7 +63,7 @@
63
63
  "lint-staged": "^10.5.4",
64
64
  "mini-css-extract-plugin": "^2.6.1",
65
65
  "postcss-loader": "^7.0.1",
66
- "prettier": "^1.19.1",
66
+ "prettier": "^2.8.8",
67
67
  "react": "^16.10.2",
68
68
  "react-dom": "^16.10.2",
69
69
  "sass": "^1.54.3",
package/lib/tools/db.d.ts DELETED
@@ -1,85 +0,0 @@
1
- /**
2
- * webrtc log db 数据库
3
- *
4
- * @authors Luo-jinghui (luojinghui424@gmail.com)
5
- * @date 2020-02-27 18:17:49
6
- */
7
- declare class DB {
8
- db: any;
9
- num: number;
10
- dbName: string;
11
- tableCount: number;
12
- tableName: string;
13
- maxTableCount: number;
14
- constructor(tableCount?: number, tableName?: string, dbName?: string);
15
- /**
16
- * 表 添加数据
17
- *
18
- * @param data
19
- */
20
- add(data: any): Promise<void>;
21
- deleteDB(): Promise<void>;
22
- close(): void;
23
- stop(): void;
24
- isOpen(): any;
25
- /**
26
- * 本地下载日志
27
- *
28
- * @returns { boolean } 日志下载是否成功
29
- */
30
- export(): Promise<boolean>;
31
- /**
32
- * 日志上传
33
- *
34
- * @param { string } displayName 上传文件名
35
- * @returns
36
- */
37
- upload(displayName: string): Promise<Blob | null>;
38
- progressCallback({ totalRows, completedRows }: any): boolean;
39
- open(): void;
40
- /**
41
- * 初始化db
42
- */
43
- init(): Promise<void>;
44
- /**
45
- * 获取需要在某个版本中添加的表。
46
- *
47
- * @param {string} field 表 字段
48
- * @returns 表对象 每个键代表一个表名,每个值代表主键,后跟索引属性列表
49
- */
50
- getStores(field: string): {
51
- [key: string]: string;
52
- };
53
- /**
54
- * 创建表
55
- *
56
- * @param log
57
- */
58
- initStores(): void;
59
- /**
60
- * 存储日志版本
61
- *
62
- * @param version
63
- */
64
- setLogVersion(version: number): void;
65
- /**
66
- * 升级数据库
67
- *
68
- * @param log
69
- */
70
- upgradeStores({ version, tableCount, tableName, field }?: {
71
- version?: number | undefined;
72
- tableCount?: number | undefined;
73
- tableName?: string | undefined;
74
- field?: string | undefined;
75
- }): void;
76
- /**
77
- * Generate zip blob use json's blob async
78
- *
79
- * @param blob origin json blob data
80
- * @param time current time
81
- * @param displayName file's name
82
- */
83
- private generateZipBlobAsync;
84
- }
85
- export default DB;