summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/notification.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-09-26 14:15:03 +0900
committerGitHub <noreply@github.com>2024-09-26 14:15:03 +0900
commitd8a2eeb7ed44a4e25426ca9b7c6c85b8c62d3106 (patch)
tree188c69f292567d61a83ef7f1c19fac654586d1d3 /packages/backend/src/models/json-schema/notification.ts
parentenhance(frontend): 絵文字ピッカーをドロワー表示するか自由... (diff)
downloadsharkey-d8a2eeb7ed44a4e25426ca9b7c6c85b8c62d3106.tar.gz
sharkey-d8a2eeb7ed44a4e25426ca9b7c6c85b8c62d3106.tar.bz2
sharkey-d8a2eeb7ed44a4e25426ca9b7c6c85b8c62d3106.zip
feat: エクスポート完了時に通知を発行するように (#14484)
* feat: エクスポート完了時に通知を発行するように * Update Changelog * entitity -> entity * fix: ペイロードを含むように * fix icon * exportableEntities -> userExportableEntities
Diffstat (limited to 'packages/backend/src/models/json-schema/notification.ts')
-rw-r--r--packages/backend/src/models/json-schema/notification.ts22
1 files changed, 21 insertions, 1 deletions
diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts
index b05ec8b762..bbec2e397f 100644
--- a/packages/backend/src/models/json-schema/notification.ts
+++ b/packages/backend/src/models/json-schema/notification.ts
@@ -4,7 +4,7 @@
*/
import { ACHIEVEMENT_TYPES } from '@/core/AchievementService.js';
-import { notificationTypes } from '@/types.js';
+import { notificationTypes, userExportableEntities } from '@/types.js';
const baseSchema = {
type: 'object',
@@ -305,6 +305,26 @@ export const packedNotificationSchema = {
type: {
type: 'string',
optional: false, nullable: false,
+ enum: ['exportCompleted'],
+ },
+ exportedEntity: {
+ type: 'string',
+ optional: false, nullable: false,
+ enum: userExportableEntities,
+ },
+ fileId: {
+ type: 'string',
+ optional: false, nullable: false,
+ format: 'id',
+ },
+ },
+ }, {
+ type: 'object',
+ properties: {
+ ...baseSchema.properties,
+ type: {
+ type: 'string',
+ optional: false, nullable: false,
enum: ['app'],
},
body: {