enhance: チャットルームに招待されたときの通知を追加

This commit is contained in:
syuilo 2025-03-25 15:25:43 +09:00
parent 2fc3baa988
commit 304d0eb83b
15 changed files with 105 additions and 13 deletions

View file

@ -75,6 +75,12 @@ export type MiNotification = {
id: string;
createdAt: string;
roleId: MiRole['id'];
} | {
type: 'chatRoomInvitationReceived';
id: string;
createdAt: string;
notifierId: MiUser['id'];
invitationId: string;
} | {
type: 'achievementEarned';
id: string;

View file

@ -287,6 +287,21 @@ export const packedNotificationSchema = {
optional: false, nullable: false,
},
},
}, {
type: 'object',
properties: {
...baseSchema.properties,
type: {
type: 'string',
optional: false, nullable: false,
enum: ['chatRoomInvitationReceived'],
},
invitation: {
type: 'object',
ref: 'ChatRoomInvitation',
optional: false, nullable: false,
},
},
}, {
type: 'object',
properties: {

View file

@ -608,6 +608,7 @@ export const packedMeDetailedOnlySchema = {
receiveFollowRequest: { optional: true, ...notificationRecieveConfig },
followRequestAccepted: { optional: true, ...notificationRecieveConfig },
roleAssigned: { optional: true, ...notificationRecieveConfig },
chatRoomInvitationReceived: { optional: true, ...notificationRecieveConfig },
achievementEarned: { optional: true, ...notificationRecieveConfig },
app: { optional: true, ...notificationRecieveConfig },
test: { optional: true, ...notificationRecieveConfig },