@openframe-org/criteria-set-protocol 1.5.0 → 1.5.1

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.
@@ -1,16 +1,526 @@
1
1
  import { z } from 'zod';
2
- import { BooleanType, DocumentationItem, InlineDocumentationItem, LinkDocumentationItem, NumberType, PdfDocumentationItem, PointOption, SelectMultipleType, SelectSingleType, TaskItem, TaskItemDefinition, TaskItemValueMap } from '../types';
3
- export declare const pdfDocumentationItem: z.Schema<PdfDocumentationItem>;
4
- export declare const inlineDocumentationItem: z.Schema<InlineDocumentationItem>;
5
- export declare const linkDocumentationItem: z.Schema<LinkDocumentationItem>;
6
- export declare const documentationItemSchema: z.Schema<DocumentationItem>;
2
+ export declare const pdfDocumentationItem: z.ZodObject<{
3
+ type: z.ZodLiteral<"pdf">;
4
+ label: z.ZodString;
5
+ url: z.ZodString;
6
+ text: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "pdf";
9
+ url: string;
10
+ label: string;
11
+ text: string;
12
+ }, {
13
+ type: "pdf";
14
+ url: string;
15
+ label: string;
16
+ text: string;
17
+ }>;
18
+ export declare const inlineDocumentationItem: z.ZodObject<{
19
+ type: z.ZodLiteral<"text">;
20
+ label: z.ZodString;
21
+ text: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: "text";
24
+ label: string;
25
+ text: string;
26
+ }, {
27
+ type: "text";
28
+ label: string;
29
+ text: string;
30
+ }>;
31
+ export declare const linkDocumentationItem: z.ZodObject<{
32
+ type: z.ZodLiteral<"link">;
33
+ label: z.ZodString;
34
+ url: z.ZodString;
35
+ text: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "link";
38
+ url: string;
39
+ label: string;
40
+ text: string;
41
+ }, {
42
+ type: "link";
43
+ url: string;
44
+ label: string;
45
+ text: string;
46
+ }>;
47
+ export declare const documentationItemSchema: z.ZodUnion<[z.ZodObject<{
48
+ type: z.ZodLiteral<"pdf">;
49
+ label: z.ZodString;
50
+ url: z.ZodString;
51
+ text: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ type: "pdf";
54
+ url: string;
55
+ label: string;
56
+ text: string;
57
+ }, {
58
+ type: "pdf";
59
+ url: string;
60
+ label: string;
61
+ text: string;
62
+ }>, z.ZodObject<{
63
+ type: z.ZodLiteral<"text">;
64
+ label: z.ZodString;
65
+ text: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "text";
68
+ label: string;
69
+ text: string;
70
+ }, {
71
+ type: "text";
72
+ label: string;
73
+ text: string;
74
+ }>, z.ZodObject<{
75
+ type: z.ZodLiteral<"link">;
76
+ label: z.ZodString;
77
+ url: z.ZodString;
78
+ text: z.ZodString;
79
+ }, "strip", z.ZodTypeAny, {
80
+ type: "link";
81
+ url: string;
82
+ label: string;
83
+ text: string;
84
+ }, {
85
+ type: "link";
86
+ url: string;
87
+ label: string;
88
+ text: string;
89
+ }>]>;
7
90
  export declare const taskItemScalarValueSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
8
91
  export declare const taskItemValueSchema: 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">]>;
9
- export declare const taskItemValueMapSchema: z.Schema<TaskItemValueMap>;
10
- export declare const pointOptionSchema: z.Schema<PointOption>;
11
- export declare const selectSingleTypeSchema: z.Schema<SelectSingleType>;
12
- export declare const selectMultipleTypeSchema: z.Schema<SelectMultipleType>;
13
- export declare const numberTypeSchema: z.Schema<NumberType>;
14
- export declare const booleanTypeSchema: z.Schema<BooleanType>;
15
- export declare const taskItemDefinitionSchema: z.Schema<TaskItemDefinition>;
16
- export declare const taskItemSchema: z.Schema<TaskItem>;
92
+ export declare const taskItemValueMapSchema: 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">]>>;
93
+ export declare const pointOptionSchema: z.ZodObject<{
94
+ id: z.ZodOptional<z.ZodString>;
95
+ text: z.ZodString;
96
+ intro: z.ZodOptional<z.ZodString>;
97
+ outro: z.ZodOptional<z.ZodString>;
98
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ value: string | number | boolean | null;
101
+ text: string;
102
+ id?: string | undefined;
103
+ intro?: string | undefined;
104
+ outro?: string | undefined;
105
+ }, {
106
+ value: string | number | boolean | null;
107
+ text: string;
108
+ id?: string | undefined;
109
+ intro?: string | undefined;
110
+ outro?: string | undefined;
111
+ }>;
112
+ export declare const selectSingleTypeSchema: z.ZodObject<{
113
+ type: z.ZodLiteral<"select-single">;
114
+ options: z.ZodArray<z.ZodObject<{
115
+ id: z.ZodOptional<z.ZodString>;
116
+ text: z.ZodString;
117
+ intro: z.ZodOptional<z.ZodString>;
118
+ outro: z.ZodOptional<z.ZodString>;
119
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ value: string | number | boolean | null;
122
+ text: string;
123
+ id?: string | undefined;
124
+ intro?: string | undefined;
125
+ outro?: string | undefined;
126
+ }, {
127
+ value: string | number | boolean | null;
128
+ text: string;
129
+ id?: string | undefined;
130
+ intro?: string | undefined;
131
+ outro?: string | undefined;
132
+ }>, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "select-single";
135
+ options: {
136
+ value: string | number | boolean | null;
137
+ text: string;
138
+ id?: string | undefined;
139
+ intro?: string | undefined;
140
+ outro?: string | undefined;
141
+ }[];
142
+ }, {
143
+ type: "select-single";
144
+ options: {
145
+ value: string | number | boolean | null;
146
+ text: string;
147
+ id?: string | undefined;
148
+ intro?: string | undefined;
149
+ outro?: string | undefined;
150
+ }[];
151
+ }>;
152
+ export declare const selectMultipleTypeSchema: z.ZodObject<{
153
+ type: z.ZodLiteral<"select-multiple">;
154
+ options: z.ZodArray<z.ZodObject<{
155
+ id: z.ZodOptional<z.ZodString>;
156
+ text: z.ZodString;
157
+ intro: z.ZodOptional<z.ZodString>;
158
+ outro: z.ZodOptional<z.ZodString>;
159
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ value: string | number | boolean | null;
162
+ text: string;
163
+ id?: string | undefined;
164
+ intro?: string | undefined;
165
+ outro?: string | undefined;
166
+ }, {
167
+ value: string | number | boolean | null;
168
+ text: string;
169
+ id?: string | undefined;
170
+ intro?: string | undefined;
171
+ outro?: string | undefined;
172
+ }>, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "select-multiple";
175
+ options: {
176
+ value: string | number | boolean | null;
177
+ text: string;
178
+ id?: string | undefined;
179
+ intro?: string | undefined;
180
+ outro?: string | undefined;
181
+ }[];
182
+ }, {
183
+ type: "select-multiple";
184
+ options: {
185
+ value: string | number | boolean | null;
186
+ text: string;
187
+ id?: string | undefined;
188
+ intro?: string | undefined;
189
+ outro?: string | undefined;
190
+ }[];
191
+ }>;
192
+ export declare const numberTypeSchema: z.ZodObject<{
193
+ type: z.ZodLiteral<"number">;
194
+ minimum: z.ZodOptional<z.ZodNumber>;
195
+ maximum: z.ZodOptional<z.ZodNumber>;
196
+ step: z.ZodOptional<z.ZodNumber>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type: "number";
199
+ minimum?: number | undefined;
200
+ maximum?: number | undefined;
201
+ step?: number | undefined;
202
+ }, {
203
+ type: "number";
204
+ minimum?: number | undefined;
205
+ maximum?: number | undefined;
206
+ step?: number | undefined;
207
+ }>;
208
+ export declare const booleanTypeSchema: z.ZodObject<{
209
+ type: z.ZodLiteral<"boolean">;
210
+ labels: z.ZodOptional<z.ZodObject<{
211
+ true: z.ZodOptional<z.ZodString>;
212
+ false: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ false?: string | undefined;
215
+ true?: string | undefined;
216
+ }, {
217
+ false?: string | undefined;
218
+ true?: string | undefined;
219
+ }>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "boolean";
222
+ labels?: {
223
+ false?: string | undefined;
224
+ true?: string | undefined;
225
+ } | undefined;
226
+ }, {
227
+ type: "boolean";
228
+ labels?: {
229
+ false?: string | undefined;
230
+ true?: string | undefined;
231
+ } | undefined;
232
+ }>;
233
+ export declare const taskItemDefinitionSchema: z.ZodUnion<[z.ZodObject<{
234
+ type: z.ZodLiteral<"select-single">;
235
+ options: z.ZodArray<z.ZodObject<{
236
+ id: z.ZodOptional<z.ZodString>;
237
+ text: z.ZodString;
238
+ intro: z.ZodOptional<z.ZodString>;
239
+ outro: z.ZodOptional<z.ZodString>;
240
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ value: string | number | boolean | null;
243
+ text: string;
244
+ id?: string | undefined;
245
+ intro?: string | undefined;
246
+ outro?: string | undefined;
247
+ }, {
248
+ value: string | number | boolean | null;
249
+ text: string;
250
+ id?: string | undefined;
251
+ intro?: string | undefined;
252
+ outro?: string | undefined;
253
+ }>, "many">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: "select-single";
256
+ options: {
257
+ value: string | number | boolean | null;
258
+ text: string;
259
+ id?: string | undefined;
260
+ intro?: string | undefined;
261
+ outro?: string | undefined;
262
+ }[];
263
+ }, {
264
+ type: "select-single";
265
+ options: {
266
+ value: string | number | boolean | null;
267
+ text: string;
268
+ id?: string | undefined;
269
+ intro?: string | undefined;
270
+ outro?: string | undefined;
271
+ }[];
272
+ }>, z.ZodObject<{
273
+ type: z.ZodLiteral<"select-multiple">;
274
+ options: z.ZodArray<z.ZodObject<{
275
+ id: z.ZodOptional<z.ZodString>;
276
+ text: z.ZodString;
277
+ intro: z.ZodOptional<z.ZodString>;
278
+ outro: z.ZodOptional<z.ZodString>;
279
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ value: string | number | boolean | null;
282
+ text: string;
283
+ id?: string | undefined;
284
+ intro?: string | undefined;
285
+ outro?: string | undefined;
286
+ }, {
287
+ value: string | number | boolean | null;
288
+ text: string;
289
+ id?: string | undefined;
290
+ intro?: string | undefined;
291
+ outro?: string | undefined;
292
+ }>, "many">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ type: "select-multiple";
295
+ options: {
296
+ value: string | number | boolean | null;
297
+ text: string;
298
+ id?: string | undefined;
299
+ intro?: string | undefined;
300
+ outro?: string | undefined;
301
+ }[];
302
+ }, {
303
+ type: "select-multiple";
304
+ options: {
305
+ value: string | number | boolean | null;
306
+ text: string;
307
+ id?: string | undefined;
308
+ intro?: string | undefined;
309
+ outro?: string | undefined;
310
+ }[];
311
+ }>]>;
312
+ export declare const taskItemSchema: z.ZodObject<{
313
+ type: z.ZodLiteral<"task-item">;
314
+ code: z.ZodString;
315
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
316
+ documentation: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
317
+ type: z.ZodLiteral<"pdf">;
318
+ label: z.ZodString;
319
+ url: z.ZodString;
320
+ text: z.ZodString;
321
+ }, "strip", z.ZodTypeAny, {
322
+ type: "pdf";
323
+ url: string;
324
+ label: string;
325
+ text: string;
326
+ }, {
327
+ type: "pdf";
328
+ url: string;
329
+ label: string;
330
+ text: string;
331
+ }>, z.ZodObject<{
332
+ type: z.ZodLiteral<"text">;
333
+ label: z.ZodString;
334
+ text: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ type: "text";
337
+ label: string;
338
+ text: string;
339
+ }, {
340
+ type: "text";
341
+ label: string;
342
+ text: string;
343
+ }>, z.ZodObject<{
344
+ type: z.ZodLiteral<"link">;
345
+ label: z.ZodString;
346
+ url: z.ZodString;
347
+ text: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ type: "link";
350
+ url: string;
351
+ label: string;
352
+ text: string;
353
+ }, {
354
+ type: "link";
355
+ url: string;
356
+ label: string;
357
+ text: string;
358
+ }>]>, "many">>;
359
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
360
+ sortOrder: z.ZodOptional<z.ZodNumber>;
361
+ definition: z.ZodUnion<[z.ZodObject<{
362
+ type: z.ZodLiteral<"select-single">;
363
+ options: z.ZodArray<z.ZodObject<{
364
+ id: z.ZodOptional<z.ZodString>;
365
+ text: z.ZodString;
366
+ intro: z.ZodOptional<z.ZodString>;
367
+ outro: z.ZodOptional<z.ZodString>;
368
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ value: string | number | boolean | null;
371
+ text: string;
372
+ id?: string | undefined;
373
+ intro?: string | undefined;
374
+ outro?: string | undefined;
375
+ }, {
376
+ value: string | number | boolean | null;
377
+ text: string;
378
+ id?: string | undefined;
379
+ intro?: string | undefined;
380
+ outro?: string | undefined;
381
+ }>, "many">;
382
+ }, "strip", z.ZodTypeAny, {
383
+ type: "select-single";
384
+ options: {
385
+ value: string | number | boolean | null;
386
+ text: string;
387
+ id?: string | undefined;
388
+ intro?: string | undefined;
389
+ outro?: string | undefined;
390
+ }[];
391
+ }, {
392
+ type: "select-single";
393
+ options: {
394
+ value: string | number | boolean | null;
395
+ text: string;
396
+ id?: string | undefined;
397
+ intro?: string | undefined;
398
+ outro?: string | undefined;
399
+ }[];
400
+ }>, z.ZodObject<{
401
+ type: z.ZodLiteral<"select-multiple">;
402
+ options: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodOptional<z.ZodString>;
404
+ text: z.ZodString;
405
+ intro: z.ZodOptional<z.ZodString>;
406
+ outro: z.ZodOptional<z.ZodString>;
407
+ value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ value: string | number | boolean | null;
410
+ text: string;
411
+ id?: string | undefined;
412
+ intro?: string | undefined;
413
+ outro?: string | undefined;
414
+ }, {
415
+ value: string | number | boolean | null;
416
+ text: string;
417
+ id?: string | undefined;
418
+ intro?: string | undefined;
419
+ outro?: string | undefined;
420
+ }>, "many">;
421
+ }, "strip", z.ZodTypeAny, {
422
+ type: "select-multiple";
423
+ options: {
424
+ value: string | number | boolean | null;
425
+ text: string;
426
+ id?: string | undefined;
427
+ intro?: string | undefined;
428
+ outro?: string | undefined;
429
+ }[];
430
+ }, {
431
+ type: "select-multiple";
432
+ options: {
433
+ value: string | number | boolean | null;
434
+ text: string;
435
+ id?: string | undefined;
436
+ intro?: string | undefined;
437
+ outro?: string | undefined;
438
+ }[];
439
+ }>]>;
440
+ description: z.ZodOptional<z.ZodString>;
441
+ 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">]>>>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "task-item";
444
+ code: string;
445
+ definition: {
446
+ type: "select-single";
447
+ options: {
448
+ value: string | number | boolean | null;
449
+ text: string;
450
+ id?: string | undefined;
451
+ intro?: string | undefined;
452
+ outro?: string | undefined;
453
+ }[];
454
+ } | {
455
+ type: "select-multiple";
456
+ options: {
457
+ value: string | number | boolean | null;
458
+ text: string;
459
+ id?: string | undefined;
460
+ intro?: string | undefined;
461
+ outro?: string | undefined;
462
+ }[];
463
+ };
464
+ data?: Record<string, string> | undefined;
465
+ description?: string | undefined;
466
+ tags?: string[] | undefined;
467
+ documentation?: ({
468
+ type: "pdf";
469
+ url: string;
470
+ label: string;
471
+ text: string;
472
+ } | {
473
+ type: "text";
474
+ label: string;
475
+ text: string;
476
+ } | {
477
+ type: "link";
478
+ url: string;
479
+ label: string;
480
+ text: string;
481
+ })[] | undefined;
482
+ sortOrder?: number | undefined;
483
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
484
+ }, {
485
+ type: "task-item";
486
+ code: string;
487
+ definition: {
488
+ type: "select-single";
489
+ options: {
490
+ value: string | number | boolean | null;
491
+ text: string;
492
+ id?: string | undefined;
493
+ intro?: string | undefined;
494
+ outro?: string | undefined;
495
+ }[];
496
+ } | {
497
+ type: "select-multiple";
498
+ options: {
499
+ value: string | number | boolean | null;
500
+ text: string;
501
+ id?: string | undefined;
502
+ intro?: string | undefined;
503
+ outro?: string | undefined;
504
+ }[];
505
+ };
506
+ data?: Record<string, string> | undefined;
507
+ description?: string | undefined;
508
+ tags?: string[] | undefined;
509
+ documentation?: ({
510
+ type: "pdf";
511
+ url: string;
512
+ label: string;
513
+ text: string;
514
+ } | {
515
+ type: "text";
516
+ label: string;
517
+ text: string;
518
+ } | {
519
+ type: "link";
520
+ url: string;
521
+ label: string;
522
+ text: string;
523
+ })[] | undefined;
524
+ sortOrder?: number | undefined;
525
+ providedData?: Record<string, string | number | boolean | (string | number | boolean | null)[] | null> | undefined;
526
+ }>;