chore: add breadcrumbs to loyalty page

This commit is contained in:
Matilda Landström
2024-05-23 14:27:49 +02:00
parent c24f9026f7
commit b262ebdb7c
9 changed files with 331 additions and 8 deletions
@@ -67,3 +67,65 @@ export const getBreadcrumbsSchema = z.array(
uid: z.string(),
})
)
export const validateBreadcrumbsRefsConstenstackSchemaLoyalty = z.object({
all_loyalty_page: z.object({
items: z.array(
z.object({
web: z.object({
breadcrumbss: z.object({
parentsConnection: z.object({
edges: z.array(
z.object({
node: z.object({
system: z.object({
content_type_uid: z.string(),
uid: z.string(),
}),
}),
})
),
}),
}),
}),
system: z.object({
content_type_uid: z.string(),
uid: z.string(),
}),
})
),
}),
})
export const validateBreadcrumbsConstenstackSchemaLoyalty = z.object({
all_loyalty_page: z.object({
items: z.array(
z.object({
web: z.object({
breadcrumbss: z.object({
title: z.string(),
parentsConnection: z.object({
edges: z.array(
z.object({
node: z.object({
breadcrumbs: z.object({
title: z.string(),
}),
system: z.object({
locale: z.nativeEnum(Lang),
uid: z.string(),
}),
url: z.string(),
}),
})
),
}),
}),
}),
system: z.object({
uid: z.string(),
}),
})
),
}),
})