mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 15:18:11 +00:00
fix
This commit is contained in:
@@ -29,6 +29,7 @@ export interface Vehicle {
|
||||
code?: string | null;
|
||||
powerPlateNo?: string | null;
|
||||
trailerPlateNo?: string | null;
|
||||
locationId?: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
@@ -55,7 +56,7 @@ export const vehiclesService = {
|
||||
getById: (id: string) => apiClient.get<Vehicle>(URL_CONSTANTS.VEHICLES.BY_ID(id)),
|
||||
create: (data: Partial<SaveVehiclePayload>) =>
|
||||
apiClient.post(URL_CONSTANTS.VEHICLES.BASE, data),
|
||||
update: (id: string, data: Partial<SaveVehiclePayload>) =>
|
||||
update: (id: string, data: Partial<SaveVehiclePayload & { locationId?: string | null }>) =>
|
||||
apiClient.patch(URL_CONSTANTS.VEHICLES.BY_ID(id), data),
|
||||
delete: (id: string) => apiClient.delete(URL_CONSTANTS.VEHICLES.BY_ID(id)),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user