/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-10-30. */ import { Request } from '../../http/request'; import { IDataSourceParams } from '../commonTypes'; import { GetGroupUsersParams, Group, GroupName, ICountSharedAssets, ICountSharedUserAssetsParams, ICreateGroupParams, ICreateUserParams, IDeleteGroupParams, IDeleteUserParams, IGetAssetTransferEligibleUsersParams, IGetGroupNamesParams, IGetGroupParams, IGetUserParams, IMergeUsersParams, ISearchUsersFullParams, ISearchUsersSimpleParams, IUpdateGroupParams, IUpdateUserParams, SearchUsersFullResponse, SearchUsersSimpleResponse, User } from './types'; export * from './types'; export declare class UserAPI extends Request { /** * Get a user by id. */ getUser(this: Request, params: IGetUserParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the users or filter them by username, e-mail or group id. */ searchUsersFull(this: Request, params: ISearchUsersFullParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the users or filter them by username, e-mail or group id. */ searchUsersSimple(this: Request, params: ISearchUsersSimpleParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Add a new user. */ createUser(this: Request, params: ICreateUserParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Update a user. */ updateUser(this: Request, params: IUpdateUserParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete a user. */ deleteUser(params: IDeleteUserParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get a group. */ getGroup(this: Request, params: IGetGroupParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the groups within a data-source. */ getGroups(this: Request, params?: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the names of groups that can perform a given action on the data-source. */ getGroupNames(this: Request, params: IGetGroupNamesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Add a new group. */ createGroup(this: Request, params: ICreateGroupParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Rename a group. */ updateGroup(this: Request, params: IUpdateGroupParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Delete a group. */ deleteGroup(params: IDeleteGroupParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Transfer all the visualizations, queries and custom actions from a source user to a target user. */ mergeUsers(params: IMergeUsersParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get list of the users who have equivalent access rights to a given user */ getAssetTransferEligibleUsers(this: Request, params: IGetAssetTransferEligibleUsersParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; countSharedUserAssets(this: Request, params: ICountSharedUserAssetsParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get users by group id and return username, email and id */ getGroupUsers(this: Request, params: GetGroupUsersParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }