You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2,13 +2,23 @@ import { Id } from "../schemas";
2
2
import{EmptyObject}from"../utils/types";
3
3
import{D2ApiResponse,HttpResponse}from"./common";
4
4
import{D2ApiGeneric}from"./d2Api";
5
-
import{Pager}from"./model";
6
5
7
6
typeOperator="EQ"|"GT"|"GE"|"LT"|"LE";
8
7
8
+
typeColumnsSeparatedBySemicolon=string;
9
+
10
+
typeRowsSeparatedBySemicolon=string;
11
+
12
+
typeUserOrgUnitSeparatedBySemicolon=string;
13
+
9
14
exporttypeAnalyticsOptions={
15
+
/** Dimensions and dimension items to be retrieved, repeated for each */
10
16
dimension: string[];
17
+
18
+
/** Filters and filter items to apply to the query, repeated for each. */
11
19
filter?: string[];
20
+
21
+
/** Aggregation type to use in the aggregation process. */
12
22
aggregationType?:
13
23
|"SUM"
14
24
|"AVERAGE"
@@ -20,44 +30,136 @@ export type AnalyticsOptions = {
20
30
|"VARIANCE"
21
31
|"MIN"
22
32
|"MAX";
33
+
34
+
/** Filters for the data/measures. */
23
35
measureCriteria?: Operator;
36
+
37
+
/** Filters for the data/measure, applied before aggregation is performed. */
24
38
preAggregationMeasureCriteria?: Operator;
39
+
40
+
/** Start date for a date range. Will be applied as a filter. Can not be used together with a period dimension or filter. (yyyy-MM-dd) */
25
41
startDate?: string;
42
+
43
+
/** End date for date range. Will be applied as a filter. Can not be used together with a period dimension or filter. (yyyy-MM-dd) */
26
44
endDate?: string;
45
+
46
+
/** Exclude the metadata part of the response (improves performance). */
27
47
skipMeta?: boolean;
48
+
49
+
/** Exclude the data part of the response. */
28
50
skipData?: boolean;
51
+
52
+
/** Skip rounding of data values, i.e. provide full precision. */
29
53
skipRounding?: boolean;
54
+
55
+
/** Include names of organisation unit ancestors and hierarchy paths of organisation units in the metadata. */
30
56
hierarchyMeta?: boolean;
57
+
58
+
/** Ignore limit on max 50 000 records in response - use with care. */
31
59
ignoreLimit?: boolean;
60
+
61
+
/** Use plain data source or table layout for the response. */
32
62
tableLayout?: boolean;
63
+
64
+
/** Hides empty rows in response, applicable when table layout is true. */
33
65
hideEmptyRows?: boolean;
66
+
67
+
/** Hides empty columns in response, applicable when table layout is true. */
34
68
hideEmptyColumns?: boolean;
69
+
70
+
/** Display full org unit hierarchy path together with org unit name. */
35
71
showHierarchy?: boolean;
72
+
73
+
/** Include the numerator and denominator used to calculate the value in the response. */
36
74
includeNumDen?: boolean;
75
+
76
+
/** Include metadata details to raw data response. */
37
77
includeMetadataDetails?: boolean;
78
+
79
+
/** Property to display for metadata. */
38
80
displayProperty?: "NAME"|"SHORTNAME";
81
+
82
+
/** Identifier scheme used for metadata items in the query response. It accepts identifier, code or attributes. */
39
83
outputIdScheme?: string;
84
+
85
+
/** Identifier scheme to use for metadata items in the query request, can be an identifier, code or attributes. */
40
86
inputIdScheme?: string;
87
+
88
+
/** Include data which has been approved at least up to the given approval level, refers to identifier of approval level. */
41
89
approvalLevel?: string;
90
+
91
+
/** Date used as basis for relative periods. */
42
92
relativePeriodDate?: string;
43
-
userOrgUnit?: string;
44
-
columns?: string;
45
-
rows?: string;
93
+
94
+
/** Explicitly define the user org units to utilize, overrides organisation units associated with the current user, multiple identifiers can be separated by semicolon. */
95
+
userOrgUnit?: UserOrgUnitSeparatedBySemicolon;
96
+
97
+
/** Dimensions to use as columns for table layout. */
98
+
columns?: ColumnsSeparatedBySemicolon;
99
+
100
+
/** Dimensions to use as rows for table layout. */
101
+
rows?: RowsSeparatedBySemicolon;
102
+
103
+
/** Specify the ordering of rows based on value. */
46
104
order?: "ASC"|"DESC";
105
+
106
+
/** The time field to base event aggregation on. Applies to event data items only. Can be a predefined option or the ID of an attribute or data element with a time-based value type. */
47
107
timeField?: string;
108
+
109
+
/** The organisation unit field to base event aggregation on. Applies to event data items only. Can be the ID of an attribute or data element with the Organisation unit value type. The default option is specified as omitting the query parameter. */
0 commit comments