mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 00:38:11 +00:00
booking flow,summtion, approval, contract, mock payemnt and integration to back office, and also add permissions
This commit is contained in:
@@ -32,6 +32,8 @@ export const QUERY_KEYS = {
|
||||
ROOT: ["bookings"] as const,
|
||||
list: (filter?: BookingListFilter) =>
|
||||
["bookings", "list", filter ?? {}] as const,
|
||||
listSummary: (filter?: BookingListFilter) =>
|
||||
["bookings", "list-summary", filter ?? {}] as const,
|
||||
byId: (id: string) => ["bookings", "detail", id] as const,
|
||||
},
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@ export const URL_CONSTANTS = {
|
||||
|
||||
BOOKINGS: {
|
||||
BASE: "/bookings",
|
||||
LIST_SUMMARY: "/bookings/list-summary",
|
||||
BY_ID: (id: string) => `/bookings/${id}`,
|
||||
QUEUE: (queue: string) => `/bookings/queues/${queue}`,
|
||||
STAFF_ACCEPT: (id: string) => `/bookings/${id}/staff/accept`,
|
||||
@@ -95,11 +96,7 @@ export const URL_CONSTANTS = {
|
||||
SUMMARY: (id: string) => `/bookings/${id}/summary`,
|
||||
CUSTOMER_SIGN: (id: string) => `/bookings/${id}/customer/sign`,
|
||||
MARKETING_APPROVE: (id: string) => `/bookings/${id}/marketing/approve`,
|
||||
PAYMENT_PNR: (id: string) => `/bookings/${id}/payment/pnr`,
|
||||
PAYMENT_PROOF: (id: string) => `/bookings/${id}/payment/proof`,
|
||||
PAYMENT_VERIFY: (id: string) => `/bookings/${id}/payment/verify`,
|
||||
PAYMENT_REQUEST_LETTER: (id: string) =>
|
||||
`/bookings/${id}/payment/request-letter`,
|
||||
PAYMENT_PAY: (id: string) => `/bookings/${id}/payment/pay`,
|
||||
START_TRANSIT: (id: string) => `/bookings/${id}/operations/start-transit`,
|
||||
COMPLETE: (id: string) => `/bookings/${id}/operations/complete`,
|
||||
CANCEL: (id: string) => `/bookings/${id}/cancel`,
|
||||
|
||||
Reference in New Issue
Block a user