@hisptz/dhis2-scorecard 1.0.2 → 1.0.4

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.
Files changed (169) hide show
  1. package/dist/components/ScorecardTable/components/FurtherAnalysisMenu.js +116 -0
  2. package/dist/components/ScorecardTable/components/FurtherAnalysisMenu.js.map +1 -1
  3. package/dist/esm/components/ScorecardTable/components/FurtherAnalysisMenu.js +116 -0
  4. package/dist/esm/components/ScorecardTable/components/FurtherAnalysisMenu.js.map +1 -1
  5. package/package.json +2 -2
  6. package/dist/types/Scorecard.d.ts +0 -7
  7. package/dist/types/Scorecard.d.ts.map +0 -1
  8. package/dist/types/components/ColGroup.d.ts +0 -2
  9. package/dist/types/components/ColGroup.d.ts.map +0 -1
  10. package/dist/types/components/ConfigProvider.d.ts +0 -144
  11. package/dist/types/components/ConfigProvider.d.ts.map +0 -1
  12. package/dist/types/components/DataProvider.d.ts +0 -10
  13. package/dist/types/components/DataProvider.d.ts.map +0 -1
  14. package/dist/types/components/LoadingIndicator.d.ts +0 -5
  15. package/dist/types/components/LoadingIndicator.d.ts.map +0 -1
  16. package/dist/types/components/MetaProvider.d.ts +0 -23
  17. package/dist/types/components/MetaProvider.d.ts.map +0 -1
  18. package/dist/types/components/ScorecardContext.d.ts +0 -9
  19. package/dist/types/components/ScorecardContext.d.ts.map +0 -1
  20. package/dist/types/components/ScorecardHeader.d.ts +0 -2
  21. package/dist/types/components/ScorecardHeader.d.ts.map +0 -1
  22. package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts +0 -3
  23. package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts.map +0 -1
  24. package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts +0 -2
  25. package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts.map +0 -1
  26. package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts +0 -10
  27. package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts.map +0 -1
  28. package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts +0 -7
  29. package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts.map +0 -1
  30. package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts +0 -7
  31. package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts.map +0 -1
  32. package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts +0 -7
  33. package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts.map +0 -1
  34. package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts +0 -3
  35. package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts.map +0 -1
  36. package/dist/types/components/ScorecardLegendsView/index.d.ts +0 -2
  37. package/dist/types/components/ScorecardLegendsView/index.d.ts.map +0 -1
  38. package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts +0 -3
  39. package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts.map +0 -1
  40. package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts +0 -2
  41. package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts.map +0 -1
  42. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts +0 -5
  43. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts.map +0 -1
  44. package/dist/types/components/ScorecardPrint/utils/download.d.ts +0 -33
  45. package/dist/types/components/ScorecardPrint/utils/download.d.ts.map +0 -1
  46. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts +0 -6
  47. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts.map +0 -1
  48. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts +0 -12
  49. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts.map +0 -1
  50. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts +0 -9
  51. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts.map +0 -1
  52. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts +0 -2
  53. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts.map +0 -1
  54. package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts +0 -7
  55. package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts.map +0 -1
  56. package/dist/types/components/ScorecardTable/ScorecardTable.d.ts +0 -6
  57. package/dist/types/components/ScorecardTable/ScorecardTable.d.ts.map +0 -1
  58. package/dist/types/components/ScorecardTable/components/AverageCell.d.ts +0 -12
  59. package/dist/types/components/ScorecardTable/components/AverageCell.d.ts.map +0 -1
  60. package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts +0 -4
  61. package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts.map +0 -1
  62. package/dist/types/components/ScorecardTable/components/CellLoader.d.ts +0 -4
  63. package/dist/types/components/ScorecardTable/components/CellLoader.d.ts.map +0 -1
  64. package/dist/types/components/ScorecardTable/components/DataContainer.d.ts +0 -91
  65. package/dist/types/components/ScorecardTable/components/DataContainer.d.ts.map +0 -1
  66. package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts +0 -4
  67. package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts.map +0 -1
  68. package/dist/types/components/ScorecardTable/components/DataRow.d.ts +0 -8
  69. package/dist/types/components/ScorecardTable/components/DataRow.d.ts.map +0 -1
  70. package/dist/types/components/ScorecardTable/components/DataValue.d.ts +0 -7
  71. package/dist/types/components/ScorecardTable/components/DataValue.d.ts.map +0 -1
  72. package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts +0 -9
  73. package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts.map +0 -1
  74. package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts +0 -7
  75. package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts.map +0 -1
  76. package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts +0 -4
  77. package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts.map +0 -1
  78. package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts +0 -8
  79. package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts.map +0 -1
  80. package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts +0 -15
  81. package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts.map +0 -1
  82. package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts +0 -13
  83. package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts.map +0 -1
  84. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts +0 -20
  85. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts.map +0 -1
  86. package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts +0 -15
  87. package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts.map +0 -1
  88. package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts +0 -2
  89. package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts.map +0 -1
  90. package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts +0 -2
  91. package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts.map +0 -1
  92. package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts +0 -15
  93. package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts.map +0 -1
  94. package/dist/types/components/ScorecardTable/components/TableBody.d.ts +0 -5
  95. package/dist/types/components/ScorecardTable/components/TableBody.d.ts.map +0 -1
  96. package/dist/types/components/ScorecardTable/components/TableFoot.d.ts +0 -2
  97. package/dist/types/components/ScorecardTable/components/TableFoot.d.ts.map +0 -1
  98. package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts +0 -3
  99. package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts.map +0 -1
  100. package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts +0 -4
  101. package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts.map +0 -1
  102. package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts +0 -6
  103. package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts.map +0 -1
  104. package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts +0 -4
  105. package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map +0 -1
  106. package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts +0 -7
  107. package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map +0 -1
  108. package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts +0 -12
  109. package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map +0 -1
  110. package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts +0 -7
  111. package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts.map +0 -1
  112. package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts +0 -7
  113. package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map +0 -1
  114. package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts +0 -2
  115. package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts.map +0 -1
  116. package/dist/types/components/ScorecardTable/index.d.ts +0 -2
  117. package/dist/types/components/ScorecardTable/index.d.ts.map +0 -1
  118. package/dist/types/components/StateProvider.d.ts +0 -9
  119. package/dist/types/components/StateProvider.d.ts.map +0 -1
  120. package/dist/types/components/TableStateProvider.d.ts +0 -56
  121. package/dist/types/components/TableStateProvider.d.ts.map +0 -1
  122. package/dist/types/components/index.d.ts +0 -7
  123. package/dist/types/components/index.d.ts.map +0 -1
  124. package/dist/types/hooks/cellData.d.ts +0 -18
  125. package/dist/types/hooks/cellData.d.ts.map +0 -1
  126. package/dist/types/hooks/columns.d.ts +0 -50
  127. package/dist/types/hooks/columns.d.ts.map +0 -1
  128. package/dist/types/hooks/data.d.ts +0 -18
  129. package/dist/types/hooks/data.d.ts.map +0 -1
  130. package/dist/types/hooks/dataItem.d.ts +0 -3
  131. package/dist/types/hooks/dataItem.d.ts.map +0 -1
  132. package/dist/types/hooks/index.d.ts +0 -2
  133. package/dist/types/hooks/index.d.ts.map +0 -1
  134. package/dist/types/hooks/metadata.d.ts +0 -41
  135. package/dist/types/hooks/metadata.d.ts.map +0 -1
  136. package/dist/types/hooks/orgUnit.d.ts +0 -27
  137. package/dist/types/hooks/orgUnit.d.ts.map +0 -1
  138. package/dist/types/hooks/period.d.ts +0 -2
  139. package/dist/types/hooks/period.d.ts.map +0 -1
  140. package/dist/types/hooks/table.d.ts +0 -31
  141. package/dist/types/hooks/table.d.ts.map +0 -1
  142. package/dist/types/hooks/value.d.ts +0 -87
  143. package/dist/types/hooks/value.d.ts.map +0 -1
  144. package/dist/types/index.d.ts +0 -6
  145. package/dist/types/index.d.ts.map +0 -1
  146. package/dist/types/schemas/config.d.ts +0 -3363
  147. package/dist/types/schemas/config.d.ts.map +0 -1
  148. package/dist/types/state/scorecardState.d.ts +0 -79
  149. package/dist/types/state/scorecardState.d.ts.map +0 -1
  150. package/dist/types/utils/analytics.d.ts +0 -19
  151. package/dist/types/utils/analytics.d.ts.map +0 -1
  152. package/dist/types/utils/columns.d.ts +0 -33
  153. package/dist/types/utils/columns.d.ts.map +0 -1
  154. package/dist/types/utils/data.d.ts +0 -17
  155. package/dist/types/utils/data.d.ts.map +0 -1
  156. package/dist/types/utils/dataEngine.d.ts +0 -50
  157. package/dist/types/utils/dataEngine.d.ts.map +0 -1
  158. package/dist/types/utils/dataSources.d.ts +0 -37
  159. package/dist/types/utils/dataSources.d.ts.map +0 -1
  160. package/dist/types/utils/engine.d.ts +0 -14
  161. package/dist/types/utils/engine.d.ts.map +0 -1
  162. package/dist/types/utils/index.d.ts +0 -2
  163. package/dist/types/utils/index.d.ts.map +0 -1
  164. package/dist/types/utils/legends.d.ts +0 -22
  165. package/dist/types/utils/legends.d.ts.map +0 -1
  166. package/dist/types/utils/orgUnits.d.ts +0 -7
  167. package/dist/types/utils/orgUnits.d.ts.map +0 -1
  168. package/dist/types/utils/state.d.ts +0 -5
  169. package/dist/types/utils/state.d.ts.map +0 -1
