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 { FILE_REPOSITORY } from '@sync-in-server/backend/src/applications/files/constants/operations'
import type { FileRecent } from '@sync-in-server/backend/src/applications/files/schemas/file-recent.interface'
import { SPACE_ALIAS } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import { FileLocationModel } from './file-location.model'
export class FileRecentModel extends FileLocationModel implements FileRecent {
ownerId: number
shareId: number
spaceId: number
constructor(props: Partial<FileRecent>) {
super(props, props.shareId ? FILE_REPOSITORY.SHARE : props.spaceId ? FILE_REPOSITORY.SPACE : SPACE_ALIAS.PERSONAL)
}
}