vn-verdnaturachat/app/definitions/rest/v1/users.ts

15 lines
394 B
TypeScript
Raw Normal View History

import type { ITeam } from '../../ITeam';
import type { IUser } from '../../IUser';
export type UsersEndpoints = {
'users.2fa.sendEmailCode': {
POST: (params: { emailOrUsername: string }) => void;
};
'users.autocomplete': {
GET: (params: { selector: string }) => { items: IUser[] };
};
'users.listTeams': {
GET: (params: { userId: IUser['_id'] }) => { teams: Array<ITeam> };
};
};