Update scripts
This commit is contained in:
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[]
|
||||
}
|
||||
Reference in New Issue
Block a user