Merged in fix/confirmation-schema (pull request #1329)
fix(SW-1640): adjust linkedReservationsSchema to align with api response * fix(SW-1640): adjust linkedReservationsSchema to align with api response Approved-by: Michael Zetterberg Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -3,6 +3,7 @@ import { z } from "zod"
|
||||
import { ChildBedTypeEnum } from "@/constants/booking"
|
||||
|
||||
import { phoneValidator } from "@/utils/zod/phoneValidator"
|
||||
import { nullableStringValidator } from "@/utils/zod/stringValidator"
|
||||
|
||||
// MUTATION
|
||||
export const createBookingSchema = z
|
||||
@@ -126,13 +127,12 @@ const rateDefinitionSchema = z.object({
|
||||
const linkedReservationsSchema = z.object({
|
||||
confirmationNumber: z.string().default(""),
|
||||
hotelId: z.string().default(""),
|
||||
checkInDate: z.string().datetime(),
|
||||
checkOutDate: z.string().datetime(),
|
||||
cancellationNumber: z.string().default(""),
|
||||
checkinDate: z.string(),
|
||||
checkoutDate: z.string(),
|
||||
cancellationNumber: nullableStringValidator,
|
||||
roomTypeCode: z.string().default(""),
|
||||
adults: z.number().int(),
|
||||
children: z.number().int(),
|
||||
guaranteeCode: z.array(z.string()).default([]),
|
||||
profileId: z.string().default(""),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user