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 { SERVER_NAME } from '../../../common/shared.js'
import { SPACE_ALIAS, SPACE_REPOSITORY } from '../../spaces/constants/spaces.js'
export const WEBDAV_BASE_PATH = 'webdav'
export const WEBDAV_NS = {
SERVER: SERVER_NAME,
WEBDAV: WEBDAV_BASE_PATH,
PERSONAL: SPACE_ALIAS.PERSONAL,
SPACES: SPACE_ALIAS.SPACES,
SHARES: SPACE_ALIAS.SHARES,
TRASH: SPACE_ALIAS.TRASH
} as const
export const WEBDAV_SPACES: Record<(typeof WEBDAV_NS)[keyof typeof WEBDAV_NS], { route: string; spaceRepository: string[] | null }> = {
[WEBDAV_NS.SERVER]: { route: '/', spaceRepository: null },
[WEBDAV_NS.WEBDAV]: { route: `/${WEBDAV_BASE_PATH}`, spaceRepository: null },
[WEBDAV_NS.PERSONAL]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.PERSONAL}`, spaceRepository: [SPACE_REPOSITORY.FILES, SPACE_ALIAS.PERSONAL] },
[WEBDAV_NS.SPACES]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.SPACES}`, spaceRepository: [SPACE_REPOSITORY.FILES] },
[WEBDAV_NS.SHARES]: { route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.SHARES}`, spaceRepository: [SPACE_REPOSITORY.SHARES] },
[WEBDAV_NS.TRASH]: {
route: `/${WEBDAV_BASE_PATH}/${WEBDAV_NS.TRASH}`,
spaceRepository: [SPACE_REPOSITORY.TRASH]
}
}