phone numbers are advanced as of now

This commit is contained in:
Priec
2026-07-18 23:55:40 +02:00
parent e15ba04158
commit a2c55aa982
7 changed files with 15 additions and 4 deletions

2
client

Submodule client updated: 7f147d8630...13cca98c9b

View File

@@ -18,6 +18,7 @@ message RegisterRequest {
string password_confirmation = 4; string password_confirmation = 4;
string role = 5; string role = 5;
string timezone = 6; // IANA timezone, for example Europe/Bratislava 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 { message AuthResponse {
@@ -41,6 +42,7 @@ message LoginResponse {
string username = 6; string username = 6;
AuthorizationSnapshot authorization = 7; AuthorizationSnapshot authorization = 7;
string timezone = 8; string timezone = 8;
string phone_country = 9;
} }
message SetTimezoneRequest { message SetTimezoneRequest {

View File

@@ -120,9 +120,11 @@ message ColumnDefinition {
// Logical column type. Supported values (case-insensitive): // Logical column type. Supported values (case-insensitive):
// TEXT // TEXT
// BOOLEAN // 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) // USER_DATETIME (local input resolved in the user's timezone)
// RAW_DATETIME (timezone-free civil datetime) // 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) // TIME (timezone-free time of day)
// MONEY (= unconstrained NUMERIC; currency comes from the table) // MONEY (= unconstrained NUMERIC; currency comes from the table)
// INT // INT

Binary file not shown.

View File

@@ -14,6 +14,9 @@ pub struct RegisterRequest {
/// IANA timezone, for example Europe/Bratislava /// IANA timezone, for example Europe/Bratislava
#[prost(string, tag = "6")] #[prost(string, tag = "6")]
pub timezone: ::prost::alloc::string::String, 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)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AuthResponse { pub struct AuthResponse {
@@ -61,6 +64,8 @@ pub struct LoginResponse {
pub authorization: ::core::option::Option<AuthorizationSnapshot>, pub authorization: ::core::option::Option<AuthorizationSnapshot>,
#[prost(string, tag = "8")] #[prost(string, tag = "8")]
pub timezone: ::prost::alloc::string::String, pub timezone: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub phone_country: ::prost::alloc::string::String,
} }
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SetTimezoneRequest { pub struct SetTimezoneRequest {

View File

@@ -82,9 +82,11 @@ pub struct ColumnDefinition {
/// Logical column type. Supported values (case-insensitive): /// Logical column type. Supported values (case-insensitive):
/// TEXT /// TEXT
/// BOOLEAN /// 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) /// USER_DATETIME (local input resolved in the user's timezone)
/// RAW_DATETIME (timezone-free civil datetime) /// 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) /// TIME (timezone-free time of day)
/// MONEY (= unconstrained NUMERIC; currency comes from the table) /// MONEY (= unconstrained NUMERIC; currency comes from the table)
/// INT /// INT

2
server

Submodule server updated: 6bcec4924c...48e20a0f04