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