feat(server): send invitation review notification (#10418)

This commit is contained in:
fengmk2
2025-03-24 03:32:24 +00:00
parent dfd633b8b0
commit 28f8639aff
16 changed files with 629 additions and 137 deletions

View File

@@ -624,7 +624,7 @@ type InvitationAcceptedNotificationBodyType {
The user who created the notification, maybe null when user is deleted or sent by system
"""
createdByUser: PublicUserType
inviteId: String!
inviteId: ID!
"""The type of the notification"""
type: NotificationType!
@@ -636,7 +636,7 @@ type InvitationBlockedNotificationBodyType {
The user who created the notification, maybe null when user is deleted or sent by system
"""
createdByUser: PublicUserType
inviteId: String!
inviteId: ID!
"""The type of the notification"""
type: NotificationType!
@@ -655,6 +655,41 @@ type InvitationNotificationBodyType {
workspace: NotificationWorkspaceType
}
type InvitationReviewApprovedNotificationBodyType {
"""
The user who created the notification, maybe null when user is deleted or sent by system
"""
createdByUser: PublicUserType
inviteId: ID!
"""The type of the notification"""
type: NotificationType!
workspace: NotificationWorkspaceType
}
type InvitationReviewDeclinedNotificationBodyType {
"""
The user who created the notification, maybe null when user is deleted or sent by system
"""
createdByUser: PublicUserType
"""The type of the notification"""
type: NotificationType!
workspace: NotificationWorkspaceType
}
type InvitationReviewRequestNotificationBodyType {
"""
The user who created the notification, maybe null when user is deleted or sent by system
"""
createdByUser: PublicUserType
inviteId: ID!
"""The type of the notification"""
type: NotificationType!
workspace: NotificationWorkspaceType
}
type InvitationType {
"""Invitee information"""
invitee: UserType!
@@ -1047,6 +1082,9 @@ enum NotificationType {
InvitationAccepted
InvitationBlocked
InvitationRejected
InvitationReviewApproved
InvitationReviewDeclined
InvitationReviewRequest
Mention
}
@@ -1435,7 +1473,7 @@ type TranscriptionResultType {
transcription: [TranscriptionItemType!]
}
union UnionNotificationBodyType = InvitationAcceptedNotificationBodyType | InvitationBlockedNotificationBodyType | InvitationNotificationBodyType | MentionNotificationBodyType
union UnionNotificationBodyType = InvitationAcceptedNotificationBodyType | InvitationBlockedNotificationBodyType | InvitationNotificationBodyType | InvitationReviewApprovedNotificationBodyType | InvitationReviewDeclinedNotificationBodyType | InvitationReviewRequestNotificationBodyType | MentionNotificationBodyType
type UnknownOauthProviderDataType {
name: String!