@dmptool/types 2.1.0 → 2.2.1

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 (122) hide show
  1. package/README.md +70 -1
  2. package/dist/answers/__tests__/defaults.spec.js +80 -21
  3. package/dist/answers/answer.d.ts +2 -0
  4. package/dist/answers/answer.js +4 -2
  5. package/dist/answers/dateAnswers.d.ts +4 -0
  6. package/dist/answers/graphQLAnswers.d.ts +8 -0
  7. package/dist/answers/index.d.ts +37 -0
  8. package/dist/answers/numberAnswers.d.ts +8 -0
  9. package/dist/answers/optionBasedAnswers.d.ts +10 -0
  10. package/dist/answers/tableAnswers.d.ts +94 -0
  11. package/dist/answers/textAnswers.d.ts +8 -0
  12. package/dist/dmp/extension.d.ts +111 -0
  13. package/dist/dmp/index.js +48 -2
  14. package/dist/questions/__tests__/defaults.spec.js +12 -12
  15. package/dist/questions/__tests__/optionBasedQuestions.spec.js +25 -16
  16. package/dist/questions/dateQuestions.d.ts +4 -0
  17. package/dist/questions/dateQuestions.js +2 -2
  18. package/dist/questions/index.d.ts +38 -7
  19. package/dist/questions/numberQuestions.d.ts +8 -0
  20. package/dist/questions/numberQuestions.js +4 -4
  21. package/dist/questions/optionBasedQuestions.d.ts +18 -6
  22. package/dist/questions/optionBasedQuestions.js +23 -10
  23. package/dist/questions/tableQuestions.d.ts +94 -16
  24. package/dist/questions/tableQuestions.js +9 -9
  25. package/dist/questions/textQuestions.d.ts +4 -0
  26. package/dist/questions/textQuestions.js +2 -2
  27. package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
  28. package/dist/schemas/anyAnswer.schema.json +111 -0
  29. package/dist/schemas/anyQuestion.schema.json +114 -35
  30. package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
  31. package/dist/schemas/anyTableColumnQuestion.schema.json +42 -10
  32. package/dist/schemas/booleanAnswer.schema.json +3 -0
  33. package/dist/schemas/booleanQuestion.schema.json +3 -0
  34. package/dist/schemas/checkboxesAnswer.schema.json +3 -0
  35. package/dist/schemas/checkboxesQuestion.schema.json +6 -0
  36. package/dist/schemas/currencyAnswer.schema.json +3 -0
  37. package/dist/schemas/currencyQuestion.schema.json +3 -0
  38. package/dist/schemas/dateAnswer.schema.json +3 -0
  39. package/dist/schemas/dateQuestion.schema.json +3 -0
  40. package/dist/schemas/dateRangeAnswer.schema.json +3 -0
  41. package/dist/schemas/dateRangeQuestion.schema.json +3 -0
  42. package/dist/schemas/dmpExtension.schema.json +111 -0
  43. package/dist/schemas/emailAnswer.schema.json +3 -0
  44. package/dist/schemas/emailQuestion.schema.json +3 -0
  45. package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
  46. package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
  47. package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
  48. package/dist/schemas/multiselectBoxQuestion.schema.json +6 -5
  49. package/dist/schemas/numberAnswer.schema.json +3 -0
  50. package/dist/schemas/numberQuestion.schema.json +3 -0
  51. package/dist/schemas/numberRangeAnswer.schema.json +3 -0
  52. package/dist/schemas/numberRangeQuestion.schema.json +3 -0
  53. package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
  54. package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
  55. package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
  56. package/dist/schemas/radioButtonsQuestion.schema.json +6 -5
  57. package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
  58. package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
  59. package/dist/schemas/selectBoxAnswer.schema.json +3 -0
  60. package/dist/schemas/selectBoxQuestion.schema.json +6 -5
  61. package/dist/schemas/tableAnswer.schema.json +57 -0
  62. package/dist/schemas/tableQuestion.schema.json +42 -10
  63. package/dist/schemas/textAnswer.schema.json +3 -0
  64. package/dist/schemas/textAreaAnswer.schema.json +3 -0
  65. package/dist/schemas/urlAnswer.schema.json +3 -0
  66. package/dist/schemas/urlQuestion.schema.json +3 -0
  67. package/package.json +9 -4
  68. package/schemas/.placeholder +0 -0
  69. package/schemas/affiliationSearchAnswer.schema.json +50 -0
  70. package/schemas/affiliationSearchQuestion.schema.json +142 -0
  71. package/schemas/anyAnswer.schema.json +1537 -0
  72. package/schemas/anyQuestion.schema.json +4823 -0
  73. package/schemas/anyTableColumnAnswer.schema.json +741 -0
  74. package/schemas/anyTableColumnQuestion.schema.json +1559 -0
  75. package/schemas/booleanAnswer.schema.json +36 -0
  76. package/schemas/booleanQuestion.schema.json +55 -0
  77. package/schemas/checkboxesAnswer.schema.json +41 -0
  78. package/schemas/checkboxesQuestion.schema.json +83 -0
  79. package/schemas/currencyAnswer.schema.json +36 -0
  80. package/schemas/currencyQuestion.schema.json +73 -0
  81. package/schemas/dateAnswer.schema.json +36 -0
  82. package/schemas/datePickerAnswer.schema.json +37 -0
  83. package/schemas/datePickerQuestion.schema.json +52 -0
  84. package/schemas/dateQuestion.schema.json +66 -0
  85. package/schemas/dateRangeAnswer.schema.json +50 -0
  86. package/schemas/dateRangeQuestion.schema.json +124 -0
  87. package/schemas/dmp.schema.json +2070 -0
  88. package/schemas/dmpExtension.schema.json +1985 -0
  89. package/schemas/emailAnswer.schema.json +36 -0
  90. package/schemas/emailQuestion.schema.json +71 -0
  91. package/schemas/filteredSearchAnswer.schema.json +40 -0
  92. package/schemas/filteredSearchQuestion.schema.json +130 -0
  93. package/schemas/licenseSearchAnswer.schema.json +54 -0
  94. package/schemas/licenseSearchQuestion.schema.json +140 -0
  95. package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
  96. package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
  97. package/schemas/multiselectBoxAnswer.schema.json +41 -0
  98. package/schemas/multiselectBoxQuestion.schema.json +85 -0
  99. package/schemas/numberAnswer.schema.json +36 -0
  100. package/schemas/numberQuestion.schema.json +68 -0
  101. package/schemas/numberRangeAnswer.schema.json +50 -0
  102. package/schemas/numberRangeQuestion.schema.json +128 -0
  103. package/schemas/numberWithContextAnswer.schema.json +50 -0
  104. package/schemas/numberWithContextQuestion.schema.json +98 -0
  105. package/schemas/radioButtonsAnswer.schema.json +36 -0
  106. package/schemas/radioButtonsQuestion.schema.json +78 -0
  107. package/schemas/repositorySearchAnswer.schema.json +54 -0
  108. package/schemas/repositorySearchQuestion.schema.json +140 -0
  109. package/schemas/researchOutputTableAnswer.schema.json +20065 -0
  110. package/schemas/researchOutputTableQuestion.schema.json +140 -0
  111. package/schemas/selectBoxAnswer.schema.json +36 -0
  112. package/schemas/selectBoxQuestion.schema.json +85 -0
  113. package/schemas/tableAnswer.schema.json +797 -0
  114. package/schemas/tableQuestion.schema.json +1661 -0
  115. package/schemas/textAnswer.schema.json +36 -0
  116. package/schemas/textAreaAnswer.schema.json +36 -0
  117. package/schemas/textAreaQuestion.schema.json +78 -0
  118. package/schemas/textQuestion.schema.json +63 -0
  119. package/schemas/typeaheadSearchAnswer.schema.json +37 -0
  120. package/schemas/typeaheadSearchQuestion.schema.json +120 -0
  121. package/schemas/urlAnswer.schema.json +36 -0
  122. package/schemas/urlQuestion.schema.json +66 -0
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": "",
24
27
  "type": "string"
