[MM-56399][MM-56397][MM-56456][MM-56269] Various changes for user reporting for admins (#25839)
* [MM-56399] Add user count endpoint for reporting * [MM-56397] Added search term to user report filter * Missing translation * [MM-56456] Rename up/down to prev/next for reporting cursoring * [MM-56269] Add DeleteAt, MfaActive and AuthService fields to UserReport * PR feedback * Fix test --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bb88b92b4c
Коммит
0a4e9eeb92
@@ -52,7 +52,7 @@ import {
|
||||
ChannelSearchOpts,
|
||||
ServerChannel,
|
||||
} from '@mattermost/types/channels';
|
||||
import {Options, StatusOK, ClientResponse, LogLevel, FetchPaginatedThreadOptions, UserReportOptions} from '@mattermost/types/client4';
|
||||
import {Options, StatusOK, ClientResponse, LogLevel, FetchPaginatedThreadOptions, UserReportOptions, UserReportFilter} from '@mattermost/types/client4';
|
||||
import {Compliance} from '@mattermost/types/compliance';
|
||||
import {
|
||||
ClientConfig,
|
||||
@@ -999,6 +999,14 @@ export default class Client4 {
|
||||
);
|
||||
}
|
||||
|
||||
getUserCountForReporting = (filter: UserReportFilter) => {
|
||||
const queryString = buildQueryString(filter);
|
||||
return this.doFetch<number>(
|
||||
`${this.getReportsRoute()}/users/count${queryString}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
|
||||
Ссылка в новой задаче
Block a user