Skip to main content

Interface: ReportsV1Extension

Reports.v1.ReportsV1Extension

Properties

reportsV1

Readonly reportsV1: Object

Type declaration

NameTypeDescription
params() => Promise<Params>Queries the module params.
reason(subspaceId: Long, reasonId: number) => Promise<undefined | Reason>Queries a reporting reason given its id.
reasons(subspaceId: Long, pagination?: PageRequest) => Promise<QueryReasonsResponse>Queries the reasons registered inside a subspace.
report(subspaceId: Long, reportId: Long) => Promise<undefined | Report>Queries a specific report given its id.
reports(subspaceId: Long, target?: Any, reporter?: string, pagination?: PageRequest) => Promise<QueryReportsResponse>Queries the reports with an optional target and reporter.

Defined in

packages/core/src/modules/reports/v1/query.ts:18