mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #27989 from overleaf/dp-pdf-caching-transport
Re-convert pdf-caching-transport to typescript GitOrigin-RevId: f0033afd5d46bc1da00a0d815b946225a804ca19
This commit is contained in:
@@ -1,22 +1,38 @@
|
||||
export type CompileOutputFile = {
|
||||
export type PDFRange = {
|
||||
objectId: Uint8Array
|
||||
end: number
|
||||
hash: string
|
||||
size: number
|
||||
start: number
|
||||
totalUsage: number
|
||||
}
|
||||
|
||||
type OutputFileBase = {
|
||||
path: string
|
||||
url: string
|
||||
downloadURL?: string
|
||||
type: string
|
||||
build: string
|
||||
ranges?: {
|
||||
start: number
|
||||
end: number
|
||||
hash: string
|
||||
objectId: string
|
||||
}[]
|
||||
contentId?: string
|
||||
size?: number
|
||||
downloadURL: string
|
||||
|
||||
// assigned by buildFileList in frontend
|
||||
main?: boolean
|
||||
}
|
||||
|
||||
export type PDFFile = OutputFileBase & {
|
||||
clsiCacheShard: string
|
||||
contentId: string
|
||||
createdAt: Date
|
||||
editorId: string
|
||||
pdfDownloadURL: string
|
||||
pdfURL: string
|
||||
prefetched: any[]
|
||||
preprocessed: boolean
|
||||
ranges: PDFRange[]
|
||||
size: number
|
||||
}
|
||||
|
||||
export type CompileOutputFile = OutputFileBase | PDFFile
|
||||
|
||||
export type CompileResponseData = {
|
||||
fromCache?: boolean
|
||||
status: string
|
||||
|
||||
Reference in New Issue
Block a user