diff --git a/client b/client index 7f147d8..13cca98 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit 7f147d8630a837760399d0a44846eca89bfa82f5 +Subproject commit 13cca98c9bc6253f4909ea61a2013d10448b026d diff --git a/common/proto/auth.proto b/common/proto/auth.proto index 434da56..a808086 100644 --- a/common/proto/auth.proto +++ b/common/proto/auth.proto @@ -18,6 +18,7 @@ message RegisterRequest { string password_confirmation = 4; string role = 5; string timezone = 6; // IANA timezone, for example Europe/Bratislava + string phone_country = 7; // ISO 3166-1 alpha-2 country used for national phone numbers, for example SK } message AuthResponse { @@ -41,6 +42,7 @@ message LoginResponse { string username = 6; AuthorizationSnapshot authorization = 7; string timezone = 8; + string phone_country = 9; } message SetTimezoneRequest { diff --git a/common/proto/table_definition.proto b/common/proto/table_definition.proto index 0a9abba..2e72c74 100644 --- a/common/proto/table_definition.proto +++ b/common/proto/table_definition.proto @@ -120,9 +120,11 @@ message ColumnDefinition { // Logical column type. Supported values (case-insensitive): // TEXT // BOOLEAN - // INSTANT (absolute timestamp, displayed in the viewer timezone) + // INSTANT (local input resolved in the authenticated user's timezone + // and displayed in the viewer timezone) // USER_DATETIME (local input resolved in the user's timezone) // RAW_DATETIME (timezone-free civil datetime) + // PHONE (international or national phone number; generates extension/type/country/calling-code companions) // TIME (timezone-free time of day) // MONEY (= unconstrained NUMERIC; currency comes from the table) // INT diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index 7b66c28..a641411 100644 Binary files a/common/src/proto/descriptor.bin and b/common/src/proto/descriptor.bin differ diff --git a/common/src/proto/komp_ac.auth.rs b/common/src/proto/komp_ac.auth.rs index 0a5ba4c..856e77a 100644 --- a/common/src/proto/komp_ac.auth.rs +++ b/common/src/proto/komp_ac.auth.rs @@ -14,6 +14,9 @@ pub struct RegisterRequest { /// IANA timezone, for example Europe/Bratislava #[prost(string, tag = "6")] pub timezone: ::prost::alloc::string::String, + /// ISO 3166-1 alpha-2 country used for national phone numbers, for example SK + #[prost(string, tag = "7")] + pub phone_country: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct AuthResponse { @@ -61,6 +64,8 @@ pub struct LoginResponse { pub authorization: ::core::option::Option, #[prost(string, tag = "8")] pub timezone: ::prost::alloc::string::String, + #[prost(string, tag = "9")] + pub phone_country: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct SetTimezoneRequest { diff --git a/common/src/proto/komp_ac.table_definition.rs b/common/src/proto/komp_ac.table_definition.rs index 78374ed..d1b8082 100644 --- a/common/src/proto/komp_ac.table_definition.rs +++ b/common/src/proto/komp_ac.table_definition.rs @@ -82,9 +82,11 @@ pub struct ColumnDefinition { /// Logical column type. Supported values (case-insensitive): /// TEXT /// BOOLEAN - /// INSTANT (absolute timestamp, displayed in the viewer timezone) + /// INSTANT (local input resolved in the authenticated user's timezone + /// and displayed in the viewer timezone) /// USER_DATETIME (local input resolved in the user's timezone) /// RAW_DATETIME (timezone-free civil datetime) + /// PHONE (international or national phone number; generates extension/type/country/calling-code companions) /// TIME (timezone-free time of day) /// MONEY (= unconstrained NUMERIC; currency comes from the table) /// INT diff --git a/server b/server index 6bcec49..48e20a0 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 6bcec4924c9af9aeb312bf55c8b150556219019a +Subproject commit 48e20a0f04d2c2e980e46db00631f8aa52f2457a