21 lines
650 B
TypeScript
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
|