typings: Rename room-related interfaces and properties for consistency

This commit is contained in:
Carlos Santos 2025-04-01 18:59:58 +02:00
parent 5376ef0846
commit c619760296
3 changed files with 14 additions and 14 deletions

View File

@ -1,20 +1,20 @@
/**
* Interface representing the preferences for a room.
*/
export interface RoomPreferences {
chatPreferences: ChatPreferences;
recordingPreferences: RecordingPreferences;
virtualBackgroundPreferences: VirtualBackgroundPreferences;
export interface MeetRoomPreferences {
chatPreferences: MeetChatPreferences;
recordingPreferences: MeetRecordingPreferences;
virtualBackgroundPreferences: MeetVirtualBackgroundPreferences;
}
/**
* Interface representing the preferences for recording.
*/
export interface RecordingPreferences {
export interface MeetRecordingPreferences {
enabled: boolean;
}
export interface ChatPreferences {
export interface MeetChatPreferences {
enabled: boolean;
}
export interface VirtualBackgroundPreferences {
export interface MeetVirtualBackgroundPreferences {
enabled: boolean;
}

View File

@ -1,10 +1,10 @@
import { RoomPreferences } from './room-preferences.js';
import { MeetRoomPreferences } from './room-preferences.js';
interface BaseRoomOptions {
expirationDate: number;
roomNamePrefix?: string;
preferences?: RoomPreferences;
maxParticipants?: number | null;
roomIdPrefix?: string;
preferences?: MeetRoomPreferences;
// maxParticipants?: number | null;
}
/**
* Options for creating or configuring a room.
@ -15,7 +15,7 @@ export type MeetRoomOptions = BaseRoomOptions;
* Interface representing the response received when a room is created.
*/
export interface MeetRoom extends BaseRoomOptions {
roomName: string;
roomId: string;
creationDate: number;
moderatorRoomUrl: string;
publisherRoomUrl: string;

View File

@ -3,9 +3,9 @@
*/
export interface TokenOptions {
/**
* The name of the room to join.
* The unique identifier for the room.
*/
roomName: string;
roomId: string;
/**
* The name of the participant.