@@ -17,12 +17,15 @@ Closes the moderation case and updates the status based on the actions logged on
1717''' ,
1818 options: {
1919 'case' : 'The caseId to be closed.' ,
20- 'status' : 'The resolved status of the case. '
21- '(optional, will be automatically inferred if absent)' ,
20+ 'status' : 'The resolved status of the case '
21+ '(optional, will be automatically inferred if absent). '
22+ 'One of: ${ModerationStatus .resolveValues .join (', ' )}.' ,
2223 'grounds' : 'The grounds for the moderation actions '
23- '(if moderation action was taken).' ,
24+ '(if moderation action was taken). '
25+ 'One of: ${ModerationGrounds .resolveValues .join (', ' )}.' ,
2426 'violation' : 'The high-level category of the violation reason '
25- '(if moderation action was taken).' ,
27+ '(if moderation action was taken). '
28+ 'One of: ${ModerationViolation .violationValues .join (', ' )}.' ,
2629 'reason' : 'The text from SOR statement sent to the user '
2730 '(if moderation action was taken).' ,
2831 },
@@ -90,7 +93,7 @@ Closes the moderation case and updates the status based on the actions logged on
9093 InvalidInputException .checkAnyOf (
9194 grounds,
9295 'grounds' ,
93- [ ModerationGrounds .illegal, ModerationGrounds .policy] ,
96+ ModerationGrounds .resolveValues ,
9497 );
9598
9699 InvalidInputException .checkNotNull (violation, 'violation' );
0 commit comments