games_app/backend/dist/services/reportsService.d.ts
2026-06-29 15:01:23 +02:00

60 lines
2.1 KiB
TypeScript

import { getReportDefinition } from '../reports/definitions';
import { type ReportBulkAction } from '../reports/bulkActions';
import type { ReportSummary } from '../repositories/reportsRepository';
import * as adminService from './adminService';
export declare function parseSelectedIds(source: Record<string, unknown>): string[] | undefined;
export declare function listReportCatalog(): {
categories: {
id: string;
label: string;
reports: {
key: string;
title: string;
description: string;
category: import("../reports/definitions").ReportCategory;
source: import("../reports/definitions").ReportSource;
bulkActions: ReportBulkAction[];
}[];
}[];
};
export declare function queryReport(reportKey: string, query: Record<string, unknown>): Promise<{
items: Record<string, unknown>[];
total: number;
columns: {
field: string;
headerName: string;
type?: string;
}[];
definition: ReturnType<typeof getReportDefinition>;
bulkActions: ReportBulkAction[];
meta?: {
warnings: string[];
};
summary?: ReportSummary;
nextCursor?: string | null;
hasMore?: boolean;
totalIsExact?: boolean;
}>;
export declare function exportReport(reportKey: string, query: Record<string, unknown>): Promise<{
items: Record<string, unknown>[];
total: number;
columns: {
field: string;
headerName: string;
type?: string;
}[];
definition: ReturnType<typeof getReportDefinition>;
bulkActions: ReportBulkAction[];
meta?: {
warnings: string[];
};
summary?: ReportSummary;
nextCursor?: string | null;
hasMore?: boolean;
totalIsExact?: boolean;
}>;
export declare function resolveUserIdsForBulkAction(reportKey: string, rowIds: string[]): Promise<string[]>;
export declare function runReportBulkAction(reportKey: string, action: ReportBulkAction, rowIds: string[], options?: {
reason?: string;
}): Promise<adminService.BatchOperationResult>;
//# sourceMappingURL=reportsService.d.ts.map