From 9ad25ada7da3102a34e7d211c44ad7f05c7ff6e9 Mon Sep 17 00:00:00 2001 From: Priec Date: Sun, 19 Jul 2026 01:28:14 +0200 Subject: [PATCH] phonenumber api adjustement --- Cargo.toml | 2 +- client | 2 +- common/proto/table_definition.proto | 13 +++++++++++++ common/proto/table_structure.proto | 9 +++++++++ common/src/proto/descriptor.bin | Bin 115108 -> 116470 bytes common/src/proto/komp_ac.table_definition.rs | 18 ++++++++++++++++++ common/src/proto/komp_ac.table_structure.rs | 9 +++++++++ server | 2 +- 8 files changed, 52 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cb49e32..fb5d99d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "3" [workspace.package] # TODO: idk how to do the name, fix later # name = "komp_ac" -version = "0.8.27" +version = "0.8.29" edition = "2024" license = "GPL-3.0-or-later" authors = ["Filip Priečinský "] diff --git a/client b/client index f3b1f0c..25de354 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit f3b1f0c8026f96a90cfa08761d65601ed3026ddb +Subproject commit 25de3543713170e4d847d8487d244feacd68c5cc diff --git a/common/proto/table_definition.proto b/common/proto/table_definition.proto index 2e72c74..dbb3551 100644 --- a/common/proto/table_definition.proto +++ b/common/proto/table_definition.proto @@ -246,6 +246,19 @@ message TableDetail { repeated ScriptInfo scripts = 4; string base_currency = 5; string row_display_column = 6; + map 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. diff --git a/common/proto/table_structure.proto b/common/proto/table_structure.proto index d4a4d84..8def2fc 100644 --- a/common/proto/table_structure.proto +++ b/common/proto/table_structure.proto @@ -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; } diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index a64141188d04f3697ab5c8aa925390be571e3ad5..d379a7f2c69d56509f8da2ce313ece40af714c4f 100644 GIT binary patch delta 2433 zcmb7FU2GIp7~T8Lbav-Lcek@`S++$lkR}+VDqutiNCY8@N?a+ZFU@Rs3Y+ZCG_$+K zCMGMPCj8Y13pV^D*u)x070@*_KKaIj54@O|_#zPzQ@)FL*uMyOU`;Nho^_Ua=qdX7M%U|Xvy=d*|^YF zEn2go`NikC=4;pDn`(Bc+`l#GdOCL=t)GpVZ zEC~kfRZ_dLurnWaY@qdQh0l`+08M`qzZk9M?YvE*5H3@Y$?7Bh3ThHQy@v1Qq$e%oE{nZSEccRl!|_KQf3l7Y}W(D zk1SwLJ8!f}?Y2PN2p$j+lkc&3T0uPTJ(lU@1A!3~4-$;*xX;K?x#YODs;JbfHBl^8 zN6Pk?DAa4hb&!at)(e$VO*q98dSo8bc<8bbxR53oOh8zfV8NU@6AUH}5=`t4Opv9I z6ZPh{i&vspt6tq7QmVqWE6x+bsf^Ud!UOP&CD-=HL>+mpE;_>{c}B4CJiZT^xIFkI z5j;RQp&&erlet7eco?T#58sM|Pg%xciha;r`P1e`3VnwuVR88~rQ}f^A?glTK+pt? zD~R4Bl;}_pnn$R!E25%!l&B{v%18i1J1LTp93@i;%SevW(i{)o;S?d0V?-k2%0~fI zTmttPnM#?!Jw}f_8jS@yPShDuHBbQ+RRi@nnJHBbnypMk)h&I~1kuu{s)GxtxH`BK zWGZDH+zDEea1?4#!STiY9H^qruD2t?B|!IMO}Koba>fT1QJdQXzsrK-?8 zN!g_l6~!h|HY&;l0Topy*d#Nfs-QNhdr6pJS|)gkDE#b!zy(xXncyihm9k9m6!r8* zV}VZ3Q)PmHiYgO4Jx|qwW>B9)3LTblhA4KvdF$tOjSe)Pp~Uh)v_r;lmMC-!1W~~7 z0|7+uS&AovX90xhS?UPi!47Hm9KO=1C}RK&{h%0B&F}*U1ofQ!wia!HAI6i)~3iQ_bIRZ&`;+C{8IwKr~LNGXaF+lsuDh77$ULZWexd4@7BY zdY&k)Osf+?6~t+IBK>fZv5ZR;yVC5w^H?T>zDtzo;cr4PBc04N^LKWy#U%u1R4jmK zoKdj=LU2aLvN7PHc)9t*ooD+pfsxC~2%s!clnEesms`*L`rUf{bRX}UJh75>%`O-0 zH%6b)=(GkfE4 z_J`i!Z{v|PyrtSM{ElC}?|1yby->nB_|J{7a5>?BxETLKXb0kkLJXtuM-FR^HVqJO z&5po^VQG2T*l?eX1zQ2D=Rtb_uEIqyH`Bn(Jl^tfih-H=xtRt=<}vbhjBIEWx3mE) zfo=bH3D|B?RL80{rxFd98z7t)$MgYwC=tT+0sQ|Xgy{pho`Nyrdo^$N`cv%35B~wU CwB6kR delta 1119 zcmYL{O=}ZT6o%)V+)QR}H6J%^nx=lVNGfi0VW~<{1jUVXqk@9|h3<7Bi8O6$Y1-Ne zB!wDi5iD+$rVtSP14Tq|>%xT}ZFg=&?3eGIxtH$p7?GHd(+eb8lYWMuREkR@iwS{j63t=V*nZPI$h}}u{ zd+ZdMlbr7}Duz?cc{9`v0?nyGFOXkFc4m3^D68?18w z3G-Oc^pUC?1X@)$IDMqX!eyve&_Y_dv&_zX@aWfYDUHQh_6Ebyw63AX99;`SD9{bh z17f$viKIn@);JS=gK2&29COqW2r4kT2N+KMv{ChkG{@O)*>xQUWt6+f&Qeg=8qH_0 zxX4~X-o%HU(f8ExS_&hL7b(gG6I;b${E2M*8)XBb)a}~=BD=2NPKCkitujP? zRP#vGM>W~J8%!ZK^}9Kbo0M{w*;x%1w$Ei1_LkY}mk$uA^i8ec, +} +/// 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)] diff --git a/common/src/proto/komp_ac.table_structure.rs b/common/src/proto/komp_ac.table_structure.rs index 41cdcbb..17af7c3 100644 --- a/common/src/proto/komp_ac.table_structure.rs +++ b/common/src/proto/komp_ac.table_structure.rs @@ -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 { diff --git a/server b/server index f6ab9e9..8158629 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit f6ab9e951d3548ac349ddc28a0ed1d94c686db3c +Subproject commit 81586299e5babc1e8005ae0478c10c056700dc2b