Implement cursor broadcasting backend

This commit is contained in:
Andras Schmelczer 2025-06-01 09:50:52 +01:00
commit eb1cc61042
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -2,9 +2,11 @@ use chrono::{DateTime, Utc};
use schemars::JsonSchema;
use serde::Serialize;
use sync_lib::bytes_to_base64;
use ts_rs::TS;
pub type VaultId = String;
pub type VaultUpdateId = i64;
pub type DocumentId = uuid::Uuid;
pub type UserId = String;
pub type DeviceId = String;
@ -25,7 +27,7 @@ impl PartialEq<Self> for StoredDocumentVersion {
fn eq(&self, other: &Self) -> bool { self.vault_update_id == other.vault_update_id }
}
#[derive(Debug, Clone, Serialize, JsonSchema)]
#[derive(TS, Debug, Clone, Serialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct DocumentVersionWithoutContent {
pub vault_update_id: VaultUpdateId,