import { User, UserRole, UserRolePermission, UserFilter } from "./user.schema"; import * as mongoose from "mongoose"; import { BaseService } from "../common/base/base.service"; import { EntitiesService } from "../entities/entities.service"; import { ClsService } from "nestjs-cls"; import { SearchResultDto } from "../common/dto/search_result.dto"; export declare class UserService extends BaseService { readonly cls: ClsService; private entitiesService; protected model: mongoose.Model; constructor(cls: ClsService, entitiesService: EntitiesService, model: mongoose.Model); init(): Promise; initData(): Promise; private _prepareSchedule; private _isBasicAuthorization; private _applyRegistrationRolesFromApiKey; private _validateSystemAdminRole; private _checkRolesUpdate; private _allowSystemUserOnly; private _allowSystemAdminRoleOnly; private _allowManageUserOnly; private _allowCurrentUserOnly; private _passwordHash; private _verifyPassword; private _applyPasswordPolicy; private _resetPassword; sendActivateAccountEmail(data: any, apiKey?: object): Promise<{ status: boolean; }>; resendActivateAccountEmail(data: any): Promise<{ status: boolean; }>; sendActivateChangePassword(data: any): Promise; findOne(id: string): Promise; find(keywords: string, filters?: any, sort?: string): Promise; search(keywords: string, filters?: any, page?: number, page_size?: number, sort?: string, grouping?: Array, noTranslate?: boolean, fields?: Array): Promise; create(data: User): Promise; private _isExist; update(id: string, data: User): Promise; bulkUpdate(data: User[]): Promise; updateRole(id: string, role: object): Promise; getUser(data: Object): Promise; getUserByQuery(query: Object): Promise; findbyRole(query: Object): Promise; login(username: string, password: string): Promise & Required<{ _id: mongoose.Types.ObjectId; }> & { __v: number; }>; assignDefaultRoles(id: string): Promise; profile(layout: string, id: string, locale: string): Promise; updateProfile(id: string, data: User): Promise; updateLastLoginDate(id: string): Promise<{ status: boolean; }>; resetAuthenticator(id: string): Promise<{ message: string; }>; scheduleApplyPolicy(): Promise; newPassword(id: string, newPassword: string, confirmPassword: string): Promise; forgotPassword(id: string, newPassword: string, confirmPassword: string): Promise; changePassword(currentPassword: string, newPassword: string, confirmPassword: string): Promise; changePasswordExpired(newPassword: string, confirmPassword: string): Promise; authorizeUnlockSystem(password: string): Promise; } export declare class UserRoleService extends BaseService { readonly cls: ClsService; private entitiesService; protected model: mongoose.Model; constructor(cls: ClsService, entitiesService: EntitiesService, model: mongoose.Model); init(): Promise; initData(): Promise; private _setLayoutPermissionTabCustomEntity; private _prepareDataUpdate; private _prepareDataAfterSave; refresh(ignorePublish?: boolean): Promise; search(keywords: string, filters?: any, page?: number, page_size?: number, sort?: string, grouping?: Array, noTranslate?: boolean, fields?: Array): Promise; findOne(id: string, fields?: Array): Promise; create(data: UserRole): Promise; update(id: string, data: UserRole): Promise; findAll(): Promise; addPermission(id: string, permisson: UserRolePermission): Promise; updatePermission(data: any): Promise; updateLayout(): Promise; migrate(): Promise; getRoleOptions(): Promise; } export declare class UserRolePermissonService extends BaseService { readonly cls: ClsService; private entitiesService; protected model: mongoose.Model; constructor(cls: ClsService, entitiesService: EntitiesService, model: mongoose.Model); init(): Promise; } export declare class UserFilterService extends BaseService { readonly cls: ClsService; private entitiesService; protected model: mongoose.Model; constructor(cls: ClsService, entitiesService: EntitiesService, model: mongoose.Model); init(): Promise; private _prepareData; create(data: UserFilter): Promise; update(id: string, data: UserFilter): Promise; getListFilter(): Promise; }