@deep/nest-kit
Preparing search index...
modules/notification-subscriptions
BaseNotificationSubscriptionsService
Class BaseNotificationSubscriptionsService
Index
Constructors
constructor
Properties
data
Source
id
Service
logger
logger
Factory
Accessors
repository
Methods
delete
get
Many
get
One
get
One
By
get
One
By
Or
Fail
get
One
Or
Fail
get
System
Subscribers
on
Module
Init
sync
toggle
update
Constructors
constructor
new
BaseNotificationSubscriptionsService
()
:
BaseNotificationSubscriptionsService
Returns
BaseNotificationSubscriptionsService
Properties
Protected
Readonly
data
Source
dataSource
:
DataSource
Protected
Readonly
id
Service
idService
:
IdService
logger
logger
:
WinstonLogger
Protected
Readonly
logger
Factory
loggerFactory
:
WinstonLoggerFactory
Accessors
repository
get
repository
()
:
Repository
<
NotificationSubscription
>
Returns
Repository
<
NotificationSubscription
>
Methods
delete
delete
(
id
:
string
,
ctx
:
BaseServiceMethodContext
)
:
Promise
<
void
>
Parameters
id
:
string
ctx
:
BaseServiceMethodContext
Returns
Promise
<
void
>
get
Many
getMany
(
__namedParameters
:
GetManyNotificationSubscriptionsOptions
,
)
:
Promise
<
[
NotificationSubscription
[]
,
ListMeta
]
>
Parameters
__namedParameters
:
GetManyNotificationSubscriptionsOptions
Returns
Promise
<
[
NotificationSubscription
[]
,
ListMeta
]
>
get
One
getOne
(
id
:
string
)
:
Promise
<
MaybeNull
<
NotificationSubscription
>
>
Parameters
id
:
string
Returns
Promise
<
MaybeNull
<
NotificationSubscription
>
>
get
One
By
getOneBy
(
opts
:
GetNotificationSubscriptionByOptions
,
)
:
Promise
<
MaybeNull
<
NotificationSubscription
>
>
Parameters
opts
:
GetNotificationSubscriptionByOptions
Returns
Promise
<
MaybeNull
<
NotificationSubscription
>
>
get
One
By
Or
Fail
getOneByOrFail
(
opts
:
GetNotificationSubscriptionByOptions
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
NotificationSubscription
>
Parameters
opts
:
GetNotificationSubscriptionByOptions
ctx
:
BaseServiceMethodContext
Returns
Promise
<
NotificationSubscription
>
get
One
Or
Fail
getOneOrFail
(
id
:
string
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
NotificationSubscription
>
Parameters
id
:
string
ctx
:
BaseServiceMethodContext
Returns
Promise
<
NotificationSubscription
>
get
System
Subscribers
getSystemSubscribers
()
:
Promise
<
{
userId
:
string
}
[]
>
Returns
Promise
<
{
userId
:
string
}
[]
>
on
Module
Init
onModuleInit
()
:
void
Returns
void
sync
sync
(
__namedParameters
:
SyncNotificationSubscriptionOptions
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
NotificationSubscription
>
Parameters
__namedParameters
:
SyncNotificationSubscriptionOptions
ctx
:
BaseServiceMethodContext
Returns
Promise
<
NotificationSubscription
>
toggle
toggle
(
opts
:
ToggleNotificationSubscriptionOptions
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
NotificationSubscription
>
Parameters
opts
:
ToggleNotificationSubscriptionOptions
ctx
:
BaseServiceMethodContext
Returns
Promise
<
NotificationSubscription
>
update
update
(
opts
:
UpdateNotificationSubscriptionInput
,
ctx
:
BaseServiceMethodContext
,
)
:
Promise
<
NotificationSubscription
>
Parameters
opts
:
UpdateNotificationSubscriptionInput
ctx
:
BaseServiceMethodContext
Returns
Promise
<
NotificationSubscription
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
data
Source
id
Service
logger
logger
Factory
Accessors
repository
Methods
delete
get
Many
get
One
get
One
By
get
One
By
Or
Fail
get
One
Or
Fail
get
System
Subscribers
on
Module
Init
sync
toggle
update
@deep/nest-kit
Loading...