using unified system

This commit is contained in:
Filipriec
2026-08-30 07:49:19 +02:00
parent 80d61760a2
commit 408187cb57
30 changed files with 2754 additions and 225 deletions

View File

@@ -59,6 +59,7 @@ pub struct PostAccountingTableDataRequest {
>,
}
/// Insert response.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PostTableDataResponse {
/// True if the insert succeeded.
@@ -196,6 +197,7 @@ pub struct PutTableDataConfirmedRequest {
>,
}
/// Update response.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PutTableDataResponse {
/// True if the update succeeded (or no-op on empty data).
@@ -223,6 +225,7 @@ pub struct TableUpdateImpactRequest {
#[prost(int64, tag = "3")]
pub id: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TableUpdateImpactResponse {
#[prost(string, repeated, tag = "1")]
@@ -239,6 +242,7 @@ pub struct ArchiveTableDataRequest {
#[prost(int64, tag = "4")]
pub expected_revision: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ArchiveTableDataResponse {
#[prost(bool, tag = "1")]
@@ -271,6 +275,7 @@ pub struct DeleteTableDataRequest {
pub expected_revision: i64,
}
/// Soft-delete response.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteTableDataResponse {
/// True when the row was successfully marked deleted.
@@ -301,6 +306,7 @@ pub struct GetTableDataVersionRequest {
#[prost(int64, tag = "4")]
pub version: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResolvedTableLinkVersion {
#[prost(int64, tag = "1")]
@@ -315,6 +321,7 @@ pub struct ResolvedTableLinkVersion {
#[prost(string, repeated, tag = "4")]
pub row_display_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResolvedTableLinkUpdate {
#[prost(int64, tag = "1")]
@@ -329,6 +336,7 @@ pub struct ResolvedTableLinkUpdate {
#[prost(string, repeated, tag = "4")]
pub changed_fields: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResolvedTableLink {
#[prost(int64, tag = "1")]
@@ -341,6 +349,7 @@ pub struct ResolvedTableLink {
pub newer: ::core::option::Option<ResolvedTableLinkUpdate>,
}
/// Row payload: all columns returned as strings.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTableDataResponse {
/// Map of column_name → stringified value for:
@@ -406,6 +415,7 @@ pub struct GetLastTableDataRequest {
pub navigation_mode: i32,
}
/// Complete numbering state returned with a navigated row.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RowNavigation {
#[prost(enumeration = "RowNavigationMode", tag = "1")]
@@ -418,6 +428,7 @@ pub struct RowNavigation {
#[prost(uint64, tag = "3")]
pub total: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLastTableDataResponse {
/// Zero when the table has no visible rows. Retained as row identity; clients
@@ -446,6 +457,7 @@ pub struct GetAdjacentTableDataRequest {
#[prost(uint64, tag = "6")]
pub anchor_position: u64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAdjacentTableDataResponse {
/// Absent when no visible row exists in the requested direction.
@@ -476,6 +488,7 @@ pub struct GetTableDataByPositionRequest {
/// A link resolved exactly as the source row stored it, together with the
/// target row's current state. The physical companion version column remains
/// an internal implementation detail.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ResolvedTableLinkStatus {
@@ -514,6 +527,7 @@ impl ResolvedTableLinkStatus {
}
}
/// Controls how an unfiltered form numbers rows.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RowNavigationMode {