basalt / notifications-prisma/src / PrismaInAppStore
Class: PrismaInAppStore
Defined in: notifications-prisma/src/index.ts:90
Implements
Constructors
Constructor
> new PrismaInAppStore(client, options?): PrismaInAppStore
Defined in: notifications-prisma/src/index.ts:93
Parameters
client
options?
Returns
PrismaInAppStore
Methods
append()
> append(record): Promise<void>
Defined in: notifications-prisma/src/index.ts:100
Parameters
record
Returns
Promise<void>
Implementation of
list()
> list(recipientId, options?): Promise<InAppNotification[]>
Defined in: notifications-prisma/src/index.ts:115
Parameters
recipientId
string
options?
limit?
number
unreadOnly?
boolean
Returns
Promise<InAppNotification[]>
Implementation of
markRead()
> markRead(recipientId, id): Promise<boolean>
Defined in: notifications-prisma/src/index.ts:130
Parameters
recipientId
string
id
string
Returns
Promise<boolean>
Implementation of
unreadCount()
> unreadCount(recipientId): Promise<number>
Defined in: notifications-prisma/src/index.ts:140
Parameters
recipientId
string
Returns
Promise<number>