fix(backend): correct admin/abuse-user-reports schema (#14711)
* fix(backend): correct `abuse-user-reports` schema * Update CHANGELOG.md
This commit is contained in:
@@ -71,9 +71,22 @@ export const meta = {
|
||||
},
|
||||
assignee: {
|
||||
type: 'object',
|
||||
nullable: true, optional: true,
|
||||
nullable: true, optional: false,
|
||||
ref: 'UserDetailedNotMe',
|
||||
},
|
||||
forwarded: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
resolvedAs: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
enum: ['accept', 'reject', null],
|
||||
},
|
||||
moderationNote: {
|
||||
type: 'string',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -88,7 +101,6 @@ export const paramDef = {
|
||||
state: { type: 'string', nullable: true, default: null },
|
||||
reporterOrigin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'combined' },
|
||||
targetUserOrigin: { type: 'string', enum: ['combined', 'local', 'remote'], default: 'combined' },
|
||||
forwarded: { type: 'boolean', default: false },
|
||||
},
|
||||
required: [],
|
||||
} as const;
|
||||
|
||||
@@ -5270,8 +5270,6 @@ export type operations = {
|
||||
* @enum {string}
|
||||
*/
|
||||
targetUserOrigin?: 'combined' | 'local' | 'remote';
|
||||
/** @default false */
|
||||
forwarded?: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -5298,7 +5296,11 @@ export type operations = {
|
||||
assigneeId: string | null;
|
||||
reporter: components['schemas']['UserDetailedNotMe'];
|
||||
targetUser: components['schemas']['UserDetailedNotMe'];
|
||||
assignee?: components['schemas']['UserDetailedNotMe'] | null;
|
||||
assignee: components['schemas']['UserDetailedNotMe'] | null;
|
||||
forwarded: boolean;
|
||||
/** @enum {string|null} */
|
||||
resolvedAs: 'accept' | 'reject' | null;
|
||||
moderationNote: string;
|
||||
})[];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user