@openframe-org/criteria-set-protocol 2.0.13 → 2.0.14
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/v1/schemas/common.d.ts +3 -0
- package/dist/v1/schemas/common.js +1 -0
- package/dist/v1/schemas/criteria-tree.d.ts +130 -45
- package/dist/v1/schemas/criterion.d.ts +24 -9
- package/dist/v1/schemas/task-group.d.ts +15 -7
- package/dist/v1/schemas/task-item.d.ts +3 -0
- package/dist/v1/schemas/task.d.ts +8 -8
- package/dist/v1/schemas/task.js +0 -2
- package/dist/v1/schemas/theme.d.ts +35 -11
- package/dist/v1/utils.d.ts +15 -4
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare const criterionOptionsSchema: z.ZodObject<{
|
|
|
12
12
|
export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
13
13
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
15
16
|
code: z.ZodString;
|
|
16
17
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
18
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -103,6 +104,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
103
104
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
|
|
104
105
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
105
106
|
title: z.ZodString;
|
|
107
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
106
108
|
code: z.ZodString;
|
|
107
109
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
108
110
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -195,6 +197,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
195
197
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
|
|
196
198
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
197
199
|
title: z.ZodString;
|
|
200
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
198
201
|
code: z.ZodString;
|
|
199
202
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
200
203
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -287,6 +290,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
287
290
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
288
291
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
289
292
|
title: z.ZodString;
|
|
293
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
290
294
|
code: z.ZodString;
|
|
291
295
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
292
296
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -599,6 +603,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
599
603
|
hideCode?: boolean | undefined;
|
|
600
604
|
} | undefined;
|
|
601
605
|
description?: string | undefined;
|
|
606
|
+
longFormTitle?: string | undefined;
|
|
602
607
|
tags?: string[] | undefined;
|
|
603
608
|
documentation?: ({
|
|
604
609
|
type: "pdf";
|
|
@@ -668,6 +673,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
668
673
|
hideCode?: boolean | undefined;
|
|
669
674
|
} | undefined;
|
|
670
675
|
description?: string | undefined;
|
|
676
|
+
longFormTitle?: string | undefined;
|
|
671
677
|
tags?: string[] | undefined;
|
|
672
678
|
documentation?: ({
|
|
673
679
|
type: "pdf";
|
|
@@ -690,13 +696,10 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
690
696
|
}>>, "many">;
|
|
691
697
|
options: z.ZodOptional<z.ZodObject<{
|
|
692
698
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
693
|
-
includeCodeInLongFormName: z.ZodOptional<z.ZodBoolean>;
|
|
694
699
|
}, "strip", z.ZodTypeAny, {
|
|
695
700
|
hideCode?: boolean | undefined;
|
|
696
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
697
701
|
}, {
|
|
698
702
|
hideCode?: boolean | undefined;
|
|
699
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
700
703
|
}>>;
|
|
701
704
|
}>, "strip", z.ZodTypeAny, {
|
|
702
705
|
type: "task";
|
|
@@ -752,6 +755,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
752
755
|
hideCode?: boolean | undefined;
|
|
753
756
|
} | undefined;
|
|
754
757
|
description?: string | undefined;
|
|
758
|
+
longFormTitle?: string | undefined;
|
|
755
759
|
tags?: string[] | undefined;
|
|
756
760
|
documentation?: ({
|
|
757
761
|
type: "pdf";
|
|
@@ -786,9 +790,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
786
790
|
} | undefined;
|
|
787
791
|
options?: {
|
|
788
792
|
hideCode?: boolean | undefined;
|
|
789
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
790
793
|
} | undefined;
|
|
791
794
|
description?: string | undefined;
|
|
795
|
+
longFormTitle?: string | undefined;
|
|
792
796
|
tags?: string[] | undefined;
|
|
793
797
|
documentation?: ({
|
|
794
798
|
type: "pdf";
|
|
@@ -860,6 +864,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
860
864
|
hideCode?: boolean | undefined;
|
|
861
865
|
} | undefined;
|
|
862
866
|
description?: string | undefined;
|
|
867
|
+
longFormTitle?: string | undefined;
|
|
863
868
|
tags?: string[] | undefined;
|
|
864
869
|
documentation?: ({
|
|
865
870
|
type: "pdf";
|
|
@@ -894,9 +899,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
894
899
|
} | undefined;
|
|
895
900
|
options?: {
|
|
896
901
|
hideCode?: boolean | undefined;
|
|
897
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
898
902
|
} | undefined;
|
|
899
903
|
description?: string | undefined;
|
|
904
|
+
longFormTitle?: string | undefined;
|
|
900
905
|
tags?: string[] | undefined;
|
|
901
906
|
documentation?: ({
|
|
902
907
|
type: "pdf";
|
|
@@ -983,6 +988,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
983
988
|
hideCode?: boolean | undefined;
|
|
984
989
|
} | undefined;
|
|
985
990
|
description?: string | undefined;
|
|
991
|
+
longFormTitle?: string | undefined;
|
|
986
992
|
tags?: string[] | undefined;
|
|
987
993
|
documentation?: ({
|
|
988
994
|
type: "pdf";
|
|
@@ -1017,9 +1023,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1017
1023
|
} | undefined;
|
|
1018
1024
|
options?: {
|
|
1019
1025
|
hideCode?: boolean | undefined;
|
|
1020
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
1021
1026
|
} | undefined;
|
|
1022
1027
|
description?: string | undefined;
|
|
1028
|
+
longFormTitle?: string | undefined;
|
|
1023
1029
|
tags?: string[] | undefined;
|
|
1024
1030
|
documentation?: ({
|
|
1025
1031
|
type: "pdf";
|
|
@@ -1054,6 +1060,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1054
1060
|
hideCode?: boolean | undefined;
|
|
1055
1061
|
hideFromHierarchy?: boolean | undefined;
|
|
1056
1062
|
} | undefined;
|
|
1063
|
+
longFormTitle?: string | undefined;
|
|
1057
1064
|
tags?: string[] | undefined;
|
|
1058
1065
|
documentation?: ({
|
|
1059
1066
|
type: "pdf";
|
|
@@ -1130,6 +1137,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1130
1137
|
hideCode?: boolean | undefined;
|
|
1131
1138
|
} | undefined;
|
|
1132
1139
|
description?: string | undefined;
|
|
1140
|
+
longFormTitle?: string | undefined;
|
|
1133
1141
|
tags?: string[] | undefined;
|
|
1134
1142
|
documentation?: ({
|
|
1135
1143
|
type: "pdf";
|
|
@@ -1164,9 +1172,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1164
1172
|
} | undefined;
|
|
1165
1173
|
options?: {
|
|
1166
1174
|
hideCode?: boolean | undefined;
|
|
1167
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
1168
1175
|
} | undefined;
|
|
1169
1176
|
description?: string | undefined;
|
|
1177
|
+
longFormTitle?: string | undefined;
|
|
1170
1178
|
tags?: string[] | undefined;
|
|
1171
1179
|
documentation?: ({
|
|
1172
1180
|
type: "pdf";
|
|
@@ -1201,6 +1209,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1201
1209
|
hideCode?: boolean | undefined;
|
|
1202
1210
|
hideFromHierarchy?: boolean | undefined;
|
|
1203
1211
|
} | undefined;
|
|
1212
|
+
longFormTitle?: string | undefined;
|
|
1204
1213
|
tags?: string[] | undefined;
|
|
1205
1214
|
documentation?: ({
|
|
1206
1215
|
type: "pdf";
|
|
@@ -1292,6 +1301,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1292
1301
|
hideCode?: boolean | undefined;
|
|
1293
1302
|
} | undefined;
|
|
1294
1303
|
description?: string | undefined;
|
|
1304
|
+
longFormTitle?: string | undefined;
|
|
1295
1305
|
tags?: string[] | undefined;
|
|
1296
1306
|
documentation?: ({
|
|
1297
1307
|
type: "pdf";
|
|
@@ -1326,9 +1336,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1326
1336
|
} | undefined;
|
|
1327
1337
|
options?: {
|
|
1328
1338
|
hideCode?: boolean | undefined;
|
|
1329
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
1330
1339
|
} | undefined;
|
|
1331
1340
|
description?: string | undefined;
|
|
1341
|
+
longFormTitle?: string | undefined;
|
|
1332
1342
|
tags?: string[] | undefined;
|
|
1333
1343
|
documentation?: ({
|
|
1334
1344
|
type: "pdf";
|
|
@@ -1363,6 +1373,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1363
1373
|
hideCode?: boolean | undefined;
|
|
1364
1374
|
hideFromHierarchy?: boolean | undefined;
|
|
1365
1375
|
} | undefined;
|
|
1376
|
+
longFormTitle?: string | undefined;
|
|
1366
1377
|
tags?: string[] | undefined;
|
|
1367
1378
|
documentation?: ({
|
|
1368
1379
|
type: "pdf";
|
|
@@ -1398,6 +1409,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1398
1409
|
hideCode?: boolean | undefined;
|
|
1399
1410
|
hideFromHierarchy?: boolean | undefined;
|
|
1400
1411
|
} | undefined;
|
|
1412
|
+
longFormTitle?: string | undefined;
|
|
1401
1413
|
tags?: string[] | undefined;
|
|
1402
1414
|
documentation?: ({
|
|
1403
1415
|
type: "pdf";
|
|
@@ -1477,6 +1489,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1477
1489
|
hideCode?: boolean | undefined;
|
|
1478
1490
|
} | undefined;
|
|
1479
1491
|
description?: string | undefined;
|
|
1492
|
+
longFormTitle?: string | undefined;
|
|
1480
1493
|
tags?: string[] | undefined;
|
|
1481
1494
|
documentation?: ({
|
|
1482
1495
|
type: "pdf";
|
|
@@ -1511,9 +1524,9 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1511
1524
|
} | undefined;
|
|
1512
1525
|
options?: {
|
|
1513
1526
|
hideCode?: boolean | undefined;
|
|
1514
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
1515
1527
|
} | undefined;
|
|
1516
1528
|
description?: string | undefined;
|
|
1529
|
+
longFormTitle?: string | undefined;
|
|
1517
1530
|
tags?: string[] | undefined;
|
|
1518
1531
|
documentation?: ({
|
|
1519
1532
|
type: "pdf";
|
|
@@ -1548,6 +1561,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1548
1561
|
hideCode?: boolean | undefined;
|
|
1549
1562
|
hideFromHierarchy?: boolean | undefined;
|
|
1550
1563
|
} | undefined;
|
|
1564
|
+
longFormTitle?: string | undefined;
|
|
1551
1565
|
tags?: string[] | undefined;
|
|
1552
1566
|
documentation?: ({
|
|
1553
1567
|
type: "pdf";
|
|
@@ -1583,6 +1597,7 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1583
1597
|
hideCode?: boolean | undefined;
|
|
1584
1598
|
hideFromHierarchy?: boolean | undefined;
|
|
1585
1599
|
} | undefined;
|
|
1600
|
+
longFormTitle?: string | undefined;
|
|
1586
1601
|
tags?: string[] | undefined;
|
|
1587
1602
|
documentation?: ({
|
|
1588
1603
|
type: "pdf";
|
|
@@ -12,6 +12,7 @@ export declare const taskGroupOptionsSchema: z.ZodObject<{
|
|
|
12
12
|
export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
13
13
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
14
14
|
title: z.ZodString;
|
|
15
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
15
16
|
code: z.ZodString;
|
|
16
17
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
18
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -104,6 +105,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
104
105
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
|
|
105
106
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
106
107
|
title: z.ZodString;
|
|
108
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
107
109
|
code: z.ZodString;
|
|
108
110
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
111
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -196,6 +198,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
196
198
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
197
199
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
198
200
|
title: z.ZodString;
|
|
201
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
199
202
|
code: z.ZodString;
|
|
200
203
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
201
204
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -508,6 +511,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
508
511
|
hideCode?: boolean | undefined;
|
|
509
512
|
} | undefined;
|
|
510
513
|
description?: string | undefined;
|
|
514
|
+
longFormTitle?: string | undefined;
|
|
511
515
|
tags?: string[] | undefined;
|
|
512
516
|
documentation?: ({
|
|
513
517
|
type: "pdf";
|
|
@@ -577,6 +581,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
577
581
|
hideCode?: boolean | undefined;
|
|
578
582
|
} | undefined;
|
|
579
583
|
description?: string | undefined;
|
|
584
|
+
longFormTitle?: string | undefined;
|
|
580
585
|
tags?: string[] | undefined;
|
|
581
586
|
documentation?: ({
|
|
582
587
|
type: "pdf";
|
|
@@ -599,13 +604,10 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
599
604
|
}>>, "many">;
|
|
600
605
|
options: z.ZodOptional<z.ZodObject<{
|
|
601
606
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
602
|
-
includeCodeInLongFormName: z.ZodOptional<z.ZodBoolean>;
|
|
603
607
|
}, "strip", z.ZodTypeAny, {
|
|
604
608
|
hideCode?: boolean | undefined;
|
|
605
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
606
609
|
}, {
|
|
607
610
|
hideCode?: boolean | undefined;
|
|
608
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
609
611
|
}>>;
|
|
610
612
|
}>, "strip", z.ZodTypeAny, {
|
|
611
613
|
type: "task";
|
|
@@ -661,6 +663,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
661
663
|
hideCode?: boolean | undefined;
|
|
662
664
|
} | undefined;
|
|
663
665
|
description?: string | undefined;
|
|
666
|
+
longFormTitle?: string | undefined;
|
|
664
667
|
tags?: string[] | undefined;
|
|
665
668
|
documentation?: ({
|
|
666
669
|
type: "pdf";
|
|
@@ -695,9 +698,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
695
698
|
} | undefined;
|
|
696
699
|
options?: {
|
|
697
700
|
hideCode?: boolean | undefined;
|
|
698
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
699
701
|
} | undefined;
|
|
700
702
|
description?: string | undefined;
|
|
703
|
+
longFormTitle?: string | undefined;
|
|
701
704
|
tags?: string[] | undefined;
|
|
702
705
|
documentation?: ({
|
|
703
706
|
type: "pdf";
|
|
@@ -769,6 +772,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
769
772
|
hideCode?: boolean | undefined;
|
|
770
773
|
} | undefined;
|
|
771
774
|
description?: string | undefined;
|
|
775
|
+
longFormTitle?: string | undefined;
|
|
772
776
|
tags?: string[] | undefined;
|
|
773
777
|
documentation?: ({
|
|
774
778
|
type: "pdf";
|
|
@@ -803,9 +807,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
803
807
|
} | undefined;
|
|
804
808
|
options?: {
|
|
805
809
|
hideCode?: boolean | undefined;
|
|
806
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
807
810
|
} | undefined;
|
|
808
811
|
description?: string | undefined;
|
|
812
|
+
longFormTitle?: string | undefined;
|
|
809
813
|
tags?: string[] | undefined;
|
|
810
814
|
documentation?: ({
|
|
811
815
|
type: "pdf";
|
|
@@ -892,6 +896,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
892
896
|
hideCode?: boolean | undefined;
|
|
893
897
|
} | undefined;
|
|
894
898
|
description?: string | undefined;
|
|
899
|
+
longFormTitle?: string | undefined;
|
|
895
900
|
tags?: string[] | undefined;
|
|
896
901
|
documentation?: ({
|
|
897
902
|
type: "pdf";
|
|
@@ -926,9 +931,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
926
931
|
} | undefined;
|
|
927
932
|
options?: {
|
|
928
933
|
hideCode?: boolean | undefined;
|
|
929
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
930
934
|
} | undefined;
|
|
931
935
|
description?: string | undefined;
|
|
936
|
+
longFormTitle?: string | undefined;
|
|
932
937
|
tags?: string[] | undefined;
|
|
933
938
|
documentation?: ({
|
|
934
939
|
type: "pdf";
|
|
@@ -963,6 +968,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
963
968
|
hideCode?: boolean | undefined;
|
|
964
969
|
hideFromHierarchy?: boolean | undefined;
|
|
965
970
|
} | undefined;
|
|
971
|
+
longFormTitle?: string | undefined;
|
|
966
972
|
tags?: string[] | undefined;
|
|
967
973
|
documentation?: ({
|
|
968
974
|
type: "pdf";
|
|
@@ -1039,6 +1045,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1039
1045
|
hideCode?: boolean | undefined;
|
|
1040
1046
|
} | undefined;
|
|
1041
1047
|
description?: string | undefined;
|
|
1048
|
+
longFormTitle?: string | undefined;
|
|
1042
1049
|
tags?: string[] | undefined;
|
|
1043
1050
|
documentation?: ({
|
|
1044
1051
|
type: "pdf";
|
|
@@ -1073,9 +1080,9 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1073
1080
|
} | undefined;
|
|
1074
1081
|
options?: {
|
|
1075
1082
|
hideCode?: boolean | undefined;
|
|
1076
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
1077
1083
|
} | undefined;
|
|
1078
1084
|
description?: string | undefined;
|
|
1085
|
+
longFormTitle?: string | undefined;
|
|
1079
1086
|
tags?: string[] | undefined;
|
|
1080
1087
|
documentation?: ({
|
|
1081
1088
|
type: "pdf";
|
|
@@ -1110,6 +1117,7 @@ export declare const taskGroupSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1110
1117
|
hideCode?: boolean | undefined;
|
|
1111
1118
|
hideFromHierarchy?: boolean | undefined;
|
|
1112
1119
|
} | undefined;
|
|
1120
|
+
longFormTitle?: string | undefined;
|
|
1113
1121
|
tags?: string[] | undefined;
|
|
1114
1122
|
documentation?: ({
|
|
1115
1123
|
type: "pdf";
|
|
@@ -322,6 +322,7 @@ export declare const taskItemOptionsSchema: z.ZodObject<{
|
|
|
322
322
|
export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
323
323
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
324
324
|
title: z.ZodString;
|
|
325
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
325
326
|
code: z.ZodString;
|
|
326
327
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
327
328
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -634,6 +635,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
634
635
|
hideCode?: boolean | undefined;
|
|
635
636
|
} | undefined;
|
|
636
637
|
description?: string | undefined;
|
|
638
|
+
longFormTitle?: string | undefined;
|
|
637
639
|
tags?: string[] | undefined;
|
|
638
640
|
documentation?: ({
|
|
639
641
|
type: "pdf";
|
|
@@ -703,6 +705,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
703
705
|
hideCode?: boolean | undefined;
|
|
704
706
|
} | undefined;
|
|
705
707
|
description?: string | undefined;
|
|
708
|
+
longFormTitle?: string | undefined;
|
|
706
709
|
tags?: string[] | undefined;
|
|
707
710
|
documentation?: ({
|
|
708
711
|
type: "pdf";
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const taskOptionsSchema: z.ZodObject<{
|
|
3
3
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
-
includeCodeInLongFormName: z.ZodOptional<z.ZodBoolean>;
|
|
5
4
|
}, "strip", z.ZodTypeAny, {
|
|
6
5
|
hideCode?: boolean | undefined;
|
|
7
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
8
6
|
}, {
|
|
9
7
|
hideCode?: boolean | undefined;
|
|
10
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
11
8
|
}>;
|
|
12
9
|
export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
13
10
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
14
11
|
title: z.ZodString;
|
|
12
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
15
13
|
code: z.ZodString;
|
|
16
14
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
15
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -104,6 +102,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
104
102
|
items: z.ZodArray<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
105
103
|
type: z.ZodEnum<["theme", "criterion", "task-group", "task", "task-item"]>;
|
|
106
104
|
title: z.ZodString;
|
|
105
|
+
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
107
106
|
code: z.ZodString;
|
|
108
107
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
108
|
documentation: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -416,6 +415,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
416
415
|
hideCode?: boolean | undefined;
|
|
417
416
|
} | undefined;
|
|
418
417
|
description?: string | undefined;
|
|
418
|
+
longFormTitle?: string | undefined;
|
|
419
419
|
tags?: string[] | undefined;
|
|
420
420
|
documentation?: ({
|
|
421
421
|
type: "pdf";
|
|
@@ -485,6 +485,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
485
485
|
hideCode?: boolean | undefined;
|
|
486
486
|
} | undefined;
|
|
487
487
|
description?: string | undefined;
|
|
488
|
+
longFormTitle?: string | undefined;
|
|
488
489
|
tags?: string[] | undefined;
|
|
489
490
|
documentation?: ({
|
|
490
491
|
type: "pdf";
|
|
@@ -507,13 +508,10 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
507
508
|
}>>, "many">;
|
|
508
509
|
options: z.ZodOptional<z.ZodObject<{
|
|
509
510
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
includeCodeInLongFormName: z.ZodOptional<z.ZodBoolean>;
|
|
511
511
|
}, "strip", z.ZodTypeAny, {
|
|
512
512
|
hideCode?: boolean | undefined;
|
|
513
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
514
513
|
}, {
|
|
515
514
|
hideCode?: boolean | undefined;
|
|
516
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
517
515
|
}>>;
|
|
518
516
|
}>, "strip", z.ZodTypeAny, {
|
|
519
517
|
type: "task";
|
|
@@ -569,6 +567,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
569
567
|
hideCode?: boolean | undefined;
|
|
570
568
|
} | undefined;
|
|
571
569
|
description?: string | undefined;
|
|
570
|
+
longFormTitle?: string | undefined;
|
|
572
571
|
tags?: string[] | undefined;
|
|
573
572
|
documentation?: ({
|
|
574
573
|
type: "pdf";
|
|
@@ -603,9 +602,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
603
602
|
} | undefined;
|
|
604
603
|
options?: {
|
|
605
604
|
hideCode?: boolean | undefined;
|
|
606
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
607
605
|
} | undefined;
|
|
608
606
|
description?: string | undefined;
|
|
607
|
+
longFormTitle?: string | undefined;
|
|
609
608
|
tags?: string[] | undefined;
|
|
610
609
|
documentation?: ({
|
|
611
610
|
type: "pdf";
|
|
@@ -677,6 +676,7 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
677
676
|
hideCode?: boolean | undefined;
|
|
678
677
|
} | undefined;
|
|
679
678
|
description?: string | undefined;
|
|
679
|
+
longFormTitle?: string | undefined;
|
|
680
680
|
tags?: string[] | undefined;
|
|
681
681
|
documentation?: ({
|
|
682
682
|
type: "pdf";
|
|
@@ -711,9 +711,9 @@ export declare const taskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
711
711
|
} | undefined;
|
|
712
712
|
options?: {
|
|
713
713
|
hideCode?: boolean | undefined;
|
|
714
|
-
includeCodeInLongFormName?: boolean | undefined;
|
|
715
714
|
} | undefined;
|
|
716
715
|
description?: string | undefined;
|
|
716
|
+
longFormTitle?: string | undefined;
|
|
717
717
|
tags?: string[] | undefined;
|
|
718
718
|
documentation?: ({
|
|
719
719
|
type: "pdf";
|
package/dist/v1/schemas/task.js
CHANGED
|
@@ -7,8 +7,6 @@ const common_1 = require("./common");
|
|
|
7
7
|
exports.taskOptionsSchema = zod_1.z.object({
|
|
8
8
|
// Whether to hide the code of the task in the UI, in general
|
|
9
9
|
hideCode: zod_1.z.boolean().optional(),
|
|
10
|
-
// Whether to include the code of the task in the long form name, ie in task descriptions (as opposed to navigation)
|
|
11
|
-
includeCodeInLongFormName: zod_1.z.boolean().optional(),
|
|
12
10
|
});
|
|
13
11
|
exports.taskSchema = common_1.abstractElementSchema.extend({
|
|
14
12
|
type: zod_1.z.literal("task"),
|