typings: Rename room-related interfaces and properties for consistency
This commit is contained in:
parent
5376ef0846
commit
c619760296
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user