46 lines
2.4 KiB
Dart
46 lines
2.4 KiB
Dart
class ApiConstants {
|
|
// English: The base URL for the backend API endpoints.
|
|
// Arabic: عنوان الرابط الأساسي لنقاط نهاية واجهة برمجة التطبيقات الخلفية.
|
|
static const String baseUrl = 'https://nabeh.intaleqapp.com/api';
|
|
|
|
// English: The endpoint for user login.
|
|
// Arabic: نقطة النهاية لتسجيل دخول المستخدم.
|
|
static const String loginEndpoint = '/auth/login';
|
|
|
|
// English: The endpoint for fetching current authenticated user details.
|
|
// Arabic: نقطة النهاية لجلب تفاصيل المستخدم الحالي المصادق عليه.
|
|
static const String meEndpoint = '/auth/me';
|
|
|
|
// English: The endpoint for WhatsApp connection status checks.
|
|
// Arabic: نقطة النهاية للتحقق من حالة اتصال الواتساب.
|
|
static const String whatsappStatusEndpoint = '/whatsapp/status';
|
|
|
|
// English: The endpoint to request a new WhatsApp QR connection.
|
|
// Arabic: نقطة النهاية لطلب اتصال واتساب جديد برمز استجابة سريع.
|
|
static const String whatsappQrEndpoint = '/whatsapp/qr';
|
|
|
|
// English: The endpoint to disconnect an active WhatsApp session.
|
|
// Arabic: نقطة النهاية لقطع اتصال جلسة واتساب نشطة.
|
|
static const String whatsappDisconnectEndpoint = '/whatsapp/disconnect';
|
|
|
|
// English: The endpoint to list subscription plans.
|
|
// Arabic: نقطة النهاية لعرض قائمة باقات الاشتراك.
|
|
static const String plansEndpoint = '/plans';
|
|
|
|
// English: The endpoint to retrieve the contacts directory.
|
|
// Arabic: نقطة النهاية لاسترداد دليل جهات الاتصال.
|
|
static const String contactsEndpoint = '/contacts';
|
|
|
|
// English: The endpoint to manage chatbot auto-reply rules.
|
|
// Arabic: نقطة النهاية لإدارة قواعد الرد الآلي للروبوت.
|
|
static const String chatbotRulesEndpoint = '/chatbot/rules';
|
|
|
|
// English: The endpoint for Super Admin platform statistics.
|
|
// Arabic: نقطة النهاية لإحصائيات منصة المشرف العام.
|
|
static const String adminStatsEndpoint = '/admin/stats';
|
|
|
|
// English: The endpoint to approve a pending company subscription.
|
|
// Arabic: نقطة النهاية للموافقة على اشتراك معلق للشركة.
|
|
static const String approveBillingEndpoint = '/admin/companies/approve-billing';
|
|
}
|