UNPKG

@hongtangyun/rooms-sdk

Version:

JavaScript SDK Client for hongtangyun rooms-sdk.

101 lines (100 loc) 2.22 kB
import { SDKRoomInfoType } from './common/Classes'; export * from './socket/types'; export * from './common/Classes'; export * from './common/Enums'; /** * qiankunStateFromMaster props */ export type MasterPropsType = { roomInfo: SDKRoomInfoType; globalWindow: Window; Sentry: any; token: string; }; export interface GetRoomActionsQuery { /** * 包含自定义房间id 动作 */ userCustomRoomid?: string | string[]; page?: number; pageSize?: number; sort?: 1 | -1; } export interface GetRoomChatActionsQuery { /** * 包含自定义房间id 动作 */ userCustomRoomid?: string | string[]; page?: number; pageSize?: number; /** * 排序 * 1 正 * -1 倒 */ sort?: 1 | -1; /** * unread 未读消息 * read 已读消息 * all 全部消息 */ status?: 'read' | 'unread' | 'all'; } export interface GetRoomAbnormalActionsQuery { /** * 包含自定义房间id 动作 */ userCustomRoomid?: string | string[]; page?: number; pageSize?: number; /** * 排序 * 1 正 * -1 倒 */ sort?: 1 | -1; /** * unread 未读消息 * read 已读消息 * all 全部消息 */ status?: 'read' | 'unread' | 'all'; uid?: number; } export interface GetRoomNoticeActionsQuery { /** * 包含自定义房间id 动作 */ userCustomRoomid?: string | string[]; page?: number; pageSize?: number; /** * 排序 * 1 正 * -1 倒 */ sort?: 1 | -1; /** * unread 未读消息 * read 已读消息 * all 全部消息 */ status?: 'read' | 'unread' | 'all'; uid?: number; } export interface EquipmentInfo { /** * 设备信息唯一uuid */ uuid: string; /** * 客户端 * desktop | browser | app | unknown */ client: 'desktop' | 'browser' | 'app' | 'unknown'; /** * 系统 * darwin | win32 | linux | android | ios | unknown */ platform: 'darwin' | 'win32' | 'linux' | 'android' | 'ios' | 'unknown'; }