//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "ExternalPluginAdapterType")]
pub enum ExternalPluginAdapterTypeGraphQL {
    LifecycleHook,
    Oracle,
    AppData,
    LinkedLifecycleHook,
    LinkedAppData,
    DataSection,
    AgentIdentity,
}

impl From<crate::types::ExternalPluginAdapterType> for ExternalPluginAdapterTypeGraphQL {
    fn from(original: crate::types::ExternalPluginAdapterType) -> Self {
        match original {
            crate::types::ExternalPluginAdapterType::LifecycleHook => Self::LifecycleHook,
            crate::types::ExternalPluginAdapterType::Oracle => Self::Oracle,
            crate::types::ExternalPluginAdapterType::AppData => Self::AppData,
            crate::types::ExternalPluginAdapterType::LinkedLifecycleHook => {
                Self::LinkedLifecycleHook
            }
            crate::types::ExternalPluginAdapterType::LinkedAppData => Self::LinkedAppData,
            crate::types::ExternalPluginAdapterType::DataSection => Self::DataSection,
            crate::types::ExternalPluginAdapterType::AgentIdentity => Self::AgentIdentity,
        }
    }
}
