optimized condition checks
This commit is contained in:
@@ -240,6 +240,8 @@ export const rentalAPI = {
|
||||
startDateTime: string;
|
||||
endDateTime: string;
|
||||
}) => api.post("/rentals/cost-preview", data),
|
||||
updatePaymentMethod: (id: string, stripePaymentMethodId: string) =>
|
||||
api.put(`/rentals/${id}/payment-method`, { stripePaymentMethodId }),
|
||||
};
|
||||
|
||||
export const messageAPI = {
|
||||
@@ -335,11 +337,14 @@ export const conditionCheckAPI = {
|
||||
rentalId: string,
|
||||
data: { checkType: string; imageFilenames: string[]; notes?: string }
|
||||
) => api.post(`/condition-checks/${rentalId}`, data),
|
||||
getConditionChecks: (rentalId: string) =>
|
||||
api.get(`/condition-checks/${rentalId}`),
|
||||
getConditionCheckTimeline: (rentalId: string) =>
|
||||
api.get(`/condition-checks/${rentalId}/timeline`),
|
||||
getAvailableChecks: () => api.get("/condition-checks"),
|
||||
getBatchConditionChecks: (rentalIds: string[]) =>
|
||||
api.get(`/condition-checks/batch`, {
|
||||
params: { rentalIds: rentalIds.join(",") },
|
||||
}),
|
||||
getAvailableChecks: (rentalIds: string[]) =>
|
||||
api.get("/condition-checks", {
|
||||
params: { rentalIds: rentalIds.join(",") },
|
||||
}),
|
||||
};
|
||||
|
||||
export const feedbackAPI = {
|
||||
|
||||
Reference in New Issue
Block a user