Chore: Migrate REST API - updateJitsiTimeout to Typescript (#3822)

* chore: add rest api return

* chore: add rest api return
This commit is contained in:
Alex Junior 2022-03-04 23:29:12 -03:00 committed by GitHub
parent cbb1d0f3cf
commit 0444e9b846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -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;

View File

@ -0,0 +1,5 @@
export type VideoConferenceEndpoints = {
'video-conference/jitsi.update-timeout': {
POST: (params: { roomId: string }) => void;
};
};

View File

@ -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 }) =>