Files
sam-sales/prt/ref/types.ts
2025-12-22 21:35:17 +09:00

36 lines
644 B
TypeScript

export interface PromptVersion {
id: string;
promptId: string;
content: string;
versionNumber: number;
changeSummary: string;
createdAt: string;
}
export interface Prompt {
id: string;
categoryId: string;
name: string;
description: string;
tags: string[];
currentVersionId: string;
createdAt: string;
updatedAt: string;
}
export interface Category {
id: string;
name: string;
parentId: string | null;
children?: Category[];
}
export interface AppState {
categories: Category[];
prompts: Prompt[];
versions: PromptVersion[];
selectedCategoryId: string | null;
selectedPromptId: string | null;
}