fix: add all pages as possible references
This commit is contained in:
@@ -459,6 +459,8 @@ const linkRefsUnionSchema = z.discriminatedUnion("__typename", [
|
||||
pageLinks.contentPageRefSchema,
|
||||
pageLinks.hotelPageRefSchema,
|
||||
pageLinks.loyaltyPageRefSchema,
|
||||
pageLinks.accountPageRefSchema,
|
||||
pageLinks.collectionPageRefSchema,
|
||||
])
|
||||
|
||||
const linkRefsSchema = z
|
||||
@@ -557,6 +559,7 @@ const linkUnionSchema = z.discriminatedUnion("__typename", [
|
||||
pageLinks.contentPageSchema,
|
||||
pageLinks.hotelPageSchema,
|
||||
pageLinks.loyaltyPageSchema,
|
||||
pageLinks.collectionPageSchema,
|
||||
])
|
||||
|
||||
const linkSchema = z
|
||||
@@ -732,6 +735,7 @@ export const alertSchema = z
|
||||
pageLinks.contentPageSchema,
|
||||
pageLinks.hotelPageSchema,
|
||||
pageLinks.loyaltyPageSchema,
|
||||
pageLinks.collectionPageSchema,
|
||||
])
|
||||
.transform((data) => {
|
||||
const link = pageLinks.transform(data)
|
||||
@@ -835,6 +839,7 @@ const sidepeekContentRefSchema = z.object({
|
||||
pageLinks.contentPageRefSchema,
|
||||
pageLinks.hotelPageRefSchema,
|
||||
pageLinks.loyaltyPageRefSchema,
|
||||
pageLinks.collectionPageRefSchema,
|
||||
]),
|
||||
})
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user