notification-service
Preparing search index...
infrastructure/persistence/mongo/MongoNotificationRepository
MongoNotificationRepository
Class MongoNotificationRepository
Implements
NotificationRepository
Index
Constructors
constructor
Methods
count
Unread
exists
Recent
Unread
find
All
find
By
Id
remove
remove
All
save
Constructors
constructor
new
MongoNotificationRepository
(
logger
?:
Logger
)
:
MongoNotificationRepository
Parameters
Optional
logger
:
Logger
Returns
MongoNotificationRepository
Methods
count
Unread
countUnread
()
:
Promise
<
number
>
Returns
Promise
<
number
>
exists
Recent
Unread
existsRecentUnread
(
sourceId
:
string
,
since
:
Date
)
:
Promise
<
boolean
>
Parameters
sourceId
:
string
since
:
Date
Returns
Promise
<
boolean
>
find
All
findAll
()
:
Promise
<
Notification
[]
>
Returns
Promise
<
Notification
[]
>
find
By
Id
findById
(
id
:
NotificationId
)
:
Promise
<
Notification
|
undefined
>
Parameters
id
:
NotificationId
Returns
Promise
<
Notification
|
undefined
>
remove
remove
(
notification
:
Notification
)
:
Promise
<
void
>
Parameters
notification
:
Notification
Returns
Promise
<
void
>
remove
All
removeAll
()
:
Promise
<
void
>
Returns
Promise
<
void
>
save
save
(
notification
:
Notification
)
:
Promise
<
void
>
Parameters
notification
:
Notification
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
count
Unread
exists
Recent
Unread
find
All
find
By
Id
remove
remove
All
save
notification-service
Loading...