Merged in feat/sw-590-update-room-configuration-schema (pull request #687)

Rename bedType to roomTypeCode

* Rename bedType to roomTypeCode


Approved-by: Fredrik Thorsson
This commit is contained in:
Niclas Edenvin
2024-10-14 12:56:11 +00:00
parent 2bef312a5c
commit d37f99f2ba

View File

@@ -501,7 +501,8 @@ const productSchema = z.object({
const roomConfigurationSchema = z.object({
status: z.string(),
bedType: z.string(),
// TODO: Remove the optional when the API change has been deployed
roomTypeCode: z.string().optional(),
roomType: z.string(),
roomsLeft: z.number(),
features: z.array(z.object({ inventory: z.number(), code: z.string() })),