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

@@ -1,4 +1,5 @@
// This file is @generated by prost-build.
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SourceRecord {
#[prost(string, tag = "1")]
@@ -10,6 +11,7 @@ pub struct SourceRecord {
#[prost(int64, tag = "4")]
pub record_id: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SaveDocumentRequest {
#[prost(message, repeated, tag = "1")]
@@ -19,6 +21,7 @@ pub struct SaveDocumentRequest {
#[prost(string, tag = "3")]
pub data_json: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RegisterTypstTemplateRequest {
#[prost(string, tag = "1")]
@@ -30,11 +33,13 @@ pub struct RegisterTypstTemplateRequest {
#[prost(string, tag = "4")]
pub typst_compiler_version: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct RegisterTypstTemplateResponse {
#[prost(message, optional, tag = "1")]
pub template_version: ::core::option::Option<TypstTemplateVersion>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListTypstTemplatesRequest {
#[prost(string, tag = "1")]
@@ -42,16 +47,19 @@ pub struct ListTypstTemplatesRequest {
#[prost(uint32, tag = "2")]
pub limit: u32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTypstTemplatesResponse {
#[prost(message, repeated, tag = "1")]
pub templates: ::prost::alloc::vec::Vec<TypstTemplateVersion>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ListEnabledTypstTemplatesRequest {
#[prost(string, tag = "1")]
pub profile_name: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SaveDocumentResponse {
#[prost(int64, tag = "1")]
@@ -65,6 +73,7 @@ pub struct SaveDocumentResponse {
#[prost(int32, tag = "5")]
pub template_version: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateDocumentRequest {
#[prost(int64, tag = "1")]
@@ -72,6 +81,7 @@ pub struct UpdateDocumentRequest {
#[prost(string, tag = "2")]
pub data_json: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct UpdateDocumentResponse {
#[prost(int64, tag = "1")]
@@ -81,6 +91,7 @@ pub struct UpdateDocumentResponse {
#[prost(int32, tag = "3")]
pub version_number: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDocumentsRequest {
#[prost(int64, optional, tag = "1")]
@@ -90,6 +101,7 @@ pub struct GetDocumentsRequest {
#[prost(string, optional, tag = "3")]
pub template_name: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Document {
#[prost(int64, tag = "1")]
@@ -115,21 +127,25 @@ pub struct Document {
#[prost(string, tag = "11")]
pub data_sha256: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDocumentsResponse {
#[prost(message, repeated, tag = "1")]
pub documents: ::prost::alloc::vec::Vec<Document>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDocumentRequest {
#[prost(int64, tag = "1")]
pub document_id: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDocumentResponse {
#[prost(message, optional, tag = "1")]
pub document: ::core::option::Option<Document>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetDocumentVersionRequest {
#[prost(int64, tag = "1")]
@@ -137,11 +153,13 @@ pub struct GetDocumentVersionRequest {
#[prost(int32, tag = "2")]
pub version_number: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDocumentVersionResponse {
#[prost(message, optional, tag = "1")]
pub document: ::core::option::Option<Document>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetTypstTemplateVersionRequest {
#[prost(int64, tag = "1")]
@@ -149,6 +167,7 @@ pub struct GetTypstTemplateVersionRequest {
#[prost(int64, tag = "2")]
pub document_id: i64,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TypstTemplateVersion {
#[prost(int64, tag = "1")]
@@ -170,6 +189,7 @@ pub struct TypstTemplateVersion {
#[prost(string, tag = "9")]
pub input_table_name: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetTypstTemplateVersionResponse {
#[prost(message, optional, tag = "1")]