Add path change to server
This commit is contained in:
parent
9183f30b5d
commit
dca59a18dc
1 changed files with 225 additions and 29 deletions
|
|
@ -3,7 +3,8 @@ use serde::{self, Serialize};
|
|||
use ts_rs::TS;
|
||||
|
||||
use crate::app_state::database::models::{
|
||||
DocumentVersion, DocumentVersionWithoutContent, VaultUpdateId,
|
||||
DocumentUpdateMergedContent, DocumentUpdateMetadata, DocumentVersionWithoutContent,
|
||||
VaultUpdateId,
|
||||
};
|
||||
|
||||
/// Response to a ping request.
|
||||
|
|
@ -66,7 +67,7 @@ pub struct ListVaultsResponse {
|
|||
pub user_name: String,
|
||||
}
|
||||
|
||||
/// Response to an update document request.
|
||||
/// Response to a create/update document request.
|
||||
#[derive(TS, Debug, Clone, Serialize)]
|
||||
#[serde(tag = "type")]
|
||||
#[ts(export)]
|
||||
|
|
@ -74,9 +75,9 @@ pub enum DocumentUpdateResponse {
|
|||
/// Returned when the created/updated document's content is the same as was
|
||||
/// sent in the create/update request and thus the response doesn't contain
|
||||
/// the content because the client must already have it.
|
||||
FastForwardUpdate(DocumentVersionWithoutContent),
|
||||
FastForwardUpdate(DocumentUpdateMetadata),
|
||||
|
||||
/// Returned when the created/updated document's content is different from
|
||||
/// what was sent in the create/update request.
|
||||
MergingUpdate(DocumentVersion),
|
||||
MergingUpdate(DocumentUpdateMergedContent),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue