Initial commit
Some checks failed
CI/CD Pipeline / Backend Tests (push) Failing after 27s
CI/CD Pipeline / Frontend Tests (push) Failing after 15s
CI/CD Pipeline / Docker Build (push) Has been skipped
CI/CD Pipeline / Security Scan (push) Has been skipped

This commit is contained in:
2026-04-15 01:41:49 +02:00
commit 5b447acd1c
773 changed files with 74653 additions and 0 deletions

27
backend/src/websocket.rs Executable file
View File

@@ -0,0 +1,27 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize)]
pub struct SyncProgress {
pub job_id: i32,
pub job_type: String,
pub sync_direction: String,
pub progress_percentage: f64,
pub records_processed: i32,
pub records_failed: i32,
pub current_entity: Option<String>,
pub estimated_completion: Option<String>,
pub status: String,
pub message: Option<String>,
pub timestamp: String,
}
#[derive(Debug, Deserialize)]
pub struct WsSubscribeRequest {
pub job_id: Option<i32>,
}
#[derive(Debug, Serialize)]
pub struct WsMessage {
pub kind: String,
pub data: serde_json::Value,
}