From c61976029600c8faf924897225e0630dc63f1cdd Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 1 Apr 2025 18:59:58 +0200 Subject: [PATCH] typings: Rename room-related interfaces and properties for consistency --- typings/src/room-preferences.ts | 14 +++++++------- typings/src/room.ts | 10 +++++----- typings/src/token.ts | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/typings/src/room-preferences.ts b/typings/src/room-preferences.ts index 5d49ecb..1ce420b 100644 --- a/typings/src/room-preferences.ts +++ b/typings/src/room-preferences.ts @@ -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; } diff --git a/typings/src/room.ts b/typings/src/room.ts index 78c9be4..a5e1ebf 100644 --- a/typings/src/room.ts +++ b/typings/src/room.ts @@ -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; diff --git a/typings/src/token.ts b/typings/src/token.ts index ad19964..45032b4 100644 --- a/typings/src/token.ts +++ b/typings/src/token.ts @@ -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.