Merge pull request #19842 from overleaf/jpa-ro-mirror-on-client

[misc] add readonly mirror of full project content on the client

GitOrigin-RevId: 940bd93bfd587f83ca383d10fc44579b38fc3e88
This commit is contained in:
Jakob Ackermann
2024-08-22 08:05:13 +00:00
committed by Copybot
parent de842c61c3
commit 577497b655
46 changed files with 816 additions and 142 deletions
@@ -51,6 +51,25 @@ export type StringFileRawData = {
trackedChanges?: TrackedChangeRawData[]
}
export type RawOrigin = {
kind: string
}
export type RawChange = {
operations: RawOperation[]
timestamp: string
authors?: (number | null)[]
v2Authors: string[]
origin: RawOrigin
projectVersion: string
v2DocVersions: RawV2DocVersions
}
export type RawOperation =
| RawEditFileOperation
// TODO(das7pad): add types for all the other operations
| object
export type RawSnapshot = {
files: RawFileMap
projectVersion?: string