@hisptz/dhis2-analytics 2.0.23 → 2.0.25
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.
- package/dist/components/Scorecard/schemas/config.js +9 -6
- package/dist/components/Scorecard/schemas/config.js.map +1 -1
- package/dist/components/Scorecard/utils/legends.js +1 -1
- package/dist/components/Scorecard/utils/legends.js.map +1 -1
- package/dist/esm/components/Scorecard/schemas/config.js +9 -6
- package/dist/esm/components/Scorecard/schemas/config.js.map +1 -1
- package/dist/esm/components/Scorecard/utils/legends.js +1 -1
- package/dist/esm/components/Scorecard/utils/legends.js.map +1 -1
- package/dist/types/components/Scorecard/components/ConfigProvider.d.ts +16 -14
- package/dist/types/components/Scorecard/components/ConfigProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/StateProvider.d.ts +2 -2
- package/dist/types/components/Scorecard/components/TableStateProvider.d.ts +7 -6
- package/dist/types/components/Scorecard/components/TableStateProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/columns.d.ts +7 -6
- package/dist/types/components/Scorecard/hooks/columns.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/data.d.ts +7 -6
- package/dist/types/components/Scorecard/hooks/data.d.ts.map +1 -1
- package/dist/types/components/Scorecard/schemas/config.d.ts +331 -288
- package/dist/types/components/Scorecard/schemas/config.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/columns.d.ts +7 -6
- package/dist/types/components/Scorecard/utils/columns.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/dataSources.d.ts +7 -6
- package/dist/types/components/Scorecard/utils/dataSources.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { RowData } from "@tanstack/react-table";
|
|
3
|
-
export declare const supportedDataSources: z.ZodEnum<["indicator", "
|
|
3
|
+
export declare const supportedDataSources: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
4
4
|
export type SupportedDataSources = z.infer<typeof supportedDataSources>;
|
|
5
5
|
export declare const legendDefinitionSchema: z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
@@ -71,26 +71,26 @@ export declare const organisationUnitSelectionSchema: z.ZodObject<{
|
|
|
71
71
|
}, {
|
|
72
72
|
id: string;
|
|
73
73
|
}>, "many">;
|
|
74
|
-
groups: z.ZodArray<z.ZodString, "many"
|
|
75
|
-
levels: z.ZodArray<z.ZodString, "many"
|
|
74
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
orgUnits: {
|
|
78
78
|
id: string;
|
|
79
79
|
}[];
|
|
80
|
-
groups: string[];
|
|
81
|
-
levels: string[];
|
|
82
80
|
userOrgUnit?: boolean | undefined;
|
|
83
81
|
userSubUnit?: boolean | undefined;
|
|
84
82
|
userSubX2Unit?: boolean | undefined;
|
|
83
|
+
groups?: string[] | undefined;
|
|
84
|
+
levels?: string[] | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
orgUnits: {
|
|
87
87
|
id: string;
|
|
88
88
|
}[];
|
|
89
|
-
groups: string[];
|
|
90
|
-
levels: string[];
|
|
91
89
|
userOrgUnit?: boolean | undefined;
|
|
92
90
|
userSubUnit?: boolean | undefined;
|
|
93
91
|
userSubX2Unit?: boolean | undefined;
|
|
92
|
+
groups?: string[] | undefined;
|
|
93
|
+
levels?: string[] | undefined;
|
|
94
94
|
}>;
|
|
95
95
|
export type OrgUnitSelection = z.infer<typeof organisationUnitSelectionSchema>;
|
|
96
96
|
export declare const periodSelectionSchema: z.ZodObject<{
|
|
@@ -132,7 +132,7 @@ export declare const legendSchema: z.ZodObject<{
|
|
|
132
132
|
}>;
|
|
133
133
|
export type ScorecardLegend = z.infer<typeof legendSchema>;
|
|
134
134
|
export declare const specificTargetSchema: z.ZodObject<{
|
|
135
|
-
type: z.ZodEnum<["
|
|
135
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
136
136
|
items: z.ZodArray<z.ZodString, "many">;
|
|
137
137
|
legends: z.ZodArray<z.ZodObject<{
|
|
138
138
|
legendDefinitionId: z.ZodString;
|
|
@@ -151,7 +151,7 @@ export declare const specificTargetSchema: z.ZodObject<{
|
|
|
151
151
|
legendDefinitionId: string;
|
|
152
152
|
}>, "many">;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
type: "orgUnit" | "
|
|
154
|
+
type: "orgUnit" | "periods";
|
|
155
155
|
legends: {
|
|
156
156
|
id: string;
|
|
157
157
|
startValue: string | number;
|
|
@@ -160,7 +160,7 @@ export declare const specificTargetSchema: z.ZodObject<{
|
|
|
160
160
|
}[];
|
|
161
161
|
items: string[];
|
|
162
162
|
}, {
|
|
163
|
-
type: "orgUnit" | "
|
|
163
|
+
type: "orgUnit" | "periods";
|
|
164
164
|
legends: {
|
|
165
165
|
id: string;
|
|
166
166
|
startValue: string | number;
|
|
@@ -189,8 +189,9 @@ export declare const orgUnitLevelLegendSchema: z.ZodRecord<z.ZodString, z.ZodArr
|
|
|
189
189
|
export type OrgUnitLevelLegend = z.infer<typeof orgUnitLevelLegendSchema>;
|
|
190
190
|
export declare const dataSourceSchema: z.ZodObject<{
|
|
191
191
|
id: z.ZodString;
|
|
192
|
+
name: z.ZodString;
|
|
192
193
|
label: z.ZodOptional<z.ZodString>;
|
|
193
|
-
type: z.ZodEnum<["indicator", "
|
|
194
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
194
195
|
displayArrows: z.ZodBoolean;
|
|
195
196
|
highIsGood: z.ZodBoolean;
|
|
196
197
|
effectiveGap: z.ZodNumber;
|
|
@@ -227,8 +228,8 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
227
228
|
endValue: string | number;
|
|
228
229
|
legendDefinitionId: string;
|
|
229
230
|
}>, "many">>]>;
|
|
230
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
231
|
-
type: z.ZodEnum<["
|
|
231
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
232
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
232
233
|
items: z.ZodArray<z.ZodString, "many">;
|
|
233
234
|
legends: z.ZodArray<z.ZodObject<{
|
|
234
235
|
legendDefinitionId: z.ZodString;
|
|
@@ -247,7 +248,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
247
248
|
legendDefinitionId: string;
|
|
248
249
|
}>, "many">;
|
|
249
250
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
type: "orgUnit" | "
|
|
251
|
+
type: "orgUnit" | "periods";
|
|
251
252
|
legends: {
|
|
252
253
|
id: string;
|
|
253
254
|
startValue: string | number;
|
|
@@ -256,7 +257,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
256
257
|
}[];
|
|
257
258
|
items: string[];
|
|
258
259
|
}, {
|
|
259
|
-
type: "orgUnit" | "
|
|
260
|
+
type: "orgUnit" | "periods";
|
|
260
261
|
legends: {
|
|
261
262
|
id: string;
|
|
262
263
|
startValue: string | number;
|
|
@@ -264,12 +265,13 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
264
265
|
legendDefinitionId: string;
|
|
265
266
|
}[];
|
|
266
267
|
items: string[];
|
|
267
|
-
}>, "many"
|
|
268
|
+
}>, "many">>;
|
|
268
269
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
269
270
|
description: z.ZodOptional<z.ZodString>;
|
|
270
271
|
}, "strip", z.ZodTypeAny, {
|
|
271
272
|
id: string;
|
|
272
|
-
type: "" | "
|
|
273
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
274
|
+
name: string;
|
|
273
275
|
legends: {
|
|
274
276
|
id: string;
|
|
275
277
|
startValue: string | number;
|
|
@@ -286,8 +288,10 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
286
288
|
highIsGood: boolean;
|
|
287
289
|
effectiveGap: number;
|
|
288
290
|
showColors: boolean;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
label?: string | undefined;
|
|
292
|
+
description?: string | undefined;
|
|
293
|
+
specificTargets?: {
|
|
294
|
+
type: "orgUnit" | "periods";
|
|
291
295
|
legends: {
|
|
292
296
|
id: string;
|
|
293
297
|
startValue: string | number;
|
|
@@ -295,13 +299,12 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
295
299
|
legendDefinitionId: string;
|
|
296
300
|
}[];
|
|
297
301
|
items: string[];
|
|
298
|
-
}[];
|
|
299
|
-
label?: string | undefined;
|
|
300
|
-
description?: string | undefined;
|
|
302
|
+
}[] | undefined;
|
|
301
303
|
specificTargetsSet?: boolean | undefined;
|
|
302
304
|
}, {
|
|
303
305
|
id: string;
|
|
304
|
-
type: "" | "
|
|
306
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
307
|
+
name: string;
|
|
305
308
|
legends: {
|
|
306
309
|
id: string;
|
|
307
310
|
startValue: string | number;
|
|
@@ -318,8 +321,10 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
318
321
|
highIsGood: boolean;
|
|
319
322
|
effectiveGap: number;
|
|
320
323
|
showColors: boolean;
|
|
321
|
-
|
|
322
|
-
|
|
324
|
+
label?: string | undefined;
|
|
325
|
+
description?: string | undefined;
|
|
326
|
+
specificTargets?: {
|
|
327
|
+
type: "orgUnit" | "periods";
|
|
323
328
|
legends: {
|
|
324
329
|
id: string;
|
|
325
330
|
startValue: string | number;
|
|
@@ -327,9 +332,7 @@ export declare const dataSourceSchema: z.ZodObject<{
|
|
|
327
332
|
legendDefinitionId: string;
|
|
328
333
|
}[];
|
|
329
334
|
items: string[];
|
|
330
|
-
}[];
|
|
331
|
-
label?: string | undefined;
|
|
332
|
-
description?: string | undefined;
|
|
335
|
+
}[] | undefined;
|
|
333
336
|
specificTargetsSet?: boolean | undefined;
|
|
334
337
|
}>;
|
|
335
338
|
export type ScorecardDataSource = z.infer<typeof dataSourceSchema>;
|
|
@@ -337,8 +340,9 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
337
340
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
338
341
|
dataSources: z.ZodArray<z.ZodObject<{
|
|
339
342
|
id: z.ZodString;
|
|
343
|
+
name: z.ZodString;
|
|
340
344
|
label: z.ZodOptional<z.ZodString>;
|
|
341
|
-
type: z.ZodEnum<["indicator", "
|
|
345
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
342
346
|
displayArrows: z.ZodBoolean;
|
|
343
347
|
highIsGood: z.ZodBoolean;
|
|
344
348
|
effectiveGap: z.ZodNumber;
|
|
@@ -375,8 +379,8 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
375
379
|
endValue: string | number;
|
|
376
380
|
legendDefinitionId: string;
|
|
377
381
|
}>, "many">>]>;
|
|
378
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
379
|
-
type: z.ZodEnum<["
|
|
382
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
383
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
380
384
|
items: z.ZodArray<z.ZodString, "many">;
|
|
381
385
|
legends: z.ZodArray<z.ZodObject<{
|
|
382
386
|
legendDefinitionId: z.ZodString;
|
|
@@ -395,7 +399,7 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
395
399
|
legendDefinitionId: string;
|
|
396
400
|
}>, "many">;
|
|
397
401
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
type: "orgUnit" | "
|
|
402
|
+
type: "orgUnit" | "periods";
|
|
399
403
|
legends: {
|
|
400
404
|
id: string;
|
|
401
405
|
startValue: string | number;
|
|
@@ -404,7 +408,7 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
404
408
|
}[];
|
|
405
409
|
items: string[];
|
|
406
410
|
}, {
|
|
407
|
-
type: "orgUnit" | "
|
|
411
|
+
type: "orgUnit" | "periods";
|
|
408
412
|
legends: {
|
|
409
413
|
id: string;
|
|
410
414
|
startValue: string | number;
|
|
@@ -412,12 +416,13 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
412
416
|
legendDefinitionId: string;
|
|
413
417
|
}[];
|
|
414
418
|
items: string[];
|
|
415
|
-
}>, "many"
|
|
419
|
+
}>, "many">>;
|
|
416
420
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
417
421
|
description: z.ZodOptional<z.ZodString>;
|
|
418
422
|
}, "strip", z.ZodTypeAny, {
|
|
419
423
|
id: string;
|
|
420
|
-
type: "" | "
|
|
424
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
425
|
+
name: string;
|
|
421
426
|
legends: {
|
|
422
427
|
id: string;
|
|
423
428
|
startValue: string | number;
|
|
@@ -434,8 +439,10 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
434
439
|
highIsGood: boolean;
|
|
435
440
|
effectiveGap: number;
|
|
436
441
|
showColors: boolean;
|
|
437
|
-
|
|
438
|
-
|
|
442
|
+
label?: string | undefined;
|
|
443
|
+
description?: string | undefined;
|
|
444
|
+
specificTargets?: {
|
|
445
|
+
type: "orgUnit" | "periods";
|
|
439
446
|
legends: {
|
|
440
447
|
id: string;
|
|
441
448
|
startValue: string | number;
|
|
@@ -443,13 +450,12 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
443
450
|
legendDefinitionId: string;
|
|
444
451
|
}[];
|
|
445
452
|
items: string[];
|
|
446
|
-
}[];
|
|
447
|
-
label?: string | undefined;
|
|
448
|
-
description?: string | undefined;
|
|
453
|
+
}[] | undefined;
|
|
449
454
|
specificTargetsSet?: boolean | undefined;
|
|
450
455
|
}, {
|
|
451
456
|
id: string;
|
|
452
|
-
type: "" | "
|
|
457
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
458
|
+
name: string;
|
|
453
459
|
legends: {
|
|
454
460
|
id: string;
|
|
455
461
|
startValue: string | number;
|
|
@@ -466,8 +472,10 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
466
472
|
highIsGood: boolean;
|
|
467
473
|
effectiveGap: number;
|
|
468
474
|
showColors: boolean;
|
|
469
|
-
|
|
470
|
-
|
|
475
|
+
label?: string | undefined;
|
|
476
|
+
description?: string | undefined;
|
|
477
|
+
specificTargets?: {
|
|
478
|
+
type: "orgUnit" | "periods";
|
|
471
479
|
legends: {
|
|
472
480
|
id: string;
|
|
473
481
|
startValue: string | number;
|
|
@@ -475,16 +483,15 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
475
483
|
legendDefinitionId: string;
|
|
476
484
|
}[];
|
|
477
485
|
items: string[];
|
|
478
|
-
}[];
|
|
479
|
-
label?: string | undefined;
|
|
480
|
-
description?: string | undefined;
|
|
486
|
+
}[] | undefined;
|
|
481
487
|
specificTargetsSet?: boolean | undefined;
|
|
482
488
|
}>, "many">;
|
|
483
489
|
}, "strip", z.ZodTypeAny, {
|
|
484
490
|
id: string | number;
|
|
485
491
|
dataSources: {
|
|
486
492
|
id: string;
|
|
487
|
-
type: "" | "
|
|
493
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
494
|
+
name: string;
|
|
488
495
|
legends: {
|
|
489
496
|
id: string;
|
|
490
497
|
startValue: string | number;
|
|
@@ -501,8 +508,10 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
501
508
|
highIsGood: boolean;
|
|
502
509
|
effectiveGap: number;
|
|
503
510
|
showColors: boolean;
|
|
504
|
-
|
|
505
|
-
|
|
511
|
+
label?: string | undefined;
|
|
512
|
+
description?: string | undefined;
|
|
513
|
+
specificTargets?: {
|
|
514
|
+
type: "orgUnit" | "periods";
|
|
506
515
|
legends: {
|
|
507
516
|
id: string;
|
|
508
517
|
startValue: string | number;
|
|
@@ -510,16 +519,15 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
510
519
|
legendDefinitionId: string;
|
|
511
520
|
}[];
|
|
512
521
|
items: string[];
|
|
513
|
-
}[];
|
|
514
|
-
label?: string | undefined;
|
|
515
|
-
description?: string | undefined;
|
|
522
|
+
}[] | undefined;
|
|
516
523
|
specificTargetsSet?: boolean | undefined;
|
|
517
524
|
}[];
|
|
518
525
|
}, {
|
|
519
526
|
id: string | number;
|
|
520
527
|
dataSources: {
|
|
521
528
|
id: string;
|
|
522
|
-
type: "" | "
|
|
529
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
530
|
+
name: string;
|
|
523
531
|
legends: {
|
|
524
532
|
id: string;
|
|
525
533
|
startValue: string | number;
|
|
@@ -536,8 +544,10 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
536
544
|
highIsGood: boolean;
|
|
537
545
|
effectiveGap: number;
|
|
538
546
|
showColors: boolean;
|
|
539
|
-
|
|
540
|
-
|
|
547
|
+
label?: string | undefined;
|
|
548
|
+
description?: string | undefined;
|
|
549
|
+
specificTargets?: {
|
|
550
|
+
type: "orgUnit" | "periods";
|
|
541
551
|
legends: {
|
|
542
552
|
id: string;
|
|
543
553
|
startValue: string | number;
|
|
@@ -545,9 +555,7 @@ export declare const dataHolderSchema: z.ZodObject<{
|
|
|
545
555
|
legendDefinitionId: string;
|
|
546
556
|
}[];
|
|
547
557
|
items: string[];
|
|
548
|
-
}[];
|
|
549
|
-
label?: string | undefined;
|
|
550
|
-
description?: string | undefined;
|
|
558
|
+
}[] | undefined;
|
|
551
559
|
specificTargetsSet?: boolean | undefined;
|
|
552
560
|
}[];
|
|
553
561
|
}>;
|
|
@@ -558,8 +566,9 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
558
566
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
559
567
|
dataSources: z.ZodArray<z.ZodObject<{
|
|
560
568
|
id: z.ZodString;
|
|
569
|
+
name: z.ZodString;
|
|
561
570
|
label: z.ZodOptional<z.ZodString>;
|
|
562
|
-
type: z.ZodEnum<["indicator", "
|
|
571
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
563
572
|
displayArrows: z.ZodBoolean;
|
|
564
573
|
highIsGood: z.ZodBoolean;
|
|
565
574
|
effectiveGap: z.ZodNumber;
|
|
@@ -596,8 +605,8 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
596
605
|
endValue: string | number;
|
|
597
606
|
legendDefinitionId: string;
|
|
598
607
|
}>, "many">>]>;
|
|
599
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
600
|
-
type: z.ZodEnum<["
|
|
608
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
601
610
|
items: z.ZodArray<z.ZodString, "many">;
|
|
602
611
|
legends: z.ZodArray<z.ZodObject<{
|
|
603
612
|
legendDefinitionId: z.ZodString;
|
|
@@ -616,7 +625,7 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
616
625
|
legendDefinitionId: string;
|
|
617
626
|
}>, "many">;
|
|
618
627
|
}, "strip", z.ZodTypeAny, {
|
|
619
|
-
type: "orgUnit" | "
|
|
628
|
+
type: "orgUnit" | "periods";
|
|
620
629
|
legends: {
|
|
621
630
|
id: string;
|
|
622
631
|
startValue: string | number;
|
|
@@ -625,7 +634,7 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
625
634
|
}[];
|
|
626
635
|
items: string[];
|
|
627
636
|
}, {
|
|
628
|
-
type: "orgUnit" | "
|
|
637
|
+
type: "orgUnit" | "periods";
|
|
629
638
|
legends: {
|
|
630
639
|
id: string;
|
|
631
640
|
startValue: string | number;
|
|
@@ -633,12 +642,13 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
633
642
|
legendDefinitionId: string;
|
|
634
643
|
}[];
|
|
635
644
|
items: string[];
|
|
636
|
-
}>, "many"
|
|
645
|
+
}>, "many">>;
|
|
637
646
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
638
647
|
description: z.ZodOptional<z.ZodString>;
|
|
639
648
|
}, "strip", z.ZodTypeAny, {
|
|
640
649
|
id: string;
|
|
641
|
-
type: "" | "
|
|
650
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
651
|
+
name: string;
|
|
642
652
|
legends: {
|
|
643
653
|
id: string;
|
|
644
654
|
startValue: string | number;
|
|
@@ -655,8 +665,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
655
665
|
highIsGood: boolean;
|
|
656
666
|
effectiveGap: number;
|
|
657
667
|
showColors: boolean;
|
|
658
|
-
|
|
659
|
-
|
|
668
|
+
label?: string | undefined;
|
|
669
|
+
description?: string | undefined;
|
|
670
|
+
specificTargets?: {
|
|
671
|
+
type: "orgUnit" | "periods";
|
|
660
672
|
legends: {
|
|
661
673
|
id: string;
|
|
662
674
|
startValue: string | number;
|
|
@@ -664,13 +676,12 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
664
676
|
legendDefinitionId: string;
|
|
665
677
|
}[];
|
|
666
678
|
items: string[];
|
|
667
|
-
}[];
|
|
668
|
-
label?: string | undefined;
|
|
669
|
-
description?: string | undefined;
|
|
679
|
+
}[] | undefined;
|
|
670
680
|
specificTargetsSet?: boolean | undefined;
|
|
671
681
|
}, {
|
|
672
682
|
id: string;
|
|
673
|
-
type: "" | "
|
|
683
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
684
|
+
name: string;
|
|
674
685
|
legends: {
|
|
675
686
|
id: string;
|
|
676
687
|
startValue: string | number;
|
|
@@ -687,8 +698,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
687
698
|
highIsGood: boolean;
|
|
688
699
|
effectiveGap: number;
|
|
689
700
|
showColors: boolean;
|
|
690
|
-
|
|
691
|
-
|
|
701
|
+
label?: string | undefined;
|
|
702
|
+
description?: string | undefined;
|
|
703
|
+
specificTargets?: {
|
|
704
|
+
type: "orgUnit" | "periods";
|
|
692
705
|
legends: {
|
|
693
706
|
id: string;
|
|
694
707
|
startValue: string | number;
|
|
@@ -696,16 +709,15 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
696
709
|
legendDefinitionId: string;
|
|
697
710
|
}[];
|
|
698
711
|
items: string[];
|
|
699
|
-
}[];
|
|
700
|
-
label?: string | undefined;
|
|
701
|
-
description?: string | undefined;
|
|
712
|
+
}[] | undefined;
|
|
702
713
|
specificTargetsSet?: boolean | undefined;
|
|
703
714
|
}>, "many">;
|
|
704
715
|
}, "strip", z.ZodTypeAny, {
|
|
705
716
|
id: string | number;
|
|
706
717
|
dataSources: {
|
|
707
718
|
id: string;
|
|
708
|
-
type: "" | "
|
|
719
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
720
|
+
name: string;
|
|
709
721
|
legends: {
|
|
710
722
|
id: string;
|
|
711
723
|
startValue: string | number;
|
|
@@ -722,8 +734,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
722
734
|
highIsGood: boolean;
|
|
723
735
|
effectiveGap: number;
|
|
724
736
|
showColors: boolean;
|
|
725
|
-
|
|
726
|
-
|
|
737
|
+
label?: string | undefined;
|
|
738
|
+
description?: string | undefined;
|
|
739
|
+
specificTargets?: {
|
|
740
|
+
type: "orgUnit" | "periods";
|
|
727
741
|
legends: {
|
|
728
742
|
id: string;
|
|
729
743
|
startValue: string | number;
|
|
@@ -731,16 +745,15 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
731
745
|
legendDefinitionId: string;
|
|
732
746
|
}[];
|
|
733
747
|
items: string[];
|
|
734
|
-
}[];
|
|
735
|
-
label?: string | undefined;
|
|
736
|
-
description?: string | undefined;
|
|
748
|
+
}[] | undefined;
|
|
737
749
|
specificTargetsSet?: boolean | undefined;
|
|
738
750
|
}[];
|
|
739
751
|
}, {
|
|
740
752
|
id: string | number;
|
|
741
753
|
dataSources: {
|
|
742
754
|
id: string;
|
|
743
|
-
type: "" | "
|
|
755
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
756
|
+
name: string;
|
|
744
757
|
legends: {
|
|
745
758
|
id: string;
|
|
746
759
|
startValue: string | number;
|
|
@@ -757,8 +770,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
757
770
|
highIsGood: boolean;
|
|
758
771
|
effectiveGap: number;
|
|
759
772
|
showColors: boolean;
|
|
760
|
-
|
|
761
|
-
|
|
773
|
+
label?: string | undefined;
|
|
774
|
+
description?: string | undefined;
|
|
775
|
+
specificTargets?: {
|
|
776
|
+
type: "orgUnit" | "periods";
|
|
762
777
|
legends: {
|
|
763
778
|
id: string;
|
|
764
779
|
startValue: string | number;
|
|
@@ -766,9 +781,7 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
766
781
|
legendDefinitionId: string;
|
|
767
782
|
}[];
|
|
768
783
|
items: string[];
|
|
769
|
-
}[];
|
|
770
|
-
label?: string | undefined;
|
|
771
|
-
description?: string | undefined;
|
|
784
|
+
}[] | undefined;
|
|
772
785
|
specificTargetsSet?: boolean | undefined;
|
|
773
786
|
}[];
|
|
774
787
|
}>, "many">;
|
|
@@ -782,7 +795,8 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
782
795
|
id: string | number;
|
|
783
796
|
dataSources: {
|
|
784
797
|
id: string;
|
|
785
|
-
type: "" | "
|
|
798
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
799
|
+
name: string;
|
|
786
800
|
legends: {
|
|
787
801
|
id: string;
|
|
788
802
|
startValue: string | number;
|
|
@@ -799,8 +813,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
799
813
|
highIsGood: boolean;
|
|
800
814
|
effectiveGap: number;
|
|
801
815
|
showColors: boolean;
|
|
802
|
-
|
|
803
|
-
|
|
816
|
+
label?: string | undefined;
|
|
817
|
+
description?: string | undefined;
|
|
818
|
+
specificTargets?: {
|
|
819
|
+
type: "orgUnit" | "periods";
|
|
804
820
|
legends: {
|
|
805
821
|
id: string;
|
|
806
822
|
startValue: string | number;
|
|
@@ -808,9 +824,7 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
808
824
|
legendDefinitionId: string;
|
|
809
825
|
}[];
|
|
810
826
|
items: string[];
|
|
811
|
-
}[];
|
|
812
|
-
label?: string | undefined;
|
|
813
|
-
description?: string | undefined;
|
|
827
|
+
}[] | undefined;
|
|
814
828
|
specificTargetsSet?: boolean | undefined;
|
|
815
829
|
}[];
|
|
816
830
|
}[];
|
|
@@ -822,7 +836,8 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
822
836
|
id: string | number;
|
|
823
837
|
dataSources: {
|
|
824
838
|
id: string;
|
|
825
|
-
type: "" | "
|
|
839
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
840
|
+
name: string;
|
|
826
841
|
legends: {
|
|
827
842
|
id: string;
|
|
828
843
|
startValue: string | number;
|
|
@@ -839,8 +854,10 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
839
854
|
highIsGood: boolean;
|
|
840
855
|
effectiveGap: number;
|
|
841
856
|
showColors: boolean;
|
|
842
|
-
|
|
843
|
-
|
|
857
|
+
label?: string | undefined;
|
|
858
|
+
description?: string | undefined;
|
|
859
|
+
specificTargets?: {
|
|
860
|
+
type: "orgUnit" | "periods";
|
|
844
861
|
legends: {
|
|
845
862
|
id: string;
|
|
846
863
|
startValue: string | number;
|
|
@@ -848,9 +865,7 @@ export declare const dataGroupSchema: z.ZodObject<{
|
|
|
848
865
|
legendDefinitionId: string;
|
|
849
866
|
}[];
|
|
850
867
|
items: string[];
|
|
851
|
-
}[];
|
|
852
|
-
label?: string | undefined;
|
|
853
|
-
description?: string | undefined;
|
|
868
|
+
}[] | undefined;
|
|
854
869
|
specificTargetsSet?: boolean | undefined;
|
|
855
870
|
}[];
|
|
856
871
|
}[];
|
|
@@ -929,26 +944,26 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
929
944
|
}, {
|
|
930
945
|
id: string;
|
|
931
946
|
}>, "many">;
|
|
932
|
-
groups: z.ZodArray<z.ZodString, "many"
|
|
933
|
-
levels: z.ZodArray<z.ZodString, "many"
|
|
947
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
948
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
934
949
|
}, "strip", z.ZodTypeAny, {
|
|
935
950
|
orgUnits: {
|
|
936
951
|
id: string;
|
|
937
952
|
}[];
|
|
938
|
-
groups: string[];
|
|
939
|
-
levels: string[];
|
|
940
953
|
userOrgUnit?: boolean | undefined;
|
|
941
954
|
userSubUnit?: boolean | undefined;
|
|
942
955
|
userSubX2Unit?: boolean | undefined;
|
|
956
|
+
groups?: string[] | undefined;
|
|
957
|
+
levels?: string[] | undefined;
|
|
943
958
|
}, {
|
|
944
959
|
orgUnits: {
|
|
945
960
|
id: string;
|
|
946
961
|
}[];
|
|
947
|
-
groups: string[];
|
|
948
|
-
levels: string[];
|
|
949
962
|
userOrgUnit?: boolean | undefined;
|
|
950
963
|
userSubUnit?: boolean | undefined;
|
|
951
964
|
userSubX2Unit?: boolean | undefined;
|
|
965
|
+
groups?: string[] | undefined;
|
|
966
|
+
levels?: string[] | undefined;
|
|
952
967
|
}>;
|
|
953
968
|
periodSelection: z.ZodObject<{
|
|
954
969
|
periods: z.ZodArray<z.ZodObject<{
|
|
@@ -977,8 +992,9 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
977
992
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
978
993
|
dataSources: z.ZodArray<z.ZodObject<{
|
|
979
994
|
id: z.ZodString;
|
|
995
|
+
name: z.ZodString;
|
|
980
996
|
label: z.ZodOptional<z.ZodString>;
|
|
981
|
-
type: z.ZodEnum<["indicator", "
|
|
997
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
982
998
|
displayArrows: z.ZodBoolean;
|
|
983
999
|
highIsGood: z.ZodBoolean;
|
|
984
1000
|
effectiveGap: z.ZodNumber;
|
|
@@ -1015,8 +1031,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1015
1031
|
endValue: string | number;
|
|
1016
1032
|
legendDefinitionId: string;
|
|
1017
1033
|
}>, "many">>]>;
|
|
1018
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
1019
|
-
type: z.ZodEnum<["
|
|
1034
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1035
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
1020
1036
|
items: z.ZodArray<z.ZodString, "many">;
|
|
1021
1037
|
legends: z.ZodArray<z.ZodObject<{
|
|
1022
1038
|
legendDefinitionId: z.ZodString;
|
|
@@ -1035,7 +1051,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1035
1051
|
legendDefinitionId: string;
|
|
1036
1052
|
}>, "many">;
|
|
1037
1053
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
type: "orgUnit" | "
|
|
1054
|
+
type: "orgUnit" | "periods";
|
|
1039
1055
|
legends: {
|
|
1040
1056
|
id: string;
|
|
1041
1057
|
startValue: string | number;
|
|
@@ -1044,7 +1060,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1044
1060
|
}[];
|
|
1045
1061
|
items: string[];
|
|
1046
1062
|
}, {
|
|
1047
|
-
type: "orgUnit" | "
|
|
1063
|
+
type: "orgUnit" | "periods";
|
|
1048
1064
|
legends: {
|
|
1049
1065
|
id: string;
|
|
1050
1066
|
startValue: string | number;
|
|
@@ -1052,12 +1068,13 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1052
1068
|
legendDefinitionId: string;
|
|
1053
1069
|
}[];
|
|
1054
1070
|
items: string[];
|
|
1055
|
-
}>, "many"
|
|
1071
|
+
}>, "many">>;
|
|
1056
1072
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
1057
1073
|
description: z.ZodOptional<z.ZodString>;
|
|
1058
1074
|
}, "strip", z.ZodTypeAny, {
|
|
1059
1075
|
id: string;
|
|
1060
|
-
type: "" | "
|
|
1076
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1077
|
+
name: string;
|
|
1061
1078
|
legends: {
|
|
1062
1079
|
id: string;
|
|
1063
1080
|
startValue: string | number;
|
|
@@ -1074,8 +1091,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1074
1091
|
highIsGood: boolean;
|
|
1075
1092
|
effectiveGap: number;
|
|
1076
1093
|
showColors: boolean;
|
|
1077
|
-
|
|
1078
|
-
|
|
1094
|
+
label?: string | undefined;
|
|
1095
|
+
description?: string | undefined;
|
|
1096
|
+
specificTargets?: {
|
|
1097
|
+
type: "orgUnit" | "periods";
|
|
1079
1098
|
legends: {
|
|
1080
1099
|
id: string;
|
|
1081
1100
|
startValue: string | number;
|
|
@@ -1083,13 +1102,12 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1083
1102
|
legendDefinitionId: string;
|
|
1084
1103
|
}[];
|
|
1085
1104
|
items: string[];
|
|
1086
|
-
}[];
|
|
1087
|
-
label?: string | undefined;
|
|
1088
|
-
description?: string | undefined;
|
|
1105
|
+
}[] | undefined;
|
|
1089
1106
|
specificTargetsSet?: boolean | undefined;
|
|
1090
1107
|
}, {
|
|
1091
1108
|
id: string;
|
|
1092
|
-
type: "" | "
|
|
1109
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1110
|
+
name: string;
|
|
1093
1111
|
legends: {
|
|
1094
1112
|
id: string;
|
|
1095
1113
|
startValue: string | number;
|
|
@@ -1106,8 +1124,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1106
1124
|
highIsGood: boolean;
|
|
1107
1125
|
effectiveGap: number;
|
|
1108
1126
|
showColors: boolean;
|
|
1109
|
-
|
|
1110
|
-
|
|
1127
|
+
label?: string | undefined;
|
|
1128
|
+
description?: string | undefined;
|
|
1129
|
+
specificTargets?: {
|
|
1130
|
+
type: "orgUnit" | "periods";
|
|
1111
1131
|
legends: {
|
|
1112
1132
|
id: string;
|
|
1113
1133
|
startValue: string | number;
|
|
@@ -1115,16 +1135,15 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1115
1135
|
legendDefinitionId: string;
|
|
1116
1136
|
}[];
|
|
1117
1137
|
items: string[];
|
|
1118
|
-
}[];
|
|
1119
|
-
label?: string | undefined;
|
|
1120
|
-
description?: string | undefined;
|
|
1138
|
+
}[] | undefined;
|
|
1121
1139
|
specificTargetsSet?: boolean | undefined;
|
|
1122
1140
|
}>, "many">;
|
|
1123
1141
|
}, "strip", z.ZodTypeAny, {
|
|
1124
1142
|
id: string | number;
|
|
1125
1143
|
dataSources: {
|
|
1126
1144
|
id: string;
|
|
1127
|
-
type: "" | "
|
|
1145
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1146
|
+
name: string;
|
|
1128
1147
|
legends: {
|
|
1129
1148
|
id: string;
|
|
1130
1149
|
startValue: string | number;
|
|
@@ -1141,8 +1160,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1141
1160
|
highIsGood: boolean;
|
|
1142
1161
|
effectiveGap: number;
|
|
1143
1162
|
showColors: boolean;
|
|
1144
|
-
|
|
1145
|
-
|
|
1163
|
+
label?: string | undefined;
|
|
1164
|
+
description?: string | undefined;
|
|
1165
|
+
specificTargets?: {
|
|
1166
|
+
type: "orgUnit" | "periods";
|
|
1146
1167
|
legends: {
|
|
1147
1168
|
id: string;
|
|
1148
1169
|
startValue: string | number;
|
|
@@ -1150,16 +1171,15 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1150
1171
|
legendDefinitionId: string;
|
|
1151
1172
|
}[];
|
|
1152
1173
|
items: string[];
|
|
1153
|
-
}[];
|
|
1154
|
-
label?: string | undefined;
|
|
1155
|
-
description?: string | undefined;
|
|
1174
|
+
}[] | undefined;
|
|
1156
1175
|
specificTargetsSet?: boolean | undefined;
|
|
1157
1176
|
}[];
|
|
1158
1177
|
}, {
|
|
1159
1178
|
id: string | number;
|
|
1160
1179
|
dataSources: {
|
|
1161
1180
|
id: string;
|
|
1162
|
-
type: "" | "
|
|
1181
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1182
|
+
name: string;
|
|
1163
1183
|
legends: {
|
|
1164
1184
|
id: string;
|
|
1165
1185
|
startValue: string | number;
|
|
@@ -1176,8 +1196,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1176
1196
|
highIsGood: boolean;
|
|
1177
1197
|
effectiveGap: number;
|
|
1178
1198
|
showColors: boolean;
|
|
1179
|
-
|
|
1180
|
-
|
|
1199
|
+
label?: string | undefined;
|
|
1200
|
+
description?: string | undefined;
|
|
1201
|
+
specificTargets?: {
|
|
1202
|
+
type: "orgUnit" | "periods";
|
|
1181
1203
|
legends: {
|
|
1182
1204
|
id: string;
|
|
1183
1205
|
startValue: string | number;
|
|
@@ -1185,9 +1207,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1185
1207
|
legendDefinitionId: string;
|
|
1186
1208
|
}[];
|
|
1187
1209
|
items: string[];
|
|
1188
|
-
}[];
|
|
1189
|
-
label?: string | undefined;
|
|
1190
|
-
description?: string | undefined;
|
|
1210
|
+
}[] | undefined;
|
|
1191
1211
|
specificTargetsSet?: boolean | undefined;
|
|
1192
1212
|
}[];
|
|
1193
1213
|
}>, "many">;
|
|
@@ -1201,7 +1221,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1201
1221
|
id: string | number;
|
|
1202
1222
|
dataSources: {
|
|
1203
1223
|
id: string;
|
|
1204
|
-
type: "" | "
|
|
1224
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1225
|
+
name: string;
|
|
1205
1226
|
legends: {
|
|
1206
1227
|
id: string;
|
|
1207
1228
|
startValue: string | number;
|
|
@@ -1218,8 +1239,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1218
1239
|
highIsGood: boolean;
|
|
1219
1240
|
effectiveGap: number;
|
|
1220
1241
|
showColors: boolean;
|
|
1221
|
-
|
|
1222
|
-
|
|
1242
|
+
label?: string | undefined;
|
|
1243
|
+
description?: string | undefined;
|
|
1244
|
+
specificTargets?: {
|
|
1245
|
+
type: "orgUnit" | "periods";
|
|
1223
1246
|
legends: {
|
|
1224
1247
|
id: string;
|
|
1225
1248
|
startValue: string | number;
|
|
@@ -1227,9 +1250,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1227
1250
|
legendDefinitionId: string;
|
|
1228
1251
|
}[];
|
|
1229
1252
|
items: string[];
|
|
1230
|
-
}[];
|
|
1231
|
-
label?: string | undefined;
|
|
1232
|
-
description?: string | undefined;
|
|
1253
|
+
}[] | undefined;
|
|
1233
1254
|
specificTargetsSet?: boolean | undefined;
|
|
1234
1255
|
}[];
|
|
1235
1256
|
}[];
|
|
@@ -1241,7 +1262,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1241
1262
|
id: string | number;
|
|
1242
1263
|
dataSources: {
|
|
1243
1264
|
id: string;
|
|
1244
|
-
type: "" | "
|
|
1265
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1266
|
+
name: string;
|
|
1245
1267
|
legends: {
|
|
1246
1268
|
id: string;
|
|
1247
1269
|
startValue: string | number;
|
|
@@ -1258,8 +1280,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1258
1280
|
highIsGood: boolean;
|
|
1259
1281
|
effectiveGap: number;
|
|
1260
1282
|
showColors: boolean;
|
|
1261
|
-
|
|
1262
|
-
|
|
1283
|
+
label?: string | undefined;
|
|
1284
|
+
description?: string | undefined;
|
|
1285
|
+
specificTargets?: {
|
|
1286
|
+
type: "orgUnit" | "periods";
|
|
1263
1287
|
legends: {
|
|
1264
1288
|
id: string;
|
|
1265
1289
|
startValue: string | number;
|
|
@@ -1267,9 +1291,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1267
1291
|
legendDefinitionId: string;
|
|
1268
1292
|
}[];
|
|
1269
1293
|
items: string[];
|
|
1270
|
-
}[];
|
|
1271
|
-
label?: string | undefined;
|
|
1272
|
-
description?: string | undefined;
|
|
1294
|
+
}[] | undefined;
|
|
1273
1295
|
specificTargetsSet?: boolean | undefined;
|
|
1274
1296
|
}[];
|
|
1275
1297
|
}[];
|
|
@@ -1283,7 +1305,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1283
1305
|
id: string | number;
|
|
1284
1306
|
dataSources: {
|
|
1285
1307
|
id: string;
|
|
1286
|
-
type: "" | "
|
|
1308
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1309
|
+
name: string;
|
|
1287
1310
|
legends: {
|
|
1288
1311
|
id: string;
|
|
1289
1312
|
startValue: string | number;
|
|
@@ -1300,8 +1323,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1300
1323
|
highIsGood: boolean;
|
|
1301
1324
|
effectiveGap: number;
|
|
1302
1325
|
showColors: boolean;
|
|
1303
|
-
|
|
1304
|
-
|
|
1326
|
+
label?: string | undefined;
|
|
1327
|
+
description?: string | undefined;
|
|
1328
|
+
specificTargets?: {
|
|
1329
|
+
type: "orgUnit" | "periods";
|
|
1305
1330
|
legends: {
|
|
1306
1331
|
id: string;
|
|
1307
1332
|
startValue: string | number;
|
|
@@ -1309,9 +1334,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1309
1334
|
legendDefinitionId: string;
|
|
1310
1335
|
}[];
|
|
1311
1336
|
items: string[];
|
|
1312
|
-
}[];
|
|
1313
|
-
label?: string | undefined;
|
|
1314
|
-
description?: string | undefined;
|
|
1337
|
+
}[] | undefined;
|
|
1315
1338
|
specificTargetsSet?: boolean | undefined;
|
|
1316
1339
|
}[];
|
|
1317
1340
|
}[];
|
|
@@ -1325,7 +1348,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1325
1348
|
id: string | number;
|
|
1326
1349
|
dataSources: {
|
|
1327
1350
|
id: string;
|
|
1328
|
-
type: "" | "
|
|
1351
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1352
|
+
name: string;
|
|
1329
1353
|
legends: {
|
|
1330
1354
|
id: string;
|
|
1331
1355
|
startValue: string | number;
|
|
@@ -1342,8 +1366,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1342
1366
|
highIsGood: boolean;
|
|
1343
1367
|
effectiveGap: number;
|
|
1344
1368
|
showColors: boolean;
|
|
1345
|
-
|
|
1346
|
-
|
|
1369
|
+
label?: string | undefined;
|
|
1370
|
+
description?: string | undefined;
|
|
1371
|
+
specificTargets?: {
|
|
1372
|
+
type: "orgUnit" | "periods";
|
|
1347
1373
|
legends: {
|
|
1348
1374
|
id: string;
|
|
1349
1375
|
startValue: string | number;
|
|
@@ -1351,9 +1377,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1351
1377
|
legendDefinitionId: string;
|
|
1352
1378
|
}[];
|
|
1353
1379
|
items: string[];
|
|
1354
|
-
}[];
|
|
1355
|
-
label?: string | undefined;
|
|
1356
|
-
description?: string | undefined;
|
|
1380
|
+
}[] | undefined;
|
|
1357
1381
|
specificTargetsSet?: boolean | undefined;
|
|
1358
1382
|
}[];
|
|
1359
1383
|
}[];
|
|
@@ -1361,8 +1385,9 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1361
1385
|
}>;
|
|
1362
1386
|
highlightedIndicators: z.ZodArray<z.ZodObject<{
|
|
1363
1387
|
id: z.ZodString;
|
|
1388
|
+
name: z.ZodString;
|
|
1364
1389
|
label: z.ZodOptional<z.ZodString>;
|
|
1365
|
-
type: z.ZodEnum<["indicator", "
|
|
1390
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
1366
1391
|
displayArrows: z.ZodBoolean;
|
|
1367
1392
|
highIsGood: z.ZodBoolean;
|
|
1368
1393
|
effectiveGap: z.ZodNumber;
|
|
@@ -1399,8 +1424,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1399
1424
|
endValue: string | number;
|
|
1400
1425
|
legendDefinitionId: string;
|
|
1401
1426
|
}>, "many">>]>;
|
|
1402
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
1403
|
-
type: z.ZodEnum<["
|
|
1427
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1428
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
1404
1429
|
items: z.ZodArray<z.ZodString, "many">;
|
|
1405
1430
|
legends: z.ZodArray<z.ZodObject<{
|
|
1406
1431
|
legendDefinitionId: z.ZodString;
|
|
@@ -1419,7 +1444,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1419
1444
|
legendDefinitionId: string;
|
|
1420
1445
|
}>, "many">;
|
|
1421
1446
|
}, "strip", z.ZodTypeAny, {
|
|
1422
|
-
type: "orgUnit" | "
|
|
1447
|
+
type: "orgUnit" | "periods";
|
|
1423
1448
|
legends: {
|
|
1424
1449
|
id: string;
|
|
1425
1450
|
startValue: string | number;
|
|
@@ -1428,7 +1453,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1428
1453
|
}[];
|
|
1429
1454
|
items: string[];
|
|
1430
1455
|
}, {
|
|
1431
|
-
type: "orgUnit" | "
|
|
1456
|
+
type: "orgUnit" | "periods";
|
|
1432
1457
|
legends: {
|
|
1433
1458
|
id: string;
|
|
1434
1459
|
startValue: string | number;
|
|
@@ -1436,12 +1461,13 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1436
1461
|
legendDefinitionId: string;
|
|
1437
1462
|
}[];
|
|
1438
1463
|
items: string[];
|
|
1439
|
-
}>, "many"
|
|
1464
|
+
}>, "many">>;
|
|
1440
1465
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
1441
1466
|
description: z.ZodOptional<z.ZodString>;
|
|
1442
1467
|
}, "strip", z.ZodTypeAny, {
|
|
1443
1468
|
id: string;
|
|
1444
|
-
type: "" | "
|
|
1469
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1470
|
+
name: string;
|
|
1445
1471
|
legends: {
|
|
1446
1472
|
id: string;
|
|
1447
1473
|
startValue: string | number;
|
|
@@ -1458,8 +1484,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1458
1484
|
highIsGood: boolean;
|
|
1459
1485
|
effectiveGap: number;
|
|
1460
1486
|
showColors: boolean;
|
|
1461
|
-
|
|
1462
|
-
|
|
1487
|
+
label?: string | undefined;
|
|
1488
|
+
description?: string | undefined;
|
|
1489
|
+
specificTargets?: {
|
|
1490
|
+
type: "orgUnit" | "periods";
|
|
1463
1491
|
legends: {
|
|
1464
1492
|
id: string;
|
|
1465
1493
|
startValue: string | number;
|
|
@@ -1467,13 +1495,12 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1467
1495
|
legendDefinitionId: string;
|
|
1468
1496
|
}[];
|
|
1469
1497
|
items: string[];
|
|
1470
|
-
}[];
|
|
1471
|
-
label?: string | undefined;
|
|
1472
|
-
description?: string | undefined;
|
|
1498
|
+
}[] | undefined;
|
|
1473
1499
|
specificTargetsSet?: boolean | undefined;
|
|
1474
1500
|
}, {
|
|
1475
1501
|
id: string;
|
|
1476
|
-
type: "" | "
|
|
1502
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1503
|
+
name: string;
|
|
1477
1504
|
legends: {
|
|
1478
1505
|
id: string;
|
|
1479
1506
|
startValue: string | number;
|
|
@@ -1490,8 +1517,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1490
1517
|
highIsGood: boolean;
|
|
1491
1518
|
effectiveGap: number;
|
|
1492
1519
|
showColors: boolean;
|
|
1493
|
-
|
|
1494
|
-
|
|
1520
|
+
label?: string | undefined;
|
|
1521
|
+
description?: string | undefined;
|
|
1522
|
+
specificTargets?: {
|
|
1523
|
+
type: "orgUnit" | "periods";
|
|
1495
1524
|
legends: {
|
|
1496
1525
|
id: string;
|
|
1497
1526
|
startValue: string | number;
|
|
@@ -1499,9 +1528,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1499
1528
|
legendDefinitionId: string;
|
|
1500
1529
|
}[];
|
|
1501
1530
|
items: string[];
|
|
1502
|
-
}[];
|
|
1503
|
-
label?: string | undefined;
|
|
1504
|
-
description?: string | undefined;
|
|
1531
|
+
}[] | undefined;
|
|
1505
1532
|
specificTargetsSet?: boolean | undefined;
|
|
1506
1533
|
}>, "many">;
|
|
1507
1534
|
additionalLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1526,11 +1553,11 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1526
1553
|
orgUnits: {
|
|
1527
1554
|
id: string;
|
|
1528
1555
|
}[];
|
|
1529
|
-
groups: string[];
|
|
1530
|
-
levels: string[];
|
|
1531
1556
|
userOrgUnit?: boolean | undefined;
|
|
1532
1557
|
userSubUnit?: boolean | undefined;
|
|
1533
1558
|
userSubX2Unit?: boolean | undefined;
|
|
1559
|
+
groups?: string[] | undefined;
|
|
1560
|
+
levels?: string[] | undefined;
|
|
1534
1561
|
};
|
|
1535
1562
|
periodSelection: {
|
|
1536
1563
|
periods: {
|
|
@@ -1540,7 +1567,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1540
1567
|
};
|
|
1541
1568
|
highlightedIndicators: {
|
|
1542
1569
|
id: string;
|
|
1543
|
-
type: "" | "
|
|
1570
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1571
|
+
name: string;
|
|
1544
1572
|
legends: {
|
|
1545
1573
|
id: string;
|
|
1546
1574
|
startValue: string | number;
|
|
@@ -1557,8 +1585,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1557
1585
|
highIsGood: boolean;
|
|
1558
1586
|
effectiveGap: number;
|
|
1559
1587
|
showColors: boolean;
|
|
1560
|
-
|
|
1561
|
-
|
|
1588
|
+
label?: string | undefined;
|
|
1589
|
+
description?: string | undefined;
|
|
1590
|
+
specificTargets?: {
|
|
1591
|
+
type: "orgUnit" | "periods";
|
|
1562
1592
|
legends: {
|
|
1563
1593
|
id: string;
|
|
1564
1594
|
startValue: string | number;
|
|
@@ -1566,9 +1596,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1566
1596
|
legendDefinitionId: string;
|
|
1567
1597
|
}[];
|
|
1568
1598
|
items: string[];
|
|
1569
|
-
}[];
|
|
1570
|
-
label?: string | undefined;
|
|
1571
|
-
description?: string | undefined;
|
|
1599
|
+
}[] | undefined;
|
|
1572
1600
|
specificTargetsSet?: boolean | undefined;
|
|
1573
1601
|
}[];
|
|
1574
1602
|
legendDefinitions: {
|
|
@@ -1586,7 +1614,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1586
1614
|
id: string | number;
|
|
1587
1615
|
dataSources: {
|
|
1588
1616
|
id: string;
|
|
1589
|
-
type: "" | "
|
|
1617
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1618
|
+
name: string;
|
|
1590
1619
|
legends: {
|
|
1591
1620
|
id: string;
|
|
1592
1621
|
startValue: string | number;
|
|
@@ -1603,8 +1632,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1603
1632
|
highIsGood: boolean;
|
|
1604
1633
|
effectiveGap: number;
|
|
1605
1634
|
showColors: boolean;
|
|
1606
|
-
|
|
1607
|
-
|
|
1635
|
+
label?: string | undefined;
|
|
1636
|
+
description?: string | undefined;
|
|
1637
|
+
specificTargets?: {
|
|
1638
|
+
type: "orgUnit" | "periods";
|
|
1608
1639
|
legends: {
|
|
1609
1640
|
id: string;
|
|
1610
1641
|
startValue: string | number;
|
|
@@ -1612,9 +1643,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1612
1643
|
legendDefinitionId: string;
|
|
1613
1644
|
}[];
|
|
1614
1645
|
items: string[];
|
|
1615
|
-
}[];
|
|
1616
|
-
label?: string | undefined;
|
|
1617
|
-
description?: string | undefined;
|
|
1646
|
+
}[] | undefined;
|
|
1618
1647
|
specificTargetsSet?: boolean | undefined;
|
|
1619
1648
|
}[];
|
|
1620
1649
|
}[];
|
|
@@ -1645,11 +1674,11 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1645
1674
|
orgUnits: {
|
|
1646
1675
|
id: string;
|
|
1647
1676
|
}[];
|
|
1648
|
-
groups: string[];
|
|
1649
|
-
levels: string[];
|
|
1650
1677
|
userOrgUnit?: boolean | undefined;
|
|
1651
1678
|
userSubUnit?: boolean | undefined;
|
|
1652
1679
|
userSubX2Unit?: boolean | undefined;
|
|
1680
|
+
groups?: string[] | undefined;
|
|
1681
|
+
levels?: string[] | undefined;
|
|
1653
1682
|
};
|
|
1654
1683
|
periodSelection: {
|
|
1655
1684
|
periods: {
|
|
@@ -1659,7 +1688,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1659
1688
|
};
|
|
1660
1689
|
highlightedIndicators: {
|
|
1661
1690
|
id: string;
|
|
1662
|
-
type: "" | "
|
|
1691
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1692
|
+
name: string;
|
|
1663
1693
|
legends: {
|
|
1664
1694
|
id: string;
|
|
1665
1695
|
startValue: string | number;
|
|
@@ -1676,8 +1706,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1676
1706
|
highIsGood: boolean;
|
|
1677
1707
|
effectiveGap: number;
|
|
1678
1708
|
showColors: boolean;
|
|
1679
|
-
|
|
1680
|
-
|
|
1709
|
+
label?: string | undefined;
|
|
1710
|
+
description?: string | undefined;
|
|
1711
|
+
specificTargets?: {
|
|
1712
|
+
type: "orgUnit" | "periods";
|
|
1681
1713
|
legends: {
|
|
1682
1714
|
id: string;
|
|
1683
1715
|
startValue: string | number;
|
|
@@ -1685,9 +1717,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1685
1717
|
legendDefinitionId: string;
|
|
1686
1718
|
}[];
|
|
1687
1719
|
items: string[];
|
|
1688
|
-
}[];
|
|
1689
|
-
label?: string | undefined;
|
|
1690
|
-
description?: string | undefined;
|
|
1720
|
+
}[] | undefined;
|
|
1691
1721
|
specificTargetsSet?: boolean | undefined;
|
|
1692
1722
|
}[];
|
|
1693
1723
|
legendDefinitions: {
|
|
@@ -1705,7 +1735,8 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1705
1735
|
id: string | number;
|
|
1706
1736
|
dataSources: {
|
|
1707
1737
|
id: string;
|
|
1708
|
-
type: "" | "
|
|
1738
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
1739
|
+
name: string;
|
|
1709
1740
|
legends: {
|
|
1710
1741
|
id: string;
|
|
1711
1742
|
startValue: string | number;
|
|
@@ -1722,8 +1753,10 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1722
1753
|
highIsGood: boolean;
|
|
1723
1754
|
effectiveGap: number;
|
|
1724
1755
|
showColors: boolean;
|
|
1725
|
-
|
|
1726
|
-
|
|
1756
|
+
label?: string | undefined;
|
|
1757
|
+
description?: string | undefined;
|
|
1758
|
+
specificTargets?: {
|
|
1759
|
+
type: "orgUnit" | "periods";
|
|
1727
1760
|
legends: {
|
|
1728
1761
|
id: string;
|
|
1729
1762
|
startValue: string | number;
|
|
@@ -1731,9 +1764,7 @@ declare const scorecardConfig: z.ZodObject<{
|
|
|
1731
1764
|
legendDefinitionId: string;
|
|
1732
1765
|
}[];
|
|
1733
1766
|
items: string[];
|
|
1734
|
-
}[];
|
|
1735
|
-
label?: string | undefined;
|
|
1736
|
-
description?: string | undefined;
|
|
1767
|
+
}[] | undefined;
|
|
1737
1768
|
specificTargetsSet?: boolean | undefined;
|
|
1738
1769
|
}[];
|
|
1739
1770
|
}[];
|
|
@@ -1757,26 +1788,26 @@ declare const scorecardStateSchema: z.ZodObject<{
|
|
|
1757
1788
|
}, {
|
|
1758
1789
|
id: string;
|
|
1759
1790
|
}>, "many">;
|
|
1760
|
-
groups: z.ZodArray<z.ZodString, "many"
|
|
1761
|
-
levels: z.ZodArray<z.ZodString, "many"
|
|
1791
|
+
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1792
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1762
1793
|
}, "strip", z.ZodTypeAny, {
|
|
1763
1794
|
orgUnits: {
|
|
1764
1795
|
id: string;
|
|
1765
1796
|
}[];
|
|
1766
|
-
groups: string[];
|
|
1767
|
-
levels: string[];
|
|
1768
1797
|
userOrgUnit?: boolean | undefined;
|
|
1769
1798
|
userSubUnit?: boolean | undefined;
|
|
1770
1799
|
userSubX2Unit?: boolean | undefined;
|
|
1800
|
+
groups?: string[] | undefined;
|
|
1801
|
+
levels?: string[] | undefined;
|
|
1771
1802
|
}, {
|
|
1772
1803
|
orgUnits: {
|
|
1773
1804
|
id: string;
|
|
1774
1805
|
}[];
|
|
1775
|
-
groups: string[];
|
|
1776
|
-
levels: string[];
|
|
1777
1806
|
userOrgUnit?: boolean | undefined;
|
|
1778
1807
|
userSubUnit?: boolean | undefined;
|
|
1779
1808
|
userSubX2Unit?: boolean | undefined;
|
|
1809
|
+
groups?: string[] | undefined;
|
|
1810
|
+
levels?: string[] | undefined;
|
|
1780
1811
|
}>;
|
|
1781
1812
|
periodSelection: z.ZodObject<{
|
|
1782
1813
|
periods: z.ZodArray<z.ZodObject<{
|
|
@@ -1859,11 +1890,11 @@ declare const scorecardStateSchema: z.ZodObject<{
|
|
|
1859
1890
|
orgUnits: {
|
|
1860
1891
|
id: string;
|
|
1861
1892
|
}[];
|
|
1862
|
-
groups: string[];
|
|
1863
|
-
levels: string[];
|
|
1864
1893
|
userOrgUnit?: boolean | undefined;
|
|
1865
1894
|
userSubUnit?: boolean | undefined;
|
|
1866
1895
|
userSubX2Unit?: boolean | undefined;
|
|
1896
|
+
groups?: string[] | undefined;
|
|
1897
|
+
levels?: string[] | undefined;
|
|
1867
1898
|
};
|
|
1868
1899
|
periodSelection: {
|
|
1869
1900
|
periods: {
|
|
@@ -1892,11 +1923,11 @@ declare const scorecardStateSchema: z.ZodObject<{
|
|
|
1892
1923
|
orgUnits: {
|
|
1893
1924
|
id: string;
|
|
1894
1925
|
}[];
|
|
1895
|
-
groups: string[];
|
|
1896
|
-
levels: string[];
|
|
1897
1926
|
userOrgUnit?: boolean | undefined;
|
|
1898
1927
|
userSubUnit?: boolean | undefined;
|
|
1899
1928
|
userSubX2Unit?: boolean | undefined;
|
|
1929
|
+
groups?: string[] | undefined;
|
|
1930
|
+
levels?: string[] | undefined;
|
|
1900
1931
|
};
|
|
1901
1932
|
periodSelection: {
|
|
1902
1933
|
periods: {
|
|
@@ -1947,8 +1978,9 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
1947
1978
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1948
1979
|
dataSources: z.ZodArray<z.ZodObject<{
|
|
1949
1980
|
id: z.ZodString;
|
|
1981
|
+
name: z.ZodString;
|
|
1950
1982
|
label: z.ZodOptional<z.ZodString>;
|
|
1951
|
-
type: z.ZodEnum<["indicator", "
|
|
1983
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
1952
1984
|
displayArrows: z.ZodBoolean;
|
|
1953
1985
|
highIsGood: z.ZodBoolean;
|
|
1954
1986
|
effectiveGap: z.ZodNumber;
|
|
@@ -1985,8 +2017,8 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
1985
2017
|
endValue: string | number;
|
|
1986
2018
|
legendDefinitionId: string;
|
|
1987
2019
|
}>, "many">>]>;
|
|
1988
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
1989
|
-
type: z.ZodEnum<["
|
|
2020
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2021
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
1990
2022
|
items: z.ZodArray<z.ZodString, "many">;
|
|
1991
2023
|
legends: z.ZodArray<z.ZodObject<{
|
|
1992
2024
|
legendDefinitionId: z.ZodString;
|
|
@@ -2005,7 +2037,7 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2005
2037
|
legendDefinitionId: string;
|
|
2006
2038
|
}>, "many">;
|
|
2007
2039
|
}, "strip", z.ZodTypeAny, {
|
|
2008
|
-
type: "orgUnit" | "
|
|
2040
|
+
type: "orgUnit" | "periods";
|
|
2009
2041
|
legends: {
|
|
2010
2042
|
id: string;
|
|
2011
2043
|
startValue: string | number;
|
|
@@ -2014,7 +2046,7 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2014
2046
|
}[];
|
|
2015
2047
|
items: string[];
|
|
2016
2048
|
}, {
|
|
2017
|
-
type: "orgUnit" | "
|
|
2049
|
+
type: "orgUnit" | "periods";
|
|
2018
2050
|
legends: {
|
|
2019
2051
|
id: string;
|
|
2020
2052
|
startValue: string | number;
|
|
@@ -2022,12 +2054,13 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2022
2054
|
legendDefinitionId: string;
|
|
2023
2055
|
}[];
|
|
2024
2056
|
items: string[];
|
|
2025
|
-
}>, "many"
|
|
2057
|
+
}>, "many">>;
|
|
2026
2058
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
2027
2059
|
description: z.ZodOptional<z.ZodString>;
|
|
2028
2060
|
}, "strip", z.ZodTypeAny, {
|
|
2029
2061
|
id: string;
|
|
2030
|
-
type: "" | "
|
|
2062
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2063
|
+
name: string;
|
|
2031
2064
|
legends: {
|
|
2032
2065
|
id: string;
|
|
2033
2066
|
startValue: string | number;
|
|
@@ -2044,8 +2077,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2044
2077
|
highIsGood: boolean;
|
|
2045
2078
|
effectiveGap: number;
|
|
2046
2079
|
showColors: boolean;
|
|
2047
|
-
|
|
2048
|
-
|
|
2080
|
+
label?: string | undefined;
|
|
2081
|
+
description?: string | undefined;
|
|
2082
|
+
specificTargets?: {
|
|
2083
|
+
type: "orgUnit" | "periods";
|
|
2049
2084
|
legends: {
|
|
2050
2085
|
id: string;
|
|
2051
2086
|
startValue: string | number;
|
|
@@ -2053,13 +2088,12 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2053
2088
|
legendDefinitionId: string;
|
|
2054
2089
|
}[];
|
|
2055
2090
|
items: string[];
|
|
2056
|
-
}[];
|
|
2057
|
-
label?: string | undefined;
|
|
2058
|
-
description?: string | undefined;
|
|
2091
|
+
}[] | undefined;
|
|
2059
2092
|
specificTargetsSet?: boolean | undefined;
|
|
2060
2093
|
}, {
|
|
2061
2094
|
id: string;
|
|
2062
|
-
type: "" | "
|
|
2095
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2096
|
+
name: string;
|
|
2063
2097
|
legends: {
|
|
2064
2098
|
id: string;
|
|
2065
2099
|
startValue: string | number;
|
|
@@ -2076,8 +2110,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2076
2110
|
highIsGood: boolean;
|
|
2077
2111
|
effectiveGap: number;
|
|
2078
2112
|
showColors: boolean;
|
|
2079
|
-
|
|
2080
|
-
|
|
2113
|
+
label?: string | undefined;
|
|
2114
|
+
description?: string | undefined;
|
|
2115
|
+
specificTargets?: {
|
|
2116
|
+
type: "orgUnit" | "periods";
|
|
2081
2117
|
legends: {
|
|
2082
2118
|
id: string;
|
|
2083
2119
|
startValue: string | number;
|
|
@@ -2085,16 +2121,15 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2085
2121
|
legendDefinitionId: string;
|
|
2086
2122
|
}[];
|
|
2087
2123
|
items: string[];
|
|
2088
|
-
}[];
|
|
2089
|
-
label?: string | undefined;
|
|
2090
|
-
description?: string | undefined;
|
|
2124
|
+
}[] | undefined;
|
|
2091
2125
|
specificTargetsSet?: boolean | undefined;
|
|
2092
2126
|
}>, "many">;
|
|
2093
2127
|
}, "strip", z.ZodTypeAny, {
|
|
2094
2128
|
id: string | number;
|
|
2095
2129
|
dataSources: {
|
|
2096
2130
|
id: string;
|
|
2097
|
-
type: "" | "
|
|
2131
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2132
|
+
name: string;
|
|
2098
2133
|
legends: {
|
|
2099
2134
|
id: string;
|
|
2100
2135
|
startValue: string | number;
|
|
@@ -2111,8 +2146,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2111
2146
|
highIsGood: boolean;
|
|
2112
2147
|
effectiveGap: number;
|
|
2113
2148
|
showColors: boolean;
|
|
2114
|
-
|
|
2115
|
-
|
|
2149
|
+
label?: string | undefined;
|
|
2150
|
+
description?: string | undefined;
|
|
2151
|
+
specificTargets?: {
|
|
2152
|
+
type: "orgUnit" | "periods";
|
|
2116
2153
|
legends: {
|
|
2117
2154
|
id: string;
|
|
2118
2155
|
startValue: string | number;
|
|
@@ -2120,16 +2157,15 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2120
2157
|
legendDefinitionId: string;
|
|
2121
2158
|
}[];
|
|
2122
2159
|
items: string[];
|
|
2123
|
-
}[];
|
|
2124
|
-
label?: string | undefined;
|
|
2125
|
-
description?: string | undefined;
|
|
2160
|
+
}[] | undefined;
|
|
2126
2161
|
specificTargetsSet?: boolean | undefined;
|
|
2127
2162
|
}[];
|
|
2128
2163
|
}, {
|
|
2129
2164
|
id: string | number;
|
|
2130
2165
|
dataSources: {
|
|
2131
2166
|
id: string;
|
|
2132
|
-
type: "" | "
|
|
2167
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2168
|
+
name: string;
|
|
2133
2169
|
legends: {
|
|
2134
2170
|
id: string;
|
|
2135
2171
|
startValue: string | number;
|
|
@@ -2146,8 +2182,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2146
2182
|
highIsGood: boolean;
|
|
2147
2183
|
effectiveGap: number;
|
|
2148
2184
|
showColors: boolean;
|
|
2149
|
-
|
|
2150
|
-
|
|
2185
|
+
label?: string | undefined;
|
|
2186
|
+
description?: string | undefined;
|
|
2187
|
+
specificTargets?: {
|
|
2188
|
+
type: "orgUnit" | "periods";
|
|
2151
2189
|
legends: {
|
|
2152
2190
|
id: string;
|
|
2153
2191
|
startValue: string | number;
|
|
@@ -2155,9 +2193,7 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2155
2193
|
legendDefinitionId: string;
|
|
2156
2194
|
}[];
|
|
2157
2195
|
items: string[];
|
|
2158
|
-
}[];
|
|
2159
|
-
label?: string | undefined;
|
|
2160
|
-
description?: string | undefined;
|
|
2196
|
+
}[] | undefined;
|
|
2161
2197
|
specificTargetsSet?: boolean | undefined;
|
|
2162
2198
|
}[];
|
|
2163
2199
|
}>>;
|
|
@@ -2192,7 +2228,8 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2192
2228
|
id: string | number;
|
|
2193
2229
|
dataSources: {
|
|
2194
2230
|
id: string;
|
|
2195
|
-
type: "" | "
|
|
2231
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2232
|
+
name: string;
|
|
2196
2233
|
legends: {
|
|
2197
2234
|
id: string;
|
|
2198
2235
|
startValue: string | number;
|
|
@@ -2209,8 +2246,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2209
2246
|
highIsGood: boolean;
|
|
2210
2247
|
effectiveGap: number;
|
|
2211
2248
|
showColors: boolean;
|
|
2212
|
-
|
|
2213
|
-
|
|
2249
|
+
label?: string | undefined;
|
|
2250
|
+
description?: string | undefined;
|
|
2251
|
+
specificTargets?: {
|
|
2252
|
+
type: "orgUnit" | "periods";
|
|
2214
2253
|
legends: {
|
|
2215
2254
|
id: string;
|
|
2216
2255
|
startValue: string | number;
|
|
@@ -2218,9 +2257,7 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2218
2257
|
legendDefinitionId: string;
|
|
2219
2258
|
}[];
|
|
2220
2259
|
items: string[];
|
|
2221
|
-
}[];
|
|
2222
|
-
label?: string | undefined;
|
|
2223
|
-
description?: string | undefined;
|
|
2260
|
+
}[] | undefined;
|
|
2224
2261
|
specificTargetsSet?: boolean | undefined;
|
|
2225
2262
|
}[];
|
|
2226
2263
|
} | undefined;
|
|
@@ -2242,7 +2279,8 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2242
2279
|
id: string | number;
|
|
2243
2280
|
dataSources: {
|
|
2244
2281
|
id: string;
|
|
2245
|
-
type: "" | "
|
|
2282
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2283
|
+
name: string;
|
|
2246
2284
|
legends: {
|
|
2247
2285
|
id: string;
|
|
2248
2286
|
startValue: string | number;
|
|
@@ -2259,8 +2297,10 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2259
2297
|
highIsGood: boolean;
|
|
2260
2298
|
effectiveGap: number;
|
|
2261
2299
|
showColors: boolean;
|
|
2262
|
-
|
|
2263
|
-
|
|
2300
|
+
label?: string | undefined;
|
|
2301
|
+
description?: string | undefined;
|
|
2302
|
+
specificTargets?: {
|
|
2303
|
+
type: "orgUnit" | "periods";
|
|
2264
2304
|
legends: {
|
|
2265
2305
|
id: string;
|
|
2266
2306
|
startValue: string | number;
|
|
@@ -2268,9 +2308,7 @@ export declare const scorecardTableData: z.ZodObject<{
|
|
|
2268
2308
|
legendDefinitionId: string;
|
|
2269
2309
|
}[];
|
|
2270
2310
|
items: string[];
|
|
2271
|
-
}[];
|
|
2272
|
-
label?: string | undefined;
|
|
2273
|
-
description?: string | undefined;
|
|
2311
|
+
}[] | undefined;
|
|
2274
2312
|
specificTargetsSet?: boolean | undefined;
|
|
2275
2313
|
}[];
|
|
2276
2314
|
} | undefined;
|
|
@@ -2280,8 +2318,9 @@ export type ScorecardTableData = z.infer<typeof scorecardTableData> & RowData;
|
|
|
2280
2318
|
export declare const scorecardTableCellData: z.ZodObject<{
|
|
2281
2319
|
dataSources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
2282
2320
|
id: z.ZodString;
|
|
2321
|
+
name: z.ZodString;
|
|
2283
2322
|
label: z.ZodOptional<z.ZodString>;
|
|
2284
|
-
type: z.ZodEnum<["indicator", "
|
|
2323
|
+
type: z.ZodEnum<["indicator", "programIndicator", "dataSet", "dataElement", "customFunction", "sqlView"]>;
|
|
2285
2324
|
displayArrows: z.ZodBoolean;
|
|
2286
2325
|
highIsGood: z.ZodBoolean;
|
|
2287
2326
|
effectiveGap: z.ZodNumber;
|
|
@@ -2318,8 +2357,8 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2318
2357
|
endValue: string | number;
|
|
2319
2358
|
legendDefinitionId: string;
|
|
2320
2359
|
}>, "many">>]>;
|
|
2321
|
-
specificTargets: z.ZodArray<z.ZodObject<{
|
|
2322
|
-
type: z.ZodEnum<["
|
|
2360
|
+
specificTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2361
|
+
type: z.ZodEnum<["periods", "orgUnit"]>;
|
|
2323
2362
|
items: z.ZodArray<z.ZodString, "many">;
|
|
2324
2363
|
legends: z.ZodArray<z.ZodObject<{
|
|
2325
2364
|
legendDefinitionId: z.ZodString;
|
|
@@ -2338,7 +2377,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2338
2377
|
legendDefinitionId: string;
|
|
2339
2378
|
}>, "many">;
|
|
2340
2379
|
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
type: "orgUnit" | "
|
|
2380
|
+
type: "orgUnit" | "periods";
|
|
2342
2381
|
legends: {
|
|
2343
2382
|
id: string;
|
|
2344
2383
|
startValue: string | number;
|
|
@@ -2347,7 +2386,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2347
2386
|
}[];
|
|
2348
2387
|
items: string[];
|
|
2349
2388
|
}, {
|
|
2350
|
-
type: "orgUnit" | "
|
|
2389
|
+
type: "orgUnit" | "periods";
|
|
2351
2390
|
legends: {
|
|
2352
2391
|
id: string;
|
|
2353
2392
|
startValue: string | number;
|
|
@@ -2355,7 +2394,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2355
2394
|
legendDefinitionId: string;
|
|
2356
2395
|
}[];
|
|
2357
2396
|
items: string[];
|
|
2358
|
-
}>, "many"
|
|
2397
|
+
}>, "many">>;
|
|
2359
2398
|
specificTargetsSet: z.ZodOptional<z.ZodBoolean>;
|
|
2360
2399
|
description: z.ZodOptional<z.ZodString>;
|
|
2361
2400
|
}, {
|
|
@@ -2375,7 +2414,8 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2375
2414
|
previous?: number | undefined;
|
|
2376
2415
|
};
|
|
2377
2416
|
id: string;
|
|
2378
|
-
type: "" | "
|
|
2417
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2418
|
+
name: string;
|
|
2379
2419
|
legends: {
|
|
2380
2420
|
id: string;
|
|
2381
2421
|
startValue: string | number;
|
|
@@ -2392,8 +2432,10 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2392
2432
|
highIsGood: boolean;
|
|
2393
2433
|
effectiveGap: number;
|
|
2394
2434
|
showColors: boolean;
|
|
2395
|
-
|
|
2396
|
-
|
|
2435
|
+
label?: string | undefined;
|
|
2436
|
+
description?: string | undefined;
|
|
2437
|
+
specificTargets?: {
|
|
2438
|
+
type: "orgUnit" | "periods";
|
|
2397
2439
|
legends: {
|
|
2398
2440
|
id: string;
|
|
2399
2441
|
startValue: string | number;
|
|
@@ -2401,9 +2443,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2401
2443
|
legendDefinitionId: string;
|
|
2402
2444
|
}[];
|
|
2403
2445
|
items: string[];
|
|
2404
|
-
}[];
|
|
2405
|
-
label?: string | undefined;
|
|
2406
|
-
description?: string | undefined;
|
|
2446
|
+
}[] | undefined;
|
|
2407
2447
|
specificTargetsSet?: boolean | undefined;
|
|
2408
2448
|
}, {
|
|
2409
2449
|
data: {
|
|
@@ -2411,7 +2451,8 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2411
2451
|
previous?: number | undefined;
|
|
2412
2452
|
};
|
|
2413
2453
|
id: string;
|
|
2414
|
-
type: "" | "
|
|
2454
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2455
|
+
name: string;
|
|
2415
2456
|
legends: {
|
|
2416
2457
|
id: string;
|
|
2417
2458
|
startValue: string | number;
|
|
@@ -2428,8 +2469,10 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2428
2469
|
highIsGood: boolean;
|
|
2429
2470
|
effectiveGap: number;
|
|
2430
2471
|
showColors: boolean;
|
|
2431
|
-
|
|
2432
|
-
|
|
2472
|
+
label?: string | undefined;
|
|
2473
|
+
description?: string | undefined;
|
|
2474
|
+
specificTargets?: {
|
|
2475
|
+
type: "orgUnit" | "periods";
|
|
2433
2476
|
legends: {
|
|
2434
2477
|
id: string;
|
|
2435
2478
|
startValue: string | number;
|
|
@@ -2437,9 +2480,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2437
2480
|
legendDefinitionId: string;
|
|
2438
2481
|
}[];
|
|
2439
2482
|
items: string[];
|
|
2440
|
-
}[];
|
|
2441
|
-
label?: string | undefined;
|
|
2442
|
-
description?: string | undefined;
|
|
2483
|
+
}[] | undefined;
|
|
2443
2484
|
specificTargetsSet?: boolean | undefined;
|
|
2444
2485
|
}>, "many">;
|
|
2445
2486
|
orgUnit: z.ZodObject<{
|
|
@@ -2469,7 +2510,8 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2469
2510
|
previous?: number | undefined;
|
|
2470
2511
|
};
|
|
2471
2512
|
id: string;
|
|
2472
|
-
type: "" | "
|
|
2513
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2514
|
+
name: string;
|
|
2473
2515
|
legends: {
|
|
2474
2516
|
id: string;
|
|
2475
2517
|
startValue: string | number;
|
|
@@ -2486,8 +2528,10 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2486
2528
|
highIsGood: boolean;
|
|
2487
2529
|
effectiveGap: number;
|
|
2488
2530
|
showColors: boolean;
|
|
2489
|
-
|
|
2490
|
-
|
|
2531
|
+
label?: string | undefined;
|
|
2532
|
+
description?: string | undefined;
|
|
2533
|
+
specificTargets?: {
|
|
2534
|
+
type: "orgUnit" | "periods";
|
|
2491
2535
|
legends: {
|
|
2492
2536
|
id: string;
|
|
2493
2537
|
startValue: string | number;
|
|
@@ -2495,9 +2539,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2495
2539
|
legendDefinitionId: string;
|
|
2496
2540
|
}[];
|
|
2497
2541
|
items: string[];
|
|
2498
|
-
}[];
|
|
2499
|
-
label?: string | undefined;
|
|
2500
|
-
description?: string | undefined;
|
|
2542
|
+
}[] | undefined;
|
|
2501
2543
|
specificTargetsSet?: boolean | undefined;
|
|
2502
2544
|
}[];
|
|
2503
2545
|
}, {
|
|
@@ -2513,7 +2555,8 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2513
2555
|
previous?: number | undefined;
|
|
2514
2556
|
};
|
|
2515
2557
|
id: string;
|
|
2516
|
-
type: "" | "
|
|
2558
|
+
type: "dataElement" | "indicator" | "programIndicator" | "dataSet" | "customFunction" | "sqlView";
|
|
2559
|
+
name: string;
|
|
2517
2560
|
legends: {
|
|
2518
2561
|
id: string;
|
|
2519
2562
|
startValue: string | number;
|
|
@@ -2530,8 +2573,10 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2530
2573
|
highIsGood: boolean;
|
|
2531
2574
|
effectiveGap: number;
|
|
2532
2575
|
showColors: boolean;
|
|
2533
|
-
|
|
2534
|
-
|
|
2576
|
+
label?: string | undefined;
|
|
2577
|
+
description?: string | undefined;
|
|
2578
|
+
specificTargets?: {
|
|
2579
|
+
type: "orgUnit" | "periods";
|
|
2535
2580
|
legends: {
|
|
2536
2581
|
id: string;
|
|
2537
2582
|
startValue: string | number;
|
|
@@ -2539,9 +2584,7 @@ export declare const scorecardTableCellData: z.ZodObject<{
|
|
|
2539
2584
|
legendDefinitionId: string;
|
|
2540
2585
|
}[];
|
|
2541
2586
|
items: string[];
|
|
2542
|
-
}[];
|
|
2543
|
-
label?: string | undefined;
|
|
2544
|
-
description?: string | undefined;
|
|
2587
|
+
}[] | undefined;
|
|
2545
2588
|
specificTargetsSet?: boolean | undefined;
|
|
2546
2589
|
}[];
|
|
2547
2590
|
}>;
|