use crate::folder_builder::ParentChildViews; use std::collections::HashMap; pub enum ImportData { AppFlowyDataFolder { items: Vec }, } pub enum AppFlowyData { Folder { views: Vec, /// Used to update the [DatabaseViewTrackerList] when importing the database. database_view_ids_by_database_id: HashMap>, }, CollabObject { row_object_ids: Vec, document_object_ids: Vec, database_object_ids: Vec, }, } pub struct ImportViews { pub views: Vec, /// Used to update the [DatabaseViewTrackerList] when importing the database. pub database_view_ids_by_database_id: HashMap>, } pub struct SearchData { /// The type of data that is stored in the search index row. pub index_type: String, /// The `View` that the row references. pub view_id: String, /// The ID that corresponds to the type that is stored. /// View: view_id /// Document: page_id pub id: String, /// The data that is stored in the search index row. pub data: String, }