invoice + some table name thing

This commit is contained in:
Priec
2026-09-02 12:03:12 +02:00
parent 56a1e855f5
commit 8acc8867ac
7 changed files with 42 additions and 4 deletions

Binary file not shown.

View File

@@ -36,7 +36,7 @@ pub struct RegisterTypstTemplateRequest {
pub typst_compiler_version: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTypstTemplateResponse {
#[prost(message, optional, tag = "1")]
pub template_version: ::core::option::Option<TypstTemplateVersion>,
@@ -174,7 +174,7 @@ pub struct GetTypstTemplateVersionRequest {
pub document_id: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TypstTemplateVersion {
#[prost(int64, tag = "1")]
pub id: i64,
@@ -196,9 +196,26 @@ pub struct TypstTemplateVersion {
pub input_table_name: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "10")]
pub field_paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "11")]
pub field_bindings: ::prost::alloc::vec::Vec<TypstTemplateFieldBinding>,
}
/// One profile-specific source mapping for an enabled template version.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypstTemplateFieldBinding {
#[prost(string, tag = "1")]
pub field_path: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub collection_path: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub column_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub source_table_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub source_column_name: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTypstTemplateVersionResponse {
#[prost(message, optional, tag = "1")]
pub template_version: ::core::option::Option<TypstTemplateVersion>,

View File

@@ -157,6 +157,12 @@ pub struct InvoiceTemplateFieldBinding {
pub column_name: ::prost::alloc::string::String,
#[prost(enumeration = "InvoiceTemplateAccountingRole", tag = "4")]
pub accounting_role: i32,
/// Optional source reached through column_name when that column is a LINK.
/// Both names are empty for a value stored directly on the invoice table.
#[prost(string, tag = "5")]
pub source_table_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub source_column_name: ::prost::alloc::string::String,
}
/// One physical dynamic table created for an invoice template scope. The root
/// has an empty collection_path and parent_table_name. Each \[\] scope names its