@dmptool/types 1.0.1 → 1.0.3

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 (52) hide show
  1. package/README.md +96 -29
  2. package/dist/answers/__tests__/answers.spec.js +65 -60
  3. package/dist/answers/answer.d.ts +15 -2
  4. package/dist/answers/answer.js +5 -2
  5. package/dist/answers/dateAnswers.d.ts +31 -4
  6. package/dist/answers/dateAnswers.js +3 -3
  7. package/dist/answers/graphQLAnswers.d.ts +32 -4
  8. package/dist/answers/graphQLAnswers.js +3 -3
  9. package/dist/answers/index.d.ts +524 -36
  10. package/dist/answers/index.js +17 -17
  11. package/dist/answers/optionBasedAnswers.d.ts +51 -9
  12. package/dist/answers/optionBasedAnswers.js +5 -5
  13. package/dist/answers/primitiveAnswers.d.ts +112 -14
  14. package/dist/answers/primitiveAnswers.js +8 -8
  15. package/dist/answers/tableAnswers.d.ts +525 -37
  16. package/dist/answers/tableAnswers.js +18 -18
  17. package/dist/questions/__tests__/dateQuestions.spec.js +6 -6
  18. package/dist/questions/__tests__/graphQLQuestions.spec.js +4 -4
  19. package/dist/questions/__tests__/optionBasedQuestions.spec.js +6 -6
  20. package/dist/questions/__tests__/primitiveQuestions.spec.js +14 -14
  21. package/dist/questions/dateQuestions.d.ts +4 -4
  22. package/dist/questions/dateQuestions.js +5 -5
  23. package/dist/questions/graphQLQuestions.d.ts +4 -4
  24. package/dist/questions/graphQLQuestions.js +3 -3
  25. package/dist/questions/index.d.ts +2 -2
  26. package/dist/questions/index.js +17 -17
  27. package/dist/questions/optionBasedQuestions.d.ts +6 -6
  28. package/dist/questions/optionBasedQuestions.js +11 -11
  29. package/dist/questions/primitiveQuestions.d.ts +14 -14
  30. package/dist/questions/primitiveQuestions.js +8 -8
  31. package/dist/questions/question.d.ts +2 -2
  32. package/dist/questions/question.js +2 -2
  33. package/dist/questions/tableQuestions.d.ts +4 -4
  34. package/dist/questions/tableQuestions.js +18 -18
  35. package/dist/schemas/anyAnswer.schema.json +89 -16
  36. package/dist/schemas/anyTableColumnAnswer.schema.json +84 -15
  37. package/dist/schemas/booleanAnswer.schema.json +15 -1
  38. package/dist/schemas/checkboxesAnswer.schema.json +15 -1
  39. package/dist/schemas/currencyAnswer.schema.json +15 -1
  40. package/dist/schemas/datePickerAnswer.schema.json +15 -1
  41. package/dist/schemas/dateRangeAnswer.schema.json +15 -1
  42. package/dist/schemas/emailAnswer.schema.json +15 -1
  43. package/dist/schemas/filteredSearchAnswer.schema.json +15 -1
  44. package/dist/schemas/numberAnswer.schema.json +15 -1
  45. package/dist/schemas/radioButtonsAnswer.schema.json +15 -1
  46. package/dist/schemas/selectBoxAnswer.schema.json +19 -2
  47. package/dist/schemas/tableAnswer.schema.json +89 -16
  48. package/dist/schemas/textAnswer.schema.json +15 -1
  49. package/dist/schemas/textAreaAnswer.schema.json +15 -1
  50. package/dist/schemas/typeaheadSearchAnswer.schema.json +15 -1
  51. package/dist/schemas/urlAnswer.schema.json +15 -1
  52. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.URLQuestion = exports.TextQuestion = exports.TextAreaQuestion = exports.EmailQuestion = exports.CurrencyQuestion = exports.NumberQuestion = exports.BooleanQuestion = void 0;
3
+ exports.URLQuestionSchema = exports.TextQuestionSchema = exports.TextAreaQuestionSchema = exports.EmailQuestionSchema = exports.CurrencyQuestionSchema = exports.NumberQuestionSchema = exports.BooleanQuestionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const question_1 = require("./question");
6
6
  // A Yes/No True/False question and answer