@@ -60,18 +60,19 @@
60
60
  "default": "a",
61
61
  "type": "string"
62
62
  },
63
- "selected": {
64
- "default": false,
65
- "type": "boolean"
63
+ "description": {
64
+ "type": "string"
66
65
  }
67
66
  },
68
67
  "required": [
69
68
  "label",
70
- "value",
71
- "selected"
69
+ "value"
72
70
  ],
73
71
  "additionalProperties": false
74
72
  }
73
+ },
74
+ "showCommentField": {
75
+ "type": "boolean"
75
76
  }
76
77
  },
77
78
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "columnHeadings": {
23
26
  "default": [
24
27
  "Column A"
@@ -57,6 +60,9 @@
57
60
  ],
58
61
  "additionalProperties": false
59
62
  },
63
+ "comment": {
64
+ "type": "string"
65
+ },
60
66
  "answer": {
61
67
  "type": "object",
62
68
  "properties": {
@@ -103,6 +109,9 @@
103
109
  ],
104
110
  "additionalProperties": false
105
111
  },
112
+ "comment": {
113
+ "type": "string"
114
+ },
106
115
  "answer": {
107
116
  "default": false,
108
117
  "type": "boolean"
@@ -135,6 +144,9 @@
135
144
  ],
136
145
  "additionalProperties": false
