@dmptool/types 2.1.0 → 2.2.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.
Files changed (122) hide show
  1. package/README.md +70 -1
  2. package/dist/answers/__tests__/defaults.spec.js +80 -21
  3. package/dist/answers/answer.d.ts +2 -0
  4. package/dist/answers/answer.js +4 -2
  5. package/dist/answers/dateAnswers.d.ts +4 -0
  6. package/dist/answers/graphQLAnswers.d.ts +8 -0
  7. package/dist/answers/index.d.ts +37 -0
  8. package/dist/answers/numberAnswers.d.ts +8 -0
  9. package/dist/answers/optionBasedAnswers.d.ts +10 -0
  10. package/dist/answers/tableAnswers.d.ts +94 -0
  11. package/dist/answers/textAnswers.d.ts +8 -0
  12. package/dist/dmp/extension.d.ts +111 -0
  13. package/dist/dmp/index.js +48 -2
  14. package/dist/questions/__tests__/defaults.spec.js +12 -12
  15. package/dist/questions/__tests__/optionBasedQuestions.spec.js +25 -16
  16. package/dist/questions/dateQuestions.d.ts +4 -0
  17. package/dist/questions/dateQuestions.js +2 -2
  18. package/dist/questions/index.d.ts +38 -7
  19. package/dist/questions/numberQuestions.d.ts +8 -0
  20. package/dist/questions/numberQuestions.js +4 -4
  21. package/dist/questions/optionBasedQuestions.d.ts +18 -6
  22. package/dist/questions/optionBasedQuestions.js +23 -10
  23. package/dist/questions/tableQuestions.d.ts +94 -16
  24. package/dist/questions/tableQuestions.js +9 -9
  25. package/dist/questions/textQuestions.d.ts +4 -0
  26. package/dist/questions/textQuestions.js +2 -2
  27. package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
  28. package/dist/schemas/anyAnswer.schema.json +111 -0
  29. package/dist/schemas/anyQuestion.schema.json +114 -35
  30. package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
  31. package/dist/schemas/anyTableColumnQuestion.schema.json +42 -10
  32. package/dist/schemas/booleanAnswer.schema.json +3 -0
  33. package/dist/schemas/booleanQuestion.schema.json +3 -0
  34. package/dist/schemas/checkboxesAnswer.schema.json +3 -0
  35. package/dist/schemas/checkboxesQuestion.schema.json +6 -0
  36. package/dist/schemas/currencyAnswer.schema.json +3 -0
  37. package/dist/schemas/currencyQuestion.schema.json +3 -0
  38. package/dist/schemas/dateAnswer.schema.json +3 -0
  39. package/dist/schemas/dateQuestion.schema.json +3 -0
  40. package/dist/schemas/dateRangeAnswer.schema.json +3 -0
  41. package/dist/schemas/dateRangeQuestion.schema.json +3 -0
  42. package/dist/schemas/dmpExtension.schema.json +111 -0
  43. package/dist/schemas/emailAnswer.schema.json +3 -0
  44. package/dist/schemas/emailQuestion.schema.json +3 -0
  45. package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
  46. package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
  47. package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
  48. package/dist/schemas/multiselectBoxQuestion.schema.json +6 -5
  49. package/dist/schemas/numberAnswer.schema.json +3 -0
  50. package/dist/schemas/numberQuestion.schema.json +3 -0
  51. package/dist/schemas/numberRangeAnswer.schema.json +3 -0
  52. package/dist/schemas/numberRangeQuestion.schema.json +3 -0
  53. package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
  54. package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
  55. package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
  56. package/dist/schemas/radioButtonsQuestion.schema.json +6 -5
  57. package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
  58. package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
  59. package/dist/schemas/selectBoxAnswer.schema.json +3 -0
  60. package/dist/schemas/selectBoxQuestion.schema.json +6 -5
  61. package/dist/schemas/tableAnswer.schema.json +57 -0
  62. package/dist/schemas/tableQuestion.schema.json +42 -10
  63. package/dist/schemas/textAnswer.schema.json +3 -0
  64. package/dist/schemas/textAreaAnswer.schema.json +3 -0
  65. package/dist/schemas/urlAnswer.schema.json +3 -0
  66. package/dist/schemas/urlQuestion.schema.json +3 -0
  67. package/package.json +9 -4
  68. package/schemas/.placeholder +0 -0
  69. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  70. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  71. package/schemas/anyAnswer.schema.json +1537 -0
  72. package/schemas/anyQuestion.schema.json +4823 -0
  73. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  74. package/schemas/anyTableColumnQuestion.schema.json +1559 -0
  75. package/schemas/booleanAnswer.schema.json +36 -0
  76. package/schemas/booleanQuestion.schema.json +55 -0
  77. package/schemas/checkboxesAnswer.schema.json +41 -0
  78. package/schemas/checkboxesQuestion.schema.json +83 -0
  79. package/schemas/currencyAnswer.schema.json +36 -0
  80. package/schemas/currencyQuestion.schema.json +73 -0
  81. package/schemas/dateAnswer.schema.json +36 -0
  82. package/schemas/datePickerAnswer.schema.json +37 -0
  83. package/schemas/datePickerQuestion.schema.json +52 -0
  84. package/schemas/dateQuestion.schema.json +66 -0
  85. package/schemas/dateRangeAnswer.schema.json +50 -0
  86. package/schemas/dateRangeQuestion.schema.json +124 -0
  87. package/schemas/dmp.schema.json +2070 -0
  88. package/schemas/dmpExtension.schema.json +1985 -0
  89. package/schemas/emailAnswer.schema.json +36 -0
  90. package/schemas/emailQuestion.schema.json +71 -0
  91. package/schemas/filteredSearchAnswer.schema.json +40 -0
  92. package/schemas/filteredSearchQuestion.schema.json +130 -0
  93. package/schemas/licenseSearchAnswer.schema.json +54 -0
  94. package/schemas/licenseSearchQuestion.schema.json +140 -0
  95. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  96. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  97. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  98. package/schemas/multiselectBoxQuestion.schema.json +85 -0
  99. package/schemas/numberAnswer.schema.json +36 -0
  100. package/schemas/numberQuestion.schema.json +68 -0
  101. package/schemas/numberRangeAnswer.schema.json +50 -0
  102. package/schemas/numberRangeQuestion.schema.json +128 -0
  103. package/schemas/numberWithContextAnswer.schema.json +50 -0
  104. package/schemas/numberWithContextQuestion.schema.json +98 -0
  105. package/schemas/radioButtonsAnswer.schema.json +36 -0
  106. package/schemas/radioButtonsQuestion.schema.json +78 -0
  107. package/schemas/repositorySearchAnswer.schema.json +54 -0
  108. package/schemas/repositorySearchQuestion.schema.json +140 -0
  109. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  110. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  111. package/schemas/selectBoxAnswer.schema.json +36 -0
  112. package/schemas/selectBoxQuestion.schema.json +85 -0
  113. package/schemas/tableAnswer.schema.json +797 -0
  114. package/schemas/tableQuestion.schema.json +1661 -0
  115. package/schemas/textAnswer.schema.json +36 -0
  116. package/schemas/textAreaAnswer.schema.json +36 -0
  117. package/schemas/textAreaQuestion.schema.json +78 -0
  118. package/schemas/textQuestion.schema.json +63 -0
  119. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  120. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  121. package/schemas/urlAnswer.schema.json +36 -0
  122. package/schemas/urlQuestion.schema.json +66 -0
