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

@@ -776,7 +776,7 @@ export interface InvitationAcceptedNotificationBodyType {
__typename?: 'InvitationAcceptedNotificationBodyType';
/** The user who created the notification, maybe null when user is deleted or sent by system */
createdByUser: Maybe<PublicUserType>;
inviteId: Scalars['String']['output'];
inviteId: Scalars['ID']['output'];
/** The type of the notification */
type: NotificationType;
workspace: Maybe<NotificationWorkspaceType>;
@@ -786,7 +786,7 @@ export interface InvitationBlockedNotificationBodyType {
__typename?: 'InvitationBlockedNotificationBodyType';
/** The user who created the notification, maybe null when user is deleted or sent by system */
createdByUser: Maybe<PublicUserType>;
inviteId: Scalars['String']['output'];
inviteId: Scalars['ID']['output'];
/** The type of the notification */
type: NotificationType;
workspace: Maybe<NotificationWorkspaceType>;
@@ -802,6 +802,35 @@ export interface InvitationNotificationBodyType {
workspace: Maybe<NotificationWorkspaceType>;
}
export interface InvitationReviewApprovedNotificationBodyType {
__typename?: 'InvitationReviewApprovedNotificationBodyType';
/** The user who created the notification, maybe null when user is deleted or sent by system */
createdByUser: Maybe<PublicUserType>;
inviteId: Scalars['ID']['output'];
/** The type of the notification */
type: NotificationType;
workspace: Maybe<NotificationWorkspaceType>;
}
export interface InvitationReviewDeclinedNotificationBodyType {
__typename?: 'InvitationReviewDeclinedNotificationBodyType';
/** The user who created the notification, maybe null when user is deleted or sent by system */
createdByUser: Maybe<PublicUserType>;
/** The type of the notification */
type: NotificationType;
workspace: Maybe<NotificationWorkspaceType>;
}
export interface InvitationReviewRequestNotificationBodyType {
__typename?: 'InvitationReviewRequestNotificationBodyType';
/** The user who created the notification, maybe null when user is deleted or sent by system */
createdByUser: Maybe<PublicUserType>;
inviteId: Scalars['ID']['output'];
/** The type of the notification */
type: NotificationType;
workspace: Maybe<NotificationWorkspaceType>;
}
export interface InvitationType {
__typename?: 'InvitationType';
/** Invitee information */
@@ -1501,6 +1530,9 @@ export enum NotificationType {
InvitationAccepted = 'InvitationAccepted',
InvitationBlocked = 'InvitationBlocked',
InvitationRejected = 'InvitationRejected',
InvitationReviewApproved = 'InvitationReviewApproved',
InvitationReviewDeclined = 'InvitationReviewDeclined',
InvitationReviewRequest = 'InvitationReviewRequest',
Mention = 'Mention',
}
@@ -1945,6 +1977,9 @@ export type UnionNotificationBodyType =
| InvitationAcceptedNotificationBodyType
| InvitationBlockedNotificationBodyType
| InvitationNotificationBodyType
| InvitationReviewApprovedNotificationBodyType
| InvitationReviewDeclinedNotificationBodyType
| InvitationReviewRequestNotificationBodyType
| MentionNotificationBodyType;
export interface UnknownOauthProviderDataType {