feat: add Account Page query

This commit is contained in:
Arvid Norlin
2024-04-18 09:31:05 +02:00
parent cb1ab4415a
commit 1543065d27
7 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import { AllRequestResponse } from "../utils/all"
import type { TypenameInterface } from "../utils/typename"
import type { Edges } from "../utils/edges"
export type PageLink = {
url: string
title: string
}
export type Shortcut = {
text: string
linkConnection: Edges<PageLink>
}
export type Shortcuts = {
title: string
preamble: string
shortcuts: Shortcut[]
}
export type DynamicContent = {
component: string
title: string
link: { linkConnection: Edges<PageLink>; link_text: string }
}
export type AccountPageContentItem = {}
export type AccountPage = {
url: string
title: string
content: AccountPageContentItem[]
}
export type GetAccountPageData = {
all_account_page: AllRequestResponse<AccountPage>
}