import { Rule } from "../availabilityRules";
import { ImageSelect } from "./image";

// -----------------------------------------------------------------< Meal Package


export type MealPackageType = {
    id: number,
    sort_order: number,
    title: string,
    description: string,
    price: number,
    scope: 'booking' | 'all_rooms' | 'room_category' | 'room',
    tag: string,
    is_icon: boolean,
    icon_value: string,
    is_allow_select_days: boolean;
    is_variant: boolean;
    is_published: boolean;
    default_availability: boolean;
    updated_at?: string,
};


export type MealPackageVariantType = {
    id?: number | string,
    sort_order: number
    title: string
    description?: string
    price: number
    unit: number
    is_icon: boolean,
    icon_value: string,
    is_published: boolean,
    default_availability: boolean;
    availability_rules: Rule[]
}


export type MealPackageForm = {
    sort_order: number;
    title: string;
    description: string;
    price: string;
    scope: 'booking' | 'room' | 'room_category' | 'all_rooms',
    tag: string;
    is_icon: boolean,
    icon_value: string,
    is_allow_select_days: boolean;
    is_variant: boolean;
    is_published: boolean;
    default_availability: boolean;
    images: ImageSelect[]
    availabilityRules: Rule[];
    variants: MealPackageVariantType[]
}

