modules can be enabled for global profile also from now on
This commit is contained in:
@@ -110,20 +110,22 @@ service TableDefinition {
|
||||
|
||||
message ModuleScope {
|
||||
oneof target {
|
||||
komp_ac.common.Empty global = 1;
|
||||
komp_ac.common.Empty defaults = 1;
|
||||
string profile_name = 2;
|
||||
}
|
||||
}
|
||||
|
||||
// A missing profile returns the defaults that would be copied on ordinary creation.
|
||||
message GetModuleConfigurationRequest {
|
||||
ModuleScope scope = 1;
|
||||
}
|
||||
|
||||
// Profile updates require an existing profile. Defaults affect future profiles only.
|
||||
message SetModuleConfigurationRequest {
|
||||
ModuleScope scope = 1;
|
||||
repeated string enabled_modules = 2;
|
||||
// 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.
|
||||
string accounting_currency = 3;
|
||||
}
|
||||
|
||||
@@ -131,7 +133,6 @@ message ModuleConfiguration {
|
||||
ModuleScope scope = 1;
|
||||
repeated string available_modules = 2;
|
||||
repeated string selected_modules = 3;
|
||||
repeated string inherited_modules = 4;
|
||||
repeated string effective_modules = 5;
|
||||
string accounting_currency = 6;
|
||||
}
|
||||
|
||||
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