34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
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>
|
|
}
|