/** * BIMData API * BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. * * The version of the OpenAPI document: v1 (v1) * Contact: support@bimdata.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Tag } from './Tag'; import { User } from './User'; import { Visa } from './Visa'; /** * * @export * @interface Document */ export interface Document { /** * * @type {number} * @memberof Document */ readonly id: number; /** * * @type {number} * @memberof Document */ parent_id?: number | null; /** * * @type {User} * @memberof Document */ readonly created_by: User | null; /** * * @type {number} * @memberof Document */ readonly project: number; /** * Shown name of the file * @type {string} * @memberof Document */ name: string; /** * Full name of the file * @type {string} * @memberof Document */ file_name?: string; /** * Description of the file * @type {string} * @memberof Document */ description?: string | null; /** * URL to access the document file * @type {string} * @memberof Document */ readonly file: string; /** * Lower case file extension * @type {string} * @memberof Document */ readonly file_type: string | null; /** * Size of the file. * @type {number} * @memberof Document */ readonly size: number | null; /** * * @type {Array} * @memberof Document */ readonly tags: Array; /** * * @type {Array} * @memberof Document */ readonly visas: Array; /** * Creation date * @type {Date} * @memberof Document */ readonly created_at: Date; /** * Date of the last update * @type {Date} * @memberof Document */ readonly updated_at: Date; /** * * @type {number} * @memberof Document */ readonly model_id: number | null; /** * Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD, PHOTOSPHERE * @type {string} * @memberof Document */ readonly model_type: DocumentModelTypeEnum; /** * DEPRECATED: Use 'model_id' instead. * @type {number} * @memberof Document */ readonly ifc_id: number | null; /** * Document id of head version * @type {number} * @memberof Document */ readonly head_id: number | null; /** * Document is a head of version or is owned by another document * @type {boolean} * @memberof Document */ readonly is_head_version: boolean; /** * Number of previous versions * @type {number} * @memberof Document */ readonly history_count: number | null; /** * Aggregate of group user permissions and folder default permission * @type {number} * @memberof Document */ readonly user_permission: DocumentUserPermissionEnum; /** * Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt * @type {string} * @memberof Document */ readonly office_preview: string | null; /** * * @type {string} * @memberof Document */ readonly path: string; } /** * @export * @enum {string} */ export declare enum DocumentModelTypeEnum { Ifc = "IFC", Dwg = "DWG", Dxf = "DXF", Gltf = "GLTF", Pdf = "PDF", Jpeg = "JPEG", Png = "PNG", Obj = "OBJ", PointCloud = "POINT_CLOUD", Photosphere = "PHOTOSPHERE", Null = "null" } /** * @export * @enum {string} */ export declare enum DocumentUserPermissionEnum { NUMBER_1 = 1, NUMBER_50 = 50, NUMBER_100 = 100 } export declare function DocumentFromJSON(json: any): Document; export declare function DocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Document; export declare function DocumentToJSON(value?: Document | null): any;