게시물과 페이지 공개 상태 확장 v1.5.4

This commit is contained in:
2026-05-26 16:07:10 +09:00
parent b989193dab
commit 6333c4254f
20 changed files with 252 additions and 38 deletions

View File

@@ -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()