import Foundation
extension APIClient {
 func corporateOverview() async throws -> Data { try await request(path:"/corporate/overview").0 }
 func corporateVehicles() async throws -> Data { try await request(path:"/corporate/vehicles").0 }
 func corporateTeam() async throws -> Data { try await request(path:"/corporate/team").0 }
 func corporateOperations() async throws -> Data { try await request(path:"/corporate/operations").0 }
 func corporateVehicleHistory(_ id:Int) async throws -> Data { try await request(path:"/corporate/vehicle-history?vehicle_id=\(id)").0 }
 func corporateEmergency(_ body:Data,key:String) async throws -> Data { try await request(path:"/corporate/request",method:"POST",body:body,idempotencyKey:key).0 }
 func corporateAppointment(_ body:Data,key:String) async throws -> Data { try await request(path:"/corporate/appointment",method:"POST",body:body,idempotencyKey:key).0 }
}