Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "crud/notification"

Index

Functions

Const createNotification

  • createNotification(notification: Notification): Promise<Object>
  • Create a notification

    Parameters

    Returns Promise<Object>

Const deleteNotification

  • deleteNotification(notificationId: number): Promise<Object>
  • Delete an notification

    Parameters

    • notificationId: number

    Returns Promise<Object>

Const getNotification

  • getNotification(notificationId: number): Promise<Notification>
  • View a notification

    Parameters

    • notificationId: number

    Returns Promise<Notification>

Const getUserNotifications

  • getUserNotifications(userId: number): Promise<Notification[]>
  • Get notifications for a user

    Parameters

    • userId: number

    Returns Promise<Notification[]>

Const updateNotification

  • updateNotification(notificationId: number, data: KeyValue): Promise<Object>
  • Update a notification

    Parameters

    Returns Promise<Object>

Generated using TypeDoc