import * as fromRoot from '../+shared'; import { SignUpRequest } from '../authentication/model'; import { Client } from '../Client'; import { UserGroupsQueryParams } from '../userGroups/model'; import { UserInviteDto } from './model'; export declare class UserApi { private readonly client; private requestMappingUrl; constructor(client: Client); /** * Use to get a list of Users * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_VIEW' access permission */ list(query?: string, roleIds?: number[]): Promise>; /** * Use to get a paged list of Users * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_VIEW' access permission */ listPaged(query?: string, roleIds?: string[], active?: boolean, verified?: boolean, { page, size, sort }?: fromRoot.PageParameters): Promise>; pagedByAttributes(parameters?: any): Promise>; /** * Use to add a User (signed up, no verification) * @requires 'USER_CREATE' access permission */ addUser(userDto: SignUpRequest): Promise>; /** * Use to invite new Users * @requires 'USER_CREATE' access permision */ inviteBulk(inviteDTOs: UserInviteDto[]): Promise>; /** * Use to update User's role id * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_EDIT' access permission */ updateRole(userId: number, roleIds: number[]): Promise>; /** * Use to update single User's status * * @param userId * @param status - active/inactive * * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_EDIT' access permission */ updateStatus(userId: number, status: boolean): Promise>; /** * Use to update multiple Users' status * * @param userIds * @param status - active/inactive * * @requires 'USER_UPDATE' access permision */ disableBulk(userIds: number[], status: boolean): Promise>; /** * Use to delete User(s) with given id(s) * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_DELETE' access permision */ deleteBulk(password: string, userIds: number[]): Promise>; /** * Use to GET paged User groups that user belongs to * * @param userId * * @requires 'USER_GROUP_MANAGEMENT' access permision */ pageUserGroups(userId: number, params: UserGroupsQueryParams): Promise>; /** * Use to GET paged User groups that user belongs to * * @param userId * * @requires 'USER_GROUP_MANAGEMENT' access permision */ listUserGroups(userId: number, params: UserGroupsQueryParams): Promise>; /** * Use to Remove User group that user belongs to * * @param userId * * @requires 'USER_GROUP_MANAGEMENT' access permision */ removeUserGroups(userId: number, groupId: number): Promise>; /** * Use to Remove User group that user belongs to * * @param userId * * @requires 'USER_GROUP_MANAGEMENT' access permision */ removeUserGroupsBulk(userId: number, groupIds: number[]): Promise>; /** * Returns template file for inviting users via csv file. * * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_ADD' access permision */ downloadCsvTemplate(): Promise>; /** * Returns template file for inviting users via csv file. * * @requires 'USER_CREATE' access permision */ inviteUsersCsv(file: any): Promise>; /** * Use to delete User with given id * @requires 'ADMINISTRATION_USER_MANAGEMENT_USERS_DELETE' access permision */ deleteUser(password: string, userId: number, newCreatorId?: number): Promise>; /** * Use to transfer asset(s) ownership * @requires ADMINISTRATION_ACCESS_CONTROL_DEVICE_TYPES_CHANGE_OWNER access permision * @requires ADMINISTRATION_ACCESS_CONTROL_DEVICES_CHANGE_OWNER access permision * @requires ADMINISTRATION_ACCESS_CONTROL_DEVICE_GROUPS_CHANGE_OWNER access permision * @requires ADMINISTRATION_ACCESS_CONTROL_DATA_CHANGE_OWNER access permision */ transferAssets(password: string, userId: number, newCreatorId?: number): Promise>; private getCredentials; } //# sourceMappingURL=UserApi.d.ts.map