feat: complete approval workflow
This commit is contained in:
1
resources/js/types/global.d.ts
vendored
1
resources/js/types/global.d.ts
vendored
@@ -20,6 +20,7 @@ declare module '@inertiajs/core' {
|
||||
administer: boolean;
|
||||
approveReservations: boolean;
|
||||
};
|
||||
unreadNotifications: number;
|
||||
sidebarOpen: boolean;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
@@ -4,6 +4,7 @@ export type Asset = {
|
||||
asset_tag: string;
|
||||
model_name: string | null;
|
||||
category_name: string | null;
|
||||
category_id?: number | null;
|
||||
location_name: string | null;
|
||||
status_name?: string | null;
|
||||
image_url?: string | null;
|
||||
@@ -11,7 +12,11 @@ export type Asset = {
|
||||
|
||||
export type ReservationItem = {
|
||||
id: number;
|
||||
asset: Pick<Asset, 'id' | 'name' | 'asset_tag' | 'category_name'>;
|
||||
status: string;
|
||||
asset: Pick<
|
||||
Asset,
|
||||
'id' | 'name' | 'asset_tag' | 'category_id' | 'category_name'
|
||||
>;
|
||||
};
|
||||
|
||||
export type Reservation = {
|
||||
@@ -23,6 +28,7 @@ export type Reservation = {
|
||||
starts_at: string;
|
||||
ends_at: string;
|
||||
status: string;
|
||||
decision_reason?: string | null;
|
||||
items: ReservationItem[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user