@dmptool/types 1.2.3 → 1.2.4

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 (42) hide show
  1. package/README.md +8 -0
  2. package/dist/answers/__tests__/answers.spec.js +122 -6
  3. package/dist/answers/answer.d.ts +3 -3
  4. package/dist/answers/graphQLAnswers.d.ts +120 -25
  5. package/dist/answers/graphQLAnswers.js +22 -5
  6. package/dist/answers/index.d.ts +399 -31
  7. package/dist/answers/index.js +8 -2
  8. package/dist/answers/numberAnswers.d.ts +40 -0
  9. package/dist/answers/numberAnswers.js +8 -1
  10. package/dist/answers/tableAnswers.d.ts +1688 -75
  11. package/dist/answers/tableAnswers.js +63 -2
  12. package/dist/questions/__tests__/graphQLQuestions.spec.js +177 -39
  13. package/dist/questions/__tests__/numberQuestions.spec.js +36 -0
  14. package/dist/questions/__tests__/tableQuestion.spec.js +145 -0
  15. package/dist/questions/__tests__/usage.spec.js +162 -1
  16. package/dist/questions/graphQLQuestions.d.ts +420 -60
  17. package/dist/questions/graphQLQuestions.js +257 -11
  18. package/dist/questions/index.d.ts +4849 -189
  19. package/dist/questions/index.js +9 -2
  20. package/dist/questions/numberQuestions.d.ts +105 -0
  21. package/dist/questions/numberQuestions.js +12 -1
  22. package/dist/questions/question.d.ts +4 -4
  23. package/dist/questions/question.js +25 -4
  24. package/dist/questions/tableQuestions.d.ts +5930 -679
  25. package/dist/questions/tableQuestions.js +175 -3
  26. package/dist/schemas/anyAnswer.schema.json +137 -17
  27. package/dist/schemas/anyQuestion.schema.json +829 -101
  28. package/dist/schemas/anyTableColumnAnswer.schema.json +116 -5
  29. package/dist/schemas/anyTableColumnQuestion.schema.json +326 -24
  30. package/dist/schemas/licenseSearchAnswer.schema.json +49 -0
  31. package/dist/schemas/licenseSearchQuestion.schema.json +164 -0
  32. package/dist/schemas/metadataStandardSearchAnswer.schema.json +49 -0
  33. package/dist/schemas/metadataStandardSearchQuestion.schema.json +174 -0
  34. package/dist/schemas/numberWithContextAnswer.schema.json +45 -0
  35. package/dist/schemas/numberWithContextQuestion.schema.json +84 -0
  36. package/dist/schemas/repositorySearchAnswer.schema.json +49 -0
  37. package/dist/schemas/repositorySearchQuestion.schema.json +180 -0
  38. package/dist/schemas/researchOutputTableAnswer.schema.json +519 -0
  39. package/dist/schemas/researchOutputTableQuestion.schema.json +1183 -0
  40. package/dist/schemas/tableAnswer.schema.json +116 -5
  41. package/dist/schemas/tableQuestion.schema.json +348 -24
  42. package/package.json +9 -5
