@openframe-org/criteria-set-protocol 2.1.4 → 2.1.5
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 +38 -0
- package/dist/v1/schemas/common.js +34 -1
- package/dist/v1/schemas/criteria-set.d.ts +3 -3
- package/dist/v1/schemas/criteria-set.js +1 -3
- package/dist/v1/schemas/criteria-tree.d.ts +651 -411
- package/dist/v1/schemas/criteria-tree.js +0 -1
- package/dist/v1/schemas/criterion.d.ts +142 -83
- package/dist/v1/schemas/criterion.js +6 -23
- package/dist/v1/schemas/task-group.d.ts +26 -30
- package/dist/v1/schemas/task-group.js +2 -10
- package/dist/v1/schemas/task.d.ts +20 -20
- package/dist/v1/schemas/task.js +1 -6
- package/dist/v1/schemas/theme.d.ts +250 -137
- package/dist/v1/schemas/theme.js +3 -22
- package/dist/v1/types/criteria.d.ts +1 -2
- package/dist/v1/utils.d.ts +13 -3
- package/dist/v1/utils.js +13 -4
- package/package.json +1 -1
|
@@ -25,7 +25,6 @@ exports.criteriaTreeSchema = data_map_1.dataMapSchema
|
|
|
25
25
|
.optional()
|
|
26
26
|
.describe("Definitions of the attainable certifications"),
|
|
27
27
|
options: criteria_set_1.criteriaSetOptionsSchema
|
|
28
|
-
.optional()
|
|
29
28
|
.describe("Configuration options for the criteria set display and behavior"),
|
|
30
29
|
});
|
|
31
30
|
exports.criteriaTreeElementSchema = zod_1.z
|
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const criterionOptionsSchema: z.ZodObject<{
|
|
3
|
-
breadcrumbTextFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4
|
-
documentTreeFolderTextFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5
|
-
hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
-
hideFromDocumentTree: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2
|
+
export declare const criterionOptionsSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
7
3
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
4
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
breadcrumbTextFormat: string;
|
|
10
|
-
documentTreeFolderTextFormat: string;
|
|
11
|
-
hideFromBreadcrumbs: boolean;
|
|
12
|
-
hideFromDocumentTree: boolean;
|
|
13
5
|
hideCodeInReport: boolean;
|
|
14
6
|
}, {
|
|
15
|
-
breadcrumbTextFormat?: string | undefined;
|
|
16
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
17
|
-
hideFromBreadcrumbs?: boolean | undefined;
|
|
18
|
-
hideFromDocumentTree?: boolean | undefined;
|
|
19
7
|
hideCodeInReport?: boolean | undefined;
|
|
20
|
-
}
|
|
8
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
9
|
+
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
10
|
+
breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
hideFromBreadcrumbs: true;
|
|
13
|
+
breadcrumbTextFormat?: undefined;
|
|
14
|
+
}, {
|
|
15
|
+
hideFromBreadcrumbs: true;
|
|
16
|
+
breadcrumbTextFormat?: undefined;
|
|
17
|
+
}>, z.ZodObject<{
|
|
18
|
+
hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
|
|
19
|
+
breadcrumbTextFormat: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
hideFromBreadcrumbs: false;
|
|
22
|
+
breadcrumbTextFormat: string;
|
|
23
|
+
}, {
|
|
24
|
+
breadcrumbTextFormat: string;
|
|
25
|
+
hideFromBreadcrumbs?: false | undefined;
|
|
26
|
+
}>]>>, z.ZodUnion<[z.ZodObject<{
|
|
27
|
+
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
28
|
+
documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
hideFromDocumentTree: true;
|
|
31
|
+
documentTreeFolderTextFormat?: undefined;
|
|
32
|
+
}, {
|
|
33
|
+
hideFromDocumentTree: true;
|
|
34
|
+
documentTreeFolderTextFormat?: undefined;
|
|
35
|
+
}>, z.ZodObject<{
|
|
36
|
+
hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
|
|
37
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
documentTreeFolderTextFormat: string;
|
|
40
|
+
hideFromDocumentTree?: false | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
documentTreeFolderTextFormat: string;
|
|
43
|
+
hideFromDocumentTree?: false | undefined;
|
|
44
|
+
}>]>>;
|
|
21
45
|
export declare const criterionSchema: z.ZodObject<{
|
|
22
46
|
title: z.ZodString;
|
|
23
47
|
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
@@ -726,23 +750,28 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
726
750
|
sortOrder?: number | undefined;
|
|
727
751
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
728
752
|
}>>, "many">;
|
|
729
|
-
options: z.
|
|
730
|
-
breadcrumbTextFormat: z.
|
|
731
|
-
documentTreeFolderTextFormat: z.
|
|
753
|
+
options: z.ZodObject<{
|
|
754
|
+
breadcrumbTextFormat: z.ZodString;
|
|
755
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
732
756
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
733
757
|
}, "strip", z.ZodTypeAny, {
|
|
734
758
|
breadcrumbTextFormat: string;
|
|
735
759
|
documentTreeFolderTextFormat: string;
|
|
736
760
|
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
737
761
|
}, {
|
|
738
|
-
breadcrumbTextFormat
|
|
739
|
-
documentTreeFolderTextFormat
|
|
762
|
+
breadcrumbTextFormat: string;
|
|
763
|
+
documentTreeFolderTextFormat: string;
|
|
740
764
|
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
741
|
-
}
|
|
765
|
+
}>;
|
|
742
766
|
}, "strip", z.ZodTypeAny, {
|
|
743
767
|
code: string;
|
|
744
768
|
type: "task";
|
|
745
769
|
title: string;
|
|
770
|
+
options: {
|
|
771
|
+
breadcrumbTextFormat: string;
|
|
772
|
+
documentTreeFolderTextFormat: string;
|
|
773
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
774
|
+
};
|
|
746
775
|
items: {
|
|
747
776
|
code: string;
|
|
748
777
|
type: "task-item";
|
|
@@ -841,11 +870,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
841
870
|
step?: number | undefined;
|
|
842
871
|
readOnly?: boolean | undefined;
|
|
843
872
|
} | undefined;
|
|
844
|
-
options?: {
|
|
845
|
-
breadcrumbTextFormat: string;
|
|
846
|
-
documentTreeFolderTextFormat: string;
|
|
847
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
848
|
-
} | undefined;
|
|
849
873
|
description?: string | undefined;
|
|
850
874
|
longFormTitle?: string | undefined;
|
|
851
875
|
tags?: string[] | undefined;
|
|
@@ -869,6 +893,11 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
869
893
|
code: string;
|
|
870
894
|
type: "task";
|
|
871
895
|
title: string;
|
|
896
|
+
options: {
|
|
897
|
+
breadcrumbTextFormat: string;
|
|
898
|
+
documentTreeFolderTextFormat: string;
|
|
899
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
900
|
+
};
|
|
872
901
|
items: {
|
|
873
902
|
code: string;
|
|
874
903
|
type: "task-item";
|
|
@@ -967,11 +996,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
967
996
|
step?: number | undefined;
|
|
968
997
|
readOnly?: boolean | undefined;
|
|
969
998
|
} | undefined;
|
|
970
|
-
options?: {
|
|
971
|
-
breadcrumbTextFormat?: string | undefined;
|
|
972
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
973
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
974
|
-
} | undefined;
|
|
975
999
|
description?: string | undefined;
|
|
976
1000
|
longFormTitle?: string | undefined;
|
|
977
1001
|
tags?: string[] | undefined;
|
|
@@ -992,7 +1016,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
992
1016
|
})[] | undefined;
|
|
993
1017
|
sortOrder?: number | undefined;
|
|
994
1018
|
}>>, "many">;
|
|
995
|
-
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
996
1019
|
}, "strip", z.ZodTypeAny, {
|
|
997
1020
|
code: string;
|
|
998
1021
|
type: "task-group";
|
|
@@ -1001,6 +1024,11 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1001
1024
|
code: string;
|
|
1002
1025
|
type: "task";
|
|
1003
1026
|
title: string;
|
|
1027
|
+
options: {
|
|
1028
|
+
breadcrumbTextFormat: string;
|
|
1029
|
+
documentTreeFolderTextFormat: string;
|
|
1030
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
1031
|
+
};
|
|
1004
1032
|
items: {
|
|
1005
1033
|
code: string;
|
|
1006
1034
|
type: "task-item";
|
|
@@ -1099,11 +1127,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1099
1127
|
step?: number | undefined;
|
|
1100
1128
|
readOnly?: boolean | undefined;
|
|
1101
1129
|
} | undefined;
|
|
1102
|
-
options?: {
|
|
1103
|
-
breadcrumbTextFormat: string;
|
|
1104
|
-
documentTreeFolderTextFormat: string;
|
|
1105
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
1106
|
-
} | undefined;
|
|
1107
1130
|
description?: string | undefined;
|
|
1108
1131
|
longFormTitle?: string | undefined;
|
|
1109
1132
|
tags?: string[] | undefined;
|
|
@@ -1136,7 +1159,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1136
1159
|
step?: number | undefined;
|
|
1137
1160
|
readOnly?: boolean | undefined;
|
|
1138
1161
|
} | undefined;
|
|
1139
|
-
options?: {} | undefined;
|
|
1140
1162
|
description?: string | undefined;
|
|
1141
1163
|
longFormTitle?: string | undefined;
|
|
1142
1164
|
tags?: string[] | undefined;
|
|
@@ -1165,6 +1187,11 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1165
1187
|
code: string;
|
|
1166
1188
|
type: "task";
|
|
1167
1189
|
title: string;
|
|
1190
|
+
options: {
|
|
1191
|
+
breadcrumbTextFormat: string;
|
|
1192
|
+
documentTreeFolderTextFormat: string;
|
|
1193
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1194
|
+
};
|
|
1168
1195
|
items: {
|
|
1169
1196
|
code: string;
|
|
1170
1197
|
type: "task-item";
|
|
@@ -1263,11 +1290,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1263
1290
|
step?: number | undefined;
|
|
1264
1291
|
readOnly?: boolean | undefined;
|
|
1265
1292
|
} | undefined;
|
|
1266
|
-
options?: {
|
|
1267
|
-
breadcrumbTextFormat?: string | undefined;
|
|
1268
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
1269
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1270
|
-
} | undefined;
|
|
1271
1293
|
description?: string | undefined;
|
|
1272
1294
|
longFormTitle?: string | undefined;
|
|
1273
1295
|
tags?: string[] | undefined;
|
|
@@ -1300,7 +1322,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1300
1322
|
step?: number | undefined;
|
|
1301
1323
|
readOnly?: boolean | undefined;
|
|
1302
1324
|
} | undefined;
|
|
1303
|
-
options?: {} | undefined;
|
|
1304
1325
|
description?: string | undefined;
|
|
1305
1326
|
longFormTitle?: string | undefined;
|
|
1306
1327
|
tags?: string[] | undefined;
|
|
@@ -1322,29 +1343,68 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1322
1343
|
sortOrder?: number | undefined;
|
|
1323
1344
|
category?: string | undefined;
|
|
1324
1345
|
}>>, "many">;
|
|
1325
|
-
options: z.
|
|
1326
|
-
breadcrumbTextFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1327
|
-
documentTreeFolderTextFormat: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1328
|
-
hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1329
|
-
hideFromDocumentTree: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1346
|
+
options: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
1330
1347
|
hideCodeInReport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1331
1348
|
}, "strip", z.ZodTypeAny, {
|
|
1332
|
-
breadcrumbTextFormat: string;
|
|
1333
|
-
documentTreeFolderTextFormat: string;
|
|
1334
|
-
hideFromBreadcrumbs: boolean;
|
|
1335
|
-
hideFromDocumentTree: boolean;
|
|
1336
1349
|
hideCodeInReport: boolean;
|
|
1337
1350
|
}, {
|
|
1338
|
-
breadcrumbTextFormat?: string | undefined;
|
|
1339
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
1340
|
-
hideFromBreadcrumbs?: boolean | undefined;
|
|
1341
|
-
hideFromDocumentTree?: boolean | undefined;
|
|
1342
1351
|
hideCodeInReport?: boolean | undefined;
|
|
1343
|
-
}
|
|
1352
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
1353
|
+
hideFromBreadcrumbs: z.ZodLiteral<true>;
|
|
1354
|
+
breadcrumbTextFormat: z.ZodOptional<z.ZodNever>;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1356
|
+
hideFromBreadcrumbs: true;
|
|
1357
|
+
breadcrumbTextFormat?: undefined;
|
|
1358
|
+
}, {
|
|
1359
|
+
hideFromBreadcrumbs: true;
|
|
1360
|
+
breadcrumbTextFormat?: undefined;
|
|
1361
|
+
}>, z.ZodObject<{
|
|
1362
|
+
hideFromBreadcrumbs: z.ZodDefault<z.ZodOptional<z.ZodLiteral<false>>>;
|
|
1363
|
+
breadcrumbTextFormat: z.ZodString;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
hideFromBreadcrumbs: false;
|
|
1366
|
+
breadcrumbTextFormat: string;
|
|
1367
|
+
}, {
|
|
1368
|
+
breadcrumbTextFormat: string;
|
|
1369
|
+
hideFromBreadcrumbs?: false | undefined;
|
|
1370
|
+
}>]>>, z.ZodUnion<[z.ZodObject<{
|
|
1371
|
+
hideFromDocumentTree: z.ZodLiteral<true>;
|
|
1372
|
+
documentTreeFolderTextFormat: z.ZodOptional<z.ZodNever>;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
hideFromDocumentTree: true;
|
|
1375
|
+
documentTreeFolderTextFormat?: undefined;
|
|
1376
|
+
}, {
|
|
1377
|
+
hideFromDocumentTree: true;
|
|
1378
|
+
documentTreeFolderTextFormat?: undefined;
|
|
1379
|
+
}>, z.ZodObject<{
|
|
1380
|
+
hideFromDocumentTree: z.ZodOptional<z.ZodLiteral<false>>;
|
|
1381
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
1382
|
+
}, "strip", z.ZodTypeAny, {
|
|
1383
|
+
documentTreeFolderTextFormat: string;
|
|
1384
|
+
hideFromDocumentTree?: false | undefined;
|
|
1385
|
+
}, {
|
|
1386
|
+
documentTreeFolderTextFormat: string;
|
|
1387
|
+
hideFromDocumentTree?: false | undefined;
|
|
1388
|
+
}>]>>;
|
|
1344
1389
|
}, "strip", z.ZodTypeAny, {
|
|
1345
1390
|
code: string;
|
|
1346
1391
|
type: "criterion";
|
|
1347
1392
|
title: string;
|
|
1393
|
+
options: ({
|
|
1394
|
+
hideCodeInReport: boolean;
|
|
1395
|
+
} & ({
|
|
1396
|
+
hideFromBreadcrumbs: true;
|
|
1397
|
+
breadcrumbTextFormat?: undefined;
|
|
1398
|
+
} | {
|
|
1399
|
+
hideFromBreadcrumbs: false;
|
|
1400
|
+
breadcrumbTextFormat: string;
|
|
1401
|
+
})) & ({
|
|
1402
|
+
hideFromDocumentTree: true;
|
|
1403
|
+
documentTreeFolderTextFormat?: undefined;
|
|
1404
|
+
} | {
|
|
1405
|
+
documentTreeFolderTextFormat: string;
|
|
1406
|
+
hideFromDocumentTree?: false | undefined;
|
|
1407
|
+
});
|
|
1348
1408
|
items: {
|
|
1349
1409
|
code: string;
|
|
1350
1410
|
type: "task-group";
|
|
@@ -1353,6 +1413,11 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1353
1413
|
code: string;
|
|
1354
1414
|
type: "task";
|
|
1355
1415
|
title: string;
|
|
1416
|
+
options: {
|
|
1417
|
+
breadcrumbTextFormat: string;
|
|
1418
|
+
documentTreeFolderTextFormat: string;
|
|
1419
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
1420
|
+
};
|
|
1356
1421
|
items: {
|
|
1357
1422
|
code: string;
|
|
1358
1423
|
type: "task-item";
|
|
@@ -1451,11 +1516,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1451
1516
|
step?: number | undefined;
|
|
1452
1517
|
readOnly?: boolean | undefined;
|
|
1453
1518
|
} | undefined;
|
|
1454
|
-
options?: {
|
|
1455
|
-
breadcrumbTextFormat: string;
|
|
1456
|
-
documentTreeFolderTextFormat: string;
|
|
1457
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
1458
|
-
} | undefined;
|
|
1459
1519
|
description?: string | undefined;
|
|
1460
1520
|
longFormTitle?: string | undefined;
|
|
1461
1521
|
tags?: string[] | undefined;
|
|
@@ -1488,7 +1548,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1488
1548
|
step?: number | undefined;
|
|
1489
1549
|
readOnly?: boolean | undefined;
|
|
1490
1550
|
} | undefined;
|
|
1491
|
-
options?: {} | undefined;
|
|
1492
1551
|
description?: string | undefined;
|
|
1493
1552
|
longFormTitle?: string | undefined;
|
|
1494
1553
|
tags?: string[] | undefined;
|
|
@@ -1522,13 +1581,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1522
1581
|
step?: number | undefined;
|
|
1523
1582
|
readOnly?: boolean | undefined;
|
|
1524
1583
|
} | undefined;
|
|
1525
|
-
options?: {
|
|
1526
|
-
breadcrumbTextFormat: string;
|
|
1527
|
-
documentTreeFolderTextFormat: string;
|
|
1528
|
-
hideFromBreadcrumbs: boolean;
|
|
1529
|
-
hideFromDocumentTree: boolean;
|
|
1530
|
-
hideCodeInReport: boolean;
|
|
1531
|
-
} | undefined;
|
|
1532
1584
|
longFormTitle?: string | undefined;
|
|
1533
1585
|
tags?: string[] | undefined;
|
|
1534
1586
|
documentation?: ({
|
|
@@ -1551,6 +1603,21 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1551
1603
|
code: string;
|
|
1552
1604
|
type: "criterion";
|
|
1553
1605
|
title: string;
|
|
1606
|
+
options: ({
|
|
1607
|
+
hideCodeInReport?: boolean | undefined;
|
|
1608
|
+
} & ({
|
|
1609
|
+
hideFromBreadcrumbs: true;
|
|
1610
|
+
breadcrumbTextFormat?: undefined;
|
|
1611
|
+
} | {
|
|
1612
|
+
breadcrumbTextFormat: string;
|
|
1613
|
+
hideFromBreadcrumbs?: false | undefined;
|
|
1614
|
+
})) & ({
|
|
1615
|
+
hideFromDocumentTree: true;
|
|
1616
|
+
documentTreeFolderTextFormat?: undefined;
|
|
1617
|
+
} | {
|
|
1618
|
+
documentTreeFolderTextFormat: string;
|
|
1619
|
+
hideFromDocumentTree?: false | undefined;
|
|
1620
|
+
});
|
|
1554
1621
|
items: {
|
|
1555
1622
|
code: string;
|
|
1556
1623
|
type: "task-group";
|
|
@@ -1559,6 +1626,11 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1559
1626
|
code: string;
|
|
1560
1627
|
type: "task";
|
|
1561
1628
|
title: string;
|
|
1629
|
+
options: {
|
|
1630
|
+
breadcrumbTextFormat: string;
|
|
1631
|
+
documentTreeFolderTextFormat: string;
|
|
1632
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1633
|
+
};
|
|
1562
1634
|
items: {
|
|
1563
1635
|
code: string;
|
|
1564
1636
|
type: "task-item";
|
|
@@ -1657,11 +1729,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1657
1729
|
step?: number | undefined;
|
|
1658
1730
|
readOnly?: boolean | undefined;
|
|
1659
1731
|
} | undefined;
|
|
1660
|
-
options?: {
|
|
1661
|
-
breadcrumbTextFormat?: string | undefined;
|
|
1662
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
1663
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1664
|
-
} | undefined;
|
|
1665
1732
|
description?: string | undefined;
|
|
1666
1733
|
longFormTitle?: string | undefined;
|
|
1667
1734
|
tags?: string[] | undefined;
|
|
@@ -1694,7 +1761,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1694
1761
|
step?: number | undefined;
|
|
1695
1762
|
readOnly?: boolean | undefined;
|
|
1696
1763
|
} | undefined;
|
|
1697
|
-
options?: {} | undefined;
|
|
1698
1764
|
description?: string | undefined;
|
|
1699
1765
|
longFormTitle?: string | undefined;
|
|
1700
1766
|
tags?: string[] | undefined;
|
|
@@ -1728,13 +1794,6 @@ export declare const criterionSchema: z.ZodObject<{
|
|
|
1728
1794
|
step?: number | undefined;
|
|
1729
1795
|
readOnly?: boolean | undefined;
|
|
1730
1796
|
} | undefined;
|
|
1731
|
-
options?: {
|
|
1732
|
-
breadcrumbTextFormat?: string | undefined;
|
|
1733
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
1734
|
-
hideFromBreadcrumbs?: boolean | undefined;
|
|
1735
|
-
hideFromDocumentTree?: boolean | undefined;
|
|
1736
|
-
hideCodeInReport?: boolean | undefined;
|
|
1737
|
-
} | undefined;
|
|
1738
1797
|
longFormTitle?: string | undefined;
|
|
1739
1798
|
tags?: string[] | undefined;
|
|
1740
1799
|
documentation?: ({
|
|
@@ -4,33 +4,17 @@ exports.criterionSchema = exports.criterionOptionsSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const task_group_1 = require("./task-group");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
|
-
exports.criterionOptionsSchema = zod_1.z
|
|
8
|
-
|
|
9
|
-
.string()
|
|
10
|
-
.optional()
|
|
11
|
-
.default(":title:")
|
|
12
|
-
.describe("The format of the breadcrumb text, use ':code:' and ':title:' to define where the code and/or title should be inserted"),
|
|
13
|
-
documentTreeFolderTextFormat: zod_1.z
|
|
14
|
-
.string()
|
|
15
|
-
.optional()
|
|
16
|
-
.default(":code:")
|
|
17
|
-
.describe("The format of the document tree folder text, use ':code:' and ':title:' to define where the code and/or title should be inserted"),
|
|
18
|
-
hideFromBreadcrumbs: zod_1.z
|
|
19
|
-
.boolean()
|
|
20
|
-
.optional()
|
|
21
|
-
.default(false)
|
|
22
|
-
.describe("Whether to hide the criterion from the breadcrumbs"),
|
|
23
|
-
hideFromDocumentTree: zod_1.z
|
|
24
|
-
.boolean()
|
|
25
|
-
.optional()
|
|
26
|
-
.default(false)
|
|
27
|
-
.describe("Whether to hide the criterion from the document tree structure"),
|
|
7
|
+
exports.criterionOptionsSchema = zod_1.z
|
|
8
|
+
.object({
|
|
28
9
|
hideCodeInReport: zod_1.z
|
|
29
10
|
.boolean()
|
|
30
11
|
.optional()
|
|
31
12
|
.default(false)
|
|
32
13
|
.describe("Whether to hide the criterion code in the generated PDF report"),
|
|
33
|
-
})
|
|
14
|
+
})
|
|
15
|
+
.and(common_1.breadcrumbOptionsSchema)
|
|
16
|
+
.and(common_1.documentTreeOptionsSchema)
|
|
17
|
+
.describe("CriterionOptions - Configuration options for criterion display and behavior");
|
|
34
18
|
exports.criterionSchema = common_1.abstractElementSchema
|
|
35
19
|
.extend({
|
|
36
20
|
type: zod_1.z.literal("criterion"),
|
|
@@ -38,7 +22,6 @@ exports.criterionSchema = common_1.abstractElementSchema
|
|
|
38
22
|
.array(zod_1.z.lazy(() => task_group_1.taskGroupSchema))
|
|
39
23
|
.describe("The task groups in the criterion"),
|
|
40
24
|
options: exports.criterionOptionsSchema
|
|
41
|
-
.optional()
|
|
42
25
|
.describe("Configuration options for the criterion display and behavior"),
|
|
43
26
|
})
|
|
44
27
|
.describe("Criterion");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const taskGroupOptionsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3
2
|
export declare const taskGroupSchema: z.ZodObject<{
|
|
4
3
|
title: z.ZodString;
|
|
5
4
|
longFormTitle: z.ZodOptional<z.ZodString>;
|
|
@@ -620,23 +619,28 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
620
619
|
sortOrder?: number | undefined;
|
|
621
620
|
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
622
621
|
}>>, "many">;
|
|
623
|
-
options: z.
|
|
624
|
-
breadcrumbTextFormat: z.
|
|
625
|
-
documentTreeFolderTextFormat: z.
|
|
622
|
+
options: z.ZodObject<{
|
|
623
|
+
breadcrumbTextFormat: z.ZodString;
|
|
624
|
+
documentTreeFolderTextFormat: z.ZodString;
|
|
626
625
|
showCodeAsIndicatorTaskViewTitle: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
627
626
|
}, "strip", z.ZodTypeAny, {
|
|
628
627
|
breadcrumbTextFormat: string;
|
|
629
628
|
documentTreeFolderTextFormat: string;
|
|
630
629
|
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
631
630
|
}, {
|
|
632
|
-
breadcrumbTextFormat
|
|
633
|
-
documentTreeFolderTextFormat
|
|
631
|
+
breadcrumbTextFormat: string;
|
|
632
|
+
documentTreeFolderTextFormat: string;
|
|
634
633
|
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
635
|
-
}
|
|
634
|
+
}>;
|
|
636
635
|
}, "strip", z.ZodTypeAny, {
|
|
637
636
|
code: string;
|
|
638
637
|
type: "task";
|
|
639
638
|
title: string;
|
|
639
|
+
options: {
|
|
640
|
+
breadcrumbTextFormat: string;
|
|
641
|
+
documentTreeFolderTextFormat: string;
|
|
642
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
643
|
+
};
|
|
640
644
|
items: {
|
|
641
645
|
code: string;
|
|
642
646
|
type: "task-item";
|
|
@@ -735,11 +739,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
735
739
|
step?: number | undefined;
|
|
736
740
|
readOnly?: boolean | undefined;
|
|
737
741
|
} | undefined;
|
|
738
|
-
options?: {
|
|
739
|
-
breadcrumbTextFormat: string;
|
|
740
|
-
documentTreeFolderTextFormat: string;
|
|
741
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
742
|
-
} | undefined;
|
|
743
742
|
description?: string | undefined;
|
|
744
743
|
longFormTitle?: string | undefined;
|
|
745
744
|
tags?: string[] | undefined;
|
|
@@ -763,6 +762,11 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
763
762
|
code: string;
|
|
764
763
|
type: "task";
|
|
765
764
|
title: string;
|
|
765
|
+
options: {
|
|
766
|
+
breadcrumbTextFormat: string;
|
|
767
|
+
documentTreeFolderTextFormat: string;
|
|
768
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
769
|
+
};
|
|
766
770
|
items: {
|
|
767
771
|
code: string;
|
|
768
772
|
type: "task-item";
|
|
@@ -861,11 +865,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
861
865
|
step?: number | undefined;
|
|
862
866
|
readOnly?: boolean | undefined;
|
|
863
867
|
} | undefined;
|
|
864
|
-
options?: {
|
|
865
|
-
breadcrumbTextFormat?: string | undefined;
|
|
866
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
867
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
868
|
-
} | undefined;
|
|
869
868
|
description?: string | undefined;
|
|
870
869
|
longFormTitle?: string | undefined;
|
|
871
870
|
tags?: string[] | undefined;
|
|
@@ -886,7 +885,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
886
885
|
})[] | undefined;
|
|
887
886
|
sortOrder?: number | undefined;
|
|
888
887
|
}>>, "many">;
|
|
889
|
-
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
890
888
|
}, "strip", z.ZodTypeAny, {
|
|
891
889
|
code: string;
|
|
892
890
|
type: "task-group";
|
|
@@ -895,6 +893,11 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
895
893
|
code: string;
|
|
896
894
|
type: "task";
|
|
897
895
|
title: string;
|
|
896
|
+
options: {
|
|
897
|
+
breadcrumbTextFormat: string;
|
|
898
|
+
documentTreeFolderTextFormat: string;
|
|
899
|
+
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
900
|
+
};
|
|
898
901
|
items: {
|
|
899
902
|
code: string;
|
|
900
903
|
type: "task-item";
|
|
@@ -993,11 +996,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
993
996
|
step?: number | undefined;
|
|
994
997
|
readOnly?: boolean | undefined;
|
|
995
998
|
} | undefined;
|
|
996
|
-
options?: {
|
|
997
|
-
breadcrumbTextFormat: string;
|
|
998
|
-
documentTreeFolderTextFormat: string;
|
|
999
|
-
showCodeAsIndicatorTaskViewTitle: boolean;
|
|
1000
|
-
} | undefined;
|
|
1001
999
|
description?: string | undefined;
|
|
1002
1000
|
longFormTitle?: string | undefined;
|
|
1003
1001
|
tags?: string[] | undefined;
|
|
@@ -1030,7 +1028,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
1030
1028
|
step?: number | undefined;
|
|
1031
1029
|
readOnly?: boolean | undefined;
|
|
1032
1030
|
} | undefined;
|
|
1033
|
-
options?: {} | undefined;
|
|
1034
1031
|
description?: string | undefined;
|
|
1035
1032
|
longFormTitle?: string | undefined;
|
|
1036
1033
|
tags?: string[] | undefined;
|
|
@@ -1059,6 +1056,11 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
1059
1056
|
code: string;
|
|
1060
1057
|
type: "task";
|
|
1061
1058
|
title: string;
|
|
1059
|
+
options: {
|
|
1060
|
+
breadcrumbTextFormat: string;
|
|
1061
|
+
documentTreeFolderTextFormat: string;
|
|
1062
|
+
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1063
|
+
};
|
|
1062
1064
|
items: {
|
|
1063
1065
|
code: string;
|
|
1064
1066
|
type: "task-item";
|
|
@@ -1157,11 +1159,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
1157
1159
|
step?: number | undefined;
|
|
1158
1160
|
readOnly?: boolean | undefined;
|
|
1159
1161
|
} | undefined;
|
|
1160
|
-
options?: {
|
|
1161
|
-
breadcrumbTextFormat?: string | undefined;
|
|
1162
|
-
documentTreeFolderTextFormat?: string | undefined;
|
|
1163
|
-
showCodeAsIndicatorTaskViewTitle?: boolean | undefined;
|
|
1164
|
-
} | undefined;
|
|
1165
1162
|
description?: string | undefined;
|
|
1166
1163
|
longFormTitle?: string | undefined;
|
|
1167
1164
|
tags?: string[] | undefined;
|
|
@@ -1194,7 +1191,6 @@ export declare const taskGroupSchema: z.ZodObject<{
|
|
|
1194
1191
|
step?: number | undefined;
|
|
1195
1192
|
readOnly?: boolean | undefined;
|
|
1196
1193
|
} | undefined;
|
|
1197
|
-
options?: {} | undefined;
|
|
1198
1194
|
description?: string | undefined;
|
|
1199
1195
|
longFormTitle?: string | undefined;
|
|
1200
1196
|
tags?: string[] | undefined;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.taskGroupSchema =
|
|
3
|
+
exports.taskGroupSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const task_1 = require("./task");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
|
-
exports.taskGroupOptionsSchema = zod_1.z.object({
|
|
8
|
-
// The task group layer is never rendered in the breadcrumbs
|
|
9
|
-
// The task group layer is never rendered in the document tree
|
|
10
|
-
// The task group layer is never rendered in the PDF report
|
|
11
|
-
});
|
|
12
7
|
exports.taskGroupSchema = common_1.abstractElementSchema.extend({
|
|
13
8
|
type: zod_1.z
|
|
14
9
|
.literal("task-group")
|
|
@@ -24,7 +19,4 @@ exports.taskGroupSchema = common_1.abstractElementSchema.extend({
|
|
|
24
19
|
items: zod_1.z
|
|
25
20
|
.array(zod_1.z.lazy(() => task_1.taskSchema))
|
|
26
21
|
.describe("List of tasks contained within this task group"),
|
|
27
|
-
|
|
28
|
-
.optional()
|
|
29
|
-
.describe("Configuration options for the task group display and behavior"),
|
|
30
|
-
});
|
|
22
|
+
}).describe("TaskGroup");
|