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