137
146
  },
147
+ "comment": {
148
+ "type": "string"
149
+ },
138
150
  "answer": {
139
151
  "default": [
140
152
  ""
@@ -172,6 +184,9 @@
172
184
  ],
173
185
  "additionalProperties": false
174
186
  },
187
+ "comment": {
188
+ "type": "string"
189
+ },
175
190
  "answer": {
176
191
  "default": 0,
177
192
  "type": "number"
@@ -204,6 +219,9 @@
204
219
  ],
205
220
  "additionalProperties": false
206
221
  },
222
+ "comment": {
223
+ "type": "string"
224
+ },
207
225
  "answer": {
208
226
  "default": "",
209
227
  "type": "string"
@@ -236,6 +254,9 @@
236
254
  ],
237
255
  "additionalProperties": false
238
256
  },
257
+ "comment": {
258
+ "type": "string"
259
+ },
239
260
  "answer": {
240
261
  "type": "object",
241
262
  "properties": {
@@ -282,6 +303,9 @@
282
303
  ],
283
304
  "additionalProperties": false
284
305
  },
306
+ "comment": {
307
+ "type": "string"
308
+ },
285
309
  "answer": {
286
310
  "default": "",
287
311
  "type": "string"
@@ -314,6 +338,9 @@
314
338
  ],
315
339
  "additionalProperties": false
316
340
  },
341
+ "comment": {
342
+ "type": "string"
343
+ },
317
344
  "answer": {
318
345
  "default": [],
319
346
  "type": "array",
@@ -364,6 +391,9 @@
364
391
  ],
365
392
  "additionalProperties": false
366
393
  },
394
+ "comment": {
395
+ "type": "string"
396
+ },
367
397
  "answer": {
368
398
  "default": [],
369
399
  "type": "array",
@@ -414,6 +444,9 @@
414
444
  ],
415
445
  "additionalProperties": false
416
446
  },
447
+ "comment": {
448
+ "type": "string"
449
+ },
417
450
  "answer": {
418
451
  "default": [
419
452
  ""
@@ -451,6 +484,9 @@
451
484
  ],
452
485
  "additionalProperties": false
453
486
  },
487
+ "comment": {
488
+ "type": "string"
489
+ },
454
490
  "answer": {
455
491
  "default": 0,
456
492
  "type": "number"
@@ -483,6 +519,9 @@
483
519
  ],
484
520
  "additionalProperties": false
485
521
  },
522
+ "comment": {
523
+ "type": "string"
524
+ },
486
525
  "answer": {
487
526
  "type": "object",
488
527
  "properties": {
@@ -529,6 +568,9 @@
529
568
  ],
530
569
  "additionalProperties": false
531
570
  },