7
- exports.BooleanQuestion = question_1.Question.merge(zod_1.z.object({
7
+ exports.BooleanQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
8
8
  type: zod_1.z.literal('boolean'), // The type of question
9
9
  attributes: zod_1.z.object({
10
10
  checked: zod_1.z.boolean().optional() // If it is checked by default when rendered (default is false)
11
11
  })
12
12
  }));
13
13
  // A number question and answer
14
- exports.NumberQuestion = question_1.Question.merge(zod_1.z.object({
14
+ exports.NumberQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
15
15
  type: zod_1.z.literal('number'), // The type of question
16
16
  attributes: zod_1.z.object({
17
17
  max: zod_1.z.number().optional(), // The maximum value (no default)
@@ -20,14 +20,14 @@ exports.NumberQuestion = question_1.Question.merge(zod_1.z.object({
20
20
  })
21
21
  }));
22
22
  // Currency question and answer
23
- exports.CurrencyQuestion = exports.NumberQuestion.merge(zod_1.z.object({
23
+ exports.CurrencyQuestionSchema = exports.NumberQuestionSchema.merge(zod_1.z.object({
24
24
  type: zod_1.z.literal('currency'), // The type of question
25
25
  meta: zod_1.z.object({
26
26
  denomination: zod_1.z.string().optional() // The currency denomination (default is USD)
27
27
  })
28
28
  }));
29
29
  // Email question and answer
30
- exports.EmailQuestion = question_1.Question.merge(zod_1.z.object({
30
+ exports.EmailQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
31
31
  type: zod_1.z.literal('email'), // The type of question
32
32
  attributes: zod_1.z.object({
33
33
  maxLength: zod_1.z.number().optional(), // The maximum length of the email (no default)
@@ -37,7 +37,7 @@ exports.EmailQuestion = question_1.Question.merge(zod_1.z.object({
37
37
  })
38
38
  }));
39
39
  // Text area question and answer
40
- exports.TextAreaQuestion = question_1.Question.merge(zod_1.z.object({
40
+ exports.TextAreaQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
41
41
  type: zod_1.z.literal('textArea'), // The type of question
42
42
  attributes: zod_1.z.object({
43
43
  cols: zod_1.z.number().optional(), // The number of columns (default is 20)
@@ -50,7 +50,7 @@ exports.TextAreaQuestion = question_1.Question.merge(zod_1.z.object({
50
50
  })
51
51
  }));
52
52
  // Text question and answer
53
- exports.TextQuestion = question_1.Question.merge(zod_1.z.object({
53
+ exports.TextQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
54
54
  type: zod_1.z.literal('text'), // The type of question
55
55
  attributes: zod_1.z.object({
56
56
  maxLength: zod_1.z.number().optional(), // The maximum length of the text (no default)
@@ -59,7 +59,7 @@ exports.TextQuestion = question_1.Question.merge(zod_1.z.object({
59
59
  }),
60
60
  }));
61
61
  // URL question and answer
62
- exports.URLQuestion = question_1.Question.merge(zod_1.z.object({
62
+ exports.URLQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
63
63
  type: zod_1.z.literal('url'), // The type of question
64
64
  attributes: zod_1.z.object({
65
65
  maxLength: zod_1.z.number().optional(), // The maximum length of the URL (no default)
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const CURRENT_SCHEMA_VERSION = "1.0";
3
3
  export declare const QuestionTypesEnum: z.ZodEnum<["boolean", "checkBoxes", "currency", "datePicker", "dateRange", "email", "filteredSearch", "number", "option", "radioButtons", "selectBox", "table", "text", "textArea", "typeaheadSearch", "url"]>;
4
- export declare const Question: z.ZodObject<{
4
+ export declare const QuestionSchema: z.ZodObject<{
5
5
  type: z.ZodEnum<["boolean", "checkBoxes", "currency", "datePicker", "dateRange", "email", "filteredSearch", "number", "option", "radioButtons", "selectBox", "table", "text", "textArea", "typeaheadSearch", "url"]>;
6
6
  meta: z.ZodObject<{
7
7
  schemaVersion: z.ZodLiteral<"1.0">;
@@ -26,4 +26,4 @@ export declare const Question: z.ZodObject<{
26
26
  labelTranslationKey?: string | undefined;
27
27
  };
28
28
  }>;
29
- export type QuestionType = z.infer<typeof Question>;
29
+ export type QuestionType = z.infer<typeof QuestionSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Question = exports.QuestionTypesEnum = exports.CURRENT_SCHEMA_VERSION = void 0;
3
+ exports.QuestionSchema = exports.QuestionTypesEnum = exports.CURRENT_SCHEMA_VERSION = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CURRENT_SCHEMA_VERSION = '1.0'; // The current schema version
6
6
  // The type of question
@@ -23,7 +23,7 @@ exports.QuestionTypesEnum = zod_1.z.enum([
23
23
  'url'
24
24
  ]);
25
25
  // Base abstract type for all questions
26
- exports.Question = zod_1.z.object({
26
+ exports.QuestionSchema = zod_1.z.object({
27
27
  type: exports.QuestionTypesEnum, // The type of question
28
28
  meta: zod_1.z.object({
29
29
  schemaVersion: zod_1.z.literal(exports.CURRENT_SCHEMA_VERSION), // The schema version (default is CURRENT_SCHEMA_VERSION)
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const AnyTableColumnQuestion: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2
+ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
3
  meta: z.ZodObject<{
4
4
  schemaVersion: z.ZodLiteral<"1.0">;
5
5
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -1076,7 +1076,7 @@ export declare const AnyTableColumnQuestion: z.ZodDiscriminatedUnion<"type", [z.
1076
1076
  pattern?: string | undefined;
1077
1077
  };
1078
1078
  }>]>;
1079
- export declare const TableQuestion: z.ZodObject<{
1079
+ export declare const TableQuestionSchema: z.ZodObject<{
1080
1080
  meta: z.ZodObject<{
1081
1081
  schemaVersion: z.ZodLiteral<"1.0">;
1082
1082
  labelTranslationKey: z.ZodOptional<z.ZodString>;
@@ -2634,5 +2634,5 @@ export declare const TableQuestion: z.ZodObject<{
2634
2634
  };
2635
2635
  })[];
2636
2636
  }>;
2637
- export type TableQuestionType = z.infer<typeof TableQuestion>;
2638
- export type AnyTableColumnQuestionType = z.infer<typeof AnyTableColumnQuestion>;
2637
+ export type TableQuestionType = z.infer<typeof TableQuestionSchema>;
2638
+ export type AnyTableColumnQuestionType = z.infer<typeof AnyTableColumnQuestionSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TableQuestion = exports.AnyTableColumnQuestion = void 0;
3
+ exports.TableQuestionSchema = exports.AnyTableColumnQuestionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitiveQuestions_1 = require("./primitiveQuestions");
6
6
  const dateQuestions_1 = require("./dateQuestions");
@@ -8,26 +8,26 @@ const optionBasedQuestions_1 = require("./optionBasedQuestions");
8
8
  const graphQLQuestions_1 = require("./graphQLQuestions");
9
9
  const question_1 = require("./question");
10
10
  // Union types for all questions and answers (tables cannot be nested so no TableQuestion here!)
11
- exports.AnyTableColumnQuestion = zod_1.z.discriminatedUnion('type', [
12
- primitiveQuestions_1.BooleanQuestion,
13
- optionBasedQuestions_1.CheckboxesQuestion,
14
- primitiveQuestions_1.CurrencyQuestion,
15
- dateQuestions_1.DatePickerQuestion,
16
- dateQuestions_1.DateRangeQuestion,
17
- primitiveQuestions_1.EmailQuestion,
18
- graphQLQuestions_1.FilteredSearchQuestion,
19
- primitiveQuestions_1.NumberQuestion,
20
- optionBasedQuestions_1.RadioButtonsQuestion,
21
- optionBasedQuestions_1.SelectBoxQuestion,
22
- primitiveQuestions_1.TextAreaQuestion,
23
- primitiveQuestions_1.TextQuestion,
24
- graphQLQuestions_1.TypeaheadSearchQuestion,
25
- primitiveQuestions_1.URLQuestion
11
+ exports.AnyTableColumnQuestionSchema = zod_1.z.discriminatedUnion('type', [
12
+ primitiveQuestions_1.BooleanQuestionSchema,
13
+ optionBasedQuestions_1.CheckboxesQuestionSchema,
14
+ primitiveQuestions_1.CurrencyQuestionSchema,
15
+ dateQuestions_1.DatePickerQuestionSchema,
16
+ dateQuestions_1.DateRangeQuestionSchema,
17
+ primitiveQuestions_1.EmailQuestionSchema,
18
+ graphQLQuestions_1.FilteredSearchQuestionSchema,
19
+ primitiveQuestions_1.NumberQuestionSchema,
20
+ optionBasedQuestions_1.RadioButtonsQuestionSchema,
21
+ optionBasedQuestions_1.SelectBoxQuestionSchema,
22
+ primitiveQuestions_1.TextAreaQuestionSchema,
23
+ primitiveQuestions_1.TextQuestionSchema,
24
+ graphQLQuestions_1.TypeaheadSearchQuestionSchema,
25
+ primitiveQuestions_1.URLQuestionSchema
26
26
  ]);
27
27
  // Table question and answer
28
- exports.TableQuestion = question_1.Question.merge(zod_1.z.object({
28
+ exports.TableQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
29
29
  type: zod_1.z.literal('table'), // The type of question
30
- columns: zod_1.z.array(exports.AnyTableColumnQuestion), // The columns of the table (note: tables cannot be nested)
30
+ columns: zod_1.z.array(exports.AnyTableColumnQuestionSchema), // The columns of the table (note: tables cannot be nested)
31
31
  attributes: zod_1.z.object({
32
32
  canAddRows: zod_1.z.boolean().optional(), // Whether to allow adding rows (default is true)
33
33
  canRemoveRows: zod_1.z.boolean().optional(), // Whether to allow removing rows (default is true)
@@ -12,11 +12,25 @@
12
12
  },
13
13
  "answer": {
14
14
  "type": "boolean"
15
+ },
16
+ "meta": {
17
+ "type": "object",
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "type": "string",
21
+ "const": "1.0"
22
+ }
23
+ },
24
+ "required": [
25
+ "schemaVersion"
26
+ ],
27
+ "additionalProperties": false
15
28
  }
16
29
  },
17
30
  "required": [
18
31
  "type",
19
- "answer"
32
+ "answer",
33
+ "meta"
20
34
  ],
21
35
  "additionalProperties": false
22
36
  },
@@ -32,11 +46,15 @@
32
46
  "items": {
33
47
  "type": "string"
34
48
  }
49
+ },
50
+ "meta": {
51
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
35
52
  }
36
53
  },
37
54
  "required": [
38
55
  "type",
39
- "answer"
56
+ "answer",
57
+ "meta"
40
58
  ],
41
59
  "additionalProperties": false
42
60
  },
@@ -49,11 +67,15 @@
49
67
  },
50
68
  "answer": {
51
69
  "type": "number"
70
+ },
71
+ "meta": {
72
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
52
73
  }
53
74
  },
54
75
  "required": [
55
76
  "type",
56
- "answer"
77
+ "answer",
78
+ "meta"
57
79
  ],
58
80
  "additionalProperties": false
59
81
  },
@@ -66,11 +88,15 @@
66
88
  },
67
89
  "answer": {
68
90
  "type": "string"
91
+ },
92
+ "meta": {
93
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
69
94
  }
70
95
  },
71
96
  "required": [
72
97
  "type",
73
- "answer"
98
+ "answer",
99
+ "meta"
74
100
  ],
75
101
  "additionalProperties": false
76
102
  },
@@ -96,11 +122,15 @@
96
122
  "end"
97
123
  ],
98
124
  "additionalProperties": false
125
+ },
126
+ "meta": {
127
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
99
128
  }
100
129
  },
101
130
  "required": [
102
131
  "type",
103
- "answer"
132
+ "answer",
133
+ "meta"
104
134
  ],
105
135
  "additionalProperties": false
106
136
  },
@@ -113,11 +143,15 @@
113
143
  },
114
144
  "answer": {
115
145
  "type": "string"
146
+ },
147
+ "meta": {
148
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
116
149
  }
117
150
  },
118
151
  "required": [
119
152
  "type",
120
- "answer"
153
+ "answer",
154
+ "meta"
121
155
  ],
122
156
  "additionalProperties": false
123
157
  },
@@ -133,11 +167,15 @@
133
167
  "items": {
134
168
  "type": "string"
135
169
  }
170
+ },
171
+ "meta": {
172
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
136
173
  }
137
174
  },
138
175
  "required": [
139
176
  "type",
140
- "answer"
177
+ "answer",
178
+ "meta"
141
179
  ],
142
180
  "additionalProperties": false
143
181
  },
@@ -150,11 +188,15 @@
150
188
  },
151
189
  "answer": {
152
190
  "type": "number"
191
+ },
192
+ "meta": {
193
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
153
194
  }
154
195
  },
155
196
  "required": [
156
197
  "type",
157
- "answer"
198
+ "answer",
199
+ "meta"
158
200
  ],
159
201
  "additionalProperties": false
160
202
  },
@@ -167,11 +209,15 @@
167
209
  },
168
210
  "answer": {
169
211
  "type": "string"
212
+ },
213
+ "meta": {
214
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
170
215
  }
171
216
  },
172
217
  "required": [
173
218
  "type",
174
- "answer"
219
+ "answer",
220
+ "meta"
175
221
  ],
176
222
  "additionalProperties": false
177
223
  },
@@ -183,12 +229,19 @@
183
229
  "const": "selectBox"
184
230
  },
185
231
  "answer": {
186
- "type": "string"
232
+ "type": "array",
233
+ "items": {
234
+ "type": "string"
235
+ }
236
+ },
237
+ "meta": {
238
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
187
239
  }
188
240
  },
189
241
  "required": [
190
242
  "type",
191
- "answer"
243
+ "answer",
244
+ "meta"
192
245
  ],
193
246
  "additionalProperties": false
194
247
  },
@@ -242,11 +295,15 @@
242
295
  },
