Update scripts

This commit is contained in:
freearhey
2025-04-19 02:06:15 +03:00
parent d681fcb3d5
commit 8e363d0e83
19 changed files with 562 additions and 141 deletions

28
scripts/types/channel.d.ts vendored Normal file
View File

@@ -0,0 +1,28 @@
import { Collection } from '@freearhey/core'
export type 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
logo: string
}
export type ChannelSearchableData = {
id: string
name: string
altNames: string[]
guideNames: string[]
streamNames: string[]
feedFullNames: string[]
}

19
scripts/types/dataLoader.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
import { Storage } from '@freearhey/core'
export type DataLoaderProps = {
storage: Storage
}
export type 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[]
}

12
scripts/types/dataProcessor.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
import { Collection, Dictionary } from '@freearhey/core'
export type DataProcessorData = {
feedsGroupedByChannelId: Dictionary
guidesGroupedByStreamId: Dictionary
streamsGroupedById: Dictionary
channelsKeyById: Dictionary
channels: Collection
streams: Collection
guides: Collection
feeds: Collection
}

12
scripts/types/feed.d.ts vendored Normal file
View File

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

8
scripts/types/guide.d.ts vendored Normal file
View File

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

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

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