typst file generating syntax
This commit is contained in:
@@ -99,20 +99,19 @@ message PostTableDefinitionRequest {
|
|||||||
string accounting_currency = 8;
|
string accounting_currency = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Defines the input for explicitly creating a table backed by one invoice
|
// Defines the input for explicitly creating tables backed by one invoice
|
||||||
// template. typst_source must contain exactly one declaration of the form:
|
// template. typst_source must contain exactly one field declaration:
|
||||||
//
|
//
|
||||||
// #let komp_ac_fields = (
|
// #let komp_ac_fields = (
|
||||||
// "invoice.number": (source: "local", field_type: "TEXT", write: "user"),
|
// "sidlo.nazov",
|
||||||
// "items[].product": (source: "reference", table: "stock", required: true),
|
// "people[].name",
|
||||||
// "items[].quantity": (source: "local", field_type: "DECIMAL(12,3)", write: "user"),
|
// "people[].requested_quantity",
|
||||||
// "items[].total": (source: "local", field_type: "MONEY", write: "script"),
|
|
||||||
// )
|
// )
|
||||||
//
|
//
|
||||||
// Root fields create columns and references on table_name. Every [] collection
|
// A path matching an existing profile table and column becomes a reference to
|
||||||
// creates a child table with a required FK to its immediate parent; fields in
|
// that table. Otherwise its final segment becomes a local TEXT column for an
|
||||||
// that collection create columns and references on the child table. Multiple
|
// administrator to refine later. Every [] creates a child table with a required
|
||||||
// template paths in one scope may reuse the same reference.
|
// FK to its immediate generated parent.
|
||||||
message CreateInvoiceTemplateTableRequest {
|
message CreateInvoiceTemplateTableRequest {
|
||||||
string profile_name = 1;
|
string profile_name = 1;
|
||||||
string table_name = 2;
|
string table_name = 2;
|
||||||
|
|||||||
Binary file not shown.
@@ -58,20 +58,19 @@ pub struct PostTableDefinitionRequest {
|
|||||||
#[prost(string, tag = "8")]
|
#[prost(string, tag = "8")]
|
||||||
pub accounting_currency: ::prost::alloc::string::String,
|
pub accounting_currency: ::prost::alloc::string::String,
|
||||||
}
|
}
|
||||||
/// Defines the input for explicitly creating a table backed by one invoice
|
/// Defines the input for explicitly creating tables backed by one invoice
|
||||||
/// template. typst_source must contain exactly one declaration of the form:
|
/// template. typst_source must contain exactly one field declaration:
|
||||||
///
|
///
|
||||||
/// \#let komp_ac_fields = (
|
/// \#let komp_ac_fields = (
|
||||||
/// "invoice.number": (source: "local", field_type: "TEXT", write: "user"),
|
/// "sidlo.nazov",
|
||||||
/// "items\[\].product": (source: "reference", table: "stock", required: true),
|
/// "people\[\].name",
|
||||||
/// "items\[\].quantity": (source: "local", field_type: "DECIMAL(12,3)", write: "user"),
|
/// "people\[\].requested_quantity",
|
||||||
/// "items\[\].total": (source: "local", field_type: "MONEY", write: "script"),
|
|
||||||
/// )
|
/// )
|
||||||
///
|
///
|
||||||
/// Root fields create columns and references on table_name. Every \[\] collection
|
/// A path matching an existing profile table and column becomes a reference to
|
||||||
/// creates a child table with a required FK to its immediate parent; fields in
|
/// that table. Otherwise its final segment becomes a local TEXT column for an
|
||||||
/// that collection create columns and references on the child table. Multiple
|
/// administrator to refine later. Every \[\] creates a child table with a required
|
||||||
/// template paths in one scope may reuse the same reference.
|
/// FK to its immediate generated parent.
|
||||||
#[derive(serde::Serialize, serde::Deserialize)]
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
pub struct CreateInvoiceTemplateTableRequest {
|
pub struct CreateInvoiceTemplateTableRequest {
|
||||||
|
|||||||
2
server
2
server
Submodule server updated: 6d3ecbb070...12ec13208e
Reference in New Issue
Block a user