diff --git a/src/app/core/services/tenant.interface.ts b/src/app/core/services/tenant.interface.ts
index 51a87cf..0207fe4 100644
--- a/src/app/core/services/tenant.interface.ts
+++ b/src/app/core/services/tenant.interface.ts
@@ -9,8 +9,13 @@ export interface BankAccount {
cvu: string;
}
+export interface WebsiteType {
+ codigo: string;
+ nombre: string;
+}
+
export interface HeroConfig {
- background_image?: string | null;
+ background_image_id?: string | null;
title_html?: string | null;
description_html?: string | null;
button_text?: string | null;
@@ -23,6 +28,13 @@ export interface EventConfig {
dates?: string[] | null;
}
+export interface WebsiteExtras {
+ carousel?: string[];
+ heroConfig?: HeroConfig | null;
+ eventConfig?: EventConfig | null;
+ [extraName: string]: unknown;
+}
+
export interface Menu {
id: number;
code: string;
@@ -60,14 +72,14 @@ export interface Tenant {
footer_bg_color: string;
header_logo: string;
footer_logo: string;
+ website_type_code?: string | null;
+ website_type?: WebsiteType | null;
+ extras?: WebsiteExtras;
selected_bank_account_id?: number | null;
selected_bank_account?: BankAccount | null;
- hero_config?: HeroConfig | null;
- event_config?: EventConfig | null;
search_product_layout?: 'row' | 'column_with_image' | 'column_with_cart';
search_group_layout?: 'paginated' | 'simple' | 'simple_vertical' | 'carousel';
search_items_per_page?: number;
- main_carousel_images?: string[];
social_media?: SocialMedia[];
menues?: Menu[];
categories: Category[];
diff --git a/src/app/features/store/pages/store-home-page/store-home-page.component.html b/src/app/features/store/pages/store-home-page/store-home-page.component.html
index d62e95a..514396a 100644
--- a/src/app/features/store/pages/store-home-page/store-home-page.component.html
+++ b/src/app/features/store/pages/store-home-page/store-home-page.component.html
@@ -1,19 +1,16 @@
-@if (tenant()?.main_carousel_images; as mainCarouselImages) {
- @if (mainCarouselImages.length) {
+@if (mainCarouselImages(); as images) {
+ @if (images.length) {