571
+ "comment": {
572
+ "type": "string"
573
+ },
532
574
  "answer": {
533
575
  "default": "",
534
576
  "type": "string"
@@ -561,6 +603,9 @@
561
603
  ],
562
604
  "additionalProperties": false
563
605
  },
606
+ "comment": {
607
+ "type": "string"
608
+ },
564
609
  "answer": {
565
610
  "default": [],
566
611
  "type": "array",
@@ -611,6 +656,9 @@
611
656
  ],
612
657
  "additionalProperties": false
613
658
  },
659
+ "comment": {
660
+ "type": "string"
661
+ },
614
662
  "answer": {
615
663
  "default": "",
616
664
  "type": "string"
@@ -643,6 +691,9 @@
643
691
  ],
644
692
  "additionalProperties": false
645
693
  },
694
+ "comment": {
695
+ "type": "string"
696
+ },
646
697
  "answer": {
647
698
  "default": "",
648
699
  "type": "string"
@@ -675,6 +726,9 @@
675
726
  ],
676
727
  "additionalProperties": false
677
728
  },
729
+ "comment": {
730
+ "type": "string"
731
+ },
678
732
  "answer": {
679
733
  "default": "",
680
734
  "type": "string"
@@ -707,6 +761,9 @@
707
761
  ],
708
762
  "additionalProperties": false
709
763
  },
764
+ "comment": {
765
+ "type": "string"
766
+ },
710
767
  "answer": {
711
768
  "default": "",
712
769
  "type": "string"
@@ -268,6 +268,9 @@
268
268
  "schemaVersion"
269
269
  ],
270
270
  "additionalProperties": false
271
+ },
272
+ "showCommentField": {
273
+ "type": "boolean"
271
274
  }
272
275
  },
273
276
  "required": [
@@ -331,6 +334,9 @@
331
334
  "default": "a",
332
335
  "type": "string"
333
336
  },
337
+ "description": {
338
+ "type": "string"
339
+ },
334
340
  "checked": {
335
341
  "default": false,
336
342
  "type": "boolean"
@@ -343,6 +349,9 @@
343
349
  ],
344
350
  "additionalProperties": false
345
351
  }
352
+ },
353
+ "showCommentField": {
354
+ "type": "boolean"
346
355
  }
347
356
  },
348
357
  "required": [
@@ -413,6 +422,9 @@
413
422
  "schemaVersion"
414
423
  ],
415
424
  "additionalProperties": false
425
+ },
426
+ "showCommentField": {
427
+ "type": "boolean"
416
428
  }
417
429
  },
418
430
  "required": [
@@ -475,6 +487,9 @@
475
487
  "schemaVersion"
476
488
  ],
477
489
  "additionalProperties": false
490
+ },
491
+ "showCommentField": {
492
+ "type": "boolean"
478
493
  }
479
494
  },
480
495
  "required": [
@@ -594,6 +609,9 @@
594
609
  "end"
595
610
  ],
596
611
  "additionalProperties": false
612
+ },
613
+ "showCommentField": {
614
+ "type": "boolean"
597
615
  }
598
616
  },
599
617
  "required": [
@@ -662,6 +680,9 @@
662
680
  "schemaVersion"
663
681
  ],
664
682
  "additionalProperties": false
683
+ },
684
+ "showCommentField": {
685
+ "type": "boolean"
665
686
  }
666
687
  },
667
688
  "required": [
@@ -1005,6 +1026,9 @@
1005
1026
  "schemaVersion"
1006
1027
  ],
1007
1028
  "additionalProperties": false
1029
+ },
1030
+ "showCommentField": {
1031
+ "type": "boolean"
1008
1032
  }
1009
1033
  },
1010
1034
  "required": [
@@ -1099,6 +1123,9 @@
1099
1123
  "schemaVersion"
1100
1124
  ],
1101
1125
  "additionalProperties": false
1126
+ },
1127
+ "showCommentField": {
1128
+ "type": "boolean"
1102
1129
  }
