fix: update friendTransaction model according to API
This commit is contained in:
@@ -100,42 +100,47 @@ export const getFriendTransactionsSchema = z.object({
|
||||
attributes: z.object({
|
||||
hotelOperaId: z.string(),
|
||||
confirmationNumber: z.string(),
|
||||
checkInDate: z.string(),
|
||||
checkOutDate: z.string(),
|
||||
checkinDate: z.string(),
|
||||
checkoutDate: z.string(),
|
||||
nights: z.number(),
|
||||
awardPoints: z.number(),
|
||||
pointsCalculated: z.boolean(),
|
||||
hotelInformation: z.object({
|
||||
hotelName: z.string(),
|
||||
city: z.string(),
|
||||
hotelContent: z.object({
|
||||
images: z.object({
|
||||
metaData: z.object({
|
||||
title: z.string(),
|
||||
altText: z.string(),
|
||||
altText_En: z.string(),
|
||||
copyRight: z.string(),
|
||||
}),
|
||||
imageSizes: z.object({
|
||||
tiny: z.string(),
|
||||
small: z.string(),
|
||||
medium: z.string(),
|
||||
large: z.string(),
|
||||
hotelInformation: z
|
||||
.object({
|
||||
hotelName: z.string(),
|
||||
city: z.string(),
|
||||
hotelContent: z.object({
|
||||
images: z.object({
|
||||
metaData: z.object({
|
||||
title: z.string(),
|
||||
altText: z.string(),
|
||||
altText_En: z.string(),
|
||||
copyRight: z.string(),
|
||||
}),
|
||||
imageSizes: z.object({
|
||||
tiny: z.string(),
|
||||
small: z.string(),
|
||||
medium: z.string(),
|
||||
large: z.string(),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
})
|
||||
.optional(),
|
||||
}),
|
||||
relationships: z.object({
|
||||
hotel: z.object({
|
||||
links: z.object({
|
||||
related: z.string(),
|
||||
}),
|
||||
data: z.object({
|
||||
id: z.string(),
|
||||
type: z.string(),
|
||||
}),
|
||||
}),
|
||||
hotel: z
|
||||
.object({
|
||||
links: z.object({
|
||||
related: z.string(),
|
||||
}),
|
||||
|
||||
data: z.object({
|
||||
id: z.string(),
|
||||
type: z.string(),
|
||||
}),
|
||||
})
|
||||
.optional(),
|
||||
booking: z.object({
|
||||
links: z.object({
|
||||
related: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user