update rezerv
This commit is contained in:
@@ -22,6 +22,7 @@ export type Business = {
|
||||
latitude: number | null;
|
||||
longitude: number | null;
|
||||
isActive: boolean;
|
||||
serviceClassesEnabled?: boolean;
|
||||
categoryId: string;
|
||||
ownerId?: string | null;
|
||||
category?: BusinessCategory;
|
||||
@@ -63,6 +64,26 @@ export type UpdateBusinessPayload = {
|
||||
address?: string | null;
|
||||
latitude?: number | null;
|
||||
longitude?: number | null;
|
||||
serviceClassesEnabled?: boolean;
|
||||
};
|
||||
|
||||
export type BusinessServiceClass = {
|
||||
id: string;
|
||||
businessId: string;
|
||||
title: string;
|
||||
description: string | null;
|
||||
sortOrder: number;
|
||||
isActive: boolean;
|
||||
};
|
||||
|
||||
export type BusinessServiceClassPrice = {
|
||||
id: string;
|
||||
businessServiceId: string;
|
||||
classId: string;
|
||||
price: string;
|
||||
durationMinutes: number | null;
|
||||
isActive: boolean;
|
||||
serviceClass?: BusinessServiceClass;
|
||||
};
|
||||
|
||||
export type ServiceTemplate = {
|
||||
@@ -81,6 +102,7 @@ export type BusinessService = {
|
||||
durationMinutes: number | null;
|
||||
isActive: boolean;
|
||||
serviceTemplate?: ServiceTemplate;
|
||||
classPrices?: BusinessServiceClassPrice[];
|
||||
};
|
||||
|
||||
export type BusinessServiceRequestStatus = 'pending' | 'approved' | 'rejected';
|
||||
@@ -119,6 +141,8 @@ export type Booking = {
|
||||
customerId: string;
|
||||
businessId: string;
|
||||
businessServiceId: string;
|
||||
serviceClassId?: string | null;
|
||||
bookingGroupId?: string | null;
|
||||
scheduledAt: string;
|
||||
status: BookingStatus;
|
||||
note: string | null;
|
||||
@@ -131,4 +155,5 @@ export type Booking = {
|
||||
};
|
||||
business?: Business;
|
||||
businessService?: BusinessService;
|
||||
serviceClass?: BusinessServiceClass;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user