Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263// API response types for reuse across the application
// Template typesexport interface Template { id: string; name: string; description: string; createdAt: string; fieldCount: number;}
export interface TemplateField { id: string; name: string; description: string; definitionType: string; definition: any; required: boolean;}
export interface TemplateDetail extends Omit<Template, 'fieldCount'> { fields: TemplateField[]; curatorId: string;}
// Annotation typesexport interface Annotation { id: string; url: string; fieldName: string; valueType: string; valuePreview: string; createdAt: string; templateName?: string;}
export interface AnnotationDetail { id: string; url: string; fieldName: string; fieldDescription: string; valueType: string; valueData: any; valuePreview: string; note?: string; createdAt: string; curatorId: string; templateName?: string; publishedRecordId?: { uri: string; cid: string; };}
// API response typesexport interface CreateTemplateResponse { templateId: string;}
export interface CreateAnnotationsResponse { annotationIds: string[];}