diff options
Diffstat (limited to 'packages/backend/src/models/Notification.ts')
| -rw-r--r-- | packages/backend/src/models/Notification.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/backend/src/models/Notification.ts b/packages/backend/src/models/Notification.ts index 1d5fc124e2..3bc2edaa0d 100644 --- a/packages/backend/src/models/Notification.ts +++ b/packages/backend/src/models/Notification.ts @@ -3,11 +3,10 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { notificationTypes } from '@/types.js'; import { MiUser } from './User.js'; import { MiNote } from './Note.js'; -import { MiFollowRequest } from './FollowRequest.js'; import { MiAccessToken } from './AccessToken.js'; +import { MiRole } from './Role.js'; export type MiNotification = { type: 'note'; @@ -69,6 +68,11 @@ export type MiNotification = { createdAt: string; notifierId: MiUser['id']; } | { + type: 'roleAssigned'; + id: string; + createdAt: string; + roleId: MiRole['id']; +} | { type: 'achievementEarned'; id: string; createdAt: string; |