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