243
296
  "answer": {
244
297
  "type": "string"
298
+ },
299
+ "meta": {
300
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
245
301
  }
246
302
  },
247
303
  "required": [
248
304
  "type",
249
- "answer"
305
+ "answer",
306
+ "meta"
250
307
  ],
251
308
  "additionalProperties": false
252
309
  },
@@ -259,11 +316,15 @@
259
316
  },
260
317
  "answer": {
261
318
  "type": "string"
319
+ },
320
+ "meta": {
321
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
262
322
  }
263
323
  },
264
324
  "required": [
265
325
  "type",
266
- "answer"
326
+ "answer",
327
+ "meta"
267
328
  ],
268
329
  "additionalProperties": false
269
330
  },
@@ -276,11 +337,15 @@
276
337
  },
277
338
  "answer": {
278
339
  "type": "string"
340
+ },
341
+ "meta": {
342
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
279
343
  }
280
344
  },
281
345
  "required": [
282
346
  "type",
283
- "answer"
347
+ "answer",
348
+ "meta"
284
349
  ],
285
350
  "additionalProperties": false
286
351
  },
@@ -293,21 +358,29 @@
293
358
  },
294
359
  "answer": {
295
360
  "type": "string"
361
+ },
362
+ "meta": {
363
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
296
364
  }
