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
body
body:
string
Defined in: core/src/domain/entities/notification.ts:16
Inherited from
createdAt
createdAt:
Date
Defined in: core/src/domain/entities/notification.ts:29
Inherited from
createdBy
createdBy:
string|null
Defined in: core/src/domain/entities/notification.ts:28
Quién lo envió (email del panel, cli...).
Inherited from
expiresAt
expiresAt:
Date|null
Defined in: core/src/domain/entities/notification.ts:26
Hasta cuándo se muestra. null = sin vencimiento.
Inherited from
id
id:
string
Defined in: core/src/domain/entities/notification.ts:14
Inherited from
level
level:
"info"|"success"|"warning"|"critical"
Defined in: core/src/domain/entities/notification.ts:17
Inherited from
link
link: {
label:string;url:string; } |null
Defined in: core/src/domain/entities/notification.ts:22
Botón opcional ("Ver detalles").
Inherited from
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
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
title
title:
string
Defined in: core/src/domain/entities/notification.ts:15