@openframe-org/criteria-set-protocol 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,909 @@
1
1
  import { z } from 'zod';
2
- import { Criterion } from '../types';
3
- export declare const criterionSchema: z.Schema<Criterion>;
2
+ export declare const criterionSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"criterion">;
4
+ title: z.ZodString;
5
+ code: z.ZodString;
6
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ documentation: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
8
+ type: z.ZodLiteral<"pdf">;
9
+ label: z.ZodString;
10
+ url: z.ZodString;
11
+ text: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "pdf";
14
+ url: string;
15
+ label: string;
16
+ text: string;
17
+ }, {
18
+ type: "pdf";
19
+ url: string;
20
+ label: string;
21
+ text: string;
22
+ }>, z.ZodObject<{
23
+ type: z.ZodLiteral<"text">;
24
+ label: z.ZodString;
25
+ text: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "text";
28
+ label: string;
29
+ text: string;
30
+ }, {
31
+ type: "text";
32
+ label: string;
33
+ text: string;
34
+ }>, z.ZodObject<{
35
+ type: z.ZodLiteral<"link">;
36
+ label: z.ZodString;
37
+ url: z.ZodString;
38
+ text: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ type: "link";
41
+ url: string;
42
+ label: string;
43
+ text: string;
44
+ }, {
45
+ type: "link";
46
+ url: string;
47
+ label: string;
48
+ text: string;
49
+ }>]>, "many">>;
50
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
51
+ sortOrder: z.ZodOptional<z.ZodNumber>;
52
+ items: z.ZodArray<z.ZodObject<{
53
+ type: z.ZodLiteral<"task-group">;
54
+ title: z.ZodString;
55
+ code: z.ZodString;
56
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ documentation: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
58
+ type: z.ZodLiteral<"pdf">;
59
+ label: z.ZodString;
60
+ url: z.ZodString;
61
+ text: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ type: "pdf";
64
+ url: string;
65
+ label: string;
66
+ text: string;
67
+ }, {
68
+ type: "pdf";
69
+ url: string;
70
+ label: string;
71
+ text: string;
72
+ }>, z.ZodObject<{
73
+ type: z.ZodLiteral<"text">;
74
+ label: z.ZodString;
75
+ text: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "text";
78
+ label: string;
79
+ text: string;
80
+ }, {
81
+ type: "text";
82
+ label: string;
83
+ text: string;
84
+ }>, z.ZodObject<{
85
+ type: z.ZodLiteral<"link">;
86
+ label: z.ZodString;
87
+ url: z.ZodString;
88
+ text: z.ZodString;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: "link";
91
+ url: string;
92
+ label: string;
93
+ text: string;
94
+ }, {
95
+ type: "link";
96
+ url: string;
97
+ label: string;
98
+ text: string;
99
+ }>]>, "many">>;
100
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
101
+ sortOrder: z.ZodOptional<z.ZodNumber>;
102
+ category: z.ZodOptional<z.ZodString>;
103
+ items: z.ZodArray<z.ZodObject<{
104
+ type: z.ZodLiteral<"task">;
105
+ title: z.ZodString;
106
+ code: z.ZodString;
107
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
108
+ documentation: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
109
+ type: z.ZodLiteral<"pdf">;
110
+ label: z.ZodString;
111
+ url: z.ZodString;
112
+ text: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "pdf";
115
+ url: string;
116
+ label: string;
117
+ text: string;
118
+ }, {
119
+ type: "pdf";
120
+ url: string;
121
+ label: string;
122
+ text: string;
123
+ }>, z.ZodObject<{
124
+ type: z.ZodLiteral<"text">;
125
+ label: z.ZodString;
126
+ text: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: "text";
129
+ label: string;
130
+ text: string;
131
+ }, {
132
+ type: "text";
133
+ label: string;
134
+ text: string;
135
+ }>, z.ZodObject<{
136
+ type: z.ZodLiteral<"link">;
137
+ label: z.ZodString;
138
+ url: z.ZodString;
139
+ text: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: "link";
142
+ url: string;
143
+ label: string;
144
+ text: string;
145
+ }, {
146
+ type: "link";
147
+ url: string;
148
+ label: string;
149
+ text: string;
150
+ }>]>, "many">>;
151
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
152
+ sortOrder: z.ZodOptional<z.ZodNumber>;
153
+ description: z.ZodOptional<z.ZodString>;
154
+ items: z.ZodArray<z.ZodObject<{
155
+ type: z.ZodLiteral<"task-item">;
156
+ code: z.ZodString;
157
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ documentation: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
159
+ type: z.ZodLiteral<"pdf">;
160
+ label: z.ZodString;
161
+ url: z.ZodString;
162
+ text: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ type: "pdf";
165
+ url: string;
166
+ label: string;
167
+ text: string;
168
+ }, {
169
+ type: "pdf";
170
+ url: string;
171
+ label: string;
172
+ text: string;
173
+ }>, z.ZodObject<{
174
+ type: z.ZodLiteral<"text">;
175
+ label: z.ZodString;
176
+ text: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "text";
179
+ label: string;
180
+ text: string;
181
+ }, {
182
+ type: "text";
183
+ label: string;
184
+ text: string;
185
+ }>, z.ZodObject<{
186
+ type: z.ZodLiteral<"link">;
187
+ label: z.ZodString;
188
+ url: z.ZodString;
189
+ text: z.ZodString;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "link";
192
+ url: string;
193
+ label: string;
194
+ text: string;
195
+ }, {
196
+ type: "link";
197
+ url: string;
198
+ label: string;
199
+ text: string;
200
+ }>]>, "many">>;
201
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
202
+ sortOrder: z.ZodOptional<z.ZodNumber>;
203
+ definition: z.ZodUnion<[z.ZodObject<{
204
+ type: z.ZodLiteral<"select-single">;
205
+ options: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodOptional<z.ZodString>;
207
+ text: z.ZodString;
208
+ intro: z.ZodOptional<z.ZodString>;
209
+ outro: z.ZodOptional<z.ZodString>;
210
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ value: string | number | boolean | null;
213
+ text: string;
214
+ id?: string | undefined;
215
+ intro?: string | undefined;
216
+ outro?: string | undefined;
217
+ }, {
218
+ value: string | number | boolean | null;
219
+ text: string;
220
+ id?: string | undefined;
221
+ intro?: string | undefined;
222
+ outro?: string | undefined;
223
+ }>, "many">;
224
+ }, "strip", z.ZodTypeAny, {
225
+ type: "select-single";
226
+ options: {
227
+ value: string | number | boolean | null;
228
+ text: string;
229
+ id?: string | undefined;
230
+ intro?: string | undefined;
231
+ outro?: string | undefined;
232
+ }[];
233
+ }, {
234
+ type: "select-single";
235
+ options: {
236
+ value: string | number | boolean | null;
237
+ text: string;
238
+ id?: string | undefined;
239
+ intro?: string | undefined;
240
+ outro?: string | undefined;
241
+ }[];
242
+ }>, z.ZodObject<{
243
+ type: z.ZodLiteral<"select-multiple">;
244
+ options: z.ZodArray<z.ZodObject<{
245
+ id: z.ZodOptional<z.ZodString>;
246
+ text: z.ZodString;
247
+ intro: z.ZodOptional<z.ZodString>;
248
+ outro: z.ZodOptional<z.ZodString>;
249
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ value: string | number | boolean | null;
252
+ text: string;
253
+ id?: string | undefined;
254
+ intro?: string | undefined;
255
+ outro?: string | undefined;
256
+ }, {
257
+ value: string | number | boolean | null;
258
+ text: string;
259
+ id?: string | undefined;
260
+ intro?: string | undefined;
261
+ outro?: string | undefined;
262
+ }>, "many">;
263
+ }, "strip", z.ZodTypeAny, {
264
+ type: "select-multiple";
265
+ options: {
266
+ value: string | number | boolean | null;
267
+ text: string;
268
+ id?: string | undefined;
269
+ intro?: string | undefined;
270
+ outro?: string | undefined;
271
+ }[];
272
+ }, {
273
+ type: "select-multiple";
274
+ options: {
275
+ value: string | number | boolean | null;
276
+ text: string;
277
+ id?: string | undefined;
278
+ intro?: string | undefined;
279
+ outro?: string | undefined;
280
+ }[];
281
+ }>]>;
282
+ description: z.ZodOptional<z.ZodString>;
283
+ providedData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">]>>>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "task-item";
286
+ code: string;
287
+ definition: {
288
+ type: "select-single";
289
+ options: {
290
+ value: string | number | boolean | null;
291
+ text: string;
292
+ id?: string | undefined;
293
+ intro?: string | undefined;
294
+ outro?: string | undefined;
295
+ }[];
296
+ } | {
297
+ type: "select-multiple";
298
+ options: {
299
+ value: string | number | boolean | null;
300
+ text: string;
301
+ id?: string | undefined;
302
+ intro?: string | undefined;
303
+ outro?: string | undefined;
304
+ }[];
305
+ };
306
+ data?: Record<string, string> | undefined;
307
+ description?: string | undefined;
308
+ tags?: string[] | undefined;
309
+ documentation?: ({
310
+ type: "pdf";
311
+ url: string;
312
+ label: string;
313
+ text: string;
314
+ } | {
315
+ type: "text";
316
+ label: string;
317
+ text: string;
318
+ } | {
319
+ type: "link";
320
+ url: string;
321
+ label: string;
322
+ text: string;
323
+ })[] | undefined;
324
+ sortOrder?: number | undefined;
325
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
326
+ }, {
327
+ type: "task-item";
328
+ code: string;
329
+ definition: {
330
+ type: "select-single";
331
+ options: {
332
+ value: string | number | boolean | null;
333
+ text: string;
334
+ id?: string | undefined;
335
+ intro?: string | undefined;
336
+ outro?: string | undefined;
337
+ }[];
338
+ } | {
339
+ type: "select-multiple";
340
+ options: {
341
+ value: string | number | boolean | null;
342
+ text: string;
343
+ id?: string | undefined;
344
+ intro?: string | undefined;
345
+ outro?: string | undefined;
346
+ }[];
347
+ };
348
+ data?: Record<string, string> | undefined;
349
+ description?: string | undefined;
350
+ tags?: string[] | undefined;
351
+ documentation?: ({
352
+ type: "pdf";
353
+ url: string;
354
+ label: string;
355
+ text: string;
356
+ } | {
357
+ type: "text";
358
+ label: string;
359
+ text: string;
360
+ } | {
361
+ type: "link";
362
+ url: string;
363
+ label: string;
364
+ text: string;
365
+ })[] | undefined;
366
+ sortOrder?: number | undefined;
367
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
368
+ }>, "many">;
369
+ }, "strip", z.ZodTypeAny, {
370
+ type: "task";
371
+ code: string;
372
+ title: string;
373
+ items: {
374
+ type: "task-item";
375
+ code: string;
376
+ definition: {
377
+ type: "select-single";
378
+ options: {
379
+ value: string | number | boolean | null;
380
+ text: string;
381
+ id?: string | undefined;
382
+ intro?: string | undefined;
383
+ outro?: string | undefined;
384
+ }[];
385
+ } | {
386
+ type: "select-multiple";
387
+ options: {
388
+ value: string | number | boolean | null;
389
+ text: string;
390
+ id?: string | undefined;
391
+ intro?: string | undefined;
392
+ outro?: string | undefined;
393
+ }[];
394
+ };
395
+ data?: Record<string, string> | undefined;
396
+ description?: string | undefined;
397
+ tags?: string[] | undefined;
398
+ documentation?: ({
399
+ type: "pdf";
400
+ url: string;
401
+ label: string;
402
+ text: string;
403
+ } | {
404
+ type: "text";
405
+ label: string;
406
+ text: string;
407
+ } | {
408
+ type: "link";
409
+ url: string;
410
+ label: string;
411
+ text: string;
412
+ })[] | undefined;
413
+ sortOrder?: number | undefined;
414
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
415
+ }[];
416
+ data?: Record<string, any> | undefined;
417
+ description?: string | undefined;
418
+ tags?: string[] | undefined;
419
+ documentation?: ({
420
+ type: "pdf";
421
+ url: string;
422
+ label: string;
423
+ text: string;
424
+ } | {
425
+ type: "text";
426
+ label: string;
427
+ text: string;
428
+ } | {
429
+ type: "link";
430
+ url: string;
431
+ label: string;
432
+ text: string;
433
+ })[] | undefined;
434
+ sortOrder?: number | undefined;
435
+ }, {
436
+ type: "task";
437
+ code: string;
438
+ title: string;
439
+ items: {
440
+ type: "task-item";
441
+ code: string;
442
+ definition: {
443
+ type: "select-single";
444
+ options: {
445
+ value: string | number | boolean | null;
446
+ text: string;
447
+ id?: string | undefined;
448
+ intro?: string | undefined;
449
+ outro?: string | undefined;
450
+ }[];
451
+ } | {
452
+ type: "select-multiple";
453
+ options: {
454
+ value: string | number | boolean | null;
455
+ text: string;
456
+ id?: string | undefined;
457
+ intro?: string | undefined;
458
+ outro?: string | undefined;
459
+ }[];
460
+ };
461
+ data?: Record<string, string> | undefined;
462
+ description?: string | undefined;
463
+ tags?: string[] | undefined;
464
+ documentation?: ({
465
+ type: "pdf";
466
+ url: string;
467
+ label: string;
468
+ text: string;
469
+ } | {
470
+ type: "text";
471
+ label: string;
472
+ text: string;
473
+ } | {
474
+ type: "link";
475
+ url: string;
476
+ label: string;
477
+ text: string;
478
+ })[] | undefined;
479
+ sortOrder?: number | undefined;
480
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
481
+ }[];
482
+ data?: Record<string, any> | undefined;
483
+ description?: string | undefined;
484
+ tags?: string[] | undefined;
485
+ documentation?: ({
486
+ type: "pdf";
487
+ url: string;
488
+ label: string;
489
+ text: string;
490
+ } | {
491
+ type: "text";
492
+ label: string;
493
+ text: string;
494
+ } | {
495
+ type: "link";
496
+ url: string;
497
+ label: string;
498
+ text: string;
499
+ })[] | undefined;
500
+ sortOrder?: number | undefined;
501
+ }>, "many">;
502
+ }, "strip", z.ZodTypeAny, {
503
+ type: "task-group";
504
+ code: string;
505
+ title: string;
506
+ items: {
507
+ type: "task";
508
+ code: string;
509
+ title: string;
510
+ items: {
511
+ type: "task-item";
512
+ code: string;
513
+ definition: {
514
+ type: "select-single";
515
+ options: {
516
+ value: string | number | boolean | null;
517
+ text: string;
518
+ id?: string | undefined;
519
+ intro?: string | undefined;
520
+ outro?: string | undefined;
521
+ }[];
522
+ } | {
523
+ type: "select-multiple";
524
+ options: {
525
+ value: string | number | boolean | null;
526
+ text: string;
527
+ id?: string | undefined;
528
+ intro?: string | undefined;
529
+ outro?: string | undefined;
530
+ }[];
531
+ };
532
+ data?: Record<string, string> | undefined;
533
+ description?: string | undefined;
534
+ tags?: string[] | undefined;
535
+ documentation?: ({
536
+ type: "pdf";
537
+ url: string;
538
+ label: string;
539
+ text: string;
540
+ } | {
541
+ type: "text";
542
+ label: string;
543
+ text: string;
544
+ } | {
545
+ type: "link";
546
+ url: string;
547
+ label: string;
548
+ text: string;
549
+ })[] | undefined;
550
+ sortOrder?: number | undefined;
551
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
552
+ }[];
553
+ data?: Record<string, any> | undefined;
554
+ description?: string | undefined;
555
+ tags?: string[] | undefined;
556
+ documentation?: ({
557
+ type: "pdf";
558
+ url: string;
559
+ label: string;
560
+ text: string;
561
+ } | {
562
+ type: "text";
563
+ label: string;
564
+ text: string;
565
+ } | {
566
+ type: "link";
567
+ url: string;
568
+ label: string;
569
+ text: string;
570
+ })[] | undefined;
571
+ sortOrder?: number | undefined;
572
+ }[];
573
+ data?: Record<string, any> | undefined;
574
+ tags?: string[] | undefined;
575
+ documentation?: ({
576
+ type: "pdf";
577
+ url: string;
578
+ label: string;
579
+ text: string;
580
+ } | {
581
+ type: "text";
582
+ label: string;
583
+ text: string;
584
+ } | {
585
+ type: "link";
586
+ url: string;
587
+ label: string;
588
+ text: string;
589
+ })[] | undefined;
590
+ sortOrder?: number | undefined;
591
+ category?: string | undefined;
592
+ }, {
593
+ type: "task-group";
594
+ code: string;
595
+ title: string;
596
+ items: {
597
+ type: "task";
598
+ code: string;
599
+ title: string;
600
+ items: {
601
+ type: "task-item";
602
+ code: string;
603
+ definition: {
604
+ type: "select-single";
605
+ options: {
606
+ value: string | number | boolean | null;
607
+ text: string;
608
+ id?: string | undefined;
609
+ intro?: string | undefined;
610
+ outro?: string | undefined;
611
+ }[];
612
+ } | {
613
+ type: "select-multiple";
614
+ options: {
615
+ value: string | number | boolean | null;
616
+ text: string;
617
+ id?: string | undefined;
618
+ intro?: string | undefined;
619
+ outro?: string | undefined;
620
+ }[];
621
+ };
622
+ data?: Record<string, string> | undefined;
623
+ description?: string | undefined;
624
+ tags?: string[] | undefined;
625
+ documentation?: ({
626
+ type: "pdf";
627
+ url: string;
628
+ label: string;
629
+ text: string;
630
+ } | {
631
+ type: "text";
632
+ label: string;
633
+ text: string;
634
+ } | {
635
+ type: "link";
636
+ url: string;
637
+ label: string;
638
+ text: string;
639
+ })[] | undefined;
640
+ sortOrder?: number | undefined;
641
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
642
+ }[];
643
+ data?: Record<string, any> | undefined;
644
+ description?: string | undefined;
645
+ tags?: string[] | undefined;
646
+ documentation?: ({
647
+ type: "pdf";
648
+ url: string;
649
+ label: string;
650
+ text: string;
651
+ } | {
652
+ type: "text";
653
+ label: string;
654
+ text: string;
655
+ } | {
656
+ type: "link";
657
+ url: string;
658
+ label: string;
659
+ text: string;
660
+ })[] | undefined;
661
+ sortOrder?: number | undefined;
662
+ }[];
663
+ data?: Record<string, any> | undefined;
664
+ tags?: string[] | undefined;
665
+ documentation?: ({
666
+ type: "pdf";
667
+ url: string;
668
+ label: string;
669
+ text: string;
670
+ } | {
671
+ type: "text";
672
+ label: string;
673
+ text: string;
674
+ } | {
675
+ type: "link";
676
+ url: string;
677
+ label: string;
678
+ text: string;
679
+ })[] | undefined;
680
+ sortOrder?: number | undefined;
681
+ category?: string | undefined;
682
+ }>, "many">;
683
+ }, "strip", z.ZodTypeAny, {
684
+ type: "criterion";
685
+ code: string;
686
+ title: string;
687
+ items: {
688
+ type: "task-group";
689
+ code: string;
690
+ title: string;
691
+ items: {
692
+ type: "task";
693
+ code: string;
694
+ title: string;
695
+ items: {
696
+ type: "task-item";
697
+ code: string;
698
+ definition: {
699
+ type: "select-single";
700
+ options: {
701
+ value: string | number | boolean | null;
702
+ text: string;
703
+ id?: string | undefined;
704
+ intro?: string | undefined;
705
+ outro?: string | undefined;
706
+ }[];
707
+ } | {
708
+ type: "select-multiple";
709
+ options: {
710
+ value: string | number | boolean | null;
711
+ text: string;
712
+ id?: string | undefined;
713
+ intro?: string | undefined;
714
+ outro?: string | undefined;
715
+ }[];
716
+ };
717
+ data?: Record<string, string> | undefined;
718
+ description?: string | undefined;
719
+ tags?: string[] | undefined;
720
+ documentation?: ({
721
+ type: "pdf";
722
+ url: string;
723
+ label: string;
724
+ text: string;
725
+ } | {
726
+ type: "text";
727
+ label: string;
728
+ text: string;
729
+ } | {
730
+ type: "link";
731
+ url: string;
732
+ label: string;
733
+ text: string;
734
+ })[] | undefined;
735
+ sortOrder?: number | undefined;
736
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
737
+ }[];
738
+ data?: Record<string, any> | undefined;
739
+ description?: string | undefined;
740
+ tags?: string[] | undefined;
741
+ documentation?: ({
742
+ type: "pdf";
743
+ url: string;
744
+ label: string;
745
+ text: string;
746
+ } | {
747
+ type: "text";
748
+ label: string;
749
+ text: string;
750
+ } | {
751
+ type: "link";
752
+ url: string;
753
+ label: string;
754
+ text: string;
755
+ })[] | undefined;
756
+ sortOrder?: number | undefined;
757
+ }[];
758
+ data?: Record<string, any> | undefined;
759
+ tags?: string[] | undefined;
760
+ documentation?: ({
761
+ type: "pdf";
762
+ url: string;
763
+ label: string;
764
+ text: string;
765
+ } | {
766
+ type: "text";
767
+ label: string;
768
+ text: string;
769
+ } | {
770
+ type: "link";
771
+ url: string;
772
+ label: string;
773
+ text: string;
774
+ })[] | undefined;
775
+ sortOrder?: number | undefined;
776
+ category?: string | undefined;
777
+ }[];
778
+ data?: Record<string, any> | undefined;
779
+ tags?: string[] | undefined;
780
+ documentation?: ({
781
+ type: "pdf";
782
+ url: string;
783
+ label: string;
784
+ text: string;
785
+ } | {
786
+ type: "text";
787
+ label: string;
788
+ text: string;
789
+ } | {
790
+ type: "link";
791
+ url: string;
792
+ label: string;
793
+ text: string;
794
+ })[] | undefined;
795
+ sortOrder?: number | undefined;
796
+ }, {
797
+ type: "criterion";
798
+ code: string;
799
+ title: string;
800
+ items: {
801
+ type: "task-group";
802
+ code: string;
803
+ title: string;
804
+ items: {
805
+ type: "task";
806
+ code: string;
807
+ title: string;
808
+ items: {
809
+ type: "task-item";
810
+ code: string;
811
+ definition: {
812
+ type: "select-single";
813
+ options: {
814
+ value: string | number | boolean | null;
815
+ text: string;
816
+ id?: string | undefined;
817
+ intro?: string | undefined;
818
+ outro?: string | undefined;
819
+ }[];
820
+ } | {
821
+ type: "select-multiple";
822
+ options: {
823
+ value: string | number | boolean | null;
824
+ text: string;
825
+ id?: string | undefined;
826
+ intro?: string | undefined;
827
+ outro?: string | undefined;
828
+ }[];
829
+ };
830
+ data?: Record<string, string> | undefined;
831
+ description?: string | undefined;
832
+ tags?: string[] | undefined;
833
+ documentation?: ({
834
+ type: "pdf";
835
+ url: string;
836
+ label: string;
837
+ text: string;
838
+ } | {
839
+ type: "text";
840
+ label: string;
841
+ text: string;
842
+ } | {
843
+ type: "link";
844
+ url: string;
845
+ label: string;
846
+ text: string;
847
+ })[] | undefined;
848
+ sortOrder?: number | undefined;
849
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
850
+ }[];
851
+ data?: Record<string, any> | undefined;
852
+ description?: string | undefined;
853
+ tags?: string[] | undefined;
854
+ documentation?: ({
855
+ type: "pdf";
856
+ url: string;
857
+ label: string;
858
+ text: string;
859
+ } | {
860
+ type: "text";
861
+ label: string;
862
+ text: string;
863
+ } | {
864
+ type: "link";
865
+ url: string;
866
+ label: string;
867
+ text: string;
868
+ })[] | undefined;
869
+ sortOrder?: number | undefined;
870
+ }[];
871
+ data?: Record<string, any> | undefined;
872
+ tags?: string[] | undefined;
873
+ documentation?: ({
874
+ type: "pdf";
875
+ url: string;
876
+ label: string;
877
+ text: string;
878
+ } | {
879
+ type: "text";
880
+ label: string;
881
+ text: string;
882
+ } | {
883
+ type: "link";
884
+ url: string;
885
+ label: string;
886
+ text: string;
887
+ })[] | undefined;
888
+ sortOrder?: number | undefined;
889
+ category?: string | undefined;
890
+ }[];
891
+ data?: Record<string, any> | undefined;
892
+ tags?: string[] | undefined;
893
+ documentation?: ({
894
+ type: "pdf";
895
+ url: string;
896
+ label: string;
897
+ text: string;
898
+ } | {
899
+ type: "text";
900
+ label: string;
901
+ text: string;
902
+ } | {
903
+ type: "link";
904
+ url: string;
905
+ label: string;
906
+ text: string;
907
+ })[] | undefined;
908
+ sortOrder?: number | undefined;
909
+ }>;