297
365
  },
298
366
  "required": [
299
367
  "type",
300
- "answer"
368
+ "answer",
369
+ "meta"
301
370
  ],
302
371
  "additionalProperties": false
303
372
  }
304
373
  ]
305
374
  }
375
+ },
376
+ "meta": {
377
+ "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
306
378
  }
307
379
  },
308
380
  "required": [
309
381
  "type",
310
- "answer"
382
+ "answer",
383
+ "meta"
311
384
  ],
312
385
  "additionalProperties": false
313
386
  },
@@ -12,11 +12,25 @@
12
12
  },
13
13
  "answer": {
14
14
  "type": "boolean"
15
+ },
16
+ "meta": {
17
+ "type": "object",
18
+ "properties": {
19
+ "schemaVersion": {
20
+ "type": "string",
21
+ "const": "1.0"
22
+ }
23
+ },
24
+ "required": [
25
+ "schemaVersion"
26
+ ],
27
+ "additionalProperties": false
15
28
  }
16
29
  },
17
30
  "required": [
18
31
  "type",
19
- "answer"
32
+ "answer",
33
+ "meta"
20
34
  ],
21
35
  "additionalProperties": false
22
36
  },
@@ -32,11 +46,15 @@
32
46
  "items": {
33
47
  "type": "string"
34
48
  }
