feat: graphql client with fetches for initial pages

This commit is contained in:
Simon Emanuelsson
2024-02-01 16:19:16 +01:00
parent a91781137a
commit 5e974aa3da
56 changed files with 2580 additions and 1512 deletions
+26
View File
@@ -0,0 +1,26 @@
import type { Edges } from "./utils/edges"
import type { ExternalLink } from "./utils/externalLink"
import type { PageLink } from "./utils/pagelink"
import type { Typename } from "./utils/typename"
export type Puff = {
imageConnection: Edges<{
title: string
url: string
}>
is_internal: boolean
link: {
href: string
title: string
}
link_text?: string
pageConnection: Edges<ExternalLink | PageLink>
text: {
json: JSON
embedded_itemsConnection: Edges<Typename<{
title: string
url: string
}, "SysAsset">>
}
title: string
}