mirror of
https://github.com/iptv-org/epg
synced 2026-04-25 20:17:01 -04:00
Update scripts
This commit is contained in:
35
scripts/types/channel.d.ts
vendored
35
scripts/types/channel.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
20
scripts/types/dataLoader.d.ts
vendored
20
scripts/types/dataLoader.d.ts
vendored
@@ -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[]
|
||||
}
|
||||
16
scripts/types/dataProcessor.d.ts
vendored
16
scripts/types/dataProcessor.d.ts
vendored
@@ -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
|
||||
}
|
||||
12
scripts/types/feed.d.ts
vendored
12
scripts/types/feed.d.ts
vendored
@@ -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
|
||||
}
|
||||
8
scripts/types/guide.d.ts
vendored
8
scripts/types/guide.d.ts
vendored
@@ -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
17
scripts/types/htmlTable.d.ts
vendored
Normal 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>
|
||||
9
scripts/types/logo.d.ts
vendored
9
scripts/types/logo.d.ts
vendored
@@ -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
10
scripts/types/queue.d.ts
vendored
Normal 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
|
||||
}
|
||||
10
scripts/types/stream.d.ts
vendored
10
scripts/types/stream.d.ts
vendored
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user