diff --git a/frontend/sync-client/src/services/types/EventRecord.ts b/frontend/sync-client/src/services/types/EventRecord.ts index 6a1bac34..47895639 100644 --- a/frontend/sync-client/src/services/types/EventRecord.ts +++ b/frontend/sync-client/src/services/types/EventRecord.ts @@ -1,5 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { DocumentVersionWithoutContent } from "./DocumentVersionWithoutContent"; -import type { Manifest } from "./Manifest"; +import type { FileManifest } from "./FileManifest"; -export type EventRecord = { eventId: number, requestId: string, } & ({ "type": "content", document: DocumentVersionWithoutContent, } | { "type": "manifest", manifest: Manifest, }); +export type EventRecord = { eventId: number, requestId: string, } & ({ "type": "content", document: DocumentVersionWithoutContent, } | { "type": "fileManifest", fileManifest: FileManifest, }); diff --git a/frontend/sync-client/src/services/types/Manifest.ts b/frontend/sync-client/src/services/types/FileManifest.ts similarity index 55% rename from frontend/sync-client/src/services/types/Manifest.ts rename to frontend/sync-client/src/services/types/FileManifest.ts index 9572ad93..1d7ff7fc 100644 --- a/frontend/sync-client/src/services/types/Manifest.ts +++ b/frontend/sync-client/src/services/types/FileManifest.ts @@ -1,3 +1,3 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type Manifest = { manifestId: number, entries: Record, }; +export type FileManifest = { fileManifestId: number, entries: Record, }; diff --git a/frontend/sync-client/src/services/types/FileManifestUpdateResponse.ts b/frontend/sync-client/src/services/types/FileManifestUpdateResponse.ts new file mode 100644 index 00000000..4ccb541f --- /dev/null +++ b/frontend/sync-client/src/services/types/FileManifestUpdateResponse.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { FileManifest } from "./FileManifest"; + +export type FileManifestUpdateResponse = { "type": "Accepted", fileManifestId: number, } | { "type": "StaleBase" } & FileManifest; diff --git a/frontend/sync-client/src/services/types/ManifestUpdateResponse.ts b/frontend/sync-client/src/services/types/ManifestUpdateResponse.ts deleted file mode 100644 index 76ac2f7f..00000000 --- a/frontend/sync-client/src/services/types/ManifestUpdateResponse.ts +++ /dev/null @@ -1,4 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -import type { Manifest } from "./Manifest"; - -export type ManifestUpdateResponse = { "type": "Accepted" } & Manifest | { "type": "StaleBase" } & Manifest; diff --git a/frontend/sync-client/src/services/types/PushFileManifest.ts b/frontend/sync-client/src/services/types/PushFileManifest.ts new file mode 100644 index 00000000..f7db488a --- /dev/null +++ b/frontend/sync-client/src/services/types/PushFileManifest.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type PushFileManifest = { requestId: string, parentFileManifestId: number, entries: Record, }; diff --git a/frontend/sync-client/src/services/types/PushManifest.ts b/frontend/sync-client/src/services/types/PushManifest.ts deleted file mode 100644 index 743ad219..00000000 --- a/frontend/sync-client/src/services/types/PushManifest.ts +++ /dev/null @@ -1,3 +0,0 @@ -// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. - -export type PushManifest = { requestId: string, parentManifestId: number, entries: Record, }; diff --git a/frontend/sync-client/src/services/types/PushDocument.ts b/frontend/sync-client/src/services/types/PutFileContent.ts similarity index 59% rename from frontend/sync-client/src/services/types/PushDocument.ts rename to frontend/sync-client/src/services/types/PutFileContent.ts index a23b3bc4..c5a86c9b 100644 --- a/frontend/sync-client/src/services/types/PushDocument.ts +++ b/frontend/sync-client/src/services/types/PutFileContent.ts @@ -1,4 +1,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { PushContent } from "./PushContent"; -export type PushDocument = { requestId: string, parentVersionId: number | null, content: PushContent, }; +export type PutFileContent = { requestId: string, parentVersionId: number | null, content: PushContent, }; diff --git a/frontend/sync-client/src/services/types/VaultEvent.ts b/frontend/sync-client/src/services/types/VaultEvent.ts index a96d5a2d..885a608b 100644 --- a/frontend/sync-client/src/services/types/VaultEvent.ts +++ b/frontend/sync-client/src/services/types/VaultEvent.ts @@ -1,5 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { DocumentVersionWithoutContent } from "./DocumentVersionWithoutContent"; -import type { Manifest } from "./Manifest"; +import type { FileManifest } from "./FileManifest"; -export type VaultEvent = { "type": "content", document: DocumentVersionWithoutContent, } | { "type": "manifest", manifest: Manifest, }; +export type VaultEvent = { "type": "content", document: DocumentVersionWithoutContent, } | { "type": "fileManifest", fileManifest: FileManifest, }; diff --git a/frontend/sync-client/src/services/types/VaultSnapshot.ts b/frontend/sync-client/src/services/types/VaultSnapshot.ts index 95a192f9..10b2470d 100644 --- a/frontend/sync-client/src/services/types/VaultSnapshot.ts +++ b/frontend/sync-client/src/services/types/VaultSnapshot.ts @@ -1,5 +1,5 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { DocumentVersionWithoutContent } from "./DocumentVersionWithoutContent"; -import type { Manifest } from "./Manifest"; +import type { FileManifest } from "./FileManifest"; -export type VaultSnapshot = { headEventId: number, manifest: Manifest, documents: Array, }; +export type VaultSnapshot = { headEventId: number, fileManifest: FileManifest, documents: Array, };