21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
|
import type { IMessage } from '../../IMessage';
|
||
|
import type { IRoom } from '../../IRoom';
|
||
|
import type { IUser } from '../../IUser';
|
||
|
|
||
|
export type GroupsEndpoints = {
|
||
|
'groups.files': {
|
||
|
GET: (params: { roomId: IRoom['_id']; count: number; sort: string; query: string }) => {
|
||
|
files: IMessage[];
|
||
|
total: number;
|
||
|
};
|
||
|
};
|
||
|
'groups.members': {
|
||
|
GET: (params: { roomId: IRoom['_id']; offset?: number; count?: number; filter?: string; status?: string[] }) => {
|
||
|
count: number;
|
||
|
offset: number;
|
||
|
members: IUser[];
|
||
|
total: number;
|
||
|
};
|
||
|
};
|
||
|
};
|