Fix remaining level-types imports and create missing type files

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-05 22:14:12 +00:00
parent a4766dd2a3
commit b953043daf
10 changed files with 43 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
export interface ComponentConfig {
id: string
componentId: string
props: Record<string, unknown>
styles: Record<string, unknown>
}
export interface ComponentNode {
id: string
name: string
type: string
}
export interface ComponentHierarchy {
id: string
parentId?: string | null
childrenIds?: string[]
}

View File

@@ -0,0 +1,12 @@
export interface CssCategory {
id?: string
name: string
description?: string | null
}
export interface CssClass {
id?: string
categoryId: string
name: string
className: string
}

View File

@@ -1,4 +1,4 @@
import type { AppConfiguration } from '../../../types/level-types'
import type { AppConfiguration } from '@/lib/types/level-types'
export const buildDefaultAppConfig = (): AppConfiguration => ({
id: 'app_001',

View File

@@ -0,0 +1,6 @@
export interface DropdownConfig {
id: string
name: string
options: Array<{ label: string; value: string }>
defaultValue?: string | null
}

View File

@@ -3,7 +3,7 @@
* Retrieves the application configuration from database
*/
import type { AppConfiguration } from '../../../types/level-types'
import type { AppConfiguration } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
/**

View File

@@ -3,7 +3,7 @@
* Saves the application configuration to database
*/
import type { AppConfiguration } from '../../../types/level-types'
import type { AppConfiguration } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
/**

View File

@@ -3,7 +3,7 @@
* Adds a new comment to database
*/
import type { Comment } from '../../../types/level-types'
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
/**

View File

@@ -3,7 +3,7 @@
* Retrieves all comments from database
*/
import type { Comment } from '../../../types/level-types'
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
/**

View File

@@ -3,7 +3,7 @@
* Replaces all comments in database
*/
import type { Comment } from '../../../types/level-types'
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
/**

View File

@@ -3,7 +3,7 @@
* Updates an existing comment
*/
import type { Comment } from '../../../types/level-types'
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
type CommentUpdateData = {