#[cfg(feature = "private")] #[allow(unused)] pub use crate::users_ee::*; #[cfg(not(feature = "private"))] use std::sync::Arc; #[cfg(not(feature = "private"))] use crate::db::ApiAuthed; #[cfg(not(feature = "private"))] use crate::users::{EditPassword, NewUser}; #[cfg(not(feature = "private"))] use crate::{db::DB, webhook_util::WebhookShared}; #[cfg(not(feature = "private"))] use argon2::Argon2; #[cfg(not(feature = "private"))] use axum::{extract::Extension, Json}; #[cfg(not(feature = "private"))] use http::StatusCode; #[cfg(not(feature = "private"))] use serde::Deserialize; #[cfg(not(feature = "private"))] use windmill_common::error::{Error, Result}; #[cfg(not(feature = "private"))] pub async fn create_user( _authed: ApiAuthed, _db: DB, _webhook: WebhookShared, _argon2: Arc>, mut _nu: NewUser, ) -> Result<(StatusCode, String)> { Err(Error::internal_err( "Not implemented in Windmill's Open Source repository".to_string(), )) } #[cfg(not(feature = "private"))] pub async fn set_password( _db: DB, _argon2: Arc>, _authed: ApiAuthed, _user_email: &str, _ep: EditPassword, ) -> Result { Err(Error::internal_err( "Not implemented in Windmill's Open Source repository".to_string(), )) } #[cfg(not(feature = "private"))] pub fn hash_password(_argon2: Arc>, _password: String) -> Result { Err(Error::internal_err( "Not implemented in Windmill's Open Source repository".to_string(), )) } #[cfg(not(feature = "private"))] #[derive(Deserialize, Debug)] #[allow(dead_code)] pub struct OnboardingData { pub touch_point: String, pub use_case: String, } #[cfg(not(feature = "private"))] pub async fn submit_onboarding_data( _authed: ApiAuthed, Extension(_db): Extension, Json(_data): Json, ) -> Result { Err(Error::internal_err( "Not implemented in Windmill's Open Source repository".to_string(), )) }