@publish-cms/type
Version:
Publish CMS Core Type
39 lines (38 loc) • 863 B
TypeScript
import { ICategory } from '../category';
import { IFollowAlong } from '../followalong';
import { IPost } from '../post';
import { IUser } from '../user';
export declare class ILink {
id?: string;
slug?: string;
title?: string;
detail?: string;
type?: number;
shortLink?: string;
targetUrl?: string;
statusCode?: number;
views?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
category?: ICategory;
followAlong?: IFollowAlong;
linkMeta?: ILinkMeta;
post?: IPost;
author?: IUser;
}
export declare class ILinkMeta {
id?: string;
key?: string;
value?: string;
createdAt?: Date | string;
updatedAt?: Date | string;
link?: ILink;
}
export declare enum ELinkType {
NULL = 0,
POST = 1,
CATEGORY = 2,
AUTHOR = 3,
SHORTLINK = 4,
FOLLOWALONG = 5
}