mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update scripts
This commit is contained in:
28
scripts/types/channel.d.ts
vendored
Normal file
28
scripts/types/channel.d.ts
vendored
Normal 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
19
scripts/types/dataLoader.d.ts
vendored
Normal 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
12
scripts/types/dataProcessor.d.ts
vendored
Normal 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
12
scripts/types/feed.d.ts
vendored
Normal 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
8
scripts/types/guide.d.ts
vendored
Normal 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
10
scripts/types/stream.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user