fix: move packages schemas
This commit is contained in:
@@ -8,7 +8,10 @@ import {
|
||||
|
||||
import { serverClient } from "../server"
|
||||
|
||||
import type { BreackfastPackagesInput } from "@/types/requests/packages"
|
||||
import type {
|
||||
BreackfastPackagesInput,
|
||||
PackagesInput,
|
||||
} from "@/types/requests/packages"
|
||||
|
||||
export const getLocations = cache(async function getMemoizedLocations() {
|
||||
return serverClient().hotel.locations.get()
|
||||
@@ -144,6 +147,12 @@ export const getBreakfastPackages = cache(async function getMemoizedPackages(
|
||||
return serverClient().hotel.packages.breakfast(input)
|
||||
})
|
||||
|
||||
export const getPackages = cache(async function getMemoizedPackages(
|
||||
input: PackagesInput
|
||||
) {
|
||||
return serverClient().hotel.packages.get(input)
|
||||
})
|
||||
|
||||
export const getBookingConfirmation = cache(
|
||||
function getMemoizedBookingConfirmation(confirmationNumber: string) {
|
||||
return serverClient().booking.confirmation({ confirmationNumber })
|
||||
|
||||
Reference in New Issue
Block a user