Serialize Rust types to TS

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

View file

@ -30,13 +30,17 @@ impl PartialEq<Self> for StoredDocumentVersion {
#[derive(TS, Debug, Clone, Serialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct DocumentVersionWithoutContent {
#[ts(as = "i32")]
pub vault_update_id: VaultUpdateId,
pub document_id: DocumentId,
pub relative_path: String,
pub updated_date: DateTime<Utc>,
pub is_deleted: bool,
pub user_id: UserId,
pub device_id: DeviceId,
#[ts(as = "i32")]
pub content_size: u64,
}