diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-12-21 10:39:11 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-21 10:39:11 +0900 |
| commit | 15b0d2aff2011935f212db19feab3bec97979ae1 (patch) | |
| tree | e3a386517aefbaad295f2bed66d74e70cf7c966f /packages/backend/src/models/Notification.ts | |
| parent | chore(workflows): use postgres 15 everywhere (#12726) (diff) | |
| download | misskey-15b0d2aff2011935f212db19feab3bec97979ae1.tar.gz misskey-15b0d2aff2011935f212db19feab3bec97979ae1.tar.bz2 misskey-15b0d2aff2011935f212db19feab3bec97979ae1.zip | |
enhance: ロールにアサインされたときの通知 (#12607)
* wip
* Update misskey-js.api.md
* Update CHANGELOG.md
* Update RoleService.ts
* Update locales/ja-JP.yml
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
* Update UserListService.ts
* Update misskey-js.api.md
* fix (#12724)
---------
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
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; |