// Questo file fa parte di MyTown.
// MyTown è software libero: puoi ridistribuirlo e/o modificarlo secondo
// i termini della GNU Affero General Public License come pubblicata dalla
// Free Software Foundation, versione 3.
// Distribuito senza ALCUNA GARANZIA; vedi la GNU AGPL v3 per i dettagli.
// Copyright (C) Kondor Consulting & Services S.r.l.
// SPDX-License-Identifier: AGPL-3.0-or-later

import { Company } from './company.model';

export interface ServiceCard {
	srv_id: number;
	srv_pt_rl_id: number;
	// Clausola di join (dal backend) che gata il servizio per relazione: es.
	// "inner join cmp_employees on ... em_userid_portal =" (dipendente) o
	// "inner join cmp_collaborators on ... col_userid_portal =" (collaboratore/fornitore).
	srv_type?: string;
	srv_name: string;
	srv_name_view: string;
	srv_description?: string;
	srv_link: string;
	srv_icon: string;
	company: Company;
	srv_background_class: string;
	srv_background_image?: string;
	srv_background_opacity?: number;
	srv_show_icon?: boolean;
	srv_show_cmp_logo?: boolean;
	srv_show_company_name?: boolean;
	srv_show_service_name?: boolean;
	srv_show_hero_image?: boolean;
	srv_show_distance?: boolean;
	srv_open_now?: boolean;
	srv_has_booking?: boolean;
	// Categoria (macrogruppo) del servizio
	srv_csc_id?: number;
	csc_name_view?: string;
	csc_icon?: string;
	csc_background_class?: string;
	csc_order?: number;
	csc_background_image?: string;
	csc_background_opacity?: number;
}
