//! Outbound gateway webhooks: template rendering and HTTP delivery.

pub mod catalog;
mod dispatch;
pub mod schema;

pub use catalog::{GatewayWebhookEventDescriptor, gateway_webhook_event_catalog};
pub use dispatch::{
    GatewayWebhookTrigger, dispatch_webhook_test, gateway_webhook_trigger_from_http,
    spawn_gateway_webhook_dispatch,
};

pub const ROUTE_GATEWAY_DATA: &str = "gateway_data";
pub const ROUTE_GATEWAY_FETCH: &str = "gateway_fetch";
pub const ROUTE_GATEWAY_UPDATE: &str = "gateway_update";
pub const ROUTE_GATEWAY_QUERY: &str = "gateway_query";
pub const ROUTE_GATEWAY_INSERT: &str = "gateway_insert";
pub const ROUTE_GATEWAY_DELETE: &str = "gateway_delete";
pub const ROUTE_REST_GET: &str = "rest_get";
pub const ROUTE_REST_POST: &str = "rest_post";
pub const ROUTE_REST_PATCH: &str = "rest_patch";
pub const ROUTE_REST_DELETE: &str = "rest_delete";
