superdesk/superdesk-client-core

View on GitHub
scripts/extensions/annotationsLibrary/src/interfaces.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {IBaseRestApiResponse} from 'superdesk-api';

export interface IKnowledgeBaseItemBase {
    name: string;
    labels?: Array<string>;
    language: string;
    definition_text: string;
    definition_html: string;

    // http://cv.iptc.org/newscodes/cpnature/
    cpnat_type: 'cpnat:abstract' | 'cpnat:event' | 'cpnat:geoArea'
        | 'cpnat:object' | 'cpnat:organisation' | 'cpnat:person' | 'cpnat:poi';
}

export interface IKnowledgeBaseItem extends IKnowledgeBaseItemBase, IBaseRestApiResponse {
    //
}