Skip to main content

ModerationApiClientInterface

Methods

getAllFlaggedContributions()

getAllFlaggedContributions(params?, config?): Promise <SCPaginatedResponse<SCFlaggedContributionType>>

Parameters

ParameterType
params?FlaggedContributionParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFlaggedContributionType>>

Source

services/moderation/index.ts:12


getAllFlagsForSpecificContribution()

getAllFlagsForSpecificContribution(id, contribution_type, flag_type?, config?): Promise <SCPaginatedResponse<SCFlagType>>

Parameters

ParameterType
idstring | number
contribution_typeSCContributionType
flag_type?SCFlagTypeEnum
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCFlagType>>

Source

services/moderation/index.ts:16


getContributionModerationStatus()

getContributionModerationStatus(id, contribution_type, config?): Promise<SCContributionStatus>

Parameters

ParameterType
idstring | number
contribution_typeSCContributionType
config?AxiosRequestConfig<any>

Returns

Promise<SCContributionStatus>

Source

services/moderation/index.ts:23


getUsersForModeration()

getUsersForModeration(params?, config?): Promise <SCPaginatedResponse<SCUserModerationType>>

Parameters

ParameterType
params?ModerationParams
config?AxiosRequestConfig<any>

Returns

Promise <SCPaginatedResponse<SCUserModerationType>>

Source

services/moderation/index.ts:10


moderateAContribution()

moderateAContribution(id, data, config?): Promise<any>

Parameters

ParameterType
idstring | number
dataModerateContributionParams
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/moderation/index.ts:22


moderateASpecificUser()

moderateASpecificUser(id, status, days_blocked?, hard?, config?): Promise<any>

Parameters

ParameterType
idstring | number
statusSCUserStatus
days_blocked?string
hard?number
config?AxiosRequestConfig<any>

Returns

Promise<any>

Source

services/moderation/index.ts:11