* app compiles with every ee substituted
* Replace all oss files content
* Revert "Replace all oss files content"
This reverts commit ea4017d59f.
* delete all ee
* hide all _ee files under private flag
* hide every oss stuff when private flag set
* pub use *
* gitignore and substitute script
* pub mod for ee needed for ee repo
* small mistakes
* remove oidc_oss impl
* ee ref (temp)
* ee ref
* fix --all-features selecting private in OSS CI
* ee repo ref
* allow unused
51 lines
1.4 KiB
Rust
51 lines
1.4 KiB
Rust
#[cfg(feature = "private")]
|
|
#[allow(unused)]
|
|
pub use crate::teams_ee::*;
|
|
|
|
#[cfg(all(feature = "enterprise", not(feature = "private")))]
|
|
use axum::Router;
|
|
#[cfg(not(feature = "private"))]
|
|
use http::status::StatusCode;
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_common::error::Error;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn edit_teams_command() -> Result<StatusCode, Error> {
|
|
return Err(Error::BadRequest(
|
|
"Teams only available on enterprise".to_string(),
|
|
));
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn workspaces_list_available_teams_ids() -> Result<StatusCode, Error> {
|
|
return Err(Error::BadRequest(
|
|
"Teams only available on enterprise".to_string(),
|
|
));
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn connect_teams() -> Result<StatusCode, Error> {
|
|
return Err(Error::BadRequest(
|
|
"Teams only available on enterprise".to_string(),
|
|
));
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn run_teams_message_test_job() -> Result<StatusCode, Error> {
|
|
return Err(Error::BadRequest(
|
|
"Teams only available on enterprise".to_string(),
|
|
));
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn workspaces_list_available_teams_channels() -> Result<StatusCode, Error> {
|
|
return Err(Error::BadRequest(
|
|
"Teams only available on enterprise".to_string(),
|
|
));
|
|
}
|
|
|
|
#[cfg(all(feature = "enterprise", not(feature = "private")))]
|
|
pub fn teams_service() -> Router {
|
|
Router::new()
|
|
}
|