Preparing search index...
The search index is not available
@deep/nest-kit
@deep/nest-kit
modules/notifications
EmailNotificationSender
Class EmailNotificationSender<T>
Abstract
Type Parameters
T
extends
Notification
Hierarchy (
View Summary
)
NotificationSender
<
T
,
IEmailNotification
>
EmailNotificationSender
Index
Constructors
constructor
Properties
cache
logger
logger
Factory
notification
Class
Ref
RECIEVER_
CACHE_
TTL
Methods
format
get
Cached
Receiver
get
Receiver
on
Module
Init
send
try
To
Send
Constructors
constructor
new
EmailNotificationSender
<
T
extends
Notification
>
(
notificationClassRef
:
Type
<
T
>
,
)
:
EmailNotificationSender
<
T
>
Type Parameters
T
extends
Notification
Parameters
notificationClassRef
:
Type
<
T
>
Returns
EmailNotificationSender
<
T
>
Properties
Protected
Readonly
cache
cache
:
Cache
logger
logger
:
WinstonLogger
Protected
Readonly
logger
Factory
loggerFactory
:
WinstonLoggerFactory
Protected
Readonly
notification
Class
Ref
notificationClassRef
:
Type
<
T
>
Protected
RECIEVER_
CACHE_
TTL
RECIEVER_CACHE_TTL
:
number
= 10000
Methods
format
format
(
notification
:
T
)
:
Promise
<
IEmailNotification
>
Parameters
notification
:
T
Returns
Promise
<
IEmailNotification
>
get
Cached
Receiver
getCachedReceiver
(
notification
:
T
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
MaybeNull
<
string
>
>
Parameters
notification
:
T
ctx
:
BaseServiceMethodContext
Returns
Promise
<
MaybeNull
<
string
>
>
get
Receiver
getReceiver
(
notification
:
Notification
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
MaybeNull
<
string
>
>
Parameters
notification
:
Notification
ctx
:
BaseServiceMethodContext
Returns
Promise
<
MaybeNull
<
string
>
>
on
Module
Init
onModuleInit
()
:
void
Returns
void
send
send
(
receiver
:
string
,
notification
:
T
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
void
>
Parameters
receiver
:
string
notification
:
T
ctx
:
BaseServiceMethodContext
Returns
Promise
<
void
>
try
To
Send
tryToSend
(
notification
:
T
,
ctx
:
BaseServiceMethodContext
)
:
Promise
<
void
>
Parameters
notification
:
T
ctx
:
BaseServiceMethodContext
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cache
logger
logger
Factory
notification
Class
Ref
RECIEVER_
CACHE_
TTL
Methods
format
get
Cached
Receiver
get
Receiver
on
Module
Init
send
try
To
Send
@deep/nest-kit
Loading...