Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(connector): [CELERO] Integrate Card Payments (Alpha) (#8574)
Nithin Ne1fc14135cc3
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.ymlindex 8e9015257d..363ca6d922 100644--- a/.github/workflows/cypress-tests-runner.yml+++ b/.github/workflows/cypress-tests-runner.yml@@ -14,7 +14,7 @@ env:CARGO_INCREMENTAL: 0CARGO_NET_RETRY: 10PAYMENTS_CONNECTORS: "cybersource stripe"- ALPHA_PAYMENTS_CONNECTORS: "silverflow"+ ALPHA_PAYMENTS_CONNECTORS: "celero silverflow"RUST_BACKTRACE: shortRUSTUP_MAX_RETRIES: 10RUN_TESTS: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}@@ -50,7 +50,7 @@ jobs:- name: Install Node.jsuses: actions/setup-node@v4with:- node-version: "20"+ node-version: "24"- name: Install Cypress and dependenciesrun: |@@ -233,7 +233,7 @@ jobs:if: ${{ env.RUN_TESTS == 'true' }}uses: actions/setup-node@v4with:- node-version: "20"+ node-version: "24"- name: Install Cypress and dependenciesif: ${{ env.RUN_TESTS == 'true' }}@@ -349,28 +349,11 @@ jobs:if: ${{ env.RUN_TESTS == 'true' }}run: chmod +x target/debug/router- - name: Download Encrypted JSON from S3 and Decrypt- if: ${{ env.RUN_TESTS == 'true' }}- env:- AWS_ACCESS_KEY_ID: ${{ secrets.CONNECTOR_CREDS_AWS_ACCESS_KEY_ID }}- AWS_REGION: ${{ secrets.CONNECTOR_CREDS_AWS_REGION }}- AWS_SECRET_ACCESS_KEY: ${{ secrets.CONNECTOR_CREDS_AWS_SECRET_ACCESS_KEY }}- CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}- CONNECTOR_CREDS_S3_BUCKET_URI: ${{ secrets.CONNECTOR_CREDS_S3_BUCKET_URI}}- DESTINATION_FILE_NAME: "creds.json.gpg"- S3_SOURCE_FILE_NAME: "6859bf7e-735b-4589-979a-ac057ed50425.json.gpg"- shell: bash- run: |- mkdir -p ".github/secrets" ".github/test"-- aws s3 cp "${CONNECTOR_CREDS_S3_BUCKET_URI}/${S3_SOURCE_FILE_NAME}" ".github/secrets/${DESTINATION_FILE_NAME}"- gpg --quiet --batch --yes --decrypt --passphrase="${CONNECTOR_AUTH_PASSPHRASE}" --output ".github/test/creds.json" ".github/secrets/${DESTINATION_FILE_NAME}"-- name: Set paths in envif: ${{ env.RUN_TESTS == 'true' }}shell: bashrun: |- echo "CYPRESS_CONNECTOR_AUTH_FILE_PATH=${{ github.workspace }}/.github/test/creds.json" >> $GITHUB_ENV+ echo "CYPRESS_CONNECTOR_AUTH_FILE_PATH=${{ github.workspace }}/cypress-tests/cypress/e2e/configs/mock-server/Creds.json" >> $GITHUB_ENV- name: Fetch keysif: ${{ env.RUN_TESTS == 'true' }}@@ -399,7 +382,7 @@ jobs:if: ${{ env.RUN_TESTS == 'true' }}uses: actions/setup-node@v4with:- node-version: "20"+ node-version: "24"- name: Install Cypress and dependenciesif: ${{ env.RUN_TESTS == 'true' }}@@ -421,33 +404,27 @@ jobs:- name: Start mock servers for alpha connectorsif: ${{ env.RUN_TESTS == 'true' }}run: |- # Start mock servers for each alpha connector- for connector in ${{ env.ALPHA_PAYMENTS_CONNECTORS }}; do- pascal_case_connector="$(echo "$connector" | sed -E 's/(^|_)([a-z])/\U\2/g')"- if [ -f "cypress-tests/cypress/e2e/configs/mock-server/${pascal_case_connector}.js" ]; then- echo "Starting mock server for ${connector}"- cd cypress-tests-- node "cypress/e2e/configs/mock-server/${pascal_case_connector}.js" &-- MOCK_PID=$!- echo "MOCK_${connector^^}_PID=${MOCK_PID}" >> $GITHUB_ENV- cd ..-- # Wait for mock server to be ready- COUNT=0- while ! nc -z localhost 3010; do- if [ $COUNT -gt 6 ]; then # Wait for up to 1 minute (6 * 10 seconds)- echo "Mock server for ${connector} did not start within a reasonable time."- exit 1- else- COUNT=$((COUNT+1))- sleep 10- fi- done- echo "Mock server for ${connector} is ready"+ echo "Starting mock server for ${connector}"+ cd cypress-tests++ npm run mockserver &++ MOCK_PID=$!+ echo "MOCK_PID=${MOCK_PID}" >> $GITHUB_ENV+ cd ..++ # Wait for mock server to be ready+ COUNT=0+ while ! nc -z localhost 3010; do+ if [ $COUNT -gt 6 ]; then # Wait for up to 1 minute (6 * 10 seconds)+ echo "Mock server for ${connector} did not start within a reasonable time."+ exit 1+ else+ COUNT=$((COUNT+1))+ sleep 10fidone+ echo "Mock server for ${connector} is ready"- name: Setup Local Server with Alpha Connector Configsif: ${{ env.RUN_TESTS == 'true' }}@@ -460,8 +437,8 @@ jobs:# Set base URLs for alpha connectors to point to mock serversfor connector in ${{ env.ALPHA_PAYMENTS_CONNECTORS }}; doCONNECTOR_ENV_VAR="ROUTER__CONNECTORS__$(echo ${connector} | tr '[:lower:]' '[:upper:]')__BASE_URL"- export ${CONNECTOR_ENV_VAR}="http://localhost:3010"- echo "${CONNECTOR_ENV_VAR}=http://localhost:3010" >> $GITHUB_ENV+ export ${CONNECTOR_ENV_VAR}="http://localhost:3010/${connector}"+ echo "${CONNECTOR_ENV_VAR}=http://localhost:3010/${connector}" >> $GITHUB_ENVdone# Start the server in the background@@ -496,14 +473,7 @@ jobs:# Cleanupkill "${{ env.PID }}"-- # Kill mock servers- for connector in ${{ env.ALPHA_PAYMENTS_CONNECTORS }}; do- VAR_NAME="MOCK_${connector^^}_PID"- if [ -n "${!VAR_NAME:-}" ]; then- kill "${!VAR_NAME}" || true- fi- done+ kill "${{ env.MOCK_PID }}"- name: Upload Cypress test results for Alpha Connectorsif: env.RUN_TESTS == 'true' && failure()@@ -631,7 +601,7 @@ jobs:if: ${{ env.RUN_TESTS == 'true' }}uses: actions/setup-node@v4with:- node-version: "20"+ node-version: "24"- name: Install Cypress and dependenciesif: ${{ env.RUN_TESTS == 'true' }}diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.tomlindex 83544e40cc..160a29aa1a 100644--- a/crates/connector_configs/toml/development.toml+++ b/crates/connector_configs/toml/development.toml@@ -1446,6 +1446,35 @@ merchant_id_evoucher="MerchantId Evoucher"[cashtocode.connector_webhook_details]merchant_secret="Source verification key"+[celero]+[[celero.credit]]+ payment_method_type = "AmericanExpress"+[[celero.credit]]+ payment_method_type = "Discover"+[[celero.credit]]+ payment_method_type = "DinersClub"+[[celero.credit]]+ payment_method_type = "JCB"+[[celero.credit]]+ payment_method_type = "Mastercard"+[[celero.credit]]+ payment_method_type = "Visa"+[[celero.debit]]+ payment_method_type = "AmericanExpress"+[[celero.debit]]+ payment_method_type = "Discover"+[[celero.debit]]+ payment_method_type = "DinersClub"+[[celero.debit]]+ payment_method_type = "JCB"+[[celero.debit]]+ payment_method_type = "Mastercard"+[[celero.debit]]+ payment_method_type = "Visa"+[celero.connector_auth.HeaderKey]+api_key="Celero API Key"++[checkbook][[checkbook.bank_transfer]]payment_method_type = "ach"diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.tomlindex 019d842b8d..47aff66d84 100644--- a/crates/connector_configs/toml/production.toml+++ b/crates/connector_configs/toml/production.toml@@ -1212,6 +1212,34 @@ key1 = "Secret Key"[cryptopay.connector_webhook_details]merchant_secret = "Source verification key"+[celero]+[[celero.credit]]+ payment_method_type = "AmericanExpress"+[[celero.credit]]+ payment_method_type = "Discover"+[[celero.credit]]+ payment_method_type = "DinersClub"+[[celero.credit]]+ payment_method_type = "JCB"+[[celero.credit]]+ payment_method_type = "Mastercard"+[[celero.credit]]+ payment_method_type = "Visa"+[[celero.debit]]+ payment_method_type = "AmericanExpress"+[[celero.debit]]+ payment_method_type = "Discover"+[[celero.debit]]+ payment_method_type = "DinersClub"+[[celero.debit]]+ payment_method_type = "JCB"+[[celero.debit]]+ payment_method_type = "Mastercard"+[[celero.debit]]+ payment_method_type = "Visa"+[celero.connector_auth.HeaderKey]+api_key="Celero API Key"+[checkbook][[checkbook.bank_transfer]]payment_method_type = "ach"diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.tomlindex 8571315082..d1ea6ba609 100644--- a/crates/connector_configs/toml/sandbox.toml+++ b/crates/connector_configs/toml/sandbox.toml@@ -1445,6 +1445,35 @@ merchant_id_evoucher = "MerchantId Evoucher"[cashtocode.connector_webhook_details]merchant_secret = "Source verification key"+[celero]+[[celero.credit]]+ payment_method_type = "AmericanExpress"+[[celero.credit]]+ payment_method_type = "Discover"+[[celero.credit]]+ payment_method_type = "DinersClub"+[[celero.credit]]+ payment_method_type = "JCB"+[[celero.credit]]+ payment_method_type = "Mastercard"+[[celero.credit]]+ payment_method_type = "Visa"+[[celero.debit]]+ payment_method_type = "AmericanExpress"+[[celero.debit]]+ payment_method_type = "Discover"+[[celero.debit]]+ payment_method_type = "DinersClub"+[[celero.debit]]+ payment_method_type = "JCB"+[[celero.debit]]+ payment_method_type = "Mastercard"+[[celero.debit]]+ payment_method_type = "Visa"+[celero.connector_auth.HeaderKey]+api_key="Celero API Key"++[checkbook][[checkbook.bank_transfer]]payment_method_type = "ach"diff --git a/crates/hyperswitch_connectors/src/connectors/celero.rs b/crates/hyperswitch_connectors/src/connectors/celero.rsindex 9db111a10e..726791a72e 100644--- a/crates/hyperswitch_connectors/src/connectors/celero.rs+++ b/crates/hyperswitch_connectors/src/connectors/celero.rs@@ -1,10 +1,13 @@pub mod transformers;+use std::sync::LazyLock;++use common_enums::enums;use common_utils::{errors::CustomResult,ext_traits::BytesExt,request::{Method, Request, RequestBuilder, RequestContent},- types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector},+ types::{AmountConvertor, MinorUnit, MinorUnitForConnector},};use error_stack::{report, ResultExt};use hyperswitch_domain_models::{@@ -19,7 +22,10 @@ use hyperswitch_domain_models::{PaymentsCancelData, PaymentsCaptureData, PaymentsSessionData, PaymentsSyncData,RefundsData, SetupMandateRequestData,},- router_response_types::{PaymentsResponseData, RefundsResponseData},+ router_response_types::{+ ConnectorInfo, PaymentMethodDetails, PaymentsResponseData, RefundsResponseData,+ SupportedPaymentMethods, SupportedPaymentMethodsExt,+ },types::{PaymentsAuthorizeRouterData, PaymentsCaptureRouterData, PaymentsSyncRouterData,RefundSyncRouterData, RefundsRouterData,@@ -43,13 +49,13 @@ use crate::{constants::headers, types::ResponseRouterData, utils};#[derive(Clone)]pub struct Celero {- amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),+ amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),}impl Celero {pub fn new() -> &'static Self {&Self {- amount_converter: &StringMinorUnitForConnector,+ amount_converter: &MinorUnitForConnector,}}}@@ -98,10 +104,7 @@ impl ConnectorCommon for Celero {}fn get_currency_unit(&self) -> api::CurrencyUnit {- api::CurrencyUnit::Base- // TODO! Check connector documentation, on which unit they are processing the currency.- // If the connector accepts amount in lower unit ( i.e cents for USD) then return api::CurrencyUnit::Minor,- // if connector accepts amount in base unit (i.e dollars for USD) then return api::CurrencyUnit::Base+ api::CurrencyUnit::Minor}fn common_get_content_type(&self) -> &'static str {@@ -137,23 +140,53 @@ impl ConnectorCommon for Celero {event_builder.map(|i| i.set_response_body(&response));router_env::logger::info!(connector_response=?response);+ // Extract error details from the response+ let error_details = celero::CeleroErrorDetails::from(response);+Ok(ErrorResponse {status_code: res.status_code,- code: response.code,- message: response.message,- reason: response.reason,+ code: error_details+ .error_code+ .unwrap_or_else(|| "UNKNOWN_ERROR".to_string()),+ message: error_details.error_message,+ reason: error_details.decline_reason,attempt_status: None,connector_transaction_id: None,- network_decline_code: None,+ network_decline_code: error_details.processor_response_code.clone(),network_advice_code: None,- network_error_message: None,+ network_error_message: error_details.processor_response_code,connector_metadata: None,})}}impl ConnectorValidation for Celero {- //TODO: implement functions when support enabled+ fn validate_connector_against_payment_request(+ &self,+ capture_method: Option<enums::CaptureMethod>,+ _payment_method: enums::PaymentMethod,+ _pmt: Option<enums::PaymentMethodType>,+ ) -> CustomResult<(), errors::ConnectorError> {+ let capture_method = capture_method.unwrap_or_default();++ // CeleroCommerce supports both automatic (sale) and manual (authorize + capture) flows+ let is_capture_method_supported = matches!(+ capture_method,+ enums::CaptureMethod::Automatic+ | enums::CaptureMethod::Manual+ | enums::CaptureMethod::SequentialAutomatic+ );++ if is_capture_method_supported {+ Ok(())+ } else {+ Err(errors::ConnectorError::NotSupported {+ message: capture_method.to_string(),+ connector: self.id(),+ }+ .into())+ }+ }}impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Celero {@@ -180,9 +213,9 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseDatafn get_url(&self,_req: &PaymentsAuthorizeRouterData,- _connectors: &Connectors,+ connectors: &Connectors,) -> CustomResult<String, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())+ Ok(format!("{}/api/transaction", self.base_url(connectors)))}fn get_request_body(@@ -196,7 +229,7 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseDatareq.request.currency,)?;- let connector_router_data = celero::CeleroRouterData::from((amount, req));+ let connector_router_data = celero::CeleroRouterData::try_from((amount, req))?;let connector_req = celero::CeleroPaymentsRequest::try_from(&connector_router_data)?;Ok(RequestContent::Json(Box::new(connector_req)))}@@ -267,9 +300,22 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Celfn get_url(&self,_req: &PaymentsSyncRouterData,- _connectors: &Connectors,+ connectors: &Connectors,) -> CustomResult<String, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())+ // CeleroCommerce uses search API for payment sync+ Ok(format!(+ "{}/api/transaction/search",+ self.base_url(connectors)+ ))+ }++ fn get_request_body(+ &self,+ req: &PaymentsSyncRouterData,+ _connectors: &Connectors,+ ) -> CustomResult<RequestContent, errors::ConnectorError> {+ let connector_req = celero::CeleroSearchRequest::try_from(req)?;+ Ok(RequestContent::Json(Box::new(connector_req)))}fn build_request(@@ -279,10 +325,13 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Cel) -> CustomResult<Option<Request>, errors::ConnectorError> {Ok(Some(RequestBuilder::new()- .method(Method::Get)+ .method(Method::Post).url(&types::PaymentsSyncType::get_url(self, req, connectors)?).attach_default_headers().headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)+ .set_body(types::PaymentsSyncType::get_request_body(+ self, req, connectors,+ )?).build(),))}@@ -330,18 +379,31 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fofn get_url(&self,- _req: &PaymentsCaptureRouterData,- _connectors: &Connectors,+ req: &PaymentsCaptureRouterData,+ connectors: &Connectors,) -> CustomResult<String, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())+ let connector_payment_id = req.request.connector_transaction_id.clone();+ Ok(format!(+ "{}/api/transaction/{}/capture",+ self.base_url(connectors),+ connector_payment_id+ ))}fn get_request_body(&self,- _req: &PaymentsCaptureRouterData,+ req: &PaymentsCaptureRouterData,_connectors: &Connectors,) -> CustomResult<RequestContent, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_request_body method".to_string()).into())+ let amount = utils::convert_amount(+ self.amount_converter,+ req.request.minor_amount_to_capture,+ req.request.currency,+ )?;++ let connector_router_data = celero::CeleroRouterData::try_from((amount, req))?;+ let connector_req = celero::CeleroCaptureRequest::try_from(&connector_router_data)?;+ Ok(RequestContent::Json(Box::new(connector_req)))}fn build_request(@@ -370,7 +432,7 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> foevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<PaymentsCaptureRouterData, errors::ConnectorError> {- let response: celero::CeleroPaymentsResponse = res+ let response: celero::CeleroCaptureResponse = res.response.parse_struct("Celero PaymentsCaptureResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;@@ -392,7 +454,77 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo}}-impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Celero {}+impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Celero {+ fn get_headers(+ &self,+ req: &RouterData<Void, PaymentsCancelData, PaymentsResponseData>,+ connectors: &Connectors,+ ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {+ self.build_headers(req, connectors)+ }++ fn get_content_type(&self) -> &'static str {+ self.common_get_content_type()+ }++ fn get_url(+ &self,+ req: &RouterData<Void, PaymentsCancelData, PaymentsResponseData>,+ connectors: &Connectors,+ ) -> CustomResult<String, errors::ConnectorError> {+ let connector_payment_id = req.request.connector_transaction_id.clone();+ Ok(format!(+ "{}/api/transaction/{}/void",+ self.base_url(connectors),+ connector_payment_id+ ))+ }++ fn build_request(+ &self,+ req: &RouterData<Void, PaymentsCancelData, PaymentsResponseData>,+ connectors: &Connectors,+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {+ Ok(Some(+ RequestBuilder::new()+ .method(Method::Post)+ .url(&types::PaymentsVoidType::get_url(self, req, connectors)?)+ .attach_default_headers()+ .headers(types::PaymentsVoidType::get_headers(self, req, connectors)?)+ .build(),+ ))+ }++ fn handle_response(+ &self,+ data: &RouterData<Void, PaymentsCancelData, PaymentsResponseData>,+ event_builder: Option<&mut ConnectorEvent>,+ res: Response,+ ) -> CustomResult<+ RouterData<Void, PaymentsCancelData, PaymentsResponseData>,+ errors::ConnectorError,+ > {+ let response: celero::CeleroVoidResponse = res+ .response+ .parse_struct("Celero PaymentsVoidResponse")+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;+ event_builder.map(|i| i.set_response_body(&response));+ router_env::logger::info!(connector_response=?response);+ RouterData::try_from(ResponseRouterData {+ response,+ data: data.clone(),+ http_code: res.status_code,+ })+ }++ fn get_error_response(+ &self,+ res: Response,+ event_builder: Option<&mut ConnectorEvent>,+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {+ self.build_error_response(res, event_builder)+ }+}impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Celero {fn get_headers(@@ -409,10 +541,15 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Celerofn get_url(&self,- _req: &RefundsRouterData<Execute>,- _connectors: &Connectors,+ req: &RefundsRouterData<Execute>,+ connectors: &Connectors,) -> CustomResult<String, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())+ let connector_payment_id = req.request.connector_transaction_id.clone();+ Ok(format!(+ "{}/api/transaction/{}/refund",+ self.base_url(connectors),+ connector_payment_id+ ))}fn get_request_body(@@ -426,7 +563,7 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Celeroreq.request.currency,)?;- let connector_router_data = celero::CeleroRouterData::from((refund_amount, req));+ let connector_router_data = celero::CeleroRouterData::try_from((refund_amount, req))?;let connector_req = celero::CeleroRefundRequest::try_from(&connector_router_data)?;Ok(RequestContent::Json(Box::new(connector_req)))}@@ -456,10 +593,10 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Celeroevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<RefundsRouterData<Execute>, errors::ConnectorError> {- let response: celero::RefundResponse =- res.response- .parse_struct("celero RefundResponse")- .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;+ let response: celero::CeleroRefundResponse = res+ .response+ .parse_struct("celero RefundResponse")+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));router_env::logger::info!(connector_response=?response);RouterData::try_from(ResponseRouterData {@@ -494,9 +631,22 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Celero {fn get_url(&self,_req: &RefundSyncRouterData,- _connectors: &Connectors,+ connectors: &Connectors,) -> CustomResult<String, errors::ConnectorError> {- Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())+ // CeleroCommerce uses search API for refund sync+ Ok(format!(+ "{}/api/transaction/search",+ self.base_url(connectors)+ ))+ }++ fn get_request_body(+ &self,+ req: &RefundSyncRouterData,+ _connectors: &Connectors,+ ) -> CustomResult<RequestContent, errors::ConnectorError> {+ let connector_req = celero::CeleroSearchRequest::try_from(req)?;+ Ok(RequestContent::Json(Box::new(connector_req)))}fn build_request(@@ -506,7 +656,7 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Celero {) -> CustomResult<Option<Request>, errors::ConnectorError> {Ok(Some(RequestBuilder::new()- .method(Method::Get)+ .method(Method::Post).url(&types::RefundSyncType::get_url(self, req, connectors)?).attach_default_headers().headers(types::RefundSyncType::get_headers(self, req, connectors)?)@@ -523,7 +673,7 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Celero {event_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<RefundSyncRouterData, errors::ConnectorError> {- let response: celero::RefundResponse = res+ let response: celero::CeleroRefundResponse = res.response.parse_struct("celero RefundSyncResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;@@ -569,4 +719,80 @@ impl webhooks::IncomingWebhook for Celero {}}-impl ConnectorSpecifications for Celero {}+static CELERO_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = LazyLock::new(|| {+ let supported_capture_methods = vec![+ enums::CaptureMethod::Automatic,+ enums::CaptureMethod::Manual,+ enums::CaptureMethod::SequentialAutomatic,+ ];+ let supported_card_network = vec![+ common_enums::CardNetwork::AmericanExpress,+ common_enums::CardNetwork::Discover,+ common_enums::CardNetwork::DinersClub,+ common_enums::CardNetwork::JCB,+ common_enums::CardNetwork::Mastercard,+ common_enums::CardNetwork::Visa,+ ];++ let mut celero_supported_payment_methods = SupportedPaymentMethods::new();++ celero_supported_payment_methods.add(+ enums::PaymentMethod::Card,+ enums::PaymentMethodType::Credit,+ PaymentMethodDetails {+ mandates: enums::FeatureStatus::NotSupported,+ refunds: enums::FeatureStatus::Supported,+ supported_capture_methods: supported_capture_methods.clone(),+ specific_features: Some(+ api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({+ api_models::feature_matrix::CardSpecificFeatures {+ three_ds: common_enums::FeatureStatus::NotSupported,+ no_three_ds: common_enums::FeatureStatus::Supported,+ supported_card_networks: supported_card_network.clone(),+ }+ }),+ ),+ },+ );++ celero_supported_payment_methods.add(+ enums::PaymentMethod::Card,+ enums::PaymentMethodType::Debit,+ PaymentMethodDetails {+ mandates: enums::FeatureStatus::NotSupported,+ refunds: enums::FeatureStatus::Supported,+ supported_capture_methods: supported_capture_methods.clone(),+ specific_features: Some(+ api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({+ api_models::feature_matrix::CardSpecificFeatures {+ three_ds: common_enums::FeatureStatus::NotSupported,+ no_three_ds: common_enums::FeatureStatus::Supported,+ supported_card_networks: supported_card_network.clone(),+ }+ }),+ ),+ },+ );++ celero_supported_payment_methods+});++static CELERO_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {+ display_name: "Celero",+ description: "Celero is your trusted provider for payment processing technology and solutions, with a commitment to helping small to mid-sized businesses thrive",+ connector_type: enums::PaymentConnectorCategory::PaymentGateway,+};++impl ConnectorSpecifications for Celero {+ fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {+ Some(&CELERO_CONNECTOR_INFO)+ }++ fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {+ Some(&*CELERO_SUPPORTED_PAYMENT_METHODS)+ }++ fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {+ None+ }+}diff --git a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs b/crates/hyperswitch_connectors/src/connectors/celero/transformers.rsindex 2579c81ae6..7699026092 100644--- a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs@@ -1,80 +1,260 @@-use common_enums::enums;-use common_utils::types::StringMinorUnit;+use common_enums::{enums, Currency};+use common_utils::{pii::Email, types::MinorUnit};use hyperswitch_domain_models::{+ address::Address as DomainAddress,payment_method_data::PaymentMethodData,- router_data::{ConnectorAuthType, RouterData},- router_flow_types::refunds::{Execute, RSync},- router_request_types::ResponseId,+ router_data::{+ AdditionalPaymentMethodConnectorResponse, ConnectorAuthType, ConnectorResponseData,+ RouterData,+ },+ router_flow_types::{+ payments::Capture,+ refunds::{Execute, RSync},+ },+ router_request_types::{PaymentsCaptureData, ResponseId},router_response_types::{PaymentsResponseData, RefundsResponseData},- types::{PaymentsAuthorizeRouterData, RefundsRouterData},+ types::{+ PaymentsAuthorizeRouterData, PaymentsCaptureRouterData, PaymentsSyncRouterData,+ RefundSyncRouterData, RefundsRouterData,+ },};-use hyperswitch_interfaces::errors;-use masking::Secret;+use hyperswitch_interfaces::{consts, errors};+use masking::{PeekInterface, Secret};use serde::{Deserialize, Serialize};use crate::{types::{RefundsResponseRouterData, ResponseRouterData},- utils::PaymentsAuthorizeRequestData,+ utils::{+ AddressDetailsData, PaymentsAuthorizeRequestData, RefundsRequestData, RouterData as _,+ },};//TODO: Fill the struct with respective fieldspub struct CeleroRouterData<T> {- pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.+ pub amount: MinorUnit, // CeleroCommerce expects integer centspub router_data: T,}-impl<T> From<(StringMinorUnit, T)> for CeleroRouterData<T> {- fn from((amount, item): (StringMinorUnit, T)) -> Self {- //Todo : use utils to convert the amount to the type of amount that a connector accepts- Self {+impl<T> TryFrom<(MinorUnit, T)> for CeleroRouterData<T> {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from((amount, item): (MinorUnit, T)) -> Result<Self, Self::Error> {+ Ok(Self {amount,router_data: item,- }+ })}}+// CeleroCommerce Search Request for sync operations - POST /api/transaction/search+#[derive(Debug, Serialize, PartialEq)]+pub struct CeleroSearchRequest {+ transaction_id: String,+}-//TODO: Fill the struct with respective fields-#[derive(Default, Debug, Serialize, PartialEq)]+impl TryFrom<&PaymentsSyncRouterData> for CeleroSearchRequest {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(item: &PaymentsSyncRouterData) -> Result<Self, Self::Error> {+ let transaction_id = match &item.request.connector_transaction_id {+ ResponseId::ConnectorTransactionId(id) => id.clone(),+ _ => {+ return Err(errors::ConnectorError::MissingConnectorTransactionID.into());+ }+ };+ Ok(Self { transaction_id })+ }+}++impl TryFrom<&RefundSyncRouterData> for CeleroSearchRequest {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(item: &RefundSyncRouterData) -> Result<Self, Self::Error> {+ Ok(Self {+ transaction_id: item.request.get_connector_refund_id()?,+ })+ }+}++// CeleroCommerce Payment Request according to API specs+#[derive(Debug, Serialize, PartialEq)]pub struct CeleroPaymentsRequest {- amount: StringMinorUnit,- card: CeleroCard,+ idempotency_key: String,+ #[serde(rename = "type")]+ transaction_type: TransactionType,+ amount: MinorUnit, // CeleroCommerce expects integer cents+ currency: Currency,+ payment_method: CeleroPaymentMethod,+ #[serde(skip_serializing_if = "Option::is_none")]+ billing_address: Option<CeleroAddress>,+ #[serde(skip_serializing_if = "Option::is_none")]+ shipping_address: Option<CeleroAddress>,+ #[serde(skip_serializing_if = "Option::is_none")]+ create_vault_record: Option<bool>,+}++#[derive(Debug, Serialize, PartialEq)]+pub struct CeleroAddress {+ first_name: Option<Secret<String>>,+ last_name: Option<Secret<String>>,+ address_line_1: Option<Secret<String>>,+ address_line_2: Option<Secret<String>>,+ city: Option<String>,+ state: Option<Secret<String>>,+ postal_code: Option<Secret<String>>,+ country: Option<common_enums::CountryAlpha2>,+ phone: Option<Secret<String>>,+ email: Option<Email>,}-#[derive(Default, Debug, Serialize, Eq, PartialEq)]+impl TryFrom<&DomainAddress> for CeleroAddress {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(address: &DomainAddress) -> Result<Self, Self::Error> {+ let address_details = address.address.as_ref();+ match address_details {+ Some(address_details) => Ok(Self {+ first_name: address_details.get_optional_first_name(),+ last_name: address_details.get_optional_last_name(),+ address_line_1: address_details.get_optional_line1(),+ address_line_2: address_details.get_optional_line2(),+ city: address_details.get_optional_city(),+ state: address_details.get_optional_state(),+ postal_code: address_details.get_optional_zip(),+ country: address_details.get_optional_country(),+ phone: address+ .phone+ .as_ref()+ .and_then(|phone| phone.number.clone()),+ email: address.email.clone(),+ }),+ None => Err(errors::ConnectorError::MissingRequiredField {+ field_name: "address_details",+ }+ .into()),+ }+ }+}++#[derive(Debug, Serialize, PartialEq)]+#[serde(rename_all = "lowercase")]+pub enum CeleroPaymentMethod {+ Card(CeleroCard),+}++#[derive(Debug, Serialize, PartialEq, Clone, Copy)]+#[serde(rename_all = "lowercase")]+pub enum CeleroEntryType {+ Keyed,+}++#[derive(Debug, Serialize, PartialEq)]pub struct CeleroCard {+ entry_type: CeleroEntryType,number: cards::CardNumber,- expiry_month: Secret<String>,- expiry_year: Secret<String>,+ expiration_date: Secret<String>,cvc: Secret<String>,- complete: bool,}-impl TryFrom<&CeleroRouterData<&PaymentsAuthorizeRouterData>> for CeleroPaymentsRequest {+impl TryFrom<&PaymentMethodData> for CeleroPaymentMethod {type Error = error_stack::Report<errors::ConnectorError>;- fn try_from(- item: &CeleroRouterData<&PaymentsAuthorizeRouterData>,- ) -> Result<Self, Self::Error> {- match item.router_data.request.payment_method_data.clone() {+ fn try_from(item: &PaymentMethodData) -> Result<Self, Self::Error> {+ match item {PaymentMethodData::Card(req_card) => {let card = CeleroCard {- number: req_card.card_number,- expiry_month: req_card.card_exp_month,- expiry_year: req_card.card_exp_year,- cvc: req_card.card_cvc,- complete: item.router_data.request.is_auto_capture()?,+ entry_type: CeleroEntryType::Keyed,+ number: req_card.card_number.clone(),+ expiration_date: Secret::new(format!(+ "{}/{}",+ req_card.card_exp_month.peek(),+ req_card.card_exp_year.peek()+ )),+ cvc: req_card.card_cvc.clone(),};- Ok(Self {- amount: item.amount.clone(),- card,- })+ Ok(Self::Card(card))}- _ => Err(errors::ConnectorError::NotImplemented("Payment method".to_string()).into()),+ PaymentMethodData::CardDetailsForNetworkTransactionId(_)+ | PaymentMethodData::CardRedirect(_)+ | PaymentMethodData::Wallet(_)+ | PaymentMethodData::PayLater(_)+ | PaymentMethodData::BankRedirect(_)+ | PaymentMethodData::BankDebit(_)+ | PaymentMethodData::BankTransfer(_)+ | PaymentMethodData::Crypto(_)+ | PaymentMethodData::MandatePayment+ | PaymentMethodData::Reward+ | PaymentMethodData::RealTimePayment(_)+ | PaymentMethodData::Upi(_)+ | PaymentMethodData::Voucher(_)+ | PaymentMethodData::GiftCard(_)+ | PaymentMethodData::CardToken(_)+ | PaymentMethodData::OpenBanking(_)+ | PaymentMethodData::NetworkToken(_)+ | PaymentMethodData::MobilePayment(_) => Err(errors::ConnectorError::NotImplemented(+ "Selected payment method through celero".to_string(),+ )+ .into()),}}}-//TODO: Fill the struct with respective fields-// Auth Struct+// Implementation for handling 3DS specifically+impl TryFrom<(&PaymentMethodData, bool)> for CeleroPaymentMethod {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from((item, is_three_ds): (&PaymentMethodData, bool)) -> Result<Self, Self::Error> {+ // If 3DS is requested, return an error+ if is_three_ds {+ return Err(errors::ConnectorError::NotSupported {+ message: "Cards 3DS".to_string(),+ connector: "celero",+ }+ .into());+ }++ // Otherwise, delegate to the standard implementation+ Self::try_from(item)+ }+}++impl TryFrom<&CeleroRouterData<&PaymentsAuthorizeRouterData>> for CeleroPaymentsRequest {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(+ item: &CeleroRouterData<&PaymentsAuthorizeRouterData>,+ ) -> Result<Self, Self::Error> {+ let is_auto_capture = item.router_data.request.is_auto_capture()?;+ let transaction_type = if is_auto_capture {+ TransactionType::Sale+ } else {+ TransactionType::Authorize+ };++ let billing_address: Option<CeleroAddress> = item+ .router_data+ .get_optional_billing()+ .and_then(|address| address.try_into().ok());++ let shipping_address: Option<CeleroAddress> = item+ .router_data+ .get_optional_shipping()+ .and_then(|address| address.try_into().ok());++ // Check if 3DS is requested+ let is_three_ds = item.router_data.is_three_ds();++ let request = Self {+ idempotency_key: item.router_data.connector_request_reference_id.clone(),+ transaction_type,+ amount: item.amount,+ currency: item.router_data.request.currency,+ payment_method: CeleroPaymentMethod::try_from((+ &item.router_data.request.payment_method_data,+ is_three_ds,+ ))?,+ billing_address,+ shipping_address,+ create_vault_record: Some(false),+ };++ Ok(request)+ }+}++// Auth Struct for CeleroCommerce API key authenticationpub struct CeleroAuthType {pub(super) api_key: Secret<String>,}@@ -84,38 +264,100 @@ impl TryFrom<&ConnectorAuthType> for CeleroAuthType {fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {match auth_type {ConnectorAuthType::HeaderKey { api_key } => Ok(Self {- api_key: api_key.to_owned(),+ api_key: api_key.clone(),}),_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),}}}-// PaymentsResponse-//TODO: Append the remaining status flags-#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq)]-#[serde(rename_all = "lowercase")]-pub enum CeleroPaymentStatus {- Succeeded,- Failed,- #[default]- Processing,+// CeleroCommerce API Response Structures+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub enum CeleroResponseStatus {+ #[serde(alias = "success", alias = "Success", alias = "SUCCESS")]+ Success,+ #[serde(alias = "error", alias = "Error", alias = "ERROR")]+ Error,}-impl From<CeleroPaymentStatus> for common_enums::AttemptStatus {- fn from(item: CeleroPaymentStatus) -> Self {+#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]+#[serde(rename_all = "snake_case")]+pub enum CeleroTransactionStatus {+ Approved,+ Declined,+ Error,+ Pending,+ PendingSettlement,+ Settled,+ Voided,+ Reversed,+}++impl From<CeleroTransactionStatus> for common_enums::AttemptStatus {+ fn from(item: CeleroTransactionStatus) -> Self {match item {- CeleroPaymentStatus::Succeeded => Self::Charged,- CeleroPaymentStatus::Failed => Self::Failure,- CeleroPaymentStatus::Processing => Self::Authorizing,+ CeleroTransactionStatus::Approved => Self::Authorized,+ CeleroTransactionStatus::Settled => Self::Charged,+ CeleroTransactionStatus::Declined | CeleroTransactionStatus::Error => Self::Failure,+ CeleroTransactionStatus::Pending | CeleroTransactionStatus::PendingSettlement => {+ Self::Pending+ }+ CeleroTransactionStatus::Voided | CeleroTransactionStatus::Reversed => Self::Voided,}}}+#[serde_with::skip_serializing_none]+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub struct CeleroCardResponse {+ pub status: CeleroTransactionStatus,+ pub auth_code: Option<String>,+ pub processor_response_code: Option<String>,+ pub avs_response_code: Option<String>,+}-//TODO: Fill the struct with respective fields-#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+#[serde(rename_all = "lowercase")]+pub enum CeleroPaymentMethodResponse {+ Card(CeleroCardResponse),+}++#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+#[serde(rename_all = "lowercase")]+pub enum TransactionType {+ Sale,+ Authorize,+}+#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]+#[serde_with::skip_serializing_none]+pub struct CeleroTransactionResponseData {+ pub id: String,+ #[serde(rename = "type")]+ pub transaction_type: TransactionType,+ pub amount: i64,+ pub currency: String,+ pub response: CeleroPaymentMethodResponse,+ pub billing_address: Option<CeleroAddressResponse>,+ pub shipping_address: Option<CeleroAddressResponse>,+}++#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]+pub struct CeleroAddressResponse {+ first_name: Option<Secret<String>>,+ last_name: Option<Secret<String>>,+ address_line_1: Option<Secret<String>>,+ address_line_2: Option<Secret<String>>,+ city: Option<String>,+ state: Option<Secret<String>>,+ postal_code: Option<Secret<String>>,+ country: Option<common_enums::CountryAlpha2>,+ phone: Option<Secret<String>>,+ email: Option<Secret<String>>,+}++#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]pub struct CeleroPaymentsResponse {- status: CeleroPaymentStatus,- id: String,+ pub status: CeleroResponseStatus,+ pub msg: String,+ pub data: Option<CeleroTransactionResponseData>,}impl<F, T> TryFrom<ResponseRouterData<F, CeleroPaymentsResponse, T, PaymentsResponseData>>@@ -125,104 +367,508 @@ impl<F, T> TryFrom<ResponseRouterData<F, CeleroPaymentsResponse, T, PaymentsRespfn try_from(item: ResponseRouterData<F, CeleroPaymentsResponse, T, PaymentsResponseData>,) -> Result<Self, Self::Error> {- Ok(Self {- status: common_enums::AttemptStatus::from(item.response.status),- response: Ok(PaymentsResponseData::TransactionResponse {- resource_id: ResponseId::ConnectorTransactionId(item.response.id),- redirection_data: Box::new(None),- mandate_reference: Box::new(None),- connector_metadata: None,- network_txn_id: None,- connector_response_reference_id: None,- incremental_authorization_allowed: None,- charges: None,- }),- ..item.data- })+ match item.response.status {+ CeleroResponseStatus::Success => {+ if let Some(data) = item.response.data {+ let CeleroPaymentMethodResponse::Card(response) = &data.response;+ // Check if transaction itself failed despite successful API call+ match response.status {+ CeleroTransactionStatus::Declined | CeleroTransactionStatus::Error => {+ // Transaction failed - create error response with transaction details+ let error_details = CeleroErrorDetails::from_transaction_response(+ response,+ item.response.msg,+ );++ Ok(Self {+ status: common_enums::AttemptStatus::Failure,+ response: Err(+ hyperswitch_domain_models::router_data::ErrorResponse {+ code: error_details+ .error_code+ .unwrap_or_else(|| "TRANSACTION_FAILED".to_string()),+ message: error_details.error_message,+ reason: error_details.decline_reason,+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: Some(data.id),+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ },+ ),+ ..item.data+ })+ }+ _ => {+ let connector_response_data =+ convert_to_additional_payment_method_connector_response(+ response.avs_response_code.clone(),+ )+ .map(ConnectorResponseData::with_additional_payment_method_data);+ let final_status: enums::AttemptStatus = response.status.into();+ Ok(Self {+ status: final_status,+ response: Ok(PaymentsResponseData::TransactionResponse {+ resource_id: ResponseId::ConnectorTransactionId(data.id),+ redirection_data: Box::new(None),+ mandate_reference: Box::new(None),+ connector_metadata: None,+ network_txn_id: None,+ connector_response_reference_id: response.auth_code.clone(),+ incremental_authorization_allowed: None,+ charges: None,+ }),+ connector_response: connector_response_data,+ ..item.data+ })+ }+ }+ } else {+ // No transaction data in successful response+ Ok(Self {+ status: common_enums::AttemptStatus::Failure,+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: "MISSING_DATA".to_string(),+ message: "No transaction data in response".to_string(),+ reason: Some(item.response.msg),+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: None,+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data+ })+ }+ }+ CeleroResponseStatus::Error => {+ // Top-level API error+ let error_details =+ CeleroErrorDetails::from_top_level_error(item.response.msg.clone());++ Ok(Self {+ status: common_enums::AttemptStatus::Failure,+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: error_details+ .error_code+ .unwrap_or_else(|| "API_ERROR".to_string()),+ message: error_details.error_message,+ reason: error_details.decline_reason,+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: None,+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data+ })+ }+ }}}-//TODO: Fill the struct with respective fields-// REFUND :-// Type definition for RefundRequest+// CAPTURE:+// Type definition for CaptureRequest#[derive(Default, Debug, Serialize)]-pub struct CeleroRefundRequest {- pub amount: StringMinorUnit,+pub struct CeleroCaptureRequest {+ pub amount: MinorUnit,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub order_id: Option<String>,}-impl<F> TryFrom<&CeleroRouterData<&RefundsRouterData<F>>> for CeleroRefundRequest {+impl TryFrom<&CeleroRouterData<&PaymentsCaptureRouterData>> for CeleroCaptureRequest {type Error = error_stack::Report<errors::ConnectorError>;- fn try_from(item: &CeleroRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {+ fn try_from(item: &CeleroRouterData<&PaymentsCaptureRouterData>) -> Result<Self, Self::Error> {Ok(Self {- amount: item.amount.to_owned(),+ amount: item.amount,+ order_id: Some(item.router_data.payment_id.clone()),})}}-// Type definition for Refund Response--#[allow(dead_code)]-#[derive(Debug, Serialize, Default, Deserialize, Clone)]-pub enum RefundStatus {- Succeeded,- Failed,- #[default]- Processing,+// CeleroCommerce Capture Response+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub struct CeleroCaptureResponse {+ pub status: CeleroResponseStatus,+ pub msg: Option<String>,+ pub data: Option<serde_json::Value>, // Usually null for capture responses}-impl From<RefundStatus> for enums::RefundStatus {- fn from(item: RefundStatus) -> Self {- match item {- RefundStatus::Succeeded => Self::Success,- RefundStatus::Failed => Self::Failure,- RefundStatus::Processing => Self::Pending,- //TODO: Review mapping+impl+ TryFrom<+ ResponseRouterData<+ Capture,+ CeleroCaptureResponse,+ PaymentsCaptureData,+ PaymentsResponseData,+ >,+ > for RouterData<Capture, PaymentsCaptureData, PaymentsResponseData>+{+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(+ item: ResponseRouterData<+ Capture,+ CeleroCaptureResponse,+ PaymentsCaptureData,+ PaymentsResponseData,+ >,+ ) -> Result<Self, Self::Error> {+ match item.response.status {+ CeleroResponseStatus::Success => Ok(Self {+ status: common_enums::AttemptStatus::Charged,+ response: Ok(PaymentsResponseData::TransactionResponse {+ resource_id: ResponseId::ConnectorTransactionId(+ item.data.request.connector_transaction_id.clone(),+ ),+ redirection_data: Box::new(None),+ mandate_reference: Box::new(None),+ connector_metadata: None,+ network_txn_id: None,+ connector_response_reference_id: None,+ incremental_authorization_allowed: None,+ charges: None,+ }),+ ..item.data+ }),+ CeleroResponseStatus::Error => Ok(Self {+ status: common_enums::AttemptStatus::Failure,+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: "CAPTURE_FAILED".to_string(),+ message: item+ .response+ .msg+ .clone()+ .unwrap_or(consts::NO_ERROR_MESSAGE.to_string()),+ reason: None,+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: Some(+ item.data.request.connector_transaction_id.clone(),+ ),+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data+ }),}}}-//TODO: Fill the struct with respective fields-#[derive(Default, Debug, Clone, Serialize, Deserialize)]-pub struct RefundResponse {- id: String,- status: RefundStatus,+// CeleroCommerce Void Response - matches API spec format+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub struct CeleroVoidResponse {+ pub status: CeleroResponseStatus,+ pub msg: String,+ pub data: Option<serde_json::Value>, // Usually null for void responses}-impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> {+impl+ TryFrom<+ ResponseRouterData<+ hyperswitch_domain_models::router_flow_types::payments::Void,+ CeleroVoidResponse,+ hyperswitch_domain_models::router_request_types::PaymentsCancelData,+ PaymentsResponseData,+ >,+ >+ for RouterData<+ hyperswitch_domain_models::router_flow_types::payments::Void,+ hyperswitch_domain_models::router_request_types::PaymentsCancelData,+ PaymentsResponseData,+ >+{type Error = error_stack::Report<errors::ConnectorError>;fn try_from(- item: RefundsResponseRouterData<Execute, RefundResponse>,+ item: ResponseRouterData<+ hyperswitch_domain_models::router_flow_types::payments::Void,+ CeleroVoidResponse,+ hyperswitch_domain_models::router_request_types::PaymentsCancelData,+ PaymentsResponseData,+ >,) -> Result<Self, Self::Error> {- Ok(Self {- response: Ok(RefundsResponseData {- connector_refund_id: item.response.id.to_string(),- refund_status: enums::RefundStatus::from(item.response.status),+ match item.response.status {+ CeleroResponseStatus::Success => Ok(Self {+ status: common_enums::AttemptStatus::Voided,+ response: Ok(PaymentsResponseData::TransactionResponse {+ resource_id: ResponseId::ConnectorTransactionId(+ item.data.request.connector_transaction_id.clone(),+ ),+ redirection_data: Box::new(None),+ mandate_reference: Box::new(None),+ connector_metadata: None,+ network_txn_id: None,+ connector_response_reference_id: None,+ incremental_authorization_allowed: None,+ charges: None,+ }),+ ..item.data+ }),+ CeleroResponseStatus::Error => Ok(Self {+ status: common_enums::AttemptStatus::Failure,+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: "VOID_FAILED".to_string(),+ message: item.response.msg.clone(),+ reason: Some(item.response.msg),+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: Some(+ item.data.request.connector_transaction_id.clone(),+ ),+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data}),- ..item.data+ }+ }+}+#[derive(Default, Debug, Serialize)]+pub struct CeleroRefundRequest {+ pub amount: MinorUnit,+ pub surcharge: MinorUnit, // Required field as per API specification+}++impl<F> TryFrom<&CeleroRouterData<&RefundsRouterData<F>>> for CeleroRefundRequest {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(item: &CeleroRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {+ Ok(Self {+ amount: item.amount,+ surcharge: MinorUnit::zero(), // Default to 0 as per API specification})}}-impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> {+// CeleroCommerce Refund Response - matches API spec format+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub struct CeleroRefundResponse {+ pub status: CeleroResponseStatus,+ pub msg: String,+ pub data: Option<serde_json::Value>, // Usually null for refund responses+}++impl TryFrom<RefundsResponseRouterData<Execute, CeleroRefundResponse>>+ for RefundsRouterData<Execute>+{type Error = error_stack::Report<errors::ConnectorError>;fn try_from(- item: RefundsResponseRouterData<RSync, RefundResponse>,+ item: RefundsResponseRouterData<Execute, CeleroRefundResponse>,) -> Result<Self, Self::Error> {- Ok(Self {- response: Ok(RefundsResponseData {- connector_refund_id: item.response.id.to_string(),- refund_status: enums::RefundStatus::from(item.response.status),+ match item.response.status {+ CeleroResponseStatus::Success => Ok(Self {+ response: Ok(RefundsResponseData {+ connector_refund_id: item.data.request.refund_id.clone(),+ refund_status: enums::RefundStatus::Success,+ }),+ ..item.data}),- ..item.data- })+ CeleroResponseStatus::Error => Ok(Self {+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: "REFUND_FAILED".to_string(),+ message: item.response.msg.clone(),+ reason: Some(item.response.msg),+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: Some(+ item.data.request.connector_transaction_id.clone(),+ ),+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data+ }),+ }}}-//TODO: Fill the struct with respective fields-#[derive(Default, Debug, Serialize, Deserialize, PartialEq)]+impl TryFrom<RefundsResponseRouterData<RSync, CeleroRefundResponse>> for RefundsRouterData<RSync> {+ type Error = error_stack::Report<errors::ConnectorError>;+ fn try_from(+ item: RefundsResponseRouterData<RSync, CeleroRefundResponse>,+ ) -> Result<Self, Self::Error> {+ match item.response.status {+ CeleroResponseStatus::Success => Ok(Self {+ response: Ok(RefundsResponseData {+ connector_refund_id: item.data.request.refund_id.clone(),+ refund_status: enums::RefundStatus::Success,+ }),+ ..item.data+ }),+ CeleroResponseStatus::Error => Ok(Self {+ response: Err(hyperswitch_domain_models::router_data::ErrorResponse {+ code: "REFUND_SYNC_FAILED".to_string(),+ message: item.response.msg.clone(),+ reason: Some(item.response.msg),+ status_code: item.http_code,+ attempt_status: None,+ connector_transaction_id: Some(+ item.data.request.connector_transaction_id.clone(),+ ),+ network_decline_code: None,+ network_advice_code: None,+ network_error_message: None,+ connector_metadata: None,+ }),+ ..item.data+ }),+ }+ }+}++// CeleroCommerce Error Response Structures++// Main error response structure - matches API spec format+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]pub struct CeleroErrorResponse {- pub status_code: u16,- pub code: String,- pub message: String,- pub reason: Option<String>,+ pub status: CeleroResponseStatus,+ pub msg: String,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub data: Option<serde_json::Value>,+}++// Error details that can be extracted from various response fields+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]+pub struct CeleroErrorDetails {+ pub error_code: Option<String>,+ pub error_message: String,+ pub processor_response_code: Option<String>,+ pub decline_reason: Option<String>,+}++impl From<CeleroErrorResponse> for CeleroErrorDetails {+ fn from(error_response: CeleroErrorResponse) -> Self {+ Self {+ error_code: Some("API_ERROR".to_string()),+ error_message: error_response.msg,+ processor_response_code: None,+ decline_reason: None,+ }+ }+}++// Function to extract error details from transaction response data+impl CeleroErrorDetails {+ pub fn from_transaction_response(response: &CeleroCardResponse, msg: String) -> Self {+ // Map specific error codes based on common response patterns+ let decline_reason = Self::map_processor_error(&response.processor_response_code, &msg);++ Self {+ error_code: None,+ error_message: msg,+ processor_response_code: response.processor_response_code.clone(),+ decline_reason,+ }+ }++ pub fn from_top_level_error(msg: String) -> Self {+ // Map specific error codes from top-level API errors++ Self {+ error_code: None,+ error_message: msg,+ processor_response_code: None,+ decline_reason: None,+ }+ }++ /// Map processor response codes and messages to specific Hyperswitch error codes+ fn map_processor_error(processor_code: &Option<String>, message: &str) -> Option<String> {+ let message_lower = message.to_lowercase();+ // Check processor response codes if available+ if let Some(code) = processor_code {+ match code.as_str() {+ "05" => Some("TRANSACTION_DECLINED".to_string()),+ "14" => Some("INVALID_CARD_DATA".to_string()),+ "51" => Some("INSUFFICIENT_FUNDS".to_string()),+ "54" => Some("EXPIRED_CARD".to_string()),+ "55" => Some("INCORRECT_CVC".to_string()),+ "61" => Some("Exceeds withdrawal amount limit".to_string()),+ "62" => Some("TRANSACTION_DECLINED".to_string()),+ "65" => Some("Exceeds withdrawal frequency limit".to_string()),+ "78" => Some("INVALID_CARD_DATA".to_string()),+ "91" => Some("PROCESSING_ERROR".to_string()),+ "96" => Some("PROCESSING_ERROR".to_string()),+ _ => {+ router_env::logger::info!(+ "Celero response error code ({:?}) is not mapped to any error state ",+ code+ );+ Some("Transaction failed".to_string())+ }+ }+ } else {+ Some(message_lower)+ }+ }+}++pub fn get_avs_definition(code: &str) -> Option<&'static str> {+ match code {+ "0" => Some("AVS Not Available"),+ "A" => Some("Address match only"),+ "B" => Some("Address matches, ZIP not verified"),+ "C" => Some("Incompatible format"),+ "D" => Some("Exact match"),+ "F" => Some("Exact match, UK-issued cards"),+ "G" => Some("Non-U.S. Issuer does not participate"),+ "I" => Some("Not verified"),+ "M" => Some("Exact match"),+ "N" => Some("No address or ZIP match"),+ "P" => Some("Postal Code match"),+ "R" => Some("Issuer system unavailable"),+ "S" => Some("Service not supported"),+ "U" => Some("Address unavailable"),+ "W" => Some("9-character numeric ZIP match only"),+ "X" => Some("Exact match, 9-character numeric ZIP"),+ "Y" => Some("Exact match, 5-character numeric ZIP"),+ "Z" => Some("5-character ZIP match only"),+ "L" => Some("Partial match, Name and billing postal code match"),+ "1" => Some("Cardholder name and ZIP match"),+ "2" => Some("Cardholder name, address and ZIP match"),+ "3" => Some("Cardholder name and address match"),+ "4" => Some("Cardholder name matches"),+ "5" => Some("Cardholder name incorrect, ZIP matches"),+ "6" => Some("Cardholder name incorrect, address and zip match"),+ "7" => Some("Cardholder name incorrect, address matches"),+ "8" => Some("Cardholder name, address, and ZIP do not match"),+ _ => {+ router_env::logger::info!(+ "Celero avs response code ({:?}) is not mapped to any defination.",+ code+ );++ None+ } // No definition found for the given code+ }+}+fn convert_to_additional_payment_method_connector_response(+ response_code: Option<String>,+) -> Option<AdditionalPaymentMethodConnectorResponse> {+ match response_code {+ None => None,+ Some(code) => {+ let description = get_avs_definition(&code);+ let payment_checks = serde_json::json!({+ "avs_result_code": code,+ "description": description+ });+ Some(AdditionalPaymentMethodConnectorResponse::Card {+ authentication_data: None,+ payment_checks: Some(payment_checks),+ card_network: None,+ domestic_network: None,+ })+ }+ }}diff --git a/crates/payment_methods/src/configs/payment_connector_required_fields.rs b/crates/payment_methods/src/configs/payment_connector_required_fields.rsindex 5ce306c597..15a4ef90a9 100644--- a/crates/payment_methods/src/configs/payment_connector_required_fields.rs+++ b/crates/payment_methods/src/configs/payment_connector_required_fields.rs@@ -1305,6 +1305,7 @@ fn get_cards_required_fields() -> HashMap<Connector, RequiredFieldFinal> {),(Connector::Boku, fields(vec![], vec![], card_basic())),(Connector::Braintree, fields(vec![], vec![], card_basic())),+ (Connector::Celero, fields(vec![], vec![], card_basic())),(Connector::Checkout, fields(vec![], card_basic(), vec![])),(Connector::Coinbase,diff --git a/cypress-tests/README.md b/cypress-tests/README.mdindex 82e8c22c6e..0518a271f5 100644--- a/cypress-tests/README.md+++ b/cypress-tests/README.md@@ -374,6 +374,55 @@ npm run lint -- --fix8. Use custom commands for repetitive tasks9. Use `cy.log` for debugging and do not use `console.log`+## Mock Server++The cypress-tests directory includes a mock server for simulating payment processor APIs during testing.++### Architecture++The mock server follows a router-based architecture:++- `mockserver.js` - Main entry point that starts the Express server+- `router.js` - Central router that forwards requests to connector-specific routers+- Connector implementations (e.g., `Silverflow.js`) - Individual router implementations for each payment processor++Each connector exports an Express router that is imported by the main router. This modular approach allows for easy addition of new connectors and simplified maintenance.++### Running the Mock Server++To start the mock server:++```bash+npm run mockserver+```++By default, the server runs on port 3010. You can change this by setting the `MOCKSERVER_PORT` environment variable:++```bash+MOCKSERVER_PORT=3010 npm run mockserver+```++### Testing with cURL++Example curl command for testing the Silverflow API:++```bash+curl -X POST "http://localhost:3010/silverflow/charges" \+-H "Content-Type: application/json" \+-H "Authorization: Basic YXBrLXRlc3RrZXkxMjM6dGVzdHNlY3JldDQ1Ng==" \+-d '{"merchantAcceptorResolver":"merchant123","card":{"number":"4111111111111111","expMonth":12,"expYear":2025,"cvc":"123"},"amount":{"value":1000,"currency":"USD"},"type":"authorization","clearingMode":"auto"}'+```++### Using with Hyperswitch++To use the mock server with Hyperswitch, you need to redirect the base URL for the Silverflow connector to the mock server. Run Hyperswitch with the following environment variable:++```bash+ROUTER__CONNECTORS__SILVERFLOW__BASE_URL=http://localhost:3010/silverflow cargo r+```++This will redirect all Silverflow API calls from Hyperswitch to your local mock server instead of the actual Silverflow API.+## Additional Resources- [Cypress Documentation](https://docs.cypress.io/)diff --git a/cypress-tests/cypress/e2e/configs/Payment/Celero.js b/cypress-tests/cypress/e2e/configs/Payment/Celero.jsnew file mode 100644index 0000000000..8f908f68f9--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/Payment/Celero.js@@ -0,0 +1,1069 @@+import { cardRequiredField, customerAcceptance } from "./Commons";+import { getCustomExchange } from "./Modifiers";++// ============================================================================+// CELERO CYPRESS TEST CONFIGURATION+// ============================================================================+// Core functionality based on Celero API specification:+// - Non-3DS card payments (auto/manual capture)+// - Refund operations (full/partial/sync)+// - Void operations+// - Basic failure scenarios+// ============================================================================++// ===== TEST CARD DATA =====++const successfulNo3DSCardDetails = {+ card_number: "4111111111111111", // Visa test card+ card_exp_month: "12",+ card_exp_year: "30",+ card_holder_name: "Test User",+ card_cvc: "123",+};++const failedCardDetails = {+ card_number: "4000000000000002", // Generic declined card+ card_exp_month: "12",+ card_exp_year: "30",+ card_holder_name: "Test User",+ card_cvc: "123",+};++// ===== BILLING INFORMATION =====++const billingAddress = {+ address: {+ line1: "1467 Harrison Street",+ line2: "Apt 12",+ city: "San Francisco",+ state: "California",+ zip: "94122",+ country: "US",+ first_name: "Test",+ last_name: "User",+ },+ phone: {+ number: "4155551234",+ country_code: "+1",+ },+};++// ===== PAYMENT METHOD DATA =====++const payment_method_data_amex = {+ card: {+ last4: "0005",+ card_type: "CREDIT",+ card_network: "AmericanExpress",+ card_issuer: null,+ card_issuing_country: null,+ card_isin: "378282",+ card_extended_bin: null,+ card_exp_month: "12",+ card_exp_year: "30",+ card_holder_name: "Test User",+ payment_checks: null,+ authentication_data: null,+ },+ billing: null,+};++const payment_method_data_failed = {+ card: {+ last4: "0002",+ card_type: "CREDIT",+ card_network: "Visa",+ card_issuer: "INTL HDQTRS-CENTER OWNED",+ card_issuing_country: "UNITEDSTATES",+ card_isin: "400000",+ card_extended_bin: null,+ card_exp_month: "12",+ card_exp_year: "30",+ card_holder_name: "Test User",+ payment_checks: null,+ authentication_data: null,+ },+ billing: null,+};++// ===== REQUIRED FIELDS =====++const requiredFields = {+ payment_methods: [+ {+ payment_method: "card",+ payment_method_types: [+ {+ payment_method_type: "credit",+ card_networks: [+ {+ eligible_connectors: ["celero"],+ },+ ],+ required_fields: cardRequiredField,+ },+ {+ payment_method_type: "debit",+ card_networks: [+ {+ eligible_connectors: ["celero"],+ },+ ],+ required_fields: cardRequiredField,+ },+ ],+ },+ ],+};++// ===== MAIN CONNECTOR DETAILS =====++export const connectorDetails = {+ card_pm: {+ // Basic payment intent+ PaymentIntent: {+ Request: {+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: null,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ setup_future_usage: null,+ },+ },+ },++ // Successful automatic capture+ No3DSAutoCapture: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ billing: billingAddress,+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: null,+ capture_method: "automatic",+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ payment_method: "card",+ attempt_count: 1,+ },+ },+ },++ // Successful manual capture (requires capture)+ No3DSManualCapture: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ billing: billingAddress,+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: null,+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_capture",+ payment_method: "card",+ attempt_count: 1,+ },+ },+ },++ // Failed payment+ No3DSFailPayment: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: failedCardDetails,+ },+ billing: billingAddress,+ customer_acceptance: null,+ setup_future_usage: null,+ },+ Response: {+ status: 200,+ body: {+ status: "failed",+ error_code: "TRANSACTION_FAILED",+ error_message: "TRANSACTION_DECLINED",+ payment_method: "card",+ attempt_count: 1,+ payment_method_data: payment_method_data_failed,+ },+ },+ },++ // Capture operation+ Capture: {+ Request: {+ amount_to_capture: 6000,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ amount: 6000,+ amount_capturable: 0,+ amount_received: 6000,+ },+ },+ },++ // Partial capture+ PartialCapture: {+ Request: {+ amount_to_capture: 3000,+ },+ Response: {+ status: 200,+ body: {+ status: "partially_captured",+ amount: 6000,+ amount_capturable: 0,+ amount_received: 3000,+ },+ },+ },++ // Void payment (cancel authorized payment)+ Void: {+ Request: {+ cancellation_reason: "requested_by_customer",+ },+ Response: {+ status: 200,+ body: {+ status: "cancelled",+ payment_method: null,+ attempt_count: 1,+ },+ },+ },++ // Full refund+ Refund: {+ Request: {+ amount: 6000,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },++ // Partial refund+ PartialRefund: {+ Request: {+ amount: 2000,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },++ // Refund sync+ SyncRefund: {+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },++ // Manual payment refund+ manualPaymentRefund: {+ Request: {+ amount: 6000,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },++ // Manual payment partial refund+ manualPaymentPartialRefund: {+ Request: {+ amount: 3000,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ },++ // Payment sync+ SyncPayment: {+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ payment_method: "card",+ },+ },+ },++ // Payment with shipping cost+ PaymentIntentWithShippingCost: {+ Request: {+ currency: "USD",+ shipping_cost: 50,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ shipping_cost: 50,+ amount: 6000,+ },+ },+ },++ PaymentConfirmWithShippingCost: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ billing: billingAddress,+ customer_acceptance: null,+ setup_future_usage: null,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ payment_method: "card",+ shipping_cost: 50,+ amount_received: 6050,+ amount: 6000,+ net_amount: 6050,+ },+ },+ },++ // American Express card test+ AmexCardPayment: {+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ billing: billingAddress,+ currency: "USD",+ customer_acceptance: null,+ setup_future_usage: null,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ payment_method: "card",+ attempt_count: 1,+ payment_method_data: payment_method_data_amex,+ },+ },+ },++ // Celero doesn't support 3DS, mandates, save card, etc.++ "3DSManualCapture": getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ },+ Response: {+ status: 400,+ body: {+ error: {+ type: "invalid_request",+ },+ },+ },+ }),++ MandateSingleUseNo3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Mandates not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ single_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ },+ Response: {+ status: 400,+ body: {},+ },+ }),++ MandateSingleUseNo3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Mandates not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ single_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ capture_method: "manual",+ },+ Response: {+ status: 400,+ body: {},+ },+ }),++ MandateMultiUseNo3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Mandates not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ multi_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ },+ Response: {+ status: 400,+ body: {},+ },+ }),++ MandateMultiUseNo3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Mandates not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ multi_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ capture_method: "manual",+ },+ Response: {+ status: 400,+ body: {},+ },+ }),++ SaveCardUseNo3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support save card+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ setup_future_usage: "on_session",+ customer_acceptance: customerAcceptance,+ },+ Response: {+ status: 400,+ body: {+ status: "succeeded",+ },+ },+ }),++ SaveCardUseNo3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support save card+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ setup_future_usage: "on_session",+ customer_acceptance: customerAcceptance,+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_capture",+ },+ },+ }),++ // ===== 3DS SAVE CARD SCENARIOS =====+ // Note: Celero doesn't support 3DS or save card, marked as TRIGGER_SKIP++ SaveCardUse3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS and save card not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ setup_future_usage: "on_session",+ customer_acceptance: customerAcceptance,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ SaveCardUse3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS and save card not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ setup_future_usage: "on_session",+ customer_acceptance: customerAcceptance,+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ // ===== OFF-SESSION SAVE CARD SCENARIOS =====+ // Note: Celero doesn't support off-session or save card, marked as TRIGGER_SKIP++ SaveCardUseNo3DSAutoCaptureOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support off-session save card+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ setup_future_usage: "off_session",+ customer_acceptance: customerAcceptance,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),++ SaveCardUse3DSAutoCaptureOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS and off-session save card not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ setup_future_usage: "off_session",+ customer_acceptance: customerAcceptance,+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ SaveCardUseNo3DSManualCaptureOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support off-session save card+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ setup_future_usage: "off_session",+ customer_acceptance: customerAcceptance,+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_capture",+ },+ },+ }),++ SaveCardConfirmAutoCaptureOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support off-session save card+ },+ Request: {+ setup_future_usage: "off_session",+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),++ SaveCardConfirmManualCaptureOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support off-session save card+ },+ Request: {+ setup_future_usage: "off_session",+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_capture",+ },+ },+ }),++ SaveCardConfirmAutoCaptureOffSessionWithoutBilling: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support off-session save card+ },+ Request: {+ setup_future_usage: "off_session",+ billing: null,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ billing: null,+ },+ },+ }),++ ZeroAuthPaymentIntent: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Zero auth not supported+ },+ Request: {+ amount: 0,+ setup_future_usage: "off_session",+ currency: "USD",+ payment_type: "setup_mandate",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_payment_method",+ },+ },+ }),++ ZeroAuthConfirmPayment: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Zero auth not supported+ },+ Request: {+ payment_type: "setup_mandate",+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ },+ Response: {+ status: 400,+ body: {+ error: {+ type: "invalid_request_error",+ code: "feature_not_supported",+ message: "Zero auth is not supported",+ },+ },+ },+ }),++ ZeroAuthMandate: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Zero auth not supported+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ single_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ },+ Response: {+ status: 400,+ body: {},+ },+ }),++ MITAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support MIT+ },+ Request: {},+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),++ MITWithoutBillingAddress: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support MIT+ },+ Request: {+ billing: null,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),++ // ===== 3DS MANDATE SCENARIOS =====+ // Note: Celero doesn't support 3DS or mandates, marked as TRIGGER_SKIP++ MandateSingleUse3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ single_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ MandateSingleUse3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ single_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ MandateMultiUse3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ multi_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ MandateMultiUse3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip - 3DS not implemented+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: {+ customer_acceptance: customerAcceptance,+ mandate_type: {+ multi_use: {+ amount: 8000,+ currency: "USD",+ },+ },+ },+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_customer_action",+ },+ },+ }),++ // ===== PAYMENT METHOD SCENARIOS =====+ // Note: These may not be supported by Celero, marked as TRIGGER_SKIP++ PaymentMethodIdMandateNo3DSAutoCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support payment method ID mandates+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: null,+ customer_acceptance: customerAcceptance,+ },+ Response: {+ status: 200,+ body: {+ status: "succeeded",+ },+ },+ }),++ PaymentMethodIdMandateNo3DSManualCapture: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Skip if Celero doesn't support payment method ID mandates+ },+ Request: {+ payment_method: "card",+ payment_method_data: {+ card: successfulNo3DSCardDetails,+ },+ currency: "USD",+ mandate_data: null,+ customer_acceptance: customerAcceptance,+ capture_method: "manual",+ },+ Response: {+ status: 200,+ body: {+ status: "requires_capture",+ },+ },+ }),++ // ===== VOID SCENARIOS =====++ VoidPaymentFailure: {+ Request: {+ cancellation_reason: "merchant_request",+ },+ Response: {+ status: 400,+ body: {+ error: {+ type: "invalid_request_error",+ code: "processing_error",+ message:+ "You cannot cancel this PaymentIntent because it has a status of succeeded.",+ },+ },+ },+ },++ VoidAfterConfirm: {+ Request: {+ cancellation_reason: "customer_request",+ },+ Response: {+ status: 200,+ body: {+ status: "cancelled",+ payment_method: "card",+ attempt_count: 1,+ },+ },+ },++ PaymentIntentOffSession: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Off-session not supported+ },+ Request: {+ currency: "USD",+ setup_future_usage: "off_session",+ },+ Response: {+ status: 200,+ body: {},+ },+ }),++ SessionToken: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Session tokens not supported+ },+ Response: {+ status: 200,+ body: {+ session_token: [],+ },+ },+ }),++ PaymentMethod: getCustomExchange({+ Configs: {+ TRIGGER_SKIP: true, // Payment method creation not supported+ },+ Request: {+ payment_method: "card",+ payment_method_type: "credit",+ card: successfulNo3DSCardDetails,+ },+ Response: {+ status: 400,+ body: {+ error: {+ type: "invalid_request_error",+ code: "feature_not_supported",+ message: "Payment method creation is not supported",+ },+ },+ },+ }),+ },+ pm_list: {+ PmListResponse: {+ PmListNull: {+ payment_methods: [],+ },+ pmListDynamicFieldWithoutBilling: requiredFields,+ pmListDynamicFieldWithBilling: requiredFields,+ pmListDynamicFieldWithNames: requiredFields,+ pmListDynamicFieldWithEmail: requiredFields,+ },+ },+};diff --git a/cypress-tests/cypress/e2e/configs/Payment/Utils.js b/cypress-tests/cypress/e2e/configs/Payment/Utils.jsindex b73d8f24ed..689a6eed8a 100644--- a/cypress-tests/cypress/e2e/configs/Payment/Utils.js+++ b/cypress-tests/cypress/e2e/configs/Payment/Utils.js@@ -59,7 +59,7 @@ import { connectorDetails as worldpayConnectorDetails } from "./WorldPay.js";import { connectorDetails as worldpayvantivConnectorDetails } from "./Worldpayvantiv.js";import { connectorDetails as worldpayxmlConnectorDetails } from "./Worldpayxml.js";import { connectorDetails as xenditConnectorDetails } from "./Xendit.js";-+import { connectorDetails as celeroConnectorDetails } from "./Celero.js";const connectorDetails = {aci: aciConnectorDetails,adyen: adyenConnectorDetails,@@ -73,6 +73,7 @@ const connectorDetails = {billwerk: billwerkConnectorDetails,bluesnap: bluesnapConnectorDetails,braintree: braintreeConnectorDetails,+ celero: celeroConnectorDetails,checkout: checkoutConnectorDetails,checkbook: checkbookConnectorDetails,commons: commonConnectorDetails,diff --git a/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Celero.ts b/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Celero.tsnew file mode 100644index 0000000000..f1b005bed3--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Celero.ts@@ -0,0 +1,502 @@+/* eslint-disable no-console */+import * as express from "express";+import type { NextFunction, Request, Response, Router } from "express";+import cors from "cors";++const router: Router = express.default.Router();+const PORT = process.env.PORT || 3010;++// Middleware+router.use(cors());+router.use(express.default.json());+router.use(express.default.urlencoded({ extended: true }));++// Mock data storage+interface MockData {+ transactions: Record<string, any>;+ refunds: Record<string, any>;+}++const mockData: MockData = {+ transactions: {},+ refunds: {},+};++// Valid API keys+const validApiKeys: string[] = [+ "celero-test-api-key-123",+ "celero-api-key-456",+ "api-celero-test",+ "alpha-test-api-key-123",+];++// Helper functions+function generateId(prefix: string): string {+ return `${prefix}_${Math.random().toString(36).substr(2, 10)}`;+}++function generateAuthCode(): string {+ return Math.floor(100000 + Math.random() * 900000).toString();+}++function getCurrentTimestamp(): string {+ return new Date().toISOString();+}++// Authentication middleware+function authenticateApiKey(+ req: Request,+ res: Response,+ next: NextFunction+): void {+ const authHeader = req.headers.authorization;++ if (!authHeader) {+ res.status(401).json({+ status: "error",+ msg: "Missing Authorization header",+ });+ return;+ }++ // Check if the API key is valid+ const apiKey = authHeader;++ if (!validApiKeys.includes(apiKey)) {+ res.status(401).json({+ status: "error",+ msg: "Invalid API key",+ });+ return;+ }++ (req as any).apiKey = apiKey;+ next();+}++// Logging middleware+router.use((req: Request, res: Response, next: NextFunction): void => {+ console.log(`${new Date().toISOString()} - ${req.method} ${req.path}`);+ console.log("Headers:", JSON.stringify(req.headers, null, 2));+ if (req.body && Object.keys(req.body).length > 0) {+ console.log("Body:", JSON.stringify(req.body, null, 2));+ }+ next();+});++// Health check endpoint+router.get("/health", (req: Request, res: Response): void => {+ res.json({+ status: "success",+ msg: "Celero Mock Server is running",+ timestamp: getCurrentTimestamp(),+ });+});++// 1. POST /api/transaction - Create payment (authorize or sale)+router.post(+ "/api/transaction",+ authenticateApiKey,+ (req: Request, res: Response): void => {+ try {+ const {+ idempotency_key,+ type: transaction_type,+ amount,+ currency,+ payment_method,+ } = req.body;++ // Basic validation+ if (+ !idempotency_key ||+ !transaction_type ||+ !amount ||+ !currency ||+ !payment_method+ ) {+ res.status(400).json({+ status: "error",+ msg: "Missing required fields: idempotency_key, type, amount, currency, payment_method",+ });+ return;+ }++ // Check if payment method is card+ if (!payment_method.card) {+ res.status(400).json({+ status: "error",+ msg: "Only card payment method is supported",+ });+ return;+ }++ // Check for fail card - reject payment if fail card is used+ const failCard = "4000000000000002";+ if (payment_method.card.number === failCard) {+ res.status(200).json({+ status: "success",+ msg: "Transaction processed",+ data: {+ id: generateId("txn"),+ type: transaction_type,+ amount,+ currency,+ response: {+ card: {+ status: "declined",+ processor_response_code: "05",+ avs_response_code: "N",+ },+ },+ billing_address: req.body.billing_address,+ shipping_address: req.body.shipping_address,+ },+ });+ return;+ }++ // Process the transaction+ const transactionId = generateId("txn");+ const authCode = generateAuthCode();+ const now = getCurrentTimestamp();++ const transaction = {+ id: transactionId,+ type: transaction_type,+ amount,+ currency,+ response: {+ card: {+ status: transaction_type === "sale" ? "settled" : "approved",+ auth_code: authCode,+ processor_response_code: "00",+ avs_response_code: "Y",+ },+ },+ billing_address: req.body.billing_address,+ shipping_address: req.body.shipping_address,+ created_at: now,+ updated_at: now,+ };++ // Store the transaction+ mockData.transactions[transactionId] = transaction;++ res.status(200).json({+ status: "success",+ msg: "Transaction processed",+ data: transaction,+ });+ } catch (error: any) {+ console.error("Error processing transaction:", error);+ res.status(500).json({+ status: "error",+ msg: `Internal server error: ${error.message}`,+ });+ }+ }+);++// 2. POST /api/transaction/search - Search for transactions (used for payment sync and refund sync)+router.post(+ "/api/transaction/search",+ authenticateApiKey,+ (req: Request, res: Response): void => {+ try {+ const { transaction_id } = req.body;++ if (!transaction_id) {+ res.status(400).json({+ status: "error",+ msg: "Missing required field: transaction_id",+ });+ return;+ }++ // Check if it's a transaction ID or refund ID+ if (transaction_id.startsWith("txn_")) {+ // It's a transaction ID+ const transaction = mockData.transactions[transaction_id];+ if (!transaction) {+ res.status(404).json({+ status: "error",+ msg: "Transaction not found",+ });+ return;+ }++ res.status(200).json({+ status: "success",+ msg: "Transaction found",+ data: transaction,+ });+ } else if (transaction_id.startsWith("ref_")) {+ // It's a refund ID+ const refund = mockData.refunds[transaction_id];+ if (!refund) {+ res.status(404).json({+ status: "error",+ msg: "Refund not found",+ });+ return;+ }++ res.status(200).json({+ status: "success",+ msg: "Refund found",+ data: refund,+ });+ } else {+ res.status(404).json({+ status: "error",+ msg: "Invalid transaction_id format",+ });+ }+ } catch (error: any) {+ console.error("Error searching transaction:", error);+ res.status(500).json({+ status: "error",+ msg: `Internal server error: ${error.message}`,+ });+ }+ }+);++// 3. POST /api/transaction/:transactionId/capture - Capture an authorized payment+router.post(+ "/api/transaction/:transactionId/capture",+ authenticateApiKey,+ (req: Request, res: Response): void => {+ try {+ const { transactionId } = req.params;+ const { amount, order_id } = req.body;++ // Validate transaction exists+ const transaction = mockData.transactions[transactionId];+ if (!transaction) {+ res.status(404).json({+ status: "error",+ msg: "Transaction not found",+ });+ return;+ }++ // Validate transaction is authorized+ if (+ transaction.type !== "authorize" ||+ transaction.response.card.status !== "approved"+ ) {+ res.status(400).json({+ status: "error",+ msg: "Transaction cannot be captured (not an approved authorization)",+ });+ return;+ }++ // Validate amount+ if (!amount || amount <= 0) {+ res.status(400).json({+ status: "error",+ msg: "Invalid amount for capture",+ });+ return;+ }++ // Update transaction status+ transaction.response.card.status = "settled";+ transaction.updated_at = getCurrentTimestamp();++ // If amount is different from original, update it+ if (amount !== transaction.amount) {+ transaction.amount = amount;+ }++ // Add order_id if provided+ if (order_id) {+ transaction.order_id = order_id;+ }++ res.status(200).json({+ status: "success",+ msg: "Transaction captured successfully",+ });+ } catch (error: any) {+ console.error("Error capturing transaction:", error);+ res.status(500).json({+ status: "error",+ msg: `Internal server error: ${error.message}`,+ });+ }+ }+);++// 4. POST /api/transaction/:transactionId/void - Void a transaction+router.post(+ "/api/transaction/:transactionId/void",+ authenticateApiKey,+ (req: Request, res: Response): void => {+ try {+ const { transactionId } = req.params;++ // Validate transaction exists+ const transaction = mockData.transactions[transactionId];+ if (!transaction) {+ res.status(404).json({+ status: "error",+ msg: "Transaction not found",+ });+ return;+ }++ // Validate transaction can be voided (not settled)+ if (transaction.response.card.status === "settled") {+ res.status(400).json({+ status: "error",+ msg: "Transaction cannot be voided (already settled)",+ });+ return;+ }++ // Update transaction status+ transaction.response.card.status = "voided";+ transaction.updated_at = getCurrentTimestamp();++ res.status(200).json({+ status: "success",+ msg: "Transaction voided successfully",+ });+ } catch (error: any) {+ console.error("Error voiding transaction:", error);+ res.status(500).json({+ status: "error",+ msg: `Internal server error: ${error.message}`,+ });+ }+ }+);++// 5. POST /api/transaction/:transactionId/refund - Refund a transaction+router.post(+ "/api/transaction/:transactionId/refund",+ authenticateApiKey,+ (req: Request, res: Response): void => {+ try {+ const { transactionId } = req.params;+ const { amount, surcharge } = req.body;++ // Validate transaction exists+ const transaction = mockData.transactions[transactionId];+ // if (!transaction) {+ // return res.status(404).json({+ // status: "error",+ // msg: "Transaction not found",+ // });+ // }++ // Validate transaction can be refunded (must be settled)++ // Validate amount+ if (!amount || amount <= 0) {+ res.status(400).json({+ status: "error",+ msg: "Invalid amount for refund",+ });+ return;+ }++ // Validate amount doesn't exceed original transaction+ if (amount > transaction.amount) {+ res.status(400).json({+ status: "error",+ msg: "Refund amount exceeds original transaction amount",+ });+ return;+ }++ // Create refund record+ const refundId = generateId("ref");+ const refund = {+ id: refundId,+ transaction_id: transactionId,+ amount,+ surcharge: surcharge || 0,+ currency: transaction.currency,+ status: "success",+ created_at: getCurrentTimestamp(),+ };++ // Store the refund+ mockData.refunds[refundId] = refund;++ // If full refund, update transaction status+ if (amount === transaction.amount) {+ transaction.response.card.status = "refunded";+ transaction.updated_at = getCurrentTimestamp();+ } else {+ transaction.response.card.status = "partially_refunded";+ transaction.updated_at = getCurrentTimestamp();+ }++ res.status(200).json({+ status: "success",+ msg: "Transaction refunded successfully",+ data: null,+ });+ } catch (error: any) {+ console.error("Error refunding transaction:", error);+ res.status(500).json({+ status: "error",+ msg: `Internal server error: ${error.message}`,+ });+ }+ }+);++// Error handling middleware++router.use(+ (err: Error, req: Request, res: Response, _next: NextFunction): void => {+ console.error("Error:", err);+ res.status(500).json({+ status: "error",+ msg: "An unexpected error occurred",+ });+ }+);++// 404 handler+router.use((req: Request, res: Response): void => {+ res.status(404).json({+ status: "error",+ msg: `Endpoint ${req.method} ${req.originalUrl} not found`,+ });+});++// Create Express app and use the router++console.log(`🚀 Celero Mock Server running on port ${PORT}`);+console.log(`📍 Server URL: http://localhost:${PORT}`);+console.log("\n📋 Available Endpoints:");+console.log(" GET /health - Health check");+console.log(+ " POST celero/api/transaction - Create payment (authorize or sale)"+);+console.log(" POST celero/api/transaction/search - Search for transactions");+console.log(+ " POST /api/transaction/{id}/capture - Capture an authorized payment"+);+console.log(" POST celero/api/transaction/{id}/void - Void a transaction");+console.log(" POST celero/api/transaction/{id}/refund - Refund a transaction");+console.log("\n🔐 Authentication:");+console.log(" API Key in Authorization header");+console.log(" Valid API Keys:");+console.log(" - celero-test-api-key-123");+console.log(" - celero-api-key-456");+console.log(" - api-celero-test");+console.log(" - alpha-test-api-key-123");+console.log(+ "\n💡 Note: Celero mock server is designed to work with the Hyperswitch Celero connector"+);++export default router;diff --git a/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Silverflow.ts b/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Silverflow.tsnew file mode 100644index 0000000000..74cf2ccb2c--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/mock-server/Connectors/Silverflow.ts@@ -0,0 +1,706 @@+/* eslint-disable no-console */+import * as express from "express";+import type { NextFunction, Request, Response, Router } from "express";++const router: Router = express.default.Router();++// Mock data storage+interface MockData {+ charges: Record<string, any>;+ processorTokens: Record<string, any>;+}++const mockData: MockData = {+ charges: {},+ processorTokens: {},+};++// Mock API credentials+const validCredentials: Record<string, string> = {+ "apk-1wtRxni5IsPsSpBLWpwr": "FWtnOOHAjbD6rNxWWEeVOCj7JXSEPGJQ",+ "apk-testkey123": "testsecret456",+ "api-silverflow": "depends_on_mockserver",+};++// Helper functions+function generateId(prefix: string): string {+ return `${prefix}-${Math.random().toString(36).substr(2, 16)}`;+}++function generateAuthCode(): string {+ return Math.floor(100000 + Math.random() * 900000).toString();+}++function getCurrentTimestamp(): string {+ return new Date().toISOString();+}++// Authentication middleware+function authenticateBasic(+ req: Request,+ res: Response,+ next: NextFunction+): void {+ const authHeader = req.headers.authorization;++ if (!authHeader || !authHeader.startsWith("Basic ")) {+ res.status(401).json({+ error: {+ code: "AUTHENTICATION_REQUIRED",+ message: "Missing or invalid Authorization header",+ },+ });+ return;+ }++ try {+ const base64Credentials = authHeader.split(" ")[1];+ const credentials = Buffer.from(base64Credentials, "base64").toString(+ "ascii"+ );+ const [apiKey, apiSecret] = credentials.split(":");++ if (!validCredentials[apiKey] || validCredentials[apiKey] !== apiSecret) {+ res.status(401).json({+ error: {+ code: "INVALID_CREDENTIALS",+ message: "Invalid API key or secret",+ },+ });+ return;+ }++ (req as any).apiKey = apiKey;+ next();+ } catch (error: any) {+ res.status(401).json({+ error: {+ code: "AUTHENTICATION_ERROR",+ message: `Invalid authorization format: ${error.message}`,+ },+ });+ return;+ }+}++// Logging middleware+router.use((req: Request, res: Response, next: NextFunction): void => {+ console.log(`${new Date().toISOString()} - ${req.method} ${req.path}`);+ console.log("Headers:", JSON.stringify(req.headers, null, 2));+ if (req.body && Object.keys(req.body).length > 0) {+ console.log("Body:", JSON.stringify(req.body, null, 2));+ }+ next();+});++// Health check endpoint+router.get("/health", (req: Request, res: Response): void => {+ res.json({ status: "OK", timestamp: getCurrentTimestamp() });+});++// 1. POST /charges - Create payment authorization+router.post(+ "/charges",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { merchantAcceptorResolver, card, amount, type, clearingMode } =+ req.body;++ // Basic validation+ if (!merchantAcceptorResolver || !card || !amount || !type) {+ res.status(400).json({+ error: {+ code: "BAD_REQUEST",+ message:+ "Missing required fields: merchantAcceptorResolver, card, amount, type",+ },+ });+ return;+ }++ // Check for fail card - reject payment if fail card is used+ const failCard = "4000000000000002";+ if (card.number === failCard) {+ const chargeKey = generateId("chg");+ const now = getCurrentTimestamp();++ const failedCharge = {+ key: chargeKey,+ merchantAcceptorRef: {+ key: generateId("mac"),+ version: 1,+ },+ card: {+ maskedNumber: `${card.number.substring(0, 6)}****${card.number.substring(card.number.length - 4)}`,+ },+ amount,+ type,+ clearingMode: clearingMode || "auto",+ status: {+ authentication: "none",+ authorization: "declined",+ clearing: "failed",+ },+ authentication: {+ sca: {+ compliance: "out-of-scope",+ complianceReason: "moto",+ method: "none",+ },+ cvc: "match",+ avs: "none",+ },+ localTransactionDateTime: now,+ fraudLiability: "acquirer",+ authorizationIsoFields: {+ responseCode: "05",+ responseCodeDescription: "Do not honor",+ authorizationCode: "",+ networkCode: "0005",+ systemTraceAuditNumber: Math.floor(+ 100000 + Math.random() * 900000+ ).toString(),+ retrievalReferenceNumber: Math.floor(+ 100000000000 + Math.random() * 900000000000+ ).toString(),+ eci: "01",+ networkSpecificFields: {+ transactionIdentifier: Math.floor(+ 100000000000000 + Math.random() * 900000000000000+ ).toString(),+ cvv2ResultCode: "M",+ },+ },+ created: now,+ version: 1,+ actions: [],+ };++ mockData.charges[chargeKey] = failedCharge;++ res.status(201).json(failedCharge);+ return;+ }++ // Idempotency key is accepted but not enforced in mock server++ const chargeKey = generateId("chg");+ const authCode = generateAuthCode();++ const now = getCurrentTimestamp();+ const charge = {+ key: chargeKey,+ merchantAcceptorRef: {+ key: generateId("mac"),+ version: 1,+ },+ card: {+ maskedNumber: `${card.number.substring(0, 6)}****${card.number.substring(card.number.length - 4)}`,+ },+ amount,+ type,+ clearingMode: clearingMode || "auto",+ status: {+ authentication: "none",+ authorization: "approved",+ clearing: clearingMode === "manual" ? "pending" : "cleared",+ },+ authentication: {+ sca: {+ compliance: "out-of-scope",+ complianceReason: "moto",+ method: "none",+ },+ cvc: "match",+ avs: "none",+ },+ localTransactionDateTime: now,+ fraudLiability: "acquirer",+ authorizationIsoFields: {+ responseCode: "00",+ responseCodeDescription: "Approved",+ authorizationCode: authCode,+ networkCode: "0000",+ systemTraceAuditNumber: Math.floor(+ 100000 + Math.random() * 900000+ ).toString(),+ retrievalReferenceNumber: Math.floor(+ 100000000000 + Math.random() * 900000000000+ ).toString(),+ eci: "01",+ networkSpecificFields: {+ transactionIdentifier: Math.floor(+ 100000000000000 + Math.random() * 900000000000000+ ).toString(),+ cvv2ResultCode: "M",+ },+ },+ created: now,+ version: 1,+ actions: [],+ };++ mockData.charges[chargeKey] = charge;++ res.status(201).json(charge);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 2. POST /charges/:chargeKey/clear - Manually clear charge+router.post(+ "/charges/:chargeKey/clear",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { chargeKey } = req.params;+ const { amount, closeCharge, clearAfter, reference } = req.body;++ const charge = mockData.charges[chargeKey];+ if (!charge) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Charge not found",+ },+ });+ return;+ }++ // Validate amount if provided+ if (+ amount &&+ (typeof amount !== "number" || amount < 1 || amount > 999999999999)+ ) {+ res.status(400).json({+ error: {+ code: "BAD_REQUEST",+ message:+ "Invalid amount: must be integer between 1 and 999999999999",+ },+ });+ return;+ }++ // Determine clearing amount - if not provided, use full charge amount+ const clearingAmount = amount || charge.amount.value;++ // Check if charge is too old (6 months) - mock validation+ const chargeDate = new Date(charge.created);+ const sixMonthsAgo = new Date();+ sixMonthsAgo.setMonth(sixMonthsAgo.getMonth() - 6);++ if (chargeDate < sixMonthsAgo) {+ res.status(409).json({+ error: {+ code: "CONFLICT",+ message: "Charge is too old to be manually cleared",+ details: {+ field: "charge",+ issue: "too-old",+ },+ },+ });+ return;+ }++ const actionKey = generateId("act");+ const clearAction = {+ type: "clearing",+ key: actionKey,+ chargeKey,+ status: "completed",+ reference,+ amount: {+ value: clearingAmount,+ currency: charge.amount.currency,+ },+ closeCharge: closeCharge || false,+ clearAfter: clearAfter || null,+ created: getCurrentTimestamp(),+ lastModified: getCurrentTimestamp(),+ version: 1,+ };++ // Update charge status if fully cleared or closeCharge is true+ if (closeCharge || clearingAmount >= charge.amount.value) {+ charge.status.clearing = "cleared";+ } else {+ charge.status.clearing = "partially_cleared";+ }++ charge.actions.push(clearAction);+ charge.version += 1;++ res.status(201).json(clearAction);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 3. POST /charges/:chargeKey/refund - Process refunds+router.post(+ "/charges/:chargeKey/refund",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { chargeKey } = req.params;+ const { refundAmount, reference, clearAfter, dynamicDescriptor } =+ req.body;++ const charge = mockData.charges[chargeKey];+ if (!charge) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Charge not found",+ },+ });+ return;+ }++ // If refundAmount not provided, refund the full charge amount+ const refundAmountValue = refundAmount || charge.amount.value;++ // Validate refundAmount if provided+ if (+ refundAmount &&+ (typeof refundAmount !== "number" ||+ refundAmount < 1 ||+ refundAmount > 999999999999)+ ) {+ res.status(400).json({+ error: {+ code: "BAD_REQUEST",+ message:+ "Invalid refundAmount: must be integer between 1 and 999999999999",+ },+ });+ return;+ }++ const actionKey = generateId("act");++ // Mock network response+ const networks = ["visa", "mastercard", "american-express", "discover"];+ const network = networks[Math.floor(Math.random() * networks.length)];++ const refundAction = {+ type: "refund",+ key: actionKey,+ chargeKey,+ reference,+ amount: {+ value: refundAmountValue,+ currency: charge.amount.currency,+ },+ status: "success",+ clearAfter: clearAfter || null,+ authorizationResponse: {+ network,+ responseCode: "00",+ responseCodeDescription: "Approved",+ },+ dynamicDescriptor: dynamicDescriptor || null,+ created: getCurrentTimestamp(),+ lastModified: getCurrentTimestamp(),+ version: 1,+ };++ charge.actions.push(refundAction);+ charge.version += 1;++ res.status(201).json(refundAction);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 4. POST /charges/:chargeKey/reverse - Reverse charge (void)+router.post(+ "/charges/:chargeKey/reverse",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { chargeKey } = req.params;+ const { replacementAmount = 0, reference } = req.body;++ const charge = mockData.charges[chargeKey];+ if (!charge) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Charge not found",+ },+ });+ return;+ }++ // Validate replacementAmount if provided+ if (+ replacementAmount &&+ (typeof replacementAmount !== "number" ||+ replacementAmount < 0 ||+ replacementAmount > 999999999999)+ ) {+ res.status(400).json({+ error: {+ code: "BAD_REQUEST",+ message:+ "Invalid replacementAmount: must be integer between 0 and 999999999999",+ },+ });+ return;+ }++ const actionKey = generateId("act");++ // Mock network response+ const networks = ["visa", "mastercard", "american-express", "discover"];+ const network = networks[Math.floor(Math.random() * networks.length)];++ const reversalAction = {+ type: "reversal",+ key: actionKey,+ chargeKey,+ reference,+ replacementAmount: {+ value: replacementAmount,+ currency: charge.amount.currency,+ },+ status: {+ authorization: "approved",+ },+ authorizationResponse: {+ network,+ responseCode: "00",+ responseCodeDescription: "Approved",+ },+ created: getCurrentTimestamp(),+ lastModified: getCurrentTimestamp(),+ version: 1,+ };++ // Update charge status based on replacement amount+ if (replacementAmount === 0) {+ charge.status.authorization = "reversed";+ } else {+ charge.status.authorization = "partially_reversed";+ charge.amount.value = replacementAmount; // Update to replacement amount+ }++ charge.actions.push(reversalAction);+ charge.version += 1;++ res.status(201).json(reversalAction);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 5. GET /charges/:chargeKey - Get charge status (sync)+router.get(+ "/charges/:chargeKey",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { chargeKey } = req.params;++ const charge = mockData.charges[chargeKey];+ if (!charge) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Charge not found",+ },+ });+ return;+ }++ res.json(charge);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 5a. GET /charges/:chargeKey/actions/:actionKey - Get action status (refund sync)+router.get(+ "/charges/:chargeKey/actions/:actionKey",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { chargeKey, actionKey } = req.params;++ const charge = mockData.charges[chargeKey];+ if (!charge) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Charge not found",+ },+ });+ return;+ }++ const action = charge.actions.find((a: any) => a.key === actionKey);+ if (!action) {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: "Action not found",+ },+ });+ return;+ }++ res.json(action);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// 6. POST /processorTokens - Create processor tokens for vaulting+router.post(+ "/processorTokens",+ authenticateBasic,+ (req: Request, res: Response): void => {+ try {+ const { reference, cardData } = req.body;++ if (!cardData || !cardData.number) {+ res.status(400).json({+ error: {+ code: "BAD_REQUEST",+ message: "Missing cardData or number",+ },+ });+ return;+ }++ const processorTokenKey = generateId("ptk");+ const cardNumber = cardData.number.toString();++ // Determine card network based on first digits+ let network = "unknown";+ if (cardNumber.startsWith("4")) network = "visa";+ else if (cardNumber.startsWith("5") || cardNumber.startsWith("2"))+ network = "mastercard";+ else if (cardNumber.startsWith("3")) network = "amex";+ else if (cardNumber.startsWith("6")) network = "discover";++ const processorToken = {+ key: processorTokenKey,+ agentKey: generateId("agt"),+ last4: cardNumber.substring(cardNumber.length - 4),+ status: "active",+ reference,+ cardInfo: [+ {+ infoSource: "card",+ network,+ primaryNetwork: true,+ },+ ],+ created: getCurrentTimestamp(),+ cvcPresent: !!cardData.cvc,+ version: 1,+ };++ mockData.processorTokens[processorTokenKey] = processorToken;++ res.status(201).json(processorToken);+ } catch (error: any) {+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: error.message,+ },+ });+ }+ }+);++// Error handling middleware+router.use(+ (err: Error, req: Request, res: Response, _next: NextFunction): void => {+ console.error("Error:", err);+ res.status(500).json({+ error: {+ code: "INTERNAL_SERVER_ERROR",+ message: "An unexpected error occurred",+ },+ });+ }+);++// 404 handler+router.use((req: Request, res: Response): void => {+ res.status(404).json({+ error: {+ code: "NOT_FOUND",+ message: `Endpoint ${req.method} ${req.originalUrl} not found`,+ },+ });+});++// Log available endpoints for debugging purposes+console.log("\n📋 Silverflow Mock API Endpoints:");+console.log(" GET /health - Health check");+console.log(" POST /charges - Create payment authorization");+console.log(" POST /charges/{chargeKey}/clear - Manually clear charges");+console.log(" POST /charges/{chargeKey}/refund - Process refunds");+console.log(" POST /charges/{chargeKey}/reverse - Reverse charge (void)");+console.log(" GET /charges/{chargeKey} - Get charge status");+console.log(+ " GET /charges/{chargeKey}/actions/{actionKey} - Get action status"+);+console.log(" POST /processorTokens - Create processor tokens");+console.log("\n🔐 Authentication (SignatureKey format):");+console.log(" auth_type: SignatureKey");+console.log(" api_key: apk-testkey123");+console.log(" key1: testsecret456 (merchant_acceptor_key)");+console.log(" api_secret: testsecret456");+console.log("\n📖 Use Basic Auth with base64 encoded api_key:api_secret");+console.log(+ " Example: Authorization: Basic <base64(apk-testkey123:testsecret456)>"+);++export default router;diff --git a/cypress-tests/cypress/e2e/configs/mock-server/Creds.json b/cypress-tests/cypress/e2e/configs/mock-server/Creds.jsonnew file mode 100644index 0000000000..dbe1719fd2--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/mock-server/Creds.json@@ -0,0 +1,16 @@+{+ "celero": {+ "connector_account_details": {+ "auth_type": "HeaderKey",+ "api_key": "celero-test-api-key-123"+ }+ },+ "silverflow": {+ "connector_account_details": {+ "auth_type": "SignatureKey",+ "api_key": "apk-testkey123",+ "key1": "testsecret456",+ "api_secret": "testsecret456"+ }+ }+}diff --git a/cypress-tests/cypress/e2e/configs/mock-server/Silverflow.js b/cypress-tests/cypress/e2e/configs/mock-server/Silverflow.jsdeleted file mode 100644index 5fe6ef19b4..0000000000--- a/cypress-tests/cypress/e2e/configs/mock-server/Silverflow.js+++ /dev/null@@ -1,665 +0,0 @@-/* eslint-disable no-console */-import express from "express";-import cors from "cors";--const app = express();-const PORT = process.env.PORT || 3010;--// Middleware-app.use(cors());-app.use(express.json());-app.use(express.urlencoded({ extended: true }));--// Mock data storage-const mockData = {- charges: {},- processorTokens: {},-};--// Mock API credentials-const validCredentials = {- "apk-1wtRxni5IsPsSpBLWpwr": "FWtnOOHAjbD6rNxWWEeVOCj7JXSEPGJQ",- "apk-testkey123": "testsecret456",- "api-silverflow": "depends_on_mockserver",-};--// Helper functions-function generateId(prefix) {- return `${prefix}-${Math.random().toString(36).substr(2, 16)}`;-}--function generateAuthCode() {- return Math.floor(100000 + Math.random() * 900000).toString();-}--function getCurrentTimestamp() {- return new Date().toISOString();-}--// Authentication middleware-function authenticateBasic(req, res, next) {- const authHeader = req.headers.authorization;-- if (!authHeader || !authHeader.startsWith("Basic ")) {- return res.status(401).json({- error: {- code: "AUTHENTICATION_REQUIRED",- message: "Missing or invalid Authorization header",- },- });- }-- try {- const base64Credentials = authHeader.split(" ")[1];- const credentials = Buffer.from(base64Credentials, "base64").toString(- "ascii"- );- const [apiKey, apiSecret] = credentials.split(":");-- if (!validCredentials[apiKey] || validCredentials[apiKey] !== apiSecret) {- return res.status(401).json({- error: {- code: "INVALID_CREDENTIALS",- message: "Invalid API key or secret",- },- });- }-- req.apiKey = apiKey;- next();- } catch (error) {- return res.status(401).json({- error: {- code: "AUTHENTICATION_ERROR",- message: `Invalid authorization format: ${error}`,- },- });- }-}--// Logging middleware-app.use((req, res, next) => {- console.log(`${new Date().toISOString()} - ${req.method} ${req.path}`);- console.log("Headers:", JSON.stringify(req.headers, null, 2));- if (req.body && Object.keys(req.body).length > 0) {- console.log("Body:", JSON.stringify(req.body, null, 2));- }- next();-});--// Health check endpoint-app.get("/health", (req, res) => {- res.json({ status: "OK", timestamp: getCurrentTimestamp() });-});--// 1. POST /charges - Create payment authorization-app.post("/charges", authenticateBasic, (req, res) => {- try {- const { merchantAcceptorResolver, card, amount, type, clearingMode } =- req.body;-- // Basic validation- if (!merchantAcceptorResolver || !card || !amount || !type) {- return res.status(400).json({- error: {- code: "BAD_REQUEST",- message:- "Missing required fields: merchantAcceptorResolver, card, amount, type",- },- });- }-- // Check for fail card - reject payment if fail card is used- const failCard = "4000000000000002";- if (card.number === failCard) {- const chargeKey = generateId("chg");- const now = getCurrentTimestamp();-- const failedCharge = {- key: chargeKey,- merchantAcceptorRef: {- key: generateId("mac"),- version: 1,- },- card: {- maskedNumber: `${card.number.substring(0, 6)}****${card.number.substring(card.number.length - 4)}`,- },- amount,- type,- clearingMode: clearingMode || "auto",- status: {- authentication: "none",- authorization: "declined",- clearing: "failed",- },- authentication: {- sca: {- compliance: "out-of-scope",- complianceReason: "moto",- method: "none",- },- cvc: "match",- avs: "none",- },- localTransactionDateTime: now,- fraudLiability: "acquirer",- authorizationIsoFields: {- responseCode: "05",- responseCodeDescription: "Do not honor",- authorizationCode: "",- networkCode: "0005",- systemTraceAuditNumber: Math.floor(- 100000 + Math.random() * 900000- ).toString(),- retrievalReferenceNumber: Math.floor(- 100000000000 + Math.random() * 900000000000- ).toString(),- eci: "01",- networkSpecificFields: {- transactionIdentifier: Math.floor(- 100000000000000 + Math.random() * 900000000000000- ).toString(),- cvv2ResultCode: "M",- },- },- created: now,- version: 1,- actions: [],- };-- mockData.charges[chargeKey] = failedCharge;-- return res.status(201).json(failedCharge);- }-- // Idempotency key is accepted but not enforced in mock server-- const chargeKey = generateId("chg");- const authCode = generateAuthCode();-- const now = getCurrentTimestamp();- const charge = {- key: chargeKey,- merchantAcceptorRef: {- key: generateId("mac"),- version: 1,- },- card: {- maskedNumber: `${card.number.substring(0, 6)}****${card.number.substring(card.number.length - 4)}`,- },- amount,- type,- clearingMode: clearingMode || "auto",- status: {- authentication: "none",- authorization: "approved",- clearing: clearingMode === "manual" ? "pending" : "cleared",- },- authentication: {- sca: {- compliance: "out-of-scope",- complianceReason: "moto",- method: "none",- },- cvc: "match",- avs: "none",- },- localTransactionDateTime: now,- fraudLiability: "acquirer",- authorizationIsoFields: {- responseCode: "00",- responseCodeDescription: "Approved",- authorizationCode: authCode,- networkCode: "0000",- systemTraceAuditNumber: Math.floor(- 100000 + Math.random() * 900000- ).toString(),- retrievalReferenceNumber: Math.floor(- 100000000000 + Math.random() * 900000000000- ).toString(),- eci: "01",- networkSpecificFields: {- transactionIdentifier: Math.floor(- 100000000000000 + Math.random() * 900000000000000- ).toString(),- cvv2ResultCode: "M",- },- },- created: now,- version: 1,- actions: [],- };-- mockData.charges[chargeKey] = charge;-- res.status(201).json(charge);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// 2. POST /charges/:chargeKey/clear - Manually clear charge-app.post("/charges/:chargeKey/clear", authenticateBasic, (req, res) => {- try {- const { chargeKey } = req.params;- const { amount, closeCharge, clearAfter, reference } = req.body;-- const charge = mockData.charges[chargeKey];- if (!charge) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Charge not found",- },- });- }-- // Validate amount if provided- if (- amount &&- (typeof amount !== "number" || amount < 1 || amount > 999999999999)- ) {- return res.status(400).json({- error: {- code: "BAD_REQUEST",- message: "Invalid amount: must be integer between 1 and 999999999999",- },- });- }-- // Determine clearing amount - if not provided, use full charge amount- const clearingAmount = amount || charge.amount.value;-- // Check if charge is too old (6 months) - mock validation- const chargeDate = new Date(charge.created);- const sixMonthsAgo = new Date();- sixMonthsAgo.setMonth(sixMonthsAgo.getMonth() - 6);-- if (chargeDate < sixMonthsAgo) {- return res.status(409).json({- error: {- code: "CONFLICT",- message: "Charge is too old to be manually cleared",- details: {- field: "charge",- issue: "too-old",- },- },- });- }-- const actionKey = generateId("act");- const clearAction = {- type: "clearing",- key: actionKey,- chargeKey,- status: "completed",- reference,- amount: {- value: clearingAmount,- currency: charge.amount.currency,- },- closeCharge: closeCharge || false,- clearAfter: clearAfter || null,- created: getCurrentTimestamp(),- lastModified: getCurrentTimestamp(),- version: 1,- };-- // Update charge status if fully cleared or closeCharge is true- if (closeCharge || clearingAmount >= charge.amount.value) {- charge.status.clearing = "cleared";- } else {- charge.status.clearing = "partially_cleared";- }-- charge.actions.push(clearAction);- charge.version += 1;-- res.status(201).json(clearAction);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// 3. POST /charges/:chargeKey/refund - Process refunds-app.post("/charges/:chargeKey/refund", authenticateBasic, (req, res) => {- try {- const { chargeKey } = req.params;- const { refundAmount, reference, clearAfter, dynamicDescriptor } = req.body;-- const charge = mockData.charges[chargeKey];- if (!charge) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Charge not found",- },- });- }-- // If refundAmount not provided, refund the full charge amount- const refundAmountValue = refundAmount || charge.amount.value;-- // Validate refundAmount if provided- if (- refundAmount &&- (typeof refundAmount !== "number" ||- refundAmount < 1 ||- refundAmount > 999999999999)- ) {- return res.status(400).json({- error: {- code: "BAD_REQUEST",- message:- "Invalid refundAmount: must be integer between 1 and 999999999999",- },- });- }-- const actionKey = generateId("act");-- // Mock network response- const networks = ["visa", "mastercard", "american-express", "discover"];- const network = networks[Math.floor(Math.random() * networks.length)];-- const refundAction = {- type: "refund",- key: actionKey,- chargeKey,- reference,- amount: {- value: refundAmountValue,- currency: charge.amount.currency,- },- status: "success",- clearAfter: clearAfter || null,- authorizationResponse: {- network,- responseCode: "00",- responseCodeDescription: "Approved",- },- dynamicDescriptor: dynamicDescriptor || null,- created: getCurrentTimestamp(),- lastModified: getCurrentTimestamp(),- version: 1,- };-- charge.actions.push(refundAction);- charge.version += 1;-- res.status(201).json(refundAction);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// 4. POST /charges/:chargeKey/reverse - Reverse charge (void)-app.post("/charges/:chargeKey/reverse", authenticateBasic, (req, res) => {- try {- const { chargeKey } = req.params;- const { replacementAmount = 0, reference } = req.body;-- const charge = mockData.charges[chargeKey];- if (!charge) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Charge not found",- },- });- }-- // Validate replacementAmount if provided- if (- replacementAmount &&- (typeof replacementAmount !== "number" ||- replacementAmount < 0 ||- replacementAmount > 999999999999)- ) {- return res.status(400).json({- error: {- code: "BAD_REQUEST",- message:- "Invalid replacementAmount: must be integer between 0 and 999999999999",- },- });- }-- const actionKey = generateId("act");-- // Mock network response- const networks = ["visa", "mastercard", "american-express", "discover"];- const network = networks[Math.floor(Math.random() * networks.length)];-- const reversalAction = {- type: "reversal",- key: actionKey,- chargeKey,- reference,- replacementAmount: {- value: replacementAmount,- currency: charge.amount.currency,- },- status: {- authorization: "approved",- },- authorizationResponse: {- network,- responseCode: "00",- responseCodeDescription: "Approved",- },- created: getCurrentTimestamp(),- lastModified: getCurrentTimestamp(),- version: 1,- };-- // Update charge status based on replacement amount- if (replacementAmount === 0) {- charge.status.authorization = "reversed";- } else {- charge.status.authorization = "partially_reversed";- charge.amount.value = replacementAmount; // Update to replacement amount- }-- charge.actions.push(reversalAction);- charge.version += 1;-- res.status(201).json(reversalAction);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// 5. GET /charges/:chargeKey - Get charge status (sync)-app.get("/charges/:chargeKey", authenticateBasic, (req, res) => {- try {- const { chargeKey } = req.params;-- const charge = mockData.charges[chargeKey];- if (!charge) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Charge not found",- },- });- }-- res.json(charge);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// 5a. GET /charges/:chargeKey/actions/:actionKey - Get action status (refund sync)-app.get(- "/charges/:chargeKey/actions/:actionKey",- authenticateBasic,- (req, res) => {- try {- const { chargeKey, actionKey } = req.params;-- const charge = mockData.charges[chargeKey];- if (!charge) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Charge not found",- },- });- }-- const action = charge.actions.find((a) => a.key === actionKey);- if (!action) {- return res.status(404).json({- error: {- code: "NOT_FOUND",- message: "Action not found",- },- });- }-- res.json(action);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }- }-);--// 6. POST /processorTokens - Create processor tokens for vaulting-app.post("/processorTokens", authenticateBasic, (req, res) => {- try {- const { reference, cardData } = req.body;-- if (!cardData || !cardData.number) {- return res.status(400).json({- error: {- code: "BAD_REQUEST",- message: "Missing cardData or number",- },- });- }-- const processorTokenKey = generateId("ptk");- const cardNumber = cardData.number.toString();-- // Determine card network based on first digits- let network = "unknown";- if (cardNumber.startsWith("4")) network = "visa";- else if (cardNumber.startsWith("5") || cardNumber.startsWith("2"))- network = "mastercard";- else if (cardNumber.startsWith("3")) network = "amex";- else if (cardNumber.startsWith("6")) network = "discover";-- const processorToken = {- key: processorTokenKey,- agentKey: generateId("agt"),- last4: cardNumber.substring(cardNumber.length - 4),- status: "active",- reference,- cardInfo: [- {- infoSource: "card",- network,- primaryNetwork: true,- },- ],- created: getCurrentTimestamp(),- cvcPresent: !!cardData.cvc,- version: 1,- };-- mockData.processorTokens[processorTokenKey] = processorToken;-- res.status(201).json(processorToken);- } catch (error) {- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: error.message,- },- });- }-});--// Error handling middleware-// eslint-disable-next-line no-unused-vars-app.use((err, req, res, next) => {- console.error("Error:", err);- res.status(500).json({- error: {- code: "INTERNAL_SERVER_ERROR",- message: "An unexpected error occurred",- },- });-});--// 404 handler-app.use((req, res) => {- res.status(404).json({- error: {- code: "NOT_FOUND",- message: `Endpoint ${req.method} ${req.originalUrl} not found`,- },- });-});--// Start server-app.listen(PORT, () => {- console.log(`🚀 Silverflow Mock Server running on port ${PORT}`);- console.log(`📍 Server URL: http://localhost:${PORT}`);- console.log("\n📋 Available Endpoints:");- console.log(" GET /health - Health check");- console.log(" POST /charges - Create payment authorization");- console.log(" POST /charges/{chargeKey}/clear - Manually clear charges");- console.log(" POST /charges/{chargeKey}/refund - Process refunds");- console.log(" POST /charges/{chargeKey}/reverse - Reverse charge (void)");- console.log(" GET /charges/{chargeKey} - Get charge status");- console.log(- " GET /charges/{chargeKey}/actions/{actionKey} - Get action status"- );- console.log(" POST /processorTokens - Create processor tokens");- console.log("\n🔐 Authentication (SignatureKey format):");- console.log(" auth_type: SignatureKey");- console.log(" api_key: apk-testkey123");- console.log(" key1: testsecret456 (merchant_acceptor_key)");- console.log(" api_secret: testsecret456");- console.log("\n📖 Use Basic Auth with base64 encoded api_key:api_secret");- console.log(- " Example: Authorization: Basic <base64(apk-testkey123:testsecret456)>"- );- console.log("\n💡 Note: Silverflow depends on mockserver");-});--export default app;diff --git a/cypress-tests/cypress/e2e/configs/mock-server/mockserver.ts b/cypress-tests/cypress/e2e/configs/mock-server/mockserver.tsnew file mode 100644index 0000000000..30d94e78dc--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/mock-server/mockserver.ts@@ -0,0 +1,62 @@+/* eslint-disable no-console */+import * as express from "express";+import cors from "cors";+import { Server } from "http";+import router from "./router.ts";++// Type declarations+type Express = express.Express;+// @ts-ignore - Ignore the missing type declaration for router++// Create the Express application+const app: Express = express.default();+const MOCKSERVER_PORT: number = parseInt(+ process.env.MOCKSERVER_PORT || "3010",+ 10+);++// Apply middleware+app.use(cors());+app.use(express.default.json());+app.use(express.default.urlencoded({ extended: true }));++// Use the router for all routes+app.use(router);++// Function to start the server+function startServer(): Server {+ const server: Server = app.listen(MOCKSERVER_PORT, () => {+ console.log(`🚀 Mock Server running on port ${MOCKSERVER_PORT}`);+ console.log(`📍 Server URL: http://localhost:${MOCKSERVER_PORT}`);+ console.log("\n📋 Available Routes:");+ console.log(" GET /health - Health check");+ });++ // Handle port already in use error+ // eslint-disable-next-line no-undef+ server.on("error", (error: NodeJS.ErrnoException) => {+ if (error.code === "EADDRINUSE") {+ console.error(`❌ ERROR: Port ${MOCKSERVER_PORT} is already in use!`);+ console.error(+ `Please make sure the port is available or set a different port using the MOCKSERVER_PORT environment variable.`+ );+ process.exit(1);+ } else {+ console.error(`❌ ERROR: Failed to start server:`, error.message);+ process.exit(1);+ }+ });++ // Handle graceful shutdown+ process.on("SIGINT", () => {+ console.log("Shutting down mock server...");+ server.close(() => {+ console.log("Mock server has been terminated");+ process.exit(0);+ });+ });++ return server;+}++startServer();diff --git a/cypress-tests/cypress/e2e/configs/mock-server/router.ts b/cypress-tests/cypress/e2e/configs/mock-server/router.tsnew file mode 100644index 0000000000..f1491773a6--- /dev/null+++ b/cypress-tests/cypress/e2e/configs/mock-server/router.ts@@ -0,0 +1,89 @@+/* eslint-disable no-console */+import * as express from "express";+import type {+ Request,+ Response,+ NextFunction,+ Router,+ RequestHandler,+} from "express";+// Import from TypeScript version+import silverflowApp from "./Connectors/Silverflow.ts";+import celeroApp from "./Connectors/Celero.ts";++// TODO: Update to import from TypeScript version once fully tested+// import silverflowApp from "./Silverflow";++interface MockRouters {+ [key: string]: RequestHandler;+}++const mockRouters: MockRouters = {+ silverflow: silverflowApp,+ celero: celeroApp,+};++// Create a router+const router: Router = express.default.Router();++// Log requests to the router+function logRequest(req: Request, res: Response, next: NextFunction): void {+ console.log(`Router: ${req.method} ${req.path}`);+ next();+}++// Health check function+function healthCheck(req: Request, res: Response): void {+ res.json({+ status: "OK",+ service: "Router",+ timestamp: new Date().toISOString(),+ message: "Router is functioning correctly",+ });+}++// Error handling function+function handleErrors(+ err: Error,+ req: Request,+ res: Response,+ _next: NextFunction+): void {+ console.error("Router Error:", err);+ res.status(500).json({+ error: {+ code: "ROUTER_ERROR",+ message: "An error occurred in the router",+ details: err.message,+ },+ });+}++// Apply middleware+router.use(logRequest);++// Define direct routes+router.get("/health", healthCheck);++// Forward routes for all mock routers+for (const routerName of Object.keys(mockRouters)) {+ const name = routerName;+ const routerApp = mockRouters[routerName];+ console.log(`CONNECTOR /${name}`);+ router.use(`/${name}`, (req: Request, res: Response, next: NextFunction) => {+ // Modify the path to remove the router name prefix+ const originalUrl = req.url;+ req.url = originalUrl.replace(new RegExp(`^\\/${name}`), "");++ // Forward to the appropriate app+ routerApp(req, res, next);++ // Restore the original URL after processing the request+ req.url = originalUrl;+ });+}++// Error handling+router.use(handleErrors);++export default router;diff --git a/cypress-tests/eslint.config.js b/cypress-tests/eslint.config.jsindex e7f63628d5..da3f60fd22 100644--- a/cypress-tests/eslint.config.js+++ b/cypress-tests/eslint.config.js@@ -3,6 +3,7 @@ import eslintConfigPrettier from "eslint-config-prettier";import pluginCypress from "eslint-plugin-cypress/flat";import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";import globals from "globals";+import tseslint from "typescript-eslint";/** @type {import('eslint').Linter.Config[]} */export default [@@ -10,6 +11,20 @@ export default [pluginCypress.configs.recommended,eslintPluginPrettierRecommended,eslintConfigPrettier,+ ...tseslint.configs.recommended,+ {+ files: ["**/*.ts", "**/*.tsx"],+ rules: {+ "@typescript-eslint/no-explicit-any": "off",+ "@typescript-eslint/no-unused-vars": [+ "warn",+ { argsIgnorePattern: "^_.*$" },+ ],+ "@typescript-eslint/explicit-module-boundary-types": "off",+ "@typescript-eslint/ban-ts-comment": "off",+ "@typescript-eslint/no-non-null-assertion": "off",+ },+ },{ignores: ["dist/**", "build/**", "node_modules/**"],},@@ -21,18 +36,17 @@ export default [},},rules: {- "no-unused-vars": "error",+ "no-unused-vars": ["error", { argsIgnorePattern: "^_.*$" }],"no-undef": "error","no-console": "warn","prefer-const": "warn",-"cypress/assertion-before-screenshot": "warn","cypress/no-assigning-return-values": "warn",+ "@typescript-eslint/no-unused-expressions": "off","cypress/no-force": "warn","cypress/no-unnecessary-waiting": "warn","cypress/no-async-tests": "error","cypress/unsafe-to-chain-command": "warn",-"prettier/prettier": "error",},},diff --git a/cypress-tests/package-lock.json b/cypress-tests/package-lock.jsonindex 7f36d9c563..fe90d88890 100644--- a/cypress-tests/package-lock.json+++ b/cypress-tests/package-lock.json@@ -13,16 +13,36 @@"express": "^5.1.0"},"devDependencies": {- "@eslint/js": "^9.32.0",- "cypress": "^14.5.3",+ "@eslint/js": "^9.33.0",+ "@types/cors": "^2.8.19",+ "@types/express": "^5.0.3",+ "@types/node": "^24.2.1",+ "cypress": "^14.5.4","cypress-mochawesome-reporter": "^4.0.0","eslint": "^9.32.0","eslint-config-prettier": "^10.1.8","eslint-plugin-cypress": "^5.1.0",- "eslint-plugin-prettier": "^5.5.3",+ "eslint-plugin-import": "^2.32.0",+ "eslint-plugin-prettier": "^5.5.4","globals": "^16.3.0","jsqr": "^1.4.0",- "prettier": "^3.6.2"+ "prettier": "^3.6.2",+ "ts-node": "^10.9.2",+ "typescript": "^5.9.2",+ "typescript-eslint": "^8.39.1"+ }+ },+ "node_modules/@cspotcode/source-map-support": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "0.3.9"+ },+ "engines": {+ "node": ">=12"}},"node_modules/@cypress/request": {@@ -77,9 +97,9 @@}},"node_modules/@eslint-community/eslint-utils": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz",- "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==",+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",+ "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==","dev": true,"license": "MIT","dependencies": {@@ -194,9 +214,9 @@}},"node_modules/@eslint/js": {- "version": "9.32.0",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz",- "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==",+ "version": "9.33.0",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.33.0.tgz",+ "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==","dev": true,"license": "MIT","engines": {@@ -422,6 +442,72 @@"url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz",+ "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.9",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.0.3",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },"node_modules/@pkgr/core": {"version": "0.2.7","resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.7.tgz",@@ -435,6 +521,72 @@"url": "https://opencollective.com/pkgr"}},+ "node_modules/@rtsao/scc": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz",+ "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node10": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",+ "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node12": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",+ "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node14": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",+ "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node16": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",+ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/body-parser": {+ "version": "1.19.6",+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/connect": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/connect": {+ "version": "3.4.38",+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/cors": {+ "version": "2.8.19",+ "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz",+ "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },"node_modules/@types/estree": {"version": "1.0.6","resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",@@ -442,6 +594,38 @@"dev": true,"license": "MIT"},+ "node_modules/@types/express": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.3.tgz",+ "integrity": "sha512-wGA0NX93b19/dZC1J18tKWVIYWyyF2ZjT9vin/NRu0qzzvfVzWjs04iq2rQ3H65vCTQYlRqs3YHfY7zjdV+9Kw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/body-parser": "*",+ "@types/express-serve-static-core": "^5.0.0",+ "@types/serve-static": "*"+ }+ },+ "node_modules/@types/express-serve-static-core": {+ "version": "5.0.7",+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.0.7.tgz",+ "integrity": "sha512-R+33OsgWw7rOhD1emjU7dzCDHucJrgJXMA5PYCzJxVil0dsyx5iBEPHqpPfiKNJQb7lZ1vxwoLR4Z87bBUpeGQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "@types/qs": "*",+ "@types/range-parser": "*",+ "@types/send": "*"+ }+ },+ "node_modules/@types/http-errors": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/json-schema": {"version": "7.0.15","resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",@@ -449,15 +633,65 @@"dev": true,"license": "MIT"},+ "node_modules/@types/json5": {+ "version": "0.0.29",+ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",+ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/mime": {+ "version": "1.3.5",+ "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",+ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",+ "dev": true,+ "license": "MIT"+ },"node_modules/@types/node": {- "version": "22.10.1",- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.1.tgz",- "integrity": "sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==",+ "version": "24.2.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz",+ "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~7.10.0"+ }+ },+ "node_modules/@types/qs": {+ "version": "6.14.0",+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",+ "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/range-parser": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/send": {+ "version": "0.17.5",+ "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.5.tgz",+ "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/mime": "^1",+ "@types/node": "*"+ }+ },+ "node_modules/@types/serve-static": {+ "version": "1.15.8",+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.8.tgz",+ "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==","dev": true,"license": "MIT",- "optional": true,"dependencies": {- "undici-types": "~6.20.0"+ "@types/http-errors": "*",+ "@types/node": "*",+ "@types/send": "*"}},"node_modules/@types/sinonjs__fake-timers": {@@ -485,150 +719,421 @@"@types/node": "*"}},- "node_modules/accepts": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",- "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.39.1.tgz",+ "integrity": "sha512-yYegZ5n3Yr6eOcqgj2nJH8cH/ZZgF+l0YIdKILSDjYFRjgYQMgv/lRjV5Z7Up04b9VYUondt8EPMqg7kTWgJ2g==",+ "dev": true,"license": "MIT","dependencies": {- "mime-types": "^3.0.0",- "negotiator": "^1.0.0"+ "@eslint-community/regexpp": "^4.10.0",+ "@typescript-eslint/scope-manager": "8.39.1",+ "@typescript-eslint/type-utils": "8.39.1",+ "@typescript-eslint/utils": "8.39.1",+ "@typescript-eslint/visitor-keys": "8.39.1",+ "graphemer": "^1.4.0",+ "ignore": "^7.0.0",+ "natural-compare": "^1.4.0",+ "ts-api-utils": "^2.1.0"},"engines": {- "node": ">= 0.6"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^8.39.1",+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/accepts/node_modules/mime-db": {- "version": "1.54.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {+ "version": "7.0.5",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",+ "dev": true,"license": "MIT","engines": {- "node": ">= 0.6"+ "node": ">= 4"}},- "node_modules/accepts/node_modules/mime-types": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",- "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",+ "node_modules/@typescript-eslint/parser": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.39.1.tgz",+ "integrity": "sha512-pUXGCuHnnKw6PyYq93lLRiZm3vjuslIy7tus1lIQTYVK9bL8XBgJnCWm8a0KcTtHC84Yya1Q6rtll+duSMj0dg==",+ "dev": true,"license": "MIT","dependencies": {- "mime-db": "^1.54.0"+ "@typescript-eslint/scope-manager": "8.39.1",+ "@typescript-eslint/types": "8.39.1",+ "@typescript-eslint/typescript-estree": "8.39.1",+ "@typescript-eslint/visitor-keys": "8.39.1",+ "debug": "^4.3.4"},"engines": {- "node": ">= 0.6"- }- },- "node_modules/acorn": {- "version": "8.15.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"},- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT","peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/aggregate-error": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",- "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",+ "node_modules/@typescript-eslint/project-service": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.39.1.tgz",+ "integrity": "sha512-8fZxek3ONTwBu9ptw5nCKqZOSkXshZB7uAxuFF0J/wTMkKydjXCzqqga7MlFMpHi9DoG4BadhmTkITBcg8Aybw==","dev": true,"license": "MIT","dependencies": {- "clean-stack": "^2.0.0",- "indent-string": "^4.0.0"+ "@typescript-eslint/tsconfig-utils": "^8.39.1",+ "@typescript-eslint/types": "^8.39.1",+ "debug": "^4.3.4"},"engines": {- "node": ">=8"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ajv": {- "version": "6.12.6",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.39.1.tgz",+ "integrity": "sha512-RkBKGBrjgskFGWuyUGz/EtD8AF/GW49S21J8dvMzpJitOF1slLEbbHnNEtAHtnDAnx8qDEdRrULRnWVx27wGBw==","dev": true,"license": "MIT","dependencies": {- "fast-deep-equal": "^3.1.1",- "fast-json-stable-stringify": "^2.0.0",- "json-schema-traverse": "^0.4.1",- "uri-js": "^4.2.2"+ "@typescript-eslint/types": "8.39.1",+ "@typescript-eslint/visitor-keys": "8.39.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"}},- "node_modules/ansi-colors": {- "version": "4.1.3",- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",- "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",+ "node_modules/@typescript-eslint/tsconfig-utils": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.39.1.tgz",+ "integrity": "sha512-ePUPGVtTMR8XMU2Hee8kD0Pu4NDE1CN9Q1sxGSGd/mbOtGZDM7pnhXNJnzW63zk/q+Z54zVzj44HtwXln5CvHA==","dev": true,"license": "MIT","engines": {- "node": ">=6"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ansi-escapes": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",+ "node_modules/@typescript-eslint/type-utils": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.39.1.tgz",+ "integrity": "sha512-gu9/ahyatyAdQbKeHnhT4R+y3YLtqqHyvkfDxaBYk97EcbfChSJXyaJnIL3ygUv7OuZatePHmQvuH5ru0lnVeA==","dev": true,"license": "MIT","dependencies": {- "type-fest": "^0.21.3"+ "@typescript-eslint/types": "8.39.1",+ "@typescript-eslint/typescript-estree": "8.39.1",+ "@typescript-eslint/utils": "8.39.1",+ "debug": "^4.3.4",+ "ts-api-utils": "^2.1.0"},"engines": {- "node": ">=8"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "node_modules/@typescript-eslint/types": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.39.1.tgz",+ "integrity": "sha512-7sPDKQQp+S11laqTrhHqeAbsCfMkwJMrV7oTDvtDds4mEofJYir414bYKUEb8YPUm9QL3U+8f6L6YExSoAGdQw==","dev": true,"license": "MIT","engines": {- "node": ">=8"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"}},- "node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.39.1.tgz",+ "integrity": "sha512-EKkpcPuIux48dddVDXyQBlKdeTPMmALqBUbEk38McWv0qVEZwOpVJBi7ugK5qVNgeuYjGNQxrrnoM/5+TI/BPw==","dev": true,"license": "MIT","dependencies": {- "color-convert": "^2.0.1"+ "@typescript-eslint/project-service": "8.39.1",+ "@typescript-eslint/tsconfig-utils": "8.39.1",+ "@typescript-eslint/types": "8.39.1",+ "@typescript-eslint/visitor-keys": "8.39.1",+ "debug": "^4.3.4",+ "fast-glob": "^3.3.2",+ "is-glob": "^4.0.3",+ "minimatch": "^9.0.4",+ "semver": "^7.6.0",+ "ts-api-utils": "^2.1.0"},"engines": {- "node": ">=8"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/anymatch": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.39.1.tgz",+ "integrity": "sha512-VF5tZ2XnUSTuiqZFXCZfZs1cgkdd3O/sSYmdo2EpSyDlC86UM/8YytTmKnehOW3TGAlivqTDT6bS87B/GQ/jyg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.7.0",+ "@typescript-eslint/scope-manager": "8.39.1",+ "@typescript-eslint/types": "8.39.1",+ "@typescript-eslint/typescript-estree": "8.39.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.39.1.tgz",+ "integrity": "sha512-W8FQi6kEh2e8zVhQ0eeRnxdvIoOkAp/CPAahcNio6nO9dsIwb9b34z90KOlheoyuVf6LSOEdjlkxSkapNEc+4A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.39.1",+ "eslint-visitor-keys": "^4.2.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/accepts/node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/accepts/node_modules/mime-types": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.1.tgz",+ "integrity": "sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/acorn-walk": {+ "version": "8.3.4",+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.11.0"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/aggregate-error": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",+ "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "clean-stack": "^2.0.0",+ "indent-string": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-colors": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/ansi-escapes": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",+ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-fest": "^0.21.3"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==","dev": true,"license": "ISC","peer": true,@@ -661,6 +1166,13 @@],"license": "MIT"},+ "node_modules/arg": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",+ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",+ "dev": true,+ "license": "MIT"+ },"node_modules/argparse": {"version": "2.0.1","resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",@@ -668,6 +1180,128 @@"dev": true,"license": "Python-2.0"},+ "node_modules/array-buffer-byte-length": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",+ "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "is-array-buffer": "^3.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array-includes": {+ "version": "3.1.9",+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz",+ "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.24.0",+ "es-object-atoms": "^1.1.1",+ "get-intrinsic": "^1.3.0",+ "is-string": "^1.1.1",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.findlastindex": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz",+ "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.9",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "es-shim-unscopables": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flat": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz",+ "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flatmap": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz",+ "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/arraybuffer.prototype.slice": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz",+ "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.1",+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "is-array-buffer": "^3.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/asn1": {"version": "0.2.6","resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",@@ -705,6 +1339,16 @@"dev": true,"license": "MIT"},+ "node_modules/async-function": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",+ "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },"node_modules/asynckit": {"version": "0.4.0","resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",@@ -722,6 +1366,22 @@"node": ">= 4.0.0"}},+ "node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/aws-sign2": {"version": "0.7.0","resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",@@ -842,7 +1502,6 @@"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"fill-range": "^7.1.1"},@@ -912,6 +1571,25 @@"node": ">=6"}},+ "node_modules/call-bind": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",+ "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.0",+ "es-define-property": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/call-bind-apply-helpers": {"version": "1.0.2","resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",@@ -1274,6 +1952,13 @@"node": ">= 0.10"}},+ "node_modules/create-require": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",+ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",+ "dev": true,+ "license": "MIT"+ },"node_modules/cross-spawn": {"version": "7.0.6","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",@@ -1290,9 +1975,9 @@}},"node_modules/cypress": {- "version": "14.5.3",- "resolved": "https://registry.npmjs.org/cypress/-/cypress-14.5.3.tgz",- "integrity": "sha512-syLwKjDeMg77FRRx68bytLdlqHXDT4yBVh0/PPkcgesChYDjUZbwxLqMXuryYKzAyJsPsQHUDW1YU74/IYEUIA==",+ "version": "14.5.4",+ "resolved": "https://registry.npmjs.org/cypress/-/cypress-14.5.4.tgz",+ "integrity": "sha512-0Dhm4qc9VatOcI1GiFGVt8osgpPdqJLHzRwcAB5MSD/CAAts3oybvPUPawHyvJZUd8osADqZe/xzMsZ8sDTjXw==","dev": true,"hasInstallScript": true,"license": "MIT",@@ -1413,6 +2098,60 @@"node": ">=0.10"}},+ "node_modules/data-view-buffer": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz",+ "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/data-view-byte-length": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz",+ "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/inspect-js"+ }+ },+ "node_modules/data-view-byte-offset": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz",+ "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/dateformat": {"version": "4.6.3","resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz",@@ -1468,6 +2207,42 @@"dev": true,"license": "MIT"},+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/delayed-stream": {"version": "1.0.0","resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",@@ -1497,6 +2272,19 @@"node": ">=0.3.1"}},+ "node_modules/doctrine": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",+ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/dunder-proto": {"version": "1.0.1","resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",@@ -1575,6 +2363,75 @@"node": ">=8.6"}},+ "node_modules/es-abstract": {+ "version": "1.24.0",+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz",+ "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.2",+ "arraybuffer.prototype.slice": "^1.0.4",+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "data-view-buffer": "^1.0.2",+ "data-view-byte-length": "^1.0.2",+ "data-view-byte-offset": "^1.0.1",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "es-set-tostringtag": "^2.1.0",+ "es-to-primitive": "^1.3.0",+ "function.prototype.name": "^1.1.8",+ "get-intrinsic": "^1.3.0",+ "get-proto": "^1.0.1",+ "get-symbol-description": "^1.1.0",+ "globalthis": "^1.0.4",+ "gopd": "^1.2.0",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "internal-slot": "^1.1.0",+ "is-array-buffer": "^3.0.5",+ "is-callable": "^1.2.7",+ "is-data-view": "^1.0.2",+ "is-negative-zero": "^2.0.3",+ "is-regex": "^1.2.1",+ "is-set": "^2.0.3",+ "is-shared-array-buffer": "^1.0.4",+ "is-string": "^1.1.1",+ "is-typed-array": "^1.1.15",+ "is-weakref": "^1.1.1",+ "math-intrinsics": "^1.1.0",+ "object-inspect": "^1.13.4",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.7",+ "own-keys": "^1.0.1",+ "regexp.prototype.flags": "^1.5.4",+ "safe-array-concat": "^1.1.3",+ "safe-push-apply": "^1.0.0",+ "safe-regex-test": "^1.1.0",+ "set-proto": "^1.0.0",+ "stop-iteration-iterator": "^1.1.0",+ "string.prototype.trim": "^1.2.10",+ "string.prototype.trimend": "^1.0.9",+ "string.prototype.trimstart": "^1.0.8",+ "typed-array-buffer": "^1.0.3",+ "typed-array-byte-length": "^1.0.3",+ "typed-array-byte-offset": "^1.0.4",+ "typed-array-length": "^1.0.7",+ "unbox-primitive": "^1.1.0",+ "which-typed-array": "^1.1.19"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/es-define-property": {"version": "1.0.1","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",@@ -1621,6 +2478,37 @@"node": ">= 0.4"}},+ "node_modules/es-shim-unscopables": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz",+ "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-to-primitive": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz",+ "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7",+ "is-date-object": "^1.0.5",+ "is-symbol": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -1727,23 +2615,127 @@"eslint": ">=7.0.0"}},+ "node_modules/eslint-import-resolver-node": {+ "version": "0.3.9",+ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz",+ "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7",+ "is-core-module": "^2.13.0",+ "resolve": "^1.22.4"+ }+ },+ "node_modules/eslint-import-resolver-node/node_modules/debug": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "node_modules/eslint-module-utils": {+ "version": "2.12.1",+ "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz",+ "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependenciesMeta": {+ "eslint": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-module-utils/node_modules/debug": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },"node_modules/eslint-plugin-cypress": {"version": "5.1.0","resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-5.1.0.tgz","integrity": "sha512-tdLXm4aq9vX2hTtKJTUFD3gdNseMKqsf8+P6hI4TtOPdz1LU4xvTpQBd1++qPAsPZP2lyYh71B5mvzu2lBr4Ow==","dev": true,- "license": "MIT",- "dependencies": {- "globals": "^16.2.0"- },- "peerDependencies": {- "eslint": ">=9"+ "license": "MIT",+ "dependencies": {+ "globals": "^16.2.0"+ },+ "peerDependencies": {+ "eslint": ">=9"+ }+ },+ "node_modules/eslint-plugin-import": {+ "version": "2.32.0",+ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz",+ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rtsao/scc": "^1.1.0",+ "array-includes": "^3.1.9",+ "array.prototype.findlastindex": "^1.2.6",+ "array.prototype.flat": "^1.3.3",+ "array.prototype.flatmap": "^1.3.3",+ "debug": "^3.2.7",+ "doctrine": "^2.1.0",+ "eslint-import-resolver-node": "^0.3.9",+ "eslint-module-utils": "^2.12.1",+ "hasown": "^2.0.2",+ "is-core-module": "^2.16.1",+ "is-glob": "^4.0.3",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.8",+ "object.groupby": "^1.0.3",+ "object.values": "^1.2.1",+ "semver": "^6.3.1",+ "string.prototype.trimend": "^1.0.9",+ "tsconfig-paths": "^3.15.0"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"+ }+ },+ "node_modules/eslint-plugin-import/node_modules/debug": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "node_modules/eslint-plugin-import/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"}},"node_modules/eslint-plugin-prettier": {- "version": "5.5.3",- "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.3.tgz",- "integrity": "sha512-NAdMYww51ehKfDyDhv59/eIItUVzU0Io9H2E8nHNGKEeeqlnci+1gCvrHib6EmZdf6GxF+LCV5K7UC65Ezvw7w==",+ "version": "5.5.4",+ "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.4.tgz",+ "integrity": "sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==","dev": true,"license": "MIT","dependencies": {@@ -1801,6 +2793,19 @@"url": "https://opencollective.com/eslint"}},+ "node_modules/eslint/node_modules/@eslint/js": {+ "version": "9.32.0",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz",+ "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ }+ },"node_modules/espree": {"version": "10.4.0","resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",@@ -2033,6 +3038,36 @@"dev": true,"license": "Apache-2.0"},+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/fast-json-stable-stringify": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",@@ -2047,6 +3082,16 @@"dev": true,"license": "MIT"},+ "node_modules/fastq": {+ "version": "1.19.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },"node_modules/fd-slicer": {"version": "1.1.0","resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",@@ -2102,7 +3147,6 @@"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"to-regex-range": "^5.0.1"},@@ -2176,6 +3220,22 @@"dev": true,"license": "ISC"},+ "node_modules/for-each": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",+ "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/foreground-child": {"version": "3.3.1","resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",@@ -2291,6 +3351,37 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/function.prototype.name": {+ "version": "1.1.8",+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz",+ "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "functions-have-names": "^1.2.3",+ "hasown": "^2.0.2",+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/functions-have-names": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/get-caller-file": {"version": "2.0.5","resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",@@ -2354,6 +3445,24 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/get-symbol-description": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",+ "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/getos": {"version": "3.2.1","resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",@@ -2463,6 +3572,23 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/globalthis": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/gopd": {"version": "1.2.0","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",@@ -2482,6 +3608,26 @@"dev": true,"license": "ISC"},+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-bigints": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",+ "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/has-flag": {"version": "4.0.0","resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",@@ -2492,6 +3638,35 @@"node": ">=8"}},+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-proto": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz",+ "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/has-symbols": {"version": "1.1.0","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",@@ -2680,76 +3855,226 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/indent-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "peer": true,+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/ini": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/internal-slot": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",+ "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "hasown": "^2.0.2",+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-array-buffer": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",+ "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-async-function": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",+ "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async-function": "^1.0.0",+ "call-bound": "^1.0.3",+ "get-proto": "^1.0.1",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-bigint": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz",+ "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-bigints": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-boolean-object": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz",+ "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==","dev": true,"license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },"engines": {- "node": ">=0.8.19"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/indent-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "node_modules/is-callable": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==","dev": true,"license": "MIT","engines": {- "node": ">=8"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/inflight": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==","dev": true,- "license": "ISC",- "peer": true,+ "license": "MIT","dependencies": {- "once": "^1.3.0",- "wrappy": "1"- }- },- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "license": "ISC"- },- "node_modules/ini": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",- "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",- "dev": true,- "license": "ISC",+ "hasown": "^2.0.2"+ },"engines": {- "node": ">=10"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/ipaddr.js": {- "version": "1.9.1",- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "node_modules/is-data-view": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz",+ "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",+ "dev": true,"license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "get-intrinsic": "^1.2.6",+ "is-typed-array": "^1.1.13"+ },"engines": {- "node": ">= 0.10"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-binary-path": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "node_modules/is-date-object": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz",+ "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==","dev": true,"license": "MIT",- "peer": true,"dependencies": {- "binary-extensions": "^2.0.0"+ "call-bound": "^1.0.2",+ "has-tostringtag": "^1.0.2"},"engines": {- "node": ">=8"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},"node_modules/is-extglob": {@@ -2762,6 +4087,22 @@"node": ">=0.10.0"}},+ "node_modules/is-finalizationregistry": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz",+ "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-fullwidth-code-point": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",@@ -2772,6 +4113,25 @@"node": ">=8"}},+ "node_modules/is-generator-function": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz",+ "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "get-proto": "^1.0.0",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -2802,17 +4162,59 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-map": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",+ "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-negative-zero": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz",+ "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-number": {"version": "7.0.0","resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz","integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=0.12.0"}},+ "node_modules/is-number-object": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz",+ "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-path-inside": {"version": "3.0.3","resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",@@ -2840,6 +4242,54 @@"integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==","license": "MIT"},+ "node_modules/is-regex": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",+ "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-set": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",+ "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-shared-array-buffer": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz",+ "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-stream": {"version": "2.0.1","resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",@@ -2853,6 +4303,57 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-string": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz",+ "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-symbol": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz",+ "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "has-symbols": "^1.1.0",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-typed-array": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/is-typedarray": {"version": "1.0.0","resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",@@ -2873,6 +4374,59 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/is-weakmap": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",+ "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz",+ "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakset": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz",+ "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/isarray": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",@@ -2963,7 +4517,20 @@"resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz","integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==","dev": true,- "license": "ISC"+ "license": "ISC"+ },+ "node_modules/json5": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minimist": "^1.2.0"+ },+ "bin": {+ "json5": "lib/cli.js"+ }},"node_modules/jsonfile": {"version": "6.1.0",@@ -3220,6 +4787,13 @@"node": "20 || >=22"}},+ "node_modules/make-error": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",+ "dev": true,+ "license": "ISC"+ },"node_modules/math-intrinsics": {"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",@@ -3257,6 +4831,30 @@"dev": true,"license": "MIT"},+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },"node_modules/mime-db": {"version": "1.52.0","resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",@@ -3674,6 +5272,90 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.assign": {+ "version": "4.1.7",+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",+ "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0",+ "has-symbols": "^1.1.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.fromentries": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz",+ "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.groupby": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz",+ "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.values": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz",+ "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/on-finished": {"version": "2.4.1","resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",@@ -3746,6 +5428,24 @@"dev": true,"license": "MIT"},+ "node_modules/own-keys": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz",+ "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.2.6",+ "object-keys": "^1.1.1",+ "safe-push-apply": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/p-limit": {"version": "3.1.0","resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",@@ -3843,6 +5543,13 @@"node": ">=8"}},+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },"node_modules/path-scurry": {"version": "2.0.0","resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz",@@ -3889,7 +5596,6 @@"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==","dev": true,"license": "MIT",- "peer": true,"engines": {"node": ">=8.6"},@@ -3907,6 +5613,16 @@"node": ">=0.10.0"}},+ "node_modules/possible-typed-array-names": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",+ "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },"node_modules/prelude-ls": {"version": "1.2.1","resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",@@ -4037,6 +5753,27 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },"node_modules/randombytes": {"version": "2.1.0","resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",@@ -4093,6 +5830,50 @@"node": ">=8.10.0"}},+ "node_modules/reflect.getprototypeof": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",+ "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.9",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.7",+ "get-proto": "^1.0.1",+ "which-builtin-type": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/regexp.prototype.flags": {+ "version": "1.5.4",+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz",+ "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-errors": "^1.3.0",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "set-function-name": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/request-progress": {"version": "3.0.0","resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz",@@ -4113,6 +5894,27 @@"node": ">=0.10.0"}},+ "node_modules/resolve": {+ "version": "1.22.10",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/resolve-from": {"version": "4.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",@@ -4137,6 +5939,17 @@"node": ">=8"}},+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },"node_modules/rfdc": {"version": "1.4.1","resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",@@ -4160,6 +5973,30 @@"node": ">= 18"}},+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },"node_modules/rxjs": {"version": "7.8.1","resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",@@ -4170,6 +6007,26 @@"tslib": "^2.1.0"}},+ "node_modules/safe-array-concat": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz",+ "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "get-intrinsic": "^1.2.6",+ "has-symbols": "^1.1.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">=0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -4190,6 +6047,41 @@],"license": "MIT"},+ "node_modules/safe-push-apply": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz",+ "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/safe-regex-test": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz",+ "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-regex": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/safer-buffer": {"version": "2.1.2","resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",@@ -4269,13 +6161,62 @@"integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==","license": "MIT","dependencies": {- "encodeurl": "^2.0.0",- "escape-html": "^1.0.3",- "parseurl": "^1.3.3",- "send": "^1.2.0"+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/set-function-length": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",+ "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-function-name": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "functions-have-names": "^1.2.3",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-proto": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz",+ "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0"},"engines": {- "node": ">= 18"+ "node": ">= 0.4"}},"node_modules/setprototypeof": {@@ -4436,6 +6377,20 @@"node": ">= 0.8"}},+ "node_modules/stop-iteration-iterator": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz",+ "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "internal-slot": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },"node_modules/string-width": {"version": "4.2.3","resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",@@ -4467,6 +6422,65 @@"node": ">=8"}},+ "node_modules/string.prototype.trim": {+ "version": "1.2.10",+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz",+ "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-data-property": "^1.1.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-object-atoms": "^1.0.0",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimend": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz",+ "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimstart": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",+ "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",@@ -4494,6 +6508,16 @@"node": ">=8"}},+ "node_modules/strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },"node_modules/strip-final-newline": {"version": "2.0.0","resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",@@ -4533,6 +6557,19 @@"url": "https://github.com/chalk/supports-color?sponsor=1"}},+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/synckit": {"version": "0.11.8","resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.8.tgz",@@ -4619,7 +6656,6 @@"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==","dev": true,"license": "MIT",- "peer": true,"dependencies": {"is-number": "^7.0.0"},@@ -4659,6 +6695,86 @@"tree-kill": "cli.js"}},+ "node_modules/ts-api-utils": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"+ }+ },+ "node_modules/ts-node": {+ "version": "10.9.2",+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",+ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspotcode/source-map-support": "^0.8.0",+ "@tsconfig/node10": "^1.0.7",+ "@tsconfig/node12": "^1.0.7",+ "@tsconfig/node14": "^1.0.0",+ "@tsconfig/node16": "^1.0.2",+ "acorn": "^8.4.1",+ "acorn-walk": "^8.1.1",+ "arg": "^4.1.0",+ "create-require": "^1.1.0",+ "diff": "^4.0.1",+ "make-error": "^1.1.1",+ "v8-compile-cache-lib": "^3.0.1",+ "yn": "3.1.1"+ },+ "bin": {+ "ts-node": "dist/bin.js",+ "ts-node-cwd": "dist/bin-cwd.js",+ "ts-node-esm": "dist/bin-esm.js",+ "ts-node-script": "dist/bin-script.js",+ "ts-node-transpile-only": "dist/bin-transpile.js",+ "ts-script": "dist/bin-script-deprecated.js"+ },+ "peerDependencies": {+ "@swc/core": ">=1.2.50",+ "@swc/wasm": ">=1.2.50",+ "@types/node": "*",+ "typescript": ">=2.7"+ },+ "peerDependenciesMeta": {+ "@swc/core": {+ "optional": true+ },+ "@swc/wasm": {+ "optional": true+ }+ }+ },+ "node_modules/ts-node/node_modules/diff": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",+ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.3.1"+ }+ },+ "node_modules/tsconfig-paths": {+ "version": "3.15.0",+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",+ "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/json5": "^0.0.29",+ "json5": "^1.0.2",+ "minimist": "^1.2.6",+ "strip-bom": "^3.0.0"+ }+ },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",@@ -4747,13 +6863,147 @@"node": ">= 0.6"}},- "node_modules/undici-types": {- "version": "6.20.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",- "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",+ "node_modules/typed-array-buffer": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",+ "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/typed-array-byte-length": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz",+ "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-byte-offset": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz",+ "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.15",+ "reflect.getprototypeof": "^1.0.9"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-length": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz",+ "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "is-typed-array": "^1.1.13",+ "possible-typed-array-names": "^1.0.0",+ "reflect.getprototypeof": "^1.0.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.2",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",+ "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/typescript-eslint": {+ "version": "8.39.1",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.39.1.tgz",+ "integrity": "sha512-GDUv6/NDYngUlNvwaHM1RamYftxf782IyEDbdj3SeaIHHv8fNQVRC++fITT7kUJV/5rIA/tkoRSSskt6osEfqg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/eslint-plugin": "8.39.1",+ "@typescript-eslint/parser": "8.39.1",+ "@typescript-eslint/typescript-estree": "8.39.1",+ "@typescript-eslint/utils": "8.39.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"+ }+ },+ "node_modules/unbox-primitive": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",+ "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==","dev": true,"license": "MIT",- "optional": true+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-bigints": "^1.0.2",+ "has-symbols": "^1.1.0",+ "which-boxed-primitive": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/undici-types": {+ "version": "7.10.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",+ "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",+ "dev": true,+ "license": "MIT"},"node_modules/universalify": {"version": "2.0.1",@@ -4804,6 +7054,13 @@"uuid": "dist/bin/uuid"}},+ "node_modules/v8-compile-cache-lib": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",+ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/validator": {"version": "13.12.0","resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz",@@ -4854,6 +7111,95 @@"node": ">= 8"}},+ "node_modules/which-boxed-primitive": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz",+ "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-bigint": "^1.1.0",+ "is-boolean-object": "^1.2.1",+ "is-number-object": "^1.1.1",+ "is-string": "^1.1.1",+ "is-symbol": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-builtin-type": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz",+ "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "function.prototype.name": "^1.1.6",+ "has-tostringtag": "^1.0.2",+ "is-async-function": "^2.0.0",+ "is-date-object": "^1.1.0",+ "is-finalizationregistry": "^1.1.0",+ "is-generator-function": "^1.0.10",+ "is-regex": "^1.2.1",+ "is-weakref": "^1.0.2",+ "isarray": "^2.0.5",+ "which-boxed-primitive": "^1.1.0",+ "which-collection": "^1.0.2",+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-collection": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",+ "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-map": "^2.0.3",+ "is-set": "^2.0.3",+ "is-weakmap": "^2.0.2",+ "is-weakset": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-typed-array": {+ "version": "1.1.19",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz",+ "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "for-each": "^0.3.5",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/word-wrap": {"version": "1.2.5","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",@@ -4984,6 +7330,16 @@"fd-slicer": "~1.1.0"}},+ "node_modules/yn": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",+ "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/yocto-queue": {"version": "0.1.0","resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",diff --git a/cypress-tests/package.json b/cypress-tests/package.jsonindex 30d707169e..a03f11e051 100644--- a/cypress-tests/package.json+++ b/cypress-tests/package.json@@ -16,6 +16,8 @@"report:generate": "node scripts/report-generator.js","report:open": "open dashboard/index.html || start dashboard/index.html || xdg-open dashboard/index.html","dashboard:serve": "node scripts/serve-dashboard.js",+ "mockserver": "npx tsx cypress/e2e/configs/mock-server/mockserver.ts",+ "build:ts": "tsc","dashboard": "npm run dashboard:serve","cypress:ci:report": "npm run cypress:ci && npm run report:generate","build": "node scripts/build.js",@@ -26,19 +28,26 @@"author": "Hyperswitch","license": "ISC","dependencies": {- "express": "^5.1.0",- "cors": "^2.8.5"+ "cors": "^2.8.5",+ "express": "^5.1.0"},"devDependencies": {- "@eslint/js": "^9.32.0",- "cypress": "^14.5.3",+ "@eslint/js": "^9.33.0",+ "@types/cors": "^2.8.19",+ "@types/express": "^5.0.3",+ "@types/node": "^24.2.1",+ "cypress": "^14.5.4","cypress-mochawesome-reporter": "^4.0.0","eslint": "^9.32.0","eslint-config-prettier": "^10.1.8","eslint-plugin-cypress": "^5.1.0",- "eslint-plugin-prettier": "^5.5.3",+ "eslint-plugin-import": "^2.32.0",+ "eslint-plugin-prettier": "^5.5.4","globals": "^16.3.0","jsqr": "^1.4.0",- "prettier": "^3.6.2"+ "prettier": "^3.6.2",+ "ts-node": "^10.9.2",+ "typescript": "^5.9.2",+ "typescript-eslint": "^8.39.1"}}diff --git a/cypress-tests/tsconfig.json b/cypress-tests/tsconfig.jsonnew file mode 100644index 0000000000..2bc8a5d91b--- /dev/null+++ b/cypress-tests/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "NodeNext",+ "moduleResolution": "NodeNext",+ "esModuleInterop": true,+ "strict": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "outDir": "dist",+ "rootDir": ".",+ "resolveJsonModule": true,+ "allowImportingTsExtensions": true,+ "noEmit": true+ },+ "include": ["cypress/**/*.ts"],+ "exclude": ["node_modules"]+}