Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162import { AnnotationValueType } from './annotationValues';
// Field Definitionsexport interface FieldDefinition { // Common properties for all field types type: string; required?: boolean;}
export interface DyadDefinition extends FieldDefinition { type: 'dyad'; sideA: string; sideB: string;}
export interface TriadDefinition extends FieldDefinition { type: 'triad'; vertexA: string; vertexB: string; vertexC: string;}
export interface RatingDefinition extends FieldDefinition { type: 'rating'; numberOfStars: number;}
export interface SingleSelectDefinition extends FieldDefinition { type: 'singleSelect'; options: string[];}
export interface MultiSelectDefinition extends FieldDefinition { type: 'multiSelect'; options: string[];}
export type AnnotationFieldDefinition = | DyadDefinition | TriadDefinition | RatingDefinition | SingleSelectDefinition | MultiSelectDefinition;
// Template Fieldexport interface TemplateField { id: string; name: string; description: string; definition: AnnotationFieldDefinition; required: boolean;}
// Templateexport interface Template { id?: string; name: string; description: string; fields: TemplateField[]; createdAt?: Date;}