Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
import { SPACE_ALIAS } from '../../spaces/constants/spaces.js'
import { FILE_REPOSITORY } from '../constants/operations.js'
import type { FileProps } from '../interfaces/file-props.interface.js'
export type FileFavoriteRepository = SPACE_ALIAS.PERSONAL | FILE_REPOSITORY.SPACE | FILE_REPOSITORY.SHARE
export interface FileFavorite extends FileProps {
fileId: number
createdAt: Date
isDisabled: boolean
// `path` contains the logical parent location when the file remains accessible.
repository?: FileFavoriteRepository
displayRootName?: string
}
export interface FileFavoriteLocation {
fileId: number
repository: FileFavoriteRepository
path: string
name: string
displayRootName?: string
contextId: number
rootId: number
}
export type FileFavoriteIdentity = Pick<FileFavorite, 'fileId'>