second commit

This commit is contained in:
Anbarasu
2026-05-27 10:35:09 +05:30
parent c53794c04c
commit 1435ac47b0
501 changed files with 52818 additions and 0 deletions

View File

@@ -0,0 +1,243 @@
class ApiConstants {
static String mainDev = "dev";
static String mainRoute = "live";
//Describe
static String describeUrl='';
//Authentication
static String login='';
static String configUrl='';
//User
static String user='';
static String userUpdate='';
//App Locations
static String appLocations='';
//App Category
static String appCategory= '';
//Customers
static String getCustomerByTenantId = '';
static String createCustomer = '';
static String createDeliveryAddress = '';
static String getCustomerAddress = '';
static String getCustomerSearchByTenantId = '';
//Admin
static String adminToken='';
//Orders
static String getOrders = '';
static String updateOrderStatus = '';
static String getOrderSummary = '';
static String createOrder = '';
//Deliveries
static String getDeliveries = '';
//Location
static String getLocationById = '';
static String updateLocation = '';
static String createLocation = '';
//Notification
static String notifyUrl='' ;
//Tenants
static String getTenantInfo = '';
static String getTenantLocationById = '';
static String getLocationsById = '';
static String getTenantPricing = '';
//Get Partners
static String getPartnerInfo = '';
//Tenant User
static String createTenantUser = '';
//Tenant Staffs
static String getStaffs = '';
static String createStaff = '';
static String updateStaff = '';
static String liveRoute = "https://fiesta.nearle.app/live/api/v1/mob/";
static String liveRoute1 = "https://jupiter.nearle.app/live/api/v1/";
static String liveRouteV2 = "https://fiesta.nearle.app/live/api/v1/mob/";
// Products
static String getProducts = "";
static String updateProduct = "";
// Riders
static String getRiders = "";
static String updateDelivery = '';
static String notifyRider = '';
static String createDelivery = "";
//Auth
//LoginUrl
static String loginDev ='https://jupiter.gear.app/$mainDev/api/v1';
static String loginLive ='https://jupiter.nearle.app/$mainRoute/api/v1';
//Describe
static String describeUrlDev="https://ariane.gear.app/$mainRoute/describe/get";
static String describeUrlLive="https://ariane.nearle.app/v1/describe/get";
//User
static String userDev="https://fiesta.nearle.app/$mainDev/api/v1/mob/users";
static String userLive="https://fiesta.nearle.app/$mainRoute/api/v1/mob/users";
static String userUpdateDev ="https://fiesta.nearle.app/$mainDev/api/v1/mob/users/update";
static String userUpdateLive ="https://fiesta.nearle.app/$mainRoute/api/v1/mob/users/update";
//config
static String configUrlDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/utils/getappconfig/";
static String configUrlLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/utils/getappconfig/";
//Customers
static String getCustomerByTenantIdDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/customers/gettenantcustomers";
static String getCustomerByTenantIdLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/customers/gettenantcustomers";
//CustomerSearch
static String getCustomerSearchByTenantIdDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/customers/search";
static String getCustomerSearchByTenantIdLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/customers/search";
static String createCustomerDev = "https://fiesta.nearle.app/$mainDev/api/v1/mobcustomers/create";
static String createCustomerLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/customers/create";
static String createDeliveryAddressDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/customers/locations/create";
static String createDeliveryAddressLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/customers/locations/create";
static String getCustomerAddressDev= "https://fiesta.nearle.app/$mainDev/api/v1/mob/customers/locations/get/";
static String getCustomerAddressLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/customers/locations/get/";
//Orders
static String getOrdersDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/orders/tenant/getorders";
static String getOrdersLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/orders/tenant/getorders";
// Orders
static const String getcustomerOrders = "https://api.workolik.com/api/rest/tenant/getorders";
// Tenant info
static const String tenantInfo = "https://api.workolik.com/api/rest/gettenantinfo";
static String updateOrderStatusDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/orders/updateorder";
static String updateOrderStatusLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/orders/updateorder";
static String getOrderSummaryDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/deliveries/deliverysummary";
static String getOrderSummaryLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/deliveries/deliverysummary";
static String createOrderDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/orders/createorder";
static String createOrderLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/orders/createorder";
//Deliveries
static String getDeliveriesDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/deliveries/getdeliveries";
static String getDeliveriesLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/deliveries/getdeliveries";
//Tenants
static String getTenantInfoDev = "https://jupiter.nearle.app/$mainDev/api/v1/tenants/gettenantinfo";
static String getTenantInfoLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/gettenantinfo";
static String getTenantLocationByIdDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/gettenantlocations/";
static String getTenantLocationByIdLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/gettenantlocations/";
static String getLocationsByIdDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/gettenantlocation/";
static String getLocationsByIdLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/gettenantlocation/";
static String getTenantPricingDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/gettenantpricing";
static String getTenantPricingLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/gettenantpricing";
//Notification
static String notifyUrlDev = "https://jupiter.nearle.app/$mainDev/api/v1/utils/sendnotifications" ;
static String notifyUrlLive = "https://jupiter.nearle.app/$mainRoute/api/v1/utils/sendnotifications" ;
//App Locations
static String appLocationsDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/utils/getapplocations";
static String appLocationsLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/utils/getapplocations";
//Get Partners
static String getPartnerInfoDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/partners/getpartners/";
static String getPartnerInfoLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/partners/getpartners/";
//App Category
static String appCategoryDev= "https://fiesta.nearle.app/$mainDev/api/v1/mobutils/getsubcategories";
static String appCategoryLive= "https://fiesta.nearle.app/$mainRoute/api/v1/mob/utils/getsubcategories";
static String getAppCategoryLive = "${liveRoute}utils/getcategories/";
//Tenant User
static String createTenantUserDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/createtenantuser";
static String createTenantUserLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/createtenantuser";
//Admin
static String adminTokenDev="https://fiesta.nearle.app/$mainDev/api/v1/mob/utils/getapplocationconfig";
static String adminTokenLive="https://fiesta.nearle.app/$mainRoute/api/v1/mob/utils/getapplocationconfig";
//Location
static String getLocationByIdDev = "https://fiesta.nearle.app/$mainDev/api/v1/mobtenants/gettenantlocations/";
static String getLocationByIdLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/gettenantlocations/";
static String updateLocationDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/updatelocation";
static String updateLocationLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/updatelocation";
static String createLocationDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/createlocation";
static String createLocationLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/createlocation";
//Tenant Staffs
static String getStaffsDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/getstaffs";
static String getStaffsLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/getstaffs";
static String createStaffDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/createstaff";
static String createStaffLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/createstaff";
static String updateStaffDev = "https://fiesta.nearle.app/$mainDev/api/v1/mob/tenants/updatestaff";
static String updateStaffLive = "https://fiesta.nearle.app/$mainRoute/api/v1/mob/tenants/updatestaff";
/// https://jupiter.nearle.app/live/api/v1/products/getallproducts?categoryid=1001&subcategoryid=0
/// Get Products
static String getProductLive = "${liveRoute}products/getallproducts";
static String updateProductLive = "${liveRoute}products/update";
static String getRidersLive = "${liveRouteV2}partners/getriders/";
static String updateDeliveryLive = "${liveRoute}deliveries/updatedelivery";
static String notifyRiderLive = "${liveRoute1}utils/notifyuser";
static String createDeliveryLive = "${liveRoute}deliveries/createdeliveries";
// orders/getorders/?applocationid=0&status=created&fromdate=2025-07-17&todate=2025-07-17&pageno=1&pagesize=10&keyword=
// static String getOrdersLive = "${liveRoute}/orders/getorders";
}

