Files
web/types/requests/embeds.ts
2024-08-23 16:22:14 +02:00

21 lines
650 B
TypeScript

import { EmbedEnum } from "./utils/embeds"
import { PageLink } from "./utils/pageLink"
import { Typename } from "./utils/typename"
import type { ImageContainer } from "./imageContainer"
import type { SysAsset } from "./utils/asset"
type PageLinkWithOriginalUrl = PageLink & {
web: { original_url?: string | null }
}
type ContentPage = Typename<PageLinkWithOriginalUrl, EmbedEnum.ContentPage>
type LoyaltyPage = Typename<PageLinkWithOriginalUrl, EmbedEnum.LoyaltyPage>
type AccountPage = Typename<PageLinkWithOriginalUrl, EmbedEnum.AccountPage>
export type Embeds =
| SysAsset
| ImageContainer
| ContentPage
| LoyaltyPage
| AccountPage