diff --git a/Cargo.toml b/Cargo.toml index 3e939af0..bc4a1d94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ ipnet = { version = "2", features = ["serde"] } jsonwebtoken = "9" lazy_static = "1" num-traits = "0.2" -oinq = { git = "https://github.com/petabi/oinq.git", tag = "0.9.1" } +oinq = { git = "https://github.com/petabi/oinq.git", tag = "0.9.2" } reqwest = { version = "0.11", default-features = false, features = [ "rustls-tls-native-roots", ] } diff --git a/src/graphql.rs b/src/graphql.rs index 579d4b4d..da8df652 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -40,6 +40,7 @@ pub use self::block_network::get_block_networks; pub use self::cert::ParsedCertificate; pub use self::customer::get_customer_networks; pub use self::node::{get_customer_id_of_review_host, get_node_settings}; +pub use self::semi_model::{get_semi_model_list, SemiModelInfo}; pub use self::trusted_user_agent::get_trusted_user_agent_list; use async_graphql::{ connection::{Connection, Edge, EmptyFields}, diff --git a/src/graphql/semi_model.rs b/src/graphql/semi_model.rs index a9deb264..0ef6dc18 100644 --- a/src/graphql/semi_model.rs +++ b/src/graphql/semi_model.rs @@ -117,7 +117,7 @@ struct SemiModel { } #[derive(SimpleObject, Serialize)] -struct SemiModelInfo { +pub struct SemiModelInfo { model_type: i32, model_name: String, model_version: String, @@ -164,7 +164,7 @@ impl SemiModelInfoTotalCount { /// # Errors /// /// Returns an error if semi supervised model database could not be retrieved. -fn get_semi_model_list(db: &Store) -> Result> { +pub fn get_semi_model_list(db: &Store) -> Result> { let map = db.semi_models_map(); let mut semi_model_list = vec![]; for (_, value) in map.iter_forward()? {