fix: resolve TypeScript errors in migrated components
This commit is contained in:
@@ -14,6 +14,7 @@ import type {
|
||||
EntityType,
|
||||
EntryStatus,
|
||||
Visibility,
|
||||
FormalityLevel,
|
||||
} from "./enums";
|
||||
|
||||
/**
|
||||
@@ -209,3 +210,18 @@ export interface DomainWithCounts extends Domain {
|
||||
ideas: number;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Personality entity
|
||||
* Note: This type exists for the frontend but requires database schema migration
|
||||
*/
|
||||
export interface Personality extends BaseEntity {
|
||||
workspaceId: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
tone: string;
|
||||
formalityLevel: FormalityLevel;
|
||||
systemPromptTemplate: string;
|
||||
isDefault: boolean;
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
@@ -66,3 +66,11 @@ export enum Visibility {
|
||||
WORKSPACE = "WORKSPACE",
|
||||
PUBLIC = "PUBLIC",
|
||||
}
|
||||
|
||||
export enum FormalityLevel {
|
||||
VERY_CASUAL = "VERY_CASUAL",
|
||||
CASUAL = "CASUAL",
|
||||
NEUTRAL = "NEUTRAL",
|
||||
FORMAL = "FORMAL",
|
||||
VERY_FORMAL = "VERY_FORMAL",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user