notification-service
Preparing search index...
domain/ports/NotificationRepository
NotificationRepository
Interface NotificationRepository
interface
NotificationRepository
{
countUnread
()
:
Promise
<
number
>
;
existsRecentUnread
(
sourceId
:
string
,
since
:
Date
)
:
Promise
<
boolean
>
;
findAll
()
:
Promise
<
Notification
[]
>
;
findById
(
id
:
NotificationId
)
:
Promise
<
Notification
|
undefined
>
;
remove
(
notification
:
Notification
)
:
Promise
<
void
>
;
removeAll
()
:
Promise
<
void
>
;
save
(
notification
:
Notification
)
:
Promise
<
void
>
;
}
Implemented by
MongoNotificationRepository
Index
Methods
count
Unread
exists
Recent
Unread
find
All
find
By
Id
remove
remove
All
save
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
Methods
count
Unread
exists
Recent
Unread
find
All
find
By
Id
remove
remove
All
save
notification-service
Loading...