Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

609 B
Raw Blame
import type { FILE_REPOSITORY } from '../constants/operations.js'

export interface FileParseContext {
  realPath: string
  pathPrefix: string
  isDir: boolean
}

export interface FileParseContentPath {
  id: number
  type: FILE_REPOSITORY
  paths: FileParseContext[]
}

export interface FileContentIndexContext {
  indexName: string
  pathPrefix: string
  regexBasePath?: RegExp
}

export interface FileParseTrashRetentionPath {
  id: number
  type: FILE_REPOSITORY
  realPath: string
  retentionDays: number
}

export interface FileTrashRetentionIndexContext {
  tableName: string
  regexBasePath: RegExp
}