@@ -29,9 +29,31 @@ export type Reservation = {
|
||||
ends_at: string;
|
||||
status: string;
|
||||
decision_reason?: string | null;
|
||||
recurring_group_id?: string | null;
|
||||
recurrence_pattern?: string | null;
|
||||
items: ReservationItem[];
|
||||
};
|
||||
|
||||
export type ConflictedAsset = {
|
||||
id: number;
|
||||
name: string;
|
||||
asset_tag: string;
|
||||
model_name: string | null;
|
||||
category_name: string | null;
|
||||
alternatives: Asset[];
|
||||
};
|
||||
|
||||
export type OccurrenceCheck = {
|
||||
index: number;
|
||||
date_formatted: string;
|
||||
time_formatted: string;
|
||||
starts_at: string;
|
||||
ends_at: string;
|
||||
has_conflict: boolean;
|
||||
conflicted_assets: ConflictedAsset[];
|
||||
available_assets: Asset[];
|
||||
};
|
||||
|
||||
export type PaginationLink = {
|
||||
url: string | null;
|
||||
label: string;
|
||||
@@ -47,3 +69,9 @@ export type Paginated<T> = {
|
||||
total: number;
|
||||
links: PaginationLink[];
|
||||
};
|
||||
|
||||
export type WeeklySlot = {
|
||||
day_of_week: number; // 0-6 (Sunday-Saturday)
|
||||
start_time: string; // HH:mm format
|
||||
end_time: string; // HH:mm format
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user