Browse Source

fix: Adds missing ts files.

dev1
Дамян Минков 3 years ago
parent
commit
554b95e9d6
2 changed files with 70 additions and 0 deletions
  1. 33
    0
      types/auto/JitsiConference.d.ts
  2. 37
    0
      types/auto/modules/xmpp/Lobby.d.ts

+ 33
- 0
types/auto/JitsiConference.d.ts View File

1086
      * @returns {Promise<never>}
1086
      * @returns {Promise<never>}
1087
      */
1087
      */
1088
     joinLobby(displayName: string, email: string): Promise<never>;
1088
     joinLobby(displayName: string, email: string): Promise<never>;
1089
+    /**
1090
+     * Gets the local id for a participant in a lobby room.
1091
+     * Returns undefined when current participant is not in the lobby room.
1092
+     * This is used for lobby room private chat messages.
1093
+     *
1094
+     * @returns {string}
1095
+     */
1096
+    myLobbyUserId(): string;
1097
+    /**
1098
+     * Sends a message to a lobby room.
1099
+     * When id is specified it sends a private message.
1100
+     * Otherwise it sends the message to all moderators.
1101
+     * @param {message} Object The message to send
1102
+     * @param {string} id The participant id.
1103
+     *
1104
+     * @returns {void}
1105
+     */
1106
+    sendLobbyMessage(message: any, id: string): void;
1107
+    /**
1108
+     * Adds a message listener to the lobby room
1109
+     * @param {Function} listener The listener function,
1110
+     * called when a new message is received in the lobby room.
1111
+     *
1112
+     * @returns {Function} Handler returned to be able to remove it later.
1113
+     */
1114
+    addLobbyMessageListener(listener: Function): Function;
1115
+    /**
1116
+     * Removes a message handler from the lobby room
1117
+     * @param {Function} handler The handler function  to remove.
1118
+     *
1119
+     * @returns {void}
1120
+     */
1121
+    removeLobbyMessageHandler(handler: Function): void;
1089
     /**
1122
     /**
1090
      * Denies an occupant in the lobby room access to the conference.
1123
      * Denies an occupant in the lobby room access to the conference.
1091
      * @param {string} id The participant id.
1124
      * @param {string} id The participant id.

+ 37
- 0
types/auto/modules/xmpp/Lobby.d.ts View File

30
      * @returns {void}
30
      * @returns {void}
31
      */
31
      */
32
     disable(): void;
32
     disable(): void;
33
+    /**
34
+     * Broadcast a message to all participants in the lobby room
35
+     * @param {Object} message The message to send
36
+     *
37
+     * @returns {void}
38
+     */
39
+    sendMessage(message: any): void;
40
+    /**
41
+     * Sends a private message to a participant in a lobby room.
42
+     * @param {string} id The message to send
43
+     * @param {Object} message The message to send
44
+     *
45
+     * @returns {void}
46
+     */
47
+    sendPrivateMessage(id: string, message: any): void;
48
+    /**
49
+     * Gets the local id for a participant in a lobby room.
50
+     * This is used for lobby room private chat messages.
51
+     *
52
+     * @returns {string}
53
+     */
54
+    getLocalId(): string;
55
+    /**
56
+     * Adds a message listener to the lobby room.
57
+     * @param {Function} listener The listener function,
58
+     * called when a new message is received in the lobby room.
59
+     *
60
+     * @returns {Function} Handler returned to be able to remove it later.
61
+     */
62
+    addMessageListener(listener: Function): Function;
63
+    /**
64
+     * Remove a message handler from the lobby room.
65
+     * @param {Function} handler The handler function to remove.
66
+     *
67
+     * @returns {void}
68
+     */
69
+    removeMessageHandler(handler: Function): void;
33
     /**
70
     /**
34
      * Leaves the lobby room.
71
      * Leaves the lobby room.
35
      *
72
      *

Loading…
Cancel
Save