2024-09-17 08:11:35 +02:00
|
|
|
import type { Project } from './project'
|
|
|
|
|
|
|
|
export interface Rank {
|
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
references: Reference[]
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Reference {
|
|
|
|
field: keyof Project
|
2024-09-17 09:05:34 +02:00
|
|
|
label: {
|
|
|
|
name: string
|
|
|
|
positive: string
|
|
|
|
negative: string
|
|
|
|
}
|
2024-09-17 08:11:35 +02:00
|
|
|
condition: Condition
|
|
|
|
points: number
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Condition {
|
|
|
|
minLength?: number
|
|
|
|
exists?: boolean
|
|
|
|
equals?: boolean | string
|
|
|
|
}
|