1103
1130
  },
1104
1131
  "required": [
@@ -1162,18 +1189,19 @@
1162
1189
  "default": "a",
1163
1190
  "type": "string"
1164
1191
  },
1165
- "selected": {
1166
- "default": false,
1167
- "type": "boolean"
1192
+ "description": {
1193
+ "type": "string"
1168
1194
  }
1169
1195
  },
1170
1196
  "required": [
1171
1197
  "label",
1172
- "value",
1173
- "selected"
1198
+ "value"
1174
1199
  ],
1175
1200
  "additionalProperties": false
1176
1201
  }
1202
+ },
1203
+ "showCommentField": {
1204
+ "type": "boolean"
1177
1205
  }
1178
1206
  },
1179
1207
  "required": [
@@ -1384,18 +1412,19 @@
1384
1412
  "default": "a",
1385
1413
  "type": "string"
1386
1414
  },
1387
- "selected": {
1388
- "default": false,
1389
- "type": "boolean"
1415
+ "description": {
1416
+ "type": "string"
1390
1417
  }
1391
1418
  },
1392
1419
  "required": [
1393
1420
  "label",
1394
- "value",
1395
- "selected"
1421
+ "value"
1396
1422
  ],
1397
1423
  "additionalProperties": false
1398
1424
  }
1425
+ },
1426
+ "showCommentField": {
1427
+ "type": "boolean"
1399
1428
  }
1400
1429
  },
1401
1430
  "required": [
@@ -1598,6 +1627,9 @@
1598
1627
  "schemaVersion"
1599
1628
  ],
1600
1629
  "additionalProperties": false
1630
+ },
1631
+ "showCommentField": {
1632
+ "type": "boolean"
1601
1633
  }
1602
1634
  },
1603
1635
  "required": [
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": "",
24
27
  "type": "string"
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": "",
24
27
  "type": "string"
@@ -19,6 +19,9 @@
19
19
  ],
20
20
  "additionalProperties": false
21
21
  },
22
+ "comment": {
23
+ "type": "string"
24
+ },
22
25
  "answer": {
23
26
  "default": "",
24
27
  "type": "string"
@@ -52,6 +52,9 @@
52
52
  "schemaVersion"
53
53
  ],
54
54
  "additionalProperties": false
55
+ },
56
+ "showCommentField": {
57
+ "type": "boolean"
55
58
  }
56
59
  },
