chore: remove references to obsolete CodeDefinedPage content type
This commit is contained in:
@@ -22,7 +22,6 @@ function getURL(node: PageLink) {
|
||||
return node.web.url
|
||||
case PageLinkEnum.AccountPage:
|
||||
case PageLinkEnum.LoyaltyPage:
|
||||
case PageLinkEnum.CodeDefinedPage:
|
||||
return node.url
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,14 +7,6 @@ fragment CurrentBlocksPageLink on CurrentBlocksPage {
|
||||
url
|
||||
}
|
||||
|
||||
fragment CodeDefinedPageLink on CodeDefinedPage {
|
||||
system {
|
||||
uid
|
||||
}
|
||||
title
|
||||
url
|
||||
}
|
||||
|
||||
fragment AccountPageLink on AccountPage {
|
||||
system {
|
||||
uid
|
||||
|
||||
@@ -19,7 +19,6 @@ query GetNavigationMyPages {
|
||||
__typename
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...CodeDefinedPageLink
|
||||
...ContentPageLink
|
||||
}
|
||||
}
|
||||
@@ -34,7 +33,6 @@ query GetNavigationMyPages {
|
||||
...AccountPageLink
|
||||
...LoyaltyPageLink
|
||||
...ContentPageLink
|
||||
...CodeDefinedPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ import { Typename } from "../utils/typename"
|
||||
|
||||
export enum PageLinkEnum {
|
||||
AccountPage = "AccountPage",
|
||||
CodeDefinedPage = "CodeDefinedPage",
|
||||
ContentPage = "ContentPage",
|
||||
LoyaltyPage = "LoyaltyPage",
|
||||
}
|
||||
@@ -38,16 +37,6 @@ export type LoyaltyPageLink = Typename<
|
||||
PageLinkEnum.LoyaltyPage
|
||||
>
|
||||
|
||||
export type CodeDefinedPageLink = Typename<
|
||||
{
|
||||
uid: string
|
||||
title: string
|
||||
url: string
|
||||
system: { uid: string }
|
||||
},
|
||||
PageLinkEnum.CodeDefinedPage
|
||||
>
|
||||
|
||||
export type ContentPageLink = Typename<
|
||||
{
|
||||
uid: string
|
||||
@@ -58,11 +47,7 @@ export type ContentPageLink = Typename<
|
||||
PageLinkEnum.ContentPage
|
||||
>
|
||||
|
||||
export type PageLink =
|
||||
| CodeDefinedPageLink
|
||||
| ContentPageLink
|
||||
| AccountPageLink
|
||||
| LoyaltyPageLink
|
||||
export type PageLink = ContentPageLink | AccountPageLink | LoyaltyPageLink
|
||||
|
||||
export type NavigationItem = {
|
||||
item: {
|
||||
|
||||
Reference in New Issue
Block a user