import type { Category } from "../../components/navigationV2/types"; import type { CtaBanner, CtaBannerApi } from "../../ctaBanner/interfaces/types"; import type { Article, ArticleApi } from "../../together/interfaces/types"; export type HelloWellnessSpotlightMenuApi = { banner: string; url: string; }; export type HelloWellnessVideoMenuApi = { video_url: string; thumbnail_video: boolean | string; title: string; }; export type HelloWellnessCategoryInfoApi = { icon: string; category_name: string; }; export type HelloWellnessCategoryApi = { name: string; permalink: string; icon?: string; term_id?: number; slug?: string; cat_name?: string; category_nicename?: string; description?: string; image?: string; parent?: string | number; child_cates?: HelloWellnessCategoryApi[]; color_feature_image?: string; image_color?: string; text_color?: string; en_name?: string; lang?: string; customized_url?: string | null; }; export type HelloWellnessLandingCategoryApi = HelloWellnessCategoryApi & { en_name?: string; lang?: string; }; export type HelloWellnessLandingSectionCategoryApi = { header_for_categories_list: string; category: HelloWellnessLandingCategoryApi[]; }; export type HelloWellnessSectionFeatureImageItemApi = { image: string; content: { title: string; description: string; }; redirect_link: string; open_new_tab: boolean; }; export type HelloWellnessSectionArticleFeatureImageApi = { display_type: 'feature_image'; feature_images: HelloWellnessSectionFeatureImageItemApi[]; }; export type HelloWellnessSectionArticleListApi = { display_type: 'article_list'; article_list: ArticleApi[]; }; export type HelloWellnessSectionArticleApi = HelloWellnessSectionArticleFeatureImageApi | HelloWellnessSectionArticleListApi; export type HelloWellnessLandingPageApi = { banner_desktop: string; banner_mobile: string; icon?: string; page_name?: string; page_description?: string; enable_section_banner?: boolean; section_banner?: CtaBannerApi & { title?: string; description?: string; background_color?: string; }; section_category?: HelloWellnessLandingSectionCategoryApi; section_article?: HelloWellnessSectionArticleApi; }; export type HelloWellnessFeatureImageDataApi = { image: string; header: string; description: string; redirect_link: string; }; export type HelloWellnessPinArticleDataApi = ArticleApi & { image?: string | false; image_medium?: string | false; image_thumbnail?: string | false; feature_1x1?: string | null; }; export type HelloWellnessPinArticleItemApi = { category: number; type: 'pin_article'; data: HelloWellnessPinArticleDataApi; }; export type HelloWellnessFeatureImageItemApi = { category: number; type: 'feature_image'; data: HelloWellnessFeatureImageDataApi; }; export type HelloWellnessNoArticleItemApi = { category: number; type: 'no_article'; data: null; }; export type HelloWellnessPinCategoryItemApi = HelloWellnessPinArticleItemApi | HelloWellnessFeatureImageItemApi | HelloWellnessNoArticleItemApi; export type HelloWellnessPinArticleForEachCategoryApi = { sponsor_logo: string; list_categories: HelloWellnessPinCategoryItemApi[]; }; export type HelloWellnessSettingsApi = { hide_advertisements?: boolean; menu: { 'spotlight-menu': HelloWellnessSpotlightMenuApi; video_menu: HelloWellnessVideoMenuApi; }; hello_wellness_category: HelloWellnessCategoryInfoApi; landing_page: HelloWellnessLandingPageApi; pin_article_for_each_category: HelloWellnessPinArticleForEachCategoryApi; }; export type HelloWellnessApi = { enabled: boolean; settings: HelloWellnessSettingsApi; }; export type HelloWellnessResponseApi = { status: number; messages: string | null; data: HelloWellnessApi; }; export type HelloWellnessSpotlightMenu = { banner: string; url: string; }; export type HelloWellnessVideoMenu = { videoUrl: string; thumbnail: string; title: string; }; export type HelloWellnessCategoryInfo = { icon: string; categoryName: string; }; export type HelloWellnessLandingSectionCategory = { headerForCategoriesList: string; categories: Category[]; }; export type HelloWellnessSectionBanner = CtaBanner & { title: string; description: string; backgroundColor: string; }; export type HelloWellnessFeatureImage = { image: string; header: string; description: string; redirectLink: string; openNewTab?: boolean; }; export type HelloWellnessSectionFeatureImageItem = HelloWellnessFeatureImage & { openNewTab: boolean; }; export type HelloWellnessSectionArticleFeatureImage = { displayType: 'feature_image'; featureImages: HelloWellnessSectionFeatureImageItem[]; }; export type HelloWellnessSectionArticleList = { displayType: 'article_list'; articleList: Article[]; }; export type HelloWellnessSectionArticle = HelloWellnessSectionArticleFeatureImage | HelloWellnessSectionArticleList; export type HelloWellnessLandingPage = { bannerDesktop: string; bannerMobile: string; icon: string; pageName: string; pageDescription: string; enableSectionBanner: boolean; sectionBanner?: HelloWellnessSectionBanner; sectionCategory: HelloWellnessLandingSectionCategory; sectionArticle?: HelloWellnessSectionArticle; }; export type HelloWellnessPinArticleItem = { categoryId: number; type: 'pin_article'; data: Article; }; export type HelloWellnessFeatureImageItem = { categoryId: number; type: 'feature_image'; data: HelloWellnessFeatureImage; }; export type HelloWellnessNoArticleItem = { categoryId: number; type: 'no_article'; data: null; }; export type HelloWellnessPinCategoryItem = HelloWellnessPinArticleItem | HelloWellnessFeatureImageItem | HelloWellnessNoArticleItem; export type HelloWellnessPinArticleForEachCategory = { sponsorLogo: string; listCategories: HelloWellnessPinCategoryItem[]; }; export type HelloWellnessMenu = { spotlightMenu: HelloWellnessSpotlightMenu; videoMenu: HelloWellnessVideoMenu; }; export type HelloWellnessSettings = { hideAdvertisements: boolean; menu: HelloWellnessMenu; helloWellnessCategory: HelloWellnessCategoryInfo; landingPage: HelloWellnessLandingPage; pinArticleForEachCategory: HelloWellnessPinArticleForEachCategory; }; export type HelloWellness = { enabled: boolean; settings: HelloWellnessSettings; };