🔧(frontend) get configs related to the recording feature
Get optional config related to the recording feature. RecordingMode will be refactored as soon I start working on the recording feature.
This commit is contained in:
committed by
aleb_the_flash
parent
28ca2d6c37
commit
840033fcbc
@@ -2,6 +2,12 @@ import { fetchApi } from './fetchApi'
|
|||||||
import { keys } from './queryKeys'
|
import { keys } from './queryKeys'
|
||||||
import { useQuery } from '@tanstack/react-query'
|
import { useQuery } from '@tanstack/react-query'
|
||||||
|
|
||||||
|
// todo - refactor it in a proper place
|
||||||
|
export enum RecordingMode {
|
||||||
|
Transcript = 'transcript',
|
||||||
|
ScreenRecording = 'screen_recording',
|
||||||
|
}
|
||||||
|
|
||||||
export interface ApiConfig {
|
export interface ApiConfig {
|
||||||
analytics?: {
|
analytics?: {
|
||||||
id: string
|
id: string
|
||||||
@@ -11,6 +17,10 @@ export interface ApiConfig {
|
|||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
silence_livekit_debug_logs?: boolean
|
silence_livekit_debug_logs?: boolean
|
||||||
|
recording?: {
|
||||||
|
is_enabled?: boolean
|
||||||
|
available_modes?: RecordingMode[]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchConfig = (): Promise<ApiConfig> => {
|
const fetchConfig = (): Promise<ApiConfig> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user