DocumentationTypesInterfaces

Post

amerta


amerta / payload-types / Post

Interface: Post

Defined in: payload-types.ts:1035

This interface was referenced by Config's JSON-Schema via the definition "posts".

Properties

_status?

optional _status: "draft" | "published" | null

Defined in: payload-types.ts:1086


authors?

optional authors: (string | User)[] | null

Defined in: payload-types.ts:1072


categories?

optional categories: (string | Category)[] | null

Defined in: payload-types.ts:1073


content

content: {[k: string]: unknown; root: { children: {[k: string]: unknown; type: any; version: number; }[]; direction: "rtl" | "ltr" | null; format: "" | "center" | "left" | "start" | "right" | "end" | "justify"; indent: number; type: string; version: number; }; }

Defined in: payload-types.ts:1048

Index Signature

[k: string]: unknown

root

root: { children: {[k: string]: unknown; type: any; version: number; }[]; direction: "rtl" | "ltr" | null; format: "" | "center" | "left" | "start" | "right" | "end" | "justify"; indent: number; type: string; version: number; }

root.children

children: {[k: string]: unknown; type: any; version: number; }[]

Index Signature

[k: string]: unknown

root.direction

direction: "rtl" | "ltr" | null

root.format

format: "" | "center" | "left" | "start" | "right" | "end" | "justify"

root.indent

indent: number

root.type

type: string

root.version

version: number


createdAt

createdAt: string

Defined in: payload-types.ts:1084


deletedAt?

optional deletedAt: string | null

Defined in: payload-types.ts:1085


excerpt?

optional excerpt: string | null

Defined in: payload-types.ts:1041

A short summary or excerpt of the blog post.


featured?

optional featured: boolean | null

Defined in: payload-types.ts:1045

Mark this post as featured to highlight it in special sections.


heroImage?

optional heroImage: string | Media | null

Defined in: payload-types.ts:1046


id

id: string

Defined in: payload-types.ts:1036


meta?

optional meta: { description?: string | null; image?: string | Media | null; title?: string | null; }

Defined in: payload-types.ts:1063

description?

optional description: string | null

image?

optional image: string | Media | null

Maximum upload file size: 12MB. Recommended file size for images is <500KB.

title?

optional title: string | null


populatedAuthors?

optional populatedAuthors: { id?: string | null; name?: string | null; }[] | null

Defined in: payload-types.ts:1075


publishedAt?

optional publishedAt: string | null

Defined in: payload-types.ts:1071


relatedPosts?

optional relatedPosts: (string | Post)[] | null

Defined in: payload-types.ts:1047


slug?

optional slug: string | null

Defined in: payload-types.ts:1081


slugLock?

optional slugLock: boolean | null

Defined in: payload-types.ts:1082


tags?

optional tags: (string | Tag)[] | null

Defined in: payload-types.ts:1074


title

title: string

Defined in: payload-types.ts:1037


updatedAt

updatedAt: string

Defined in: payload-types.ts:1083