58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
import type { Preamble } from "./preamble"
|
|
import type { AllRequestResponse } from "./utils/all"
|
|
import type { MyPageBlocksEnum, Typename } from "./utils/typename"
|
|
|
|
type Shortcuts = {
|
|
title: string
|
|
subtitle: string
|
|
external_link: {
|
|
href: string
|
|
title: string
|
|
}
|
|
}
|
|
|
|
type PersonalBenefitsBlock = {
|
|
is_visible: boolean
|
|
}
|
|
|
|
type NextLevelBlock = {
|
|
title: string
|
|
subtitle: string
|
|
}
|
|
|
|
export type Blocks =
|
|
| Typename<NextLevelBlock, MyPageBlocksEnum.MyPageBlocksNextLevelBlock>
|
|
| Typename<
|
|
PersonalBenefitsBlock,
|
|
MyPageBlocksEnum.MyPageBlocksPersonalBenefitsBlock
|
|
>
|
|
| Typename<Shortcuts, MyPageBlocksEnum.MyPageBlocksShortcuts>
|
|
|
|
export type Breadcrumb = {
|
|
href: string
|
|
title: string
|
|
}
|
|
|
|
export type Breadcrumbs = {
|
|
parents: Breadcrumb[]
|
|
title: string
|
|
}
|
|
|
|
export type BenefitPage = {
|
|
content: Blocks[]
|
|
breadcrumbs: Breadcrumbs
|
|
code_defined_route: string
|
|
preamble: Preamble
|
|
system: {
|
|
created_at: string
|
|
uid: string
|
|
updated_at: string
|
|
}
|
|
title: string
|
|
url: string
|
|
}
|
|
|
|
export type GetBenefitsPageData = {
|
|
all_my_page: AllRequestResponse<BenefitPage>
|
|
}
|