View File

@@ -0,0 +1,31 @@
class AssetConstants {
static const String nearleDarkLogo = "assets/images/nearledark.png";
static const String nearleLogin = "assets/images/nearleLogin.png";
static const String nearlelightlogo = "assets/images/nearlelightlogo.png";
static const String nearleAppbarTop = "assets/images/NearleAppbarTop.png";
static const String nearleAppbarDarkLogo = "assets/images/nearle_dark_logo.png";
static const String nearleAppbarBottom = "assets/images/NearleAppbarbottom.png";
static const String MoreBackground = "assets/images/moreTopBackground.png";
static const String NearleAppbarIcon = "assets/images/launcher_icon.png";
static const String privacyPolicy="assets/images/privacypolicy.png";
static const String NoRecords = "assets/images/errandsnoRecords.png";
static const String appbarTopBackground = "assets/images/moreTopBackground2.png";
static const String nearleTextLogo = "assets/images/nearletextlogo.png";
static const String introBanner1="assets/images/introbanner1.png";
static const String introBanner2="assets/images/introbanner2.png";
static const String nearleWhiteLogo="assets/images/nearle_white_logo.png";
static const String nearleTextLogoWhite="assets/images/nearletextwhitelogo.png";
static const String noOrderFound = "assets/images/no_products_found.png";
static const String noOrdersFound = "assets/images/noOrders.png";
static const String noProductsFound = "assets/images/no_products_found.png";
static const String onBoarding1 = "assets/images/onboarding images (7).png";
static const String onBoarding2 = "assets/images/onboarding images (6).png";
static const String onBoarding3 = "assets/images/onboarding images (7).png";
static const String noCustomersFound = "assets/images/nocustomersnow.png";
static const String otpImage = "assets/images/otp_image.png";
static const String loginImage = "assets/images/login_image.png";
static const String nearledailylogodark = "assets/images/nearledailylogodark.png";
static const String nearledailyImage = "assets/images/nearledailyImage.png";
static const String noProfile = "assets/images/noProfile.png";
}

