refactor(portals): extend interfaces

This commit is contained in:
4gray committed 2024-03-30 21:10:34 +01:00
1 parent 17e5ae249c
commit 30d490ff0b
8 files changed
+50

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
export * from './stalker-season.interface';
export * from './stalker-serial-details.interface';
@@ -0,0 +1,16 @@
export interface StalkerSeason {
series: string[];
name: string;
cmd: string;
description: string;
director: string;
actors: string;
year: string;
genres_str: string;
age: string;
rating_imdb: string;
rating_kinopoisk: string;
screenshot_uri: string;
added: string;
}
@@ -0,0 +1,13 @@
export interface StalkerSerialDetails {
name: string;
description: string;
director: string;
actors: string;
year: string;
genres_str: string;
age: string;
rating_imdb: string;
rating_kinopoisk: string;
screenshot_uri: string;
added: string;
}
+12
View File
@@ -17,4 +17,16 @@ export const StalkerContentTypes = {
getCategoryAction: StalkerPortalActions.GetCategories,
getLink: StalkerPortalActions.CreateLink,
},
series: {
title: 'Series',
getContentAction: StalkerPortalActions.GetOrderedList,
getCategoryAction: StalkerPortalActions.GetCategories,
getLink: StalkerPortalActions.CreateLink,
},
/* radio: {
title: 'Radio',
getContentAction: StalkerPortalActions.GetOrderedList,
getCategoryAction: StalkerPortalActions.GetOrderedList,
getLink: StalkerPortalActions.CreateLink,
}, */
};
+2
View File
@@ -1,6 +1,8 @@
export enum ContentType {
STB = 'stb',
VODS = 'vod',
SERIES = 'series',
ITV = 'itv',
FAVORITES = 'favorites',
/* RADIO = 'radio', */
}