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