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