2022-08-29 15:06:17 +00:00
|
|
|
import { JSONContent } from '@tiptap/core'
|
|
|
|
|
|
|
|
export type Post = {
|
|
|
|
id: string
|
|
|
|
title: string
|
2022-10-05 10:37:23 +00:00
|
|
|
subtitle: string
|
2022-08-29 15:06:17 +00:00
|
|
|
content: JSONContent
|
|
|
|
creatorId: string // User id
|
|
|
|
createdTime: number
|
|
|
|
slug: string
|
|
|
|
}
|
|
|
|
|
2022-09-27 22:30:07 +00:00
|
|
|
export type DateDoc = Post & {
|
|
|
|
bounty: number
|
|
|
|
birthday: number
|
|
|
|
type: 'date-doc'
|
|
|
|
contractSlug: string
|
|
|
|
}
|
|
|
|
|
2022-08-29 15:06:17 +00:00
|
|
|
export const MAX_POST_TITLE_LENGTH = 480
|
2022-10-05 10:37:23 +00:00
|
|
|
export const MAX_POST_SUBTITLE_LENGTH = 480
|