Skip to content

Documentation / @tenancy-node/core / TenantNotification

Interface: TenantNotification ​

Defined in: core/src/notifications/notification-service.ts:25

Aviso tal como lo ve un usuario de un tenant.

Extends ​

Properties ​

audience ​

audience: NotificationAudience

Defined in: core/src/domain/entities/notification.ts:18

Inherited from ​

Notification.audience


body ​

body: string

Defined in: core/src/domain/entities/notification.ts:16

Inherited from ​

Notification.body


createdAt ​

createdAt: Date

Defined in: core/src/domain/entities/notification.ts:29

Inherited from ​

Notification.createdAt


createdBy ​

createdBy: string | null

Defined in: core/src/domain/entities/notification.ts:28

Quién lo envió (email del panel, cli...).

Inherited from ​

Notification.createdBy


expiresAt ​

expiresAt: Date | null

Defined in: core/src/domain/entities/notification.ts:26

Hasta cuándo se muestra. null = sin vencimiento.

Inherited from ​

Notification.expiresAt


id ​

id: string

Defined in: core/src/domain/entities/notification.ts:14

Inherited from ​

Notification.id


level ​

level: "info" | "success" | "warning" | "critical"

Defined in: core/src/domain/entities/notification.ts:17

Inherited from ​

Notification.level


link: { label: string; url: string; } | null

Defined in: core/src/domain/entities/notification.ts:22

Botón opcional ("Ver detalles").

Inherited from ​

Notification.link


read ​

read: boolean

Defined in: core/src/notifications/notification-service.ts:27

true si este usuario ya lo leyó (sin userId, siempre false).


roles ​

roles: readonly string[] | null

Defined in: core/src/domain/entities/notification.ts:20

Roles de la app que lo ven (['ADMIN']). null = todos. Lo filtra forTenant({ roles }).

Inherited from ​

Notification.roles


startsAt ​

startsAt: Date | null

Defined in: core/src/domain/entities/notification.ts:24

Desde cuándo se muestra. null = desde que se envía.

Inherited from ​

Notification.startsAt


title ​

title: string

Defined in: core/src/domain/entities/notification.ts:15

Inherited from ​

Notification.title

Publicado bajo la licencia MIT.