Use aggregate operations in the widget configuration instead of extended aggregate operations (#15248)

- Use aggregate operations in the widget configuration instead of
extended aggregate operations
- Use aggregate operation from generated graphql in the frontend
This commit is contained in:
Raphaël Bosi
2025-10-22 14:19:02 +02:00
committed by GitHub
parent 0221ef991e
commit 1c27206b41
28 changed files with 118 additions and 207 deletions
@@ -1,24 +0,0 @@
import { registerEnumType } from '@nestjs/graphql';
import { AggregateOperations } from './aggregate-operations.constant';
export enum ExtendedAggregateOperations {
MIN = AggregateOperations.MIN,
MAX = AggregateOperations.MAX,
AVG = AggregateOperations.AVG,
SUM = AggregateOperations.SUM,
COUNT = AggregateOperations.COUNT,
COUNT_UNIQUE_VALUES = AggregateOperations.COUNT_UNIQUE_VALUES,
COUNT_EMPTY = AggregateOperations.COUNT_EMPTY,
COUNT_NOT_EMPTY = AggregateOperations.COUNT_NOT_EMPTY,
COUNT_TRUE = AggregateOperations.COUNT_TRUE,
COUNT_FALSE = AggregateOperations.COUNT_FALSE,
PERCENTAGE_EMPTY = AggregateOperations.PERCENTAGE_EMPTY,
PERCENTAGE_NOT_EMPTY = AggregateOperations.PERCENTAGE_NOT_EMPTY,
EARLIEST = 'EARLIEST',
LATEST = 'LATEST',
}
registerEnumType(ExtendedAggregateOperations, {
name: 'ExtendedAggregateOperations',
});