import SectionComponent from "../../../../constants/section-component.js"; import { IImage } from "../common/image.js"; import { IView, IViews } from "../common/response.js"; import { ICategory } from "./category.js"; import { IExercise } from "./exercise.js"; interface IScrollSection { id: number; __component: SectionComponent.scroll; categories: { title?: string; subtitle?: string; category: TNormalized extends true ? ICategory | null : Partial>; image?: { data: IImage; }; }[]; } interface ICategorySection { id: number; __component: SectionComponent.category; title?: string; category: TNormalized extends true ? ICategory | null : Partial>; exercise: TNormalized extends true ? IExercise | null : Partial>; } interface ISquareSection { id: number; __component: SectionComponent.square; title?: string; category: TNormalized extends true ? ICategory | null : Partial>; exercises: TNormalized extends true ? (IExercise | null)[] : Partial>; } /** * Explore screen */ interface IExplore { id?: number; order?: number; screen?: 'explore' | 'running' | 'fitness' | 'landing' | 'podcast'; type?: [ IScrollSection | ICategorySection | ISquareSection ]; } export { IScrollSection, ICategorySection, ISquareSection, IExplore };