pub mod auth;
pub mod client;
pub mod config;
pub mod errors;
pub mod events;
pub mod observables;
pub mod orchestrator;
pub mod subscription;
pub mod templates;
pub mod traces;
pub mod types;
pub mod webhooks;
#[cfg(feature = "webhook-server")]
pub use subscription::start_webhook_server;
pub use client::ZealClient;
pub use config::{ClientConfig, PerformanceConfig};
pub use errors::{Result, ZealError};
pub use subscription::{SubscriptionOptions, WebhookSubscription};
pub use types::*;
pub use events::{
ConnectionState, ConnectionStateEvent, ElementState, ElementType, ExecutionCompletedEvent,
ExecutionFailedEvent, ExecutionStartedEvent, NodeCompletedEvent, NodeExecutingEvent,
NodeFailedEvent, NodeWarningEvent, VisualStateElement, VisualStateUpdate, WorkflowCreatedEvent,
WorkflowDeletedEvent, WorkflowUpdatedEvent, ZipControlEvent, ZipExecutionEvent,
ZipWebSocketEvent, ZipWebhookEvent, ZipWorkflowEvent,
};
pub use observables::{ObservableExt, ZealObservable};
pub use traces::{TraceEvent, TraceEventType, TraceStatus};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const API_PREFIX: &str = "/api/zip";
pub const WS_PATH: &str = "/ws/zip";
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_version() {
assert!(!VERSION.is_empty());
}
#[test]
fn test_constants() {
assert_eq!(API_PREFIX, "/api/zip");
assert_eq!(WS_PATH, "/ws/zip");
}
}