Skip to content

Commit

Permalink
fix: Adds missing ts files.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Feb 10, 2022
1 parent 90d9428 commit 554b95e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
33 changes: 33 additions & 0 deletions types/auto/JitsiConference.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,39 @@ declare class JitsiConference {
* @returns {Promise<never>}
*/
joinLobby(displayName: string, email: string): Promise<never>;
/**
* Gets the local id for a participant in a lobby room.
* Returns undefined when current participant is not in the lobby room.
* This is used for lobby room private chat messages.
*
* @returns {string}
*/
myLobbyUserId(): string;
/**
* Sends a message to a lobby room.
* When id is specified it sends a private message.
* Otherwise it sends the message to all moderators.
* @param {message} Object The message to send
* @param {string} id The participant id.
*
* @returns {void}
*/
sendLobbyMessage(message: any, id: string): void;
/**
* Adds a message listener to the lobby room
* @param {Function} listener The listener function,
* called when a new message is received in the lobby room.
*
* @returns {Function} Handler returned to be able to remove it later.
*/
addLobbyMessageListener(listener: Function): Function;
/**
* Removes a message handler from the lobby room
* @param {Function} handler The handler function to remove.
*
* @returns {void}
*/
removeLobbyMessageHandler(handler: Function): void;
/**
* Denies an occupant in the lobby room access to the conference.
* @param {string} id The participant id.
Expand Down
37 changes: 37 additions & 0 deletions types/auto/modules/xmpp/Lobby.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,43 @@ export default class Lobby {
* @returns {void}
*/
disable(): void;
/**
* Broadcast a message to all participants in the lobby room
* @param {Object} message The message to send
*
* @returns {void}
*/
sendMessage(message: any): void;
/**
* Sends a private message to a participant in a lobby room.
* @param {string} id The message to send
* @param {Object} message The message to send
*
* @returns {void}
*/
sendPrivateMessage(id: string, message: any): void;
/**
* Gets the local id for a participant in a lobby room.
* This is used for lobby room private chat messages.
*
* @returns {string}
*/
getLocalId(): string;
/**
* Adds a message listener to the lobby room.
* @param {Function} listener The listener function,
* called when a new message is received in the lobby room.
*
* @returns {Function} Handler returned to be able to remove it later.
*/
addMessageListener(listener: Function): Function;
/**
* Remove a message handler from the lobby room.
* @param {Function} handler The handler function to remove.
*
* @returns {void}
*/
removeMessageHandler(handler: Function): void;
/**
* Leaves the lobby room.
*
Expand Down

0 comments on commit 554b95e

Please sign in to comment.