Filesystem Sync (#142)

This commit is contained in:
Gregory Schier
2025-01-03 20:41:00 -08:00
committed by GitHub
parent 6ad27c4458
commit 31440eea76
159 changed files with 4296 additions and 1016 deletions
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "yaak-sse"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
serde = { version = "1.0.204", features = ["derive"] }
ts-rs = { version = "10.0.0", features = ["serde-json-impl"] }
+3
View File
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ServerSentEvent = { eventType: string, data: string, id: string | null, retry: bigint | null, };
+1
View File
@@ -0,0 +1 @@
export * from './bindings/sse';
+6
View File
@@ -0,0 +1,6 @@
{
"name": "@yaakapp-internal/sse",
"private": true,
"version": "1.0.0",
"main": "index.ts"
}
+1
View File
@@ -0,0 +1 @@
pub mod sse;
+12
View File
@@ -0,0 +1,12 @@
use serde::{Deserialize, Serialize};
use ts_rs::TS;
#[derive(Debug, Clone, Serialize, Deserialize, Default, TS)]
#[serde(default, rename_all = "camelCase")]
#[ts(export, export_to = "sse.ts")]
pub struct ServerSentEvent {
pub event_type: String,
pub data: String,
pub id: Option<String>,
pub retry: Option<u64>,
}