Add related cases and duplicate review suggestions
This commit is contained in:
@@ -24,6 +24,13 @@ export const moderationCaseStatuses = [
|
||||
] as const;
|
||||
export type ModerationCaseStatus = (typeof moderationCaseStatuses)[number];
|
||||
export type ModerationCasePriority = 'low' | 'normal' | 'high' | 'urgent';
|
||||
export const moderationCaseRelations = ['same_incident', 'appeal_of', 'duplicate_of'] as const;
|
||||
export type ModerationCaseRelation = (typeof moderationCaseRelations)[number];
|
||||
export const moderationCaseRelationLabels: Record<ModerationCaseRelation, string> = {
|
||||
same_incident: 'Same incident',
|
||||
appeal_of: 'Appeal of',
|
||||
duplicate_of: 'Duplicate of'
|
||||
};
|
||||
export const moderationCaseStatusLabels: Record<ModerationCaseStatus, string> = {
|
||||
open: 'Open',
|
||||
in_review: 'In review',
|
||||
@@ -173,11 +180,28 @@ export interface ModerationCaseDetail {
|
||||
availableActions?: ModerationCaseAction[];
|
||||
assessment?: ModerationCaseAssessment | null;
|
||||
assessmentHistory?: ModerationCaseAssessment[];
|
||||
relatedCases?: ModerationCaseRelationship[];
|
||||
candidateCases?: ModerationCaseCandidate[];
|
||||
events: ModerationEvent[];
|
||||
coverage: ModerationCoverage[];
|
||||
assignees: { id: string; username: string }[];
|
||||
checkedAt: string;
|
||||
}
|
||||
export type ModerationCaseReference = Pick<
|
||||
ModerationCase,
|
||||
'id' | 'title' | 'status' | 'game' | 'guid'
|
||||
>;
|
||||
export interface ModerationCaseRelationship {
|
||||
id: string;
|
||||
relation: ModerationCaseRelation;
|
||||
direction: 'outgoing' | 'incoming';
|
||||
case: ModerationCaseReference;
|
||||
actor: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface ModerationCaseCandidate extends ModerationCaseReference {
|
||||
sharedMatch: boolean;
|
||||
}
|
||||
export interface ModerationCaseAction {
|
||||
id: string;
|
||||
type: 'restriction' | 'action';
|
||||
|
||||
Reference in New Issue
Block a user