feat: widget — room display mode toggle (by room / by category)

This commit is contained in:
2026-04-07 20:46:30 +03:00
parent 57531f2022
commit ab37430243
3 changed files with 213 additions and 23 deletions

View File

@@ -1634,6 +1634,17 @@ export interface WidgetRoom {
amenities: string[]
description: string
photos: string[]
categoryId: string | null
}
export interface WidgetCategory {
id: string
name: string
description: string
amenities: string[]
photos: string[]
minPrice: number
maxGuests: number
}
export interface WidgetConfig {
@@ -1643,10 +1654,12 @@ export interface WidgetConfig {
paymentEnabled: boolean
currency: string
rooms: WidgetRoom[]
categories: WidgetCategory[]
}
export interface WidgetBookingPayload {
roomId: string
roomId?: string
categoryId?: string
checkIn: string
checkOut: string
guestName: string