Workspaces refactor #86

Merged
norm merged 189 commits from refactor/workspaces into main 2022-08-28 14:46:45 +00:00
Showing only changes of commit 05a902f3a5 - Show all commits

View file

@ -1,5 +1,7 @@
import { CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities'; import { CustomEmoji, DriveFile, MeDetailed, MessagingMessage, Note, Notification, PageEvent, User, UserGroup } from './entities';
type FIXME = any;
export type Channels = { export type Channels = {
main: { main: {
params: null; params: null;
@ -29,30 +31,35 @@ export type Channels = {
unreadChannel: () => void; unreadChannel: () => void;
myTokenRegenerated: () => void; myTokenRegenerated: () => void;
}; };
receives: null;
}; };
homeTimeline: { homeTimeline: {
params: null; params: null;
events: { events: {
note: (payload: Note) => void; note: (payload: Note) => void;
}; };
receives: null;
}; };
localTimeline: { localTimeline: {
params: null; params: null;
events: { events: {
note: (payload: Note) => void; note: (payload: Note) => void;
}; };
receives: null;
}; };
hybridTimeline: { hybridTimeline: {
params: null; params: null;
events: { events: {
note: (payload: Note) => void; note: (payload: Note) => void;
}; };
receives: null;
}; };
globalTimeline: { globalTimeline: {
params: null; params: null;
events: { events: {
note: (payload: Note) => void; note: (payload: Note) => void;
}; };
receives: null;
}; };
messaging: { messaging: {
params: { params: {
@ -65,6 +72,35 @@ export type Channels = {
read: (payload: MessagingMessage['id'][]) => void; read: (payload: MessagingMessage['id'][]) => void;
typers: (payload: User[]) => void; typers: (payload: User[]) => void;
}; };
receives: {
read: {
id: MessagingMessage['id'];
};
};
};
serverStats: {
params: null;
events: {
stats: (payload: FIXME) => void;
};
receives: {
requestLog: {
id: string | number;
length: number;
};
};
};
queueStats: {
params: null;
events: {
stats: (payload: FIXME) => void;
};
receives: {
requestLog: {
id: string | number;
length: number;
};
};
}; };
}; };