@@ -1,3363 +0,0 @@
1
- import { z } from "zod";
2
- import type { RowData } from "@tanstack/react-table";
3
- export declare const supportedDataSources: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
4
- export declare const scorecardSharing: z.ZodObject<{
5
- owner: z.ZodString;
6
- external: z.ZodBoolean;
7
- public: z.ZodString;
8
- users: z.ZodRecord<z.ZodString, z.ZodObject<{
9
- access: z.ZodString;
10
- id: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- access: string;
13
- id: string;
14
- }, {
15
- access: string;
16
- id: string;
17
- }>>;
18
- userGroups: z.ZodRecord<z.ZodString, z.ZodObject<{
19
- access: z.ZodString;
20
- id: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- access: string;
23
- id: string;
24
- }, {
25
- access: string;
26
- id: string;
27
- }>>;
28
- }, "strip", z.ZodTypeAny, {
29
- owner: string;
30
- external: boolean;
31
- public: string;
32
- users: Record<string, {
33
- access: string;
34
- id: string;
35
- }>;
36
- userGroups: Record<string, {
37
- access: string;
38
- id: string;
39
- }>;
40
- }, {
41
- owner: string;
42
- external: boolean;
43
- public: string;
44
- users: Record<string, {
45
- access: string;
46
- id: string;
47
- }>;
48
- userGroups: Record<string, {
49
- access: string;
50
- id: string;
51
- }>;
52
- }>;
53
- export type ScorecardSharing = z.infer<typeof scorecardSharing>;
54
- export type SupportedDataSources = z.infer<typeof supportedDataSources>;
55
- export declare const legendDefinitionSchema: z.ZodObject<{
56
- id: z.ZodString;
57
- color: z.ZodString;
58
- name: z.ZodString;
59
- isDefault: z.ZodOptional<z.ZodBoolean>;
60
- }, "strip", z.ZodTypeAny, {
61
- id: string;
62
- color: string;
63
- name: string;
64
- isDefault?: boolean | undefined;
65
- }, {
66
- id: string;
67
- color: string;
68
- name: string;
69
- isDefault?: boolean | undefined;
70
- }>;
71
- export type LegendDefinition = z.infer<typeof legendDefinitionSchema>;
72
- export declare const scorecardViewOptionsSchema: z.ZodObject<{
73
- averageColumn: z.ZodOptional<z.ZodBoolean>;
74
- averageDisplayType: z.ZodOptional<z.ZodEnum<["ALL", "ABOVE_AVERAGE", "BELOW_AVERAGE"]>>;
75
- averageRow: z.ZodOptional<z.ZodBoolean>;
76
- emptyRows: z.ZodOptional<z.ZodBoolean>;
77
- highlightedIndicators: z.ZodOptional<z.ZodBoolean>;
78
- itemNumber: z.ZodOptional<z.ZodBoolean>;
79
- legend: z.ZodOptional<z.ZodBoolean>;
80
- showHierarchy: z.ZodOptional<z.ZodBoolean>;
81
- title: z.ZodOptional<z.ZodBoolean>;
82
- arrows: z.ZodOptional<z.ZodBoolean>;
83
- showDataInRows: z.ZodOptional<z.ZodBoolean>;
84
- disableExpanding: z.ZodOptional<z.ZodBoolean>;
85
- disablePagination: z.ZodOptional<z.ZodBoolean>;
86
- printMode: z.ZodOptional<z.ZodBoolean>;
87
- }, "strip", z.ZodTypeAny, {
88
- averageColumn?: boolean | undefined;
89
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
90
- averageRow?: boolean | undefined;
91
- emptyRows?: boolean | undefined;
92
- highlightedIndicators?: boolean | undefined;
93
- itemNumber?: boolean | undefined;
94
- legend?: boolean | undefined;
95
- showHierarchy?: boolean | undefined;
96
- title?: boolean | undefined;
97
- arrows?: boolean | undefined;
98
- showDataInRows?: boolean | undefined;
99
- disableExpanding?: boolean | undefined;
100
- disablePagination?: boolean | undefined;
101
- printMode?: boolean | undefined;
102
- }, {
103
- averageColumn?: boolean | undefined;
104
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
105
- averageRow?: boolean | undefined;
106
- emptyRows?: boolean | undefined;
107
- highlightedIndicators?: boolean | undefined;
108
- itemNumber?: boolean | undefined;
109
- legend?: boolean | undefined;
110
- showHierarchy?: boolean | undefined;
111
- title?: boolean | undefined;
112
- arrows?: boolean | undefined;
113
- showDataInRows?: boolean | undefined;
114
- disableExpanding?: boolean | undefined;
115
- disablePagination?: boolean | undefined;
116
- printMode?: boolean | undefined;
117
- }>;
118
- export type ScorecardViewOptions = z.infer<typeof scorecardViewOptionsSchema>;
119
- export declare const organisationUnitSelectionSchema: z.ZodObject<{
120
- userOrgUnit: z.ZodOptional<z.ZodBoolean>;
121
- userSubUnit: z.ZodOptional<z.ZodBoolean>;
122
- userSubX2Unit: z.ZodOptional<z.ZodBoolean>;
123
- orgUnits: z.ZodArray<z.ZodObject<{
124
- id: z.ZodString;
125
- }, "strip", z.ZodTypeAny, {
126
- id: string;
127
- }, {
128
- id: string;
129
- }>, "many">;
130
- groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
- levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
- }, "strip", z.ZodTypeAny, {
133
- orgUnits: {
134
- id: string;
135
- }[];
136
- userOrgUnit?: boolean | undefined;
137
- userSubUnit?: boolean | undefined;
138
- userSubX2Unit?: boolean | undefined;
139
- groups?: string[] | undefined;
140
- levels?: string[] | undefined;
141
- }, {
142
- orgUnits: {
143
- id: string;
144
- }[];
145
- userOrgUnit?: boolean | undefined;
146
- userSubUnit?: boolean | undefined;
147
- userSubX2Unit?: boolean | undefined;
148
- groups?: string[] | undefined;
149
- levels?: string[] | undefined;
150
- }>;
151
- export type OrgUnitSelection = z.infer<typeof organisationUnitSelectionSchema>;
152
- export declare const periodSelectionSchema: z.ZodObject<{
153
- periods: z.ZodArray<z.ZodObject<{
154
- id: z.ZodString;
155
- }, "strip", z.ZodTypeAny, {
156
- id: string;
157
- }, {
158
- id: string;
159
- }>, "many">;
160
- type: z.ZodOptional<z.ZodString>;
161
- }, "strip", z.ZodTypeAny, {
162
- periods: {
163
- id: string;
164
- }[];
165
- type?: string | undefined;
166
- }, {
167
- periods: {
168
- id: string;
169
- }[];
170
- type?: string | undefined;
171
- }>;
172
- export type PeriodSelection = z.infer<typeof periodSelectionSchema>;
173
- export declare const legendSchema: z.ZodObject<{
174
- legendDefinitionId: z.ZodString;
175
- id: z.ZodString;
176
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
177
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
178
- }, "strip", z.ZodTypeAny, {
179
- id: string;
180
- legendDefinitionId: string;
181
- startValue: string | number;
182
- endValue: string | number;
183
- }, {
184
- id: string;
185
- legendDefinitionId: string;
186
- startValue: string | number;
187
- endValue: string | number;
188
- }>;
189
- export type ScorecardLegend = z.infer<typeof legendSchema>;
190
- export declare const specificTargetSchema: z.ZodObject<{
191
- type: z.ZodEnum<["periods", "orgUnit"]>;
192
- items: z.ZodArray<z.ZodString, "many">;
193
- legends: z.ZodArray<z.ZodObject<{
194
- legendDefinitionId: z.ZodString;
195
- id: z.ZodString;
196
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
197
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
198
- }, "strip", z.ZodTypeAny, {
199
- id: string;
200
- legendDefinitionId: string;
201
- startValue: string | number;
202
- endValue: string | number;
203
- }, {
204
- id: string;
205
- legendDefinitionId: string;
206
- startValue: string | number;
207
- endValue: string | number;
208
- }>, "many">;
209
- }, "strip", z.ZodTypeAny, {
210
- type: "periods" | "orgUnit";
211
- items: string[];
212
- legends: {
213
- id: string;
214
- legendDefinitionId: string;
215
- startValue: string | number;
216
- endValue: string | number;
217
- }[];
218
- }, {
219
- type: "periods" | "orgUnit";
220
- items: string[];
221
- legends: {
222
- id: string;
223
- legendDefinitionId: string;
224
- startValue: string | number;
225
- endValue: string | number;
226
- }[];
227
- }>;
228
- export type SpecificTarget = z.infer<typeof specificTargetSchema>;
229
- export declare const orgUnitLevelLegendSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
230
- legendDefinitionId: z.ZodString;
231
- id: z.ZodString;
232
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
233
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
234
- }, "strip", z.ZodTypeAny, {
235
- id: string;
236
- legendDefinitionId: string;
237
- startValue: string | number;
238
- endValue: string | number;
239
- }, {
240
- id: string;
241
- legendDefinitionId: string;
242
- startValue: string | number;
243
- endValue: string | number;
244
- }>, "many">>;
245
- export type OrgUnitLevelLegend = z.infer<typeof orgUnitLevelLegendSchema>;
246
- export declare const dataSourceSchema: z.ZodObject<{
247
- id: z.ZodString;
248
- name: z.ZodString;
249
- label: z.ZodOptional<z.ZodString>;
250
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
251
- displayArrows: z.ZodBoolean;
252
- highIsGood: z.ZodBoolean;
253
- effectiveGap: z.ZodNumber;
254
- showColors: z.ZodBoolean;
255
- weight: z.ZodNumber;
256
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
257
- legendDefinitionId: z.ZodString;
258
- id: z.ZodString;
259
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
260
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
261
- }, "strip", z.ZodTypeAny, {
262
- id: string;
263
- legendDefinitionId: string;
264
- startValue: string | number;
265
- endValue: string | number;
266
- }, {
267
- id: string;
268
- legendDefinitionId: string;
269
- startValue: string | number;
270
- endValue: string | number;
271
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
272
- legendDefinitionId: z.ZodString;
273
- id: z.ZodString;
274
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
275
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
276
- }, "strip", z.ZodTypeAny, {
277
- id: string;
278
- legendDefinitionId: string;
279
- startValue: string | number;
280
- endValue: string | number;
281
- }, {
282
- id: string;
283
- legendDefinitionId: string;
284
- startValue: string | number;
285
- endValue: string | number;
286
- }>, "many">>]>;
287
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
- type: z.ZodEnum<["periods", "orgUnit"]>;
289
- items: z.ZodArray<z.ZodString, "many">;
290
- legends: z.ZodArray<z.ZodObject<{
291
- legendDefinitionId: z.ZodString;
292
- id: z.ZodString;
293
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
294
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
295
- }, "strip", z.ZodTypeAny, {
296
- id: string;
297
- legendDefinitionId: string;
298
- startValue: string | number;
299
- endValue: string | number;
300
- }, {
301
- id: string;
302
- legendDefinitionId: string;
303
- startValue: string | number;
304
- endValue: string | number;
305
- }>, "many">;
306
- }, "strip", z.ZodTypeAny, {
307
- type: "periods" | "orgUnit";
308
- items: string[];
309
- legends: {
310
- id: string;
311
- legendDefinitionId: string;
312
- startValue: string | number;
313
- endValue: string | number;
314
- }[];
315
- }, {
316
- type: "periods" | "orgUnit";
317
- items: string[];
318
- legends: {
319
- id: string;
320
- legendDefinitionId: string;
321
- startValue: string | number;
322
- endValue: string | number;
323
- }[];
324
- }>, "many">>;
325
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
326
- description: z.ZodOptional<z.ZodString>;
327
- }, "strip", z.ZodTypeAny, {
328
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
329
- id: string;
330
- name: string;
331
- legends: {
332
- id: string;
333
- legendDefinitionId: string;
334
- startValue: string | number;
335
- endValue: string | number;
336
- }[] | Record<string, {
337
- id: string;
338
- legendDefinitionId: string;
339
- startValue: string | number;
340
- endValue: string | number;
341
- }[]>;
342
- displayArrows: boolean;
343
- highIsGood: boolean;
344
- effectiveGap: number;
345
- showColors: boolean;
346
- weight: number;
347
- label?: string | undefined;
348
- specificTargets?: {
349
- type: "periods" | "orgUnit";
350
- items: string[];
351
- legends: {
352
- id: string;
353
- legendDefinitionId: string;
354
- startValue: string | number;
355
- endValue: string | number;
356
- }[];
357
- }[] | undefined;
358
- specificTargetsSet?: boolean | undefined;
359
- description?: string | undefined;
360
- }, {
361
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
362
- id: string;
363
- name: string;
364
- legends: {
365
- id: string;
366
- legendDefinitionId: string;
367
- startValue: string | number;
368
- endValue: string | number;
369
- }[] | Record<string, {
370
- id: string;
371
- legendDefinitionId: string;
372
- startValue: string | number;
373
- endValue: string | number;
374
- }[]>;
375
- displayArrows: boolean;
376
- highIsGood: boolean;
377
- effectiveGap: number;
378
- showColors: boolean;
379
- weight: number;
380
- label?: string | undefined;
381
- specificTargets?: {
382
- type: "periods" | "orgUnit";
383
- items: string[];
384
- legends: {
385
- id: string;
386
- legendDefinitionId: string;
387
- startValue: string | number;
388
- endValue: string | number;
389
- }[];
390
- }[] | undefined;
391
- specificTargetsSet?: boolean | undefined;
392
- description?: string | undefined;
393
- }>;
394
- export type ScorecardDataSource = z.infer<typeof dataSourceSchema>;
395
- export declare const dataHolderSchema: z.ZodObject<{
396
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
397
- dataSources: z.ZodArray<z.ZodObject<{
398
- id: z.ZodString;
399
- name: z.ZodString;
400
- label: z.ZodOptional<z.ZodString>;
401
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
402
- displayArrows: z.ZodBoolean;
403
- highIsGood: z.ZodBoolean;
404
- effectiveGap: z.ZodNumber;
405
- showColors: z.ZodBoolean;
406
- weight: z.ZodNumber;
407
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
408
- legendDefinitionId: z.ZodString;
409
- id: z.ZodString;
410
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
411
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
412
- }, "strip", z.ZodTypeAny, {
413
- id: string;
414
- legendDefinitionId: string;
415
- startValue: string | number;
416
- endValue: string | number;
417
- }, {
418
- id: string;
419
- legendDefinitionId: string;
420
- startValue: string | number;
421
- endValue: string | number;
422
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
423
- legendDefinitionId: z.ZodString;
424
- id: z.ZodString;
425
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
426
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
427
- }, "strip", z.ZodTypeAny, {
428
- id: string;
429
- legendDefinitionId: string;
430
- startValue: string | number;
431
- endValue: string | number;
432
- }, {
433
- id: string;
434
- legendDefinitionId: string;
435
- startValue: string | number;
436
- endValue: string | number;
437
- }>, "many">>]>;
438
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
439
- type: z.ZodEnum<["periods", "orgUnit"]>;
440
- items: z.ZodArray<z.ZodString, "many">;
441
- legends: z.ZodArray<z.ZodObject<{
442
- legendDefinitionId: z.ZodString;
443
- id: z.ZodString;
444
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
445
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
446
- }, "strip", z.ZodTypeAny, {
447
- id: string;
448
- legendDefinitionId: string;
449
- startValue: string | number;
450
- endValue: string | number;
451
- }, {
452
- id: string;
453
- legendDefinitionId: string;
454
- startValue: string | number;
455
- endValue: string | number;
456
- }>, "many">;
457
- }, "strip", z.ZodTypeAny, {
458
- type: "periods" | "orgUnit";
459
- items: string[];
460
- legends: {
461
- id: string;
462
- legendDefinitionId: string;
463
- startValue: string | number;
464
- endValue: string | number;
465
- }[];
466
- }, {
467
- type: "periods" | "orgUnit";
468
- items: string[];
469
- legends: {
470
- id: string;
471
- legendDefinitionId: string;
472
- startValue: string | number;
473
- endValue: string | number;
474
- }[];
475
- }>, "many">>;
476
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
477
- description: z.ZodOptional<z.ZodString>;
478
- }, "strip", z.ZodTypeAny, {
479
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
480
- id: string;
481
- name: string;
482
- legends: {
483
- id: string;
484
- legendDefinitionId: string;
485
- startValue: string | number;
486
- endValue: string | number;
487
- }[] | Record<string, {
488
- id: string;
489
- legendDefinitionId: string;
490
- startValue: string | number;
491
- endValue: string | number;
492
- }[]>;
493
- displayArrows: boolean;
494
- highIsGood: boolean;
495
- effectiveGap: number;
496
- showColors: boolean;
497
- weight: number;
498
- label?: string | undefined;
499
- specificTargets?: {
500
- type: "periods" | "orgUnit";
501
- items: string[];
502
- legends: {
503
- id: string;
504
- legendDefinitionId: string;
505
- startValue: string | number;
506
- endValue: string | number;
507
- }[];
508
- }[] | undefined;
509
- specificTargetsSet?: boolean | undefined;
510
- description?: string | undefined;
511
- }, {
512
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
513
- id: string;
514
- name: string;
515
- legends: {
516
- id: string;
517
- legendDefinitionId: string;
518
- startValue: string | number;
519
- endValue: string | number;
520
- }[] | Record<string, {
521
- id: string;
522
- legendDefinitionId: string;
523
- startValue: string | number;
524
- endValue: string | number;
525
- }[]>;
526
- displayArrows: boolean;
527
- highIsGood: boolean;
528
- effectiveGap: number;
529
- showColors: boolean;
530
- weight: number;
531
- label?: string | undefined;
532
- specificTargets?: {
533
- type: "periods" | "orgUnit";
534
- items: string[];
535
- legends: {
536
- id: string;
537
- legendDefinitionId: string;
538
- startValue: string | number;
539
- endValue: string | number;
540
- }[];
541
- }[] | undefined;
542
- specificTargetsSet?: boolean | undefined;
543
- description?: string | undefined;
544
- }>, "many">;
545
- }, "strip", z.ZodTypeAny, {
546
- id: string | number;
547
- dataSources: {
548
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
549
- id: string;
550
- name: string;
551
- legends: {
552
- id: string;
553
- legendDefinitionId: string;
554
- startValue: string | number;
555
- endValue: string | number;
556
- }[] | Record<string, {
557
- id: string;
558
- legendDefinitionId: string;
559
- startValue: string | number;
560
- endValue: string | number;
561
- }[]>;
562
- displayArrows: boolean;
563
- highIsGood: boolean;
564
- effectiveGap: number;
565
- showColors: boolean;
566
- weight: number;
567
- label?: string | undefined;
568
- specificTargets?: {
569
- type: "periods" | "orgUnit";
570
- items: string[];
571
- legends: {
572
- id: string;
573
- legendDefinitionId: string;
574
- startValue: string | number;
575
- endValue: string | number;
576
- }[];
577
- }[] | undefined;
578
- specificTargetsSet?: boolean | undefined;
579
- description?: string | undefined;
580
- }[];
581
- }, {
582
- id: string | number;
583
- dataSources: {
584
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
585
- id: string;
586
- name: string;
587
- legends: {
588
- id: string;
589
- legendDefinitionId: string;
590
- startValue: string | number;
591
- endValue: string | number;
592
- }[] | Record<string, {
593
- id: string;
594
- legendDefinitionId: string;
595
- startValue: string | number;
596
- endValue: string | number;
597
- }[]>;
598
- displayArrows: boolean;
599
- highIsGood: boolean;
600
- effectiveGap: number;
601
- showColors: boolean;
602
- weight: number;
603
- label?: string | undefined;
604
- specificTargets?: {
605
- type: "periods" | "orgUnit";
606
- items: string[];
607
- legends: {
608
- id: string;
609
- legendDefinitionId: string;
610
- startValue: string | number;
611
- endValue: string | number;
612
- }[];
613
- }[] | undefined;
614
- specificTargetsSet?: boolean | undefined;
615
- description?: string | undefined;
616
- }[];
617
- }>;
618
- export type ScorecardDataHolder = z.infer<typeof dataHolderSchema>;
619
- export declare const dataGroupSchema: z.ZodObject<{
620
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
621
- dataHolders: z.ZodArray<z.ZodObject<{
622
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
623
- dataSources: z.ZodArray<z.ZodObject<{
624
- id: z.ZodString;
625
- name: z.ZodString;
626
- label: z.ZodOptional<z.ZodString>;
627
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
628
- displayArrows: z.ZodBoolean;
629
- highIsGood: z.ZodBoolean;
630
- effectiveGap: z.ZodNumber;
631
- showColors: z.ZodBoolean;
632
- weight: z.ZodNumber;
633
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
634
- legendDefinitionId: z.ZodString;
635
- id: z.ZodString;
636
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
637
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
638
- }, "strip", z.ZodTypeAny, {
639
- id: string;
640
- legendDefinitionId: string;
641
- startValue: string | number;
642
- endValue: string | number;
643
- }, {
644
- id: string;
645
- legendDefinitionId: string;
646
- startValue: string | number;
647
- endValue: string | number;
648
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
649
- legendDefinitionId: z.ZodString;
650
- id: z.ZodString;
651
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
652
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
653
- }, "strip", z.ZodTypeAny, {
654
- id: string;
655
- legendDefinitionId: string;
656
- startValue: string | number;
657
- endValue: string | number;
658
- }, {
659
- id: string;
660
- legendDefinitionId: string;
661
- startValue: string | number;
662
- endValue: string | number;
663
- }>, "many">>]>;
664
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
665
- type: z.ZodEnum<["periods", "orgUnit"]>;
666
- items: z.ZodArray<z.ZodString, "many">;
667
- legends: z.ZodArray<z.ZodObject<{
668
- legendDefinitionId: z.ZodString;
669
- id: z.ZodString;
670
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
671
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
672
- }, "strip", z.ZodTypeAny, {
673
- id: string;
674
- legendDefinitionId: string;
675
- startValue: string | number;
676
- endValue: string | number;
677
- }, {
678
- id: string;
679
- legendDefinitionId: string;
680
- startValue: string | number;
681
- endValue: string | number;
682
- }>, "many">;
683
- }, "strip", z.ZodTypeAny, {
684
- type: "periods" | "orgUnit";
685
- items: string[];
686
- legends: {
687
- id: string;
688
- legendDefinitionId: string;
689
- startValue: string | number;
690
- endValue: string | number;
691
- }[];
692
- }, {
693
- type: "periods" | "orgUnit";
694
- items: string[];
695
- legends: {
696
- id: string;
697
- legendDefinitionId: string;
698
- startValue: string | number;
699
- endValue: string | number;
700
- }[];
701
- }>, "many">>;
702
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
703
- description: z.ZodOptional<z.ZodString>;
704
- }, "strip", z.ZodTypeAny, {
705
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
706
- id: string;
707
- name: string;
708
- legends: {
709
- id: string;
710
- legendDefinitionId: string;
711
- startValue: string | number;
712
- endValue: string | number;
713
- }[] | Record<string, {
714
- id: string;
715
- legendDefinitionId: string;
716
- startValue: string | number;
717
- endValue: string | number;
718
- }[]>;
719
- displayArrows: boolean;
720
- highIsGood: boolean;
721
- effectiveGap: number;
722
- showColors: boolean;
723
- weight: number;
724
- label?: string | undefined;
725
- specificTargets?: {
726
- type: "periods" | "orgUnit";
727
- items: string[];
728
- legends: {
729
- id: string;
730
- legendDefinitionId: string;
731
- startValue: string | number;
732
- endValue: string | number;
733
- }[];
734
- }[] | undefined;
735
- specificTargetsSet?: boolean | undefined;
736
- description?: string | undefined;
737
- }, {
738
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
739
- id: string;
740
- name: string;
741
- legends: {
742
- id: string;
743
- legendDefinitionId: string;
744
- startValue: string | number;
745
- endValue: string | number;
746
- }[] | Record<string, {
747
- id: string;
748
- legendDefinitionId: string;
749
- startValue: string | number;
750
- endValue: string | number;
751
- }[]>;
752
- displayArrows: boolean;
753
- highIsGood: boolean;
754
- effectiveGap: number;
755
- showColors: boolean;
756
- weight: number;
757
- label?: string | undefined;
758
- specificTargets?: {
759
- type: "periods" | "orgUnit";
760
- items: string[];
761
- legends: {
762
- id: string;
763
- legendDefinitionId: string;
764
- startValue: string | number;
765
- endValue: string | number;
766
- }[];
767
- }[] | undefined;
768
- specificTargetsSet?: boolean | undefined;
769
- description?: string | undefined;
770
- }>, "many">;
771
- }, "strip", z.ZodTypeAny, {
772
- id: string | number;
773
- dataSources: {
774
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
775
- id: string;
776
- name: string;
777
- legends: {
778
- id: string;
779
- legendDefinitionId: string;
780
- startValue: string | number;
781
- endValue: string | number;
782
- }[] | Record<string, {
783
- id: string;
784
- legendDefinitionId: string;
785
- startValue: string | number;
786
- endValue: string | number;
787
- }[]>;
788
- displayArrows: boolean;
789
- highIsGood: boolean;
790
- effectiveGap: number;
791
- showColors: boolean;
792
- weight: number;
793
- label?: string | undefined;
794
- specificTargets?: {
795
- type: "periods" | "orgUnit";
796
- items: string[];
797
- legends: {
798
- id: string;
799
- legendDefinitionId: string;
800
- startValue: string | number;
801
- endValue: string | number;
802
- }[];
803
- }[] | undefined;
804
- specificTargetsSet?: boolean | undefined;
805
- description?: string | undefined;
806
- }[];
807
- }, {
808
- id: string | number;
809
- dataSources: {
810
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
811
- id: string;
812
- name: string;
813
- legends: {
814
- id: string;
815
- legendDefinitionId: string;
816
- startValue: string | number;
817
- endValue: string | number;
818
- }[] | Record<string, {
819
- id: string;
820
- legendDefinitionId: string;
821
- startValue: string | number;
822
- endValue: string | number;
823
- }[]>;
824
- displayArrows: boolean;
825
- highIsGood: boolean;
826
- effectiveGap: number;
827
- showColors: boolean;
828
- weight: number;
829
- label?: string | undefined;
830
- specificTargets?: {
831
- type: "periods" | "orgUnit";
832
- items: string[];
833
- legends: {
834
- id: string;
835
- legendDefinitionId: string;
836
- startValue: string | number;
837
- endValue: string | number;
838
- }[];
839
- }[] | undefined;
840
- specificTargetsSet?: boolean | undefined;
841
- description?: string | undefined;
842
- }[];
843
- }>, "many">;
844
- style: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
845
- title: z.ZodString;
846
- }, "strip", z.ZodTypeAny, {
847
- id: string | number;
848
- title: string;
849
- dataHolders: {
850
- id: string | number;
851
- dataSources: {
852
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
853
- id: string;
854
- name: string;
855
- legends: {
856
- id: string;
857
- legendDefinitionId: string;
858
- startValue: string | number;
859
- endValue: string | number;
860
- }[] | Record<string, {
861
- id: string;
862
- legendDefinitionId: string;
863
- startValue: string | number;
864
- endValue: string | number;
865
- }[]>;
866
- displayArrows: boolean;
867
- highIsGood: boolean;
868
- effectiveGap: number;
869
- showColors: boolean;
870
- weight: number;
871
- label?: string | undefined;
872
- specificTargets?: {
873
- type: "periods" | "orgUnit";
874
- items: string[];
875
- legends: {
876
- id: string;
877
- legendDefinitionId: string;
878
- startValue: string | number;
879
- endValue: string | number;
880
- }[];
881
- }[] | undefined;
882
- specificTargetsSet?: boolean | undefined;
883
- description?: string | undefined;
884
- }[];
885
- }[];
886
- style: {};
887
- }, {
888
- id: string | number;
889
- title: string;
890
- dataHolders: {
891
- id: string | number;
892
- dataSources: {
893
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
894
- id: string;
895
- name: string;
896
- legends: {
897
- id: string;
898
- legendDefinitionId: string;
899
- startValue: string | number;
900
- endValue: string | number;
901
- }[] | Record<string, {
902
- id: string;
903
- legendDefinitionId: string;
904
- startValue: string | number;
905
- endValue: string | number;
906
- }[]>;
907
- displayArrows: boolean;
908
- highIsGood: boolean;
909
- effectiveGap: number;
910
- showColors: boolean;
911
- weight: number;
912
- label?: string | undefined;
913
- specificTargets?: {
914
- type: "periods" | "orgUnit";
915
- items: string[];
916
- legends: {
917
- id: string;
918
- legendDefinitionId: string;
919
- startValue: string | number;
920
- endValue: string | number;
921
- }[];
922
- }[] | undefined;
923
- specificTargetsSet?: boolean | undefined;
924
- description?: string | undefined;
925
- }[];
926
- }[];
927
- style: {};
928
- }>;
929
- export type ScorecardDataGroup = z.infer<typeof dataGroupSchema>;
930
- export declare const scorecardConfig: z.ZodObject<{
931
- id: z.ZodString;
932
- title: z.ZodString;
933
- subtitle: z.ZodOptional<z.ZodString>;
934
- customHeader: z.ZodOptional<z.ZodString>;
935
- description: z.ZodOptional<z.ZodString>;
936
- legendDefinitions: z.ZodArray<z.ZodObject<{
937
- id: z.ZodString;
938
- color: z.ZodString;
939
- name: z.ZodString;
940
- isDefault: z.ZodOptional<z.ZodBoolean>;
941
- }, "strip", z.ZodTypeAny, {
942
- id: string;
943
- color: string;
944
- name: string;
945
- isDefault?: boolean | undefined;
946
- }, {
947
- id: string;
948
- color: string;
949
- name: string;
950
- isDefault?: boolean | undefined;
951
- }>, "many">;
952
- options: z.ZodObject<{
953
- averageColumn: z.ZodOptional<z.ZodBoolean>;
954
- averageDisplayType: z.ZodOptional<z.ZodEnum<["ALL", "ABOVE_AVERAGE", "BELOW_AVERAGE"]>>;
955
- averageRow: z.ZodOptional<z.ZodBoolean>;
956
- emptyRows: z.ZodOptional<z.ZodBoolean>;
957
- highlightedIndicators: z.ZodOptional<z.ZodBoolean>;
958
- itemNumber: z.ZodOptional<z.ZodBoolean>;
959
- legend: z.ZodOptional<z.ZodBoolean>;
960
- showHierarchy: z.ZodOptional<z.ZodBoolean>;
961
- title: z.ZodOptional<z.ZodBoolean>;
962
- arrows: z.ZodOptional<z.ZodBoolean>;
963
- showDataInRows: z.ZodOptional<z.ZodBoolean>;
964
- disableExpanding: z.ZodOptional<z.ZodBoolean>;
965
- disablePagination: z.ZodOptional<z.ZodBoolean>;
966
- printMode: z.ZodOptional<z.ZodBoolean>;
967
- }, "strip", z.ZodTypeAny, {
968
- averageColumn?: boolean | undefined;
969
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
970
- averageRow?: boolean | undefined;
971
- emptyRows?: boolean | undefined;
972
- highlightedIndicators?: boolean | undefined;
973
- itemNumber?: boolean | undefined;
974
- legend?: boolean | undefined;
975
- showHierarchy?: boolean | undefined;
976
- title?: boolean | undefined;
977
- arrows?: boolean | undefined;
978
- showDataInRows?: boolean | undefined;
979
- disableExpanding?: boolean | undefined;
980
- disablePagination?: boolean | undefined;
981
- printMode?: boolean | undefined;
982
- }, {
983
- averageColumn?: boolean | undefined;
984
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
985
- averageRow?: boolean | undefined;
986
- emptyRows?: boolean | undefined;
987
- highlightedIndicators?: boolean | undefined;
988
- itemNumber?: boolean | undefined;
989
- legend?: boolean | undefined;
990
- showHierarchy?: boolean | undefined;
991
- title?: boolean | undefined;
992
- arrows?: boolean | undefined;
993
- showDataInRows?: boolean | undefined;
994
- disableExpanding?: boolean | undefined;
995
- disablePagination?: boolean | undefined;
996
- printMode?: boolean | undefined;
997
- }>;
998
- orgUnitSelection: z.ZodObject<{
999
- userOrgUnit: z.ZodOptional<z.ZodBoolean>;
1000
- userSubUnit: z.ZodOptional<z.ZodBoolean>;
1001
- userSubX2Unit: z.ZodOptional<z.ZodBoolean>;
1002
- orgUnits: z.ZodArray<z.ZodObject<{
1003
- id: z.ZodString;
1004
- }, "strip", z.ZodTypeAny, {
1005
- id: string;
1006
- }, {
1007
- id: string;
1008
- }>, "many">;
1009
- groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1010
- levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1011
- }, "strip", z.ZodTypeAny, {
1012
- orgUnits: {
1013
- id: string;
1014
- }[];
1015
- userOrgUnit?: boolean | undefined;
1016
- userSubUnit?: boolean | undefined;
1017
- userSubX2Unit?: boolean | undefined;
1018
- groups?: string[] | undefined;
1019
- levels?: string[] | undefined;
1020
- }, {
1021
- orgUnits: {
1022
- id: string;
1023
- }[];
1024
- userOrgUnit?: boolean | undefined;
1025
- userSubUnit?: boolean | undefined;
1026
- userSubX2Unit?: boolean | undefined;
1027
- groups?: string[] | undefined;
1028
- levels?: string[] | undefined;
1029
- }>;
1030
- periodSelection: z.ZodObject<{
1031
- periods: z.ZodArray<z.ZodObject<{
1032
- id: z.ZodString;
1033
- }, "strip", z.ZodTypeAny, {
1034
- id: string;
1035
- }, {
1036
- id: string;
1037
- }>, "many">;
1038
- type: z.ZodOptional<z.ZodString>;
1039
- }, "strip", z.ZodTypeAny, {
1040
- periods: {
1041
- id: string;
1042
- }[];
1043
- type?: string | undefined;
1044
- }, {
1045
- periods: {
1046
- id: string;
1047
- }[];
1048
- type?: string | undefined;
1049
- }>;
1050
- dataSelection: z.ZodObject<{
1051
- dataGroups: z.ZodArray<z.ZodObject<{
1052
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1053
- dataHolders: z.ZodArray<z.ZodObject<{
1054
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
1055
- dataSources: z.ZodArray<z.ZodObject<{
1056
- id: z.ZodString;
1057
- name: z.ZodString;
1058
- label: z.ZodOptional<z.ZodString>;
1059
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
1060
- displayArrows: z.ZodBoolean;
1061
- highIsGood: z.ZodBoolean;
1062
- effectiveGap: z.ZodNumber;
1063
- showColors: z.ZodBoolean;
1064
- weight: z.ZodNumber;
1065
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
1066
- legendDefinitionId: z.ZodString;
1067
- id: z.ZodString;
1068
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1069
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1070
- }, "strip", z.ZodTypeAny, {
1071
- id: string;
1072
- legendDefinitionId: string;
1073
- startValue: string | number;
1074
- endValue: string | number;
1075
- }, {
1076
- id: string;
1077
- legendDefinitionId: string;
1078
- startValue: string | number;
1079
- endValue: string | number;
1080
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1081
- legendDefinitionId: z.ZodString;
1082
- id: z.ZodString;
1083
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1084
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1085
- }, "strip", z.ZodTypeAny, {
1086
- id: string;
1087
- legendDefinitionId: string;
1088
- startValue: string | number;
1089
- endValue: string | number;
1090
- }, {
1091
- id: string;
1092
- legendDefinitionId: string;
1093
- startValue: string | number;
1094
- endValue: string | number;
1095
- }>, "many">>]>;
1096
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1097
- type: z.ZodEnum<["periods", "orgUnit"]>;
1098
- items: z.ZodArray<z.ZodString, "many">;
1099
- legends: z.ZodArray<z.ZodObject<{
1100
- legendDefinitionId: z.ZodString;
1101
- id: z.ZodString;
1102
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1103
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1104
- }, "strip", z.ZodTypeAny, {
1105
- id: string;
1106
- legendDefinitionId: string;
1107
- startValue: string | number;
1108
- endValue: string | number;
1109
- }, {
1110
- id: string;
1111
- legendDefinitionId: string;
1112
- startValue: string | number;
1113
- endValue: string | number;
1114
- }>, "many">;
1115
- }, "strip", z.ZodTypeAny, {
1116
- type: "periods" | "orgUnit";
1117
- items: string[];
1118
- legends: {
1119
- id: string;
1120
- legendDefinitionId: string;
1121
- startValue: string | number;
1122
- endValue: string | number;
1123
- }[];
1124
- }, {
1125
- type: "periods" | "orgUnit";
1126
- items: string[];
1127
- legends: {
1128
- id: string;
1129
- legendDefinitionId: string;
1130
- startValue: string | number;
1131
- endValue: string | number;
1132
- }[];
1133
- }>, "many">>;
1134
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
1135
- description: z.ZodOptional<z.ZodString>;
1136
- }, "strip", z.ZodTypeAny, {
1137
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1138
- id: string;
1139
- name: string;
1140
- legends: {
1141
- id: string;
1142
- legendDefinitionId: string;
1143
- startValue: string | number;
1144
- endValue: string | number;
1145
- }[] | Record<string, {
1146
- id: string;
1147
- legendDefinitionId: string;
1148
- startValue: string | number;
1149
- endValue: string | number;
1150
- }[]>;
1151
- displayArrows: boolean;
1152
- highIsGood: boolean;
1153
- effectiveGap: number;
1154
- showColors: boolean;
1155
- weight: number;
1156
- label?: string | undefined;
1157
- specificTargets?: {
1158
- type: "periods" | "orgUnit";
1159
- items: string[];
1160
- legends: {
1161
- id: string;
1162
- legendDefinitionId: string;
1163
- startValue: string | number;
1164
- endValue: string | number;
1165
- }[];
1166
- }[] | undefined;
1167
- specificTargetsSet?: boolean | undefined;
1168
- description?: string | undefined;
1169
- }, {
1170
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1171
- id: string;
1172
- name: string;
1173
- legends: {
1174
- id: string;
1175
- legendDefinitionId: string;
1176
- startValue: string | number;
1177
- endValue: string | number;
1178
- }[] | Record<string, {
1179
- id: string;
1180
- legendDefinitionId: string;
1181
- startValue: string | number;
1182
- endValue: string | number;
1183
- }[]>;
1184
- displayArrows: boolean;
1185
- highIsGood: boolean;
1186
- effectiveGap: number;
1187
- showColors: boolean;
1188
- weight: number;
1189
- label?: string | undefined;
1190
- specificTargets?: {
1191
- type: "periods" | "orgUnit";
1192
- items: string[];
1193
- legends: {
1194
- id: string;
1195
- legendDefinitionId: string;
1196
- startValue: string | number;
1197
- endValue: string | number;
1198
- }[];
1199
- }[] | undefined;
1200
- specificTargetsSet?: boolean | undefined;
1201
- description?: string | undefined;
1202
- }>, "many">;
1203
- }, "strip", z.ZodTypeAny, {
1204
- id: string | number;
1205
- dataSources: {
1206
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1207
- id: string;
1208
- name: string;
1209
- legends: {
1210
- id: string;
1211
- legendDefinitionId: string;
1212
- startValue: string | number;
1213
- endValue: string | number;
1214
- }[] | Record<string, {
1215
- id: string;
1216
- legendDefinitionId: string;
1217
- startValue: string | number;
1218
- endValue: string | number;
1219
- }[]>;
1220
- displayArrows: boolean;
1221
- highIsGood: boolean;
1222
- effectiveGap: number;
1223
- showColors: boolean;
1224
- weight: number;
1225
- label?: string | undefined;
1226
- specificTargets?: {
1227
- type: "periods" | "orgUnit";
1228
- items: string[];
1229
- legends: {
1230
- id: string;
1231
- legendDefinitionId: string;
1232
- startValue: string | number;
1233
- endValue: string | number;
1234
- }[];
1235
- }[] | undefined;
1236
- specificTargetsSet?: boolean | undefined;
1237
- description?: string | undefined;
1238
- }[];
1239
- }, {
1240
- id: string | number;
1241
- dataSources: {
1242
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1243
- id: string;
1244
- name: string;
1245
- legends: {
1246
- id: string;
1247
- legendDefinitionId: string;
1248
- startValue: string | number;
1249
- endValue: string | number;
1250
- }[] | Record<string, {
1251
- id: string;
1252
- legendDefinitionId: string;
1253
- startValue: string | number;
1254
- endValue: string | number;
1255
- }[]>;
1256
- displayArrows: boolean;
1257
- highIsGood: boolean;
1258
- effectiveGap: number;
1259
- showColors: boolean;
1260
- weight: number;
1261
- label?: string | undefined;
1262
- specificTargets?: {
1263
- type: "periods" | "orgUnit";
1264
- items: string[];
1265
- legends: {
1266
- id: string;
1267
- legendDefinitionId: string;
1268
- startValue: string | number;
1269
- endValue: string | number;
1270
- }[];
1271
- }[] | undefined;
1272
- specificTargetsSet?: boolean | undefined;
1273
- description?: string | undefined;
1274
- }[];
1275
- }>, "many">;
1276
- style: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1277
- title: z.ZodString;
1278
- }, "strip", z.ZodTypeAny, {
1279
- id: string | number;
1280
- title: string;
1281
- dataHolders: {
1282
- id: string | number;
1283
- dataSources: {
1284
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1285
- id: string;
1286
- name: string;
1287
- legends: {
1288
- id: string;
1289
- legendDefinitionId: string;
1290
- startValue: string | number;
1291
- endValue: string | number;
1292
- }[] | Record<string, {
1293
- id: string;
1294
- legendDefinitionId: string;
1295
- startValue: string | number;
1296
- endValue: string | number;
1297
- }[]>;
1298
- displayArrows: boolean;
1299
- highIsGood: boolean;
1300
- effectiveGap: number;
1301
- showColors: boolean;
1302
- weight: number;
1303
- label?: string | undefined;
1304
- specificTargets?: {
1305
- type: "periods" | "orgUnit";
1306
- items: string[];
1307
- legends: {
1308
- id: string;
1309
- legendDefinitionId: string;
1310
- startValue: string | number;
1311
- endValue: string | number;
1312
- }[];
1313
- }[] | undefined;
1314
- specificTargetsSet?: boolean | undefined;
1315
- description?: string | undefined;
1316
- }[];
1317
- }[];
1318
- style: {};
1319
- }, {
1320
- id: string | number;
1321
- title: string;
1322
- dataHolders: {
1323
- id: string | number;
1324
- dataSources: {
1325
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1326
- id: string;
1327
- name: string;
1328
- legends: {
1329
- id: string;
1330
- legendDefinitionId: string;
1331
- startValue: string | number;
1332
- endValue: string | number;
1333
- }[] | Record<string, {
1334
- id: string;
1335
- legendDefinitionId: string;
1336
- startValue: string | number;
1337
- endValue: string | number;
1338
- }[]>;
1339
- displayArrows: boolean;
1340
- highIsGood: boolean;
1341
- effectiveGap: number;
1342
- showColors: boolean;
1343
- weight: number;
1344
- label?: string | undefined;
1345
- specificTargets?: {
1346
- type: "periods" | "orgUnit";
1347
- items: string[];
1348
- legends: {
1349
- id: string;
1350
- legendDefinitionId: string;
1351
- startValue: string | number;
1352
- endValue: string | number;
1353
- }[];
1354
- }[] | undefined;
1355
- specificTargetsSet?: boolean | undefined;
1356
- description?: string | undefined;
1357
- }[];
1358
- }[];
1359
- style: {};
1360
- }>, "many">;
1361
- }, "strip", z.ZodTypeAny, {
1362
- dataGroups: {
1363
- id: string | number;
1364
- title: string;
1365
- dataHolders: {
1366
- id: string | number;
1367
- dataSources: {
1368
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1369
- id: string;
1370
- name: string;
1371
- legends: {
1372
- id: string;
1373
- legendDefinitionId: string;
1374
- startValue: string | number;
1375
- endValue: string | number;
1376
- }[] | Record<string, {
1377
- id: string;
1378
- legendDefinitionId: string;
1379
- startValue: string | number;
1380
- endValue: string | number;
1381
- }[]>;
1382
- displayArrows: boolean;
1383
- highIsGood: boolean;
1384
- effectiveGap: number;
1385
- showColors: boolean;
1386
- weight: number;
1387
- label?: string | undefined;
1388
- specificTargets?: {
1389
- type: "periods" | "orgUnit";
1390
- items: string[];
1391
- legends: {
1392
- id: string;
1393
- legendDefinitionId: string;
1394
- startValue: string | number;
1395
- endValue: string | number;
1396
- }[];
1397
- }[] | undefined;
1398
- specificTargetsSet?: boolean | undefined;
1399
- description?: string | undefined;
1400
- }[];
1401
- }[];
1402
- style: {};
1403
- }[];
1404
- }, {
1405
- dataGroups: {
1406
- id: string | number;
1407
- title: string;
1408
- dataHolders: {
1409
- id: string | number;
1410
- dataSources: {
1411
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1412
- id: string;
1413
- name: string;
1414
- legends: {
1415
- id: string;
1416
- legendDefinitionId: string;
1417
- startValue: string | number;
1418
- endValue: string | number;
1419
- }[] | Record<string, {
1420
- id: string;
1421
- legendDefinitionId: string;
1422
- startValue: string | number;
1423
- endValue: string | number;
1424
- }[]>;
1425
- displayArrows: boolean;
1426
- highIsGood: boolean;
1427
- effectiveGap: number;
1428
- showColors: boolean;
1429
- weight: number;
1430
- label?: string | undefined;
1431
- specificTargets?: {
1432
- type: "periods" | "orgUnit";
1433
- items: string[];
1434
- legends: {
1435
- id: string;
1436
- legendDefinitionId: string;
1437
- startValue: string | number;
1438
- endValue: string | number;
1439
- }[];
1440
- }[] | undefined;
1441
- specificTargetsSet?: boolean | undefined;
1442
- description?: string | undefined;
1443
- }[];
1444
- }[];
1445
- style: {};
1446
- }[];
1447
- }>;
1448
- highlightedIndicators: z.ZodArray<z.ZodObject<{
1449
- id: z.ZodString;
1450
- name: z.ZodString;
1451
- label: z.ZodOptional<z.ZodString>;
1452
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
1453
- displayArrows: z.ZodBoolean;
1454
- highIsGood: z.ZodBoolean;
1455
- effectiveGap: z.ZodNumber;
1456
- showColors: z.ZodBoolean;
1457
- weight: z.ZodNumber;
1458
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
1459
- legendDefinitionId: z.ZodString;
1460
- id: z.ZodString;
1461
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1462
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1463
- }, "strip", z.ZodTypeAny, {
1464
- id: string;
1465
- legendDefinitionId: string;
1466
- startValue: string | number;
1467
- endValue: string | number;
1468
- }, {
1469
- id: string;
1470
- legendDefinitionId: string;
1471
- startValue: string | number;
1472
- endValue: string | number;
1473
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1474
- legendDefinitionId: z.ZodString;
1475
- id: z.ZodString;
1476
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1477
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1478
- }, "strip", z.ZodTypeAny, {
1479
- id: string;
1480
- legendDefinitionId: string;
1481
- startValue: string | number;
1482
- endValue: string | number;
1483
- }, {
1484
- id: string;
1485
- legendDefinitionId: string;
1486
- startValue: string | number;
1487
- endValue: string | number;
1488
- }>, "many">>]>;
1489
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1490
- type: z.ZodEnum<["periods", "orgUnit"]>;
1491
- items: z.ZodArray<z.ZodString, "many">;
1492
- legends: z.ZodArray<z.ZodObject<{
1493
- legendDefinitionId: z.ZodString;
1494
- id: z.ZodString;
1495
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1496
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1497
- }, "strip", z.ZodTypeAny, {
1498
- id: string;
1499
- legendDefinitionId: string;
1500
- startValue: string | number;
1501
- endValue: string | number;
1502
- }, {
1503
- id: string;
1504
- legendDefinitionId: string;
1505
- startValue: string | number;
1506
- endValue: string | number;
1507
- }>, "many">;
1508
- }, "strip", z.ZodTypeAny, {
1509
- type: "periods" | "orgUnit";
1510
- items: string[];
1511
- legends: {
1512
- id: string;
1513
- legendDefinitionId: string;
1514
- startValue: string | number;
1515
- endValue: string | number;
1516
- }[];
1517
- }, {
1518
- type: "periods" | "orgUnit";
1519
- items: string[];
1520
- legends: {
1521
- id: string;
1522
- legendDefinitionId: string;
1523
- startValue: string | number;
1524
- endValue: string | number;
1525
- }[];
1526
- }>, "many">>;
1527
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
1528
- description: z.ZodOptional<z.ZodString>;
1529
- }, "strip", z.ZodTypeAny, {
1530
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1531
- id: string;
1532
- name: string;
1533
- legends: {
1534
- id: string;
1535
- legendDefinitionId: string;
1536
- startValue: string | number;
1537
- endValue: string | number;
1538
- }[] | Record<string, {
1539
- id: string;
1540
- legendDefinitionId: string;
1541
- startValue: string | number;
1542
- endValue: string | number;
1543
- }[]>;
1544
- displayArrows: boolean;
1545
- highIsGood: boolean;
1546
- effectiveGap: number;
1547
- showColors: boolean;
1548
- weight: number;
1549
- label?: string | undefined;
1550
- specificTargets?: {
1551
- type: "periods" | "orgUnit";
1552
- items: string[];
1553
- legends: {
1554
- id: string;
1555
- legendDefinitionId: string;
1556
- startValue: string | number;
1557
- endValue: string | number;
1558
- }[];
1559
- }[] | undefined;
1560
- specificTargetsSet?: boolean | undefined;
1561
- description?: string | undefined;
1562
- }, {
1563
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1564
- id: string;
1565
- name: string;
1566
- legends: {
1567
- id: string;
1568
- legendDefinitionId: string;
1569
- startValue: string | number;
1570
- endValue: string | number;
1571
- }[] | Record<string, {
1572
- id: string;
1573
- legendDefinitionId: string;
1574
- startValue: string | number;
1575
- endValue: string | number;
1576
- }[]>;
1577
- displayArrows: boolean;
1578
- highIsGood: boolean;
1579
- effectiveGap: number;
1580
- showColors: boolean;
1581
- weight: number;
1582
- label?: string | undefined;
1583
- specificTargets?: {
1584
- type: "periods" | "orgUnit";
1585
- items: string[];
1586
- legends: {
1587
- id: string;
1588
- legendDefinitionId: string;
1589
- startValue: string | number;
1590
- endValue: string | number;
1591
- }[];
1592
- }[] | undefined;
1593
- specificTargetsSet?: boolean | undefined;
1594
- description?: string | undefined;
1595
- }>, "many">;
1596
- additionalLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1597
- sharing: z.ZodObject<{
1598
- owner: z.ZodString;
1599
- external: z.ZodBoolean;
1600
- public: z.ZodString;
1601
- users: z.ZodRecord<z.ZodString, z.ZodObject<{
1602
- access: z.ZodString;
1603
- id: z.ZodString;
1604
- }, "strip", z.ZodTypeAny, {
1605
- access: string;
1606
- id: string;
1607
- }, {
1608
- access: string;
1609
- id: string;
1610
- }>>;
1611
- userGroups: z.ZodRecord<z.ZodString, z.ZodObject<{
1612
- access: z.ZodString;
1613
- id: z.ZodString;
1614
- }, "strip", z.ZodTypeAny, {
1615
- access: string;
1616
- id: string;
1617
- }, {
1618
- access: string;
1619
- id: string;
1620
- }>>;
1621
- }, "strip", z.ZodTypeAny, {
1622
- owner: string;
1623
- external: boolean;
1624
- public: string;
1625
- users: Record<string, {
1626
- access: string;
1627
- id: string;
1628
- }>;
1629
- userGroups: Record<string, {
1630
- access: string;
1631
- id: string;
1632
- }>;
1633
- }, {
1634
- owner: string;
1635
- external: boolean;
1636
- public: string;
1637
- users: Record<string, {
1638
- access: string;
1639
- id: string;
1640
- }>;
1641
- userGroups: Record<string, {
1642
- access: string;
1643
- id: string;
1644
- }>;
1645
- }>;
1646
- }, "strip", z.ZodTypeAny, {
1647
- options: {
1648
- averageColumn?: boolean | undefined;
1649
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
1650
- averageRow?: boolean | undefined;
1651
- emptyRows?: boolean | undefined;
1652
- highlightedIndicators?: boolean | undefined;
1653
- itemNumber?: boolean | undefined;
1654
- legend?: boolean | undefined;
1655
- showHierarchy?: boolean | undefined;
1656
- title?: boolean | undefined;
1657
- arrows?: boolean | undefined;
1658
- showDataInRows?: boolean | undefined;
1659
- disableExpanding?: boolean | undefined;
1660
- disablePagination?: boolean | undefined;
1661
- printMode?: boolean | undefined;
1662
- };
1663
- id: string;
1664
- highlightedIndicators: {
1665
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1666
- id: string;
1667
- name: string;
1668
- legends: {
1669
- id: string;
1670
- legendDefinitionId: string;
1671
- startValue: string | number;
1672
- endValue: string | number;
1673
- }[] | Record<string, {
1674
- id: string;
1675
- legendDefinitionId: string;
1676
- startValue: string | number;
1677
- endValue: string | number;
1678
- }[]>;
1679
- displayArrows: boolean;
1680
- highIsGood: boolean;
1681
- effectiveGap: number;
1682
- showColors: boolean;
1683
- weight: number;
1684
- label?: string | undefined;
1685
- specificTargets?: {
1686
- type: "periods" | "orgUnit";
1687
- items: string[];
1688
- legends: {
1689
- id: string;
1690
- legendDefinitionId: string;
1691
- startValue: string | number;
1692
- endValue: string | number;
1693
- }[];
1694
- }[] | undefined;
1695
- specificTargetsSet?: boolean | undefined;
1696
- description?: string | undefined;
1697
- }[];
1698
- title: string;
1699
- legendDefinitions: {
1700
- id: string;
1701
- color: string;
1702
- name: string;
1703
- isDefault?: boolean | undefined;
1704
- }[];
1705
- orgUnitSelection: {
1706
- orgUnits: {
1707
- id: string;
1708
- }[];
1709
- userOrgUnit?: boolean | undefined;
1710
- userSubUnit?: boolean | undefined;
1711
- userSubX2Unit?: boolean | undefined;
1712
- groups?: string[] | undefined;
1713
- levels?: string[] | undefined;
1714
- };
1715
- periodSelection: {
1716
- periods: {
1717
- id: string;
1718
- }[];
1719
- type?: string | undefined;
1720
- };
1721
- dataSelection: {
1722
- dataGroups: {
1723
- id: string | number;
1724
- title: string;
1725
- dataHolders: {
1726
- id: string | number;
1727
- dataSources: {
1728
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1729
- id: string;
1730
- name: string;
1731
- legends: {
1732
- id: string;
1733
- legendDefinitionId: string;
1734
- startValue: string | number;
1735
- endValue: string | number;
1736
- }[] | Record<string, {
1737
- id: string;
1738
- legendDefinitionId: string;
1739
- startValue: string | number;
1740
- endValue: string | number;
1741
- }[]>;
1742
- displayArrows: boolean;
1743
- highIsGood: boolean;
1744
- effectiveGap: number;
1745
- showColors: boolean;
1746
- weight: number;
1747
- label?: string | undefined;
1748
- specificTargets?: {
1749
- type: "periods" | "orgUnit";
1750
- items: string[];
1751
- legends: {
1752
- id: string;
1753
- legendDefinitionId: string;
1754
- startValue: string | number;
1755
- endValue: string | number;
1756
- }[];
1757
- }[] | undefined;
1758
- specificTargetsSet?: boolean | undefined;
1759
- description?: string | undefined;
1760
- }[];
1761
- }[];
1762
- style: {};
1763
- }[];
1764
- };
1765
- sharing: {
1766
- owner: string;
1767
- external: boolean;
1768
- public: string;
1769
- users: Record<string, {
1770
- access: string;
1771
- id: string;
1772
- }>;
1773
- userGroups: Record<string, {
1774
- access: string;
1775
- id: string;
1776
- }>;
1777
- };
1778
- description?: string | undefined;
1779
- subtitle?: string | undefined;
1780
- customHeader?: string | undefined;
1781
- additionalLabels?: string[] | undefined;
1782
- }, {
1783
- options: {
1784
- averageColumn?: boolean | undefined;
1785
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
1786
- averageRow?: boolean | undefined;
1787
- emptyRows?: boolean | undefined;
1788
- highlightedIndicators?: boolean | undefined;
1789
- itemNumber?: boolean | undefined;
1790
- legend?: boolean | undefined;
1791
- showHierarchy?: boolean | undefined;
1792
- title?: boolean | undefined;
1793
- arrows?: boolean | undefined;
1794
- showDataInRows?: boolean | undefined;
1795
- disableExpanding?: boolean | undefined;
1796
- disablePagination?: boolean | undefined;
1797
- printMode?: boolean | undefined;
1798
- };
1799
- id: string;
1800
- highlightedIndicators: {
1801
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1802
- id: string;
1803
- name: string;
1804
- legends: {
1805
- id: string;
1806
- legendDefinitionId: string;
1807
- startValue: string | number;
1808
- endValue: string | number;
1809
- }[] | Record<string, {
1810
- id: string;
1811
- legendDefinitionId: string;
1812
- startValue: string | number;
1813
- endValue: string | number;
1814
- }[]>;
1815
- displayArrows: boolean;
1816
- highIsGood: boolean;
1817
- effectiveGap: number;
1818
- showColors: boolean;
1819
- weight: number;
1820
- label?: string | undefined;
1821
- specificTargets?: {
1822
- type: "periods" | "orgUnit";
1823
- items: string[];
1824
- legends: {
1825
- id: string;
1826
- legendDefinitionId: string;
1827
- startValue: string | number;
1828
- endValue: string | number;
1829
- }[];
1830
- }[] | undefined;
1831
- specificTargetsSet?: boolean | undefined;
1832
- description?: string | undefined;
1833
- }[];
1834
- title: string;
1835
- legendDefinitions: {
1836
- id: string;
1837
- color: string;
1838
- name: string;
1839
- isDefault?: boolean | undefined;
1840
- }[];
1841
- orgUnitSelection: {
1842
- orgUnits: {
1843
- id: string;
1844
- }[];
1845
- userOrgUnit?: boolean | undefined;
1846
- userSubUnit?: boolean | undefined;
1847
- userSubX2Unit?: boolean | undefined;
1848
- groups?: string[] | undefined;
1849
- levels?: string[] | undefined;
1850
- };
1851
- periodSelection: {
1852
- periods: {
1853
- id: string;
1854
- }[];
1855
- type?: string | undefined;
1856
- };
1857
- dataSelection: {
1858
- dataGroups: {
1859
- id: string | number;
1860
- title: string;
1861
- dataHolders: {
1862
- id: string | number;
1863
- dataSources: {
1864
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
1865
- id: string;
1866
- name: string;
1867
- legends: {
1868
- id: string;
1869
- legendDefinitionId: string;
1870
- startValue: string | number;
1871
- endValue: string | number;
1872
- }[] | Record<string, {
1873
- id: string;
1874
- legendDefinitionId: string;
1875
- startValue: string | number;
1876
- endValue: string | number;
1877
- }[]>;
1878
- displayArrows: boolean;
1879
- highIsGood: boolean;
1880
- effectiveGap: number;
1881
- showColors: boolean;
1882
- weight: number;
1883
- label?: string | undefined;
1884
- specificTargets?: {
1885
- type: "periods" | "orgUnit";
1886
- items: string[];
1887
- legends: {
1888
- id: string;
1889
- legendDefinitionId: string;
1890
- startValue: string | number;
1891
- endValue: string | number;
1892
- }[];
1893
- }[] | undefined;
1894
- specificTargetsSet?: boolean | undefined;
1895
- description?: string | undefined;
1896
- }[];
1897
- }[];
1898
- style: {};
1899
- }[];
1900
- };
1901
- sharing: {
1902
- owner: string;
1903
- external: boolean;
1904
- public: string;
1905
- users: Record<string, {
1906
- access: string;
1907
- id: string;
1908
- }>;
1909
- userGroups: Record<string, {
1910
- access: string;
1911
- id: string;
1912
- }>;
1913
- };
1914
- description?: string | undefined;
1915
- subtitle?: string | undefined;
1916
- customHeader?: string | undefined;
1917
- additionalLabels?: string[] | undefined;
1918
- }>;
1919
- export type ScorecardConfig = z.infer<typeof scorecardConfig>;
1920
- declare const scorecardStateSchema: z.ZodObject<{
1921
- orgUnitSelection: z.ZodObject<{
1922
- userOrgUnit: z.ZodOptional<z.ZodBoolean>;
1923
- userSubUnit: z.ZodOptional<z.ZodBoolean>;
1924
- userSubX2Unit: z.ZodOptional<z.ZodBoolean>;
1925
- orgUnits: z.ZodArray<z.ZodObject<{
1926
- id: z.ZodString;
1927
- }, "strip", z.ZodTypeAny, {
1928
- id: string;
1929
- }, {
1930
- id: string;
1931
- }>, "many">;
1932
- groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1933
- levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1934
- }, "strip", z.ZodTypeAny, {
1935
- orgUnits: {
1936
- id: string;
1937
- }[];
1938
- userOrgUnit?: boolean | undefined;
1939
- userSubUnit?: boolean | undefined;
1940
- userSubX2Unit?: boolean | undefined;
1941
- groups?: string[] | undefined;
1942
- levels?: string[] | undefined;
1943
- }, {
1944
- orgUnits: {
1945
- id: string;
1946
- }[];
1947
- userOrgUnit?: boolean | undefined;
1948
- userSubUnit?: boolean | undefined;
1949
- userSubX2Unit?: boolean | undefined;
1950
- groups?: string[] | undefined;
1951
- levels?: string[] | undefined;
1952
- }>;
1953
- periodSelection: z.ZodObject<{
1954
- periods: z.ZodArray<z.ZodObject<{
1955
- id: z.ZodString;
1956
- }, "strip", z.ZodTypeAny, {
1957
- id: string;
1958
- }, {
1959
- id: string;
1960
- }>, "many">;
1961
- type: z.ZodOptional<z.ZodString>;
1962
- }, "strip", z.ZodTypeAny, {
1963
- periods: {
1964
- id: string;
1965
- }[];
1966
- type?: string | undefined;
1967
- }, {
1968
- periods: {
1969
- id: string;
1970
- }[];
1971
- type?: string | undefined;
1972
- }>;
1973
- options: z.ZodObject<{
1974
- averageColumn: z.ZodOptional<z.ZodBoolean>;
1975
- averageDisplayType: z.ZodOptional<z.ZodEnum<["ALL", "ABOVE_AVERAGE", "BELOW_AVERAGE"]>>;
1976
- averageRow: z.ZodOptional<z.ZodBoolean>;
1977
- emptyRows: z.ZodOptional<z.ZodBoolean>;
1978
- highlightedIndicators: z.ZodOptional<z.ZodBoolean>;
1979
- itemNumber: z.ZodOptional<z.ZodBoolean>;
1980
- legend: z.ZodOptional<z.ZodBoolean>;
1981
- showHierarchy: z.ZodOptional<z.ZodBoolean>;
1982
- title: z.ZodOptional<z.ZodBoolean>;
1983
- arrows: z.ZodOptional<z.ZodBoolean>;
1984
- showDataInRows: z.ZodOptional<z.ZodBoolean>;
1985
- disableExpanding: z.ZodOptional<z.ZodBoolean>;
1986
- disablePagination: z.ZodOptional<z.ZodBoolean>;
1987
- printMode: z.ZodOptional<z.ZodBoolean>;
1988
- }, "strip", z.ZodTypeAny, {
1989
- averageColumn?: boolean | undefined;
1990
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
1991
- averageRow?: boolean | undefined;
1992
- emptyRows?: boolean | undefined;
1993
- highlightedIndicators?: boolean | undefined;
1994
- itemNumber?: boolean | undefined;
1995
- legend?: boolean | undefined;
1996
- showHierarchy?: boolean | undefined;
1997
- title?: boolean | undefined;
1998
- arrows?: boolean | undefined;
1999
- showDataInRows?: boolean | undefined;
2000
- disableExpanding?: boolean | undefined;
2001
- disablePagination?: boolean | undefined;
2002
- printMode?: boolean | undefined;
2003
- }, {
2004
- averageColumn?: boolean | undefined;
2005
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
2006
- averageRow?: boolean | undefined;
2007
- emptyRows?: boolean | undefined;
2008
- highlightedIndicators?: boolean | undefined;
2009
- itemNumber?: boolean | undefined;
2010
- legend?: boolean | undefined;
2011
- showHierarchy?: boolean | undefined;
2012
- title?: boolean | undefined;
2013
- arrows?: boolean | undefined;
2014
- showDataInRows?: boolean | undefined;
2015
- disableExpanding?: boolean | undefined;
2016
- disablePagination?: boolean | undefined;
2017
- printMode?: boolean | undefined;
2018
- }>;
2019
- nested: z.ZodOptional<z.ZodBoolean>;
2020
- hasOnePeriod: z.ZodOptional<z.ZodBoolean>;
2021
- }, "strip", z.ZodTypeAny, {
2022
- options: {
2023
- averageColumn?: boolean | undefined;
2024
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
2025
- averageRow?: boolean | undefined;
2026
- emptyRows?: boolean | undefined;
2027
- highlightedIndicators?: boolean | undefined;
2028
- itemNumber?: boolean | undefined;
2029
- legend?: boolean | undefined;
2030
- showHierarchy?: boolean | undefined;
2031
- title?: boolean | undefined;
2032
- arrows?: boolean | undefined;
2033
- showDataInRows?: boolean | undefined;
2034
- disableExpanding?: boolean | undefined;
2035
- disablePagination?: boolean | undefined;
2036
- printMode?: boolean | undefined;
2037
- };
2038
- orgUnitSelection: {
2039
- orgUnits: {
2040
- id: string;
2041
- }[];
2042
- userOrgUnit?: boolean | undefined;
2043
- userSubUnit?: boolean | undefined;
2044
- userSubX2Unit?: boolean | undefined;
2045
- groups?: string[] | undefined;
2046
- levels?: string[] | undefined;
2047
- };
2048
- periodSelection: {
2049
- periods: {
2050
- id: string;
2051
- }[];
2052
- type?: string | undefined;
2053
- };
2054
- nested?: boolean | undefined;
2055
- hasOnePeriod?: boolean | undefined;
2056
- }, {
2057
- options: {
2058
- averageColumn?: boolean | undefined;
2059
- averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
2060
- averageRow?: boolean | undefined;
2061
- emptyRows?: boolean | undefined;
2062
- highlightedIndicators?: boolean | undefined;
2063
- itemNumber?: boolean | undefined;
2064
- legend?: boolean | undefined;
2065
- showHierarchy?: boolean | undefined;
2066
- title?: boolean | undefined;
2067
- arrows?: boolean | undefined;
2068
- showDataInRows?: boolean | undefined;
2069
- disableExpanding?: boolean | undefined;
2070
- disablePagination?: boolean | undefined;
2071
- printMode?: boolean | undefined;
2072
- };
2073
- orgUnitSelection: {
2074
- orgUnits: {
2075
- id: string;
2076
- }[];
2077
- userOrgUnit?: boolean | undefined;
2078
- userSubUnit?: boolean | undefined;
2079
- userSubX2Unit?: boolean | undefined;
2080
- groups?: string[] | undefined;
2081
- levels?: string[] | undefined;
2082
- };
2083
- periodSelection: {
2084
- periods: {
2085
- id: string;
2086
- }[];
2087
- type?: string | undefined;
2088
- };
2089
- nested?: boolean | undefined;
2090
- hasOnePeriod?: boolean | undefined;
2091
- }>;
2092
- export type ScorecardState = z.infer<typeof scorecardStateSchema>;
2093
- export declare const scorecardAnalyticsData: z.ZodObject<{
2094
- dx: z.ZodOptional<z.ZodString>;
2095
- pe: z.ZodOptional<z.ZodString>;
2096
- ou: z.ZodOptional<z.ZodString>;
2097
- value: z.ZodOptional<z.ZodString>;
2098
- }, "strip", z.ZodTypeAny, {
2099
- value?: string | undefined;
2100
- dx?: string | undefined;
2101
- pe?: string | undefined;
2102
- ou?: string | undefined;
2103
- }, {
2104
- value?: string | undefined;
2105
- dx?: string | undefined;
2106
- pe?: string | undefined;
2107
- ou?: string | undefined;
2108
- }>;
2109
- export type ScorecardAnalyticsData = z.infer<typeof scorecardAnalyticsData>;
2110
- export declare const scorecardTableData: z.ZodObject<{
2111
- label: z.ZodString;
2112
- dataHolder: z.ZodOptional<z.ZodObject<{
2113
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2114
- dataSources: z.ZodArray<z.ZodObject<{
2115
- id: z.ZodString;
2116
- name: z.ZodString;
2117
- label: z.ZodOptional<z.ZodString>;
2118
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
2119
- displayArrows: z.ZodBoolean;
2120
- highIsGood: z.ZodBoolean;
2121
- effectiveGap: z.ZodNumber;
2122
- showColors: z.ZodBoolean;
2123
- weight: z.ZodNumber;
2124
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
2125
- legendDefinitionId: z.ZodString;
2126
- id: z.ZodString;
2127
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2128
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2129
- }, "strip", z.ZodTypeAny, {
2130
- id: string;
2131
- legendDefinitionId: string;
2132
- startValue: string | number;
2133
- endValue: string | number;
2134
- }, {
2135
- id: string;
2136
- legendDefinitionId: string;
2137
- startValue: string | number;
2138
- endValue: string | number;
2139
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2140
- legendDefinitionId: z.ZodString;
2141
- id: z.ZodString;
2142
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2143
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2144
- }, "strip", z.ZodTypeAny, {
2145
- id: string;
2146
- legendDefinitionId: string;
2147
- startValue: string | number;
2148
- endValue: string | number;
2149
- }, {
2150
- id: string;
2151
- legendDefinitionId: string;
2152
- startValue: string | number;
2153
- endValue: string | number;
2154
- }>, "many">>]>;
2155
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2156
- type: z.ZodEnum<["periods", "orgUnit"]>;
2157
- items: z.ZodArray<z.ZodString, "many">;
2158
- legends: z.ZodArray<z.ZodObject<{
2159
- legendDefinitionId: z.ZodString;
2160
- id: z.ZodString;
2161
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2162
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2163
- }, "strip", z.ZodTypeAny, {
2164
- id: string;
2165
- legendDefinitionId: string;
2166
- startValue: string | number;
2167
- endValue: string | number;
2168
- }, {
2169
- id: string;
2170
- legendDefinitionId: string;
2171
- startValue: string | number;
2172
- endValue: string | number;
2173
- }>, "many">;
2174
- }, "strip", z.ZodTypeAny, {
2175
- type: "periods" | "orgUnit";
2176
- items: string[];
2177
- legends: {
2178
- id: string;
2179
- legendDefinitionId: string;
2180
- startValue: string | number;
2181
- endValue: string | number;
2182
- }[];
2183
- }, {
2184
- type: "periods" | "orgUnit";
2185
- items: string[];
2186
- legends: {
2187
- id: string;
2188
- legendDefinitionId: string;
2189
- startValue: string | number;
2190
- endValue: string | number;
2191
- }[];
2192
- }>, "many">>;
2193
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
2194
- description: z.ZodOptional<z.ZodString>;
2195
- }, "strip", z.ZodTypeAny, {
2196
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2197
- id: string;
2198
- name: string;
2199
- legends: {
2200
- id: string;
2201
- legendDefinitionId: string;
2202
- startValue: string | number;
2203
- endValue: string | number;
2204
- }[] | Record<string, {
2205
- id: string;
2206
- legendDefinitionId: string;
2207
- startValue: string | number;
2208
- endValue: string | number;
2209
- }[]>;
2210
- displayArrows: boolean;
2211
- highIsGood: boolean;
2212
- effectiveGap: number;
2213
- showColors: boolean;
2214
- weight: number;
2215
- label?: string | undefined;
2216
- specificTargets?: {
2217
- type: "periods" | "orgUnit";
2218
- items: string[];
2219
- legends: {
2220
- id: string;
2221
- legendDefinitionId: string;
2222
- startValue: string | number;
2223
- endValue: string | number;
2224
- }[];
2225
- }[] | undefined;
2226
- specificTargetsSet?: boolean | undefined;
2227
- description?: string | undefined;
2228
- }, {
2229
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2230
- id: string;
2231
- name: string;
2232
- legends: {
2233
- id: string;
2234
- legendDefinitionId: string;
2235
- startValue: string | number;
2236
- endValue: string | number;
2237
- }[] | Record<string, {
2238
- id: string;
2239
- legendDefinitionId: string;
2240
- startValue: string | number;
2241
- endValue: string | number;
2242
- }[]>;
2243
- displayArrows: boolean;
2244
- highIsGood: boolean;
2245
- effectiveGap: number;
2246
- showColors: boolean;
2247
- weight: number;
2248
- label?: string | undefined;
2249
- specificTargets?: {
2250
- type: "periods" | "orgUnit";
2251
- items: string[];
2252
- legends: {
2253
- id: string;
2254
- legendDefinitionId: string;
2255
- startValue: string | number;
2256
- endValue: string | number;
2257
- }[];
2258
- }[] | undefined;
2259
- specificTargetsSet?: boolean | undefined;
2260
- description?: string | undefined;
2261
- }>, "many">;
2262
- }, "strip", z.ZodTypeAny, {
2263
- id: string | number;
2264
- dataSources: {
2265
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2266
- id: string;
2267
- name: string;
2268
- legends: {
2269
- id: string;
2270
- legendDefinitionId: string;
2271
- startValue: string | number;
2272
- endValue: string | number;
2273
- }[] | Record<string, {
2274
- id: string;
2275
- legendDefinitionId: string;
2276
- startValue: string | number;
2277
- endValue: string | number;
2278
- }[]>;
2279
- displayArrows: boolean;
2280
- highIsGood: boolean;
2281
- effectiveGap: number;
2282
- showColors: boolean;
2283
- weight: number;
2284
- label?: string | undefined;
2285
- specificTargets?: {
2286
- type: "periods" | "orgUnit";
2287
- items: string[];
2288
- legends: {
2289
- id: string;
2290
- legendDefinitionId: string;
2291
- startValue: string | number;
2292
- endValue: string | number;
2293
- }[];
2294
- }[] | undefined;
2295
- specificTargetsSet?: boolean | undefined;
2296
- description?: string | undefined;
2297
- }[];
2298
- }, {
2299
- id: string | number;
2300
- dataSources: {
2301
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2302
- id: string;
2303
- name: string;
2304
- legends: {
2305
- id: string;
2306
- legendDefinitionId: string;
2307
- startValue: string | number;
2308
- endValue: string | number;
2309
- }[] | Record<string, {
2310
- id: string;
2311
- legendDefinitionId: string;
2312
- startValue: string | number;
2313
- endValue: string | number;
2314
- }[]>;
2315
- displayArrows: boolean;
2316
- highIsGood: boolean;
2317
- effectiveGap: number;
2318
- showColors: boolean;
2319
- weight: number;
2320
- label?: string | undefined;
2321
- specificTargets?: {
2322
- type: "periods" | "orgUnit";
2323
- items: string[];
2324
- legends: {
2325
- id: string;
2326
- legendDefinitionId: string;
2327
- startValue: string | number;
2328
- endValue: string | number;
2329
- }[];
2330
- }[] | undefined;
2331
- specificTargetsSet?: boolean | undefined;
2332
- description?: string | undefined;
2333
- }[];
2334
- }>>;
2335
- orgUnit: z.ZodOptional<z.ZodObject<{
2336
- uid: z.ZodString;
2337
- name: z.ZodString;
2338
- hierarchy: z.ZodString;
2339
- }, "strip", z.ZodTypeAny, {
2340
- name: string;
2341
- uid: string;
2342
- hierarchy: string;
2343
- }, {
2344
- name: string;
2345
- uid: string;
2346
- hierarchy: string;
2347
- }>>;
2348
- expand: z.ZodOptional<z.ZodBoolean>;
2349
- }, "strip", z.ZodTypeAny, {
2350
- label: string;
2351
- orgUnit?: {
2352
- name: string;
2353
- uid: string;
2354
- hierarchy: string;
2355
- } | undefined;
2356
- dataHolder?: {
2357
- id: string | number;
2358
- dataSources: {
2359
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2360
- id: string;
2361
- name: string;
2362
- legends: {
2363
- id: string;
2364
- legendDefinitionId: string;
2365
- startValue: string | number;
2366
- endValue: string | number;
2367
- }[] | Record<string, {
2368
- id: string;
2369
- legendDefinitionId: string;
2370
- startValue: string | number;
2371
- endValue: string | number;
2372
- }[]>;
2373
- displayArrows: boolean;
2374
- highIsGood: boolean;
2375
- effectiveGap: number;
2376
- showColors: boolean;
2377
- weight: number;
2378
- label?: string | undefined;
2379
- specificTargets?: {
2380
- type: "periods" | "orgUnit";
2381
- items: string[];
2382
- legends: {
2383
- id: string;
2384
- legendDefinitionId: string;
2385
- startValue: string | number;
2386
- endValue: string | number;
2387
- }[];
2388
- }[] | undefined;
2389
- specificTargetsSet?: boolean | undefined;
2390
- description?: string | undefined;
2391
- }[];
2392
- } | undefined;
2393
- expand?: boolean | undefined;
2394
- }, {
2395
- label: string;
2396
- orgUnit?: {
2397
- name: string;
2398
- uid: string;
2399
- hierarchy: string;
2400
- } | undefined;
2401
- dataHolder?: {
2402
- id: string | number;
2403
- dataSources: {
2404
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2405
- id: string;
2406
- name: string;
2407
- legends: {
2408
- id: string;
2409
- legendDefinitionId: string;
2410
- startValue: string | number;
2411
- endValue: string | number;
2412
- }[] | Record<string, {
2413
- id: string;
2414
- legendDefinitionId: string;
2415
- startValue: string | number;
2416
- endValue: string | number;
2417
- }[]>;
2418
- displayArrows: boolean;
2419
- highIsGood: boolean;
2420
- effectiveGap: number;
2421
- showColors: boolean;
2422
- weight: number;
2423
- label?: string | undefined;
2424
- specificTargets?: {
2425
- type: "periods" | "orgUnit";
2426
- items: string[];
2427
- legends: {
2428
- id: string;
2429
- legendDefinitionId: string;
2430
- startValue: string | number;
2431
- endValue: string | number;
2432
- }[];
2433
- }[] | undefined;
2434
- specificTargetsSet?: boolean | undefined;
2435
- description?: string | undefined;
2436
- }[];
2437
- } | undefined;
2438
- expand?: boolean | undefined;
2439
- }>;
2440
- export type ScorecardTableData = z.infer<typeof scorecardTableData> & RowData;
2441
- export declare const scorecardTableCellConfig: z.ZodObject<{
2442
- dataSources: z.ZodArray<z.ZodObject<{
2443
- id: z.ZodString;
2444
- name: z.ZodString;
2445
- label: z.ZodOptional<z.ZodString>;
2446
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
2447
- displayArrows: z.ZodBoolean;
2448
- highIsGood: z.ZodBoolean;
2449
- effectiveGap: z.ZodNumber;
2450
- showColors: z.ZodBoolean;
2451
- weight: z.ZodNumber;
2452
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
2453
- legendDefinitionId: z.ZodString;
2454
- id: z.ZodString;
2455
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2456
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2457
- }, "strip", z.ZodTypeAny, {
2458
- id: string;
2459
- legendDefinitionId: string;
2460
- startValue: string | number;
2461
- endValue: string | number;
2462
- }, {
2463
- id: string;
2464
- legendDefinitionId: string;
2465
- startValue: string | number;
2466
- endValue: string | number;
2467
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2468
- legendDefinitionId: z.ZodString;
2469
- id: z.ZodString;
2470
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2471
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2472
- }, "strip", z.ZodTypeAny, {
2473
- id: string;
2474
- legendDefinitionId: string;
2475
- startValue: string | number;
2476
- endValue: string | number;
2477
- }, {
2478
- id: string;
2479
- legendDefinitionId: string;
2480
- startValue: string | number;
2481
- endValue: string | number;
2482
- }>, "many">>]>;
2483
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2484
- type: z.ZodEnum<["periods", "orgUnit"]>;
2485
- items: z.ZodArray<z.ZodString, "many">;
2486
- legends: z.ZodArray<z.ZodObject<{
2487
- legendDefinitionId: z.ZodString;
2488
- id: z.ZodString;
2489
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2490
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2491
- }, "strip", z.ZodTypeAny, {
2492
- id: string;
2493
- legendDefinitionId: string;
2494
- startValue: string | number;
2495
- endValue: string | number;
2496
- }, {
2497
- id: string;
2498
- legendDefinitionId: string;
2499
- startValue: string | number;
2500
- endValue: string | number;
2501
- }>, "many">;
2502
- }, "strip", z.ZodTypeAny, {
2503
- type: "periods" | "orgUnit";
2504
- items: string[];
2505
- legends: {
2506
- id: string;
2507
- legendDefinitionId: string;
2508
- startValue: string | number;
2509
- endValue: string | number;
2510
- }[];
2511
- }, {
2512
- type: "periods" | "orgUnit";
2513
- items: string[];
2514
- legends: {
2515
- id: string;
2516
- legendDefinitionId: string;
2517
- startValue: string | number;
2518
- endValue: string | number;
2519
- }[];
2520
- }>, "many">>;
2521
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
2522
- description: z.ZodOptional<z.ZodString>;
2523
- }, "strip", z.ZodTypeAny, {
2524
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2525
- id: string;
2526
- name: string;
2527
- legends: {
2528
- id: string;
2529
- legendDefinitionId: string;
2530
- startValue: string | number;
2531
- endValue: string | number;
2532
- }[] | Record<string, {
2533
- id: string;
2534
- legendDefinitionId: string;
2535
- startValue: string | number;
2536
- endValue: string | number;
2537
- }[]>;
2538
- displayArrows: boolean;
2539
- highIsGood: boolean;
2540
- effectiveGap: number;
2541
- showColors: boolean;
2542
- weight: number;
2543
- label?: string | undefined;
2544
- specificTargets?: {
2545
- type: "periods" | "orgUnit";
2546
- items: string[];
2547
- legends: {
2548
- id: string;
2549
- legendDefinitionId: string;
2550
- startValue: string | number;
2551
- endValue: string | number;
2552
- }[];
2553
- }[] | undefined;
2554
- specificTargetsSet?: boolean | undefined;
2555
- description?: string | undefined;
2556
- }, {
2557
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2558
- id: string;
2559
- name: string;
2560
- legends: {
2561
- id: string;
2562
- legendDefinitionId: string;
2563
- startValue: string | number;
2564
- endValue: string | number;
2565
- }[] | Record<string, {
2566
- id: string;
2567
- legendDefinitionId: string;
2568
- startValue: string | number;
2569
- endValue: string | number;
2570
- }[]>;
2571
- displayArrows: boolean;
2572
- highIsGood: boolean;
2573
- effectiveGap: number;
2574
- showColors: boolean;
2575
- weight: number;
2576
- label?: string | undefined;
2577
- specificTargets?: {
2578
- type: "periods" | "orgUnit";
2579
- items: string[];
2580
- legends: {
2581
- id: string;
2582
- legendDefinitionId: string;
2583
- startValue: string | number;
2584
- endValue: string | number;
2585
- }[];
2586
- }[] | undefined;
2587
- specificTargetsSet?: boolean | undefined;
2588
- description?: string | undefined;
2589
- }>, "many">;
2590
- orgUnit: z.ZodObject<{
2591
- uid: z.ZodString;
2592
- name: z.ZodString;
2593
- hierarchy: z.ZodString;
2594
- }, "strip", z.ZodTypeAny, {
2595
- name: string;
2596
- uid: string;
2597
- hierarchy: string;
2598
- }, {
2599
- name: string;
2600
- uid: string;
2601
- hierarchy: string;
2602
- }>;
2603
- previousPeriod: z.ZodOptional<z.ZodString>;
2604
- currentPeriod: z.ZodOptional<z.ZodString>;
2605
- }, "strip", z.ZodTypeAny, {
2606
- orgUnit: {
2607
- name: string;
2608
- uid: string;
2609
- hierarchy: string;
2610
- };
2611
- dataSources: {
2612
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2613
- id: string;
2614
- name: string;
2615
- legends: {
2616
- id: string;
2617
- legendDefinitionId: string;
2618
- startValue: string | number;
2619
- endValue: string | number;
2620
- }[] | Record<string, {
2621
- id: string;
2622
- legendDefinitionId: string;
2623
- startValue: string | number;
2624
- endValue: string | number;
2625
- }[]>;
2626
- displayArrows: boolean;
2627
- highIsGood: boolean;
2628
- effectiveGap: number;
2629
- showColors: boolean;
2630
- weight: number;
2631
- label?: string | undefined;
2632
- specificTargets?: {
2633
- type: "periods" | "orgUnit";
2634
- items: string[];
2635
- legends: {
2636
- id: string;
2637
- legendDefinitionId: string;
2638
- startValue: string | number;
2639
- endValue: string | number;
2640
- }[];
2641
- }[] | undefined;
2642
- specificTargetsSet?: boolean | undefined;
2643
- description?: string | undefined;
2644
- }[];
2645
- previousPeriod?: string | undefined;
2646
- currentPeriod?: string | undefined;
2647
- }, {
2648
- orgUnit: {
2649
- name: string;
2650
- uid: string;
2651
- hierarchy: string;
2652
- };
2653
- dataSources: {
2654
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2655
- id: string;
2656
- name: string;
2657
- legends: {
2658
- id: string;
2659
- legendDefinitionId: string;
2660
- startValue: string | number;
2661
- endValue: string | number;
2662
- }[] | Record<string, {
2663
- id: string;
2664
- legendDefinitionId: string;
2665
- startValue: string | number;
2666
- endValue: string | number;
2667
- }[]>;
2668
- displayArrows: boolean;
2669
- highIsGood: boolean;
2670
- effectiveGap: number;
2671
- showColors: boolean;
2672
- weight: number;
2673
- label?: string | undefined;
2674
- specificTargets?: {
2675
- type: "periods" | "orgUnit";
2676
- items: string[];
2677
- legends: {
2678
- id: string;
2679
- legendDefinitionId: string;
2680
- startValue: string | number;
2681
- endValue: string | number;
2682
- }[];
2683
- }[] | undefined;
2684
- specificTargetsSet?: boolean | undefined;
2685
- description?: string | undefined;
2686
- }[];
2687
- previousPeriod?: string | undefined;
2688
- currentPeriod?: string | undefined;
2689
- }>;
2690
- export type ScorecardTableCellConfig = z.infer<typeof scorecardTableCellConfig>;
2691
- export declare const scorecardTableAverageCellConfig: z.ZodObject<{
2692
- dataHolder: z.ZodOptional<z.ZodObject<{
2693
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
2694
- dataSources: z.ZodArray<z.ZodObject<{
2695
- id: z.ZodString;
2696
- name: z.ZodString;
2697
- label: z.ZodOptional<z.ZodString>;
2698
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
2699
- displayArrows: z.ZodBoolean;
2700
- highIsGood: z.ZodBoolean;
2701
- effectiveGap: z.ZodNumber;
2702
- showColors: z.ZodBoolean;
2703
- weight: z.ZodNumber;
2704
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
2705
- legendDefinitionId: z.ZodString;
2706
- id: z.ZodString;
2707
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2708
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2709
- }, "strip", z.ZodTypeAny, {
2710
- id: string;
2711
- legendDefinitionId: string;
2712
- startValue: string | number;
2713
- endValue: string | number;
2714
- }, {
2715
- id: string;
2716
- legendDefinitionId: string;
2717
- startValue: string | number;
2718
- endValue: string | number;
2719
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2720
- legendDefinitionId: z.ZodString;
2721
- id: z.ZodString;
2722
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2723
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2724
- }, "strip", z.ZodTypeAny, {
2725
- id: string;
2726
- legendDefinitionId: string;
2727
- startValue: string | number;
2728
- endValue: string | number;
2729
- }, {
2730
- id: string;
2731
- legendDefinitionId: string;
2732
- startValue: string | number;
2733
- endValue: string | number;
2734
- }>, "many">>]>;
2735
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2736
- type: z.ZodEnum<["periods", "orgUnit"]>;
2737
- items: z.ZodArray<z.ZodString, "many">;
2738
- legends: z.ZodArray<z.ZodObject<{
2739
- legendDefinitionId: z.ZodString;
2740
- id: z.ZodString;
2741
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2742
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2743
- }, "strip", z.ZodTypeAny, {
2744
- id: string;
2745
- legendDefinitionId: string;
2746
- startValue: string | number;
2747
- endValue: string | number;
2748
- }, {
2749
- id: string;
2750
- legendDefinitionId: string;
2751
- startValue: string | number;
2752
- endValue: string | number;
2753
- }>, "many">;
2754
- }, "strip", z.ZodTypeAny, {
2755
- type: "periods" | "orgUnit";
2756
- items: string[];
2757
- legends: {
2758
- id: string;
2759
- legendDefinitionId: string;
2760
- startValue: string | number;
2761
- endValue: string | number;
2762
- }[];
2763
- }, {
2764
- type: "periods" | "orgUnit";
2765
- items: string[];
2766
- legends: {
2767
- id: string;
2768
- legendDefinitionId: string;
2769
- startValue: string | number;
2770
- endValue: string | number;
2771
- }[];
2772
- }>, "many">>;
2773
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
2774
- description: z.ZodOptional<z.ZodString>;
2775
- }, "strip", z.ZodTypeAny, {
2776
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2777
- id: string;
2778
- name: string;
2779
- legends: {
2780
- id: string;
2781
- legendDefinitionId: string;
2782
- startValue: string | number;
2783
- endValue: string | number;
2784
- }[] | Record<string, {
2785
- id: string;
2786
- legendDefinitionId: string;
2787
- startValue: string | number;
2788
- endValue: string | number;
2789
- }[]>;
2790
- displayArrows: boolean;
2791
- highIsGood: boolean;
2792
- effectiveGap: number;
2793
- showColors: boolean;
2794
- weight: number;
2795
- label?: string | undefined;
2796
- specificTargets?: {
2797
- type: "periods" | "orgUnit";
2798
- items: string[];
2799
- legends: {
2800
- id: string;
2801
- legendDefinitionId: string;
2802
- startValue: string | number;
2803
- endValue: string | number;
2804
- }[];
2805
- }[] | undefined;
2806
- specificTargetsSet?: boolean | undefined;
2807
- description?: string | undefined;
2808
- }, {
2809
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2810
- id: string;
2811
- name: string;
2812
- legends: {
2813
- id: string;
2814
- legendDefinitionId: string;
2815
- startValue: string | number;
2816
- endValue: string | number;
2817
- }[] | Record<string, {
2818
- id: string;
2819
- legendDefinitionId: string;
2820
- startValue: string | number;
2821
- endValue: string | number;
2822
- }[]>;
2823
- displayArrows: boolean;
2824
- highIsGood: boolean;
2825
- effectiveGap: number;
2826
- showColors: boolean;
2827
- weight: number;
2828
- label?: string | undefined;
2829
- specificTargets?: {
2830
- type: "periods" | "orgUnit";
2831
- items: string[];
2832
- legends: {
2833
- id: string;
2834
- legendDefinitionId: string;
2835
- startValue: string | number;
2836
- endValue: string | number;
2837
- }[];
2838
- }[] | undefined;
2839
- specificTargetsSet?: boolean | undefined;
2840
- description?: string | undefined;
2841
- }>, "many">;
2842
- }, "strip", z.ZodTypeAny, {
2843
- id: string | number;
2844
- dataSources: {
2845
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2846
- id: string;
2847
- name: string;
2848
- legends: {
2849
- id: string;
2850
- legendDefinitionId: string;
2851
- startValue: string | number;
2852
- endValue: string | number;
2853
- }[] | Record<string, {
2854
- id: string;
2855
- legendDefinitionId: string;
2856
- startValue: string | number;
2857
- endValue: string | number;
2858
- }[]>;
2859
- displayArrows: boolean;
2860
- highIsGood: boolean;
2861
- effectiveGap: number;
2862
- showColors: boolean;
2863
- weight: number;
2864
- label?: string | undefined;
2865
- specificTargets?: {
2866
- type: "periods" | "orgUnit";
2867
- items: string[];
2868
- legends: {
2869
- id: string;
2870
- legendDefinitionId: string;
2871
- startValue: string | number;
2872
- endValue: string | number;
2873
- }[];
2874
- }[] | undefined;
2875
- specificTargetsSet?: boolean | undefined;
2876
- description?: string | undefined;
2877
- }[];
2878
- }, {
2879
- id: string | number;
2880
- dataSources: {
2881
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2882
- id: string;
2883
- name: string;
2884
- legends: {
2885
- id: string;
2886
- legendDefinitionId: string;
2887
- startValue: string | number;
2888
- endValue: string | number;
2889
- }[] | Record<string, {
2890
- id: string;
2891
- legendDefinitionId: string;
2892
- startValue: string | number;
2893
- endValue: string | number;
2894
- }[]>;
2895
- displayArrows: boolean;
2896
- highIsGood: boolean;
2897
- effectiveGap: number;
2898
- showColors: boolean;
2899
- weight: number;
2900
- label?: string | undefined;
2901
- specificTargets?: {
2902
- type: "periods" | "orgUnit";
2903
- items: string[];
2904
- legends: {
2905
- id: string;
2906
- legendDefinitionId: string;
2907
- startValue: string | number;
2908
- endValue: string | number;
2909
- }[];
2910
- }[] | undefined;
2911
- specificTargetsSet?: boolean | undefined;
2912
- description?: string | undefined;
2913
- }[];
2914
- }>>;
2915
- orgUnit: z.ZodOptional<z.ZodObject<{
2916
- uid: z.ZodString;
2917
- name: z.ZodString;
2918
- hierarchy: z.ZodString;
2919
- }, "strip", z.ZodTypeAny, {
2920
- name: string;
2921
- uid: string;
2922
- hierarchy: string;
2923
- }, {
2924
- name: string;
2925
- uid: string;
2926
- hierarchy: string;
2927
- }>>;
2928
- }, "strip", z.ZodTypeAny, {
2929
- orgUnit?: {
2930
- name: string;
2931
- uid: string;
2932
- hierarchy: string;
2933
- } | undefined;
2934
- dataHolder?: {
2935
- id: string | number;
2936
- dataSources: {
2937
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2938
- id: string;
2939
- name: string;
2940
- legends: {
2941
- id: string;
2942
- legendDefinitionId: string;
2943
- startValue: string | number;
2944
- endValue: string | number;
2945
- }[] | Record<string, {
2946
- id: string;
2947
- legendDefinitionId: string;
2948
- startValue: string | number;
2949
- endValue: string | number;
2950
- }[]>;
2951
- displayArrows: boolean;
2952
- highIsGood: boolean;
2953
- effectiveGap: number;
2954
- showColors: boolean;
2955
- weight: number;
2956
- label?: string | undefined;
2957
- specificTargets?: {
2958
- type: "periods" | "orgUnit";
2959
- items: string[];
2960
- legends: {
2961
- id: string;
2962
- legendDefinitionId: string;
2963
- startValue: string | number;
2964
- endValue: string | number;
2965
- }[];
2966
- }[] | undefined;
2967
- specificTargetsSet?: boolean | undefined;
2968
- description?: string | undefined;
2969
- }[];
2970
- } | undefined;
2971
- }, {
2972
- orgUnit?: {
2973
- name: string;
2974
- uid: string;
2975
- hierarchy: string;
2976
- } | undefined;
2977
- dataHolder?: {
2978
- id: string | number;
2979
- dataSources: {
2980
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
2981
- id: string;
2982
- name: string;
2983
- legends: {
2984
- id: string;
2985
- legendDefinitionId: string;
2986
- startValue: string | number;
2987
- endValue: string | number;
2988
- }[] | Record<string, {
2989
- id: string;
2990
- legendDefinitionId: string;
2991
- startValue: string | number;
2992
- endValue: string | number;
2993
- }[]>;
2994
- displayArrows: boolean;
2995
- highIsGood: boolean;
2996
- effectiveGap: number;
2997
- showColors: boolean;
2998
- weight: number;
2999
- label?: string | undefined;
3000
- specificTargets?: {
3001
- type: "periods" | "orgUnit";
3002
- items: string[];
3003
- legends: {
3004
- id: string;
3005
- legendDefinitionId: string;
3006
- startValue: string | number;
3007
- endValue: string | number;
3008
- }[];
3009
- }[] | undefined;
3010
- specificTargetsSet?: boolean | undefined;
3011
- description?: string | undefined;
3012
- }[];
3013
- } | undefined;
3014
- }>;
3015
- export type ScorecardTableAverageCellConfig = z.infer<typeof scorecardTableAverageCellConfig>;
3016
- export declare const scorecardCellDataSchema: z.ZodObject<z.objectUtil.extendShape<{
3017
- id: z.ZodString;
3018
- name: z.ZodString;
3019
- label: z.ZodOptional<z.ZodString>;
3020
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
3021
- displayArrows: z.ZodBoolean;
3022
- highIsGood: z.ZodBoolean;
3023
- effectiveGap: z.ZodNumber;
3024
- showColors: z.ZodBoolean;
3025
- weight: z.ZodNumber;
3026
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
3027
- legendDefinitionId: z.ZodString;
3028
- id: z.ZodString;
3029
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3030
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3031
- }, "strip", z.ZodTypeAny, {
3032
- id: string;
3033
- legendDefinitionId: string;
3034
- startValue: string | number;
3035
- endValue: string | number;
3036
- }, {
3037
- id: string;
3038
- legendDefinitionId: string;
3039
- startValue: string | number;
3040
- endValue: string | number;
3041
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3042
- legendDefinitionId: z.ZodString;
3043
- id: z.ZodString;
3044
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3045
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3046
- }, "strip", z.ZodTypeAny, {
3047
- id: string;
3048
- legendDefinitionId: string;
3049
- startValue: string | number;
3050
- endValue: string | number;
3051
- }, {
3052
- id: string;
3053
- legendDefinitionId: string;
3054
- startValue: string | number;
3055
- endValue: string | number;
3056
- }>, "many">>]>;
3057
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3058
- type: z.ZodEnum<["periods", "orgUnit"]>;
3059
- items: z.ZodArray<z.ZodString, "many">;
3060
- legends: z.ZodArray<z.ZodObject<{
3061
- legendDefinitionId: z.ZodString;
3062
- id: z.ZodString;
3063
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3064
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3065
- }, "strip", z.ZodTypeAny, {
3066
- id: string;
3067
- legendDefinitionId: string;
3068
- startValue: string | number;
3069
- endValue: string | number;
3070
- }, {
3071
- id: string;
3072
- legendDefinitionId: string;
3073
- startValue: string | number;
3074
- endValue: string | number;
3075
- }>, "many">;
3076
- }, "strip", z.ZodTypeAny, {
3077
- type: "periods" | "orgUnit";
3078
- items: string[];
3079
- legends: {
3080
- id: string;
3081
- legendDefinitionId: string;
3082
- startValue: string | number;
3083
- endValue: string | number;
3084
- }[];
3085
- }, {
3086
- type: "periods" | "orgUnit";
3087
- items: string[];
3088
- legends: {
3089
- id: string;
3090
- legendDefinitionId: string;
3091
- startValue: string | number;
3092
- endValue: string | number;
3093
- }[];
3094
- }>, "many">>;
3095
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
3096
- description: z.ZodOptional<z.ZodString>;
3097
- }, {
3098
- data: z.ZodObject<{
3099
- previous: z.ZodOptional<z.ZodNumber>;
3100
- current: z.ZodOptional<z.ZodNumber>;
3101
- }, "strip", z.ZodTypeAny, {
3102
- previous?: number | undefined;
3103
- current?: number | undefined;
3104
- }, {
3105
- previous?: number | undefined;
3106
- current?: number | undefined;
3107
- }>;
3108
- }>, "strip", z.ZodTypeAny, {
3109
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
3110
- id: string;
3111
- name: string;
3112
- legends: {
3113
- id: string;
3114
- legendDefinitionId: string;
3115
- startValue: string | number;
3116
- endValue: string | number;
3117
- }[] | Record<string, {
3118
- id: string;
3119
- legendDefinitionId: string;
3120
- startValue: string | number;
3121
- endValue: string | number;
3122
- }[]>;
3123
- displayArrows: boolean;
3124
- highIsGood: boolean;
3125
- effectiveGap: number;
3126
- showColors: boolean;
3127
- weight: number;
3128
- data: {
3129
- previous?: number | undefined;
3130
- current?: number | undefined;
3131
- };
3132
- label?: string | undefined;
3133
- specificTargets?: {
3134
- type: "periods" | "orgUnit";
3135
- items: string[];
3136
- legends: {
3137
- id: string;
3138
- legendDefinitionId: string;
3139
- startValue: string | number;
3140
- endValue: string | number;
3141
- }[];
3142
- }[] | undefined;
3143
- specificTargetsSet?: boolean | undefined;
3144
- description?: string | undefined;
3145
- }, {
3146
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
3147
- id: string;
3148
- name: string;
3149
- legends: {
3150
- id: string;
3151
- legendDefinitionId: string;
3152
- startValue: string | number;
3153
- endValue: string | number;
3154
- }[] | Record<string, {
3155
- id: string;
3156
- legendDefinitionId: string;
3157
- startValue: string | number;
3158
- endValue: string | number;
3159
- }[]>;
3160
- displayArrows: boolean;
3161
- highIsGood: boolean;
3162
- effectiveGap: number;
3163
- showColors: boolean;
3164
- weight: number;
3165
- data: {
3166
- previous?: number | undefined;
3167
- current?: number | undefined;
3168
- };
3169
- label?: string | undefined;
3170
- specificTargets?: {
3171
- type: "periods" | "orgUnit";
3172
- items: string[];
3173
- legends: {
3174
- id: string;
3175
- legendDefinitionId: string;
3176
- startValue: string | number;
3177
- endValue: string | number;
3178
- }[];
3179
- }[] | undefined;
3180
- specificTargetsSet?: boolean | undefined;
3181
- description?: string | undefined;
3182
- }>;
3183
- export type ScorecardCellData = z.infer<typeof scorecardCellDataSchema>;
3184
- export declare const scorecardAverageCellDataSchema: z.ZodObject<z.objectUtil.extendShape<{
3185
- id: z.ZodString;
3186
- name: z.ZodString;
3187
- label: z.ZodOptional<z.ZodString>;
3188
- type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
3189
- displayArrows: z.ZodBoolean;
3190
- highIsGood: z.ZodBoolean;
3191
- effectiveGap: z.ZodNumber;
3192
- showColors: z.ZodBoolean;
3193
- weight: z.ZodNumber;
3194
- legends: z.ZodUnion<[z.ZodArray<z.ZodObject<{
3195
- legendDefinitionId: z.ZodString;
3196
- id: z.ZodString;
3197
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3198
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3199
- }, "strip", z.ZodTypeAny, {
3200
- id: string;
3201
- legendDefinitionId: string;
3202
- startValue: string | number;
3203
- endValue: string | number;
3204
- }, {
3205
- id: string;
3206
- legendDefinitionId: string;
3207
- startValue: string | number;
3208
- endValue: string | number;
3209
- }>, "many">, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3210
- legendDefinitionId: z.ZodString;
3211
- id: z.ZodString;
3212
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3213
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3214
- }, "strip", z.ZodTypeAny, {
3215
- id: string;
3216
- legendDefinitionId: string;
3217
- startValue: string | number;
3218
- endValue: string | number;
3219
- }, {
3220
- id: string;
3221
- legendDefinitionId: string;
3222
- startValue: string | number;
3223
- endValue: string | number;
3224
- }>, "many">>]>;
3225
- specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
3226
- type: z.ZodEnum<["periods", "orgUnit"]>;
3227
- items: z.ZodArray<z.ZodString, "many">;
3228
- legends: z.ZodArray<z.ZodObject<{
3229
- legendDefinitionId: z.ZodString;
3230
- id: z.ZodString;
3231
- startValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3232
- endValue: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
3233
- }, "strip", z.ZodTypeAny, {
3234
- id: string;
3235
- legendDefinitionId: string;
3236
- startValue: string | number;
3237
- endValue: string | number;
3238
- }, {
3239
- id: string;
3240
- legendDefinitionId: string;
3241
- startValue: string | number;
3242
- endValue: string | number;
3243
- }>, "many">;
3244
- }, "strip", z.ZodTypeAny, {
3245
- type: "periods" | "orgUnit";
3246
- items: string[];
3247
- legends: {
3248
- id: string;
3249
- legendDefinitionId: string;
3250
- startValue: string | number;
3251
- endValue: string | number;
3252
- }[];
3253
- }, {
3254
- type: "periods" | "orgUnit";
3255
- items: string[];
3256
- legends: {
3257
- id: string;
3258
- legendDefinitionId: string;
3259
- startValue: string | number;
3260
- endValue: string | number;
3261
- }[];
3262
- }>, "many">>;
3263
- specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
3264
- description: z.ZodOptional<z.ZodString>;
3265
- }, {
3266
- data: z.ZodObject<{
3267
- average: z.ZodOptional<z.ZodNumber>;
3268
- }, "strip", z.ZodTypeAny, {
3269
- average?: number | undefined;
3270
- }, {
3271
- average?: number | undefined;
3272
- }>;
3273
- }>, "strip", z.ZodTypeAny, {
3274
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
3275
- id: string;
3276
- name: string;
3277
- legends: {
3278
- id: string;
3279
- legendDefinitionId: string;
3280
- startValue: string | number;
3281
- endValue: string | number;
3282
- }[] | Record<string, {
3283
- id: string;
3284
- legendDefinitionId: string;
3285
- startValue: string | number;
3286
- endValue: string | number;
3287
- }[]>;
3288
- displayArrows: boolean;
3289
- highIsGood: boolean;
3290
- effectiveGap: number;
3291
- showColors: boolean;
3292
- weight: number;
3293
- data: {
3294
- average?: number | undefined;
3295
- };
3296
- label?: string | undefined;
3297
- specificTargets?: {
3298
- type: "periods" | "orgUnit";
3299
- items: string[];
3300
- legends: {
3301
- id: string;
3302
- legendDefinitionId: string;
3303
- startValue: string | number;
3304
- endValue: string | number;
3305
- }[];
3306
- }[] | undefined;
3307
- specificTargetsSet?: boolean | undefined;
3308
- description?: string | undefined;
3309
- }, {
3310
- type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
3311
- id: string;
3312
- name: string;
3313
- legends: {
3314
- id: string;
3315
- legendDefinitionId: string;
3316
- startValue: string | number;
3317
- endValue: string | number;
3318
- }[] | Record<string, {
3319
- id: string;
3320
- legendDefinitionId: string;
3321
- startValue: string | number;
3322
- endValue: string | number;
3323
- }[]>;
3324
- displayArrows: boolean;
3325
- highIsGood: boolean;
3326
- effectiveGap: number;
3327
- showColors: boolean;
3328
- weight: number;
3329
- data: {
3330
- average?: number | undefined;
3331
- };
3332
- label?: string | undefined;
3333
- specificTargets?: {
3334
- type: "periods" | "orgUnit";
3335
- items: string[];
3336
- legends: {
3337
- id: string;
3338
- legendDefinitionId: string;
3339
- startValue: string | number;
3340
- endValue: string | number;
3341
- }[];
3342
- }[] | undefined;
3343
- specificTargetsSet?: boolean | undefined;
3344
- description?: string | undefined;
3345
- }>;
3346
- export type ScorecardAverageCellData = z.infer<typeof scorecardAverageCellDataSchema>;
3347
- export type SanitizedScorecardTableData = z.infer<typeof scorecardTableData>;
3348
- export declare enum ScorecardTableOrientation {
3349
- ORG_UNIT_VS_DATA = "orgUnitsVsData",
3350
- DATA_VS_ORG_UNIT = "dataVsOrgUnits"
3351
- }
3352
- export declare enum ScorecardTableDimension {
3353
- GROUP = "group",
3354
- ORG_UNITS = "orgUnits",
3355
- PERIODS = "periods",
3356
- DATA = "data"
3357
- }
3358
- export declare enum ScorecardDraggableItems {
3359
- ou = "ou",
3360
- data = "data"
3361
- }
3362
- export {};
3363
- //# sourceMappingURL=config.d.ts.map