// AUTO-GENERATED — do not edit by hand
// Upstream: https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Twitter/Twitter.node.ts
// To implement: copy to ../impl/twitter.rs, fill in execute(), add to ../impl/mod.rs
// r8r: rust port of n8n.io
// License: Unlicense

use async_trait::async_trait;
use crate::core::error::NodeError;
use crate::core::types::*;
use crate::engine::{ExecuteCtx, Node, NodeFactory};
use std::sync::Arc;

pub struct TwitterNode;

static META: NodeMetadata = NodeMetadata {
    name: "twitter",
    display_name: "X (Formerly Twitter)",
    version: &[1],
    group: &["transform"],
    description: "Consume the X API",
    inputs: 1,
    outputs: 1,
    properties: &[],
    credentials: &[],
};

#[async_trait]
impl Node for TwitterNode {
    fn metadata(&self) -> &'static NodeMetadata { &META }

    async fn execute(&self, _ctx: &mut ExecuteCtx<'_>) -> Result<NodeOutput, NodeError> {
    Err(NodeError::NotYetPorted { node: "twitter", upstream: "https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Twitter/Twitter.node.ts" })
    }
}

inventory::submit! { NodeFactory::new("twitter", || Arc::new(TwitterNode)) }
