Files
Siro/siro_driver/lib/constant/links.dart
2026-06-11 18:22:59 +03:00

450 lines
22 KiB
Dart
Executable File

// import 'package:siro_driver/env/env.dart';
import '../main.dart';
import 'box_name.dart';
class AppLink {
static String get serverPHP => box.read('serverPHP');
static String get paymentServer => 'https://walletintaleq.intaleq.xyz/v1/main';
static const String appDomain = 'siromove.com';
static String get locationServer =>
'https://location.intaleq.xyz/siro/ride/location';
static String get locationServerSide =>
'https://location.intaleq.xyz/siro/ride/location';
static String get mapSaasRoute => 'https://map-saas.intaleqapp.com/api/maps/route';
static String get mapSaasPlaces =>
'https://map-saas.intaleqapp.com/api/geocoding/places';
static String get routeApiBaseUrl =>
"https://routesjo.intaleq.xyz/route/v1/driving";
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
static String get endPoint {
switch (currentCountry) {
case 'Syria':
return 'https://api-syria.siromove.com/intaleq_v3';
case 'Egypt':
return 'https://api-egypt.siromove.com/intaleq_v3';
case 'Jordan':
default:
return 'https://api-jordan.siromove.com/intaleq_v3';
}
}
static String get syria => 'https://api-syria.siromove.com/siro';
static String get server => endPoint;
///=================ride==========================///
///https://api.intaleq.xyz/siro/ride
static String get ride => '$server/ride';
static String get rideServer => 'https://rides.intaleq.xyz/siro/ride';
///mapOSM = 'https://routesy.intaleq.xyz'
static String get mapOSM => 'https://routesy.intaleq.xyz';
static String get seferCairoServer => endPoint;
static String get seferGizaServer =>
box.read('Giza') ?? box.read(BoxName.serverChosen);
static String get seferAlexandriaServer =>
box.read('Alexandria') ?? box.read(BoxName.serverChosen);
// static final String server = Env.serverPHP;
static String get loginJwtDriver => "$server/loginJwtDriver.php";
static String get loginJwtWalletDriver => "$server/loginJwtWalletDriver.php";
static String get loginFirstTimeDriver => "$server/loginFirstTimeDriver.php";
static String get googleMapsLink => 'https://maps.googleapis.com/maps/api/';
static String get llama => 'https://api.llama-api.com/chat/completions';
static String get gemini =>
'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText';
static String get test => "$server/test.php";
//===============contact==========================
static String get savePhones => "$ride/egyptPhones/add.php";
static String get savePhonesSyria => "$ride/egyptPhones/syrianAdd.php";
static String get getPhones => "$ride/egyptPhones/get.php";
////===============firebase==========================
static String get getTokens => "$ride/firebase/get.php";
static String get getDriverToken => "$ride/firebase/getDriverToken.php";
static String get addTokens => "$ride/firebase/add.php";
static String get addTokensDriver => "$ride/firebase/addDriver.php";
static String get addTokensDriverWallet =>
"$paymentServer/ride/firebase/addDriver.php";
//=======================Wallet===================
static String get wallet => '$paymentServer/ride/passengerWallet';
static String get walletDriver => '$paymentServer/ride/driverWallet';
static String get getAllPassengerTransaction =>
"$wallet/getAllPassengerTransaction.php";
static String get payWithMTNConfirm =>
"$paymentServer/ride/mtn/driver/confirm_payment.php";
static String get payWithMTNStart =>
"$paymentServer/ride/mtn/driver/mtn_start.php";
static String get payWithSyriatelConfirm =>
"$paymentServer/ride/syriatel/driver/confirm_payment.php";
static String get payWithSyriatelStart =>
"$paymentServer/ride/syriatel/driver/start_payment.php";
static String get payWithEcashDriver =>
"$paymentServer/ride/ecash/driver/payWithEcash.php";
static String get payWithEcashPassenger =>
"$paymentServer/ride/ecash/passenger/payWithEcash.php";
// wl.tripz-egypt.com/v1/main/ride/ecash/driver
static String get getWalletByPassenger => "$wallet/getWalletByPassenger.php";
static String get getPassengersWallet => "$wallet/get.php";
static String get getPassengerWalletArchive =>
"$wallet/getPassengerWalletArchive.php";
static String get addPassengersWallet => "$wallet/add.php";
static String get deletePassengersWallet => "$wallet/delete.php";
static String get updatePassengersWallet => "$wallet/update.php";
static String get getWalletByDriver => "$walletDriver/getWalletByDriver.php";
static String get driverStatistic =>
"$endPoint/ride/driverWallet/driverStatistic.php";
static String get getDriverDetails =>
"$seferCairoServer/ride/driverWallet/getDriverDetails.php";
// ================= Gamification Endpoints =================
static String get getWeeklyAggregate =>
"$endPoint/ride/gamification/getWeeklyAggregate.php";
static String get getLeaderboard =>
"$endPoint/ride/gamification/getLeaderboard.php";
static String get claimChallengeReward =>
"$endPoint/ride/gamification/claimChallengeReward.php";
static String get getReferralStats =>
"$endPoint/ride/gamification/getReferralStats.php";
static String get getDriverBehavior =>
"$endPoint/ride/gamification/getDriverBehavior.php";
static String get getDriverWeekPaymentMove =>
"$walletDriver/getDriverWeekPaymentMove.php";
static String get getDriversWallet => "$walletDriver/get.php";
static String get addDriversWalletPoints => "$walletDriver/add.php";
static String get addpromotionDriver => "$walletDriver/promotionDriver.php";
static String get deleteDriversWallet => "$walletDriver/delete.php";
static String get updateDriversWallet => "$walletDriver/update.php";
//=======================promo===================ride.mobile-app.store/ride/promo/get.php
static String get promo => '$server/ride/promo';
static String get getPassengersPromo => "$promo/get.php";
static String get getPromoBytody => "$promo/getPromoBytody.php";
static String get addPassengersPromo => "$promo/add.php";
static String get deletePassengersPromo => "$promo/delete.php";
static String get updatePassengersPromo => "$promo/update.php";
////=======================cancelRide===================
static String get addCancelRideFromPassenger => "$rideServer/cancelRide/add.php";
static String get addCancelTripFromDriverAfterApplied =>
"$rideServer/cancelRide/addCancelTripFromDriverAfterApplied.php";
static String get cancelRide => "$rideServer/cancelRide/get.php";
//-----------------ridessss------------------
static String get addRides => "$rideServer/rides/add.php";
static String get getRides => "$rideServer/rides/get.php";
static String get getPlacesSyria => "$rideServer/places_syria/get.php";
static String get getMishwari => "$rideServer/mishwari/get.php";
static String get getMishwariDriver => "$rideServer/mishwari/getDriver.php";
static String get sendChatMessage => "$server/ride/chat/send_message.php";
static String get getTripCountByCaptain =>
"$rideServer/rides/getTripCountByCaptain.php";
static String get getRideOrderID => "$rideServer/rides/getRideOrderID.php";
static String get getRideStatus => "$rideServer/rides/getRideStatus.php";
static String get getOverLayStatus => "$ride/overLay/get.php";
static String get getArgumentAfterAppliedFromBackground =>
"$ride/overLay/getArgumentAfterAppliedFromBackground.php";
static String get addOverLayStatus => "$ride/overLay/add.php";
static String get getapiKey => "$ride/apiKey/get.php";
static String get getapiKeySefer => "$ride/apiKey/get.php";
static String get getRideStatusBegin => "$rideServer/rides/getRideStatusBegin.php";
static String get getRideStatusFromStartApp =>
"$rideServer/rides/getRideStatusFromStartApp.php";
static String get updateRides => "$rideServer/rides/update.php";
static String get updateRideAndCheckIfApplied =>
"$rideServer/rides/updateRideAndCheckIfApplied.php";
static String get updateStausFromSpeed =>
"$rideServer/rides/updateStausFromSpeed.php";
static String get deleteRides => "$rideServer/rides/delete.php";
//-----------------DriverPayment------------------
static String get addDriverScam => "$ride/driver_scam/add.php";
static String get getDriverScam => "$ride/driver_scam/get.php";
/////////---getKazanPercent===////////////
static String get getKazanPercent => "$ride/kazan/get.php";
static String get addKazanPercent => "$ride/kazan/add.php";
////-----------------DriverPayment------------------
static String get addDrivePayment => "$paymentServer/ride/payment/add.php";
static String get payWithPayMobCardDriver =>
"$paymentServer/ride/payMob/paymob_driver/payWithCard.php";
static String get payWithWallet =>
"$paymentServer/ride/payMob/paymob_driver/payWithWallet.php";
static String get paymetVerifyDriver =>
"$paymentServer/ride/payMob/paymob_driver/paymet_verfy.php";
static String get updatePaymetToPaid =>
"$paymentServer/ride/payment/updatePaymetToPaid.php";
static String get paymobPayoutDriverWallet =>
"$paymentServer/ride/payMob/paymob_driver/paymob_payout.php'";
static String get addSeferWallet => "$paymentServer/ride/seferWallet/add.php";
static String get getSeferWallet => "$paymentServer/ride/seferWallet/get.php";
static String get addDriverPaymentPoints =>
"$paymentServer/ride/driverPayment/add.php";
static String get addPaymentTokenDriver =>
"$paymentServer/ride/driverWallet/addPaymentToken.php"; //driverWallet/addPaymentToken.php
static String get addPaymentTokenPassenger =>
"$paymentServer/ride/passengerWallet/addPaymentTokenPassenger.php";
static String get getDriverPaymentPoints =>
"$paymentServer/ride/driverWallet/get.php";
static String get getDriverPaymentToday => "$paymentServer/ride/payment/get.php";
static String get getCountRide => "$rideServer/payment/getCountRide.php";
static String get getAllPaymentFromRide =>
"$paymentServer/ride/payment/getAllPayment.php";
static String get getAllPaymentVisa =>
"$paymentServer/ride/payment/getAllPaymentVisa.php";
//-----------------Passenger NotificationCaptain------------------
static String get addNotificationPassenger =>
"$ride/notificationPassenger/add.php";
static String get getNotificationPassenger =>
"$ride/notificationPassenger/get.php";
static String get updateNotificationPassenger =>
"$ride/notificationPassenger/update.php";
//-----------------Driver NotificationCaptain------------------
static String get addNotificationCaptain => "$ride/notificationCaptain/add.php";
static String get addWaitingRide => "$ride/notificationCaptain/addWaitingRide.php";
static String get deleteAvailableRide =>
"$ride/notificationCaptain/deleteAvailableRide.php";
static String get updateWaitingRide =>
"$ride/notificationCaptain/updateWaitingTrip.php";
static String get getRideWaiting =>
"$endPoint/ride/notificationCaptain/getRideWaiting.php";
static String get getNotificationCaptain => "$ride/notificationCaptain/get.php";
static String get updateNotificationCaptain =>
"$ride/notificationCaptain/update.php";
static String get deleteNotificationCaptain =>
"$ride/notificationCaptain/delete.php";
//-----------------Api Key------------------
static String get addApiKey => "$ride/apiKey/add.php";
static String get getApiKey => "$ride/apiKey/get.php";
static String get getCnMap => "$server/auth/cnMap.php";
static String get getPromptDriverDocumentsEgypt =>
"$server/auth/captin/getPromptDriverDocumentsEgypt.php";
static String get updateApiKey => "$ride/apiKey/update.php";
static String get deleteApiKey => "$ride/apiKey/delete.php";
static String get checkPhoneNumberISVerfiedDriver =>
"$auth/checkPhoneNumberISVerfiedDriver.php";
static String get getTesterApp => "$auth/Tester/getTesterApp.php";
static String get updateTesterApp => "$auth/Tester/updateTesterApp.php";
//-----------------healthInsuranceProvider------------------
static String get addHealthInsuranceProvider => "$server/driver_assurance/add.php";
static String get getHealthInsuranceProvider => "$server/driver_assurance/get.php";
//-----------------Feed Back------------------
static String get addFeedBack => "$ride/feedBack/add.php";
static String get getFeedBack => "$ride/feedBack/get.php";
static String get updateFeedBack => "$ride/feedBack/updateFeedBack.php";
static String get add_solve_all => "$server/ride/feedBack/add_solve_all.php";
static String get uploadAudio => "$server/upload_audio.php";
//-----------------Tips------------------
static String get addTips => "$ride/tips/add.php";
static String get getTips => "$ride/tips/get.php";
static String get updateTips => "$ride/tips/update.php";
//-----------------Help Center------------------
static String get addhelpCenter => "$ride/helpCenter/add.php";
static String get gethelpCenter => "$ride/helpCenter/get.php";
static String get getByIdhelpCenter => "$ride/helpCenter/getById.php";
static String get updatehelpCenter => "$ride/helpCenter/update.php";
static String get deletehelpCenter => "$ride/helpCenter/delete.php";
//-----------------license------------------
static String get addLicense => "$ride/license/add.php";
static String get getLicense => "$ride/license/get.php";
static String get updateLicense => "$ride/license/updateFeedBack.php";
//-----------------RegisrationCar------------------
static String get addRegisrationCar => "$ride/RegisrationCar/add.php";
static String get getRegisrationCar => "$endPoint/ride/RegisrationCar/get.php";
static String get updateRegisrationCar => "$ride/RegisrationCar/update.php";
static String get makeDefaultCar => "$ride/RegisrationCar/makeDefaultCar.php";
//-----------------DriverOrder------------------
static String get addDriverOrder => "$ride/driver_order/add.php";
static String get getDriverOrder => "$ride/driver_order/get.php";
static String get getOrderCancelStatus =>
"$ride/driver_order/getOrderCancelStatus.php";
static String get updateDriverOrder => "$ride/driver_order/update.php";
static String get deleteDriverOrder => "$ride/driver_order/delete.php";
// =====================================
static String get addRateToPassenger => "$ride/rate/add.php";
static String get addRateToDriver => "$ride/rate/addRateToDriver.php";
static String get addRateApp => "$ride/rate/add_rate_app.php";
static String get sendEmailRateingApp => "$ride/rate/sendEmailRateingApp.php";
static String get getDriverRate => "$ride/rate/getDriverRate.php";
static String get getPassengerRate => "$ride/rate/getPassengerRate.php";
////////////////emails ============//
static String get sendEmailToPassengerForTripDetails =>
"$ride/rides/emailToPassengerTripDetail.php";
static String get sendEmailToDrivertransaction =>
"$server/Admin/sendEmailToDrivertransaction.php";
// ===========================================
static String get pathImage => "$server/upload/types/";
static String get uploadImage => "$server/uploadImage.php";
static String get uploadImage1 => "$server/uploadImage1.php";
static String get uploadImagePortrate => "$server/uploadImagePortrate.php";
static String get uploadSyrianDocs => "$syria/auth/syria/uploadSyrianDocs.php";
static String get uploadImageType => "$server/uploadImageType.php";
//=============egypt documents ==============
static String get uploadEgyptidFront =>
"$server/EgyptDocuments/uploadEgyptidFront.php";
static String get uploadEgypt => "$server/uploadEgypt.php";
static String get uploadEgypt1 => "$server/uploadEgypt1.php";
//==================certifcate==========
// static String location = '$endPoint/ride/location';
static String get getCarsLocationByPassenger => "$locationServer/get.php";
static String get addpassengerLocation =>
"$locationServer/addpassengerLocation.php";
static String get getLocationAreaLinks =>
"$locationServer/get_location_area_links.php";
static String get getLatestLocationPassenger =>
"$locationServer/getLatestLocationPassenger.php";
static String get getFemalDriverLocationByPassenger =>
"$locationServer/getFemalDriver.php";
static String get getDriverCarsLocationToPassengerAfterApplied =>
"$locationServer/getDriverCarsLocationToPassengerAfterApplied.php";
static String get addCarsLocationByPassenger => "$locationServer/add.php";
static String get saveBehavior => "$locationServer/save_behavior.php";
static String get addCarsLocationGizaEndpoint => "$locationServer/add.php";
static String get addCarsLocationAlexandriaEndpoint => "$locationServer/add.php";
static String get addCarsLocationCairoEndpoint => "$locationServer/add.php";
static String get deleteCarsLocationByPassenger => "$locationServer/delete.php";
static String get updateCarsLocationByPassenger => "$locationServer/update.php";
static String get getTotalDriverDuration =>
"$locationServer/getTotalDriverDuration.php";
static String get getRidesDriverByDay => "$locationServer/getRidesDriverByDay.php";
static String get getTotalDriverDurationToday =>
"$locationServer/getTotalDriverDurationToday.php";
//==================get_driver_behavior.php=============
static String get get_driver_behavior =>
'$ride/driver_behavior/get_driver_behavior.php';
//==================cars new drivers=============
static String get addNewCarsDrivers => '$ride/carDrivers/add.php';
static String get getNewCarsDrivers => '$ride/carDrivers/get.php';
static String get deleteNewCarsDrivers => '$ride/carDrivers/delete.php';
//==================Blog=============
static String get profile => '$ride/profile';
static String get getprofile => "$profile/get.php";
static String get getCaptainProfile => "$profile/getCaptainProfile.php";
static String get addprofile => "$profile/add.php";
static String get deleteprofile => "$profile/delete.php";
static String get updateprofile => "$profile/update.php";
static String get updateDriverEmail => "$profile/updateDriverEmail.php";
//===================Auth============
static String get getUnifiedCode => "$ride/invitor/get_unified_code.php";
static String get addUnifiedInvite => "$ride/invitor/add_unified_invite.php";
static String get claimDriverReward => "$ride/invitor/claim_driver_reward.php";
static String get getDriverReferrals => "$ride/invitor/get_driver_referrals.php";
static String get addInviteDriver => "$ride/invitor/add.php";
static String get addInvitationPassenger =>
"$ride/invitor/addInvitationPassenger.php";
static String get getInviteDriver => "$ride/invitor/get.php";
static String get getDriverInvitationToPassengers =>
"$ride/invitor/getDriverInvitationToPassengers.php";
static String get updateInviteDriver => "$ride/invitor/update.php";
static String get updatePassengerGift =>
"$server/ride/invitor/updatePassengerGift.php";
static String get claimInviteReward => "$server/ride/invitor/claim.php";
static String get updateInvitationCodeFromRegister =>
"$ride/invitor/updateInvitationCodeFromRegister.php";
static String get register_driver_and_car =>
"$auth/syria/driver/register_driver_and_car.php";
static String get updateDriverInvitationDirectly =>
"$ride/invitor/updateDriverInvitationDirectly.php";
static String get updatePassengersInvitation =>
"$ride/invitor/updatePassengersInvitation.php";
//===================Auth============
static String get auth => '$server/auth';
static String get login => "$auth/login.php";
static String get signUp => "$auth/signup.php";
static String get updateDriverClaim => "$auth/captin/updateDriverClaim.php";
static String get updateShamCashDriver => "$auth/captin/updateShamCashDriver.php";
static String get sendVerifyEmail => "$auth/sendVerifyEmail.php";
static String get passengerRemovedAccountEmail =>
"$auth/passengerRemovedAccountEmail.php";
static String get verifyEmail => "$auth/verifyEmail.php";
//===================Auth Captin============
static String get authCaptin => '$server/auth/captin';
static String get loginCaptin => "$authCaptin/login.php";
static String get loginFromGoogleCaptin => "$authCaptin/loginFromGoogle.php";
static String get loginUsingCredentialsWithoutGoogle =>
"$authCaptin/loginUsingCredentialsWithoutGoogle.php";
static String get packageInfo => "$server/auth/packageInfo.php";
static String get signUpCaptin => "$authCaptin/register.php";
static String get addCriminalDocuments => "$authCaptin/addCriminalDocuments.php";
static String get sendVerifyEmailCaptin => "$authCaptin/sendVerifyEmail.php";
static String get sendVerifyOtpMessage =>
"$server/auth/captin/sendOtpMessageDriver.php";
static String get verifyOtpMessage => "$server/auth/verifyOtpMessage.php";
static String get verifyOtpDriver => "$server/auth/captin/verifyOtpDriver.php";
static String get verifyEmailCaptin => "$authCaptin/verifyEmail.php";
static String get removeUser => "$authCaptin/removeAccount.php";
static String get deletecaptainAccounr => "$authCaptin/deletecaptainAccounr.php";
static String get updateAccountBank => "$authCaptin/updateAccountBank.php";
static String get getAccount => "$authCaptin/getAccount.php";
static String get uploadImageToAi => "$auth/document_syria/ai_document.php";
static String get isPhoneVerified => "$auth/syria/driver/isPhoneVerified.php";
//===================Admin Captin============
static String get getPassengerDetailsByPassengerID =>
"$server/Admin/getPassengerDetailsByPassengerID.php";
static String get getPassengerDetails => "$server/Admin/getPassengerDetails.php";
static String get getPassengerbyEmail => "$server/Admin/getPassengerbyEmail.php";
static String get addAdminUser => "$server/Admin/adminUser/add.php";
static String get addError => "$server/Admin/errorApp.php";
static String get getAdminUser => "$server/Admin/adminUser/get.php";
static String get getCaptainDetailsByEmailOrIDOrPhone =>
"$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php";
static String get getCaptainDetails => "$server/Admin/AdminCaptain/get.php";
static String get getRidesPerMonth =>
"$server/Admin/AdminRide/getRidesPerMonth.php";
static String get getRidesDetails => "$server/Admin/AdminRide/get.php";
//////////Sms egypt///////////
static String get sendSms => "https://sms.kazumi.me/api/sms/send-sms";
static String get senddlr => "https://sms.kazumi.me/api/sms/send-dlr";
static String get sendvalidity => "https://sms.kazumi.me/api/sms/send-validity";
static String get sendmany => "https://sms.kazumi.me/api/sms/send-many";
static String get checkCredit => "https://sms.kazumi.me/api/sms/check-credit";
static String get checkStatus => "https://sms.kazumi.me/api/sms/check-status";
static String get getSender => "$server/auth/sms/getSender.php";
static String get updatePhoneInvalidSMS =>
"$server/auth/sms/updatePhoneInvalidSMS.php";
//////////////service///////////
static String get serviceApp => "$server/serviceapp";
static String get getComplaintAllData => "$serviceApp/getComplaintAllData.php";
static String get getComplaintAllDataForDriver =>
"$serviceApp/getComplaintAllDataForDriver.php";
}