Update scripts

This commit is contained in:
freearhey
2025-10-22 02:27:22 +03:00
parent f701e0b830
commit 0b046f1f3c
50 changed files with 1655 additions and 2367 deletions

View File

@@ -1,27 +1,8 @@
import { Collection } from '@freearhey/core'
export interface ChannelData {
id: string
name: string
alt_names: string[]
network: string
owners: Collection
country: string
subdivision: string
city: string
categories: Collection
is_nsfw: boolean
launched: string
closed: string
replaced_by: string
website: string
}
export interface ChannelSearchableData {
id: string
name: string
altNames: string[]
guideNames: string[]
streamNames: string[]
feedFullNames: string[]
}
export interface ChannelGuideObject {
channel: string | null
feed: string | null
site: string
site_id: string
site_name: string
lang: string
}

View File

@@ -1,20 +0,0 @@
import { Storage } from '@freearhey/core'
export interface DataLoaderProps {
storage: Storage
}
export interface DataLoaderData {
countries: object | object[]
regions: object | object[]
subdivisions: object | object[]
languages: object | object[]
categories: object | object[]
blocklist: object | object[]
channels: object | object[]
feeds: object | object[]
timezones: object | object[]
guides: object | object[]
streams: object | object[]
logos: object | object[]
}

View File

@@ -1,16 +0,0 @@
import { Collection, Dictionary } from '@freearhey/core'
export interface DataProcessorData {
guideChannelsGroupedByStreamId: Dictionary
feedsGroupedByChannelId: Dictionary
logosGroupedByChannelId: Dictionary
logosGroupedByStreamId: Dictionary
feedsKeyByStreamId: Dictionary
streamsGroupedById: Dictionary
channelsKeyById: Dictionary
guideChannels: Collection
channels: Collection
streams: Collection
feeds: Collection
logos: Collection
}

View File

@@ -1,12 +0,0 @@
import { Collection } from '@freearhey/core'
export interface FeedData {
channel: string
id: string
name: string
is_main: boolean
broadcast_area: Collection
languages: Collection
timezones: Collection
video_format: string
}

View File

@@ -1,8 +0,0 @@
export interface GuideData {
channel: string
feed: string
site: string
site_id: string
site_name: string
lang: string
}

17
scripts/types/htmlTable.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
import { Collection } from '@freearhey/core'
export interface HTMLTableColumn {
name: string
nowrap?: boolean
align?: string
colspan?: number
}
export interface HTMLTableDataItem {
value: string
nowrap?: boolean
align?: string
colspan?: number
}
export type HTMLTableRow = Collection<HTMLTableDataItem>

View File

@@ -1,9 +0,0 @@
export interface LogoData {
channel: string
feed: string | null
tags: string[]
width: number
height: number
format: string | null
url: string
}

10
scripts/types/queue.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
import { SiteConfig } from '../core/siteConfig'
import { Channel } from '../models/channel'
import { Dayjs } from 'dayjs'
export interface QueueItem {
channel: Channel
date: Dayjs
siteConfig: SiteConfig
error: string | null
}

View File

@@ -1,10 +0,0 @@
export interface StreamData {
channel: string | null
feed: string | null
name?: string
url: string
referrer: string | null
user_agent: string | null
quality: string | null
label: string | null
}