phonenumber api adjustement

This commit is contained in:
Priec
2026-07-19 01:28:14 +02:00
parent 180d2d39de
commit 9ad25ada7d
8 changed files with 52 additions and 3 deletions

View File

@@ -246,6 +246,19 @@ message TableDetail {
repeated ScriptInfo scripts = 4;
string base_currency = 5;
string row_display_column = 6;
map<string, ColumnBehavior> column_behaviors = 7;
}
// Server-owned behavior for one logical column returned in table details.
message ColumnBehavior {
// True when the server created the column as a companion of another column.
bool generated = 1;
// True when clients must display but never submit edits for the column.
bool read_only = 2;
// Logical source column name, empty for ordinary user-defined columns.
string generated_from = 3;
}
// A script that targets a specific column in a table.

View File

@@ -75,4 +75,13 @@ message TableColumn {
// True for a user-defined column whose logic should be recomputed whenever
// one of its dependencies changes. False for system and foreign-key columns.
bool recompute_on_dependency_change = 5;
// True when the server created this as a companion of another logical column.
bool generated = 6;
// True when clients must not submit edits for this column.
bool read_only = 7;
// Logical source column name, empty for ordinary and system columns.
string generated_from = 8;
}

Binary file not shown.

View File

@@ -247,6 +247,24 @@ pub struct TableDetail {
pub base_currency: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub row_display_column: ::prost::alloc::string::String,
#[prost(map = "string, message", tag = "7")]
pub column_behaviors: ::std::collections::HashMap<
::prost::alloc::string::String,
ColumnBehavior,
>,
}
/// Server-owned behavior for one logical column returned in table details.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ColumnBehavior {
/// True when the server created the column as a companion of another column.
#[prost(bool, tag = "1")]
pub generated: bool,
/// True when clients must display but never submit edits for the column.
#[prost(bool, tag = "2")]
pub read_only: bool,
/// Logical source column name, empty for ordinary user-defined columns.
#[prost(string, tag = "3")]
pub generated_from: ::prost::alloc::string::String,
}
/// A script that targets a specific column in a table.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]

View File

@@ -58,6 +58,15 @@ pub struct TableColumn {
/// one of its dependencies changes. False for system and foreign-key columns.
#[prost(bool, tag = "5")]
pub recompute_on_dependency_change: bool,
/// True when the server created this as a companion of another logical column.
#[prost(bool, tag = "6")]
pub generated: bool,
/// True when clients must not submit edits for this column.
#[prost(bool, tag = "7")]
pub read_only: bool,
/// Logical source column name, empty for ordinary and system columns.
#[prost(string, tag = "8")]
pub generated_from: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod table_structure_service_client {