@dmptool/types 2.1.0 → 2.2.0

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