summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/notification.ts
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2023-11-21 11:13:56 +0900
committerGitHub <noreply@github.com>2023-11-21 11:13:56 +0900
commit8bd9077f77eaebaa4dff403e072ba49e4cab1326 (patch)
tree91e217c04667b3d1d7a2abdb7f911c54cd1ae775 /packages/backend/src/models/json-schema/notification.ts
parentupdate api.md (#12379) (diff)
downloadsharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.gz
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.tar.bz2
sharkey-8bd9077f77eaebaa4dff403e072ba49e4cab1326.zip
json-schema配下の最新化 (#12312)
* user.ts、page.ts、drive-folder.tsを各EntityServiceの戻り値をもとに最新化 * 再確認 * fix error * note以外の残りのファイルを対応 * fix CHANGELOG.md * fix CHANGELOG.md * fix user.ts * fix user.ts * コメント対応 * fix note.ts --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/models/json-schema/notification.ts')
-rw-r--r--packages/backend/src/models/json-schema/notification.ts26
1 files changed, 11 insertions, 15 deletions
diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts
index 27db3bb62c..c6d6e84317 100644
--- a/packages/backend/src/models/json-schema/notification.ts
+++ b/packages/backend/src/models/json-schema/notification.ts
@@ -42,13 +42,9 @@ export const packedNotificationSchema = {
type: 'string',
optional: true, nullable: true,
},
- choice: {
- type: 'number',
- optional: true, nullable: true,
- },
- invitation: {
- type: 'object',
- optional: true, nullable: true,
+ achievement: {
+ type: 'string',
+ optional: true, nullable: false,
},
body: {
type: 'string',
@@ -81,14 +77,14 @@ export const packedNotificationSchema = {
required: ['user', 'reaction'],
},
},
- },
- users: {
- type: 'array',
- optional: true, nullable: true,
- items: {
- type: 'object',
- ref: 'UserLite',
- optional: false, nullable: false,
+ users: {
+ type: 'array',
+ optional: true, nullable: true,
+ items: {
+ type: 'object',
+ ref: 'UserLite',
+ optional: false, nullable: false,
+ },
},
},
} as const;