Skip to content

@sourceloop/notification-service / Exports / NotificationUserSettingsProvider

Class: NotificationUserSettingsProvider

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NotificationUserSettingsProvider(userNotifSettingsRepository, notificationRepository)

Parameters

Name Type
userNotifSettingsRepository UserNotificationSettingsRepository
notificationRepository NotificationRepository

Defined in

services/notification-service/src/providers/notification-user-settings.service.ts:22

Properties

notificationRepository

notificationRepository: NotificationRepository

Defined in

services/notification-service/src/providers/notification-user-settings.service.ts:27


userNotifSettingsRepository

userNotifSettingsRepository: UserNotificationSettingsRepository

Defined in

services/notification-service/src/providers/notification-user-settings.service.ts:25

Methods

value

value(): Object

Returns

Object

Name Type
checkUserNotificationSettings (notification: Notification) => Promise<Subscriber[]>
getDraftSubscribers (categorizedSubscribes: Subscriber[]) => Promise<Subscriber[]>
getNotificationSubscribers (categorizedSubscribes: Subscriber[]) => Promise<Subscriber[]>

Implementation of

Provider.value

Defined in

services/notification-service/src/providers/notification-user-settings.service.ts:30