@@ -0,0 +1,1661 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "table"
8
+ },
9
+ "attributes": {
10
+ "type": "object",
11
+ "properties": {
12
+ "label": {
13
+ "type": "string"
14
+ },
15
+ "help": {
16
+ "type": "string"
17
+ },
18
+ "labelTranslationKey": {
19
+ "type": "string"
20
+ },
21
+ "canAddRows": {
22
+ "default": true,
23
+ "type": "boolean"
24
+ },
25
+ "canRemoveRows": {
26
+ "default": true,
27
+ "type": "boolean"
28
+ },
29
+ "initialRows": {
30
+ "default": 1,
31
+ "type": "number"
32
+ },
33
+ "maxRows": {
34
+ "type": "number"
35
+ },
36
+ "minRows": {
37
+ "type": "number"
38
+ }
39
+ },
40
+ "required": [
41
+ "canAddRows",
42
+ "canRemoveRows",
43
+ "initialRows"
44
+ ],
45
+ "additionalProperties": false
46
+ },
47
+ "meta": {
48
+ "type": "object",
49
+ "properties": {
50
+ "schemaVersion": {
51
+ "default": "1.0",
52
+ "type": "string"
53
+ },
54
+ "title": {
55
+ "type": "string"
56
+ },
57
+ "usageDescription": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "schemaVersion"
63
+ ],
64
+ "additionalProperties": false
65
+ },
66
+ "columns": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "object",
70
+ "properties": {
71
+ "heading": {
72
+ "default": "Column A",
73
+ "type": "string"
74
+ },
75
+ "help": {
76
+ "type": "string"
77
+ },
78
+ "required": {
79
+ "default": false,
80
+ "type": "boolean"
81
+ },
82
+ "enabled": {
83
+ "default": true,
84
+ "type": "boolean"
85
+ },
86
+ "content": {
87
+ "oneOf": [
88
+ {
89
+ "type": "object",
90
+ "properties": {
91
+ "type": {
92
+ "type": "string",
93
+ "const": "affiliationSearch"
94
+ },
95
+ "attributes": {
96
+ "type": "object",
97
+ "properties": {
98
+ "label": {
99
+ "type": "string"
100
+ },
101
+ "help": {
102
+ "type": "string"
103
+ },
104
+ "labelTranslationKey": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "additionalProperties": false
109
+ },
110
+ "meta": {
111
+ "type": "object",
112
+ "properties": {
113
+ "schemaVersion": {
114
+ "default": "1.0",
115
+ "type": "string"
116
+ },
117
+ "title": {
118
+ "type": "string"
119
+ },
120
+ "usageDescription": {
121
+ "type": "string"
122
+ }
123
+ },
124
+ "required": [
125
+ "schemaVersion"
126
+ ],
127
+ "additionalProperties": false
128
+ },
129
+ "graphQL": {
130
+ "type": "object",
131
+ "properties": {
132
+ "displayFields": {
133
+ "type": "array",
134
+ "items": {
135
+ "type": "object",
136
+ "properties": {
137
+ "propertyName": {
138
+ "default": "id",
139
+ "type": "string"
140
+ },
141
+ "label": {
142
+ "default": "Id",
143
+ "type": "string"
144
+ },
145
+ "labelTranslationKey": {
146
+ "type": "string"
147
+ }
148
+ },
149
+ "required": [
150
+ "propertyName",
151
+ "label"
152
+ ],
153
+ "additionalProperties": false
154
+ }
155
+ },
156
+ "localQueryId": {
157
+ "type": "string"
158
+ },
159
+ "query": {
160
+ "type": "string",
161
+ "const": "query Affiliations($name: String!){ affiliations(name: $name) { totalCount nextCursor items { id displayName uri } } }"
162
+ },
163
+ "responseField": {
164
+ "default": "affiliations.items",
165
+ "type": "string",
166
+ "const": "affiliations.items"
167
+ },
168
+ "variables": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "minLength": {
174
+ "type": "number"
175
+ },
176
+ "label": {
177
+ "type": "string"
178
+ },
179
+ "labelTranslationKey": {
180
+ "type": "string"
181
+ },
182
+ "name": {
183
+ "default": "search",
184
+ "type": "string"
185
+ },
186
+ "type": {
187
+ "default": "string",
188
+ "type": "string"
189
+ },
190
+ "defaultValue": {
191
+ "type": "string"
192
+ }
193
+ },
194
+ "required": [
195
+ "name",
196
+ "type"
197
+ ],
198
+ "additionalProperties": false
199
+ }
200
+ },
201
+ "queryId": {
202
+ "default": "useAffiliationsQuery",
203
+ "type": "string"
204
+ },
205
+ "answerField": {
206
+ "default": "uri",
207
+ "type": "string",
208
+ "const": "uri"
209
+ }
210
+ },
211
+ "required": [
212
+ "displayFields",
213
+ "query",
214
+ "responseField",
215
+ "variables",
216
+ "answerField"
217
+ ],
218
+ "additionalProperties": false
219
+ }
220
+ },
221
+ "required": [
222
+ "type",
223
+ "attributes",
224
+ "meta",
225
+ "graphQL"
226
+ ],
227
+ "additionalProperties": false
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "type": {
233
+ "type": "string",
234
+ "const": "boolean"
235
+ },
236
+ "attributes": {
237
+ "type": "object",
238
+ "properties": {
239
+ "label": {
240
+ "type": "string"
241
+ },
242
+ "value": {
243
+ "default": false,
244
+ "type": "boolean"
245
+ }
246
+ },
247
+ "required": [
248
+ "label",
249
+ "value"
250
+ ],
251
+ "additionalProperties": false
252
+ },
253
+ "meta": {
254
+ "type": "object",
255
+ "properties": {
256
+ "schemaVersion": {
257
+ "default": "1.0",
258
+ "type": "string"
259
+ },
260
+ "title": {
261
+ "type": "string"
262
+ },
263
+ "usageDescription": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "required": [
268
+ "schemaVersion"
269
+ ],
270
+ "additionalProperties": false
271
+ },
272
+ "showCommentField": {
273
+ "type": "boolean"
274
+ }
275
+ },
276
+ "required": [
277
+ "type",
278
+ "attributes",
279
+ "meta"
280
+ ],
281
+ "additionalProperties": false
282
+ },
283
+ {
284
+ "type": "object",
285
+ "properties": {
286
+ "type": {
287
+ "type": "string",
288
+ "const": "checkBoxes"
289
+ },
290
+ "attributes": {
291
+ "type": "object",
292
+ "properties": {
293
+ "label": {
294
+ "type": "string"
295
+ },
296
+ "help": {
297
+ "type": "string"
298
+ },
299
+ "labelTranslationKey": {
300
+ "type": "string"
301
+ }
302
+ },
303
+ "additionalProperties": false
304
+ },
305
+ "meta": {
306
+ "type": "object",
307
+ "properties": {
308
+ "schemaVersion": {
309
+ "default": "1.0",
310
+ "type": "string"
311
+ },
312
+ "title": {
313
+ "type": "string"
314
+ },
315
+ "usageDescription": {
316
+ "type": "string"
317
+ }
318
+ },
319
+ "required": [
320
+ "schemaVersion"
321
+ ],
322
+ "additionalProperties": false
323
+ },
324
+ "options": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "object",
328
+ "properties": {
329
+ "label": {
330
+ "default": "Option A",
331
+ "type": "string"
332
+ },
333
+ "value": {
334
+ "default": "a",
335
+ "type": "string"
336
+ },
337
+ "description": {
338
+ "type": "string"
339
+ },
340
+ "checked": {
341
+ "default": false,
342
+ "type": "boolean"
343
+ }
344
+ },
345
+ "required": [
346
+ "label",
347
+ "value",
348
+ "checked"
349
+ ],
350
+ "additionalProperties": false
351
+ }
352
+ },
353
+ "showCommentField": {
354
+ "type": "boolean"
355
+ }
356
+ },
357
+ "required": [
358
+ "type",
359
+ "attributes",
360
+ "meta",
361
+ "options"
362
+ ],
363
+ "additionalProperties": false
364
+ },
365
+ {
366
+ "type": "object",
367
+ "properties": {
368
+ "type": {
369
+ "type": "string",
370
+ "const": "currency"
371
+ },
372
+ "attributes": {
373
+ "type": "object",
374
+ "properties": {
375
+ "label": {
376
+ "type": "string"
377
+ },
378
+ "help": {
379
+ "type": "string"
380
+ },
381
+ "labelTranslationKey": {
382
+ "type": "string"
383
+ },
384
+ "max": {
385
+ "type": "number"
386
+ },
387
+ "min": {
388
+ "default": 0,
389
+ "type": "number"
390
+ },
391
+ "step": {
392
+ "default": 1,
393
+ "type": "number"
394
+ },
395
+ "denomination": {
396
+ "default": "USD",
397
+ "type": "string"
398
+ }
399
+ },
400
+ "required": [
401
+ "min",
402
+ "step",
403
+ "denomination"
404
+ ],
405
+ "additionalProperties": false
406
+ },
407
+ "meta": {
408
+ "type": "object",
409
+ "properties": {
410
+ "schemaVersion": {
411
+ "default": "1.0",
412
+ "type": "string"
413
+ },
414
+ "title": {
415
+ "type": "string"
416
+ },
417
+ "usageDescription": {
418
+ "type": "string"
419
+ }
420
+ },
421
+ "required": [
422
+ "schemaVersion"
423
+ ],
424
+ "additionalProperties": false
425
+ },
426
+ "showCommentField": {
427
+ "type": "boolean"
428
+ }
429
+ },
430
+ "required": [
431
+ "type",
432
+ "attributes",
433
+ "meta"
434
+ ],
435
+ "additionalProperties": false
436
+ },
437
+ {
438
+ "type": "object",
439
+ "properties": {
440
+ "type": {
441
+ "type": "string",
442
+ "const": "date"
443
+ },
444
+ "attributes": {
445
+ "type": "object",
446
+ "properties": {
447
+ "label": {
448
+ "type": "string"
449
+ },
450
+ "help": {
451
+ "type": "string"
452
+ },
453
+ "labelTranslationKey": {
454
+ "type": "string"
455
+ },
456
+ "max": {
457
+ "type": "string"
458
+ },
459
+ "min": {
460
+ "type": "string"
461
+ },
462
+ "step": {
463
+ "default": 1,
464
+ "type": "number"
465
+ }
466
+ },
467
+ "required": [
468
+ "step"
469
+ ],
470
+ "additionalProperties": false
471
+ },
472
+ "meta": {
473
+ "type": "object",
474
+ "properties": {
475
+ "schemaVersion": {
476
+ "default": "1.0",
477
+ "type": "string"
478
+ },
479
+ "title": {
480
+ "type": "string"
481
+ },
482
+ "usageDescription": {
483
+ "type": "string"
484
+ }
485
+ },
486
+ "required": [
487
+ "schemaVersion"
488
+ ],
489
+ "additionalProperties": false
490
+ },
491
+ "showCommentField": {
492
+ "type": "boolean"
493
+ }
494
+ },
495
+ "required": [
496
+ "type",
497
+ "attributes",
498
+ "meta"
499
+ ],
500
+ "additionalProperties": false
501
+ },
502
+ {
503
+ "type": "object",
504
+ "properties": {
505
+ "type": {
506
+ "type": "string",
507
+ "const": "dateRange"
508
+ },
509
+ "attributes": {
510
+ "type": "object",
511
+ "properties": {
512
+ "label": {
513
+ "type": "string"
514
+ },
515
+ "help": {
516
+ "type": "string"
517
+ },
518
+ "labelTranslationKey": {
519
+ "type": "string"
520
+ }
521
+ },
522
+ "additionalProperties": false
523
+ },
524
+ "meta": {
525
+ "type": "object",
526
+ "properties": {
527
+ "schemaVersion": {
528
+ "default": "1.0",
529
+ "type": "string"
530
+ },
531
+ "title": {
532
+ "type": "string"
533
+ },
534
+ "usageDescription": {
535
+ "type": "string"
536
+ }
537
+ },
538
+ "required": [
539
+ "schemaVersion"
540
+ ],
541
+ "additionalProperties": false
542
+ },
543
+ "columns": {
544
+ "type": "object",
545
+ "properties": {
546
+ "start": {
547
+ "type": "object",
548
+ "properties": {
549
+ "label": {
550
+ "default": "From",
551
+ "type": "string"
552
+ },
553
+ "help": {
554
+ "type": "string"
555
+ },
556
+ "labelTranslationKey": {
557
+ "type": "string"
558
+ },
559
+ "max": {
560
+ "type": "string"
561
+ },
562
+ "min": {
563
+ "type": "string"
564
+ },
565
+ "step": {
566
+ "default": 1,
567
+ "type": "number"
568
+ }
569
+ },
570
+ "required": [
571
+ "label",
572
+ "step"
573
+ ],
574
+ "additionalProperties": false
575
+ },
576
+ "end": {
577
+ "type": "object",
578
+ "properties": {
579
+ "label": {
580
+ "default": "To",
581
+ "type": "string"
582
+ },
583
+ "help": {
584
+ "type": "string"
585
+ },
586
+ "labelTranslationKey": {
587
+ "type": "string"
588
+ },
589
+ "max": {
590
+ "type": "string"
591
+ },
592
+ "min": {
593
+ "type": "string"
594
+ },
595
+ "step": {
596
+ "default": 1,
597
+ "type": "number"
598
+ }
599
+ },
600
+ "required": [
601
+ "label",
602
+ "step"
603
+ ],
604
+ "additionalProperties": false
605
+ }
606
+ },
607
+ "required": [
608
+ "start",
609
+ "end"
610
+ ],
611
+ "additionalProperties": false
612
+ },
613
+ "showCommentField": {
614
+ "type": "boolean"
615
+ }
616
+ },
617
+ "required": [
618
+ "type",
619
+ "attributes",
620
+ "meta",
621
+ "columns"
622
+ ],
623
+ "additionalProperties": false
624
+ },
625
+ {
626
+ "type": "object",
627
+ "properties": {
628
+ "type": {
629
+ "type": "string",
630
+ "const": "email"
631
+ },
632
+ "attributes": {
633
+ "type": "object",
634
+ "properties": {
635
+ "label": {
636
+ "type": "string"
637
+ },
638
+ "help": {
639
+ "type": "string"
640
+ },
641
+ "labelTranslationKey": {
642
+ "type": "string"
643
+ },
644
+ "maxLength": {
645
+ "default": 255,
646
+ "type": "number"
647
+ },
648
+ "minLength": {
649
+ "type": "number"
650
+ },
651
+ "pattern": {
652
+ "type": "string"
653
+ },
654
+ "multiple": {
655
+ "default": false,
656
+ "type": "boolean"
657
+ }
658
+ },
659
+ "required": [
660
+ "maxLength",
661
+ "multiple"
662
+ ],
663
+ "additionalProperties": false
664
+ },
665
+ "meta": {
666
+ "type": "object",
667
+ "properties": {
668
+ "schemaVersion": {
669
+ "default": "1.0",
670
+ "type": "string"
671
+ },
672
+ "title": {
673
+ "type": "string"
674
+ },
675
+ "usageDescription": {
676
+ "type": "string"
677
+ }
678
+ },
679
+ "required": [
680
+ "schemaVersion"
681
+ ],
682
+ "additionalProperties": false
683
+ },
684
+ "showCommentField": {
685
+ "type": "boolean"
686
+ }
687
+ },
688
+ "required": [
689
+ "type",
690
+ "attributes",
691
+ "meta"
692
+ ],
693
+ "additionalProperties": false
694
+ },
695
+ {
696
+ "type": "object",
697
+ "properties": {
698
+ "type": {
699
+ "type": "string",
700
+ "const": "licenseSearch"
701
+ },
702
+ "attributes": {
703
+ "type": "object",
704
+ "properties": {
705
+ "label": {
706
+ "type": "string"
707
+ },
708
+ "help": {
709
+ "type": "string"
710
+ },
711
+ "labelTranslationKey": {
712
+ "type": "string"
713
+ }
714
+ },
715
+ "additionalProperties": false
716
+ },
717
+ "meta": {
718
+ "type": "object",
719
+ "properties": {
720
+ "schemaVersion": {
721
+ "default": "1.0",
722
+ "type": "string"
723
+ },
724
+ "title": {
725
+ "type": "string"
726
+ },
727
+ "usageDescription": {
728
+ "type": "string"
729
+ }
730
+ },
731
+ "required": [
732
+ "schemaVersion"
733
+ ],
734
+ "additionalProperties": false
735
+ },
736
+ "graphQL": {
737
+ "type": "object",
738
+ "properties": {
739
+ "displayFields": {
740
+ "type": "array",
741
+ "items": {
742
+ "type": "object",
743
+ "properties": {
744
+ "propertyName": {
745
+ "default": "id",
746
+ "type": "string"
747
+ },
748
+ "label": {
749
+ "default": "Id",
750
+ "type": "string"
751
+ },
752
+ "labelTranslationKey": {
753
+ "type": "string"
754
+ }
755
+ },
756
+ "required": [
757
+ "propertyName",
758
+ "label"
759
+ ],
760
+ "additionalProperties": false
761
+ }
762
+ },
763
+ "localQueryId": {
764
+ "type": "string"
765
+ },
766
+ "query": {
767
+ "type": "string",
768
+ "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
769
+ },
770
+ "responseField": {
771
+ "type": "string",
772
+ "const": "licenses.items"
773
+ },
774
+ "variables": {
775
+ "type": "array",
776
+ "items": {
777
+ "type": "object",
778
+ "properties": {
779
+ "minLength": {
780
+ "type": "number"
781
+ },
782
+ "label": {
783
+ "type": "string"
784
+ },
785
+ "labelTranslationKey": {
786
+ "type": "string"
787
+ },
788
+ "name": {
789
+ "default": "search",
790
+ "type": "string"
791
+ },
792
+ "type": {
793
+ "default": "string",
794
+ "type": "string"
795
+ },
796
+ "defaultValue": {
797
+ "type": "string"
798
+ }
799
+ },
800
+ "required": [
801
+ "name",
802
+ "type"
803
+ ],
804
+ "additionalProperties": false
805
+ }
806
+ },
807
+ "queryId": {
808
+ "default": "useLicensesQuery",
809
+ "type": "string"
810
+ },
811
+ "answerField": {
812
+ "type": "string",
813
+ "const": "uri"
814
+ }
815
+ },
816
+ "required": [
817
+ "displayFields",
818
+ "query",
819
+ "responseField",
820
+ "variables",
821
+ "answerField"
822
+ ],
823
+ "additionalProperties": false
824
+ }
825
+ },
826
+ "required": [
827
+ "type",
828
+ "attributes",
829
+ "meta",
830
+ "graphQL"
831
+ ],
832
+ "additionalProperties": false
833
+ },
834
+ {
835
+ "type": "object",
836
+ "properties": {
837
+ "type": {
838
+ "type": "string",
839
+ "const": "metadataStandardSearch"
840
+ },
841
+ "attributes": {
842
+ "type": "object",
843
+ "properties": {
844
+ "label": {
845
+ "type": "string"
846
+ },
847
+ "help": {
848
+ "type": "string"
849
+ },
850
+ "labelTranslationKey": {
851
+ "type": "string"
852
+ }
853
+ },
854
+ "additionalProperties": false
855
+ },
856
+ "meta": {
857
+ "type": "object",
858
+ "properties": {
859
+ "schemaVersion": {
860
+ "default": "1.0",
861
+ "type": "string"
862
+ },
863
+ "title": {
864
+ "type": "string"
865
+ },
866
+ "usageDescription": {
867
+ "type": "string"
868
+ }
869
+ },
870
+ "required": [
871
+ "schemaVersion"
872
+ ],
873
+ "additionalProperties": false
874
+ },
875
+ "graphQL": {
876
+ "type": "object",
877
+ "properties": {
878
+ "displayFields": {
879
+ "type": "array",
880
+ "items": {
881
+ "type": "object",
882
+ "properties": {
883
+ "propertyName": {
884
+ "default": "id",
885
+ "type": "string"
886
+ },
887
+ "label": {
888
+ "default": "Id",
889
+ "type": "string"
890
+ },
891
+ "labelTranslationKey": {
892
+ "type": "string"
893
+ }
894
+ },
895
+ "required": [
896
+ "propertyName",
897
+ "label"
898
+ ],
899
+ "additionalProperties": false
900
+ }
901
+ },
902
+ "localQueryId": {
903
+ "type": "string"
904
+ },
905
+ "query": {
906
+ "type": "string",
907
+ "const": "query MetadataStandards($term: String, $keywords: [String!], $paginationOptions: PaginationOptions){ metadataStandards(term: $term, keywords: $keywords, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description keywords } } }"
908
+ },
909
+ "responseField": {
910
+ "type": "string",
911
+ "const": "metadataStandards.items"
912
+ },
913
+ "variables": {
914
+ "type": "array",
915
+ "items": {
916
+ "type": "object",
917
+ "properties": {
918
+ "minLength": {
919
+ "type": "number"
920
+ },
921
+ "label": {
922
+ "type": "string"
923
+ },
924
+ "labelTranslationKey": {
925
+ "type": "string"
926
+ },
927
+ "name": {
928
+ "default": "search",
929
+ "type": "string"
930
+ },
931
+ "type": {
932
+ "default": "string",
933
+ "type": "string"
934
+ },
935
+ "defaultValue": {
936
+ "type": "string"
937
+ }
938
+ },
939
+ "required": [
940
+ "name",
941
+ "type"
942
+ ],
943
+ "additionalProperties": false
944
+ }
945
+ },
946
+ "queryId": {
947
+ "default": "useMetadataStandardsQuery",
948
+ "type": "string"
949
+ },
950
+ "answerField": {
951
+ "default": "uri",
952
+ "type": "string",
953
+ "const": "uri"
954
+ }
955
+ },
956
+ "required": [
957
+ "displayFields",
958
+ "query",
959
+ "responseField",
960
+ "variables",
961
+ "answerField"
962
+ ],
963
+ "additionalProperties": false
964
+ }
965
+ },
966
+ "required": [
967
+ "type",
968
+ "attributes",
969
+ "meta",
970
+ "graphQL"
971
+ ],
972
+ "additionalProperties": false
973
+ },
974
+ {
975
+ "type": "object",
976
+ "properties": {
977
+ "type": {
978
+ "type": "string",
979
+ "const": "number"
980
+ },
981
+ "attributes": {
982
+ "type": "object",
983
+ "properties": {
984
+ "label": {
985
+ "type": "string"
986
+ },
987
+ "help": {
988
+ "type": "string"
989
+ },
990
+ "labelTranslationKey": {
991
+ "type": "string"
992
+ },
993
+ "max": {
994
+ "type": "number"
995
+ },
996
+ "min": {
997
+ "default": 0,
998
+ "type": "number"
999
+ },
1000
+ "step": {
1001
+ "default": 1,
1002
+ "type": "number"
1003
+ }
1004
+ },
1005
+ "required": [
1006
+ "min",
1007
+ "step"
1008
+ ],
1009
+ "additionalProperties": false
1010
+ },
1011
+ "meta": {
1012
+ "type": "object",
1013
+ "properties": {
1014
+ "schemaVersion": {
1015
+ "default": "1.0",
1016
+ "type": "string"
1017
+ },
1018
+ "title": {
1019
+ "type": "string"
1020
+ },
1021
+ "usageDescription": {
1022
+ "type": "string"
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "schemaVersion"
1027
+ ],
1028
+ "additionalProperties": false
1029
+ },
1030
+ "showCommentField": {
1031
+ "type": "boolean"
1032
+ }
1033
+ },
1034
+ "required": [
1035
+ "type",
1036
+ "attributes",
1037
+ "meta"
1038
+ ],
1039
+ "additionalProperties": false
1040
+ },
1041
+ {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "type": {
1045
+ "type": "string",
1046
+ "const": "numberWithContext"
1047
+ },
1048
+ "attributes": {
1049
+ "type": "object",
1050
+ "properties": {
1051
+ "label": {
1052
+ "type": "string"
1053
+ },
1054
+ "help": {
1055
+ "type": "string"
1056
+ },
1057
+ "labelTranslationKey": {
1058
+ "type": "string"
1059
+ },
1060
+ "max": {
1061
+ "type": "number"
1062
+ },
1063
+ "min": {
1064
+ "default": 0,
1065
+ "type": "number"
1066
+ },
1067
+ "step": {
1068
+ "default": 1,
1069
+ "type": "number"
1070
+ },
1071
+ "context": {
1072
+ "type": "array",
1073
+ "items": {
1074
+ "type": "object",
1075
+ "properties": {
1076
+ "label": {
1077
+ "default": "",
1078
+ "type": "string"
1079
+ },
1080
+ "labelTranslationKey": {
1081
+ "type": "string"
1082
+ },
1083
+ "value": {
1084
+ "default": "",
1085
+ "type": "string"
1086
+ },
1087
+ "selected": {
1088
+ "default": false,
1089
+ "type": "boolean"
1090
+ }
1091
+ },
1092
+ "required": [
1093
+ "label",
1094
+ "value",
1095
+ "selected"
1096
+ ],
1097
+ "additionalProperties": false
1098
+ }
1099
+ }
1100
+ },
1101
+ "required": [
1102
+ "min",
1103
+ "step",
1104
+ "context"
1105
+ ],
1106
+ "additionalProperties": false
1107
+ },
1108
+ "meta": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "schemaVersion": {
1112
+ "default": "1.0",
1113
+ "type": "string"
1114
+ },
1115
+ "title": {
1116
+ "type": "string"
1117
+ },
1118
+ "usageDescription": {
1119
+ "type": "string"
1120
+ }
1121
+ },
1122
+ "required": [
1123
+ "schemaVersion"
1124
+ ],
1125
+ "additionalProperties": false
1126
+ },
1127
+ "showCommentField": {
1128
+ "type": "boolean"
1129
+ }
1130
+ },
1131
+ "required": [
1132
+ "type",
1133
+ "attributes",
1134
+ "meta"
1135
+ ],
1136
+ "additionalProperties": false
1137
+ },
1138
+ {
1139
+ "type": "object",
1140
+ "properties": {
1141
+ "type": {
1142
+ "type": "string",
1143
+ "const": "radioButtons"
1144
+ },
1145
+ "attributes": {
1146
+ "type": "object",
1147
+ "properties": {
1148
+ "label": {
1149
+ "type": "string"
1150
+ },
1151
+ "help": {
1152
+ "type": "string"
1153
+ },
1154
+ "labelTranslationKey": {
1155
+ "type": "string"
1156
+ }
1157
+ },
1158
+ "additionalProperties": false
1159
+ },
1160
+ "meta": {
1161
+ "type": "object",
1162
+ "properties": {
1163
+ "schemaVersion": {
1164
+ "default": "1.0",
1165
+ "type": "string"
1166
+ },
1167
+ "title": {
1168
+ "type": "string"
1169
+ },
1170
+ "usageDescription": {
1171
+ "type": "string"
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "schemaVersion"
1176
+ ],
1177
+ "additionalProperties": false
1178
+ },
1179
+ "options": {
1180
+ "type": "array",
1181
+ "items": {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "label": {
1185
+ "default": "Option A",
1186
+ "type": "string"
1187
+ },
1188
+ "value": {
1189
+ "default": "a",
1190
+ "type": "string"
1191
+ },
1192
+ "description": {
1193
+ "type": "string"
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "label",
1198
+ "value"
1199
+ ],
1200
+ "additionalProperties": false
1201
+ }
1202
+ },
1203
+ "showCommentField": {
1204
+ "type": "boolean"
1205
+ }
1206
+ },
1207
+ "required": [
1208
+ "type",
1209
+ "attributes",
1210
+ "meta",
1211
+ "options"
1212
+ ],
1213
+ "additionalProperties": false
1214
+ },
1215
+ {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "type": {
1219
+ "type": "string",
1220
+ "const": "repositorySearch"
1221
+ },
1222
+ "attributes": {
1223
+ "type": "object",
1224
+ "properties": {
1225
+ "label": {
1226
+ "type": "string"
1227
+ },
1228
+ "help": {
1229
+ "type": "string"
1230
+ },
1231
+ "labelTranslationKey": {
1232
+ "type": "string"
1233
+ }
1234
+ },
1235
+ "additionalProperties": false
1236
+ },
1237
+ "meta": {
1238
+ "type": "object",
1239
+ "properties": {
1240
+ "schemaVersion": {
1241
+ "default": "1.0",
1242
+ "type": "string"
1243
+ },
1244
+ "title": {
1245
+ "type": "string"
1246
+ },
1247
+ "usageDescription": {
1248
+ "type": "string"
1249
+ }
1250
+ },
1251
+ "required": [
1252
+ "schemaVersion"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ },
1256
+ "graphQL": {
1257
+ "type": "object",
1258
+ "properties": {
1259
+ "displayFields": {
1260
+ "type": "array",
1261
+ "items": {
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "propertyName": {
1265
+ "default": "id",
1266
+ "type": "string"
1267
+ },
1268
+ "label": {
1269
+ "default": "Id",
1270
+ "type": "string"
1271
+ },
1272
+ "labelTranslationKey": {
1273
+ "type": "string"
1274
+ }
1275
+ },
1276
+ "required": [
1277
+ "propertyName",
1278
+ "label"
1279
+ ],
1280
+ "additionalProperties": false
1281
+ }
1282
+ },
1283
+ "localQueryId": {
1284
+ "type": "string"
1285
+ },
1286
+ "query": {
1287
+ "type": "string",
1288
+ "const": "query Repositories($term: String, $keywords: [String!], $repositoryType: String, $paginationOptions: PaginationOptions){ repositories(term: $term, keywords: $keywords, repositoryType: $repositoryType, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description website keywords repositoryTypes } } }"
1289
+ },
1290
+ "responseField": {
1291
+ "type": "string",
1292
+ "const": "repositories.items"
1293
+ },
1294
+ "variables": {
1295
+ "type": "array",
1296
+ "items": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "minLength": {
1300
+ "type": "number"
1301
+ },
1302
+ "label": {
1303
+ "type": "string"
1304
+ },
1305
+ "labelTranslationKey": {
1306
+ "type": "string"
1307
+ },
1308
+ "name": {
1309
+ "default": "search",
1310
+ "type": "string"
1311
+ },
1312
+ "type": {
1313
+ "default": "string",
1314
+ "type": "string"
1315
+ },
1316
+ "defaultValue": {
1317
+ "type": "string"
1318
+ }
1319
+ },
1320
+ "required": [
1321
+ "name",
1322
+ "type"
1323
+ ],
1324
+ "additionalProperties": false
1325
+ }
1326
+ },
1327
+ "queryId": {
1328
+ "default": "useRepositoriesQuery",
1329
+ "type": "string"
1330
+ },
1331
+ "answerField": {
1332
+ "type": "string",
1333
+ "const": "uri"
1334
+ }
1335
+ },
1336
+ "required": [
1337
+ "displayFields",
1338
+ "query",
1339
+ "responseField",
1340
+ "variables",
1341
+ "answerField"
1342
+ ],
1343
+ "additionalProperties": false
1344
+ }
1345
+ },
1346
+ "required": [
1347
+ "type",
1348
+ "attributes",
1349
+ "meta",
1350
+ "graphQL"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "properties": {
1357
+ "type": {
1358
+ "type": "string",
1359
+ "const": "selectBox"
1360
+ },
1361
+ "attributes": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "label": {
1365
+ "type": "string"
1366
+ },
1367
+ "help": {
1368
+ "type": "string"
1369
+ },
1370
+ "labelTranslationKey": {
1371
+ "type": "string"
1372
+ },
1373
+ "multiple": {
1374
+ "type": "boolean",
1375
+ "const": false
1376
+ }
1377
+ },
1378
+ "required": [
1379
+ "multiple"
1380
+ ],
1381
+ "additionalProperties": false
1382
+ },
1383
+ "meta": {
1384
+ "type": "object",
1385
+ "properties": {
1386
+ "schemaVersion": {
1387
+ "default": "1.0",
1388
+ "type": "string"
1389
+ },
1390
+ "title": {
1391
+ "type": "string"
1392
+ },
1393
+ "usageDescription": {
1394
+ "type": "string"
1395
+ }
1396
+ },
1397
+ "required": [
1398
+ "schemaVersion"
1399
+ ],
1400
+ "additionalProperties": false
1401
+ },
1402
+ "options": {
1403
+ "type": "array",
1404
+ "items": {
1405
+ "type": "object",
1406
+ "properties": {
1407
+ "label": {
1408
+ "default": "Option A",
1409
+ "type": "string"
1410
+ },
1411
+ "value": {
1412
+ "default": "a",
1413
+ "type": "string"
1414
+ },
1415
+ "description": {
1416
+ "type": "string"
1417
+ }
1418
+ },
1419
+ "required": [
1420
+ "label",
1421
+ "value"
1422
+ ],
1423
+ "additionalProperties": false
1424
+ }
1425
+ },
1426
+ "showCommentField": {
1427
+ "type": "boolean"
1428
+ }
1429
+ },
1430
+ "required": [
1431
+ "type",
1432
+ "attributes",
1433
+ "meta",
1434
+ "options"
1435
+ ],
1436
+ "additionalProperties": false
1437
+ },
1438
+ {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "type": {
1442
+ "type": "string",
1443
+ "const": "textArea"
1444
+ },
1445
+ "attributes": {
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "label": {
1449
+ "type": "string"
1450
+ },
1451
+ "help": {
1452
+ "type": "string"
1453
+ },
1454
+ "labelTranslationKey": {
1455
+ "type": "string"
1456
+ },
1457
+ "maxLength": {
1458
+ "default": 10000,
1459
+ "type": "number"
1460
+ },
1461
+ "minLength": {
1462
+ "type": "number"
1463
+ },
1464
+ "pattern": {
1465
+ "type": "string"
1466
+ },
1467
+ "cols": {
1468
+ "default": 20,
1469
+ "type": "number"
1470
+ },
1471
+ "rows": {
1472
+ "default": 2,
1473
+ "type": "number"
1474
+ },
1475
+ "asRichText": {
1476
+ "default": true,
1477
+ "type": "boolean"
1478
+ }
1479
+ },
1480
+ "required": [
1481
+ "maxLength",
1482
+ "cols",
1483
+ "rows",
1484
+ "asRichText"
1485
+ ],
1486
+ "additionalProperties": false
1487
+ },
1488
+ "meta": {
1489
+ "type": "object",
1490
+ "properties": {
1491
+ "schemaVersion": {
1492
+ "default": "1.0",
1493
+ "type": "string"
1494
+ },
1495
+ "title": {
1496
+ "type": "string"
1497
+ },
1498
+ "usageDescription": {
1499
+ "type": "string"
1500
+ }
1501
+ },
1502
+ "required": [
1503
+ "schemaVersion"
1504
+ ],
1505
+ "additionalProperties": false
1506
+ }
1507
+ },
1508
+ "required": [
1509
+ "type",
1510
+ "attributes",
1511
+ "meta"
1512
+ ],
1513
+ "additionalProperties": false
1514
+ },
1515
+ {
1516
+ "type": "object",
1517
+ "properties": {
1518
+ "type": {
1519
+ "type": "string",
1520
+ "const": "text"
1521
+ },
1522
+ "attributes": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "label": {
1526
+ "type": "string"
1527
+ },
1528
+ "help": {
1529
+ "type": "string"
1530
+ },
1531
+ "labelTranslationKey": {
1532
+ "type": "string"
1533
+ },
1534
+ "maxLength": {
1535
+ "default": 255,
1536
+ "type": "number"
1537
+ },
1538
+ "minLength": {
1539
+ "type": "number"
1540
+ },
1541
+ "pattern": {
1542
+ "type": "string"
1543
+ }
1544
+ },
1545
+ "required": [
1546
+ "maxLength"
1547
+ ],
1548
+ "additionalProperties": false
1549
+ },
1550
+ "meta": {
1551
+ "type": "object",
1552
+ "properties": {
1553
+ "schemaVersion": {
1554
+ "default": "1.0",
1555
+ "type": "string"
1556
+ },
1557
+ "title": {
1558
+ "type": "string"
1559
+ },
1560
+ "usageDescription": {
1561
+ "type": "string"
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "schemaVersion"
1566
+ ],
1567
+ "additionalProperties": false
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "type",
1572
+ "attributes",
1573
+ "meta"
1574
+ ],
1575
+ "additionalProperties": false
1576
+ },
1577
+ {
1578
+ "type": "object",
1579
+ "properties": {
1580
+ "type": {
1581
+ "type": "string",
1582
+ "const": "url"
1583
+ },
1584
+ "attributes": {
1585
+ "type": "object",
1586
+ "properties": {
1587
+ "label": {
1588
+ "type": "string"
1589
+ },
1590
+ "help": {
1591
+ "type": "string"
1592
+ },
1593
+ "labelTranslationKey": {
1594
+ "type": "string"
1595
+ },
1596
+ "maxLength": {
1597
+ "default": 255,
1598
+ "type": "number"
1599
+ },
1600
+ "minLength": {
1601
+ "type": "number"
1602
+ },
1603
+ "pattern": {
1604
+ "type": "string"
1605
+ }
1606
+ },
1607
+ "required": [
1608
+ "maxLength"
1609
+ ],
1610
+ "additionalProperties": false
1611
+ },
1612
+ "meta": {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "schemaVersion": {
1616
+ "default": "1.0",
1617
+ "type": "string"
1618
+ },
1619
+ "title": {
1620
+ "type": "string"
1621
+ },
1622
+ "usageDescription": {
1623
+ "type": "string"
1624
+ }
1625
+ },
1626
+ "required": [
1627
+ "schemaVersion"
1628
+ ],
1629
+ "additionalProperties": false
1630
+ },
1631
+ "showCommentField": {
1632
+ "type": "boolean"
1633
+ }
1634
+ },
1635
+ "required": [
1636
+ "type",
1637
+ "attributes",
1638
+ "meta"
1639
+ ],
1640
+ "additionalProperties": false
1641
+ }
1642
+ ]
1643
+ }
1644
+ },
1645
+ "required": [
1646
+ "heading",
1647
+ "required",
1648
+ "enabled",
1649
+ "content"
1650
+ ],
1651
+ "additionalProperties": false
1652
+ }
1653
+ }
1654
+ },
1655
+ "required": [
1656
+ "type",
1657
+ "meta",
1658
+ "columns"
1659
+ ],
1660
+ "additionalProperties": false
1661
+ }