@dmptool/types 1.0.5 → 1.0.6

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.
@@ -133,15 +133,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
133
133
  } & {
134
134
  type: z.ZodLiteral<"currency">;
135
135
  meta: z.ZodObject<{
136
+ schemaVersion: z.ZodLiteral<"1.0">;
137
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
138
+ } & {
136
139
  denomination: z.ZodOptional<z.ZodString>;
137
140
  }, "strip", z.ZodTypeAny, {
141
+ schemaVersion: "1.0";
142
+ labelTranslationKey?: string | undefined;
138
143
  denomination?: string | undefined;
139
144
  }, {
145
+ schemaVersion: "1.0";
146
+ labelTranslationKey?: string | undefined;
140
147
  denomination?: string | undefined;
141
148
  }>;
142
149
  }, "strip", z.ZodTypeAny, {
143
150
  type: "currency";
144
151
  meta: {
152
+ schemaVersion: "1.0";
153
+ labelTranslationKey?: string | undefined;
145
154
  denomination?: string | undefined;
146
155
  };
147
156
  attributes?: {
@@ -152,6 +161,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
152
161
  }, {
153
162
  type: "currency";
154
163
  meta: {
164
+ schemaVersion: "1.0";
165
+ labelTranslationKey?: string | undefined;
155
166
  denomination?: string | undefined;
156
167
  };
157
168
  attributes?: {
@@ -944,15 +955,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
944
955
  } & {
945
956
  type: z.ZodLiteral<"currency">;
946
957
  meta: z.ZodObject<{
958
+ schemaVersion: z.ZodLiteral<"1.0">;
959
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
960
+ } & {
947
961
  denomination: z.ZodOptional<z.ZodString>;
948
962
  }, "strip", z.ZodTypeAny, {
963
+ schemaVersion: "1.0";
964
+ labelTranslationKey?: string | undefined;
949
965
  denomination?: string | undefined;
950
966
  }, {
967
+ schemaVersion: "1.0";
968
+ labelTranslationKey?: string | undefined;
951
969
  denomination?: string | undefined;
952
970
  }>;
953
971
  }, "strip", z.ZodTypeAny, {
954
972
  type: "currency";
955
973
  meta: {
974
+ schemaVersion: "1.0";
975
+ labelTranslationKey?: string | undefined;
956
976
  denomination?: string | undefined;
957
977
  };
958
978
  attributes?: {
@@ -963,6 +983,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
963
983
  }, {
964
984
  type: "currency";
965
985
  meta: {
986
+ schemaVersion: "1.0";
987
+ labelTranslationKey?: string | undefined;
966
988
  denomination?: string | undefined;
967
989
  };
968
990
  attributes?: {
@@ -1634,15 +1656,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1634
1656
  rows?: number | undefined;
1635
1657
  }>>;
1636
1658
  meta: z.ZodObject<{
1659
+ schemaVersion: z.ZodLiteral<"1.0">;
1660
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1661
+ } & {
1637
1662
  asRichText: z.ZodOptional<z.ZodBoolean>;
1638
1663
  }, "strip", z.ZodTypeAny, {
1664
+ schemaVersion: "1.0";
1665
+ labelTranslationKey?: string | undefined;
1639
1666
  asRichText?: boolean | undefined;
1640
1667
  }, {
1668
+ schemaVersion: "1.0";
1669
+ labelTranslationKey?: string | undefined;
1641
1670
  asRichText?: boolean | undefined;
1642
1671
  }>;
1643
1672
  }, "strip", z.ZodTypeAny, {
1644
1673
  type: "textArea";
1645
1674
  meta: {
1675
+ schemaVersion: "1.0";
1676
+ labelTranslationKey?: string | undefined;
1646
1677
  asRichText?: boolean | undefined;
1647
1678
  };
1648
1679
  attributes?: {
@@ -1654,6 +1685,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1654
1685
  }, {
1655
1686
  type: "textArea";
1656
1687
  meta: {
1688
+ schemaVersion: "1.0";
1689
+ labelTranslationKey?: string | undefined;
1657
1690
  asRichText?: boolean | undefined;
1658
1691
  };
1659
1692
  attributes?: {
@@ -1942,6 +1975,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1942
1975
  } | {
1943
1976
  type: "currency";
1944
1977
  meta: {
1978
+ schemaVersion: "1.0";
1979
+ labelTranslationKey?: string | undefined;
1945
1980
  denomination?: string | undefined;
1946
1981
  };
1947
1982
  attributes?: {
@@ -1964,6 +1999,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1964
1999
  } | {
1965
2000
  type: "textArea";
1966
2001
  meta: {
2002
+ schemaVersion: "1.0";
2003
+ labelTranslationKey?: string | undefined;
1967
2004
  asRichText?: boolean | undefined;
1968
2005
  };
1969
2006
  attributes?: {
@@ -2166,6 +2203,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2166
2203
  } | {
2167
2204
  type: "currency";
2168
2205
  meta: {
2206
+ schemaVersion: "1.0";
2207
+ labelTranslationKey?: string | undefined;
2169
2208
  denomination?: string | undefined;
2170
2209
  };
2171
2210
  attributes?: {
@@ -2188,6 +2227,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2188
2227
  } | {
2189
2228
  type: "textArea";
2190
2229
  meta: {
2230
+ schemaVersion: "1.0";
2231
+ labelTranslationKey?: string | undefined;
2191
2232
  asRichText?: boolean | undefined;
2192
2233
  };
2193
2234
  attributes?: {
@@ -2380,15 +2421,24 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2380
2421
  rows?: number | undefined;
2381
2422
  }>>;
2382
2423
  meta: z.ZodObject<{
2424
+ schemaVersion: z.ZodLiteral<"1.0">;
2425
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
2426
+ } & {
2383
2427
  asRichText: z.ZodOptional<z.ZodBoolean>;
2384
2428
  }, "strip", z.ZodTypeAny, {
2429
+ schemaVersion: "1.0";
2430
+ labelTranslationKey?: string | undefined;
2385
2431
  asRichText?: boolean | undefined;
2386
2432
  }, {
2433
+ schemaVersion: "1.0";
2434
+ labelTranslationKey?: string | undefined;
2387
2435
  asRichText?: boolean | undefined;
2388
2436
  }>;
2389
2437
  }, "strip", z.ZodTypeAny, {
2390
2438
  type: "textArea";
2391
2439
  meta: {
2440
+ schemaVersion: "1.0";
2441
+ labelTranslationKey?: string | undefined;
2392
2442
  asRichText?: boolean | undefined;
2393
2443
  };
2394
2444
  attributes?: {
@@ -2400,6 +2450,8 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2400
2450
  }, {
2401
2451
  type: "textArea";
2402
2452
  meta: {
2453
+ schemaVersion: "1.0";
2454
+ labelTranslationKey?: string | undefined;
2403
2455
  asRichText?: boolean | undefined;
2404
2456
  };
2405
2457
  attributes?: {
@@ -104,15 +104,24 @@ export declare const CurrencyQuestionSchema: z.ZodObject<{
104
104
  } & {
105
105
  type: z.ZodLiteral<"currency">;
106
106
  meta: z.ZodObject<{
107
+ schemaVersion: z.ZodLiteral<"1.0">;
108
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
109
+ } & {
107
110
  denomination: z.ZodOptional<z.ZodString>;
108
111
  }, "strip", z.ZodTypeAny, {
112
+ schemaVersion: "1.0";
113
+ labelTranslationKey?: string | undefined;
109
114
  denomination?: string | undefined;
110
115
  }, {
116
+ schemaVersion: "1.0";
117
+ labelTranslationKey?: string | undefined;
111
118
  denomination?: string | undefined;
112
119
  }>;
113
120
  }, "strip", z.ZodTypeAny, {
114
121
  type: "currency";
115
122
  meta: {
123
+ schemaVersion: "1.0";
124
+ labelTranslationKey?: string | undefined;
116
125
  denomination?: string | undefined;
117
126
  };
118
127
  attributes?: {
@@ -123,6 +132,8 @@ export declare const CurrencyQuestionSchema: z.ZodObject<{
123
132
  }, {
124
133
  type: "currency";
125
134
  meta: {
135
+ schemaVersion: "1.0";
136
+ labelTranslationKey?: string | undefined;
126
137
  denomination?: string | undefined;
127
138
  };
128
139
  attributes?: {
@@ -204,15 +215,24 @@ export declare const TextAreaQuestionSchema: z.ZodObject<{} & {
204
215
  rows?: number | undefined;
205
216
  }>>;
206
217
  meta: z.ZodObject<{
218
+ schemaVersion: z.ZodLiteral<"1.0">;
219
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
220
+ } & {
207
221
  asRichText: z.ZodOptional<z.ZodBoolean>;
208
222
  }, "strip", z.ZodTypeAny, {
223
+ schemaVersion: "1.0";
224
+ labelTranslationKey?: string | undefined;
209
225
  asRichText?: boolean | undefined;
210
226
  }, {
227
+ schemaVersion: "1.0";
228
+ labelTranslationKey?: string | undefined;
211
229
  asRichText?: boolean | undefined;
212
230
  }>;
213
231
  }, "strip", z.ZodTypeAny, {
214
232
  type: "textArea";
215
233
  meta: {
234
+ schemaVersion: "1.0";
235
+ labelTranslationKey?: string | undefined;
216
236
  asRichText?: boolean | undefined;
217
237
  };
218
238
  attributes?: {
@@ -224,6 +244,8 @@ export declare const TextAreaQuestionSchema: z.ZodObject<{} & {
224
244
  }, {
225
245
  type: "textArea";
226
246
  meta: {
247
+ schemaVersion: "1.0";
248
+ labelTranslationKey?: string | undefined;
227
249
  asRichText?: boolean | undefined;
228
250
  };
229
251
  attributes?: {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
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
+ const BaseMeta = question_1.QuestionSchema.shape.meta;
6
7
  // A Yes/No True/False question and answer
7
8
  exports.BooleanQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
8
9
  type: zod_1.z.literal('boolean'), // The type of question
@@ -22,7 +23,7 @@ exports.NumberQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object({
22
23
  // Currency question and answer
23
24
  exports.CurrencyQuestionSchema = exports.NumberQuestionSchema.merge(zod_1.z.object({
24
25
  type: zod_1.z.literal('currency'), // The type of question
25
- meta: zod_1.z.object({
26
+ meta: BaseMeta.extend({
26
27
  denomination: zod_1.z.string().optional() // The currency denomination (default is USD)
27
28
  })
28
29
  }));
@@ -45,7 +46,7 @@ exports.TextAreaQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.object(
45
46
  minLength: zod_1.z.number().optional(), // The minimum length of the text (no default)
46
47
  rows: zod_1.z.number().optional() // The number of rows (default is 2)
47
48
  }).optional(),
48
- meta: zod_1.z.object({
49
+ meta: BaseMeta.extend({
49
50
  asRichText: zod_1.z.boolean().optional() // Whether to use rich text (default is false)
50
51
  })
51
52
  }));
@@ -126,15 +126,24 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
126
126
  } & {
127
127
  type: z.ZodLiteral<"currency">;
128
128
  meta: z.ZodObject<{
129
+ schemaVersion: z.ZodLiteral<"1.0">;
130
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
131
+ } & {
129
132
  denomination: z.ZodOptional<z.ZodString>;
130
133
  }, "strip", z.ZodTypeAny, {
134
+ schemaVersion: "1.0";
135
+ labelTranslationKey?: string | undefined;
131
136
  denomination?: string | undefined;
132
137
  }, {
138
+ schemaVersion: "1.0";
139
+ labelTranslationKey?: string | undefined;
133
140
  denomination?: string | undefined;
134
141
  }>;
135
142
  }, "strip", z.ZodTypeAny, {
136
143
  type: "currency";
137
144
  meta: {
145
+ schemaVersion: "1.0";
146
+ labelTranslationKey?: string | undefined;
138
147
  denomination?: string | undefined;
139
148
  };
140
149
  attributes?: {
@@ -145,6 +154,8 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
145
154
  }, {
146
155
  type: "currency";
147
156
  meta: {
157
+ schemaVersion: "1.0";
158
+ labelTranslationKey?: string | undefined;
148
159
  denomination?: string | undefined;
149
160
  };
150
161
  attributes?: {
@@ -816,15 +827,24 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
816
827
  rows?: number | undefined;
817
828
  }>>;
818
829
  meta: z.ZodObject<{
830
+ schemaVersion: z.ZodLiteral<"1.0">;
831
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
832
+ } & {
819
833
  asRichText: z.ZodOptional<z.ZodBoolean>;
820
834
  }, "strip", z.ZodTypeAny, {
835
+ schemaVersion: "1.0";
836
+ labelTranslationKey?: string | undefined;
821
837
  asRichText?: boolean | undefined;
822
838
  }, {
839
+ schemaVersion: "1.0";
840
+ labelTranslationKey?: string | undefined;
823
841
  asRichText?: boolean | undefined;
824
842
  }>;
825
843
  }, "strip", z.ZodTypeAny, {
826
844
  type: "textArea";
827
845
  meta: {
846
+ schemaVersion: "1.0";
847
+ labelTranslationKey?: string | undefined;
828
848
  asRichText?: boolean | undefined;
829
849
  };
830
850
  attributes?: {
@@ -836,6 +856,8 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
836
856
  }, {
837
857
  type: "textArea";
838
858
  meta: {
859
+ schemaVersion: "1.0";
860
+ labelTranslationKey?: string | undefined;
839
861
  asRichText?: boolean | undefined;
840
862
  };
841
863
  attributes?: {
@@ -1216,15 +1238,24 @@ export declare const TableQuestionSchema: z.ZodObject<{
1216
1238
  } & {
1217
1239
  type: z.ZodLiteral<"currency">;
1218
1240
  meta: z.ZodObject<{
1241
+ schemaVersion: z.ZodLiteral<"1.0">;
1242
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1243
+ } & {
1219
1244
  denomination: z.ZodOptional<z.ZodString>;
1220
1245
  }, "strip", z.ZodTypeAny, {
1246
+ schemaVersion: "1.0";
1247
+ labelTranslationKey?: string | undefined;
1221
1248
  denomination?: string | undefined;
1222
1249
  }, {
1250
+ schemaVersion: "1.0";
1251
+ labelTranslationKey?: string | undefined;
1223
1252
  denomination?: string | undefined;
1224
1253
  }>;
1225
1254
  }, "strip", z.ZodTypeAny, {
1226
1255
  type: "currency";
1227
1256
  meta: {
1257
+ schemaVersion: "1.0";
1258
+ labelTranslationKey?: string | undefined;
1228
1259
  denomination?: string | undefined;
1229
1260
  };
1230
1261
  attributes?: {
@@ -1235,6 +1266,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
1235
1266
  }, {
1236
1267
  type: "currency";
1237
1268
  meta: {
1269
+ schemaVersion: "1.0";
1270
+ labelTranslationKey?: string | undefined;
1238
1271
  denomination?: string | undefined;
1239
1272
  };
1240
1273
  attributes?: {
@@ -1906,15 +1939,24 @@ export declare const TableQuestionSchema: z.ZodObject<{
1906
1939
  rows?: number | undefined;
1907
1940
  }>>;
1908
1941
  meta: z.ZodObject<{
1942
+ schemaVersion: z.ZodLiteral<"1.0">;
1943
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
1944
+ } & {
1909
1945
  asRichText: z.ZodOptional<z.ZodBoolean>;
1910
1946
  }, "strip", z.ZodTypeAny, {
1947
+ schemaVersion: "1.0";
1948
+ labelTranslationKey?: string | undefined;
1911
1949
  asRichText?: boolean | undefined;
1912
1950
  }, {
1951
+ schemaVersion: "1.0";
1952
+ labelTranslationKey?: string | undefined;
1913
1953
  asRichText?: boolean | undefined;
1914
1954
  }>;
1915
1955
  }, "strip", z.ZodTypeAny, {
1916
1956
  type: "textArea";
1917
1957
  meta: {
1958
+ schemaVersion: "1.0";
1959
+ labelTranslationKey?: string | undefined;
1918
1960
  asRichText?: boolean | undefined;
1919
1961
  };
1920
1962
  attributes?: {
@@ -1926,6 +1968,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
1926
1968
  }, {
1927
1969
  type: "textArea";
1928
1970
  meta: {
1971
+ schemaVersion: "1.0";
1972
+ labelTranslationKey?: string | undefined;
1929
1973
  asRichText?: boolean | undefined;
1930
1974
  };
1931
1975
  attributes?: {
@@ -2214,6 +2258,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
2214
2258
  } | {
2215
2259
  type: "currency";
2216
2260
  meta: {
2261
+ schemaVersion: "1.0";
2262
+ labelTranslationKey?: string | undefined;
2217
2263
  denomination?: string | undefined;
2218
2264
  };
2219
2265
  attributes?: {
@@ -2236,6 +2282,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
2236
2282
  } | {
2237
2283
  type: "textArea";
2238
2284
  meta: {
2285
+ schemaVersion: "1.0";
2286
+ labelTranslationKey?: string | undefined;
2239
2287
  asRichText?: boolean | undefined;
2240
2288
  };
2241
2289
  attributes?: {
@@ -2438,6 +2486,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
2438
2486
  } | {
2439
2487
  type: "currency";
2440
2488
  meta: {
2489
+ schemaVersion: "1.0";
2490
+ labelTranslationKey?: string | undefined;
2441
2491
  denomination?: string | undefined;
2442
2492
  };
2443
2493
  attributes?: {
@@ -2460,6 +2510,8 @@ export declare const TableQuestionSchema: z.ZodObject<{
2460
2510
  } | {
2461
2511
  type: "textArea";
2462
2512
  meta: {
2513
+ schemaVersion: "1.0";
2514
+ labelTranslationKey?: string | undefined;
2463
2515
  asRichText?: boolean | undefined;
2464
2516
  };
2465
2517
  attributes?: {
@@ -106,10 +106,19 @@
106
106
  "meta": {
107
107
  "type": "object",
108
108
  "properties": {
109
+ "schemaVersion": {
110
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
111
+ },
112
+ "labelTranslationKey": {
113
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
114
+ },
109
115
  "denomination": {
110
116
  "type": "string"
111
117
  }
112
118
  },
119
+ "required": [
120
+ "schemaVersion"
121
+ ],
113
122
  "additionalProperties": false
114
123
  },
115
124
  "attributes": {
@@ -548,10 +557,19 @@
548
557
  "meta": {
549
558
  "type": "object",
550
559
  "properties": {
560
+ "schemaVersion": {
561
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/schemaVersion"
562
+ },
563
+ "labelTranslationKey": {
564
+ "$ref": "#/definitions/AnyQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
565
+ },
551
566
  "asRichText": {
552
567
  "type": "boolean"
553
568
  }
554
569
  },
570
+ "required": [
571
+ "schemaVersion"
572
+ ],
555
573
  "additionalProperties": false
556
574
  },
557
575
  "attributes": {
@@ -106,10 +106,19 @@
106
106
  "meta": {
107
107
  "type": "object",
108
108
  "properties": {
109
+ "schemaVersion": {
110
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
111
+ },
112
+ "labelTranslationKey": {
113
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
114
+ },
109
115
  "denomination": {
110
116
  "type": "string"
111
117
  }
112
118
  },
119
+ "required": [
120
+ "schemaVersion"
121
+ ],
113
122
  "additionalProperties": false
114
123
  },
115
124
  "attributes": {
@@ -504,10 +513,19 @@
504
513
  "meta": {
505
514
  "type": "object",
506
515
  "properties": {
516
+ "schemaVersion": {
517
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/schemaVersion"
518
+ },
519
+ "labelTranslationKey": {
520
+ "$ref": "#/definitions/AnyTableColumnQuestion/anyOf/0/properties/meta/properties/labelTranslationKey"
521
+ },
507
522
  "asRichText": {
508
523
  "type": "boolean"
509
524
  }
510
525
  },
526
+ "required": [
527
+ "schemaVersion"
528
+ ],
511
529
  "additionalProperties": false
512
530
  },
513
531
  "attributes": {
@@ -11,10 +11,20 @@
11
11
  "meta": {
12
12
  "type": "object",
13
13
  "properties": {
14
+ "schemaVersion": {
15
+ "type": "string",
16
+ "const": "1.0"
17
+ },
18
+ "labelTranslationKey": {
19
+ "type": "string"
20
+ },
14
21
  "denomination": {
15
22
  "type": "string"
16
23
  }
17
24
  },
25
+ "required": [
26
+ "schemaVersion"
27
+ ],
18
28
  "additionalProperties": false
19
29
  },
20
30
  "attributes": {
@@ -118,10 +118,19 @@
118
118
  "meta": {
119
119
  "type": "object",
120
120
  "properties": {
121
+ "schemaVersion": {
122
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
123
+ },
124
+ "labelTranslationKey": {
125
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
126
+ },
121
127
  "denomination": {
122
128
  "type": "string"
123
129
  }
124
130
  },
131
+ "required": [
132
+ "schemaVersion"
133
+ ],
125
134
  "additionalProperties": false
126
135
  },
127
136
  "attributes": {
@@ -516,10 +525,19 @@
516
525
  "meta": {
517
526
  "type": "object",
518
527
  "properties": {
528
+ "schemaVersion": {
529
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/schemaVersion"
530
+ },
531
+ "labelTranslationKey": {
532
+ "$ref": "#/definitions/TableQuestion/properties/meta/properties/labelTranslationKey"
533
+ },
519
534
  "asRichText": {
520
535
  "type": "boolean"
521
536
  }
522
537
  },
538
+ "required": [
539
+ "schemaVersion"
540
+ ],
523
541
  "additionalProperties": false
524
542
  },
525
543
  "attributes": {
@@ -11,10 +11,20 @@
11
11
  "meta": {
12
12
  "type": "object",
13
13
  "properties": {
14
+ "schemaVersion": {
15
+ "type": "string",
16
+ "const": "1.0"
17
+ },
18
+ "labelTranslationKey": {
19
+ "type": "string"
20
+ },
14
21
  "asRichText": {
15
22
  "type": "boolean"
16
23
  }
17
24
  },
25
+ "required": [
26
+ "schemaVersion"
27
+ ],
18
28
  "additionalProperties": false
19
29
  },
20
30
  "attributes": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "TypeScript types for DMPTool",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",