/* eslint-disable camelcase */ import { Expose, Type } from "class-transformer"; // to allow incoming data value export class Dimension { @Type(() => Number) @Expose() height!: number; @Type(() => Number) @Expose() width!: number; constructor() { this.height = 0; this.width = 0; } } export class DamsItem { @Expose() id!: number; @Expose() key!: string; @Expose() url!: string; @Expose() name!: string; @Expose() type: "FOLDER" | "FILE"; @Expose() category!: string; @Expose() file_name!: string; @Expose() mime_type!: string; @Expose() file_type!: "" | "IMAGE" | "VIDEO" | "PDF" | "AUDIO"; @Expose() path!: string; @Expose() show?: true | false; @Type(() => Number) @Expose() file_size!: number; @Expose() file_dimension!: Dimension; @Type(() => Number) @Expose() parent_folder_id!: number; @Expose() folder_id!: number; @Type(() => Number) @Expose() is_sub_folder!: number; @Expose() sub_folder!: DamsItem[]; @Expose() last_updated_time!: string; @Expose() asset_id?: number | null; @Expose() imageLoaded!: boolean; constructor() { this.id = 0; this.key = ""; this.url = ""; this.name = ""; this.type = "FOLDER"; this.category = ""; this.file_name = ""; this.mime_type = ""; this.file_type = "IMAGE"; this.path = ""; this.show = false; this.file_size = 0; this.file_dimension = { height: 0, width: 0, }; this.parent_folder_id = 0; this.folder_id = 0; this.is_sub_folder = 0; this.sub_folder = []; this.last_updated_time = ""; this.asset_id = null; this.imageLoaded = false; } } export class BreadcrumbItem { @Expose() id!: number; @Expose() name!: string; constructor() { this.id = 0; this.name = ""; } }