@openframe-org/criteria-set-protocol 2.0.24 → 2.0.26

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.
@@ -615,6 +615,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
615
615
  readOnly: z.ZodOptional<z.ZodBoolean>;
616
616
  }, {
617
617
  type: z.ZodLiteral<"select-single">;
618
+ minimum: z.ZodOptional<z.ZodNumber>;
619
+ maximum: z.ZodOptional<z.ZodNumber>;
618
620
  options: z.ZodArray<z.ZodObject<{
619
621
  id: z.ZodOptional<z.ZodString>;
620
622
  text: z.ZodString;
@@ -645,6 +647,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
645
647
  outro?: string | undefined;
646
648
  }[];
647
649
  label?: string | undefined;
650
+ minimum?: number | undefined;
651
+ maximum?: number | undefined;
648
652
  defaultValue?: string | undefined;
649
653
  readOnly?: boolean | undefined;
650
654
  }, {
@@ -657,6 +661,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
657
661
  outro?: string | undefined;
658
662
  }[];
659
663
  label?: string | undefined;
664
+ minimum?: number | undefined;
665
+ maximum?: number | undefined;
660
666
  defaultValue?: string | undefined;
661
667
  readOnly?: boolean | undefined;
662
668
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -665,6 +671,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
665
671
  readOnly: z.ZodOptional<z.ZodBoolean>;
666
672
  }, {
667
673
  type: z.ZodLiteral<"select-multiple">;
674
+ minimum: z.ZodOptional<z.ZodNumber>;
675
+ maximum: z.ZodOptional<z.ZodNumber>;
668
676
  options: z.ZodArray<z.ZodObject<{
669
677
  id: z.ZodOptional<z.ZodString>;
670
678
  text: z.ZodString;
@@ -695,6 +703,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
695
703
  outro?: string | undefined;
696
704
  }[];
697
705
  label?: string | undefined;
706
+ minimum?: number | undefined;
707
+ maximum?: number | undefined;
698
708
  defaultValue?: string[] | undefined;
699
709
  readOnly?: boolean | undefined;
700
710
  }, {
@@ -707,6 +717,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
707
717
  outro?: string | undefined;
708
718
  }[];
709
719
  label?: string | undefined;
720
+ minimum?: number | undefined;
721
+ maximum?: number | undefined;
710
722
  defaultValue?: string[] | undefined;
711
723
  readOnly?: boolean | undefined;
712
724
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -796,6 +808,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
796
808
  outro?: string | undefined;
797
809
  }[];
798
810
  label?: string | undefined;
811
+ minimum?: number | undefined;
812
+ maximum?: number | undefined;
799
813
  defaultValue?: string | undefined;
800
814
  readOnly?: boolean | undefined;
801
815
  } | {
@@ -808,6 +822,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
808
822
  outro?: string | undefined;
809
823
  }[];
810
824
  label?: string | undefined;
825
+ minimum?: number | undefined;
826
+ maximum?: number | undefined;
811
827
  defaultValue?: string[] | undefined;
812
828
  readOnly?: boolean | undefined;
813
829
  } | {
@@ -878,6 +894,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
878
894
  outro?: string | undefined;
879
895
  }[];
880
896
  label?: string | undefined;
897
+ minimum?: number | undefined;
898
+ maximum?: number | undefined;
881
899
  defaultValue?: string | undefined;
882
900
  readOnly?: boolean | undefined;
883
901
  } | {
@@ -890,6 +908,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
890
908
  outro?: string | undefined;
891
909
  }[];
892
910
  label?: string | undefined;
911
+ minimum?: number | undefined;
912
+ maximum?: number | undefined;
893
913
  defaultValue?: string[] | undefined;
894
914
  readOnly?: boolean | undefined;
895
915
  } | {
@@ -972,6 +992,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
972
992
  outro?: string | undefined;
973
993
  }[];
974
994
  label?: string | undefined;
995
+ minimum?: number | undefined;
996
+ maximum?: number | undefined;
975
997
  defaultValue?: string | undefined;
976
998
  readOnly?: boolean | undefined;
977
999
  } | {
@@ -984,6 +1006,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
984
1006
  outro?: string | undefined;
985
1007
  }[];
986
1008
  label?: string | undefined;
1009
+ minimum?: number | undefined;
1010
+ maximum?: number | undefined;
987
1011
  defaultValue?: string[] | undefined;
988
1012
  readOnly?: boolean | undefined;
989
1013
  } | {
@@ -1093,6 +1117,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1093
1117
  outro?: string | undefined;
1094
1118
  }[];
1095
1119
  label?: string | undefined;
1120
+ minimum?: number | undefined;
1121
+ maximum?: number | undefined;
1096
1122
  defaultValue?: string | undefined;
1097
1123
  readOnly?: boolean | undefined;
1098
1124
  } | {
@@ -1105,6 +1131,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1105
1131
  outro?: string | undefined;
1106
1132
  }[];
1107
1133
  label?: string | undefined;
1134
+ minimum?: number | undefined;
1135
+ maximum?: number | undefined;
1108
1136
  defaultValue?: string[] | undefined;
1109
1137
  readOnly?: boolean | undefined;
1110
1138
  } | {
@@ -1229,6 +1257,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1229
1257
  outro?: string | undefined;
1230
1258
  }[];
1231
1259
  label?: string | undefined;
1260
+ minimum?: number | undefined;
1261
+ maximum?: number | undefined;
1232
1262
  defaultValue?: string | undefined;
1233
1263
  readOnly?: boolean | undefined;
1234
1264
  } | {
@@ -1241,6 +1271,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1241
1271
  outro?: string | undefined;
1242
1272
  }[];
