accounts via id also, not just real account

This commit is contained in:
Priec
2026-09-15 13:02:26 +02:00
parent 891bcaa11d
commit 651f488312
8 changed files with 40 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ message ImportFieldDescriptor {
string generated_from = 11;
optional ImportLinkDescriptor link = 12;
repeated ImportValueKind accepted_value_kinds = 13;
bool account_reference = 14;
}
message GetTableImportDescriptorResponse {

View File

@@ -203,6 +203,11 @@ message StageTableDataImportRequest {
int64 expected_table_revision = 4;
}
enum ImportAccountMatch {
IMPORT_ACCOUNT_MATCH_PATH = 0;
IMPORT_ACCOUNT_MATCH_ID = 1;
}
message TableDataImportRow {
// Required. Data payload for one staged row.
map<string, google.protobuf.Value> data = 1;
@@ -210,6 +215,7 @@ message TableDataImportRow {
// row display value, including text made only of digits. Unlisted columns
// retain the normal table-write link semantics.
repeated string link_display_columns = 2;
ImportAccountMatch account_match = 3;
}
message StageTableDataImportResponse {

Binary file not shown.

View File

@@ -131,6 +131,8 @@ pub struct ImportFieldDescriptor {
pub link: ::core::option::Option<ImportLinkDescriptor>,
#[prost(enumeration = "ImportValueKind", repeated, tag = "13")]
pub accepted_value_kinds: ::prost::alloc::vec::Vec<i32>,
#[prost(bool, tag = "14")]
pub account_reference: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]

View File

@@ -113,6 +113,8 @@ pub struct TableDataImportRow {
/// retain the normal table-write link semantics.
#[prost(string, repeated, tag = "2")]
pub link_display_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ImportAccountMatch", tag = "3")]
pub account_match: i32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StageTableDataImportResponse {
@@ -494,6 +496,32 @@ pub struct GetTableDataByPositionRequest {
#[prost(enumeration = "RowNavigationMode", tag = "5")]
pub navigation_mode: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ImportAccountMatch {
Path = 0,
Id = 1,
}
impl ImportAccountMatch {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Path => "IMPORT_ACCOUNT_MATCH_PATH",
Self::Id => "IMPORT_ACCOUNT_MATCH_ID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IMPORT_ACCOUNT_MATCH_PATH" => Some(Self::Path),
"IMPORT_ACCOUNT_MATCH_ID" => Some(Self::Id),
_ => None,
}
}
}
/// A link resolved exactly as the source row stored it, together with the
/// target row's current state. The physical companion version column remains
/// an internal implementation detail.