Class NotificationsBL

Constructors

Properties

NoticationCache: NotificationsCache

Methods

  • Create a notification for a list of users on a specific item in a project. The notification will be due to a specific date

    Parameters

    • users: string[]
    • project: string
    • item: string
    • text: string
    • type: string
    • atDate: Date

    Returns Promise<XRTodo[]>

  • Remove a notification

    Parameters

    • notification: XRTodo

      Notif to remove

    Returns Promise<void>

  • Remove a notification by its id

    Parameters

    • project: string
    • todoId: number
    • deleteThem: boolean

    Returns Promise<void>

  • Return all notifications for a specific project and a specific item

    Parameters

    • project: string
    • currentItemId: string

    Returns Promise<XRGetTodosAck>

  • Return all notifications (for all projects)

    Returns Promise<XRGetTodosAck>

  • Returns the field of the notification. either the message is plain text or some formatted json object: the anchor is a place in the UI

    Parameters

    Returns any

  • Return all notifications for a specific project. The notifications are divided into two groups: for now and for later

    Parameters

    • project: string

    Returns Promise<{
        todosForLater: XRTodo[];
        todosForNow: XRTodo[];
    }>

  • Returns the message of the notification. either the message is plain text or some formatted json object

    Parameters

    Returns any

  • either the message is plain text or some formatted json object: the reply is a reference to another todo - for which this is a replyTo

    Parameters

    Returns any

Generated using TypeDoc