mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
chore(server): cleanup team impl (#9171)
This commit is contained in:
@@ -3,13 +3,11 @@ import type { Snapshot, User, Workspace } from '@prisma/client';
|
||||
import { Flatten, Payload } from './types';
|
||||
|
||||
export interface WorkspaceEvents {
|
||||
team: {
|
||||
seatAvailable: Payload<{ inviteId: string; email: string }[]>;
|
||||
reviewRequest: Payload<{ inviteIds: string[] }>;
|
||||
declineRequest: Payload<{
|
||||
workspaceId: Workspace['id'];
|
||||
inviteeId: User['id'];
|
||||
}>;
|
||||
members: {
|
||||
reviewRequested: Payload<{ inviteId: string }>;
|
||||
requestDeclined: Payload<{ inviteId: string }>;
|
||||
requestApproved: Payload<{ inviteId: string }>;
|
||||
updated: Payload<{ workspaceId: Workspace['id']; count: number }>;
|
||||
};
|
||||
deleted: Payload<Workspace['id']>;
|
||||
blob: {
|
||||
|
||||
Reference in New Issue
Block a user