export type NumberAggregate = { [K in keyof DTO]?: number; }; export type TypeAggregate = { [K in keyof DTO]?: DTO[K]; }; export type AggregateResponse = { count?: NumberAggregate; sum?: NumberAggregate; avg?: NumberAggregate; max?: TypeAggregate; min?: TypeAggregate; groupBy?: Partial; };