23 lines
929 B
TypeScript
23 lines
929 B
TypeScript
/** Admin report catalog metadata (shared keys for API + UI). */
|
|
export type ReportCategory = 'users' | 'financial' | 'games' | 'geography';
|
|
export type ReportSource = 'users-api' | 'reports-api';
|
|
export type ReportColumnDef = {
|
|
field: string;
|
|
headerName: string;
|
|
type?: 'string' | 'number' | 'date' | 'money';
|
|
};
|
|
export type ReportDefinition = {
|
|
key: string;
|
|
category: ReportCategory;
|
|
title: string;
|
|
description: string;
|
|
source: ReportSource;
|
|
/** Preset query params when source is users-api */
|
|
userQuery?: Record<string, string | boolean | number>;
|
|
defaultSortField?: string;
|
|
defaultSortDir?: 'asc' | 'desc';
|
|
};
|
|
export declare const REPORT_DEFINITIONS: ReportDefinition[];
|
|
export declare function getReportDefinition(key: string): ReportDefinition | undefined;
|
|
export declare const REPORT_CATEGORY_LABELS: Record<ReportCategory, string>;
|
|
//# sourceMappingURL=definitions.d.ts.map
|