phone numbers are advanced as of now
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
@@ -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<AuthorizationSnapshot>,
|
||||
#[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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user