View File

@@ -0,0 +1,15 @@
import 'dart:ui';
import 'package:flutter/material.dart';
class ColorConstants {
static const primaryColor = Color(0xFF662582);
static Color? secondaryColor = Colors.white;
static Color? textFieldColor = Colors.grey[700]!;
static Color? lightColor = Color.fromRGBO(244, 244, 244, 1);
static Color? errandsColor = Colors.blue[100]!;
static Color? primaryColor1 = const Color(0xFFE7D3EF);
static Color? darkGreyColor=Color(0XFF575756);
static Color? lightGreyBg=Colors.grey.shade100;
static Color? blackColor=Colors.black;
}

View File

@@ -0,0 +1,44 @@
import 'Apiconstants.dart';
class ApiConfig {
static void setLive() {
ApiConstants.describeUrl = ApiConstants.describeUrlLive;
ApiConstants.login = ApiConstants.loginLive;
ApiConstants.configUrl = ApiConstants.configUrlLive;
ApiConstants.user = ApiConstants.userLive;
ApiConstants.getCustomerByTenantId = ApiConstants.getCustomerByTenantIdLive;
ApiConstants.getDeliveries = ApiConstants.getDeliveriesLive;
ApiConstants.notifyUrl = ApiConstants.notifyUrlLive;
ApiConstants.updateOrderStatus = ApiConstants.updateOrderStatusLive;
ApiConstants.getOrderSummary = ApiConstants.getOrderSummaryLive;
ApiConstants.getTenantInfo = ApiConstants.getTenantInfoLive;
ApiConstants.appLocations = ApiConstants.appLocationsLive;
ApiConstants.getPartnerInfo = ApiConstants.getPartnerInfoLive;
ApiConstants.appCategory = ApiConstants.getAppCategoryLive;
ApiConstants.createTenantUser = ApiConstants.createTenantUserLive;
ApiConstants.createCustomer = ApiConstants.createCustomerLive;
ApiConstants.createDeliveryAddress = ApiConstants.createDeliveryAddressLive;
ApiConstants.getCustomerAddress = ApiConstants.getCustomerAddressLive;
ApiConstants.getTenantLocationById = ApiConstants.getTenantLocationByIdLive;
ApiConstants.getLocationsById = ApiConstants.getLocationsByIdLive;
ApiConstants.adminToken = ApiConstants.adminTokenLive;
ApiConstants.getTenantPricing = ApiConstants.getTenantPricingLive;
ApiConstants.createOrder = ApiConstants.createOrderLive;
ApiConstants.getOrders = ApiConstants.getOrdersLive;
ApiConstants.getLocationById = ApiConstants.getLocationByIdLive;
ApiConstants.updateLocation = ApiConstants.updateLocationLive;
ApiConstants.createLocation = ApiConstants.createLocationLive;
ApiConstants.getStaffs = ApiConstants.getStaffsLive;
ApiConstants.createStaff = ApiConstants.createStaffLive;
ApiConstants.updateStaff = ApiConstants.updateStaffLive;
ApiConstants.userUpdate = ApiConstants.userUpdateLive;
ApiConstants.getCustomerSearchByTenantId =
ApiConstants.getCustomerSearchByTenantIdLive;
ApiConstants.getProducts = ApiConstants.getProductLive;
ApiConstants.updateProduct = ApiConstants.updateProductLive;
ApiConstants.getRiders = ApiConstants.getRidersLive;
ApiConstants.updateDelivery = ApiConstants.updateDeliveryLive;
ApiConstants.notifyRider = ApiConstants.notifyRiderLive;
ApiConstants.createDelivery = ApiConstants.createDeliveryLive;
}
}