57
60
  "required": [
package/package.json CHANGED
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "@dmptool/types",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "description": "TypeScript types for DMPTool",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "MIT",
8
8
  "files": [
9
- "dist"
9
+ "dist",
10
+ "schemas"
10
11
  ],
11
12
  "exports": {
12
13
  ".": {
13
14
  "import": "./dist/index.js",
14
15
  "require": "./dist/index.js",
15
16
  "types": "./dist/index.d.ts"
17
+ },
18
+ "./schemas/*.json": {
19
+ "default": "./schemas/*.json"
16
20
  }
17
21
  },
18
22
  "publishConfig": {
@@ -26,12 +30,14 @@
26
30
  "lint": "eslint . --ignore-pattern dist/ --ignore-pattern node_modules/",
27
31
  "prepublishOnly": "npm run build",
28
32
  "test": "jest --config jest.config.ts",
29
- "prepare": "husky",
33
+ "prepare": "npm run build",
34
+ "postinstall": "husky || true",
30
35
  "type-check": "tsc --noEmit",
31
36
  "trivy-high": "./scripts/trivy-high.sh",
32
37
  "trivy-med": "./scripts/trivy-med.sh"
33
38
  },
34
39
  "dependencies": {
40
+ "json-schema-to-ts": "^3.1.1",
35
41
  "zod": "4.1.13"
36
42
  },
37
43
  "devDependencies": {
@@ -43,7 +49,6 @@
43
49
  "husky": "^9.1.7",
44
50
  "jest": "^29.7.0",
45
51
  "jest-expect-message": "^1.1.3",
46
- "json-schema-to-ts": "^3.1.1",
47
52
  "jsonschema": "^1.5.0",
48
53
  "ts-jest": "^29.3.3",
49
54
  "ts-node": "^10.9.2",
File without changes
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "affiliationSearch"
8
+ },
9
+ "meta": {
10
+ "type": "object",
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "default": "1.0",
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": [
18
+ "schemaVersion"
19
+ ],
20
+ "additionalProperties": false
21
+ },
22
+ "comment": {
23
+ "type": "string"
24
+ },
25
+ "answer": {
26
+ "type": "object",
27
+ "properties": {
28
+ "affiliationId": {
29
+ "default": "",
30
+ "type": "string"
31
+ },
32
+ "affiliationName": {
33
+ "default": "",
34
+ "type": "string"
35
+ }
36
+ },
37
+ "required": [
38
+ "affiliationId",
39
+ "affiliationName"
40
+ ],
41
+ "additionalProperties": false
42
+ }
43
+ },
44
+ "required": [
45
+ "type",
46
+ "meta",
47
+ "answer"
48
+ ],
49
+ "additionalProperties": false
50
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "type": {
6
+ "type": "string",
7
+ "const": "affiliationSearch"
8
+ },
9
+ "attributes": {
10
+ "type": "object",
11
+ "properties": {
12
+ "label": {
13
+ "type": "string"
14
+ },
15
+ "help": {
16
+ "type": "string"
17
+ },
18
+ "labelTranslationKey": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "additionalProperties": false
23
+ },
24
+ "meta": {
25
+ "type": "object",
26
+ "properties": {
27
+ "schemaVersion": {
28
+ "default": "1.0",
29
+ "type": "string"
30
+ },
31
+ "title": {
32
+ "type": "string"
33
+ },
34
+ "usageDescription": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ "required": [
39
+ "schemaVersion"
40
+ ],
41
+ "additionalProperties": false
42
+ },
43
+ "graphQL": {
44
+ "type": "object",
45
+ "properties": {
46
+ "displayFields": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "object",
50
+ "properties": {
51
+ "propertyName": {
52
+ "default": "id",
53
+ "type": "string"
54
+ },
55
+ "label": {
56
+ "default": "Id",
57
+ "type": "string"
58
+ },
59
+ "labelTranslationKey": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": [
64
+ "propertyName",
65
+ "label"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "localQueryId": {
71
+ "type": "string"
72
+ },
73
+ "query": {
74
+ "type": "string",
75
+ "const": "query Affiliations($name: String!){ affiliations(name: $name) { totalCount nextCursor items { id displayName uri } } }"
76
+ },
77
+ "responseField": {
78
+ "default": "affiliations.items",
79
+ "type": "string",
80
+ "const": "affiliations.items"
81
+ },
82
+ "variables": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "object",
86
+ "properties": {
87
+ "minLength": {
88
+ "type": "number"
89
+ },
90
+ "label": {
91
+ "type": "string"
92
+ },
93
+ "labelTranslationKey": {
94
+ "type": "string"
95
+ },
96
+ "name": {
97
+ "default": "search",
98
+ "type": "string"
99
+ },
100
+ "type": {
101
+ "default": "string",
102
+ "type": "string"
103
+ },
104
+ "defaultValue": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "required": [
109
+ "name",
110
+ "type"
111
+ ],
112
+ "additionalProperties": false
113
+ }
114
+ },
115
+ "queryId": {
116
+ "default": "useAffiliationsQuery",
117
+ "type": "string"
118
+ },
119
+ "answerField": {
120
+ "default": "uri",
121
+ "type": "string",
122
+ "const": "uri"
123
+ }
124
+ },
125
+ "required": [
126
+ "displayFields",
127
+ "query",
128
+ "responseField",
129
+ "variables",
130
+ "answerField"
131
+ ],
132
+ "additionalProperties": false
133
+ }
134
+ },
135
+ "required": [
136
+ "type",
137
+ "attributes",
138
+ "meta",
139
+ "graphQL"
140
+ ],
141
+ "additionalProperties": false
142
+ }