UNPKG

@coko/server

Version:

Reusable server for use by Coko's projects

29 lines 2.31 kB
import User from './user.model'; import { TrxOption, FindOptions, QueryResult, TrxAndRelatedOptions } from '../base.model'; import Team from '../team/team.model'; declare const activateUser: (id: string, options?: TrxOption) => Promise<User>; declare const activateUsers: (ids: string[], options?: TrxOption) => Promise<User[]>; declare const getUser: (id: string, options?: TrxAndRelatedOptions) => Promise<User>; declare const getDisplayName: (user: User) => string; declare const getUsers: (queryParams?: {}, options?: FindOptions) => Promise<QueryResult<User>>; declare const deleteUser: (id: any, options?: TrxOption) => Promise<number>; declare const deleteUsers: (ids: any, options?: TrxOption) => Promise<number>; declare const deactivateUser: (id: string, options?: TrxOption) => Promise<User>; declare const deactivateUsers: (ids: string[], options?: TrxOption) => Promise<User[]>; declare const updateUser: (id: string, data: any, options?: TrxAndRelatedOptions) => Promise<User>; export type LoginResponse = { user: User; token: string; }; declare const login: (input: any) => Promise<LoginResponse>; declare const signUp: (data: any, options?: TrxOption) => Promise<string>; declare const verifyEmail: (token: any, options?: TrxOption) => Promise<boolean>; declare const resendVerificationEmail: (token: any, options?: TrxOption) => Promise<boolean>; declare const resendVerificationEmailAfterLogin: (userId: string, options?: TrxOption) => Promise<boolean>; declare const updatePassword: (id: string, currentPassword: string, newPassword: string) => Promise<boolean>; declare const sendPasswordResetEmail: (email: any, options?: TrxOption) => Promise<boolean>; declare const resetPassword: (token: any, password: any, options?: TrxOption) => Promise<boolean>; declare const setDefaultIdentity: (userId: any, identityId: any, options?: TrxOption) => Promise<User>; declare const getUserTeams: (user: any) => Promise<Team[]>; export { activateUser, activateUsers, deactivateUser, deactivateUsers, deleteUser, deleteUsers, getDisplayName, getUser, getUsers, getUserTeams, login, updateUser, updatePassword, resetPassword, resendVerificationEmail, resendVerificationEmailAfterLogin, setDefaultIdentity, sendPasswordResetEmail, signUp, verifyEmail, }; //# sourceMappingURL=user.controller.d.ts.map