compile.ts 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export type CompileOutputFile = {
  2. path: string
  3. url: string
  4. downloadURL?: string
  5. type: string
  6. build: string
  7. ranges?: {
  8. start: number
  9. end: number
  10. hash: string
  11. objectId: string
  12. }[]
  13. contentId?: string
  14. size?: number
  15. // assigned by buildFileList in frontend
  16. main?: boolean
  17. }
  18. export type CompileResponseData = {
  19. fromCache?: boolean
  20. status: string
  21. outputFiles: CompileOutputFile[]
  22. compileGroup?: string
  23. clsiServerId?: string
  24. clsiCacheShard?: string
  25. pdfDownloadDomain?: string
  26. pdfCachingMinChunkSize: number
  27. validationProblems: any
  28. stats: any
  29. timings: any
  30. outputFilesArchive?: CompileOutputFile
  31. // assigned on response body by DocumentCompiler in frontend
  32. rootDocId?: string | null
  33. options: CompileOptions
  34. }
  35. export type CompileOptions = {
  36. draft?: boolean
  37. stopOnFirstError?: boolean
  38. isAutoCompileOnLoad?: boolean
  39. isAutoCompileOnChange?: boolean
  40. rootResourcePath?: string
  41. imageName?: string
  42. compiler?: string
  43. }