47 lines
885 B
TypeScript
47 lines
885 B
TypeScript
export type BusinessCategory = {
|
|||
|
|
id: string;
|
||
|
|
slug: string;
|
||
|
|
title: string;
|
||
|
|
isActive: boolean;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type BusinessImage = {
|
||
|
|
id: string;
|
||
|
|
url: string;
|
||
|
|
isCover: boolean;
|
||
|
|
sortOrder: number;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type Business = {
|
||
|
|
id: string;
|
||
|
|
title: string;
|
||
|
|
slug: string;
|
||
|
|
description: string | null;
|
||
|
|
contactPhone: string | null;
|
||
|
|
address: string | null;
|
||
|
|
latitude: number | null;
|
||
|
|
longitude: number | null;
|
||
|
|
isActive: boolean;
|
||
|
|
categoryId: string;
|
||
|
|
category?: BusinessCategory;
|
||
|
|
images?: BusinessImage[];
|
||
|
|
};
|
||
|
|
|
||
|
|
export type ServiceTemplate = {
|
||
|
|
id: string;
|
||
|
|
title: string;
|
||
|
|
slug: string;
|
||
|
|
description: string | null;
|
||
|
|
defaultDurationMinutes: number;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type BusinessService = {
|
||
|
|
id: string;
|
||
|
|
businessId: string;
|
||
|
|
serviceTemplateId: string;
|
||
|
|
price: string;
|
||
|
|
durationMinutes: number | null;
|
||
|
|
isActive: boolean;
|
||
|
|
serviceTemplate?: ServiceTemplate;
|
||
|
|
};
|