basalt / notifications/src / NotificationNotFoundError
Class: NotificationNotFoundError
Defined in: notifications/src/routes.ts:22
Reading your own in-app notifications.
The package stored these and never served them, so a bell icon had nowhere to read from and every application wrote the same four endpoints.
The routing shape is opinionated enough that leaving it out was defensible. The security decision is not, and is the same everywhere: the recipient is the session, never a parameter. No handler here reads an id from the query or the body — a ?recipientId= is the shortest path to one employee reading another's alerts, and a deadline alert names the case.
fastifyPlugin({ routes: [...inAppRoutes(), ...myRoutes] })Extends
Constructors
Constructor
> new NotificationNotFoundError(): NotificationNotFoundError
Defined in: notifications/src/routes.ts:24
Returns
NotificationNotFoundError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).
Inherited from
status
> readonly status: 404 = 404
Defined in: notifications/src/routes.ts:23