@tencentcloud/tuiroom-engine-js 2.5.2-beat.1 → 2.6.2-beta.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.
package/index.d.ts CHANGED
@@ -1120,7 +1120,7 @@ declare class Logger {
1120
1120
  sdkAppId: number;
1121
1121
  seq: number;
1122
1122
  });
1123
- getLogMessage(params: any[]): string;
1123
+ getLogMessage(params: any[]): string | any[];
1124
1124
  update(options: {
1125
1125
  sdkAppId: number;
1126
1126
  userId: string;
@@ -1390,8 +1390,8 @@ declare class TUIConferenceListManager {
1390
1390
  * @param {object} options
1391
1391
  * @param {string} options.roomId 会议的房间Id。
1392
1392
  * @param {string} options.roomName 会议的名称。
1393
- * @param {string} options.scheduleStartTime 预定会议的开始时间(计数单位为秒的时间戳)。
1394
- * @param {string} options.scheduleEndTime 预定会议的结束时间(计数单位为秒的时间戳)。
1393
+ * @param {number} options.scheduleStartTime 预定会议的开始时间(计数单位为秒的时间戳)。
1394
+ * @param {number} options.scheduleEndTime 预定会议的结束时间(计数单位为秒的时间戳)。
1395
1395
  * @returns {Promise<void>}
1396
1396
  *
1397
1397
  * @example
@@ -1414,9 +1414,9 @@ declare class TUIConferenceListManager {
1414
1414
  * 获取预定会议列表
1415
1415
  *
1416
1416
  * @param {object} options
1417
- * @param {object} options.statusArray 会议状态数组,默认值为拉取全部状态会议。
1417
+ * @param {Array<TUIConferenceStatus>} options.statusArray 会议状态数组,默认值为拉取全部状态会议。
1418
1418
  * @param {string} options.cursor 分页获取索引,第一次拉取填 '',回调成功 如果callback返回的数据中 cursor 不为 '',表示需要分页,请以返回的 cursor 作为参数再次调用接口拉取,直至返回的cursor为 '',表示数据已经全部拉取。
1419
- * @param {string} options.count 本次拉取数量。
1419
+ * @param {number} options.count 本次拉取数量。
1420
1420
  *
1421
1421
  * @example
1422
1422
  * const roomEngine = new TUIRoomEngine();
@@ -1442,7 +1442,7 @@ declare class TUIConferenceListManager {
1442
1442
  * @param {object} options
1443
1443
  * @param {string} options.roomId 会议 Id ,即房间 roomId 。
1444
1444
  * @param {string} options.cursor 分页获取索引,第一次拉取填 "",回调成功 如果 callback 返回的数据中 cursor 不为"",表示需要分页,请以返回的 cursor 作为参数再次调用接口拉取,直至返回的 cursor 为"",表示数据已经全部拉取。
1445
- * @param {string} options.count 本次拉取数量。
1445
+ * @param {number} options.count 本次拉取数量。
1446
1446
  *
1447
1447
  * @example
1448
1448
  * const roomEngine = new TUIRoomEngine();
@@ -1470,7 +1470,7 @@ declare class TUIConferenceListManager {
1470
1470
  *
1471
1471
  * @param {object} options
1472
1472
  * @param {string} options.roomId 会议 Id ,即房间 roomId 。
1473
- * @param {string} options.userIdList 成员 userId 列表。
1473
+ * @param {Array<string>} options.userIdList 成员 userId 列表。
1474
1474
  * @returns {Promise<void>}
1475
1475
  *
1476
1476
  * @example
@@ -1490,7 +1490,7 @@ declare class TUIConferenceListManager {
1490
1490
  *
1491
1491
  * @param {object} options
1492
1492
  * @param {string} options.roomId 会议 Id ,即房间 roomId 。
1493
- * @param {string} options.userIdList 成员 userId 列表。
1493
+ * @param {Array<string>} options.userIdList 成员 userId 列表。
1494
1494
  * @returns {Promise<void>}
1495
1495
  *
1496
1496
  * @example
@@ -1902,14 +1902,21 @@ declare class TUIRoomEngine {
1902
1902
  exitRoom(): Promise<void>;
1903
1903
  /**
1904
1904
  * 获取房间信息
1905
+ * @param {object} options
1906
+ * @param {string} options.roomId 要获取信息的房间Id。
1907
+ * @param {TUIRoomType} options.roomType 要获取信息的房间类型。
1905
1908
  * @returns {Promise<TUIRoomInfo>} roomInfo
1906
- * 获取房间信息
1907
- *
1908
1909
  * @example
1909
1910
  * const roomEngine = new TUIRoomEngine();
1910
- * const roomInfo = await roomEngine.fetchRoomInfo();
1911
+ * const roomInfo = await roomEngine.fetchRoomInfo({
1912
+ * roomId: '12345',
1913
+ * roomType: TUIRoomType.kConference,
1914
+ * });
1911
1915
  */
1912
- fetchRoomInfo(): Promise<TUIRoomInfo>;
1916
+ fetchRoomInfo(options?: {
1917
+ roomId: string;
1918
+ roomType: TUIRoomType;
1919
+ }): Promise<TUIRoomInfo>;
1913
1920
  /**
1914
1921
  * 更新房间的名字(仅群主或者管理员可以调用)
1915
1922
  * @param {object} options
@@ -1945,7 +1952,7 @@ declare class TUIRoomEngine {
1945
1952
  *
1946
1953
  * @since v2.5.0
1947
1954
  * @param {object} options
1948
- * @param {string} options.password 房间密码
1955
+ * @param {string} options.password 房间密码,传入空字符串则代表关闭房间密码
1949
1956
  * @returns {Promise<void>}
1950
1957
  *
1951
1958
  * @example