// AUTO-GENERATED — do not edit by hand
// Upstream: https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/StickyNote/StickyNote.node.ts
// To implement: copy to ../impl/stickynote.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 StickynoteNode;

static META: NodeMetadata = NodeMetadata {
    name: "stickynote",
    display_name: "Sticky Note",
    version: &[1],
    group: &["transform"],
    description: "Make your workflow easier to understand",
    inputs: 1,
    outputs: 1,
    properties: &[
    PropertyDef { name: "content", display_name: "Content", kind: PropertyKind::String, required: false, default: Some("## I") },
    PropertyDef { name: "height", display_name: "Height", kind: PropertyKind::Number, required: true, default: None },
    PropertyDef { name: "width", display_name: "Width", kind: PropertyKind::Number, required: true, default: None },
    PropertyDef { name: "color", display_name: "Color", kind: PropertyKind::Number, required: true, default: None }
],
    credentials: &[],
};

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

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

inventory::submit! { NodeFactory::new("stickynote", || Arc::new(StickynoteNode)) }
