feat(ADM-018): completed feature

This commit is contained in:
chattie
2026-08-17 22:23:10 +02:00
parent cf1c69fc8b
commit d595b4871f
871 changed files with 47411 additions and 281 deletions

View File

@@ -0,0 +1,10 @@
import type { CreatePageInput, Page, UpdatePageInput } from './page.js';
export interface CmsRepository {
create(input: CreatePageInput): Promise<Page | undefined>;
update(id: string, patch: UpdatePageInput): Promise<Page | undefined>;
setStatus(id: string, status: 'draft' | 'published'): Promise<Page | undefined>;
findBySlug(slug: string): Promise<Page | undefined>;
findById(id: string): Promise<Page | undefined>;
listAll(): Promise<Page[]>;
}