49
+ },
50
+ "meta": {
51
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
35
52
  }
36
53
  },
37
54
  "required": [
38
55
  "type",
39
- "answer"
56
+ "answer",
57
+ "meta"
40
58
  ],
41
59
  "additionalProperties": false
42
60
  },
@@ -49,11 +67,15 @@
49
67
  },
50
68
  "answer": {
51
69
  "type": "number"
70
+ },
71
+ "meta": {
72
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
52
73
  }
53
74
  },
54
75
  "required": [
55
76
  "type",
56
- "answer"
77
+ "answer",
78
+ "meta"
57
79
  ],
58
80
  "additionalProperties": false
59
81
  },
@@ -66,11 +88,15 @@
66
88
  },
67
89
  "answer": {
68
90
  "type": "string"
91
+ },
92
+ "meta": {
93
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
69
94
  }
70
95
  },
71
96
  "required": [
72
97
  "type",
73
- "answer"
98
+ "answer",
99
+ "meta"
74
100
  ],
75
101
  "additionalProperties": false
76
102
  },
@@ -96,11 +122,15 @@
96
122
  "end"
97
123
  ],
98
124
  "additionalProperties": false
125
+ },
126
+ "meta": {
127
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
99
128
  }
100
129
  },
101
130
  "required": [
102
131
  "type",
103
- "answer"
132
+ "answer",
133
+ "meta"
104
134
  ],
