Chore: Migrate REST API - updateJitsiTimeout to Typescript (#3822)
* chore: add rest api return * chore: add rest api return
This commit is contained in:
parent
cbb1d0f3cf
commit
0444e9b846
|
@ -15,6 +15,7 @@ import { UsersEndpoints } from './users';
|
|||
import { TeamsEndpoints } from './teams';
|
||||
import { E2eEndpoints } from './e2e';
|
||||
import { SubscriptionsEndpoints } from './subscriptions';
|
||||
import { VideoConferenceEndpoints } from './videoConference';
|
||||
|
||||
export type Endpoints = ChannelsEndpoints &
|
||||
ChatEndpoints &
|
||||
|
@ -32,4 +33,5 @@ export type Endpoints = ChannelsEndpoints &
|
|||
UsersEndpoints &
|
||||
TeamsEndpoints &
|
||||
E2eEndpoints &
|
||||
SubscriptionsEndpoints;
|
||||
SubscriptionsEndpoints &
|
||||
VideoConferenceEndpoints;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export type VideoConferenceEndpoints = {
|
||||
'video-conference/jitsi.update-timeout': {
|
||||
POST: (params: { roomId: string }) => void;
|
||||
};
|
||||
};
|
|
@ -57,10 +57,8 @@ export const e2eRequestRoomKey = (rid: string, e2eKeyId: string) =>
|
|||
// RC 0.70.0
|
||||
sdk.methodCallWrapper('stream-notify-room-users', `${rid}/e2ekeyRequest`, rid, e2eKeyId);
|
||||
|
||||
export const updateJitsiTimeout = (roomId: string): any =>
|
||||
export const updateJitsiTimeout = (roomId: string) =>
|
||||
// RC 0.74.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.post('video-conference/jitsi.update-timeout', { roomId });
|
||||
|
||||
export const register = (credentials: { name: string; email: string; pass: string; username: string }) =>
|
||||
|
|
Loading…
Reference in New Issue