Update: 2026-06-23 16:17:20

This commit is contained in:
Hamza-Ayed
2026-06-23 16:17:20 +03:00
parent bea94ed617
commit c54a8f43fe
4 changed files with 560 additions and 377 deletions

View File

@@ -1,6 +1,8 @@
import '../env/env.dart';
import '../main.dart';
import 'box_name.dart';class AppLink {
import 'box_name.dart';
class AppLink {
static String seferPaymentServer =
'https://walletintaleq.intaleq.xyz/v1/main';
static final String tripzPaymentServer0 = seferPaymentServer;
@@ -15,62 +17,93 @@ import 'box_name.dart';class AppLink {
static String get server {
switch (currentCountry) {
case 'Syria': return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt': return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan': return 'https://api-jordan.siromove.com/siro_v3';
default: return 'https://api.siromove.com/siro_v3';
case 'Syria':
return 'https://api-syria.siromove.com/siro_v3';
case 'Egypt':
return 'https://api-egypt.siromove.com/siro_v3';
case 'Jordan':
return 'https://jordan-siro.intaleqapp.com/backend';
default:
return 'https://api.siromove.com/siro_v3';
}
}
static String get endPoint => server;
static String get syria => 'https://api-syria.siromove.com/siro';
static String get paymentServer {
switch (currentCountry) {
case 'Syria': return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt': return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan': return 'https://wallet-jordan.siromove.com/v1/main';
default: return 'https://wallet.siromove.com/v1/main';
case 'Syria':
return 'https://wallet-syria.siromove.com/v1/main';
case 'Egypt':
return 'https://wallet-egypt.siromove.com/v1/main';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://walletintaleq.intaleq.xyz/v2/main';
default:
return 'https://wallet.siromove.com/v1/main';
}
}
static String get locationServer {
switch (currentCountry) {
case 'Syria': return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt': return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan': return 'https://location-jordan.siromove.com/siro/ride/location';
default: return 'https://location.siromove.com/siro/ride/location';
case 'Syria':
return 'https://location-syria.siromove.com/siro/ride/location';
case 'Egypt':
return 'https://location-egypt.siromove.com/siro/ride/location';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://location.intaleq.xyz/intaleq/ride/location';
default:
return 'https://location.siromove.com/siro/ride/location';
}
}
static String get locationServerSide => locationServer;
static String get mapSaasRoute {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt': return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan': return 'https://map-jordan.siromove.com/api/maps/route';
default: return 'https://map-saas.intaleqapp.com/api/maps/route';
case 'Syria':
return 'https://map-syria.siromove.com/api/maps/route';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/maps/route';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://map-saas.intaleqapp.com/api/maps/route';
default:
return 'https://map-saas.intaleqapp.com/api/maps/route';
}
}
static String get mapSaasPlaces {
switch (currentCountry) {
case 'Syria': return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt': return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan': return 'https://map-jordan.siromove.com/api/geocoding/places';
default: return 'https://map-saas.intaleqapp.com/api/geocoding/places';
case 'Syria':
return 'https://map-syria.siromove.com/api/geocoding/places';
case 'Egypt':
return 'https://map-egypt.siromove.com/api/geocoding/places';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
default:
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
}
}
static String get routeApiBaseUrl {
switch (currentCountry) {
case 'Syria': return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt': return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan': return 'https://routes-jordan.siromove.com/route/v1/driving';
default: return 'https://routes.siromove.com/route/v1/driving';
case 'Syria':
return 'https://routes-syria.siromove.com/route/v1/driving';
case 'Egypt':
return 'https://routes-egypt.siromove.com/route/v1/driving';
case 'Jordan':
// TODO: Change to new subdomain when fully migrated
return 'https://routesjo.intaleq.xyz';
default:
return 'https://routes.siromove.com/route/v1/driving';
}
}
static String loginJwtDriver =
"https://api.intaleq.xyz/siro/loginAdmin.php";
static String loginJwtDriver = "https://api.intaleq.xyz/siro/loginAdmin.php";
//=============================
//=============================
static final getAllFingerprints =
@@ -338,31 +371,47 @@ import 'box_name.dart';class AppLink {
static String addAdminUser = "$server/Admin/adminUser/add.php";
static String addStaff = "$server/Admin/Staff/add.php";
static String getdashbord = "$server/Admin/dashbord.php";
// Marketing & Price Anomalies Endpoints
static String getMarketAnomalies = "$server/Admin/marketing/get_market_anomalies.php";
static String triggerCampaign = "$server/Admin/marketing/trigger_campaign.php";
static String getCampaignsLog = "$server/Admin/marketing/get_campaigns_log.php";
static String getMarketAnomalies =
"$server/Admin/marketing/get_market_anomalies.php";
static String triggerCampaign =
"$server/Admin/marketing/trigger_campaign.php";
static String getCampaignsLog =
"$server/Admin/marketing/get_campaigns_log.php";
static String getTelemetry = "$server/Admin/marketing/get_telemetry.php";
static String getPriceComparison = "$server/Admin/marketing/get_price_comparison.php";
static String whatIfSimulator = "$server/Admin/marketing/what_if_simulator.php";
static String getPriceGapHeatmap = "$server/Admin/marketing/get_price_gap_heatmap.php";
static String winbackHotspotTargets = "$server/Admin/marketing/winback_hotspot_targets.php";
static String getMarketShareAnalytics = "$server/Admin/marketing/get_market_share_analytics.php";
static String aiPricePrediction = "$server/Admin/marketing/ai_price_prediction.php";
static String saveDriverDestination = "$server/ride/location/save_driver_destination.php";
static String getPriceComparison =
"$server/Admin/marketing/get_price_comparison.php";
static String whatIfSimulator =
"$server/Admin/marketing/what_if_simulator.php";
static String getPriceGapHeatmap =
"$server/Admin/marketing/get_price_gap_heatmap.php";
static String winbackHotspotTargets =
"$server/Admin/marketing/winback_hotspot_targets.php";
static String getMarketShareAnalytics =
"$server/Admin/marketing/get_market_share_analytics.php";
static String aiPricePrediction =
"$server/Admin/marketing/ai_price_prediction.php";
static String saveDriverDestination =
"$server/ride/location/save_driver_destination.php";
static String paymentServerV2 = 'https://walletintaleq.intaleq.xyz/v2/main';
static String realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php";
static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php";
static String growthV2 = "$server/Admin/v2/analytics/growth.php";
static String revenueV2 = "$server/Admin/v2/analytics/revenue.php";
static String driverRankingV2 = "$server/Admin/v2/analytics/driver_ranking.php";
static String settlementsV2 = "$paymentServerV2/Admin/v2/financial/settlements.php";
static String financialStatsV2 = "$paymentServerV2/Admin/v2/financial/stats.php";
static String dashboardWalletV2 = "$paymentServerV2/Admin/v2/financial/dashboard_wallet.php";
static String driverRankingV2 =
"$server/Admin/v2/analytics/driver_ranking.php";
static String settlementsV2 =
"$paymentServerV2/Admin/v2/financial/settlements.php";
static String financialStatsV2 =
"$paymentServerV2/Admin/v2/financial/stats.php";
static String dashboardWalletV2 =
"$paymentServerV2/Admin/v2/financial/dashboard_wallet.php";
static String auditLogsV2 = "$server/Admin/v2/security/audit_logs.php";
static String blacklistManager = "$server/Admin/v2/quality/blacklist_manager.php";
static String driverScorecard = "$server/Admin/v2/quality/driver_scorecard.php";
static String blacklistManager =
"$server/Admin/v2/quality/blacklist_manager.php";
static String driverScorecard =
"$server/Admin/v2/quality/driver_scorecard.php";
static String getEmployee = "$server/Admin/employee/get.php";
static String getBestDriver = "$server/Admin/driver/getBestDriver.php";
static String getBestDriverGiza =