36 lines
644 B
TypeScript
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;
|
|
}
|