Skip to content

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 ​

PrismaNotificationsClient

options? ​

PrismaInAppStoreOptions = {}

Returns ​

PrismaInAppStore

Methods ​

append() ​

> append(record): Promise<void>

Defined in: notifications-prisma/src/index.ts:100

Parameters ​

record ​

InAppNotification

Returns ​

Promise<void>

Implementation of ​

InAppStore.append


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 ​

InAppStore.list


markRead() ​

> markRead(recipientId, id): Promise<boolean>

Defined in: notifications-prisma/src/index.ts:130

Parameters ​

recipientId ​

string

id ​

string

Returns ​

Promise<boolean>

Implementation of ​

InAppStore.markRead


unreadCount() ​

> unreadCount(recipientId): Promise<number>

Defined in: notifications-prisma/src/index.ts:140

Parameters ​

recipientId ​

string

Returns ​

Promise<number>

Implementation of ​

InAppStore.unreadCount

Released under the MIT License.