105
135
  "additionalProperties": false
106
136
  },
@@ -113,11 +143,15 @@
113
143
  },
114
144
  "answer": {
115
145
  "type": "string"
146
+ },
147
+ "meta": {
148
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
116
149
  }
117
150
  },
118
151
  "required": [
119
152
  "type",
120
- "answer"
153
+ "answer",
154
+ "meta"
121
155
  ],
122
156
  "additionalProperties": false
123
157
  },
@@ -133,11 +167,15 @@
133
167
  "items": {
134
168
  "type": "string"
135
169
  }
170
+ },
171
+ "meta": {
172
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
136
173
  }
137
174
  },
138
175
  "required": [
139
176
  "type",
140
- "answer"
177
+ "answer",
178
+ "meta"
141
179
  ],
142
180
  "additionalProperties": false
143
181
  },
@@ -150,11 +188,15 @@
150
188
  },
151
189
  "answer": {
152
190
  "type": "number"
191
+ },
192
+ "meta": {
193
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
153
194
  }
154
195
  },
155
196
  "required": [
156
197
  "type",
157
- "answer"
198
+ "answer",
199
+ "meta"
158
200
  ],
159
201
  "additionalProperties": false
160
202
  },
@@ -167,11 +209,15 @@
167
209
  },
168
210
  "answer": {
169
211
  "type": "string"
212
+ },
213
+ "meta": {
214
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
170
215
  }
171
216
  },
172
217
  "required": [
173
218
  "type",
174
- "answer"
219
+ "answer",
220
+ "meta"
175
221
  ],
176
222
  "additionalProperties": false
177
223
  },
@@ -183,12 +229,19 @@
183
229
  "const": "selectBox"
184
230
  },
185
231
  "answer": {
186
- "type": "string"
232
+ "type": "array",
233
+ "items": {
234
+ "type": "string"
235
+ }
236
+ },
237
+ "meta": {
238
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
187
239
  }
188
240
  },
189
241
  "required": [
190
242
  "type",
191
- "answer"
243
+ "answer",
244
+ "meta"
192
245
  ],
193
246
  "additionalProperties": false
194
247
  },
@@ -201,11 +254,15 @@
201
254
  },
202
255
  "answer": {
203
256
  "type": "string"
257
+ },
258
+ "meta": {
259
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
204
260
  }
205
261
  },
206
262
  "required": [
207
263
  "type",
208
- "answer"
264
+ "answer",
265
+ "meta"
209
266
  ],
210
267
  "additionalProperties": false
211
268
  },
@@ -218,11 +275,15 @@
218
275
  },
219
276
  "answer": {
220
277
  "type": "string"
278
+ },
279
+ "meta": {
280
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
221
281
  }
222
282
  },
223
283
  "required": [
224
284
  "type",
225
- "answer"
285
+ "answer",
286
+ "meta"
226
287
  ],
227
288
  "additionalProperties": false
228
289
  },
@@ -235,11 +296,15 @@
235
296
  },
236
297
  "answer": {
237
298
  "type": "string"
299
+ },
300
+ "meta": {
301
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
238
302
  }
239
303
  },
240
304
  "required": [
241
305
  "type",
242
- "answer"
306
+ "answer",
307
+ "meta"
243
308
  ],
244
309
  "additionalProperties": false
245
310
  },
@@ -252,11 +317,15 @@
252
317
  },
253
318
  "answer": {
254
319
  "type": "string"
320
+ },
321
+ "meta": {
322
+ "$ref": "#/definitions/AnyTableColumnAnswer/anyOf/0/properties/meta"
255
323
  }
256
324
  },
257
325
  "required": [
258
326
  "type",
259
- "answer"
327
+ "answer",
328
+ "meta"
260
329
  ],
261
330
  "additionalProperties": false
262
331
  }