@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,1559 @@
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
+ "description": {
254
+ "type": "string"
255
+ },
256
+ "checked": {
257
+ "default": false,
258
+ "type": "boolean"
259
+ }
260
+ },
261
+ "required": [
262
+ "label",
263
+ "value",
264
+ "checked"
265
+ ],
266
+ "additionalProperties": false
267
+ }
268
+ },
269
+ "showCommentField": {
270
+ "type": "boolean"
271
+ }
272
+ },
273
+ "required": [
274
+ "type",
275
+ "attributes",
276
+ "meta",
277
+ "options"
278
+ ],
279
+ "additionalProperties": false
280
+ },
281
+ {
282
+ "type": "object",
283
+ "properties": {
284
+ "type": {
285
+ "type": "string",
286
+ "const": "currency"
287
+ },
288
+ "attributes": {
289
+ "type": "object",
290
+ "properties": {
291
+ "label": {
292
+ "type": "string"
293
+ },
294
+ "help": {
295
+ "type": "string"
296
+ },
297
+ "labelTranslationKey": {
298
+ "type": "string"
299
+ },
300
+ "max": {
301
+ "type": "number"
302
+ },
303
+ "min": {
304
+ "default": 0,
305
+ "type": "number"
306
+ },
307
+ "step": {
308
+ "default": 1,
309
+ "type": "number"
310
+ },
311
+ "denomination": {
312
+ "default": "USD",
313
+ "type": "string"
314
+ }
315
+ },
316
+ "required": [
317
+ "min",
318
+ "step",
319
+ "denomination"
320
+ ],
321
+ "additionalProperties": false
322
+ },
323
+ "meta": {
324
+ "type": "object",
325
+ "properties": {
326
+ "schemaVersion": {
327
+ "default": "1.0",
328
+ "type": "string"
329
+ },
330
+ "title": {
331
+ "type": "string"
332
+ },
333
+ "usageDescription": {
334
+ "type": "string"
335
+ }
336
+ },
337
+ "required": [
338
+ "schemaVersion"
339
+ ],
340
+ "additionalProperties": false
341
+ },
342
+ "showCommentField": {
343
+ "type": "boolean"
344
+ }
345
+ },
346
+ "required": [
347
+ "type",
348
+ "attributes",
349
+ "meta"
350
+ ],
351
+ "additionalProperties": false
352
+ },
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "type": {
357
+ "type": "string",
358
+ "const": "date"
359
+ },
360
+ "attributes": {
361
+ "type": "object",
362
+ "properties": {
363
+ "label": {
364
+ "type": "string"
365
+ },
366
+ "help": {
367
+ "type": "string"
368
+ },
369
+ "labelTranslationKey": {
370
+ "type": "string"
371
+ },
372
+ "max": {
373
+ "type": "string"
374
+ },
375
+ "min": {
376
+ "type": "string"
377
+ },
378
+ "step": {
379
+ "default": 1,
380
+ "type": "number"
381
+ }
382
+ },
383
+ "required": [
384
+ "step"
385
+ ],
386
+ "additionalProperties": false
387
+ },
388
+ "meta": {
389
+ "type": "object",
390
+ "properties": {
391
+ "schemaVersion": {
392
+ "default": "1.0",
393
+ "type": "string"
394
+ },
395
+ "title": {
396
+ "type": "string"
397
+ },
398
+ "usageDescription": {
399
+ "type": "string"
400
+ }
401
+ },
402
+ "required": [
403
+ "schemaVersion"
404
+ ],
405
+ "additionalProperties": false
406
+ },
407
+ "showCommentField": {
408
+ "type": "boolean"
409
+ }
410
+ },
411
+ "required": [
412
+ "type",
413
+ "attributes",
414
+ "meta"
415
+ ],
416
+ "additionalProperties": false
417
+ },
418
+ {
419
+ "type": "object",
420
+ "properties": {
421
+ "type": {
422
+ "type": "string",
423
+ "const": "dateRange"
424
+ },
425
+ "attributes": {
426
+ "type": "object",
427
+ "properties": {
428
+ "label": {
429
+ "type": "string"
430
+ },
431
+ "help": {
432
+ "type": "string"
433
+ },
434
+ "labelTranslationKey": {
435
+ "type": "string"
436
+ }
437
+ },
438
+ "additionalProperties": false
439
+ },
440
+ "meta": {
441
+ "type": "object",
442
+ "properties": {
443
+ "schemaVersion": {
444
+ "default": "1.0",
445
+ "type": "string"
446
+ },
447
+ "title": {
448
+ "type": "string"
449
+ },
450
+ "usageDescription": {
451
+ "type": "string"
452
+ }
453
+ },
454
+ "required": [
455
+ "schemaVersion"
456
+ ],
457
+ "additionalProperties": false
458
+ },
459
+ "columns": {
460
+ "type": "object",
461
+ "properties": {
462
+ "start": {
463
+ "type": "object",
464
+ "properties": {
465
+ "label": {
466
+ "default": "From",
467
+ "type": "string"
468
+ },
469
+ "help": {
470
+ "type": "string"
471
+ },
472
+ "labelTranslationKey": {
473
+ "type": "string"
474
+ },
475
+ "max": {
476
+ "type": "string"
477
+ },
478
+ "min": {
479
+ "type": "string"
480
+ },
481
+ "step": {
482
+ "default": 1,
483
+ "type": "number"
484
+ }
485
+ },
486
+ "required": [
487
+ "label",
488
+ "step"
489
+ ],
490
+ "additionalProperties": false
491
+ },
492
+ "end": {
493
+ "type": "object",
494
+ "properties": {
495
+ "label": {
496
+ "default": "To",
497
+ "type": "string"
498
+ },
499
+ "help": {
500
+ "type": "string"
501
+ },
502
+ "labelTranslationKey": {
503
+ "type": "string"
504
+ },
505
+ "max": {
506
+ "type": "string"
507
+ },
508
+ "min": {
509
+ "type": "string"
510
+ },
511
+ "step": {
512
+ "default": 1,
513
+ "type": "number"
514
+ }
515
+ },
516
+ "required": [
517
+ "label",
518
+ "step"
519
+ ],
520
+ "additionalProperties": false
521
+ }
522
+ },
523
+ "required": [
524
+ "start",
525
+ "end"
526
+ ],
527
+ "additionalProperties": false
528
+ },
529
+ "showCommentField": {
530
+ "type": "boolean"
531
+ }
532
+ },
533
+ "required": [
534
+ "type",
535
+ "attributes",
536
+ "meta",
537
+ "columns"
538
+ ],
539
+ "additionalProperties": false
540
+ },
541
+ {
542
+ "type": "object",
543
+ "properties": {
544
+ "type": {
545
+ "type": "string",
546
+ "const": "email"
547
+ },
548
+ "attributes": {
549
+ "type": "object",
550
+ "properties": {
551
+ "label": {
552
+ "type": "string"
553
+ },
554
+ "help": {
555
+ "type": "string"
556
+ },
557
+ "labelTranslationKey": {
558
+ "type": "string"
559
+ },
560
+ "maxLength": {
561
+ "default": 255,
562
+ "type": "number"
563
+ },
564
+ "minLength": {
565
+ "type": "number"
566
+ },
567
+ "pattern": {
568
+ "type": "string"
569
+ },
570
+ "multiple": {
571
+ "default": false,
572
+ "type": "boolean"
573
+ }
574
+ },
575
+ "required": [
576
+ "maxLength",
577
+ "multiple"
578
+ ],
579
+ "additionalProperties": false
580
+ },
581
+ "meta": {
582
+ "type": "object",
583
+ "properties": {
584
+ "schemaVersion": {
585
+ "default": "1.0",
586
+ "type": "string"
587
+ },
588
+ "title": {
589
+ "type": "string"
590
+ },
591
+ "usageDescription": {
592
+ "type": "string"
593
+ }
594
+ },
595
+ "required": [
596
+ "schemaVersion"
597
+ ],
598
+ "additionalProperties": false
599
+ },
600
+ "showCommentField": {
601
+ "type": "boolean"
602
+ }
603
+ },
604
+ "required": [
605
+ "type",
606
+ "attributes",
607
+ "meta"
608
+ ],
609
+ "additionalProperties": false
610
+ },
611
+ {
612
+ "type": "object",
613
+ "properties": {
614
+ "type": {
615
+ "type": "string",
616
+ "const": "licenseSearch"
617
+ },
618
+ "attributes": {
619
+ "type": "object",
620
+ "properties": {
621
+ "label": {
622
+ "type": "string"
623
+ },
624
+ "help": {
625
+ "type": "string"
626
+ },
627
+ "labelTranslationKey": {
628
+ "type": "string"
629
+ }
630
+ },
631
+ "additionalProperties": false
632
+ },
633
+ "meta": {
634
+ "type": "object",
635
+ "properties": {
636
+ "schemaVersion": {
637
+ "default": "1.0",
638
+ "type": "string"
639
+ },
640
+ "title": {
641
+ "type": "string"
642
+ },
643
+ "usageDescription": {
644
+ "type": "string"
645
+ }
646
+ },
647
+ "required": [
648
+ "schemaVersion"
649
+ ],
650
+ "additionalProperties": false
651
+ },
652
+ "graphQL": {
653
+ "type": "object",
654
+ "properties": {
655
+ "displayFields": {
656
+ "type": "array",
657
+ "items": {
658
+ "type": "object",
659
+ "properties": {
660
+ "propertyName": {
661
+ "default": "id",
662
+ "type": "string"
663
+ },
664
+ "label": {
665
+ "default": "Id",
666
+ "type": "string"
667
+ },
668
+ "labelTranslationKey": {
669
+ "type": "string"
670
+ }
671
+ },
672
+ "required": [
673
+ "propertyName",
674
+ "label"
675
+ ],
676
+ "additionalProperties": false
677
+ }
678
+ },
679
+ "localQueryId": {
680
+ "type": "string"
681
+ },
682
+ "query": {
683
+ "type": "string",
684
+ "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
685
+ },
686
+ "responseField": {
687
+ "type": "string",
688
+ "const": "licenses.items"
689
+ },
690
+ "variables": {
691
+ "type": "array",
692
+ "items": {
693
+ "type": "object",
694
+ "properties": {
695
+ "minLength": {
696
+ "type": "number"
697
+ },
698
+ "label": {
699
+ "type": "string"
700
+ },
701
+ "labelTranslationKey": {
702
+ "type": "string"
703
+ },
704
+ "name": {
705
+ "default": "search",
706
+ "type": "string"
707
+ },
708
+ "type": {
709
+ "default": "string",
710
+ "type": "string"
711
+ },
712
+ "defaultValue": {
713
+ "type": "string"
714
+ }
715
+ },
716
+ "required": [
717
+ "name",
718
+ "type"
719
+ ],
720
+ "additionalProperties": false
721
+ }
722
+ },
723
+ "queryId": {
724
+ "default": "useLicensesQuery",
725
+ "type": "string"
726
+ },
727
+ "answerField": {
728
+ "type": "string",
729
+ "const": "uri"
730
+ }
731
+ },
732
+ "required": [
733
+ "displayFields",
734
+ "query",
735
+ "responseField",
736
+ "variables",
737
+ "answerField"
738
+ ],
739
+ "additionalProperties": false
740
+ }
741
+ },
742
+ "required": [
743
+ "type",
744
+ "attributes",
745
+ "meta",
746
+ "graphQL"
747
+ ],
748
+ "additionalProperties": false
749
+ },
750
+ {
751
+ "type": "object",
752
+ "properties": {
753
+ "type": {
754
+ "type": "string",
755
+ "const": "metadataStandardSearch"
756
+ },
757
+ "attributes": {
758
+ "type": "object",
759
+ "properties": {
760
+ "label": {
761
+ "type": "string"
762
+ },
763
+ "help": {
764
+ "type": "string"
765
+ },
766
+ "labelTranslationKey": {
767
+ "type": "string"
768
+ }
769
+ },
770
+ "additionalProperties": false
771
+ },
772
+ "meta": {
773
+ "type": "object",
774
+ "properties": {
775
+ "schemaVersion": {
776
+ "default": "1.0",
777
+ "type": "string"
778
+ },
779
+ "title": {
780
+ "type": "string"
781
+ },
782
+ "usageDescription": {
783
+ "type": "string"
784
+ }
785
+ },
786
+ "required": [
787
+ "schemaVersion"
788
+ ],
789
+ "additionalProperties": false
790
+ },
791
+ "graphQL": {
792
+ "type": "object",
793
+ "properties": {
794
+ "displayFields": {
795
+ "type": "array",
796
+ "items": {
797
+ "type": "object",
798
+ "properties": {
799
+ "propertyName": {
800
+ "default": "id",
801
+ "type": "string"
802
+ },
803
+ "label": {
804
+ "default": "Id",
805
+ "type": "string"
806
+ },
807
+ "labelTranslationKey": {
808
+ "type": "string"
809
+ }
810
+ },
811
+ "required": [
812
+ "propertyName",
813
+ "label"
814
+ ],
815
+ "additionalProperties": false
816
+ }
817
+ },
818
+ "localQueryId": {
819
+ "type": "string"
820
+ },
821
+ "query": {
822
+ "type": "string",
823
+ "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 } } }"
824
+ },
825
+ "responseField": {
826
+ "type": "string",
827
+ "const": "metadataStandards.items"
828
+ },
829
+ "variables": {
830
+ "type": "array",
831
+ "items": {
832
+ "type": "object",
833
+ "properties": {
834
+ "minLength": {
835
+ "type": "number"
836
+ },
837
+ "label": {
838
+ "type": "string"
839
+ },
840
+ "labelTranslationKey": {
841
+ "type": "string"
842
+ },
843
+ "name": {
844
+ "default": "search",
845
+ "type": "string"
846
+ },
847
+ "type": {
848
+ "default": "string",
849
+ "type": "string"
850
+ },
851
+ "defaultValue": {
852
+ "type": "string"
853
+ }
854
+ },
855
+ "required": [
856
+ "name",
857
+ "type"
858
+ ],
859
+ "additionalProperties": false
860
+ }
861
+ },
862
+ "queryId": {
863
+ "default": "useMetadataStandardsQuery",
864
+ "type": "string"
865
+ },
866
+ "answerField": {
867
+ "default": "uri",
868
+ "type": "string",
869
+ "const": "uri"
870
+ }
871
+ },
872
+ "required": [
873
+ "displayFields",
874
+ "query",
875
+ "responseField",
876
+ "variables",
877
+ "answerField"
878
+ ],
879
+ "additionalProperties": false
880
+ }
881
+ },
882
+ "required": [
883
+ "type",
884
+ "attributes",
885
+ "meta",
886
+ "graphQL"
887
+ ],
888
+ "additionalProperties": false
889
+ },
890
+ {
891
+ "type": "object",
892
+ "properties": {
893
+ "type": {
894
+ "type": "string",
895
+ "const": "number"
896
+ },
897
+ "attributes": {
898
+ "type": "object",
899
+ "properties": {
900
+ "label": {
901
+ "type": "string"
902
+ },
903
+ "help": {
904
+ "type": "string"
905
+ },
906
+ "labelTranslationKey": {
907
+ "type": "string"
908
+ },
909
+ "max": {
910
+ "type": "number"
911
+ },
912
+ "min": {
913
+ "default": 0,
914
+ "type": "number"
915
+ },
916
+ "step": {
917
+ "default": 1,
918
+ "type": "number"
919
+ }
920
+ },
921
+ "required": [
922
+ "min",
923
+ "step"
924
+ ],
925
+ "additionalProperties": false
926
+ },
927
+ "meta": {
928
+ "type": "object",
929
+ "properties": {
930
+ "schemaVersion": {
931
+ "default": "1.0",
932
+ "type": "string"
933
+ },
934
+ "title": {
935
+ "type": "string"
936
+ },
937
+ "usageDescription": {
938
+ "type": "string"
939
+ }
940
+ },
941
+ "required": [
942
+ "schemaVersion"
943
+ ],
944
+ "additionalProperties": false
945
+ },
946
+ "showCommentField": {
947
+ "type": "boolean"
948
+ }
949
+ },
950
+ "required": [
951
+ "type",
952
+ "attributes",
953
+ "meta"
954
+ ],
955
+ "additionalProperties": false
956
+ },
957
+ {
958
+ "type": "object",
959
+ "properties": {
960
+ "type": {
961
+ "type": "string",
962
+ "const": "numberWithContext"
963
+ },
964
+ "attributes": {
965
+ "type": "object",
966
+ "properties": {
967
+ "label": {
968
+ "type": "string"
969
+ },
970
+ "help": {
971
+ "type": "string"
972
+ },
973
+ "labelTranslationKey": {
974
+ "type": "string"
975
+ },
976
+ "max": {
977
+ "type": "number"
978
+ },
979
+ "min": {
980
+ "default": 0,
981
+ "type": "number"
982
+ },
983
+ "step": {
984
+ "default": 1,
985
+ "type": "number"
986
+ },
987
+ "context": {
988
+ "type": "array",
989
+ "items": {
990
+ "type": "object",
991
+ "properties": {
992
+ "label": {
993
+ "default": "",
994
+ "type": "string"
995
+ },
996
+ "labelTranslationKey": {
997
+ "type": "string"
998
+ },
999
+ "value": {
1000
+ "default": "",
1001
+ "type": "string"
1002
+ },
1003
+ "selected": {
1004
+ "default": false,
1005
+ "type": "boolean"
1006
+ }
1007
+ },
1008
+ "required": [
1009
+ "label",
1010
+ "value",
1011
+ "selected"
1012
+ ],
1013
+ "additionalProperties": false
1014
+ }
1015
+ }
1016
+ },
1017
+ "required": [
1018
+ "min",
1019
+ "step",
1020
+ "context"
1021
+ ],
1022
+ "additionalProperties": false
1023
+ },
1024
+ "meta": {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "schemaVersion": {
1028
+ "default": "1.0",
1029
+ "type": "string"
1030
+ },
1031
+ "title": {
1032
+ "type": "string"
1033
+ },
1034
+ "usageDescription": {
1035
+ "type": "string"
1036
+ }
1037
+ },
1038
+ "required": [
1039
+ "schemaVersion"
1040
+ ],
1041
+ "additionalProperties": false
1042
+ },
1043
+ "showCommentField": {
1044
+ "type": "boolean"
1045
+ }
1046
+ },
1047
+ "required": [
1048
+ "type",
1049
+ "attributes",
1050
+ "meta"
1051
+ ],
1052
+ "additionalProperties": false
1053
+ },
1054
+ {
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "type": {
1058
+ "type": "string",
1059
+ "const": "radioButtons"
1060
+ },
1061
+ "attributes": {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "label": {
1065
+ "type": "string"
1066
+ },
1067
+ "help": {
1068
+ "type": "string"
1069
+ },
1070
+ "labelTranslationKey": {
1071
+ "type": "string"
1072
+ }
1073
+ },
1074
+ "additionalProperties": false
1075
+ },
1076
+ "meta": {
1077
+ "type": "object",
1078
+ "properties": {
1079
+ "schemaVersion": {
1080
+ "default": "1.0",
1081
+ "type": "string"
1082
+ },
1083
+ "title": {
1084
+ "type": "string"
1085
+ },
1086
+ "usageDescription": {
1087
+ "type": "string"
1088
+ }
1089
+ },
1090
+ "required": [
1091
+ "schemaVersion"
1092
+ ],
1093
+ "additionalProperties": false
1094
+ },
1095
+ "options": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "label": {
1101
+ "default": "Option A",
1102
+ "type": "string"
1103
+ },
1104
+ "value": {
1105
+ "default": "a",
1106
+ "type": "string"
1107
+ },
1108
+ "description": {
1109
+ "type": "string"
1110
+ }
1111
+ },
1112
+ "required": [
1113
+ "label",
1114
+ "value"
1115
+ ],
1116
+ "additionalProperties": false
1117
+ }
1118
+ },
1119
+ "showCommentField": {
1120
+ "type": "boolean"
1121
+ }
1122
+ },
1123
+ "required": [
1124
+ "type",
1125
+ "attributes",
1126
+ "meta",
1127
+ "options"
1128
+ ],
1129
+ "additionalProperties": false
1130
+ },
1131
+ {
1132
+ "type": "object",
1133
+ "properties": {
1134
+ "type": {
1135
+ "type": "string",
1136
+ "const": "repositorySearch"
1137
+ },
1138
+ "attributes": {
1139
+ "type": "object",
1140
+ "properties": {
1141
+ "label": {
1142
+ "type": "string"
1143
+ },
1144
+ "help": {
1145
+ "type": "string"
1146
+ },
1147
+ "labelTranslationKey": {
1148
+ "type": "string"
1149
+ }
1150
+ },
1151
+ "additionalProperties": false
1152
+ },
1153
+ "meta": {
1154
+ "type": "object",
1155
+ "properties": {
1156
+ "schemaVersion": {
1157
+ "default": "1.0",
1158
+ "type": "string"
1159
+ },
1160
+ "title": {
1161
+ "type": "string"
1162
+ },
1163
+ "usageDescription": {
1164
+ "type": "string"
1165
+ }
1166
+ },
1167
+ "required": [
1168
+ "schemaVersion"
1169
+ ],
1170
+ "additionalProperties": false
1171
+ },
1172
+ "graphQL": {
1173
+ "type": "object",
1174
+ "properties": {
1175
+ "displayFields": {
1176
+ "type": "array",
1177
+ "items": {
1178
+ "type": "object",
1179
+ "properties": {
1180
+ "propertyName": {
1181
+ "default": "id",
1182
+ "type": "string"
1183
+ },
1184
+ "label": {
1185
+ "default": "Id",
1186
+ "type": "string"
1187
+ },
1188
+ "labelTranslationKey": {
1189
+ "type": "string"
1190
+ }
1191
+ },
1192
+ "required": [
1193
+ "propertyName",
1194
+ "label"
1195
+ ],
1196
+ "additionalProperties": false
1197
+ }
1198
+ },
1199
+ "localQueryId": {
1200
+ "type": "string"
1201
+ },
1202
+ "query": {
1203
+ "type": "string",
1204
+ "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 } } }"
1205
+ },
1206
+ "responseField": {
1207
+ "type": "string",
1208
+ "const": "repositories.items"
1209
+ },
1210
+ "variables": {
1211
+ "type": "array",
1212
+ "items": {
1213
+ "type": "object",
1214
+ "properties": {
1215
+ "minLength": {
1216
+ "type": "number"
1217
+ },
1218
+ "label": {
1219
+ "type": "string"
1220
+ },
1221
+ "labelTranslationKey": {
1222
+ "type": "string"
1223
+ },
1224
+ "name": {
1225
+ "default": "search",
1226
+ "type": "string"
1227
+ },
1228
+ "type": {
1229
+ "default": "string",
1230
+ "type": "string"
1231
+ },
1232
+ "defaultValue": {
1233
+ "type": "string"
1234
+ }
1235
+ },
1236
+ "required": [
1237
+ "name",
1238
+ "type"
1239
+ ],
1240
+ "additionalProperties": false
1241
+ }
1242
+ },
1243
+ "queryId": {
1244
+ "default": "useRepositoriesQuery",
1245
+ "type": "string"
1246
+ },
1247
+ "answerField": {
1248
+ "type": "string",
1249
+ "const": "uri"
1250
+ }
1251
+ },
1252
+ "required": [
1253
+ "displayFields",
1254
+ "query",
1255
+ "responseField",
1256
+ "variables",
1257
+ "answerField"
1258
+ ],
1259
+ "additionalProperties": false
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "type",
1264
+ "attributes",
1265
+ "meta",
1266
+ "graphQL"
1267
+ ],
1268
+ "additionalProperties": false
1269
+ },
1270
+ {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "type": {
1274
+ "type": "string",
1275
+ "const": "selectBox"
1276
+ },
1277
+ "attributes": {
1278
+ "type": "object",
1279
+ "properties": {
1280
+ "label": {
1281
+ "type": "string"
1282
+ },
1283
+ "help": {
1284
+ "type": "string"
1285
+ },
1286
+ "labelTranslationKey": {
1287
+ "type": "string"
1288
+ },
1289
+ "multiple": {
1290
+ "type": "boolean",
1291
+ "const": false
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "multiple"
1296
+ ],
1297
+ "additionalProperties": false
1298
+ },
1299
+ "meta": {
1300
+ "type": "object",
1301
+ "properties": {
1302
+ "schemaVersion": {
1303
+ "default": "1.0",
1304
+ "type": "string"
1305
+ },
1306
+ "title": {
1307
+ "type": "string"
1308
+ },
1309
+ "usageDescription": {
1310
+ "type": "string"
1311
+ }
1312
+ },
1313
+ "required": [
1314
+ "schemaVersion"
1315
+ ],
1316
+ "additionalProperties": false
1317
+ },
1318
+ "options": {
1319
+ "type": "array",
1320
+ "items": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "label": {
1324
+ "default": "Option A",
1325
+ "type": "string"
1326
+ },
1327
+ "value": {
1328
+ "default": "a",
1329
+ "type": "string"
1330
+ },
1331
+ "description": {
1332
+ "type": "string"
1333
+ }
1334
+ },
1335
+ "required": [
1336
+ "label",
1337
+ "value"
1338
+ ],
1339
+ "additionalProperties": false
1340
+ }
1341
+ },
1342
+ "showCommentField": {
1343
+ "type": "boolean"
1344
+ }
1345
+ },
1346
+ "required": [
1347
+ "type",
1348
+ "attributes",
1349
+ "meta",
1350
+ "options"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ {
1355
+ "type": "object",
1356
+ "properties": {
1357
+ "type": {
1358
+ "type": "string",
1359
+ "const": "textArea"
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
+ "maxLength": {
1374
+ "default": 10000,
1375
+ "type": "number"
1376
+ },
1377
+ "minLength": {
1378
+ "type": "number"
1379
+ },
1380
+ "pattern": {
1381
+ "type": "string"
1382
+ },
1383
+ "cols": {
1384
+ "default": 20,
1385
+ "type": "number"
1386
+ },
1387
+ "rows": {
1388
+ "default": 2,
1389
+ "type": "number"
1390
+ },
1391
+ "asRichText": {
1392
+ "default": true,
1393
+ "type": "boolean"
1394
+ }
1395
+ },
1396
+ "required": [
1397
+ "maxLength",
1398
+ "cols",
1399
+ "rows",
1400
+ "asRichText"
1401
+ ],
1402
+ "additionalProperties": false
1403
+ },
1404
+ "meta": {
1405
+ "type": "object",
1406
+ "properties": {
1407
+ "schemaVersion": {
1408
+ "default": "1.0",
1409
+ "type": "string"
1410
+ },
1411
+ "title": {
1412
+ "type": "string"
1413
+ },
1414
+ "usageDescription": {
1415
+ "type": "string"
1416
+ }
1417
+ },
1418
+ "required": [
1419
+ "schemaVersion"
1420
+ ],
1421
+ "additionalProperties": false
1422
+ }
1423
+ },
1424
+ "required": [
1425
+ "type",
1426
+ "attributes",
1427
+ "meta"
1428
+ ],
1429
+ "additionalProperties": false
1430
+ },
1431
+ {
1432
+ "type": "object",
1433
+ "properties": {
1434
+ "type": {
1435
+ "type": "string",
1436
+ "const": "text"
1437
+ },
1438
+ "attributes": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "label": {
1442
+ "type": "string"
1443
+ },
1444
+ "help": {
1445
+ "type": "string"
1446
+ },
1447
+ "labelTranslationKey": {
1448
+ "type": "string"
1449
+ },
1450
+ "maxLength": {
1451
+ "default": 255,
1452
+ "type": "number"
1453
+ },
1454
+ "minLength": {
1455
+ "type": "number"
1456
+ },
1457
+ "pattern": {
1458
+ "type": "string"
1459
+ }
1460
+ },
1461
+ "required": [
1462
+ "maxLength"
1463
+ ],
1464
+ "additionalProperties": false
1465
+ },
1466
+ "meta": {
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "schemaVersion": {
1470
+ "default": "1.0",
1471
+ "type": "string"
1472
+ },
1473
+ "title": {
1474
+ "type": "string"
1475
+ },
1476
+ "usageDescription": {
1477
+ "type": "string"
1478
+ }
1479
+ },
1480
+ "required": [
1481
+ "schemaVersion"
1482
+ ],
1483
+ "additionalProperties": false
1484
+ }
1485
+ },
1486
+ "required": [
1487
+ "type",
1488
+ "attributes",
1489
+ "meta"
1490
+ ],
1491
+ "additionalProperties": false
1492
+ },
1493
+ {
1494
+ "type": "object",
1495
+ "properties": {
1496
+ "type": {
1497
+ "type": "string",
1498
+ "const": "url"
1499
+ },
1500
+ "attributes": {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "label": {
1504
+ "type": "string"
1505
+ },
1506
+ "help": {
1507
+ "type": "string"
1508
+ },
1509
+ "labelTranslationKey": {
1510
+ "type": "string"
1511
+ },
1512
+ "maxLength": {
1513
+ "default": 255,
1514
+ "type": "number"
1515
+ },
1516
+ "minLength": {
1517
+ "type": "number"
1518
+ },
1519
+ "pattern": {
1520
+ "type": "string"
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "maxLength"
1525
+ ],
1526
+ "additionalProperties": false
1527
+ },
1528
+ "meta": {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "schemaVersion": {
1532
+ "default": "1.0",
1533
+ "type": "string"
1534
+ },
1535
+ "title": {
1536
+ "type": "string"
1537
+ },
1538
+ "usageDescription": {
1539
+ "type": "string"
1540
+ }
1541
+ },
1542
+ "required": [
1543
+ "schemaVersion"
1544
+ ],
1545
+ "additionalProperties": false
1546
+ },
1547
+ "showCommentField": {
1548
+ "type": "boolean"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "type",
1553
+ "attributes",
1554
+ "meta"
1555
+ ],
1556
+ "additionalProperties": false
1557
+ }
1558
+ ]
1559
+ }