modules can be enabled for global profile also from now on
This commit is contained in:
Binary file not shown.
@@ -11,17 +11,19 @@ pub mod module_scope {
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
|
||||
pub enum Target {
|
||||
#[prost(message, tag = "1")]
|
||||
Global(super::super::common::Empty),
|
||||
Defaults(super::super::common::Empty),
|
||||
#[prost(string, tag = "2")]
|
||||
ProfileName(::prost::alloc::string::String),
|
||||
}
|
||||
}
|
||||
/// A missing profile returns the defaults that would be copied on ordinary creation.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct GetModuleConfigurationRequest {
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub scope: ::core::option::Option<ModuleScope>,
|
||||
}
|
||||
/// Profile updates require an existing profile. Defaults affect future profiles only.
|
||||
#[derive(serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||
pub struct SetModuleConfigurationRequest {
|
||||
@@ -30,7 +32,7 @@ pub struct SetModuleConfigurationRequest {
|
||||
#[prost(string, repeated, tag = "2")]
|
||||
pub enabled_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
/// Initializes an existing profile's bookkeeping currency. Empty leaves it unchanged.
|
||||
/// Global scope and changes to an already configured currency are rejected.
|
||||
/// Defaults scope and changes to an already configured currency are rejected.
|
||||
#[prost(string, tag = "3")]
|
||||
pub accounting_currency: ::prost::alloc::string::String,
|
||||
}
|
||||
@@ -43,8 +45,6 @@ pub struct ModuleConfiguration {
|
||||
pub available_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
#[prost(string, repeated, tag = "3")]
|
||||
pub selected_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
#[prost(string, repeated, tag = "4")]
|
||||
pub inherited_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
#[prost(string, repeated, tag = "5")]
|
||||
pub effective_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||
#[prost(string, tag = "6")]
|
||||
|
||||
Reference in New Issue
Block a user