first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
@@ -0,0 +1,24 @@
use warp_graphql::queries::get_updated_cloud_objects::UpdatedObjectInput;
use super::RevisionAndLastEditor;
/// Result of attempting to update a cloud object.
#[derive(Debug)]
pub enum UpdateCloudObjectResult<T> {
/// The update was successful and the object now has the specified revision.
Success {
revision_and_editor: RevisionAndLastEditor,
},
/// The update was rejected because the update was not sent from the current revision in
/// storage. The object and revision in storage are returned.
Rejected { object: T },
}
/// Helper struct that contains all the info needed to fetch changed objects from the server.
#[derive(Default, Clone)]
pub struct ObjectsToUpdate {
pub notebooks: Vec<UpdatedObjectInput>,
pub workflows: Vec<UpdatedObjectInput>,
pub folders: Vec<UpdatedObjectInput>,
pub generic_string_objects: Vec<UpdatedObjectInput>,
}