ModerationApiClientInterface
Methods
getAllFlaggedContributions()
getAllFlaggedContributions(
params
?,config
?):Promise
<SCPaginatedResponse
<SCFlaggedContributionType
>>
Parameters
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
id | string | number |
contribution_type | SCContributionType |
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
Parameter | Type |
---|---|
id | string | number |
contribution_type | SCContributionType |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCContributionStatus
>
Source
services/moderation/index.ts:23
getUsersForModeration()
getUsersForModeration(
params
?,config
?):Promise
<SCPaginatedResponse
<SCUserModerationType
>>
Parameters
Parameter | Type |
---|---|
params ? | ModerationParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCPaginatedResponse
<SCUserModerationType
>>
Source
services/moderation/index.ts:10
moderateAContribution()
moderateAContribution(
id
,data
,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
data | ModerateContributionParams |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
services/moderation/index.ts:22
moderateASpecificUser()
moderateASpecificUser(
id
,status
,days_blocked
?,hard
?,config
?):Promise
<any
>
Parameters
Parameter | Type |
---|---|
id | string | number |
status | SCUserStatus |
days_blocked ? | string |
hard ? | number |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>