2022-10-05 02:44:28 +03:00
|
|
|
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client';
|
|
|
|
|
2022-10-21 21:47:54 +03:00
|
|
|
export interface QueryI extends ViewSettingsI {
|
2022-08-06 01:36:13 +03:00
|
|
|
IncludeItemTypes?: string;
|
|
|
|
Recursive?: boolean;
|
2022-10-21 21:47:54 +03:00
|
|
|
Fields?: string | null;
|
2022-08-06 01:36:13 +03:00
|
|
|
ImageTypeLimit?: number;
|
2022-08-21 03:09:22 +03:00
|
|
|
EnableTotalRecordCount?: boolean;
|
2022-08-06 01:36:13 +03:00
|
|
|
EnableImageTypes?: string;
|
2022-10-05 02:44:28 +03:00
|
|
|
StartIndex?: number;
|
2022-08-06 01:36:13 +03:00
|
|
|
ParentId?: string | null;
|
2022-10-21 21:47:54 +03:00
|
|
|
IsMissing?: boolean | null;
|
2022-10-14 02:07:54 +03:00
|
|
|
Limit?:number;
|
2022-10-03 02:33:43 +03:00
|
|
|
Filters?: string | null;
|
|
|
|
}
|
|
|
|
|
2022-10-21 21:47:54 +03:00
|
|
|
export interface ViewSettingsI {
|
|
|
|
showTitle?: boolean;
|
|
|
|
showYear?: boolean;
|
|
|
|
imageType?: string;
|
|
|
|
viewType?: string;
|
|
|
|
cardLayout?: boolean;
|
|
|
|
SortBy?: string | null;
|
|
|
|
SortOrder?: string | null;
|
|
|
|
IsPlayed?: boolean | null;
|
|
|
|
IsUnplayed?: boolean | null;
|
|
|
|
IsFavorite?: boolean | null;
|
|
|
|
IsResumable?: boolean | null;
|
|
|
|
Is4K?: boolean | null;
|
|
|
|
IsHD?: boolean | null;
|
|
|
|
IsSD?: boolean | null;
|
|
|
|
Is3D?: boolean | null;
|
|
|
|
VideoTypes?: string | null;
|
|
|
|
SeriesStatus?: string | null;
|
|
|
|
HasSubtitles?: boolean | null;
|
|
|
|
HasTrailer?: boolean | null;
|
|
|
|
HasSpecialFeature?: boolean | null;
|
|
|
|
ParentIndexNumber?: boolean | null;
|
|
|
|
HasThemeSong?: boolean | null;
|
|
|
|
HasThemeVideo?: boolean | null;
|
|
|
|
GenreIds?: string | null;
|
|
|
|
NameLessThan?: string | null;
|
|
|
|
NameStartsWith?: string | null;
|
|
|
|
StartIndex?: number;
|
2022-08-06 01:36:13 +03:00
|
|
|
}
|
2022-10-03 01:44:54 +03:00
|
|
|
export interface CardOptionsI {
|
2022-10-05 02:44:28 +03:00
|
|
|
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;
|
2022-10-05 02:44:28 +03:00
|
|
|
preferDisc?: boolean;
|
|
|
|
preferLogo?: boolean;
|
2022-09-02 02:46:05 +03:00
|
|
|
scalable?: boolean;
|
2022-10-05 02:44:28 +03:00
|
|
|
shape?: string | null;
|
2022-09-02 02:46:05 +03:00
|
|
|
lazy?: boolean;
|
2022-10-05 02:44:28 +03:00
|
|
|
cardLayout?: boolean | string;
|
2022-09-02 02:46:05 +03:00
|
|
|
showParentTitle?: boolean;
|
|
|
|
showParentTitleOrTitle?: boolean;
|
|
|
|
showAirTime?: boolean;
|
|
|
|
showAirDateTime?: boolean;
|
|
|
|
showChannelName?: boolean;
|
2022-10-05 02:44:28 +03:00
|
|
|
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;
|
2022-10-05 02:44:28 +03:00
|
|
|
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
|
|
|
}
|