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. * Interface representing the preferences for a room.
*/ */
export interface RoomPreferences { export interface MeetRoomPreferences {
chatPreferences: ChatPreferences; chatPreferences: MeetChatPreferences;
recordingPreferences: RecordingPreferences; recordingPreferences: MeetRecordingPreferences;
virtualBackgroundPreferences: VirtualBackgroundPreferences; virtualBackgroundPreferences: MeetVirtualBackgroundPreferences;
} }
/** /**
* Interface representing the preferences for recording. * Interface representing the preferences for recording.
*/ */
export interface RecordingPreferences { export interface MeetRecordingPreferences {
enabled: boolean; enabled: boolean;
} }
export interface ChatPreferences { export interface MeetChatPreferences {
enabled: boolean; enabled: boolean;
} }
export interface VirtualBackgroundPreferences { export interface MeetVirtualBackgroundPreferences {
enabled: boolean; enabled: boolean;
} }

View File

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

View File

@ -3,9 +3,9 @@
*/ */
export interface TokenOptions { 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. * The name of the participant.