feat: add service type fitler

This commit is contained in:
Nathnael
2026-08-18 11:38:07 +00:00
parent 2f293e4ae4
commit 03b16b4ee8
9 changed files with 103 additions and 4 deletions

View File

@@ -2741,6 +2741,13 @@ export const api = {
({ id }) => QUERY_KEYS.BOOKINGS.byId(id),
),
referenceData: endpoint<void, Freight.BookingReferenceData>(
"bookings",
"referenceData",
() => bookingsService.getReferenceData() as Promise<Freight.BookingReferenceData>,
() => ["bookings", "reference-data"],
),
remove: endpoint<{ id: string }, void>("bookings", "remove", ({ id }) =>
bookingsService.remove(id),
),