@dmptool/types 1.0.4 → 1.0.6
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 +25 -3
- package/dist/questions/dateQuestions.d.ts +6 -6
- package/dist/questions/dateQuestions.js +1 -1
- package/dist/questions/graphQLQuestions.d.ts +36 -36
- package/dist/questions/graphQLQuestions.js +1 -1
- package/dist/questions/index.d.ts +300 -248
- package/dist/questions/optionBasedQuestions.d.ts +6 -6
- package/dist/questions/optionBasedQuestions.js +1 -1
- package/dist/questions/primitiveQuestions.d.ts +64 -42
- package/dist/questions/primitiveQuestions.js +9 -8
- package/dist/questions/tableQuestions.d.ts +300 -248
- package/dist/questions/tableQuestions.js +1 -1
- package/dist/schemas/anyQuestion.schema.json +29 -22
- package/dist/schemas/anyTableColumnQuestion.schema.json +28 -20
- package/dist/schemas/booleanQuestion.schema.json +1 -2
- package/dist/schemas/currencyQuestion.schema.json +11 -2
- package/dist/schemas/datePickerQuestion.schema.json +1 -2
- package/dist/schemas/emailQuestion.schema.json +1 -2
- package/dist/schemas/filteredSearchQuestion.schema.json +1 -2
- package/dist/schemas/numberQuestion.schema.json +1 -2
- package/dist/schemas/selectBoxQuestion.schema.json +1 -2
- package/dist/schemas/tableQuestion.schema.json +29 -22
- package/dist/schemas/textAreaQuestion.schema.json +11 -2
- package/dist/schemas/textQuestion.schema.json +1 -2
- package/dist/schemas/typeaheadSearchQuestion.schema.json +1 -2
- package/dist/schemas/urlQuestion.schema.json +1 -2
- package/package.json +1 -1
|
@@ -34,5 +34,5 @@ exports.TableQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
|
|
|
34
34
|
initialRows: zod_1.z.number().optional(), // The initial number of rows (default is 1)
|
|
35
35
|
maxRows: zod_1.z.number().optional(), // The maximum number of rows (no default)
|
|
36
36
|
minRows: zod_1.z.number().optional() // The minimum number of rows (no default)
|
|
37
|
-
})
|
|
37
|
+
}).optional(),
|
|
38
38
|
}));
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"required": [
|
|
40
40
|
"type",
|
|
41
|
-
"meta"
|
|
42
|
-
"attributes"
|
|
41
|
+
"meta"
|
|
43
42
|
],
|
|
44
43
|
"additionalProperties": false
|
|
45
44
|
},
|
|
@@ -107,10 +106,19 @@
|
|
|
107
106
|
"meta": {
|
|
108
107
|
"type": "object",
|
|
109
108
|
"properties": {
|
|
109
|
+
"schemaVersion": {
|
|
110
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
111
|
+
},
|
|
112
|
+
"labelTranslationKey": {
|
|
113
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
|
|
114
|
+
},
|
|
110
115
|
"denomination": {
|
|
111
116
|
"type": "string"
|
|
112
117
|
}
|
|
113
118
|
},
|
|
119
|
+
"required": [
|
|
120
|
+
"schemaVersion"
|
|
121
|
+
],
|
|
114
122
|
"additionalProperties": false
|
|
115
123
|
},
|
|
116
124
|
"attributes": {
|
|
@@ -131,8 +139,7 @@
|
|
|
131
139
|
},
|
|
132
140
|
"required": [
|
|
133
141
|
"type",
|
|
134
|
-
"meta"
|
|
135
|
-
"attributes"
|
|
142
|
+
"meta"
|
|
136
143
|
],
|
|
137
144
|
"additionalProperties": false
|
|
138
145
|
},
|
|
@@ -164,8 +171,7 @@
|
|
|
164
171
|
},
|
|
165
172
|
"required": [
|
|
166
173
|
"type",
|
|
167
|
-
"meta"
|
|
168
|
-
"attributes"
|
|
174
|
+
"meta"
|
|
169
175
|
],
|
|
170
176
|
"additionalProperties": false
|
|
171
177
|
},
|
|
@@ -286,8 +292,7 @@
|
|
|
286
292
|
},
|
|
287
293
|
"required": [
|
|
288
294
|
"type",
|
|
289
|
-
"meta"
|
|
290
|
-
"attributes"
|
|
295
|
+
"meta"
|
|
291
296
|
],
|
|
292
297
|
"additionalProperties": false
|
|
293
298
|
},
|
|
@@ -369,8 +374,7 @@
|
|
|
369
374
|
},
|
|
370
375
|
"required": [
|
|
371
376
|
"displayFields",
|
|
372
|
-
"responseField"
|
|
373
|
-
"variables"
|
|
377
|
+
"responseField"
|
|
374
378
|
],
|
|
375
379
|
"additionalProperties": false
|
|
376
380
|
},
|
|
@@ -408,8 +412,7 @@
|
|
|
408
412
|
},
|
|
409
413
|
"required": [
|
|
410
414
|
"type",
|
|
411
|
-
"meta"
|
|
412
|
-
"attributes"
|
|
415
|
+
"meta"
|
|
413
416
|
],
|
|
414
417
|
"additionalProperties": false
|
|
415
418
|
},
|
|
@@ -496,8 +499,7 @@
|
|
|
496
499
|
"required": [
|
|
497
500
|
"type",
|
|
498
501
|
"meta",
|
|
499
|
-
"options"
|
|
500
|
-
"attributes"
|
|
502
|
+
"options"
|
|
501
503
|
],
|
|
502
504
|
"additionalProperties": false
|
|
503
505
|
},
|
|
@@ -555,10 +557,19 @@
|
|
|
555
557
|
"meta": {
|
|
556
558
|
"type": "object",
|
|
557
559
|
"properties": {
|
|
560
|
+
"schemaVersion": {
|
|
561
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
562
|
+
},
|
|
563
|
+
"labelTranslationKey": {
|
|
564
|
+
"$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
|
|
565
|
+
},
|
|
558
566
|
"asRichText": {
|
|
559
567
|
"type": "boolean"
|
|
560
568
|
}
|
|
561
569
|
},
|
|
570
|
+
"required": [
|
|
571
|
+
"schemaVersion"
|
|
572
|
+
],
|
|
562
573
|
"additionalProperties": false
|
|
563
574
|
},
|
|
564
575
|
"attributes": {
|
|
@@ -582,8 +593,7 @@
|
|
|
582
593
|
},
|
|
583
594
|
"required": [
|
|
584
595
|
"type",
|
|
585
|
-
"meta"
|
|
586
|
-
"attributes"
|
|
596
|
+
"meta"
|
|
587
597
|
],
|
|
588
598
|
"additionalProperties": false
|
|
589
599
|
},
|
|
@@ -615,8 +625,7 @@
|
|
|
615
625
|
},
|
|
616
626
|
"required": [
|
|
617
627
|
"type",
|
|
618
|
-
"meta"
|
|
619
|
-
"attributes"
|
|
628
|
+
"meta"
|
|
620
629
|
],
|
|
621
630
|
"additionalProperties": false
|
|
622
631
|
},
|
|
@@ -669,8 +678,7 @@
|
|
|
669
678
|
},
|
|
670
679
|
"required": [
|
|
671
680
|
"type",
|
|
672
|
-
"meta"
|
|
673
|
-
"attributes"
|
|
681
|
+
"meta"
|
|
674
682
|
],
|
|
675
683
|
"additionalProperties": false
|
|
676
684
|
}
|
|
@@ -702,8 +710,7 @@
|
|
|
702
710
|
"required": [
|
|
703
711
|
"type",
|
|
704
712
|
"meta",
|
|
705
|
-
"columns"
|
|
706
|
-
"attributes"
|
|
713
|
+
"columns"
|
|
707
714
|
],
|
|
708
715
|
"additionalProperties": false
|
|
709
716
|
},
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"required": [
|
|
40
40
|
"type",
|
|
41
|
-
"meta"
|
|
42
|
-
"attributes"
|
|
41
|
+
"meta"
|
|
43
42
|
],
|
|
44
43
|
"additionalProperties": false
|
|
45
44
|
},
|
|
@@ -107,10 +106,19 @@
|
|
|
107
106
|
"meta": {
|
|
108
107
|
"type": "object",
|
|
109
108
|
"properties": {
|
|
109
|
+
"schemaVersion": {
|
|
110
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
111
|
+
},
|
|
112
|
+
"labelTranslationKey": {
|
|
113
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
|
|
114
|
+
},
|
|
110
115
|
"denomination": {
|
|
111
116
|
"type": "string"
|
|
112
117
|
}
|
|
113
118
|
},
|
|
119
|
+
"required": [
|
|
120
|
+
"schemaVersion"
|
|
121
|
+
],
|
|
114
122
|
"additionalProperties": false
|
|
115
123
|
},
|
|
116
124
|
"attributes": {
|
|
@@ -131,8 +139,7 @@
|
|
|
131
139
|
},
|
|
132
140
|
"required": [
|
|
133
141
|
"type",
|
|
134
|
-
"meta"
|
|
135
|
-
"attributes"
|
|
142
|
+
"meta"
|
|
136
143
|
],
|
|
137
144
|
"additionalProperties": false
|
|
138
145
|
},
|
|
@@ -164,8 +171,7 @@
|
|
|
164
171
|
},
|
|
165
172
|
"required": [
|
|
166
173
|
"type",
|
|
167
|
-
"meta"
|
|
168
|
-
"attributes"
|
|
174
|
+
"meta"
|
|
169
175
|
],
|
|
170
176
|
"additionalProperties": false
|
|
171
177
|
},
|
|
@@ -286,8 +292,7 @@
|
|
|
286
292
|
},
|
|
287
293
|
"required": [
|
|
288
294
|
"type",
|
|
289
|
-
"meta"
|
|
290
|
-
"attributes"
|
|
295
|
+
"meta"
|
|
291
296
|
],
|
|
292
297
|
"additionalProperties": false
|
|
293
298
|
},
|
|
@@ -369,8 +374,7 @@
|
|
|
369
374
|
},
|
|
370
375
|
"required": [
|
|
371
376
|
"displayFields",
|
|
372
|
-
"responseField"
|
|
373
|
-
"variables"
|
|
377
|
+
"responseField"
|
|
374
378
|
],
|
|
375
379
|
"additionalProperties": false
|
|
376
380
|
},
|
|
@@ -408,8 +412,7 @@
|
|
|
408
412
|
},
|
|
409
413
|
"required": [
|
|
410
414
|
"type",
|
|
411
|
-
"meta"
|
|
412
|
-
"attributes"
|
|
415
|
+
"meta"
|
|
413
416
|
],
|
|
414
417
|
"additionalProperties": false
|
|
415
418
|
},
|
|
@@ -496,8 +499,7 @@
|
|
|
496
499
|
"required": [
|
|
497
500
|
"type",
|
|
498
501
|
"meta",
|
|
499
|
-
"options"
|
|
500
|
-
"attributes"
|
|
502
|
+
"options"
|
|
501
503
|
],
|
|
502
504
|
"additionalProperties": false
|
|
503
505
|
},
|
|
@@ -511,10 +513,19 @@
|
|
|
511
513
|
"meta": {
|
|
512
514
|
"type": "object",
|
|
513
515
|
"properties": {
|
|
516
|
+
"schemaVersion": {
|
|
517
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
|
|
518
|
+
},
|
|
519
|
+
"labelTranslationKey": {
|
|
520
|
+
"$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
|
|
521
|
+
},
|
|
514
522
|
"asRichText": {
|
|
515
523
|
"type": "boolean"
|
|
516
524
|
}
|
|
517
525
|
},
|
|
526
|
+
"required": [
|
|
527
|
+
"schemaVersion"
|
|
528
|
+
],
|
|
518
529
|
"additionalProperties": false
|
|
519
530
|
},
|
|
520
531
|
"attributes": {
|
|
@@ -538,8 +549,7 @@
|
|
|
538
549
|
},
|
|
539
550
|
"required": [
|
|
540
551
|
"type",
|
|
541
|
-
"meta"
|
|
542
|
-
"attributes"
|
|
552
|
+
"meta"
|
|
543
553
|
],
|
|
544
554
|
"additionalProperties": false
|
|
545
555
|
},
|
|
@@ -571,8 +581,7 @@
|
|
|
571
581
|
},
|
|
572
582
|
"required": [
|
|
573
583
|
"type",
|
|
574
|
-
"meta"
|
|
575
|
-
"attributes"
|
|
584
|
+
"meta"
|
|
576
585
|
],
|
|
577
586
|
"additionalProperties": false
|
|
578
587
|
},
|
|
@@ -625,8 +634,7 @@
|
|
|
625
634
|
},
|
|
626
635
|
"required": [
|
|
627
636
|
"type",
|
|
628
|
-
"meta"
|
|
629
|
-
"attributes"
|
|
637
|
+
"meta"
|
|
630
638
|
],
|
|
631
639
|
"additionalProperties": false
|
|
632
640
|
}
|
|
@@ -11,10 +11,20 @@
|
|
|
11
11
|
"meta": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
14
21
|
"denomination": {
|
|
15
22
|
"type": "string"
|
|
16
23
|
}
|
|
17
24
|
},
|
|
25
|
+
"required": [
|
|
26
|
+
"schemaVersion"
|
|
27
|
+
],
|
|
18
28
|
"additionalProperties": false
|
|
19
29
|
},
|
|
20
30
|
"attributes": {
|
|
@@ -35,8 +45,7 @@
|
|
|
35
45
|
},
|
|
36
46
|
"required": [
|
|
37
47
|
"type",
|
|
38
|
-
"meta"
|
|
39
|
-
"attributes"
|
|
48
|
+
"meta"
|
|
40
49
|
],
|
|
41
50
|
"additionalProperties": false
|
|
42
51
|
}
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"required": [
|
|
52
52
|
"type",
|
|
53
|
-
"meta"
|
|
54
|
-
"attributes"
|
|
53
|
+
"meta"
|
|
55
54
|
],
|
|
56
55
|
"additionalProperties": false
|
|
57
56
|
},
|
|
@@ -119,10 +118,19 @@
|
|
|
119
118
|
"meta": {
|
|
120
119
|
"type": "object",
|
|
121
120
|
"properties": {
|
|
121
|
+
"schemaVersion": {
|
|
122
|
+
"$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
|
|
123
|
+
},
|
|
124
|
+
"labelTranslationKey": {
|
|
125
|
+
"$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
|
|
126
|
+
},
|
|
122
127
|
"denomination": {
|
|
123
128
|
"type": "string"
|
|
124
129
|
}
|
|
125
130
|
},
|
|
131
|
+
"required": [
|
|
132
|
+
"schemaVersion"
|
|
133
|
+
],
|
|
126
134
|
"additionalProperties": false
|
|
127
135
|
},
|
|
128
136
|
"attributes": {
|
|
@@ -143,8 +151,7 @@
|
|
|
143
151
|
},
|
|
144
152
|
"required": [
|
|
145
153
|
"type",
|
|
146
|
-
"meta"
|
|
147
|
-
"attributes"
|
|
154
|
+
"meta"
|
|
148
155
|
],
|
|
149
156
|
"additionalProperties": false
|
|
150
157
|
},
|
|
@@ -176,8 +183,7 @@
|
|
|
176
183
|
},
|
|
177
184
|
"required": [
|
|
178
185
|
"type",
|
|
179
|
-
"meta"
|
|
180
|
-
"attributes"
|
|
186
|
+
"meta"
|
|
181
187
|
],
|
|
182
188
|
"additionalProperties": false
|
|
183
189
|
},
|
|
@@ -298,8 +304,7 @@
|
|
|
298
304
|
},
|
|
299
305
|
"required": [
|
|
300
306
|
"type",
|
|
301
|
-
"meta"
|
|
302
|
-
"attributes"
|
|
307
|
+
"meta"
|
|
303
308
|
],
|
|
304
309
|
"additionalProperties": false
|
|
305
310
|
},
|
|
@@ -381,8 +386,7 @@
|
|
|
381
386
|
},
|
|
382
387
|
"required": [
|
|
383
388
|
"displayFields",
|
|
384
|
-
"responseField"
|
|
385
|
-
"variables"
|
|
389
|
+
"responseField"
|
|
386
390
|
],
|
|
387
391
|
"additionalProperties": false
|
|
388
392
|
},
|
|
@@ -420,8 +424,7 @@
|
|
|
420
424
|
},
|
|
421
425
|
"required": [
|
|
422
426
|
"type",
|
|
423
|
-
"meta"
|
|
424
|
-
"attributes"
|
|
427
|
+
"meta"
|
|
425
428
|
],
|
|
426
429
|
"additionalProperties": false
|
|
427
430
|
},
|
|
@@ -508,8 +511,7 @@
|
|
|
508
511
|
"required": [
|
|
509
512
|
"type",
|
|
510
513
|
"meta",
|
|
511
|
-
"options"
|
|
512
|
-
"attributes"
|
|
514
|
+
"options"
|
|
513
515
|
],
|
|
514
516
|
"additionalProperties": false
|
|
515
517
|
},
|
|
@@ -523,10 +525,19 @@
|
|
|
523
525
|
"meta": {
|
|
524
526
|
"type": "object",
|
|
525
527
|
"properties": {
|
|
528
|
+
"schemaVersion": {
|
|
529
|
+
"$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
|
|
530
|
+
},
|
|
531
|
+
"labelTranslationKey": {
|
|
532
|
+
"$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
|
|
533
|
+
},
|
|
526
534
|
"asRichText": {
|
|
527
535
|
"type": "boolean"
|
|
528
536
|
}
|
|
529
537
|
},
|
|
538
|
+
"required": [
|
|
539
|
+
"schemaVersion"
|
|
540
|
+
],
|
|
530
541
|
"additionalProperties": false
|
|
531
542
|
},
|
|
532
543
|
"attributes": {
|
|
@@ -550,8 +561,7 @@
|
|
|
550
561
|
},
|
|
551
562
|
"required": [
|
|
552
563
|
"type",
|
|
553
|
-
"meta"
|
|
554
|
-
"attributes"
|
|
564
|
+
"meta"
|
|
555
565
|
],
|
|
556
566
|
"additionalProperties": false
|
|
557
567
|
},
|
|
@@ -583,8 +593,7 @@
|
|
|
583
593
|
},
|
|
584
594
|
"required": [
|
|
585
595
|
"type",
|
|
586
|
-
"meta"
|
|
587
|
-
"attributes"
|
|
596
|
+
"meta"
|
|
588
597
|
],
|
|
589
598
|
"additionalProperties": false
|
|
590
599
|
},
|
|
@@ -637,8 +646,7 @@
|
|
|
637
646
|
},
|
|
638
647
|
"required": [
|
|
639
648
|
"type",
|
|
640
|
-
"meta"
|
|
641
|
-
"attributes"
|
|
649
|
+
"meta"
|
|
642
650
|
],
|
|
643
651
|
"additionalProperties": false
|
|
644
652
|
}
|
|
@@ -670,8 +678,7 @@
|
|
|
670
678
|
"required": [
|
|
671
679
|
"type",
|
|
672
680
|
"meta",
|
|
673
|
-
"columns"
|
|
674
|
-
"attributes"
|
|
681
|
+
"columns"
|
|
675
682
|
],
|
|
676
683
|
"additionalProperties": false
|
|
677
684
|
}
|
|
@@ -11,10 +11,20 @@
|
|
|
11
11
|
"meta": {
|
|
12
12
|
"type": "object",
|
|
13
13
|
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "1.0"
|
|
17
|
+
},
|
|
18
|
+
"labelTranslationKey": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
14
21
|
"asRichText": {
|
|
15
22
|
"type": "boolean"
|
|
16
23
|
}
|
|
17
24
|
},
|
|
25
|
+
"required": [
|
|
26
|
+
"schemaVersion"
|
|
27
|
+
],
|
|
18
28
|
"additionalProperties": false
|
|
19
29
|
},
|
|
20
30
|
"attributes": {
|
|
@@ -38,8 +48,7 @@
|
|
|
38
48
|
},
|
|
39
49
|
"required": [
|
|
40
50
|
"type",
|
|
41
|
-
"meta"
|
|
42
|
-
"attributes"
|
|
51
|
+
"meta"
|
|
43
52
|
],
|
|
44
53
|
"additionalProperties": false
|
|
45
54
|
}
|