2020-11-27 18:27:44 +00:00
|
|
|
import type { ITag } from "./tag.model";
|
|
|
|
import type { IMedia } from "./media.model";
|
|
|
|
import type { IActor } from "./actor";
|
|
|
|
import type { PostVisibility } from "./enums";
|
2020-07-09 15:24:28 +00:00
|
|
|
|
|
|
|
export interface IPost {
|
|
|
|
id?: string;
|
|
|
|
slug?: string;
|
|
|
|
url?: string;
|
|
|
|
local: boolean;
|
|
|
|
title: string;
|
|
|
|
body: string;
|
|
|
|
tags?: ITag[];
|
2020-11-26 10:41:13 +00:00
|
|
|
picture?: IMedia | null;
|
2020-07-09 15:24:28 +00:00
|
|
|
draft: boolean;
|
|
|
|
visibility: PostVisibility;
|
|
|
|
author?: IActor;
|
|
|
|
attributedTo?: IActor;
|
|
|
|
publishAt?: Date;
|
2020-12-02 10:19:39 +00:00
|
|
|
insertedAt?: Date;
|
2020-07-09 15:24:28 +00:00
|
|
|
}
|