ffplayout/types/index.d.ts

91 lines
1.6 KiB
TypeScript
Raw Normal View History

export { }
2023-01-11 10:54:25 +01:00
declare global {
2023-09-26 09:29:46 +02:00
interface GuiConfig {
id: number
config_path: string
extra_extensions: string | string[]
name: string
preview_url: string
service: string
uts_offset?: number
}
interface User {
username: String
mail: String
password?: String
confirm?: String
admin?: Boolean
2023-09-26 09:29:46 +02:00
role_id?: Number
}
interface Crumb {
2023-01-11 10:54:25 +01:00
text: string
path: string
}
interface Payload {
method: string,
headers: any,
body?: any,
}
2023-01-11 10:54:25 +01:00
interface PlaylistItem {
uid: string
begin: number
source: string
duration: number
in: number
out: number
audio?: string
category?: string
custom_filter?: string
class?: string
}
interface FileObject {
name: string
duration: number
}
interface Folder {
uid: string
name: string
}
interface FileFolderObject {
2023-01-11 10:54:25 +01:00
source: string
parent: string
folders: Folder[]
2023-01-11 10:54:25 +01:00
files: FileObject[]
}
interface FolderObject {
source: string
parent: string
folders: Folder[]
}
2023-01-11 10:54:25 +01:00
interface SourceObject {
type: string
src: string
}
interface TemplateItem {
start: string
duration: string
shuffle: boolean
paths: string[]
}
interface Template {
sources: TemplateItem[]
}
interface BodyObject {
paths?: string[]
template?: Template
}
2023-01-11 10:54:25 +01:00
}