mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 18:37:17 -05:00
Update scripts
This commit is contained in:
5
scripts/types/blocklistRecord.d.ts
vendored
Normal file
5
scripts/types/blocklistRecord.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type BlocklistRecordData = {
|
||||
channel: string
|
||||
reason: string
|
||||
ref: string
|
||||
}
|
||||
9
scripts/types/category.d.ts
vendored
Normal file
9
scripts/types/category.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export type CategorySerializedData = {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type CategoryData = {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
52
scripts/types/channel.d.ts
vendored
Normal file
52
scripts/types/channel.d.ts
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { Collection } from '@freearhey/core'
|
||||
import type { CountrySerializedData } from './country'
|
||||
import type { SubdivisionSerializedData } from './subdivision'
|
||||
import type { CategorySerializedData } from './category'
|
||||
|
||||
export type ChannelSerializedData = {
|
||||
id: string
|
||||
name: string
|
||||
altNames: string[]
|
||||
network?: string
|
||||
owners: string[]
|
||||
countryCode: string
|
||||
country?: CountrySerializedData
|
||||
subdivisionCode?: string
|
||||
subdivision?: SubdivisionSerializedData
|
||||
cityName?: string
|
||||
categoryIds: string[]
|
||||
categories?: CategorySerializedData[]
|
||||
isNSFW: boolean
|
||||
launched?: string
|
||||
closed?: string
|
||||
replacedBy?: string
|
||||
website?: string
|
||||
logo: string
|
||||
}
|
||||
|
||||
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[]
|
||||
}
|
||||
20
scripts/types/country.d.ts
vendored
Normal file
20
scripts/types/country.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { LanguageSerializedData } from './language'
|
||||
import type { SubdivisionSerializedData } from './subdivision'
|
||||
import type { RegionSerializedData } from './region'
|
||||
|
||||
export type CountrySerializedData = {
|
||||
code: string
|
||||
name: string
|
||||
flag: string
|
||||
languageCode: string
|
||||
language: LanguageSerializedData | null
|
||||
subdivisions: SubdivisionSerializedData[]
|
||||
regions: RegionSerializedData[]
|
||||
}
|
||||
|
||||
export type CountryData = {
|
||||
code: string
|
||||
name: string
|
||||
lang: string
|
||||
flag: 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[]
|
||||
}
|
||||
27
scripts/types/dataProcessor.d.ts
vendored
Normal file
27
scripts/types/dataProcessor.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Collection, Dictionary } from '@freearhey/core'
|
||||
|
||||
export type DataProcessorData = {
|
||||
blocklistRecordsGroupedByChannelId: Dictionary
|
||||
subdivisionsGroupedByCountryCode: Dictionary
|
||||
feedsGroupedByChannelId: Dictionary
|
||||
guidesGroupedByStreamId: Dictionary
|
||||
subdivisionsKeyByCode: Dictionary
|
||||
countriesKeyByCode: Dictionary
|
||||
languagesKeyByCode: Dictionary
|
||||
streamsGroupedById: Dictionary
|
||||
categoriesKeyById: Dictionary
|
||||
timezonesKeyById: Dictionary
|
||||
regionsKeyByCode: Dictionary
|
||||
blocklistRecords: Collection
|
||||
channelsKeyById: Dictionary
|
||||
subdivisions: Collection
|
||||
categories: Collection
|
||||
countries: Collection
|
||||
languages: Collection
|
||||
timezones: Collection
|
||||
channels: Collection
|
||||
regions: 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
|
||||
}
|
||||
17
scripts/types/guide.d.ts
vendored
Normal file
17
scripts/types/guide.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export type GuideSerializedData = {
|
||||
channelId?: string
|
||||
feedId?: string
|
||||
siteDomain: string
|
||||
siteId: string
|
||||
siteName: string
|
||||
languageCode: string
|
||||
}
|
||||
|
||||
export type GuideData = {
|
||||
channel: string
|
||||
feed: string
|
||||
site: string
|
||||
site_id: string
|
||||
site_name: string
|
||||
lang: string
|
||||
}
|
||||
9
scripts/types/language.d.ts
vendored
Normal file
9
scripts/types/language.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export type LanguageSerializedData = {
|
||||
code: string
|
||||
name: string
|
||||
}
|
||||
|
||||
export type LanguageData = {
|
||||
code: string
|
||||
name: string
|
||||
}
|
||||
13
scripts/types/region.d.ts
vendored
Normal file
13
scripts/types/region.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export type RegionSerializedData = {
|
||||
code: string
|
||||
name: string
|
||||
countryCodes: string[]
|
||||
countries?: CountrySerializedData[]
|
||||
subdivisions?: SubdivisionSerializedData[]
|
||||
}
|
||||
|
||||
export type RegionData = {
|
||||
code: string
|
||||
name: string
|
||||
countries: 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 | null
|
||||
url: string
|
||||
referrer: string | null
|
||||
user_agent: string | null
|
||||
quality: string | null
|
||||
label: string | null
|
||||
}
|
||||
12
scripts/types/subdivision.d.ts
vendored
Normal file
12
scripts/types/subdivision.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export type SubdivisionSerializedData = {
|
||||
code: string
|
||||
name: string
|
||||
countryCode: string
|
||||
country?: CountrySerializedData
|
||||
}
|
||||
|
||||
export type SubdivisionData = {
|
||||
code: string
|
||||
name: string
|
||||
country: string
|
||||
}
|
||||
Reference in New Issue
Block a user