UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

30 lines 1 kB
/** * @module FileStorage */ import {} from "../../execution-context/contracts/_module.js"; /** * Enumeration defining the possible outcomes of write operations. * Used by copy and move operations that respect existing key constraints. * * IMPORT_PATH: `"@daiso-tech/core/file-storage/contracts"` * @group Contracts */ export const FILE_WRITE_ENUM = { /** * Operation completed successfully. * File was copied/moved and destination now contains the source content. */ SUCCESS: "SUCCESS", /** * Source file was not found. * Operation failed because source key does not exist. Destination unchanged. */ NOT_FOUND: "NOT_FOUND", /** * Destination file already exists. * Operation did not proceed because destination key exists and operation does not allow overwrite. * Use copyAndReplace or moveAndReplace to overwrite existing files. */ KEY_EXISTS: "KEY_EXISTS", }; //# sourceMappingURL=file-storage-adapter.contract.js.map