Spaces:
Sleeping
Sleeping
Commit History
-
notfication ms integration
4e94087
-
notification fix
6cd783a -
notification
e47349e -
feat(logging): Enhance logging with structured events and error handling
17ba139
-
feat(staff-auth): Query pos_staff collection directly and add staff_id to auth tokens
- Replace SystemUserService dependency with direct pos_staff collection queries - Add staff_id field to JWT token payload and login response - Implement _get_staff_by_phone() helper to fetch staff from pos_staff with field normalization - Implement _get_merchant_type() helper to fetch merchant type from scm_merchants cross-DB - Add ADMIN_ROLES constant to prevent admin users from using staff OTP login - Update staff login response schema to include staff_id and normalize permissions field - Refactor staff_auth_service with organized sections for internal helpers and public API - Improve error handling and logging for staff lookup operations - Update collections.py to define POS_STAFF_COLLECTION constant - Enhance notification queue integration for OTP delivery via WhatsApp and SMS0ece69a -
feat(notifications): Replace WATI service with unified notification queue
- Replace direct WATI WhatsApp API calls with NotificationQueue abstraction across customer, service partner, and staff auth services - Add NotificationQueue utility module for centralized OTP notification handling via WhatsApp and SMS - Update OTP delivery status tracking to use "queued" and "queue_failed" states instead of "sent" and "failed" - Remove WatiService dependencies and instantiation from auth services - Simplify OTP response messages to be channel-agnostic - Add merchant_id lookup and passing to notification queue for credential resolution - Export NotificationQueue from utils module for consistent access across services2a952d3