게시물과 페이지 공개 상태 확장 v1.5.4
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export const postStatusSchema = z.enum(['published', 'draft'])
|
||||
export const postStatusSchema = z.enum(['published', 'draft', 'members', 'private'])
|
||||
export const pageStatusSchema = z.enum(['published', 'draft', 'private'])
|
||||
|
||||
export const postSchema = z.object({
|
||||
id: z.string().uuid(),
|
||||
@@ -29,6 +30,7 @@ export const pageSchema = z.object({
|
||||
slug: z.string().min(1),
|
||||
content: z.string(),
|
||||
renderMode: z.enum(['markdown', 'html_document']).default('markdown'),
|
||||
status: pageStatusSchema.default('published'),
|
||||
featuredImage: z.string().nullable().default(null),
|
||||
createdAt: z.string(),
|
||||
updatedAt: z.string()
|
||||
|
||||
Reference in New Issue
Block a user