import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import FileContent from "./FileContent.js"; /** * The reason this class exists is, we cannot rely on Disk Cache as, * creating FileContent block is an expensive operation. * * This class provides a temporary folder for creating large operations * in a relatively smaller time as entire folder can be swapped easily. * * 1. These files will be deleted automatically within 24 hours without * polluting AppFile's primary key. * 2. These files will hold FileContent class and it will prevent it from * deletion. * 3. As opposed to AppFile, path will hold a complete named path. So there * is a size restriction. * 4. The reason root exists here as we are not going to check for any security. * In AppFile, person can have access to a folder and not root. */ export default class AppTempFile { tempFileID: number; path: string; name: string; contentType: string; isFolder: boolean; fileSize: number; rootID: number; /** For folder, fileContentID will be null */ fileContentID: number; dateCreated: DateTime; root: AppTempFile; descendants: AppTempFile[]; fileContent: FileContent; } //# sourceMappingURL=AppTempFile.d.ts.map