/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-10-30. */ import { Request } from '../../http/request'; import { IDataSourceParams } from '../commonTypes'; import { AlertTree, ICreateAlertFolderParams, ICreateAlertParams, IDeleteAlertFolderParams, IDeleteAlertParams, IDoCaseActionParams, IGetAlertParams, IGetCaseActionsParams, IGetCasesParams, IGetCaseParams, IUpdateAlertFolderParams, IUpdateAlertParams, AlertPreview, IAlertPreviewParams, Alert, AlertFolder, CaseAction, GetCasesResponse, IDeleteCaseCommentParams, IGetCaseActionsResponse, IUpdateCaseParams, PopulatedCase, IAssignCasesParams, IGetAlertUsersParams, IAlertUserInfo, IRunAlertParams, IExtractCaseListInfoParams, IGetFullCaseListParams, IFullCaseListResponse, IBasicUser, ICasePreview, IGetAllAlertUsersParams, IBulkAssignCasesParams, ISetFullCaseListPreferencesParams, IGetFullCaseListPreferencesResponse, RunAlertResponse, SearchColumnValuesForAlertCases, IDeleteCasesParams, AssignFilteredCasesParams, DeleteFilteredCasesParams } from './types'; export * from './types'; export declare class AlertAPI extends Request { /** * Execute an existing alert. */ runAlert(this: Request, params: IRunAlertParams): 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>; /** * Create a new alert. If `caseTTL` is set to 0, unconfirmed cases * will disappear when they stop matching the alert query. */ createAlert(this: Request, params: ICreateAlertParams): 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>; /** * Update the alert selected by id. * Updating an alert query will results in all the previous detected cases deleted. */ updateAlert(this: Request, params: IUpdateAlertParams): 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 the alert by id and all its cases. */ deleteAlert(params: IDeleteAlertParams): 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>; /** * Create an alert folder. */ createAlertFolder(this: Request, params: ICreateAlertFolderParams): 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>; /** * Update an alert folder. */ updateAlertFolder(this: Request, params: IUpdateAlertFolderParams): 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>; /** * Delete an alert folder. */ deleteAlertFolder(params: IDeleteAlertFolderParams): 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>; /** * Get the alerts and the alert folders in a tree structure. */ getAlertTree(this: Request, params?: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get an alert by id. */ getAlert(this: Request, params: IGetAlertParams): 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>; /** * Get extract file from a given alert by id. */ getCaseListInfoExtract(params: IExtractCaseListInfoParams): 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>; /** * Get a case by id. */ getCase(this: Request, params: IGetCaseParams): 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>; /** * Update a case. */ updateCase(params: IUpdateCaseParams): 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>; /** * Delete one or more cases. */ deleteCases(params: IDeleteCasesParams): 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>; /** * Delete cases based on the full case list filters. */ deleteFilteredCases(params: DeleteFilteredCasesParams): 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>; /** * Assign one or more cases to a user. */ assignCases(params: IAssignCasesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Assign cases from different alerts in bulk to a given user. */ bulkAssignCases(params: IBulkAssignCasesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Assign cases to a user based on the full case list filters. */ assignFilteredCases(params: AssignFilteredCasesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Find all the users that can process a given alert. */ getAlertUsers(this: Request, params: IGetAlertUsersParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all the cases of an alert. */ getCases(this: Request, params: IGetCasesParams): 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>; /** * Get all the actions of a case ordered by creation date. Recent ones first. * The offset defaults to 0 and the limit defaults to 10. */ getCaseActions(this: Request, params: IGetCaseActionsParams): 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>; /** * Delete a comment on a case if the user that triggered the deletion is the author. */ deleteCaseComment(params: IDeleteCaseCommentParams): 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>; /** * Do an action (open, dismiss, confirm, comment) on a case. */ doCaseAction(this: Request, params: IDoCaseActionParams): 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>; /** * Get all the nodes and edges matching the given graph query. * An array of subgraphs, one for each subgraph matching the graph query, is returned. */ alertPreview(this: Request, params: IAlertPreviewParams): 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 | import("../../http/response").Response | import("../../http/response").Response>; /** * Get all cases from alerts that a user has access to. */ getFullCaseList(this: Request, params: IGetFullCaseListParams): 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>; /** * Get extract for the full case list. */ getFullCaseListExtract(params: IGetFullCaseListParams): 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>; /** * Find all the users that can process the alerts which are accessible to the current user * If the mutualAlertIds filter is specified in the params then we return only the users * That can access all the alerts provided in the filter list */ getAllAlertsUsers(this: Request, params?: IGetAllAlertUsersParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Search for values of a given column in the cases of an alert. */ searchColumnValuesForAlertCases(this: Request, params?: SearchColumnValuesForAlertCases): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get a case preview by case id. */ getCasePreview(this: Request, params: IGetCaseParams): 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>; /** * Get UCL preferences of current user for a given data source. */ getFullCaseListPreferences(this: Request, params: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Set UCL preferences of current user for a given data source. */ setFullCaseListPreferences(params: ISetFullCaseListPreferencesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; }