fix: resolve TypeScript errors in migrated components

This commit is contained in:
Jason Woltje
2026-01-29 22:00:14 -06:00
parent d54714ea06
commit abbf886483
36 changed files with 758 additions and 43 deletions

View File

@@ -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;
}

View File

@@ -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",
}