AbstractNotificationService
internal.internal.AbstractNotificationService
Implements
Properties
__configModule__Record<string, unknown>__container__anyRequired__moduleDeclaration__Record<string, unknown>manager_EntityManagerRequiredtransactionManager_undefined | EntityManagerRequiredidentifierstringRequiredAccessors
activeManager_
Protected get activeManager_(): EntityManager
Returns
EntityManager
EntityManagerEntityManagerRequiredImplementation of
INotificationService.activeManager_
Inherited from
TransactionBaseService.activeManager_
Methods
atomicPhase_
Protected atomicPhase_<TResult, TError>(work, isolationOrErrorHandler?, maybeErrorHandlerOrDontFail?): Promise<TResult>
Wraps some work within a transactional block. If the service already has a transaction manager attached this will be reused, otherwise a new transaction manager is created.
TResultobjectRequiredTErrorobjectRequiredParameters
work(transactionManager: EntityManager) => Promise<TResult>RequiredisolationOrErrorHandlerIsolationLevel | (error: TError) => Promise<void | TResult>maybeErrorHandlerOrDontFail(error: TError) => Promise<void | TResult>Returns
Promise<TResult>
PromisePromise<TResult>RequiredImplementation of
INotificationService.atomicPhase_
Inherited from
TransactionBaseService.atomicPhase_
getIdentifier
getIdentifier(): string
Returns
string
stringstringresendNotification
Abstract resendNotification(notification, config, attachmentGenerator): Promise<ReturnedData>
Parameters
notificationunknownRequiredconfigunknownRequiredattachmentGeneratorunknownRequiredReturns
Promise<ReturnedData>
Implementation of
INotificationService.resendNotification
sendNotification
Abstract sendNotification(event, data, attachmentGenerator): Promise<ReturnedData>
Parameters
eventstringRequireddataunknownRequiredattachmentGeneratorunknownRequiredReturns
Promise<ReturnedData>
Implementation of
INotificationService.sendNotification
shouldRetryTransaction_
Protected shouldRetryTransaction_(err): boolean
Parameters
errRecord<string, unknown> | { code: string }RequiredReturns
boolean
booleanbooleanImplementation of
INotificationService.shouldRetryTransaction_
Inherited from
TransactionBaseService.shouldRetryTransaction_
withTransaction
withTransaction(transactionManager?): AbstractNotificationService
Parameters
transactionManagerEntityManagerReturns
Implementation of
INotificationService.withTransaction