@@ -0,0 +1,1183 @@
1
+ {
2
+ "$ref": "#/definitions/ResearchOutputTableQuestion",
3
+ "definitions": {
4
+ "ResearchOutputTableQuestion": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "table"
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
+ "canAddRows": {
24
+ "type": "boolean",
25
+ "default": true
26
+ },
27
+ "canRemoveRows": {
28
+ "type": "boolean",
29
+ "default": true
30
+ },
31
+ "initialRows": {
32
+ "type": "number",
33
+ "default": 1
34
+ },
35
+ "maxRows": {
36
+ "type": "number"
37
+ },
38
+ "minRows": {
39
+ "type": "number"
40
+ }
41
+ },
42
+ "additionalProperties": false,
43
+ "default": {}
44
+ },
45
+ "meta": {
46
+ "type": "object",
47
+ "properties": {
48
+ "schemaVersion": {
49
+ "type": "string",
50
+ "default": "1.0"
51
+ },
52
+ "title": {
53
+ "type": "string"
54
+ },
55
+ "usageDescription": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "additionalProperties": false,
60
+ "default": {}
61
+ },
62
+ "columns": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "heading": {
68
+ "type": "string",
69
+ "default": "Column A"
70
+ },
71
+ "required": {
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ "enabled": {
76
+ "type": "boolean",
77
+ "default": true
78
+ },
79
+ "content": {
80
+ "anyOf": [
81
+ {
82
+ "type": "object",
83
+ "properties": {
84
+ "type": {
85
+ "type": "string",
86
+ "const": "affiliationSearch"
87
+ },
88
+ "attributes": {
89
+ "type": "object",
90
+ "properties": {
91
+ "label": {
92
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
93
+ },
94
+ "help": {
95
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
96
+ },
97
+ "labelTranslationKey": {
98
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
99
+ }
100
+ },
101
+ "additionalProperties": false,
102
+ "default": {}
103
+ },
104
+ "meta": {
105
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
106
+ },
107
+ "graphQL": {
108
+ "type": "object",
109
+ "properties": {
110
+ "displayFields": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "object",
114
+ "properties": {
115
+ "propertyName": {
116
+ "type": "string",
117
+ "const": "displayName",
118
+ "default": "displayName"
119
+ },
120
+ "label": {
121
+ "type": "string",
122
+ "default": "Institution"
123
+ },
124
+ "labelTranslationKey": {
125
+ "type": "string",
126
+ "default": "SignupPage.institution"
127
+ }
128
+ },
129
+ "additionalProperties": false
130
+ },
131
+ "default": [
132
+ {}
133
+ ]
134
+ },
135
+ "localQueryId": {
136
+ "type": "string"
137
+ },
138
+ "query": {
139
+ "type": "string",
140
+ "const": "query Affiliations($name: String!){ affiliations(name: $name) { totalCount nextCursor items { id displayName uri } } }",
141
+ "default": "query Affiliations($name: String!){ affiliations(name: $name) { totalCount nextCursor items { id displayName uri } } }"
142
+ },
143
+ "responseField": {
144
+ "type": "string",
145
+ "const": "affiliations.items",
146
+ "default": "affiliations.items"
147
+ },
148
+ "variables": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "object",
152
+ "properties": {
153
+ "name": {
154
+ "type": "string",
155
+ "const": "name",
156
+ "default": "name"
157
+ },
158
+ "type": {
159
+ "type": "string",
160
+ "default": "string"
161
+ },
162
+ "label": {
163
+ "type": "string",
164
+ "default": "Search for your institution"
165
+ },
166
+ "minLength": {
167
+ "type": "number",
168
+ "const": 3,
169
+ "default": 3
170
+ },
171
+ "labelTranslationKey": {
172
+ "type": "string",
173
+ "default": "SignupPage.institutionHelp"
174
+ }
175
+ },
176
+ "additionalProperties": false
177
+ },
178
+ "default": [
179
+ {}
180
+ ]
181
+ },
182
+ "queryId": {
183
+ "type": "string",
184
+ "default": "useAffiliationsQuery"
185
+ },
186
+ "answerField": {
187
+ "type": "string",
188
+ "const": "uri",
189
+ "default": "uri"
190
+ }
191
+ },
192
+ "additionalProperties": false,
193
+ "default": {}
194
+ }
195
+ },
196
+ "required": [
197
+ "type"
198
+ ],
199
+ "additionalProperties": false
200
+ },
201
+ {
202
+ "type": "object",
203
+ "properties": {
204
+ "type": {
205
+ "type": "string",
206
+ "const": "boolean"
207
+ },
208
+ "attributes": {
209
+ "type": "object",
210
+ "properties": {
211
+ "label": {
212
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
213
+ },
214
+ "help": {
215
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
216
+ },
217
+ "labelTranslationKey": {
218
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
219
+ },
220
+ "checked": {
221
+ "type": "boolean",
222
+ "default": false
223
+ }
224
+ },
225
+ "additionalProperties": false,
226
+ "default": {}
227
+ },
228
+ "meta": {
229
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
230
+ }
231
+ },
232
+ "required": [
233
+ "type"
234
+ ],
235
+ "additionalProperties": false
236
+ },
237
+ {
238
+ "type": "object",
239
+ "properties": {
240
+ "type": {
241
+ "type": "string",
242
+ "const": "checkBoxes"
243
+ },
244
+ "attributes": {
245
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
246
+ "default": {}
247
+ },
248
+ "meta": {
249
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
250
+ },
251
+ "options": {
252
+ "type": "array",
253
+ "items": {
254
+ "type": "object",
255
+ "properties": {
256
+ "label": {
257
+ "type": "string",
258
+ "default": "Option A"
259
+ },
260
+ "value": {
261
+ "type": "string",
262
+ "default": "a"
263
+ },
264
+ "checked": {
265
+ "type": "boolean",
266
+ "default": false
267
+ }
268
+ },
269
+ "additionalProperties": false
270
+ },
271
+ "default": [
272
+ {}
273
+ ]
274
+ }
275
+ },
276
+ "required": [
277
+ "type"
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
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
293
+ },
294
+ "help": {
295
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
296
+ },
297
+ "labelTranslationKey": {
298
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
299
+ },
300
+ "max": {
301
+ "type": "number"
302
+ },
303
+ "min": {
304
+ "type": "number",
305
+ "default": 0
306
+ },
307
+ "step": {
308
+ "type": "number",
309
+ "default": 1
310
+ },
311
+ "denomination": {
312
+ "type": "string",
313
+ "default": "USD"
314
+ }
315
+ },
316
+ "additionalProperties": false,
317
+ "default": {}
318
+ },
319
+ "meta": {
320
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
321
+ }
322
+ },
323
+ "required": [
324
+ "type"
325
+ ],
326
+ "additionalProperties": false
327
+ },
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "type": {
332
+ "type": "string",
333
+ "const": "date"
334
+ },
335
+ "attributes": {
336
+ "type": "object",
337
+ "properties": {
338
+ "label": {
339
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
340
+ },
341
+ "help": {
342
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
343
+ },
344
+ "labelTranslationKey": {
345
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
346
+ },
347
+ "max": {
348
+ "type": "string"
349
+ },
350
+ "min": {
351
+ "type": "string"
352
+ },
353
+ "step": {
354
+ "type": "number",
355
+ "default": 1
356
+ }
357
+ },
358
+ "additionalProperties": false,
359
+ "default": {}
360
+ },
361
+ "meta": {
362
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
363
+ }
364
+ },
365
+ "required": [
366
+ "type"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "type": {
374
+ "type": "string",
375
+ "const": "dateRange"
376
+ },
377
+ "attributes": {
378
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
379
+ "default": {}
380
+ },
381
+ "meta": {
382
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
383
+ },
384
+ "columns": {
385
+ "type": "object",
386
+ "properties": {
387
+ "start": {
388
+ "type": "object",
389
+ "properties": {
390
+ "label": {
391
+ "type": "string",
392
+ "default": "From"
393
+ },
394
+ "help": {
395
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
396
+ },
397
+ "labelTranslationKey": {
398
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
399
+ },
400
+ "max": {
401
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/max"
402
+ },
403
+ "min": {
404
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/min"
405
+ },
406
+ "step": {
407
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/step"
408
+ }
409
+ },
410
+ "additionalProperties": false,
411
+ "default": {}
412
+ },
413
+ "end": {
414
+ "type": "object",
415
+ "properties": {
416
+ "label": {
417
+ "type": "string",
418
+ "default": "To"
419
+ },
420
+ "help": {
421
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
422
+ },
423
+ "labelTranslationKey": {
424
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
425
+ },
426
+ "max": {
427
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/max"
428
+ },
429
+ "min": {
430
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/min"
431
+ },
432
+ "step": {
433
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/4/properties/attributes/properties/step"
434
+ }
435
+ },
436
+ "additionalProperties": false,
437
+ "default": {}
438
+ }
439
+ },
440
+ "additionalProperties": false,
441
+ "default": {}
442
+ }
443
+ },
444
+ "required": [
445
+ "type"
446
+ ],
447
+ "additionalProperties": false
448
+ },
449
+ {
450
+ "type": "object",
451
+ "properties": {
452
+ "type": {
453
+ "type": "string",
454
+ "const": "email"
455
+ },
456
+ "attributes": {
457
+ "type": "object",
458
+ "properties": {
459
+ "label": {
460
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
461
+ },
462
+ "help": {
463
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
464
+ },
465
+ "labelTranslationKey": {
466
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
467
+ },
468
+ "maxLength": {
469
+ "type": "number",
470
+ "default": 255
471
+ },
472
+ "minLength": {
473
+ "type": "number"
474
+ },
475
+ "pattern": {
476
+ "type": "string"
477
+ },
478
+ "multiple": {
479
+ "type": "boolean",
480
+ "default": false
481
+ }
482
+ },
483
+ "additionalProperties": false,
484
+ "default": {}
485
+ },
486
+ "meta": {
487
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
488
+ }
489
+ },
490
+ "required": [
491
+ "type"
492
+ ],
493
+ "additionalProperties": false
494
+ },
495
+ {
496
+ "type": "object",
497
+ "properties": {
498
+ "type": {
499
+ "type": "string",
500
+ "const": "licenseSearch"
501
+ },
502
+ "attributes": {
503
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
504
+ "default": {}
505
+ },
506
+ "meta": {
507
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
508
+ },
509
+ "graphQL": {
510
+ "type": "object",
511
+ "properties": {
512
+ "displayFields": {
513
+ "type": "array",
514
+ "items": {
515
+ "type": "object",
516
+ "properties": {
517
+ "propertyName": {
518
+ "type": "string",
519
+ "default": "id"
520
+ },
521
+ "label": {
522
+ "type": "string",
523
+ "default": "Id"
524
+ },
525
+ "labelTranslationKey": {
526
+ "type": "string"
527
+ }
528
+ },
529
+ "additionalProperties": false
530
+ },
531
+ "default": [
532
+ {
533
+ "propertyName": "name",
534
+ "label": "Name"
535
+ },
536
+ {
537
+ "propertyName": "description",
538
+ "label": "Description"
539
+ },
540
+ {
541
+ "propertyName": "recommended",
542
+ "label": "Recommended"
543
+ }
544
+ ]
545
+ },
546
+ "localQueryId": {
547
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/graphQL/properties/localQueryId"
548
+ },
549
+ "query": {
550
+ "type": "string",
551
+ "const": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }",
552
+ "default": "query Licenses($term: String, $paginationOptions: PaginationOptions){ license(term: $term, paginationOptions: $paginationOptions) { totalCount currentOffset limit hasNextPage hasPreviousPage availableSortFields items { id name uri description } } }"
553
+ },
554
+ "responseField": {
555
+ "type": "string",
556
+ "const": "licenses.items",
557
+ "default": "licenses.items"
558
+ },
559
+ "variables": {
560
+ "type": "array",
561
+ "items": {
562
+ "type": "object",
563
+ "properties": {
564
+ "minLength": {
565
+ "type": "number"
566
+ },
567
+ "label": {
568
+ "type": "string"
569
+ },
570
+ "labelTranslationKey": {
571
+ "type": "string"
572
+ },
573
+ "name": {
574
+ "type": "string",
575
+ "default": "search"
576
+ },
577
+ "type": {
578
+ "type": "string",
579
+ "default": "string"
580
+ },
581
+ "defaultValue": {
582
+ "type": "string"
583
+ }
584
+ },
585
+ "additionalProperties": false
586
+ },
587
+ "default": [
588
+ {
589
+ "minLength": 3,
590
+ "label": "Search for a license",
591
+ "name": "term",
592
+ "type": "string"
593
+ },
594
+ {
595
+ "label": "Pagination Options",
596
+ "name": "paginationOptions",
597
+ "type": "paginationOptions",
598
+ "options": {
599
+ "type": "OFFSET",
600
+ "limit": 10,
601
+ "offset": 0,
602
+ "sortField": "name",
603
+ "sortOrder": "ASC"
604
+ }
605
+ }
606
+ ]
607
+ },
608
+ "queryId": {
609
+ "type": "string",
610
+ "default": "useLicensesQuery"
611
+ },
612
+ "answerField": {
613
+ "type": "string",
614
+ "const": "uri",
615
+ "default": "uri"
616
+ }
617
+ },
618
+ "additionalProperties": false,
619
+ "default": {}
620
+ }
621
+ },
622
+ "required": [
623
+ "type"
624
+ ],
625
+ "additionalProperties": false
626
+ },
627
+ {
628
+ "type": "object",
629
+ "properties": {
630
+ "type": {
631
+ "type": "string",
632
+ "const": "metadataStandardSearch"
633
+ },
634
+ "attributes": {
635
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
636
+ "default": {}
637
+ },
638
+ "meta": {
639
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
640
+ },
641
+ "graphQL": {
642
+ "type": "object",
643
+ "properties": {
644
+ "displayFields": {
645
+ "type": "array",
646
+ "items": {
647
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/7/properties/graphQL/properties/displayFields/items"
648
+ },
649
+ "default": [
650
+ {
651
+ "propertyName": "name",
652
+ "label": "Name"
653
+ },
654
+ {
655
+ "propertyName": "description",
656
+ "label": "Description"
657
+ },
658
+ {
659
+ "propertyName": "website",
660
+ "label": "Website"
661
+ },
662
+ {
663
+ "propertyName": "keywords",
664
+ "label": "Subject Areas"
665
+ }
666
+ ]
667
+ },
668
+ "localQueryId": {
669
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/graphQL/properties/localQueryId"
670
+ },
671
+ "query": {
672
+ "type": "string",
673
+ "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 } } }",
674
+ "default": "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 } } }"
675
+ },
676
+ "responseField": {
677
+ "type": "string",
678
+ "const": "metadataStandards.items",
679
+ "default": "metadataStandards.items"
680
+ },
681
+ "variables": {
682
+ "type": "array",
683
+ "items": {
684
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/7/properties/graphQL/properties/variables/items"
685
+ },
686
+ "default": [
687
+ {
688
+ "minLength": 3,
689
+ "label": "Search for a metadata standard",
690
+ "name": "term",
691
+ "type": "string"
692
+ },
693
+ {
694
+ "minLength": 3,
695
+ "label": "Subject Areas",
696
+ "name": "keywords",
697
+ "type": "string"
698
+ },
699
+ {
700
+ "label": "Pagination Options",
701
+ "name": "paginationOptions",
702
+ "type": "paginationOptions",
703
+ "options": {
704
+ "type": "OFFSET",
705
+ "limit": 10,
706
+ "offset": 0,
707
+ "sortField": "name",
708
+ "sortOrder": "ASC"
709
+ }
710
+ }
711
+ ]
712
+ },
713
+ "queryId": {
714
+ "type": "string",
715
+ "default": "useMetadataStandardsQuery"
716
+ },
717
+ "answerField": {
718
+ "type": "string",
719
+ "const": "uri",
720
+ "default": "uri"
721
+ }
722
+ },
723
+ "additionalProperties": false,
724
+ "default": {}
725
+ }
726
+ },
727
+ "required": [
728
+ "type"
729
+ ],
730
+ "additionalProperties": false
731
+ },
732
+ {
733
+ "type": "object",
734
+ "properties": {
735
+ "type": {
736
+ "type": "string",
737
+ "const": "number"
738
+ },
739
+ "attributes": {
740
+ "type": "object",
741
+ "properties": {
742
+ "label": {
743
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
744
+ },
745
+ "help": {
746
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
747
+ },
748
+ "labelTranslationKey": {
749
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
750
+ },
751
+ "max": {
752
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/max"
753
+ },
754
+ "min": {
755
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/min"
756
+ },
757
+ "step": {
758
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/step"
759
+ }
760
+ },
761
+ "additionalProperties": false,
762
+ "default": {}
763
+ },
764
+ "meta": {
765
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
766
+ }
767
+ },
768
+ "required": [
769
+ "type"
770
+ ],
771
+ "additionalProperties": false
772
+ },
773
+ {
774
+ "type": "object",
775
+ "properties": {
776
+ "type": {
777
+ "type": "string",
778
+ "const": "numberWithContext"
779
+ },
780
+ "attributes": {
781
+ "type": "object",
782
+ "properties": {
783
+ "label": {
784
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
785
+ },
786
+ "help": {
787
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
788
+ },
789
+ "labelTranslationKey": {
790
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
791
+ },
792
+ "max": {
793
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/max"
794
+ },
795
+ "min": {
796
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/min"
797
+ },
798
+ "step": {
799
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/3/properties/attributes/properties/step"
800
+ },
801
+ "context": {
802
+ "type": "array",
803
+ "items": {
804
+ "type": "object",
805
+ "properties": {
806
+ "label": {
807
+ "type": "string",
808
+ "default": ""
809
+ },
810
+ "labelTranslationKey": {
811
+ "type": "string"
812
+ },
813
+ "value": {
814
+ "type": "string",
815
+ "default": ""
816
+ }
817
+ },
818
+ "additionalProperties": false
819
+ },
820
+ "default": []
821
+ }
822
+ },
823
+ "additionalProperties": false,
824
+ "default": {}
825
+ },
826
+ "meta": {
827
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
828
+ }
829
+ },
830
+ "required": [
831
+ "type"
832
+ ],
833
+ "additionalProperties": false
834
+ },
835
+ {
836
+ "type": "object",
837
+ "properties": {
838
+ "type": {
839
+ "type": "string",
840
+ "const": "radioButtons"
841
+ },
842
+ "attributes": {
843
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
844
+ "default": {}
845
+ },
846
+ "meta": {
847
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
848
+ },
849
+ "options": {
850
+ "type": "array",
851
+ "items": {
852
+ "type": "object",
853
+ "properties": {
854
+ "label": {
855
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/2/properties/options/items/properties/label"
856
+ },
857
+ "value": {
858
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/2/properties/options/items/properties/value"
859
+ },
860
+ "selected": {
861
+ "type": "boolean",
862
+ "default": false
863
+ }
864
+ },
865
+ "additionalProperties": false
866
+ },
867
+ "default": [
868
+ {}
869
+ ]
870
+ }
871
+ },
872
+ "required": [
873
+ "type"
874
+ ],
875
+ "additionalProperties": false
876
+ },
877
+ {
878
+ "type": "object",
879
+ "properties": {
880
+ "type": {
881
+ "type": "string",
882
+ "const": "repositorySearch"
883
+ },
884
+ "attributes": {
885
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/attributes",
886
+ "default": {}
887
+ },
888
+ "meta": {
889
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
890
+ },
891
+ "graphQL": {
892
+ "type": "object",
893
+ "properties": {
894
+ "displayFields": {
895
+ "type": "array",
896
+ "items": {
897
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/7/properties/graphQL/properties/displayFields/items"
898
+ },
899
+ "default": [
900
+ {
901
+ "propertyName": "name",
902
+ "label": "Name"
903
+ },
904
+ {
905
+ "propertyName": "description",
906
+ "label": "Description"
907
+ },
908
+ {
909
+ "propertyName": "website",
910
+ "label": "Website"
911
+ },
912
+ {
913
+ "propertyName": "keywords",
914
+ "label": "Subject Areas"
915
+ }
916
+ ]
917
+ },
918
+ "localQueryId": {
919
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/0/properties/graphQL/properties/localQueryId"
920
+ },
921
+ "query": {
922
+ "type": "string",
923
+ "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 } } }",
924
+ "default": "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 } } }"
925
+ },
926
+ "responseField": {
927
+ "type": "string",
928
+ "const": "repositories.items",
929
+ "default": "repositories.items"
930
+ },
931
+ "variables": {
932
+ "type": "array",
933
+ "items": {
934
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/7/properties/graphQL/properties/variables/items"
935
+ },
936
+ "default": [
937
+ {
938
+ "minLength": 3,
939
+ "label": "Search for a repository",
940
+ "name": "term",
941
+ "type": "string"
942
+ },
943
+ {
944
+ "minLength": 3,
945
+ "label": "Subject Areas",
946
+ "name": "keywords",
947
+ "type": "string"
948
+ },
949
+ {
950
+ "minLength": 3,
951
+ "label": "Repository type",
952
+ "name": "repositoryType",
953
+ "type": "string"
954
+ },
955
+ {
956
+ "label": "Pagination Options",
957
+ "name": "paginationOptions",
958
+ "type": "paginationOptions",
959
+ "options": {
960
+ "type": "OFFSET",
961
+ "limit": 10,
962
+ "offset": 0,
963
+ "sortField": "name",
964
+ "sortOrder": "ASC"
965
+ }
966
+ }
967
+ ]
968
+ },
969
+ "queryId": {
970
+ "type": "string",
971
+ "default": "useRepositoriesQuery"
972
+ },
973
+ "answerField": {
974
+ "type": "string",
975
+ "const": "uri",
976
+ "default": "uri"
977
+ }
978
+ },
979
+ "additionalProperties": false,
980
+ "default": {}
981
+ }
982
+ },
983
+ "required": [
984
+ "type"
985
+ ],
986
+ "additionalProperties": false
987
+ },
988
+ {
989
+ "type": "object",
990
+ "properties": {
991
+ "type": {
992
+ "type": "string",
993
+ "const": "selectBox"
994
+ },
995
+ "attributes": {
996
+ "type": "object",
997
+ "properties": {
998
+ "label": {
999
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
1000
+ },
1001
+ "help": {
1002
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
1003
+ },
1004
+ "labelTranslationKey": {
1005
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
1006
+ },
1007
+ "multiple": {
1008
+ "type": "boolean",
1009
+ "const": false
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "multiple"
1014
+ ],
1015
+ "additionalProperties": false,
1016
+ "default": {
1017
+ "multiple": false
1018
+ }
1019
+ },
1020
+ "meta": {
1021
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
1022
+ },
1023
+ "options": {
1024
+ "type": "array",
1025
+ "items": {
1026
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/11/properties/options/items"
1027
+ },
1028
+ "default": [
1029
+ {}
1030
+ ]
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "type"
1035
+ ],
1036
+ "additionalProperties": false
1037
+ },
1038
+ {
1039
+ "type": "object",
1040
+ "properties": {
1041
+ "type": {
1042
+ "type": "string",
1043
+ "const": "textArea"
1044
+ },
1045
+ "attributes": {
1046
+ "type": "object",
1047
+ "properties": {
1048
+ "label": {
1049
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
1050
+ },
1051
+ "help": {
1052
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
1053
+ },
1054
+ "labelTranslationKey": {
1055
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
1056
+ },
1057
+ "cols": {
1058
+ "type": "number",
1059
+ "default": 20
1060
+ },
1061
+ "maxLength": {
1062
+ "type": "number"
1063
+ },
1064
+ "minLength": {
1065
+ "type": "number"
1066
+ },
1067
+ "rows": {
1068
+ "type": "number",
1069
+ "default": 2
1070
+ },
1071
+ "asRichText": {
1072
+ "type": "boolean",
1073
+ "default": true
1074
+ }
1075
+ },
1076
+ "additionalProperties": false,
1077
+ "default": {}
1078
+ },
1079
+ "meta": {
1080
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
1081
+ }
1082
+ },
1083
+ "required": [
1084
+ "type"
1085
+ ],
1086
+ "additionalProperties": false
1087
+ },
1088
+ {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "type": {
1092
+ "type": "string",
1093
+ "const": "text"
1094
+ },
1095
+ "attributes": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "label": {
1099
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/label"
1100
+ },
1101
+ "help": {
1102
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/help"
1103
+ },
1104
+ "labelTranslationKey": {
1105
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/attributes/properties/labelTranslationKey"
1106
+ },
1107
+ "maxLength": {
1108
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/maxLength"
1109
+ },
1110
+ "minLength": {
1111
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/minLength"
1112
+ },
1113
+ "pattern": {
1114
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/6/properties/attributes/properties/pattern"
1115
+ }
1116
+ },
1117
+ "additionalProperties": false,
1118
+ "default": {}
1119
+ },
1120
+ "meta": {
1121
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
1122
+ }
1123
+ },
1124
+ "required": [
1125
+ "type"
1126
+ ],
1127
+ "additionalProperties": false
1128
+ },
1129
+ {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "type": {
1133
+ "type": "string",
1134
+ "const": "url"
1135
+ },
1136
+ "attributes": {
1137
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/columns/items/properties/content/anyOf/15/properties/attributes",
1138
+ "default": {}
1139
+ },
1140
+ "meta": {
1141
+ "$ref": "#/definitions/ResearchOutputTableQuestion/properties/meta"
1142
+ }
1143
+ },
1144
+ "required": [
1145
+ "type"
1146
+ ],
1147
+ "additionalProperties": false
1148
+ }
1149
+ ],
1150
+ "default": {
1151
+ "type": "textArea"
1152
+ }
1153
+ },
1154
+ "meta": {
1155
+ "type": "object",
1156
+ "properties": {
1157
+ "schemaVersion": {
1158
+ "type": "string",
1159
+ "default": "1.0"
1160
+ },
1161
+ "labelTranslationKey": {
1162
+ "type": "string"
1163
+ }
1164
+ },
1165
+ "additionalProperties": false,
1166
+ "default": {}
1167
+ }
1168
+ },
1169
+ "additionalProperties": false
1170
+ },
1171
+ "default": [
1172
+ {}
1173
+ ]
1174
+ }
1175
+ },
1176
+ "required": [
1177
+ "type"
1178
+ ],
1179
+ "additionalProperties": false
1180
+ }
1181
+ },
1182
+ "$schema": "http://json-schema.org/draft-07/schema#"
1183
+ }