@openframe-org/criteria-set-protocol 2.0.18 → 2.0.19
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/criteria-tree.d.ts +480 -0
- package/dist/v1/schemas/criterion.d.ts +88 -0
- package/dist/v1/schemas/task-group.d.ts +72 -0
- package/dist/v1/schemas/task-item.d.ts +88 -0
- package/dist/v1/schemas/task-item.js +6 -1
- package/dist/v1/schemas/task.d.ts +56 -0
- package/dist/v1/schemas/theme.d.ts +104 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ export declare const pointOptionSchema: z.ZodObject<{
|
|
|
22
22
|
export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
23
23
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
24
24
|
label: z.ZodOptional<z.ZodString>;
|
|
25
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
25
26
|
}, {
|
|
26
27
|
type: z.ZodLiteral<"select-single">;
|
|
27
28
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -43,6 +44,7 @@ export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
43
44
|
intro?: string | undefined;
|
|
44
45
|
outro?: string | undefined;
|
|
45
46
|
}>, "many">;
|
|
47
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
46
48
|
}>, "strip", z.ZodTypeAny, {
|
|
47
49
|
type: "select-single";
|
|
48
50
|
options: {
|
|
@@ -53,6 +55,8 @@ export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
53
55
|
outro?: string | undefined;
|
|
54
56
|
}[];
|
|
55
57
|
label?: string | undefined;
|
|
58
|
+
defaultValue?: string | undefined;
|
|
59
|
+
readOnly?: boolean | undefined;
|
|
56
60
|
}, {
|
|
57
61
|
type: "select-single";
|
|
58
62
|
options: {
|
|
@@ -63,10 +67,13 @@ export declare const selectSingleTypeSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
63
67
|
outro?: string | undefined;
|
|
64
68
|
}[];
|
|
65
69
|
label?: string | undefined;
|
|
70
|
+
defaultValue?: string | undefined;
|
|
71
|
+
readOnly?: boolean | undefined;
|
|
66
72
|
}>;
|
|
67
73
|
export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
68
74
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
69
75
|
label: z.ZodOptional<z.ZodString>;
|
|
76
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
70
77
|
}, {
|
|
71
78
|
type: z.ZodLiteral<"select-multiple">;
|
|
72
79
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -88,6 +95,7 @@ export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
88
95
|
intro?: string | undefined;
|
|
89
96
|
outro?: string | undefined;
|
|
90
97
|
}>, "many">;
|
|
98
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
99
|
}>, "strip", z.ZodTypeAny, {
|
|
92
100
|
type: "select-multiple";
|
|
93
101
|
options: {
|
|
@@ -98,6 +106,8 @@ export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
98
106
|
outro?: string | undefined;
|
|
99
107
|
}[];
|
|
100
108
|
label?: string | undefined;
|
|
109
|
+
defaultValue?: string[] | undefined;
|
|
110
|
+
readOnly?: boolean | undefined;
|
|
101
111
|
}, {
|
|
102
112
|
type: "select-multiple";
|
|
103
113
|
options: {
|
|
@@ -108,31 +118,40 @@ export declare const selectMultipleTypeSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
108
118
|
outro?: string | undefined;
|
|
109
119
|
}[];
|
|
110
120
|
label?: string | undefined;
|
|
121
|
+
defaultValue?: string[] | undefined;
|
|
122
|
+
readOnly?: boolean | undefined;
|
|
111
123
|
}>;
|
|
112
124
|
export declare const numberTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
113
125
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
114
126
|
label: z.ZodOptional<z.ZodString>;
|
|
127
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
115
128
|
}, {
|
|
116
129
|
type: z.ZodLiteral<"number">;
|
|
117
130
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
118
131
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
119
132
|
step: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
120
134
|
}>, "strip", z.ZodTypeAny, {
|
|
121
135
|
type: "number";
|
|
122
136
|
label?: string | undefined;
|
|
123
137
|
minimum?: number | undefined;
|
|
124
138
|
maximum?: number | undefined;
|
|
139
|
+
defaultValue?: number | undefined;
|
|
125
140
|
step?: number | undefined;
|
|
141
|
+
readOnly?: boolean | undefined;
|
|
126
142
|
}, {
|
|
127
143
|
type: "number";
|
|
128
144
|
label?: string | undefined;
|
|
129
145
|
minimum?: number | undefined;
|
|
130
146
|
maximum?: number | undefined;
|
|
147
|
+
defaultValue?: number | undefined;
|
|
131
148
|
step?: number | undefined;
|
|
149
|
+
readOnly?: boolean | undefined;
|
|
132
150
|
}>;
|
|
133
151
|
export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
134
152
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
135
153
|
label: z.ZodOptional<z.ZodString>;
|
|
154
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
136
155
|
}, {
|
|
137
156
|
type: z.ZodLiteral<"boolean">;
|
|
138
157
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -145,6 +164,7 @@ export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
145
164
|
false: string;
|
|
146
165
|
true: string;
|
|
147
166
|
}>>;
|
|
167
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
148
168
|
}>, "strip", z.ZodTypeAny, {
|
|
149
169
|
type: "boolean";
|
|
150
170
|
label?: string | undefined;
|
|
@@ -152,6 +172,8 @@ export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
152
172
|
false: string;
|
|
153
173
|
true: string;
|
|
154
174
|
} | undefined;
|
|
175
|
+
defaultValue?: boolean | undefined;
|
|
176
|
+
readOnly?: boolean | undefined;
|
|
155
177
|
}, {
|
|
156
178
|
type: "boolean";
|
|
157
179
|
label?: string | undefined;
|
|
@@ -159,10 +181,13 @@ export declare const booleanTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
159
181
|
false: string;
|
|
160
182
|
true: string;
|
|
161
183
|
} | undefined;
|
|
184
|
+
defaultValue?: boolean | undefined;
|
|
185
|
+
readOnly?: boolean | undefined;
|
|
162
186
|
}>;
|
|
163
187
|
export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
164
188
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
165
189
|
label: z.ZodOptional<z.ZodString>;
|
|
190
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
166
191
|
}, {
|
|
167
192
|
type: z.ZodLiteral<"select-single">;
|
|
168
193
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -184,6 +209,7 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
184
209
|
intro?: string | undefined;
|
|
185
210
|
outro?: string | undefined;
|
|
186
211
|
}>, "many">;
|
|
212
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
187
213
|
}>, "strip", z.ZodTypeAny, {
|
|
188
214
|
type: "select-single";
|
|
189
215
|
options: {
|
|
@@ -194,6 +220,8 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
194
220
|
outro?: string | undefined;
|
|
195
221
|
}[];
|
|
196
222
|
label?: string | undefined;
|
|
223
|
+
defaultValue?: string | undefined;
|
|
224
|
+
readOnly?: boolean | undefined;
|
|
197
225
|
}, {
|
|
198
226
|
type: "select-single";
|
|
199
227
|
options: {
|
|
@@ -204,9 +232,12 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
204
232
|
outro?: string | undefined;
|
|
205
233
|
}[];
|
|
206
234
|
label?: string | undefined;
|
|
235
|
+
defaultValue?: string | undefined;
|
|
236
|
+
readOnly?: boolean | undefined;
|
|
207
237
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
208
238
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
209
239
|
label: z.ZodOptional<z.ZodString>;
|
|
240
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
210
241
|
}, {
|
|
211
242
|
type: z.ZodLiteral<"select-multiple">;
|
|
212
243
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -228,6 +259,7 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
228
259
|
intro?: string | undefined;
|
|
229
260
|
outro?: string | undefined;
|
|
230
261
|
}>, "many">;
|
|
262
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
231
263
|
}>, "strip", z.ZodTypeAny, {
|
|
232
264
|
type: "select-multiple";
|
|
233
265
|
options: {
|
|
@@ -238,6 +270,8 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
238
270
|
outro?: string | undefined;
|
|
239
271
|
}[];
|
|
240
272
|
label?: string | undefined;
|
|
273
|
+
defaultValue?: string[] | undefined;
|
|
274
|
+
readOnly?: boolean | undefined;
|
|
241
275
|
}, {
|
|
242
276
|
type: "select-multiple";
|
|
243
277
|
options: {
|
|
@@ -248,29 +282,38 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
248
282
|
outro?: string | undefined;
|
|
249
283
|
}[];
|
|
250
284
|
label?: string | undefined;
|
|
285
|
+
defaultValue?: string[] | undefined;
|
|
286
|
+
readOnly?: boolean | undefined;
|
|
251
287
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
252
288
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
253
289
|
label: z.ZodOptional<z.ZodString>;
|
|
290
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
254
291
|
}, {
|
|
255
292
|
type: z.ZodLiteral<"number">;
|
|
256
293
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
257
294
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
258
295
|
step: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
259
297
|
}>, "strip", z.ZodTypeAny, {
|
|
260
298
|
type: "number";
|
|
261
299
|
label?: string | undefined;
|
|
262
300
|
minimum?: number | undefined;
|
|
263
301
|
maximum?: number | undefined;
|
|
302
|
+
defaultValue?: number | undefined;
|
|
264
303
|
step?: number | undefined;
|
|
304
|
+
readOnly?: boolean | undefined;
|
|
265
305
|
}, {
|
|
266
306
|
type: "number";
|
|
267
307
|
label?: string | undefined;
|
|
268
308
|
minimum?: number | undefined;
|
|
269
309
|
maximum?: number | undefined;
|
|
310
|
+
defaultValue?: number | undefined;
|
|
270
311
|
step?: number | undefined;
|
|
312
|
+
readOnly?: boolean | undefined;
|
|
271
313
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
272
314
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
273
315
|
label: z.ZodOptional<z.ZodString>;
|
|
316
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
274
317
|
}, {
|
|
275
318
|
type: z.ZodLiteral<"boolean">;
|
|
276
319
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -283,6 +326,7 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
283
326
|
false: string;
|
|
284
327
|
true: string;
|
|
285
328
|
}>>;
|
|
329
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
286
330
|
}>, "strip", z.ZodTypeAny, {
|
|
287
331
|
type: "boolean";
|
|
288
332
|
label?: string | undefined;
|
|
@@ -290,6 +334,8 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
290
334
|
false: string;
|
|
291
335
|
true: string;
|
|
292
336
|
} | undefined;
|
|
337
|
+
defaultValue?: boolean | undefined;
|
|
338
|
+
readOnly?: boolean | undefined;
|
|
293
339
|
}, {
|
|
294
340
|
type: "boolean";
|
|
295
341
|
label?: string | undefined;
|
|
@@ -297,6 +343,8 @@ export declare const taskItemDefinitionSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
297
343
|
false: string;
|
|
298
344
|
true: string;
|
|
299
345
|
} | undefined;
|
|
346
|
+
defaultValue?: boolean | undefined;
|
|
347
|
+
readOnly?: boolean | undefined;
|
|
300
348
|
}>]>;
|
|
301
349
|
export declare const taskItemDataSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
302
350
|
type: z.ZodOptional<z.ZodEnum<["percentage", "number"]>>;
|
|
@@ -476,6 +524,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
476
524
|
definition: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
477
525
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
478
526
|
label: z.ZodOptional<z.ZodString>;
|
|
527
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
479
528
|
}, {
|
|
480
529
|
type: z.ZodLiteral<"select-single">;
|
|
481
530
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -497,6 +546,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
497
546
|
intro?: string | undefined;
|
|
498
547
|
outro?: string | undefined;
|
|
499
548
|
}>, "many">;
|
|
549
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
500
550
|
}>, "strip", z.ZodTypeAny, {
|
|
501
551
|
type: "select-single";
|
|
502
552
|
options: {
|
|
@@ -507,6 +557,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
507
557
|
outro?: string | undefined;
|
|
508
558
|
}[];
|
|
509
559
|
label?: string | undefined;
|
|
560
|
+
defaultValue?: string | undefined;
|
|
561
|
+
readOnly?: boolean | undefined;
|
|
510
562
|
}, {
|
|
511
563
|
type: "select-single";
|
|
512
564
|
options: {
|
|
@@ -517,9 +569,12 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
517
569
|
outro?: string | undefined;
|
|
518
570
|
}[];
|
|
519
571
|
label?: string | undefined;
|
|
572
|
+
defaultValue?: string | undefined;
|
|
573
|
+
readOnly?: boolean | undefined;
|
|
520
574
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
521
575
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
522
576
|
label: z.ZodOptional<z.ZodString>;
|
|
577
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
523
578
|
}, {
|
|
524
579
|
type: z.ZodLiteral<"select-multiple">;
|
|
525
580
|
options: z.ZodArray<z.ZodObject<{
|
|
@@ -541,6 +596,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
541
596
|
intro?: string | undefined;
|
|
542
597
|
outro?: string | undefined;
|
|
543
598
|
}>, "many">;
|
|
599
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
544
600
|
}>, "strip", z.ZodTypeAny, {
|
|
545
601
|
type: "select-multiple";
|
|
546
602
|
options: {
|
|
@@ -551,6 +607,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
551
607
|
outro?: string | undefined;
|
|
552
608
|
}[];
|
|
553
609
|
label?: string | undefined;
|
|
610
|
+
defaultValue?: string[] | undefined;
|
|
611
|
+
readOnly?: boolean | undefined;
|
|
554
612
|
}, {
|
|
555
613
|
type: "select-multiple";
|
|
556
614
|
options: {
|
|
@@ -561,29 +619,38 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
561
619
|
outro?: string | undefined;
|
|
562
620
|
}[];
|
|
563
621
|
label?: string | undefined;
|
|
622
|
+
defaultValue?: string[] | undefined;
|
|
623
|
+
readOnly?: boolean | undefined;
|
|
564
624
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
565
625
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
566
626
|
label: z.ZodOptional<z.ZodString>;
|
|
627
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
567
628
|
}, {
|
|
568
629
|
type: z.ZodLiteral<"number">;
|
|
569
630
|
minimum: z.ZodOptional<z.ZodNumber>;
|
|
570
631
|
maximum: z.ZodOptional<z.ZodNumber>;
|
|
571
632
|
step: z.ZodOptional<z.ZodNumber>;
|
|
633
|
+
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
572
634
|
}>, "strip", z.ZodTypeAny, {
|
|
573
635
|
type: "number";
|
|
574
636
|
label?: string | undefined;
|
|
575
637
|
minimum?: number | undefined;
|
|
576
638
|
maximum?: number | undefined;
|
|
639
|
+
defaultValue?: number | undefined;
|
|
577
640
|
step?: number | undefined;
|
|
641
|
+
readOnly?: boolean | undefined;
|
|
578
642
|
}, {
|
|
579
643
|
type: "number";
|
|
580
644
|
label?: string | undefined;
|
|
581
645
|
minimum?: number | undefined;
|
|
582
646
|
maximum?: number | undefined;
|
|
647
|
+
defaultValue?: number | undefined;
|
|
583
648
|
step?: number | undefined;
|
|
649
|
+
readOnly?: boolean | undefined;
|
|
584
650
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
585
651
|
type: z.ZodEnum<["select-single", "select-multiple", "number", "boolean"]>;
|
|
586
652
|
label: z.ZodOptional<z.ZodString>;
|
|
653
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
587
654
|
}, {
|
|
588
655
|
type: z.ZodLiteral<"boolean">;
|
|
589
656
|
labels: z.ZodOptional<z.ZodObject<{
|
|
@@ -596,6 +663,7 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
596
663
|
false: string;
|
|
597
664
|
true: string;
|
|
598
665
|
}>>;
|
|
666
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
599
667
|
}>, "strip", z.ZodTypeAny, {
|
|
600
668
|
type: "boolean";
|
|
601
669
|
label?: string | undefined;
|
|
@@ -603,6 +671,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
603
671
|
false: string;
|
|
604
672
|
true: string;
|
|
605
673
|
} | undefined;
|
|
674
|
+
defaultValue?: boolean | undefined;
|
|
675
|
+
readOnly?: boolean | undefined;
|
|
606
676
|
}, {
|
|
607
677
|
type: "boolean";
|
|
608
678
|
label?: string | undefined;
|
|
@@ -610,6 +680,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
610
680
|
false: string;
|
|
611
681
|
true: string;
|
|
612
682
|
} | undefined;
|
|
683
|
+
defaultValue?: boolean | undefined;
|
|
684
|
+
readOnly?: boolean | undefined;
|
|
613
685
|
}>]>;
|
|
614
686
|
description: z.ZodOptional<z.ZodString>;
|
|
615
687
|
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">]>>;
|
|
@@ -633,6 +705,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
633
705
|
outro?: string | undefined;
|
|
634
706
|
}[];
|
|
635
707
|
label?: string | undefined;
|
|
708
|
+
defaultValue?: string | undefined;
|
|
709
|
+
readOnly?: boolean | undefined;
|
|
636
710
|
} | {
|
|
637
711
|
type: "select-multiple";
|
|
638
712
|
options: {
|
|
@@ -643,12 +717,16 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
643
717
|
outro?: string | undefined;
|
|
644
718
|
}[];
|
|
645
719
|
label?: string | undefined;
|
|
720
|
+
defaultValue?: string[] | undefined;
|
|
721
|
+
readOnly?: boolean | undefined;
|
|
646
722
|
} | {
|
|
647
723
|
type: "number";
|
|
648
724
|
label?: string | undefined;
|
|
649
725
|
minimum?: number | undefined;
|
|
650
726
|
maximum?: number | undefined;
|
|
727
|
+
defaultValue?: number | undefined;
|
|
651
728
|
step?: number | undefined;
|
|
729
|
+
readOnly?: boolean | undefined;
|
|
652
730
|
} | {
|
|
653
731
|
type: "boolean";
|
|
654
732
|
label?: string | undefined;
|
|
@@ -656,6 +734,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
656
734
|
false: string;
|
|
657
735
|
true: string;
|
|
658
736
|
} | undefined;
|
|
737
|
+
defaultValue?: boolean | undefined;
|
|
738
|
+
readOnly?: boolean | undefined;
|
|
659
739
|
};
|
|
660
740
|
data?: {
|
|
661
741
|
type?: "number" | "percentage" | undefined;
|
|
@@ -706,6 +786,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
706
786
|
outro?: string | undefined;
|
|
707
787
|
}[];
|
|
708
788
|
label?: string | undefined;
|
|
789
|
+
defaultValue?: string | undefined;
|
|
790
|
+
readOnly?: boolean | undefined;
|
|
709
791
|
} | {
|
|
710
792
|
type: "select-multiple";
|
|
711
793
|
options: {
|
|
@@ -716,12 +798,16 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
716
798
|
outro?: string | undefined;
|
|
717
799
|
}[];
|
|
718
800
|
label?: string | undefined;
|
|
801
|
+
defaultValue?: string[] | undefined;
|
|
802
|
+
readOnly?: boolean | undefined;
|
|
719
803
|
} | {
|
|
720
804
|
type: "number";
|
|
721
805
|
label?: string | undefined;
|
|
722
806
|
minimum?: number | undefined;
|
|
723
807
|
maximum?: number | undefined;
|
|
808
|
+
defaultValue?: number | undefined;
|
|
724
809
|
step?: number | undefined;
|
|
810
|
+
readOnly?: boolean | undefined;
|
|
725
811
|
} | {
|
|
726
812
|
type: "boolean";
|
|
727
813
|
label?: string | undefined;
|
|
@@ -729,6 +815,8 @@ export declare const taskItemSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
729
815
|
false: string;
|
|
730
816
|
true: string;
|
|
731
817
|
} | undefined;
|
|
818
|
+
defaultValue?: boolean | undefined;
|
|
819
|
+
readOnly?: boolean | undefined;
|
|
732
820
|
};
|
|
733
821
|
data?: {
|
|
734
822
|
type?: "number" | "percentage" | undefined;
|
|
@@ -13,21 +13,25 @@ exports.pointOptionSchema = zod_1.z.object({
|
|
|
13
13
|
});
|
|
14
14
|
const abstractDefinitionSchema = zod_1.z.object({
|
|
15
15
|
type: zod_1.z.enum(["select-single", "select-multiple", "number", "boolean"]),
|
|
16
|
-
label: zod_1.z.string().optional()
|
|
16
|
+
label: zod_1.z.string().optional(),
|
|
17
|
+
readOnly: zod_1.z.boolean().optional()
|
|
17
18
|
});
|
|
18
19
|
exports.selectSingleTypeSchema = abstractDefinitionSchema.extend({
|
|
19
20
|
type: zod_1.z.literal("select-single"),
|
|
20
21
|
options: zod_1.z.array(exports.pointOptionSchema),
|
|
22
|
+
defaultValue: zod_1.z.string().optional(),
|
|
21
23
|
});
|
|
22
24
|
exports.selectMultipleTypeSchema = abstractDefinitionSchema.extend({
|
|
23
25
|
type: zod_1.z.literal("select-multiple"),
|
|
24
26
|
options: zod_1.z.array(exports.pointOptionSchema),
|
|
27
|
+
defaultValue: zod_1.z.array(zod_1.z.string()).optional(),
|
|
25
28
|
});
|
|
26
29
|
exports.numberTypeSchema = abstractDefinitionSchema.extend({
|
|
27
30
|
type: zod_1.z.literal("number"),
|
|
28
31
|
minimum: zod_1.z.number().optional(),
|
|
29
32
|
maximum: zod_1.z.number().optional(),
|
|
30
33
|
step: zod_1.z.number().optional(),
|
|
34
|
+
defaultValue: zod_1.z.number().optional(),
|
|
31
35
|
});
|
|
32
36
|
exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
33
37
|
type: zod_1.z.literal("boolean"),
|
|
@@ -37,6 +41,7 @@ exports.booleanTypeSchema = abstractDefinitionSchema.extend({
|
|
|
37
41
|
false: zod_1.z.string(),
|
|
38
42
|
})
|
|
39
43
|
.optional(),
|
|
44
|
+
defaultValue: zod_1.z.boolean().optional(),
|
|
40
45
|
});
|
|
41
46
|
exports.taskItemDefinitionSchema = zod_1.z.discriminatedUnion("type", [
|
|
42
47
|
exports.selectSingleTypeSchema,
|