1243
1273
  label?: string | undefined;
1274
+ minimum?: number | undefined;
1275
+ maximum?: number | undefined;
1244
1276
  defaultValue?: string[] | undefined;
1245
1277
  readOnly?: boolean | undefined;
1246
1278
  } | {
@@ -1390,6 +1422,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1390
1422
  outro?: string | undefined;
1391
1423
  }[];
1392
1424
  label?: string | undefined;
1425
+ minimum?: number | undefined;
1426
+ maximum?: number | undefined;
1393
1427
  defaultValue?: string | undefined;
1394
1428
  readOnly?: boolean | undefined;
1395
1429
  } | {
@@ -1402,6 +1436,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1402
1436
  outro?: string | undefined;
1403
1437
  }[];
1404
1438
  label?: string | undefined;
1439
+ minimum?: number | undefined;
1440
+ maximum?: number | undefined;
1405
1441
  defaultValue?: string[] | undefined;
1406
1442
  readOnly?: boolean | undefined;
1407
1443
  } | {
@@ -1566,6 +1602,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1566
1602
  outro?: string | undefined;
1567
1603
  }[];
1568
1604
  label?: string | undefined;
1605
+ minimum?: number | undefined;
1606
+ maximum?: number | undefined;
1569
1607
  defaultValue?: string | undefined;
1570
1608
  readOnly?: boolean | undefined;
1571
1609
  } | {
@@ -1578,6 +1616,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1578
1616
  outro?: string | undefined;
1579
1617
  }[];
1580
1618
  label?: string | undefined;
1619
+ minimum?: number | undefined;
1620
+ maximum?: number | undefined;
1581
1621
  defaultValue?: string[] | undefined;
1582
1622
  readOnly?: boolean | undefined;
1583
1623
  } | {
@@ -1766,6 +1806,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1766
1806
  outro?: string | undefined;
1767
1807
  }[];
1768
1808
  label?: string | undefined;
1809
+ minimum?: number | undefined;
1810
+ maximum?: number | undefined;
1769
1811
  defaultValue?: string | undefined;
1770
1812
  readOnly?: boolean | undefined;
1771
1813
  } | {
@@ -1778,6 +1820,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1778
1820
  outro?: string | undefined;
1779
1821
  }[];
1780
1822
  label?: string | undefined;
1823
+ minimum?: number | undefined;
1824
+ maximum?: number | undefined;
1781
1825
  defaultValue?: string[] | undefined;
1782
1826
  readOnly?: boolean | undefined;
1783
1827
  } | {
@@ -1981,6 +2025,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1981
2025
  outro?: string | undefined;
1982
2026
  }[];
1983
2027
  label?: string | undefined;
2028
+ minimum?: number | undefined;
2029
+ maximum?: number | undefined;
1984
2030
  defaultValue?: string | undefined;
1985
2031
  readOnly?: boolean | undefined;
1986
2032
  } | {
@@ -1993,6 +2039,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
1993
2039
  outro?: string | undefined;
1994
2040
  }[];
1995
2041
  label?: string | undefined;
2042
+ minimum?: number | undefined;
2043
+ maximum?: number | undefined;
1996
2044
  defaultValue?: string[] | undefined;
1997
2045
  readOnly?: boolean | undefined;
1998
2046
  } | {
@@ -2232,6 +2280,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2232
2280
  outro?: string | undefined;
2233
2281
  }[];
2234
2282
  label?: string | undefined;
2283
+ minimum?: number | undefined;
2284
+ maximum?: number | undefined;
2235
2285
  defaultValue?: string | undefined;
2236
2286
  readOnly?: boolean | undefined;
2237
2287
  } | {
@@ -2244,6 +2294,8 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
2244
2294
  outro?: string | undefined;
2245
2295
  }[];
2246
2296
  label?: string | undefined;
2297
+ minimum?: number | undefined;
2298
+ maximum?: number | undefined;
2247
2299
  defaultValue?: string[] | undefined;
2248
2300
  readOnly?: boolean | undefined;
2249
2301
  } | {
@@ -1,13 +1,13 @@
1
1
  import { CriteriaTree, Metadata, DataMap, StreamMatrixResponse, TaskItemValueMap } from "../types";
2
- export type TreeAndMapParameters<ParametersType extends Record<string, any> = Record<string, any>> = {
3
- parameters?: ParametersType;
2
+ export type TreeAndMapParameters<ParametersType extends Record<string, any> | undefined = undefined> = {
3
+ parameters: ParametersType extends undefined ? undefined : ParametersType;
4
4
  values?: TaskItemValueMap | null;
5
5
  locale?: string | null;
6
6
  };
7
- export type MatrixParameters<ParametersType extends Record<string, any> = Record<string, any>> = TreeAndMapParameters<ParametersType> & {
7
+ export type MatrixParameters<ParametersType extends Record<string, any> | undefined = undefined> = TreeAndMapParameters<ParametersType> & {
8
8
  additional?: any;
9
9
  };
10
- export interface ICriteriaSetService<ParametersType extends Record<string, any> = Record<string, any>> {
10
+ export interface ICriteriaSetService<ParametersType extends Record<string, any> | undefined = undefined> {
11
11
  id: string;
12
12
  version: string;
13
13
  validateParameters(parameters: ParametersType): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openframe-org/criteria-set-protocol",
3
- "version": "2.0.24",
3
+ "version": "2.0.26",
4
4
  "description": "A protocol and tools for defining and working with criteria sets",
5
5
  "private": false,
6
6
  "author": "Andrés Angulo <aa@openframe.org>",