H5P NodeJS Library
    Preparing search index...

    This is the structure of "data transfer objects" that are passed back to the JavaScript client. It is used to return a lot of information about library metadata, required files, translations etc.

    It does not exactly follow the structure library.json: it also includes other properties, which aren't present in the library.json file (they are added dynamically) and some properties are missing or named differently.

    interface ILibraryDetailedDataForClient {
        css: string[];
        defaultLanguage: string;
        javascript: string[];
        language: any;
        languages: string[];
        name: string;
        semantics: ISemanticsEntry[];
        title: string;
        translations: any;
        upgradesScript: string;
        version: { major: number; minor: number };
    }
    Index

    Properties

    css: string[]

    URLs of CSS files required for the editor.

    defaultLanguage: string

    Exact usage unknown. Can be null.

    javascript: string[]

    URLs of JavaScript files required for the editor.

    language: any

    Exact usage unknown. Can be null.

    languages: string[]

    The languages available for the content type (e.g. en, de, fr, etc.)

    name: string

    The machine name of the library. (e.g. H5P.Example)

    semantics: ISemanticsEntry[]

    The semantics object describing the structure of content of this type.

    title: string

    The human-readable title of the library.

    translations: any

    Used translation strings for the various libraries.

    upgradesScript: string

    The URL of the JavaScript file that performs content upgrades. Can be null.

    version: { major: number; minor: number }

    The version of the library.