Preview: richtext-plain.ts
Size: 4.13 KB
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/interfaces/richtext-plain.ts
export interface RichTextPlain {
id?: number;
date?: Date | string;
date_gmt?: Date | string;
guid?: GUID;
modified?: Date | string;
modified_gmt?: Date | string;
slug?: string;
status?: string;
type?: string;
link?: string;
title?: GUID;
content?: Content;
excerpt?: Content;
author?: number;
featured_media?: number;
comment_status?: string;
ping_status?: string;
sticky?: boolean;
template?: string;
format?: string;
meta?: Meta;
categories?: number[];
tags?: any[];
persona?: any[];
class_list?: string[];
acf?: Acf;
yoast_head?: string;
yoast_head_json?: YoastHeadJSON;
_links?: Links;
}
export interface Links {
self?: About[];
collection?: About[];
about?: About[];
author?: AuthorElement[];
replies?: AuthorElement[];
'version-history'?: VersionHistory[];
'predecessor-version'?: PredecessorVersion[];
'wp:featuredmedia'?: AuthorElement[];
'wp:attachment'?: About[];
'wp:term'?: WpTerm[];
curies?: Cury[];
}
export interface About {
href?: string;
}
export interface AuthorElement {
embeddable?: boolean;
href?: string;
}
export interface Cury {
name?: string;
href?: string;
templated?: boolean;
}
export interface PredecessorVersion {
id?: number;
href?: string;
}
export interface VersionHistory {
count?: number;
href?: string;
}
export interface WpTerm {
taxonomy?: string;
embeddable?: boolean;
href?: string;
}
export interface Acf {
hero_image_switch?: boolean | null | string | undefined;
hero_desktop_image?: boolean | null | string | undefined;
hero_mobile_image?: boolean | null | string | undefined;
hero_heading?: boolean | null | string | undefined;
hero_sub_heading?: boolean | null | string | undefined;
hero_published_date?: boolean | null | string | undefined;
hero_post_author?: boolean | null | string | undefined;
sponsored_content?: boolean | null | string | undefined;
}
export interface Content {
rendered?: string;
protected?: boolean;
}
export interface GUID {
rendered?: string;
}
export interface Meta {
_acf_changed?: boolean;
footnotes?: string;
}
export interface YoastHeadJSON {
title?: string;
robots?: Robots;
canonical?: string;
og_locale?: string;
og_type?: string;
og_title?: string;
og_description?: string;
og_url?: string;
og_site_name?: string;
article_publisher?: string;
article_published_time?: Date | string;
article_modified_time?: Date | string;
og_image?: OgImage[];
author?: string;
twitter_card?: string;
twitter_creator?: string;
twitter_site?: string;
twitter_misc?: TwitterMisc;
schema?: Schema;
}
export interface OgImage {
width?: number;
height?: number;
url?: string;
type?: string;
}
export interface Robots {
index?: string;
follow?: string;
'max-snippet'?: string;
'max-image-preview'?: string;
'max-video-preview'?: string;
}
export interface Schema {
'@context'?: string;
'@graph'?: Graph[];
}
export interface Graph {
'@type'?: string;
'@id'?: string;
isPartOf?: Breadcrumb;
author?: GraphAuthor;
headline?: string;
datePublished?: Date | string;
dateModified?: Date | string;
mainEntityOfPage?: Breadcrumb;
wordCount?: number;
commentCount?: number;
publisher?: Breadcrumb;
image?: { [key: string]: null | string };
thumbnailUrl?: string;
inLanguage?: string;
potentialAction?: PotentialAction[];
url?: string;
name?: string;
primaryImageOfPage?: Breadcrumb;
breadcrumb?: Breadcrumb;
contentUrl?: string;
width?: number;
height?: number;
itemListElement?: ItemListElement[];
description?: string;
logo?: { [key: string]: null | string };
sameAs?: string[];
}
export interface GraphAuthor {
name?: string;
'@id'?: string;
}
export interface Breadcrumb {
'@id'?: string;
}
export interface ItemListElement {
'@type'?: string;
position?: number;
name?: string;
item?: string;
}
export interface PotentialAction {
'@type'?: string;
name?: string;
target?: string[] | TargetClass;
'query-input'?: string;
}
export interface TargetClass {
'@type'?: string;
urlTemplate?: string;
}
export interface TwitterMisc {
'Written by'?: string;
'Est. reading time'?: string;
}
Directory Contents
Dirs: 0 × Files: 7