fix(core): Replace euclid enum with RoutableConnectors enum (#2994)

Signed-off-by: chikke srujan <121822803+srujanchikke@users.noreply.github.com>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
chikke srujan
2023-11-28 20:34:30 +05:30
committed by GitHub
parent 1c5a9b5452
commit ff6a0dd0b5
18 changed files with 153 additions and 449 deletions

View File

@ -5,10 +5,7 @@ use api_models::{
};
use euclid::{
dssa::graph::{self, DomainIdentifier},
frontend::{
ast,
dir::{self, enums as dir_enums},
},
frontend::{ast, dir},
types::{NumValue, NumValueRefinement},
};
@ -277,7 +274,7 @@ fn compile_merchant_connector_graph(
builder: &mut graph::KnowledgeGraphBuilder<'_>,
mca: admin_api::MerchantConnectorResponse,
) -> Result<(), KgraphError> {
let connector = dir_enums::Connector::from_str(&mca.connector_name)
let connector = common_enums::RoutableConnectors::from_str(&mca.connector_name)
.map_err(|_| KgraphError::InvalidConnectorName(mca.connector_name.clone()))?;
let mut agg_nodes: Vec<(graph::NodeId, graph::Relation)> = Vec::new();