feat(tenant): add HeroConfig, EventConfig, and Menu interfaces to enhance tenant structure
This commit is contained in:
@@ -9,6 +9,26 @@ export interface BankAccount {
|
|||||||
cvu: string;
|
cvu: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface HeroConfig {
|
||||||
|
background_image?: string | null;
|
||||||
|
title_html?: string | null;
|
||||||
|
description_html?: string | null;
|
||||||
|
button_text?: string | null;
|
||||||
|
button_href?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface EventConfig {
|
||||||
|
title?: string | null;
|
||||||
|
location?: string | null;
|
||||||
|
dates?: string[] | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Menu {
|
||||||
|
id: number;
|
||||||
|
code: string;
|
||||||
|
route: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Tenant {
|
export interface Tenant {
|
||||||
id: number;
|
id: number;
|
||||||
codigo: string;
|
codigo: string;
|
||||||
@@ -24,6 +44,9 @@ export interface Tenant {
|
|||||||
footer_logo: string;
|
footer_logo: string;
|
||||||
selected_bank_account_id?: number | null;
|
selected_bank_account_id?: number | null;
|
||||||
selected_bank_account?: BankAccount | null;
|
selected_bank_account?: BankAccount | null;
|
||||||
|
hero_config?: HeroConfig | null;
|
||||||
|
event_config?: EventConfig | null;
|
||||||
|
menues?: Menu[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TenantBootstrapResponse = ApiResponse<Tenant>;
|
export type TenantBootstrapResponse = ApiResponse<Tenant>;
|
||||||
|
|||||||
Reference in New Issue
Block a user