interface File {
    _id: string;
    classification: {
        [prop: string]: string[];
    };
    copy_of?: Partial<File>;
    created: string;
    deleted: string;
    file_id: string;
    hash: string;
    info?: Info;
    info_exists?: boolean;
    mimetype: string;
    modality?: string;
    modified: string;
    name: string;
    origin: FileOrigin;
    parent_ref: {
        id: string;
        type: ContainerType;
    };
    parents: {
        acquisition?: string;
        analysis?: string;
        group?: string;
        project?: string;
        session?: string;
        subject?: string;
    };
    replaced?: string;
    restored_by?: FileOrigin;
    restored_from?: number;
    size: number;
    tags: string[];
    type: string;
    version: number;
    virus_scan?: {
        state: "quarantined" | "clean" | "virus";
    };
    zip_member_count?: number;
}

Properties

_id: string
classification: {
    [prop: string]: string[];
}

Type declaration

  • [prop: string]: string[]
copy_of?: Partial<File>
created: string
deleted: string
file_id: string
hash: string
info?: Info
info_exists?: boolean
mimetype: string
modality?: string
modified: string
name: string
origin: FileOrigin
parent_ref: {
    id: string;
    type: ContainerType;
}

Type declaration

parents: {
    acquisition?: string;
    analysis?: string;
    group?: string;
    project?: string;
    session?: string;
    subject?: string;
}

Type declaration

  • Optional acquisition?: string
  • Optional analysis?: string
  • Optional group?: string
  • Optional project?: string
  • Optional session?: string
  • Optional subject?: string
replaced?: string
restored_by?: FileOrigin
restored_from?: number
size: number
tags: string[]
type: string
version: number
virus_scan?: {
    state: "quarantined" | "clean" | "virus";
}

Type declaration

  • state: "quarantined" | "clean" | "virus"
zip_member_count?: number