@dmptool/types 1.2.6 → 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 +689 -7440
  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 +1977 -9646
  38. package/dist/questions/tableQuestions.js +184 -192
  39. package/dist/questions/textQuestions.d.ts +70 -226
  40. package/dist/questions/textQuestions.js +31 -31
  41. package/package.json +4 -5
  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 -2455
  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,1092 +0,0 @@
1
- {
2
- "$ref": "#/definitions/AnyTableColumnQuestion",
3
- "definitions": {
4
- "AnyTableColumnQuestion": {
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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
152
- },
153
- "help": {
154
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
155
- },
156
- "labelTranslationKey": {
157
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes",
185
- "default": {}
186
- },
187
- "meta": {
188
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
232
- },
233
- "help": {
234
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
235
- },
236
- "labelTranslationKey": {
237
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
279
- },
280
- "help": {
281
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
282
- },
283
- "labelTranslationKey": {
284
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes",
318
- "default": {}
319
- },
320
- "meta": {
321
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
335
- },
336
- "labelTranslationKey": {
337
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
338
- },
339
- "max": {
340
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/max"
341
- },
342
- "min": {
343
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/min"
344
- },
345
- "step": {
346
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
361
- },
362
- "labelTranslationKey": {
363
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
364
- },
365
- "max": {
366
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/max"
367
- },
368
- "min": {
369
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/4/properties/attributes/properties/min"
370
- },
371
- "step": {
372
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
400
- },
401
- "help": {
402
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
403
- },
404
- "labelTranslationKey": {
405
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes",
443
- "default": {}
444
- },
445
- "meta": {
446
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/anyOf/0/properties/attributes",
575
- "default": {}
576
- },
577
- "meta": {
578
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
579
- },
580
- "graphQL": {
581
- "type": "object",
582
- "properties": {
583
- "displayFields": {
584
- "type": "array",
585
- "items": {
586
- "$ref": "#/definitions/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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/AnyTableColumnQuestion/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": "number"
677
- },
678
- "attributes": {
679
- "type": "object",
680
- "properties": {
681
- "label": {
682
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
683
- },
684
- "help": {
685
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
686
- },
687
- "labelTranslationKey": {
688
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
689
- },
690
- "max": {
691
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/max"
692
- },
693
- "min": {
694
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/min"
695
- },
696
- "step": {
697
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/step"
698
- }
699
- },
700
- "additionalProperties": false,
701
- "default": {}
702
- },
703
- "meta": {
704
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
705
- }
706
- },
707
- "required": [
708
- "type"
709
- ],
710
- "additionalProperties": false
711
- },
712
- {
713
- "type": "object",
714
- "properties": {
715
- "type": {
716
- "type": "string",
717
- "const": "numberWithContext"
718
- },
719
- "attributes": {
720
- "type": "object",
721
- "properties": {
722
- "label": {
723
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
724
- },
725
- "help": {
726
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
727
- },
728
- "labelTranslationKey": {
729
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
730
- },
731
- "max": {
732
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/max"
733
- },
734
- "min": {
735
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/min"
736
- },
737
- "step": {
738
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/3/properties/attributes/properties/step"
739
- },
740
- "context": {
741
- "type": "array",
742
- "items": {
743
- "type": "object",
744
- "properties": {
745
- "label": {
746
- "type": "string",
747
- "default": ""
748
- },
749
- "labelTranslationKey": {
750
- "type": "string"
751
- },
752
- "value": {
753
- "type": "string",
754
- "default": ""
755
- }
756
- },
757
- "additionalProperties": false
758
- },
759
- "default": []
760
- }
761
- },
762
- "additionalProperties": false,
763
- "default": {}
764
- },
765
- "meta": {
766
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
767
- }
768
- },
769
- "required": [
770
- "type"
771
- ],
772
- "additionalProperties": false
773
- },
774
- {
775
- "type": "object",
776
- "properties": {
777
- "type": {
778
- "type": "string",
779
- "const": "radioButtons"
780
- },
781
- "attributes": {
782
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes",
783
- "default": {}
784
- },
785
- "meta": {
786
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
787
- },
788
- "options": {
789
- "type": "array",
790
- "items": {
791
- "type": "object",
792
- "properties": {
793
- "label": {
794
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/options/items/properties/label"
795
- },
796
- "value": {
797
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/2/properties/options/items/properties/value"
798
- },
799
- "selected": {
800
- "type": "boolean",
801
- "default": false
802
- }
803
- },
804
- "additionalProperties": false
805
- },
806
- "default": [
807
- {}
808
- ]
809
- }
810
- },
811
- "required": [
812
- "type"
813
- ],
814
- "additionalProperties": false
815
- },
816
- {
817
- "type": "object",
818
- "properties": {
819
- "type": {
820
- "type": "string",
821
- "const": "repositorySearch"
822
- },
823
- "attributes": {
824
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes",
825
- "default": {}
826
- },
827
- "meta": {
828
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
829
- },
830
- "graphQL": {
831
- "type": "object",
832
- "properties": {
833
- "displayFields": {
834
- "type": "array",
835
- "items": {
836
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/7/properties/graphQL/properties/displayFields/items"
837
- },
838
- "default": [
839
- {
840
- "propertyName": "name",
841
- "label": "Name"
842
- },
843
- {
844
- "propertyName": "description",
845
- "label": "Description"
846
- },
847
- {
848
- "propertyName": "website",
849
- "label": "Website"
850
- },
851
- {
852
- "propertyName": "keywords",
853
- "label": "Subject Areas"
854
- }
855
- ]
856
- },
857
- "localQueryId": {
858
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/graphQL/properties/localQueryId"
859
- },
860
- "query": {
861
- "type": "string",
862
- "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 } } }",
863
- "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 } } }"
864
- },
865
- "responseField": {
866
- "type": "string",
867
- "const": "repositories.items",
868
- "default": "repositories.items"
869
- },
870
- "variables": {
871
- "type": "array",
872
- "items": {
873
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/7/properties/graphQL/properties/variables/items"
874
- },
875
- "default": [
876
- {
877
- "minLength": 3,
878
- "label": "Search for a repository",
879
- "name": "term",
880
- "type": "string"
881
- },
882
- {
883
- "minLength": 3,
884
- "label": "Subject Areas",
885
- "name": "keywords",
886
- "type": "string"
887
- },
888
- {
889
- "minLength": 3,
890
- "label": "Repository type",
891
- "name": "repositoryType",
892
- "type": "string"
893
- },
894
- {
895
- "label": "Pagination Options",
896
- "name": "paginationOptions",
897
- "type": "paginationOptions",
898
- "options": {
899
- "type": "OFFSET",
900
- "limit": 10,
901
- "offset": 0,
902
- "sortField": "name",
903
- "sortOrder": "ASC"
904
- }
905
- }
906
- ]
907
- },
908
- "queryId": {
909
- "type": "string",
910
- "default": "useRepositoriesQuery"
911
- },
912
- "answerField": {
913
- "type": "string",
914
- "const": "uri",
915
- "default": "uri"
916
- }
917
- },
918
- "additionalProperties": false,
919
- "default": {}
920
- }
921
- },
922
- "required": [
923
- "type"
924
- ],
925
- "additionalProperties": false
926
- },
927
- {
928
- "type": "object",
929
- "properties": {
930
- "type": {
931
- "type": "string",
932
- "const": "selectBox"
933
- },
934
- "attributes": {
935
- "type": "object",
936
- "properties": {
937
- "label": {
938
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
939
- },
940
- "help": {
941
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
942
- },
943
- "labelTranslationKey": {
944
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
945
- },
946
- "multiple": {
947
- "type": "boolean",
948
- "const": false
949
- }
950
- },
951
- "required": [
952
- "multiple"
953
- ],
954
- "additionalProperties": false,
955
- "default": {
956
- "multiple": false
957
- }
958
- },
959
- "meta": {
960
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
961
- },
962
- "options": {
963
- "type": "array",
964
- "items": {
965
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/11/properties/options/items"
966
- },
967
- "default": [
968
- {}
969
- ]
970
- }
971
- },
972
- "required": [
973
- "type"
974
- ],
975
- "additionalProperties": false
976
- },
977
- {
978
- "type": "object",
979
- "properties": {
980
- "type": {
981
- "type": "string",
982
- "const": "textArea"
983
- },
984
- "attributes": {
985
- "type": "object",
986
- "properties": {
987
- "label": {
988
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
989
- },
990
- "help": {
991
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
992
- },
993
- "labelTranslationKey": {
994
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
995
- },
996
- "cols": {
997
- "type": "number",
998
- "default": 20
999
- },
1000
- "maxLength": {
1001
- "type": "number"
1002
- },
1003
- "minLength": {
1004
- "type": "number"
1005
- },
1006
- "rows": {
1007
- "type": "number",
1008
- "default": 2
1009
- },
1010
- "asRichText": {
1011
- "type": "boolean",
1012
- "default": true
1013
- }
1014
- },
1015
- "additionalProperties": false,
1016
- "default": {}
1017
- },
1018
- "meta": {
1019
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
1020
- }
1021
- },
1022
- "required": [
1023
- "type"
1024
- ],
1025
- "additionalProperties": false
1026
- },
1027
- {
1028
- "type": "object",
1029
- "properties": {
1030
- "type": {
1031
- "type": "string",
1032
- "const": "text"
1033
- },
1034
- "attributes": {
1035
- "type": "object",
1036
- "properties": {
1037
- "label": {
1038
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/label"
1039
- },
1040
- "help": {
1041
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/help"
1042
- },
1043
- "labelTranslationKey": {
1044
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/attributes/properties/labelTranslationKey"
1045
- },
1046
- "maxLength": {
1047
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/maxLength"
1048
- },
1049
- "minLength": {
1050
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/minLength"
1051
- },
1052
- "pattern": {
1053
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/6/properties/attributes/properties/pattern"
1054
- }
1055
- },
1056
- "additionalProperties": false,
1057
- "default": {}
1058
- },
1059
- "meta": {
1060
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
1061
- }
1062
- },
1063
- "required": [
1064
- "type"
1065
- ],
1066
- "additionalProperties": false
1067
- },
1068
- {
1069
- "type": "object",
1070
- "properties": {
1071
- "type": {
1072
- "type": "string",
1073
- "const": "url"
1074
- },
1075
- "attributes": {
1076
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/15/properties/attributes",
1077
- "default": {}
1078
- },
1079
- "meta": {
1080
- "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta"
1081
- }
1082
- },
1083
- "required": [
1084
- "type"
1085
- ],
1086
- "additionalProperties": false
1087
- }
1088
- ]
1089
- }
1090
- },
1091
- "$schema": "http://json-schema.org/draft-07/schema#"
1092
- }