modules can be enabled for global profile also from now on
This commit is contained in:
Submodule client-gui2 updated: 4e73919b20...fb0322b75f
@@ -110,20 +110,22 @@ service TableDefinition {
|
|||||||
|
|
||||||
message ModuleScope {
|
message ModuleScope {
|
||||||
oneof target {
|
oneof target {
|
||||||
komp_ac.common.Empty global = 1;
|
komp_ac.common.Empty defaults = 1;
|
||||||
string profile_name = 2;
|
string profile_name = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A missing profile returns the defaults that would be copied on ordinary creation.
|
||||||
message GetModuleConfigurationRequest {
|
message GetModuleConfigurationRequest {
|
||||||
ModuleScope scope = 1;
|
ModuleScope scope = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Profile updates require an existing profile. Defaults affect future profiles only.
|
||||||
message SetModuleConfigurationRequest {
|
message SetModuleConfigurationRequest {
|
||||||
ModuleScope scope = 1;
|
ModuleScope scope = 1;
|
||||||
repeated string enabled_modules = 2;
|
repeated string enabled_modules = 2;
|
||||||
// Initializes an existing profile's bookkeeping currency. Empty leaves it unchanged.
|
// 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;
|
string accounting_currency = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +133,6 @@ message ModuleConfiguration {
|
|||||||
ModuleScope scope = 1;
|
ModuleScope scope = 1;
|
||||||
repeated string available_modules = 2;
|
repeated string available_modules = 2;
|
||||||
repeated string selected_modules = 3;
|
repeated string selected_modules = 3;
|
||||||
repeated string inherited_modules = 4;
|
|
||||||
repeated string effective_modules = 5;
|
repeated string effective_modules = 5;
|
||||||
string accounting_currency = 6;
|
string accounting_currency = 6;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -11,17 +11,19 @@ pub mod module_scope {
|
|||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
|
||||||
pub enum Target {
|
pub enum Target {
|
||||||
#[prost(message, tag = "1")]
|
#[prost(message, tag = "1")]
|
||||||
Global(super::super::common::Empty),
|
Defaults(super::super::common::Empty),
|
||||||
#[prost(string, tag = "2")]
|
#[prost(string, tag = "2")]
|
||||||
ProfileName(::prost::alloc::string::String),
|
ProfileName(::prost::alloc::string::String),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// A missing profile returns the defaults that would be copied on ordinary creation.
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
pub struct GetModuleConfigurationRequest {
|
pub struct GetModuleConfigurationRequest {
|
||||||
#[prost(message, optional, tag = "1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub scope: ::core::option::Option<ModuleScope>,
|
pub scope: ::core::option::Option<ModuleScope>,
|
||||||
}
|
}
|
||||||
|
/// Profile updates require an existing profile. Defaults affect future profiles only.
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
pub struct SetModuleConfigurationRequest {
|
pub struct SetModuleConfigurationRequest {
|
||||||
@@ -30,7 +32,7 @@ pub struct SetModuleConfigurationRequest {
|
|||||||
#[prost(string, repeated, tag = "2")]
|
#[prost(string, repeated, tag = "2")]
|
||||||
pub enabled_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
pub enabled_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||||
/// Initializes an existing profile's bookkeeping currency. Empty leaves it unchanged.
|
/// 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")]
|
#[prost(string, tag = "3")]
|
||||||
pub accounting_currency: ::prost::alloc::string::String,
|
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>,
|
pub available_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||||
#[prost(string, repeated, tag = "3")]
|
#[prost(string, repeated, tag = "3")]
|
||||||
pub selected_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
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")]
|
#[prost(string, repeated, tag = "5")]
|
||||||
pub effective_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
pub effective_modules: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||||
#[prost(string, tag = "6")]
|
#[prost(string, tag = "6")]
|
||||||
|
|||||||
2
server
2
server
Submodule server updated: 5bad22db53...ff9c6cbf7e
Reference in New Issue
Block a user