feat: graphql client with fetches for initial pages
This commit is contained in:
33
types/requests/currentBlockPage.ts
Normal file
33
types/requests/currentBlockPage.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { BlocksTypenameEnum } from "./utils/typename"
|
||||
|
||||
import type { Contact } from "./asides/contact"
|
||||
import type { PuffAside } from "./asides/puff"
|
||||
import type { Hero } from "./hero"
|
||||
import type { List } from "./blocks/list"
|
||||
import type { PuffBlock } from "./blocks/puff"
|
||||
import type { Preamble } from "./blocks/preamble"
|
||||
import type { Text } from "./blocks/text"
|
||||
import type { AllRequestResponse } from "./utils/all"
|
||||
import type { AsideTypenameEnum, Typename } from "./utils/typename"
|
||||
|
||||
export type Asides =
|
||||
| Typename<Contact, AsideTypenameEnum.CurrentBlocksPageAsideContact>
|
||||
| Typename<PuffAside, AsideTypenameEnum.CurrentBlocksPageAsidePuff>
|
||||
|
||||
export type Blocks =
|
||||
| Typename<List, BlocksTypenameEnum.CurrentBlocksPageBlocksList>
|
||||
| Typename<Preamble, BlocksTypenameEnum.CurrentBlocksPageBlocksPreamble>
|
||||
| Typename<PuffBlock, BlocksTypenameEnum.CurrentBlocksPageBlocksPuffs>
|
||||
| Typename<Text, BlocksTypenameEnum.CurrentBlocksPageBlocksText>
|
||||
|
||||
export type BlockPage = {
|
||||
aside: Asides[]
|
||||
blocks: Blocks[]
|
||||
hero: Hero
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
|
||||
export type GetCurrentBlockPageData = {
|
||||
all_current_blocks_page: AllRequestResponse<BlockPage>
|
||||
}
|
||||
Reference in New Issue
Block a user