wt-front-shared 19.0.41 → 19.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
export type FilterOperator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'between' | 'in' | 'isNull' | 'isNotNull';
|
|
2
|
+
export interface ReportFilterCondition {
|
|
3
|
+
field: string;
|
|
4
|
+
operator: FilterOperator;
|
|
5
|
+
value?: any;
|
|
6
|
+
valueTo?: any;
|
|
7
|
+
}
|
|
1
8
|
export interface ReportRelation {
|
|
2
9
|
secondaryEntityId: string;
|
|
3
10
|
primaryField: string;
|
|
4
11
|
secondaryField: string;
|
|
5
12
|
joinType: 'left' | 'inner' | 'full';
|
|
13
|
+
filters?: ReportFilterCondition[];
|
|
6
14
|
}
|
|
7
15
|
export interface ReportGroupBy {
|
|
8
16
|
field: string;
|
|
@@ -43,7 +51,9 @@ export interface ReportSort {
|
|
|
43
51
|
}
|
|
44
52
|
export interface ReportQueryDto {
|
|
45
53
|
primaryEntity: string;
|
|
54
|
+
primaryFilters?: ReportFilterCondition[];
|
|
46
55
|
relations?: ReportRelation[];
|
|
56
|
+
globalFilters?: ReportFilterCondition[];
|
|
47
57
|
transformations?: ReportTransformations;
|
|
48
58
|
visualization?: ReportVisualization;
|
|
49
59
|
pagination?: ReportPagination;
|