@openframe-org/criteria-set-protocol 2.0.0-beta.7 → 2.0.0
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/README.md +27 -34
- package/dist/index.d.ts +1 -1
- package/dist/v1/errors/DataValidationError.d.ts +1 -1
- package/dist/v1/errors/DataValidationError.js +1 -1
- package/dist/v1/errors/ParameterValidationError.d.ts +1 -1
- package/dist/v1/errors/ParameterValidationError.js +1 -1
- package/dist/v1/errors/ValidationError.d.ts +1 -1
- package/dist/v1/errors/ValidationError.js +1 -1
- package/dist/v1/errors/index.d.ts +4 -4
- package/dist/v1/errors/types.d.ts +1 -1
- package/dist/v1/index.d.ts +5 -5
- package/dist/v1/schemas/certification.d.ts +1 -1
- package/dist/v1/schemas/certification.js +13 -19
- package/dist/v1/schemas/common.d.ts +1 -1
- package/dist/v1/schemas/common.js +8 -16
- package/dist/v1/schemas/criteria-tree.d.ts +1 -49
- package/dist/v1/schemas/criteria-tree.js +5 -13
- package/dist/v1/schemas/criterion.d.ts +1 -10
- package/dist/v1/schemas/criterion.js +4 -4
- package/dist/v1/schemas/data-map.d.ts +1 -1
- package/dist/v1/schemas/data-map.js +1 -1
- package/dist/v1/schemas/documentation.d.ts +1 -1
- package/dist/v1/schemas/documentation.js +5 -9
- package/dist/v1/schemas/index.d.ts +13 -13
- package/dist/v1/schemas/metadata.d.ts +1 -1
- package/dist/v1/schemas/metadata.js +6 -6
- package/dist/v1/schemas/quality.d.ts +141 -469
- package/dist/v1/schemas/quality.js +7 -7
- package/dist/v1/schemas/request/criteria-set-id-param-schema.d.ts +1 -1
- package/dist/v1/schemas/request/criteria-set-id-param-schema.js +2 -3
- package/dist/v1/schemas/request/index.d.ts +4 -4
- package/dist/v1/schemas/request/matrix-body-schema.d.ts +1 -1
- package/dist/v1/schemas/request/matrix-body-schema.js +3 -5
- package/dist/v1/schemas/request/matrix-request-body-schema.d.ts +1 -1
- package/dist/v1/schemas/request/matrix-request-body-schema.js +6 -8
- package/dist/v1/schemas/request/tree-and-data-body-schema.d.ts +1 -1
- package/dist/v1/schemas/request/tree-and-data-body-schema.js +3 -5
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.d.ts +1 -1
- package/dist/v1/schemas/request/tree-and-data-request-body-schema.js +5 -7
- package/dist/v1/schemas/request/version-param-schema.d.ts +1 -1
- package/dist/v1/schemas/request/version-param-schema.js +2 -3
- package/dist/v1/schemas/response.d.ts +2 -2
- package/dist/v1/schemas/response.js +1 -1
- package/dist/v1/schemas/task-group.d.ts +1 -8
- package/dist/v1/schemas/task-group.js +5 -5
- package/dist/v1/schemas/task-item.d.ts +1 -4
- package/dist/v1/schemas/task-item.js +27 -35
- package/dist/v1/schemas/task.d.ts +1 -6
- package/dist/v1/schemas/task.js +4 -4
- package/dist/v1/schemas/theme.d.ts +1 -12
- package/dist/v1/schemas/theme.js +4 -4
- package/dist/v1/services/i-criteria-set.service.d.ts +1 -1
- package/dist/v1/services/index.d.ts +2 -2
- package/dist/v1/services/manager.service.js +1 -4
- package/dist/v1/types/criteria.d.ts +2 -2
- package/dist/v1/types/express.d.ts +3 -3
- package/dist/v1/types/index.d.ts +2 -2
- package/dist/v1/utils.d.ts +3 -8
- package/dist/v1/utils.js +6 -6
- package/package.json +3 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
3
3
|
version: z.ZodString;
|
|
4
4
|
elements: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
@@ -533,7 +533,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
533
533
|
}>]>;
|
|
534
534
|
description: z.ZodOptional<z.ZodString>;
|
|
535
535
|
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">]>>>;
|
|
536
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
537
536
|
options: z.ZodOptional<z.ZodObject<{
|
|
538
537
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
539
538
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -601,7 +600,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
601
600
|
text: string;
|
|
602
601
|
})[] | undefined;
|
|
603
602
|
sortOrder?: number | undefined;
|
|
604
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
605
603
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
606
604
|
}, {
|
|
607
605
|
type: "task-item";
|
|
@@ -663,7 +661,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
663
661
|
text: string;
|
|
664
662
|
})[] | undefined;
|
|
665
663
|
sortOrder?: number | undefined;
|
|
666
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
667
664
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
668
665
|
}>>, "many">;
|
|
669
666
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -737,7 +734,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
737
734
|
text: string;
|
|
738
735
|
})[] | undefined;
|
|
739
736
|
sortOrder?: number | undefined;
|
|
740
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
741
737
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
742
738
|
}[];
|
|
743
739
|
data?: (Record<string, any> & {
|
|
@@ -829,7 +825,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
829
825
|
text: string;
|
|
830
826
|
})[] | undefined;
|
|
831
827
|
sortOrder?: number | undefined;
|
|
832
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
833
828
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
834
829
|
}[];
|
|
835
830
|
data?: (Record<string, any> & {
|
|
@@ -936,7 +931,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
936
931
|
text: string;
|
|
937
932
|
})[] | undefined;
|
|
938
933
|
sortOrder?: number | undefined;
|
|
939
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
940
934
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
941
935
|
}[];
|
|
942
936
|
data?: (Record<string, any> & {
|
|
@@ -1059,7 +1053,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1059
1053
|
text: string;
|
|
1060
1054
|
})[] | undefined;
|
|
1061
1055
|
sortOrder?: number | undefined;
|
|
1062
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1063
1056
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1064
1057
|
}[];
|
|
1065
1058
|
data?: (Record<string, any> & {
|
|
@@ -1197,7 +1190,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1197
1190
|
text: string;
|
|
1198
1191
|
})[] | undefined;
|
|
1199
1192
|
sortOrder?: number | undefined;
|
|
1200
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1201
1193
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1202
1194
|
}[];
|
|
1203
1195
|
data?: (Record<string, any> & {
|
|
@@ -1350,7 +1342,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1350
1342
|
text: string;
|
|
1351
1343
|
})[] | undefined;
|
|
1352
1344
|
sortOrder?: number | undefined;
|
|
1353
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1354
1345
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1355
1346
|
}[];
|
|
1356
1347
|
data?: (Record<string, any> & {
|
|
@@ -1515,7 +1506,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1515
1506
|
text: string;
|
|
1516
1507
|
})[] | undefined;
|
|
1517
1508
|
sortOrder?: number | undefined;
|
|
1518
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1519
1509
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1520
1510
|
}[];
|
|
1521
1511
|
data?: (Record<string, any> & {
|
|
@@ -1709,7 +1699,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
1709
1699
|
text: string;
|
|
1710
1700
|
})[] | undefined;
|
|
1711
1701
|
sortOrder?: number | undefined;
|
|
1712
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1713
1702
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1714
1703
|
}[];
|
|
1715
1704
|
data?: (Record<string, any> & {
|
|
@@ -2009,7 +1998,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
2009
1998
|
text: string;
|
|
2010
1999
|
})[] | undefined;
|
|
2011
2000
|
sortOrder?: number | undefined;
|
|
2012
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
2013
2001
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
2014
2002
|
}[];
|
|
2015
2003
|
data?: (Record<string, any> & {
|
|
@@ -2235,7 +2223,6 @@ export declare const criteriaTreeSchema: z.ZodObject<z.objectUtil.extendShape<Pi
|
|
|
2235
2223
|
text: string;
|
|
2236
2224
|
})[] | undefined;
|
|
2237
2225
|
sortOrder?: number | undefined;
|
|
2238
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
2239
2226
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
2240
2227
|
}[];
|
|
2241
2228
|
data?: (Record<string, any> & {
|
|
@@ -2912,7 +2899,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
2912
2899
|
}>]>;
|
|
2913
2900
|
description: z.ZodOptional<z.ZodString>;
|
|
2914
2901
|
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">]>>>;
|
|
2915
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
2916
2902
|
options: z.ZodOptional<z.ZodObject<{
|
|
2917
2903
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
2918
2904
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2980,7 +2966,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
2980
2966
|
text: string;
|
|
2981
2967
|
})[] | undefined;
|
|
2982
2968
|
sortOrder?: number | undefined;
|
|
2983
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
2984
2969
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
2985
2970
|
}, {
|
|
2986
2971
|
type: "task-item";
|
|
@@ -3042,7 +3027,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3042
3027
|
text: string;
|
|
3043
3028
|
})[] | undefined;
|
|
3044
3029
|
sortOrder?: number | undefined;
|
|
3045
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3046
3030
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3047
3031
|
}>>, "many">;
|
|
3048
3032
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -3116,7 +3100,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3116
3100
|
text: string;
|
|
3117
3101
|
})[] | undefined;
|
|
3118
3102
|
sortOrder?: number | undefined;
|
|
3119
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3120
3103
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3121
3104
|
}[];
|
|
3122
3105
|
data?: (Record<string, any> & {
|
|
@@ -3208,7 +3191,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3208
3191
|
text: string;
|
|
3209
3192
|
})[] | undefined;
|
|
3210
3193
|
sortOrder?: number | undefined;
|
|
3211
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3212
3194
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3213
3195
|
}[];
|
|
3214
3196
|
data?: (Record<string, any> & {
|
|
@@ -3315,7 +3297,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3315
3297
|
text: string;
|
|
3316
3298
|
})[] | undefined;
|
|
3317
3299
|
sortOrder?: number | undefined;
|
|
3318
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3319
3300
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3320
3301
|
}[];
|
|
3321
3302
|
data?: (Record<string, any> & {
|
|
@@ -3438,7 +3419,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3438
3419
|
text: string;
|
|
3439
3420
|
})[] | undefined;
|
|
3440
3421
|
sortOrder?: number | undefined;
|
|
3441
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3442
3422
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3443
3423
|
}[];
|
|
3444
3424
|
data?: (Record<string, any> & {
|
|
@@ -3576,7 +3556,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3576
3556
|
text: string;
|
|
3577
3557
|
})[] | undefined;
|
|
3578
3558
|
sortOrder?: number | undefined;
|
|
3579
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3580
3559
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3581
3560
|
}[];
|
|
3582
3561
|
data?: (Record<string, any> & {
|
|
@@ -3729,7 +3708,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3729
3708
|
text: string;
|
|
3730
3709
|
})[] | undefined;
|
|
3731
3710
|
sortOrder?: number | undefined;
|
|
3732
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3733
3711
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3734
3712
|
}[];
|
|
3735
3713
|
data?: (Record<string, any> & {
|
|
@@ -3894,7 +3872,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
3894
3872
|
text: string;
|
|
3895
3873
|
})[] | undefined;
|
|
3896
3874
|
sortOrder?: number | undefined;
|
|
3897
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
3898
3875
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
3899
3876
|
}[];
|
|
3900
3877
|
data?: (Record<string, any> & {
|
|
@@ -4088,7 +4065,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4088
4065
|
text: string;
|
|
4089
4066
|
})[] | undefined;
|
|
4090
4067
|
sortOrder?: number | undefined;
|
|
4091
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
4092
4068
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
4093
4069
|
}[];
|
|
4094
4070
|
data?: (Record<string, any> & {
|
|
@@ -4617,7 +4593,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4617
4593
|
}>]>;
|
|
4618
4594
|
description: z.ZodOptional<z.ZodString>;
|
|
4619
4595
|
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">]>>>;
|
|
4620
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
4621
4596
|
options: z.ZodOptional<z.ZodObject<{
|
|
4622
4597
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
4623
4598
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4685,7 +4660,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4685
4660
|
text: string;
|
|
4686
4661
|
})[] | undefined;
|
|
4687
4662
|
sortOrder?: number | undefined;
|
|
4688
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
4689
4663
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
4690
4664
|
}, {
|
|
4691
4665
|
type: "task-item";
|
|
@@ -4747,7 +4721,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4747
4721
|
text: string;
|
|
4748
4722
|
})[] | undefined;
|
|
4749
4723
|
sortOrder?: number | undefined;
|
|
4750
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
4751
4724
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
4752
4725
|
}>>, "many">;
|
|
4753
4726
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -4821,7 +4794,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4821
4794
|
text: string;
|
|
4822
4795
|
})[] | undefined;
|
|
4823
4796
|
sortOrder?: number | undefined;
|
|
4824
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
4825
4797
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
4826
4798
|
}[];
|
|
4827
4799
|
data?: (Record<string, any> & {
|
|
@@ -4913,7 +4885,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
4913
4885
|
text: string;
|
|
4914
4886
|
})[] | undefined;
|
|
4915
4887
|
sortOrder?: number | undefined;
|
|
4916
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
4917
4888
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
4918
4889
|
}[];
|
|
4919
4890
|
data?: (Record<string, any> & {
|
|
@@ -5020,7 +4991,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5020
4991
|
text: string;
|
|
5021
4992
|
})[] | undefined;
|
|
5022
4993
|
sortOrder?: number | undefined;
|
|
5023
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5024
4994
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5025
4995
|
}[];
|
|
5026
4996
|
data?: (Record<string, any> & {
|
|
@@ -5143,7 +5113,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5143
5113
|
text: string;
|
|
5144
5114
|
})[] | undefined;
|
|
5145
5115
|
sortOrder?: number | undefined;
|
|
5146
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5147
5116
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5148
5117
|
}[];
|
|
5149
5118
|
data?: (Record<string, any> & {
|
|
@@ -5281,7 +5250,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5281
5250
|
text: string;
|
|
5282
5251
|
})[] | undefined;
|
|
5283
5252
|
sortOrder?: number | undefined;
|
|
5284
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5285
5253
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5286
5254
|
}[];
|
|
5287
5255
|
data?: (Record<string, any> & {
|
|
@@ -5434,7 +5402,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5434
5402
|
text: string;
|
|
5435
5403
|
})[] | undefined;
|
|
5436
5404
|
sortOrder?: number | undefined;
|
|
5437
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5438
5405
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5439
5406
|
}[];
|
|
5440
5407
|
data?: (Record<string, any> & {
|
|
@@ -5859,7 +5826,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5859
5826
|
}>]>;
|
|
5860
5827
|
description: z.ZodOptional<z.ZodString>;
|
|
5861
5828
|
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">]>>>;
|
|
5862
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
5863
5829
|
options: z.ZodOptional<z.ZodObject<{
|
|
5864
5830
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
5865
5831
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5927,7 +5893,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5927
5893
|
text: string;
|
|
5928
5894
|
})[] | undefined;
|
|
5929
5895
|
sortOrder?: number | undefined;
|
|
5930
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5931
5896
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5932
5897
|
}, {
|
|
5933
5898
|
type: "task-item";
|
|
@@ -5989,7 +5954,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
5989
5954
|
text: string;
|
|
5990
5955
|
})[] | undefined;
|
|
5991
5956
|
sortOrder?: number | undefined;
|
|
5992
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
5993
5957
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
5994
5958
|
}>>, "many">;
|
|
5995
5959
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -6063,7 +6027,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6063
6027
|
text: string;
|
|
6064
6028
|
})[] | undefined;
|
|
6065
6029
|
sortOrder?: number | undefined;
|
|
6066
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6067
6030
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6068
6031
|
}[];
|
|
6069
6032
|
data?: (Record<string, any> & {
|
|
@@ -6155,7 +6118,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6155
6118
|
text: string;
|
|
6156
6119
|
})[] | undefined;
|
|
6157
6120
|
sortOrder?: number | undefined;
|
|
6158
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6159
6121
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6160
6122
|
}[];
|
|
6161
6123
|
data?: (Record<string, any> & {
|
|
@@ -6262,7 +6224,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6262
6224
|
text: string;
|
|
6263
6225
|
})[] | undefined;
|
|
6264
6226
|
sortOrder?: number | undefined;
|
|
6265
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6266
6227
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6267
6228
|
}[];
|
|
6268
6229
|
data?: (Record<string, any> & {
|
|
@@ -6385,7 +6346,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6385
6346
|
text: string;
|
|
6386
6347
|
})[] | undefined;
|
|
6387
6348
|
sortOrder?: number | undefined;
|
|
6388
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6389
6349
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6390
6350
|
}[];
|
|
6391
6351
|
data?: (Record<string, any> & {
|
|
@@ -6716,7 +6676,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6716
6676
|
}>]>;
|
|
6717
6677
|
description: z.ZodOptional<z.ZodString>;
|
|
6718
6678
|
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">]>>>;
|
|
6719
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
6720
6679
|
options: z.ZodOptional<z.ZodObject<{
|
|
6721
6680
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
6722
6681
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6784,7 +6743,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6784
6743
|
text: string;
|
|
6785
6744
|
})[] | undefined;
|
|
6786
6745
|
sortOrder?: number | undefined;
|
|
6787
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6788
6746
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6789
6747
|
}, {
|
|
6790
6748
|
type: "task-item";
|
|
@@ -6846,7 +6804,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6846
6804
|
text: string;
|
|
6847
6805
|
})[] | undefined;
|
|
6848
6806
|
sortOrder?: number | undefined;
|
|
6849
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6850
6807
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6851
6808
|
}>>, "many">;
|
|
6852
6809
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -6920,7 +6877,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
6920
6877
|
text: string;
|
|
6921
6878
|
})[] | undefined;
|
|
6922
6879
|
sortOrder?: number | undefined;
|
|
6923
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
6924
6880
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
6925
6881
|
}[];
|
|
6926
6882
|
data?: (Record<string, any> & {
|
|
@@ -7012,7 +6968,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
7012
6968
|
text: string;
|
|
7013
6969
|
})[] | undefined;
|
|
7014
6970
|
sortOrder?: number | undefined;
|
|
7015
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
7016
6971
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
7017
6972
|
}[];
|
|
7018
6973
|
data?: (Record<string, any> & {
|
|
@@ -7248,7 +7203,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
7248
7203
|
}>]>;
|
|
7249
7204
|
description: z.ZodOptional<z.ZodString>;
|
|
7250
7205
|
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">]>>>;
|
|
7251
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
7252
7206
|
options: z.ZodOptional<z.ZodObject<{
|
|
7253
7207
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
7254
7208
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7316,7 +7270,6 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
7316
7270
|
text: string;
|
|
7317
7271
|
})[] | undefined;
|
|
7318
7272
|
sortOrder?: number | undefined;
|
|
7319
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
7320
7273
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
7321
7274
|
}, {
|
|
7322
7275
|
type: "task-item";
|
|
@@ -7378,6 +7331,5 @@ export declare const criteriaTreeElementSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
7378
7331
|
text: string;
|
|
7379
7332
|
})[] | undefined;
|
|
7380
7333
|
sortOrder?: number | undefined;
|
|
7381
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
7382
7334
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
7383
7335
|
}>]>;
|
|
@@ -9,20 +9,12 @@ const criterion_1 = require("./criterion");
|
|
|
9
9
|
const task_group_1 = require("./task-group");
|
|
10
10
|
const task_1 = require("./task");
|
|
11
11
|
const task_item_1 = require("./task-item");
|
|
12
|
-
exports.criteriaTreeSchema = data_map_1.dataMapSchema
|
|
13
|
-
.pick({
|
|
12
|
+
exports.criteriaTreeSchema = data_map_1.dataMapSchema.pick({
|
|
14
13
|
version: true,
|
|
15
14
|
result: true,
|
|
16
|
-
certifications: true
|
|
17
|
-
})
|
|
18
|
-
.extend({
|
|
15
|
+
certifications: true
|
|
16
|
+
}).extend({
|
|
19
17
|
themes: zod_1.z.array(theme_1.themeSchema),
|
|
20
|
-
certificationDefinitions: zod_1.z.array(certification_1.certificationDefinitionSchema)
|
|
18
|
+
certificationDefinitions: (0, zod_1.optional)(zod_1.z.array(certification_1.certificationDefinitionSchema))
|
|
21
19
|
});
|
|
22
|
-
exports.criteriaTreeElementSchema = zod_1.z.discriminatedUnion(
|
|
23
|
-
theme_1.themeSchema,
|
|
24
|
-
criterion_1.criterionSchema,
|
|
25
|
-
task_group_1.taskGroupSchema,
|
|
26
|
-
task_1.taskSchema,
|
|
27
|
-
task_item_1.taskItemSchema,
|
|
28
|
-
]);
|
|
20
|
+
exports.criteriaTreeElementSchema = zod_1.z.discriminatedUnion('type', [theme_1.themeSchema, criterion_1.criterionSchema, task_group_1.taskGroupSchema, task_1.taskSchema, task_item_1.taskItemSchema]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const criterionOptionsSchema: z.ZodObject<{
|
|
3
3
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
hideFromHierarchy: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -420,7 +420,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
420
420
|
}>]>;
|
|
421
421
|
description: z.ZodOptional<z.ZodString>;
|
|
422
422
|
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">]>>>;
|
|
423
|
-
valueReference: z.ZodOptional<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">]>>;
|
|
424
423
|
options: z.ZodOptional<z.ZodObject<{
|
|
425
424
|
hideCode: z.ZodOptional<z.ZodBoolean>;
|
|
426
425
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -488,7 +487,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
488
487
|
text: string;
|
|
489
488
|
})[] | undefined;
|
|
490
489
|
sortOrder?: number | undefined;
|
|
491
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
492
490
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
493
491
|
}, {
|
|
494
492
|
type: "task-item";
|
|
@@ -550,7 +548,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
550
548
|
text: string;
|
|
551
549
|
})[] | undefined;
|
|
552
550
|
sortOrder?: number | undefined;
|
|
553
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
554
551
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
555
552
|
}>>, "many">;
|
|
556
553
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -624,7 +621,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
624
621
|
text: string;
|
|
625
622
|
})[] | undefined;
|
|
626
623
|
sortOrder?: number | undefined;
|
|
627
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
628
624
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
629
625
|
}[];
|
|
630
626
|
data?: (Record<string, any> & {
|
|
@@ -716,7 +712,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
716
712
|
text: string;
|
|
717
713
|
})[] | undefined;
|
|
718
714
|
sortOrder?: number | undefined;
|
|
719
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
720
715
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
721
716
|
}[];
|
|
722
717
|
data?: (Record<string, any> & {
|
|
@@ -823,7 +818,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
823
818
|
text: string;
|
|
824
819
|
})[] | undefined;
|
|
825
820
|
sortOrder?: number | undefined;
|
|
826
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
827
821
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
828
822
|
}[];
|
|
829
823
|
data?: (Record<string, any> & {
|
|
@@ -946,7 +940,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
946
940
|
text: string;
|
|
947
941
|
})[] | undefined;
|
|
948
942
|
sortOrder?: number | undefined;
|
|
949
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
950
943
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
951
944
|
}[];
|
|
952
945
|
data?: (Record<string, any> & {
|
|
@@ -1084,7 +1077,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1084
1077
|
text: string;
|
|
1085
1078
|
})[] | undefined;
|
|
1086
1079
|
sortOrder?: number | undefined;
|
|
1087
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1088
1080
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1089
1081
|
}[];
|
|
1090
1082
|
data?: (Record<string, any> & {
|
|
@@ -1237,7 +1229,6 @@ export declare const criterionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1237
1229
|
text: string;
|
|
1238
1230
|
})[] | undefined;
|
|
1239
1231
|
sortOrder?: number | undefined;
|
|
1240
|
-
valueReference?: string | number | boolean | (string | number | boolean | null)[] | null | undefined;
|
|
1241
1232
|
providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
|
|
1242
1233
|
}[];
|
|
1243
1234
|
data?: (Record<string, any> & {
|
|
@@ -5,11 +5,11 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const task_group_1 = require("./task-group");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
7
|
exports.criterionOptionsSchema = zod_1.z.object({
|
|
8
|
-
hideCode: zod_1.z.boolean()
|
|
9
|
-
hideFromHierarchy: zod_1.z.boolean()
|
|
8
|
+
hideCode: (0, zod_1.optional)(zod_1.z.boolean()),
|
|
9
|
+
hideFromHierarchy: (0, zod_1.optional)(zod_1.z.boolean()),
|
|
10
10
|
});
|
|
11
11
|
exports.criterionSchema = common_1.abstractElementSchema.extend({
|
|
12
|
-
type: zod_1.z.literal(
|
|
12
|
+
type: zod_1.z.literal('criterion'),
|
|
13
13
|
items: zod_1.z.array(zod_1.z.lazy(() => task_group_1.taskGroupSchema)),
|
|
14
|
-
options: exports.criterionOptionsSchema
|
|
14
|
+
options: (0, zod_1.optional)(exports.criterionOptionsSchema),
|
|
15
15
|
});
|
|
@@ -6,5 +6,5 @@ exports.dataMapSchema = zod_1.z.object({
|
|
|
6
6
|
version: zod_1.z.string(),
|
|
7
7
|
elements: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
|
|
8
8
|
result: zod_1.z.any(),
|
|
9
|
-
certifications: zod_1.z.array(zod_1.z.string())
|
|
9
|
+
certifications: (0, zod_1.optional)(zod_1.z.array(zod_1.z.string())),
|
|
10
10
|
});
|
|
@@ -3,23 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.documentationItemSchema = exports.linkDocumentationItemSchema = exports.inlineDocumentationItemSchema = exports.pdfDocumentationItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const abstractDocumentationItemSchema = zod_1.z.object({
|
|
6
|
-
type: zod_1.z.enum([
|
|
6
|
+
type: zod_1.z.enum(['pdf', 'text', 'link']),
|
|
7
7
|
label: zod_1.z.string(),
|
|
8
8
|
text: zod_1.z.string(),
|
|
9
9
|
});
|
|
10
10
|
exports.pdfDocumentationItemSchema = abstractDocumentationItemSchema.extend({
|
|
11
|
-
type: zod_1.z.literal(
|
|
11
|
+
type: zod_1.z.literal('pdf'),
|
|
12
12
|
url: zod_1.z.string().url(),
|
|
13
13
|
});
|
|
14
14
|
exports.inlineDocumentationItemSchema = abstractDocumentationItemSchema.extend({
|
|
15
|
-
type: zod_1.z.literal(
|
|
15
|
+
type: zod_1.z.literal('text'),
|
|
16
16
|
});
|
|
17
17
|
exports.linkDocumentationItemSchema = abstractDocumentationItemSchema.extend({
|
|
18
|
-
type: zod_1.z.literal(
|
|
18
|
+
type: zod_1.z.literal('link'),
|
|
19
19
|
url: zod_1.z.string().url(),
|
|
20
20
|
});
|
|
21
|
-
exports.documentationItemSchema = zod_1.z.discriminatedUnion(
|
|
22
|
-
exports.pdfDocumentationItemSchema,
|
|
23
|
-
exports.inlineDocumentationItemSchema,
|
|
24
|
-
exports.linkDocumentationItemSchema,
|
|
25
|
-
]);
|
|
21
|
+
exports.documentationItemSchema = zod_1.z.discriminatedUnion('type', [exports.pdfDocumentationItemSchema, exports.inlineDocumentationItemSchema, exports.linkDocumentationItemSchema]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from './request';
|
|
2
|
+
export * from './certification';
|
|
3
|
+
export * from './common';
|
|
4
|
+
export * from './criteria-tree';
|
|
5
|
+
export * from './criterion';
|
|
6
|
+
export * from './data-map';
|
|
7
|
+
export * from './documentation';
|
|
8
|
+
export * from './metadata';
|
|
9
|
+
export * from './response';
|
|
10
|
+
export * from './task';
|
|
11
|
+
export * from './task-group';
|
|
12
|
+
export * from './task-item';
|
|
13
|
+
export * from './theme';
|
|
@@ -4,8 +4,8 @@ exports.metadataSchema = exports.schemaDefinitionsSchema = exports.schemaDefinit
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.schemaDefinitionSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
|
|
6
6
|
exports.schemaDefinitionsSchema = zod_1.z.object({
|
|
7
|
-
parameters: exports.schemaDefinitionSchema
|
|
8
|
-
result: exports.schemaDefinitionSchema
|
|
7
|
+
parameters: (0, zod_1.optional)(exports.schemaDefinitionSchema),
|
|
8
|
+
result: (0, zod_1.optional)(exports.schemaDefinitionSchema),
|
|
9
9
|
});
|
|
10
10
|
exports.metadataSchema = zod_1.z.object({
|
|
11
11
|
id: zod_1.z.string(),
|
|
@@ -13,8 +13,8 @@ exports.metadataSchema = zod_1.z.object({
|
|
|
13
13
|
date: zod_1.z.date(),
|
|
14
14
|
name: zod_1.z.string(),
|
|
15
15
|
description: zod_1.z.string(),
|
|
16
|
-
documentation: zod_1.z.string()
|
|
17
|
-
locales: zod_1.z.array(zod_1.z.string())
|
|
18
|
-
defaultLocale: zod_1.z.string()
|
|
19
|
-
schemas: exports.schemaDefinitionsSchema
|
|
16
|
+
documentation: (0, zod_1.optional)(zod_1.z.string()),
|
|
17
|
+
locales: (0, zod_1.optional)(zod_1.z.array(zod_1.z.string())),
|
|
18
|
+
defaultLocale: (0, zod_1.optional)(zod_1.z.string()),
|
|
19
|
+
schemas: (0, zod_1.optional)(exports.schemaDefinitionsSchema),
|
|
20
20
|
});
|