// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. // Lexicon schema: tools.ozone.report.getHistoricalStats package ozone import ( "context" lexutil "github.com/bluesky-social/indigo/lex/util" ) // ReportGetHistoricalStats_Output is the output of a tools.ozone.report.getHistoricalStats call. type ReportGetHistoricalStats_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Stats []*ReportDefs_HistoricalStats `json:"stats" cborgen:"stats"` } // ReportGetHistoricalStats calls the XRPC method "tools.ozone.report.getHistoricalStats". // // cursor: Pagination cursor. // endDate: Latest date to include (inclusive). // limit: Maximum number of entries to return. // moderatorDid: Filter stats by moderator DID. // queueId: Filter stats by queue. Use -1 for unqueued reports. // reportTypes: Filter stats by report types. // startDate: Earliest date to include (inclusive). func ReportGetHistoricalStats(ctx context.Context, c lexutil.LexClient, cursor string, endDate string, limit int64, moderatorDid string, queueId int64, reportTypes []string, startDate string) (*ReportGetHistoricalStats_Output, error) { var out ReportGetHistoricalStats_Output params := map[string]interface{}{} if cursor != "" { params["cursor"] = cursor } if endDate != "" { params["endDate"] = endDate } if limit != 0 { params["limit"] = limit } if moderatorDid != "" { params["moderatorDid"] = moderatorDid } if queueId != 0 { params["queueId"] = queueId } if len(reportTypes) != 0 { params["reportTypes"] = reportTypes } if startDate != "" { params["startDate"] = startDate } if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.report.getHistoricalStats", params, nil, &out); err != nil { return nil, err } return &out, nil }