2026-05-23 13:14:52 +03:30
|
|
|
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;
|
2026-05-23 18:13:25 +03:30
|
|
|
ownerId?: string | null;
|
2026-05-23 13:14:52 +03:30
|
|
|
category?: BusinessCategory;
|
|
|
|
|
images?: BusinessImage[];
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-23 18:13:25 +03:30
|
|
|
export type BusinessRegistrationStatus = 'pending' | 'approved' | 'rejected';
|
|
|
|
|
|
|
|
|
|
export type BusinessRegistrationRequest = {
|
|
|
|
|
id: string;
|
|
|
|
|
applicantId: string;
|
|
|
|
|
status: BusinessRegistrationStatus;
|
|
|
|
|
title: string;
|
|
|
|
|
slug: string;
|
|
|
|
|
categoryId: string;
|
|
|
|
|
description: string | null;
|
|
|
|
|
contactPhone: string | null;
|
|
|
|
|
address: string | null;
|
|
|
|
|
adminNote: string | null;
|
|
|
|
|
businessId: string | null;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
category?: BusinessCategory;
|
|
|
|
|
applicant?: { id: string; mobile: string; fullName: string | null };
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type CreateBusinessRegistrationPayload = {
|
|
|
|
|
title: string;
|
|
|
|
|
categoryId: string;
|
2026-05-24 15:58:52 +03:30
|
|
|
slug?: string;
|
2026-05-23 18:13:25 +03:30
|
|
|
description?: string;
|
|
|
|
|
contactPhone?: string;
|
|
|
|
|
address?: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UpdateBusinessPayload = {
|
|
|
|
|
title?: string;
|
|
|
|
|
description?: string | null;
|
|
|
|
|
contactPhone?: string | null;
|
|
|
|
|
address?: string | null;
|
|
|
|
|
latitude?: number | null;
|
|
|
|
|
longitude?: number | null;
|
|
|
|
|
};
|
|
|
|
|
|
2026-05-23 13:14:52 +03:30
|
|
|
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;
|
|
|
|
|
};
|