Module notifications

Source
Expand description

Notification management module for handling CRUD operations on notifications.

This module provides functionality to create, read, update, and delete notifications in the system. It includes endpoints for managing both user notifications and role-based notifications.

Structs§

AcknowledgeNotificationRequest
CreateRoleNotificationRequest
CreateUserNotificationRequest

Functions§

acknowledge_notification
Acknowledge a notification
count_unread_user_notifications
Count unread notifications for a user (for badges)
create_role_notification
Create a new notification for a role
create_user_notification
Create a new notification for a user
delete_read_user_notifications
Delete all read notifications for a user
delete_user_notification
Delete a notification
get_all_user_notifications_with_count
Get all notifications for a user including role notifications
get_user_notification_by_id
Get a specific notification by ID
list_role_notifications
Get a paginated list of role notifications
list_user_notifications
Get a paginated list of notifications for a user
mark_all_user_notifications_as_read
Mark all notifications for a user as read
mark_user_notification_as_read
Mark a notification as read