jellyfish-web/src/view/components/interface.ts

124 lines
3.4 KiB
TypeScript
Raw Normal View History

import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client';
2022-10-03 01:44:54 +03:00
export interface QueryI {
2022-08-06 01:36:13 +03:00
SortBy?: string;
SortOrder?: string;
IncludeItemTypes?: string;
Recursive?: boolean;
Fields?: string;
ImageTypeLimit?: number;
2022-08-21 03:09:22 +03:00
EnableTotalRecordCount?: boolean;
2022-08-06 01:36:13 +03:00
EnableImageTypes?: string;
StartIndex?: number;
2022-08-06 01:36:13 +03:00
ParentId?: string | null;
IsFavorite?: boolean;
2022-09-02 02:46:05 +03:00
IsMissing?: boolean;
2022-10-14 02:07:54 +03:00
Limit?:number;
2022-10-03 02:33:43 +03:00
NameStartsWithOrGreater?: string;
2022-08-06 01:36:13 +03:00
NameLessThan?: string;
NameStartsWith?: string | null;
2022-10-03 02:33:43 +03:00
VideoTypes?: string;
GenreIds?: string;
Is4K?: boolean;
IsHD?: boolean;
Is3D?: boolean;
HasSubtitles?: boolean;
HasTrailer?: boolean;
HasSpecialFeature?: boolean;
HasThemeSong?: boolean;
HasThemeVideo?: boolean;
Filters?: string | null;
}
export interface FiltersI {
IsPlayed: boolean;
IsUnplayed: boolean;
IsFavorite: boolean;
IsResumable: boolean;
Is4K: boolean;
IsHD: boolean;
IsSD: boolean;
Is3D: boolean;
VideoTypes: string;
SeriesStatus: string;
HasSubtitles: string;
HasTrailer: string;
HasSpecialFeature: string;
HasThemeSong: string;
HasThemeVideo: string;
GenreIds: string;
2022-08-06 01:36:13 +03:00
}
2022-09-02 02:46:05 +03:00
2022-10-03 01:44:54 +03:00
export interface CardOptionsI {
itemsContainer?: HTMLElement | null;
parentContainer?: HTMLElement | null;
items?: BaseItemDto[] | null;
2022-09-02 02:46:05 +03:00
allowBottomPadding?: boolean;
centerText?: boolean;
coverImage?: boolean;
inheritThumb?: boolean;
overlayMoreButton?: boolean;
overlayPlayButton?: boolean;
overlayText?: boolean;
preferThumb?: boolean;
preferDisc?: boolean;
preferLogo?: boolean;
2022-09-02 02:46:05 +03:00
scalable?: boolean;
shape?: string | null;
2022-09-02 02:46:05 +03:00
lazy?: boolean;
cardLayout?: boolean | string;
2022-09-02 02:46:05 +03:00
showParentTitle?: boolean;
showParentTitleOrTitle?: boolean;
showAirTime?: boolean;
showAirDateTime?: boolean;
showChannelName?: boolean;
showTitle?: boolean | string;
showYear?: boolean | string;
2022-09-02 02:46:05 +03:00
showDetailsMenu?: boolean;
missingIndicator?: boolean;
showLocationTypeIndicator?: boolean;
showSeriesYear?: boolean;
showUnplayedIndicator?: boolean;
showChildCountIndicator?: boolean;
lines?: number;
context?: string | null;
action?: string | null;
defaultShape?: string;
indexBy?: string;
parentId?: string | null;
showMenu?: boolean;
cardCssClass?: string | null;
cardClass?: string | null;
centerPlayButton?: boolean;
overlayInfoButton?: boolean;
autoUpdate?: boolean;
cardFooterAside?: string;
includeParentInfoInTitle?: boolean;
maxLines?: number;
overlayMarkPlayedButton?: boolean;
overlayRateButton?: boolean;
showAirEndTime?: boolean;
showCurrentProgram?: boolean;
showCurrentProgramTime?: boolean;
showItemCounts?: boolean;
showPersonRoleOrType?: boolean;
showProgressBar?: boolean;
showPremiereDate?: boolean;
showRuntime?: boolean;
showSeriesTimerTime?: boolean;
showSeriesTimerChannel?: boolean;
showSongCount?: boolean;
width?: number;
showChannelLogo?: boolean;
showLogo?: boolean;
serverId?: string;
collectionId?: string | null;
playlistId?: string | null;
defaultCardImageIcon?: string;
disableHoverMenu?: boolean;
disableIndicators?: boolean;
showGroupCount?: boolean;
containerClass?: string;
noItemsMessage?: string;
2022-09-02 02:46:05 +03:00
}