diff options
Diffstat (limited to 'packages/megalodon/src/entities/report.ts')
| -rw-r--r-- | packages/megalodon/src/entities/report.ts | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/packages/megalodon/src/entities/report.ts b/packages/megalodon/src/entities/report.ts index 6862a5fabe..353886a344 100644 --- a/packages/megalodon/src/entities/report.ts +++ b/packages/megalodon/src/entities/report.ts @@ -1,9 +1,18 @@ +/// <reference path="account.ts" /> + namespace Entity { - export type Report = { - id: string; - action_taken: string; - comment: string; - account_id: string; - status_ids: Array<string>; - }; + export type Report = { + id: string + action_taken: boolean + action_taken_at: string | null + status_ids: Array<string> | null + rule_ids: Array<string> | null + // These parameters don't exist in Pleroma + category: Category | null + comment: string | null + forwarded: boolean | null + target_account?: Account | null + } + + export type Category = 'spam' | 'violation' | 'other' } |