@dmptool/types 2.1.0 → 2.2.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.
- package/README.md +70 -1
- package/dist/answers/__tests__/defaults.spec.js +80 -21
- package/dist/answers/answer.d.ts +2 -0
- package/dist/answers/answer.js +4 -2
- package/dist/answers/dateAnswers.d.ts +4 -0
- package/dist/answers/graphQLAnswers.d.ts +8 -0
- package/dist/answers/index.d.ts +37 -0
- package/dist/answers/numberAnswers.d.ts +8 -0
- package/dist/answers/optionBasedAnswers.d.ts +10 -0
- package/dist/answers/tableAnswers.d.ts +94 -0
- package/dist/answers/textAnswers.d.ts +8 -0
- package/dist/dmp/extension.d.ts +111 -0
- package/dist/dmp/index.js +48 -2
- package/dist/questions/__tests__/defaults.spec.js +2 -2
- package/dist/questions/__tests__/optionBasedQuestions.spec.js +8 -4
- package/dist/questions/dateQuestions.d.ts +4 -0
- package/dist/questions/dateQuestions.js +2 -2
- package/dist/questions/index.d.ts +28 -0
- package/dist/questions/numberQuestions.d.ts +8 -0
- package/dist/questions/numberQuestions.js +4 -4
- package/dist/questions/optionBasedQuestions.d.ts +10 -0
- package/dist/questions/optionBasedQuestions.js +5 -5
- package/dist/questions/tableQuestions.d.ts +70 -0
- package/dist/questions/textQuestions.d.ts +4 -0
- package/dist/questions/textQuestions.js +2 -2
- package/dist/schemas/affiliationSearchAnswer.schema.json +3 -0
- package/dist/schemas/anyAnswer.schema.json +111 -0
- package/dist/schemas/anyQuestion.schema.json +84 -0
- package/dist/schemas/anyTableColumnAnswer.schema.json +54 -0
- package/dist/schemas/anyTableColumnQuestion.schema.json +33 -0
- package/dist/schemas/booleanAnswer.schema.json +3 -0
- package/dist/schemas/booleanQuestion.schema.json +3 -0
- package/dist/schemas/checkboxesAnswer.schema.json +3 -0
- package/dist/schemas/checkboxesQuestion.schema.json +3 -0
- package/dist/schemas/currencyAnswer.schema.json +3 -0
- package/dist/schemas/currencyQuestion.schema.json +3 -0
- package/dist/schemas/dateAnswer.schema.json +3 -0
- package/dist/schemas/dateQuestion.schema.json +3 -0
- package/dist/schemas/dateRangeAnswer.schema.json +3 -0
- package/dist/schemas/dateRangeQuestion.schema.json +3 -0
- package/dist/schemas/dmpExtension.schema.json +111 -0
- package/dist/schemas/emailAnswer.schema.json +3 -0
- package/dist/schemas/emailQuestion.schema.json +3 -0
- package/dist/schemas/licenseSearchAnswer.schema.json +3 -0
- package/dist/schemas/metadataStandardSearchAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxAnswer.schema.json +3 -0
- package/dist/schemas/multiselectBoxQuestion.schema.json +3 -0
- package/dist/schemas/numberAnswer.schema.json +3 -0
- package/dist/schemas/numberQuestion.schema.json +3 -0
- package/dist/schemas/numberRangeAnswer.schema.json +3 -0
- package/dist/schemas/numberRangeQuestion.schema.json +3 -0
- package/dist/schemas/numberWithContextAnswer.schema.json +3 -0
- package/dist/schemas/numberWithContextQuestion.schema.json +3 -0
- package/dist/schemas/radioButtonsAnswer.schema.json +3 -0
- package/dist/schemas/radioButtonsQuestion.schema.json +3 -0
- package/dist/schemas/repositorySearchAnswer.schema.json +3 -0
- package/dist/schemas/researchOutputTableAnswer.schema.json +3344 -9
- package/dist/schemas/selectBoxAnswer.schema.json +3 -0
- package/dist/schemas/selectBoxQuestion.schema.json +3 -0
- package/dist/schemas/tableAnswer.schema.json +57 -0
- package/dist/schemas/tableQuestion.schema.json +33 -0
- package/dist/schemas/textAnswer.schema.json +3 -0
- package/dist/schemas/textAreaAnswer.schema.json +3 -0
- package/dist/schemas/urlAnswer.schema.json +3 -0
- package/dist/schemas/urlQuestion.schema.json +3 -0
- package/package.json +9 -4
- package/schemas/.placeholder +0 -0
- package/schemas/affiliationSearchAnswer.schema.json +50 -0
- package/schemas/affiliationSearchQuestion.schema.json +142 -0
- package/schemas/anyAnswer.schema.json +1537 -0
- package/schemas/anyQuestion.schema.json +4828 -0
- package/schemas/anyTableColumnAnswer.schema.json +741 -0
- package/schemas/anyTableColumnQuestion.schema.json +1560 -0
- package/schemas/booleanAnswer.schema.json +36 -0
- package/schemas/booleanQuestion.schema.json +55 -0
- package/schemas/checkboxesAnswer.schema.json +41 -0
- package/schemas/checkboxesQuestion.schema.json +80 -0
- package/schemas/currencyAnswer.schema.json +36 -0
- package/schemas/currencyQuestion.schema.json +73 -0
- package/schemas/dateAnswer.schema.json +36 -0
- package/schemas/datePickerAnswer.schema.json +37 -0
- package/schemas/datePickerQuestion.schema.json +52 -0
- package/schemas/dateQuestion.schema.json +66 -0
- package/schemas/dateRangeAnswer.schema.json +50 -0
- package/schemas/dateRangeQuestion.schema.json +124 -0
- package/schemas/dmp.schema.json +2070 -0
- package/schemas/dmpExtension.schema.json +1985 -0
- package/schemas/emailAnswer.schema.json +36 -0
- package/schemas/emailQuestion.schema.json +71 -0
- package/schemas/filteredSearchAnswer.schema.json +40 -0
- package/schemas/filteredSearchQuestion.schema.json +130 -0
- package/schemas/licenseSearchAnswer.schema.json +54 -0
- package/schemas/licenseSearchQuestion.schema.json +140 -0
- package/schemas/metadataStandardSearchAnswer.schema.json +54 -0
- package/schemas/metadataStandardSearchQuestion.schema.json +141 -0
- package/schemas/multiselectBoxAnswer.schema.json +41 -0
- package/schemas/multiselectBoxQuestion.schema.json +87 -0
- package/schemas/numberAnswer.schema.json +36 -0
- package/schemas/numberQuestion.schema.json +68 -0
- package/schemas/numberRangeAnswer.schema.json +50 -0
- package/schemas/numberRangeQuestion.schema.json +128 -0
- package/schemas/numberWithContextAnswer.schema.json +50 -0
- package/schemas/numberWithContextQuestion.schema.json +98 -0
- package/schemas/radioButtonsAnswer.schema.json +36 -0
- package/schemas/radioButtonsQuestion.schema.json +80 -0
- package/schemas/repositorySearchAnswer.schema.json +54 -0
- package/schemas/repositorySearchQuestion.schema.json +140 -0
- package/schemas/researchOutputTableAnswer.schema.json +20065 -0
- package/schemas/researchOutputTableQuestion.schema.json +140 -0
- package/schemas/selectBoxAnswer.schema.json +36 -0
- package/schemas/selectBoxQuestion.schema.json +87 -0
- package/schemas/tableAnswer.schema.json +797 -0
- package/schemas/tableQuestion.schema.json +1662 -0
- package/schemas/textAnswer.schema.json +36 -0
- package/schemas/textAreaAnswer.schema.json +36 -0
- package/schemas/textAreaQuestion.schema.json +78 -0
- package/schemas/textQuestion.schema.json +63 -0
- package/schemas/typeaheadSearchAnswer.schema.json +37 -0
- package/schemas/typeaheadSearchQuestion.schema.json +120 -0
- package/schemas/urlAnswer.schema.json +36 -0
- 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
|
"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": [
|
|
@@ -343,6 +346,9 @@
|
|
|
343
346
|
],
|
|
344
347
|
"additionalProperties": false
|
|
345
348
|
}
|
|
349
|
+
},
|
|
350
|
+
"showCommentField": {
|
|
351
|
+
"type": "boolean"
|
|
346
352
|
}
|
|
347
353
|
},
|
|
348
354
|
"required": [
|
|
@@ -413,6 +419,9 @@
|
|
|
413
419
|
"schemaVersion"
|
|
414
420
|
],
|
|
415
421
|
"additionalProperties": false
|
|
422
|
+
},
|
|
423
|
+
"showCommentField": {
|
|
424
|
+
"type": "boolean"
|
|
416
425
|
}
|
|
417
426
|
},
|
|
418
427
|
"required": [
|
|
@@ -475,6 +484,9 @@
|
|
|
475
484
|
"schemaVersion"
|
|
476
485
|
],
|
|
477
486
|
"additionalProperties": false
|
|
487
|
+
},
|
|
488
|
+
"showCommentField": {
|
|
489
|
+
"type": "boolean"
|
|
478
490
|
}
|
|
479
491
|
},
|
|
480
492
|
"required": [
|
|
@@ -594,6 +606,9 @@
|
|
|
594
606
|
"end"
|
|
595
607
|
],
|
|
596
608
|
"additionalProperties": false
|
|
609
|
+
},
|
|
610
|
+
"showCommentField": {
|
|
611
|
+
"type": "boolean"
|
|
597
612
|
}
|
|
598
613
|
},
|
|
599
614
|
"required": [
|
|
@@ -662,6 +677,9 @@
|
|
|
662
677
|
"schemaVersion"
|
|
663
678
|
],
|
|
664
679
|
"additionalProperties": false
|
|
680
|
+
},
|
|
681
|
+
"showCommentField": {
|
|
682
|
+
"type": "boolean"
|
|
665
683
|
}
|
|
666
684
|
},
|
|
667
685
|
"required": [
|
|
@@ -1005,6 +1023,9 @@
|
|
|
1005
1023
|
"schemaVersion"
|
|
1006
1024
|
],
|
|
1007
1025
|
"additionalProperties": false
|
|
1026
|
+
},
|
|
1027
|
+
"showCommentField": {
|
|
1028
|
+
"type": "boolean"
|
|
1008
1029
|
}
|
|
1009
1030
|
},
|
|
1010
1031
|
"required": [
|
|
@@ -1099,6 +1120,9 @@
|
|
|
1099
1120
|
"schemaVersion"
|
|
1100
1121
|
],
|
|
1101
1122
|
"additionalProperties": false
|
|
1123
|
+
},
|
|
1124
|
+
"showCommentField": {
|
|
1125
|
+
"type": "boolean"
|
|
1102
1126
|
}
|
|
1103
1127
|
},
|
|
1104
1128
|
"required": [
|
|
@@ -1174,6 +1198,9 @@
|
|
|
1174
1198
|
],
|
|
1175
1199
|
"additionalProperties": false
|
|
1176
1200
|
}
|
|
1201
|
+
},
|
|
1202
|
+
"showCommentField": {
|
|
1203
|
+
"type": "boolean"
|
|
1177
1204
|
}
|
|
1178
1205
|
},
|
|
1179
1206
|
"required": [
|
|
@@ -1396,6 +1423,9 @@
|
|
|
1396
1423
|
],
|
|
1397
1424
|
"additionalProperties": false
|
|
1398
1425
|
}
|
|
1426
|
+
},
|
|
1427
|
+
"showCommentField": {
|
|
1428
|
+
"type": "boolean"
|
|
1399
1429
|
}
|
|
1400
1430
|
},
|
|
1401
1431
|
"required": [
|
|
@@ -1598,6 +1628,9 @@
|
|
|
1598
1628
|
"schemaVersion"
|
|
1599
1629
|
],
|
|
1600
1630
|
"additionalProperties": false
|
|
1631
|
+
},
|
|
1632
|
+
"showCommentField": {
|
|
1633
|
+
"type": "boolean"
|
|
1601
1634
|
}
|
|
1602
1635
|
},
|
|
1603
1636
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmptool/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
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": "
|
|
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
|
+
}
|