@dmptool/types 1.0.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -0
  3. package/dist/answers.d.ts +558 -0
  4. package/dist/answers.js +87 -0
  5. package/dist/dateQuestions.d.ts +244 -0
  6. package/dist/dateQuestions.js +30 -0
  7. package/dist/graphQLQuestions.d.ts +288 -0
  8. package/dist/graphQLQuestions.js +41 -0
  9. package/dist/optionBasedQuestions.d.ts +236 -0
  10. package/dist/optionBasedQuestions.js +44 -0
  11. package/dist/primitiveQuestions.d.ts +367 -0
  12. package/dist/primitiveQuestions.js +96 -0
  13. package/dist/schemas/anyAnswer.schema.json +267 -0
  14. package/dist/schemas/anyQuestion.schema.json +726 -0
  15. package/dist/schemas/booleanAnswer.schema.json +23 -0
  16. package/dist/schemas/booleanQuestion.schema.json +46 -0
  17. package/dist/schemas/checkboxesAnswer.schema.json +26 -0
  18. package/dist/schemas/checkboxesQuestion.schema.json +73 -0
  19. package/dist/schemas/currencyAnswer.schema.json +23 -0
  20. package/dist/schemas/currencyQuestion.schema.json +45 -0
  21. package/dist/schemas/datePickerAnswer.schema.json +23 -0
  22. package/dist/schemas/datePickerQuestion.schema.json +52 -0
  23. package/dist/schemas/dateRangeAnswer.schema.json +36 -0
  24. package/dist/schemas/dateRangeQuestion.schema.json +106 -0
  25. package/dist/schemas/emailAnswer.schema.json +23 -0
  26. package/dist/schemas/emailQuestion.schema.json +55 -0
  27. package/dist/schemas/filteredSearchAnswer.schema.json +26 -0
  28. package/dist/schemas/filteredSearchQuestion.schema.json +120 -0
  29. package/dist/schemas/numberAnswer.schema.json +23 -0
  30. package/dist/schemas/numberQuestion.schema.json +52 -0
  31. package/dist/schemas/radioButtonsAnswer.schema.json +23 -0
  32. package/dist/schemas/radioButtonsQuestion.schema.json +73 -0
  33. package/dist/schemas/selectBoxAnswer.schema.json +23 -0
  34. package/dist/schemas/selectBoxQuestion.schema.json +83 -0
  35. package/dist/schemas/tableAnswer.schema.json +284 -0
  36. package/dist/schemas/tableQuestion.schema.json +680 -0
  37. package/dist/schemas/textAnswer.schema.json +23 -0
  38. package/dist/schemas/textAreaAnswer.schema.json +23 -0
  39. package/dist/schemas/textAreaQuestion.schema.json +48 -0
  40. package/dist/schemas/textQuestion.schema.json +52 -0
  41. package/dist/schemas/typeaheadSearchAnswer.schema.json +23 -0
  42. package/dist/schemas/typeaheadSearchQuestion.schema.json +110 -0
  43. package/dist/schemas/urlAnswer.schema.json +23 -0
  44. package/dist/schemas/urlQuestion.schema.json +52 -0
  45. package/dist/tableQuestions.d.ts +4195 -0
  46. package/dist/tableQuestions.js +55 -0
  47. package/package.json +41 -0
@@ -0,0 +1,236 @@
1
+ import { z } from "zod";
2
+ export declare const CheckboxesQuestion: z.ZodObject<{
3
+ meta: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"1.0">;
5
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ schemaVersion: "1.0";
8
+ labelTranslationKey?: string | undefined;
9
+ }, {
10
+ schemaVersion: "1.0";
11
+ labelTranslationKey?: string | undefined;
12
+ }>;
13
+ } & {
14
+ type: z.ZodLiteral<"checkBoxes">;
15
+ options: z.ZodArray<z.ZodObject<{
16
+ type: z.ZodLiteral<"option">;
17
+ attributes: z.ZodObject<{
18
+ label: z.ZodString;
19
+ value: z.ZodString;
20
+ } & {
21
+ checked: z.ZodOptional<z.ZodBoolean>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ value: string;
24
+ label: string;
25
+ checked?: boolean | undefined;
26
+ }, {
27
+ value: string;
28
+ label: string;
29
+ checked?: boolean | undefined;
30
+ }>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "option";
33
+ attributes: {
34
+ value: string;
35
+ label: string;
36
+ checked?: boolean | undefined;
37
+ };
38
+ }, {
39
+ type: "option";
40
+ attributes: {
41
+ value: string;
42
+ label: string;
43
+ checked?: boolean | undefined;
44
+ };
45
+ }>, "many">;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "checkBoxes";
48
+ options: {
49
+ type: "option";
50
+ attributes: {
51
+ value: string;
52
+ label: string;
53
+ checked?: boolean | undefined;
54
+ };
55
+ }[];
56
+ meta: {
57
+ schemaVersion: "1.0";
58
+ labelTranslationKey?: string | undefined;
59
+ };
60
+ }, {
61
+ type: "checkBoxes";
62
+ options: {
63
+ type: "option";
64
+ attributes: {
65
+ value: string;
66
+ label: string;
67
+ checked?: boolean | undefined;
68
+ };
69
+ }[];
70
+ meta: {
71
+ schemaVersion: "1.0";
72
+ labelTranslationKey?: string | undefined;
73
+ };
74
+ }>;
75
+ export declare const RadioButtonsQuestion: z.ZodObject<{
76
+ meta: z.ZodObject<{
77
+ schemaVersion: z.ZodLiteral<"1.0">;
78
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ schemaVersion: "1.0";
81
+ labelTranslationKey?: string | undefined;
82
+ }, {
83
+ schemaVersion: "1.0";
84
+ labelTranslationKey?: string | undefined;
85
+ }>;
86
+ } & {
87
+ type: z.ZodLiteral<"radioButtons">;
88
+ options: z.ZodArray<z.ZodObject<{
89
+ type: z.ZodLiteral<"option">;
90
+ attributes: z.ZodObject<{
91
+ label: z.ZodString;
92
+ value: z.ZodString;
93
+ } & {
94
+ selected: z.ZodOptional<z.ZodBoolean>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ value: string;
97
+ label: string;
98
+ selected?: boolean | undefined;
99
+ }, {
100
+ value: string;
101
+ label: string;
102
+ selected?: boolean | undefined;
103
+ }>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "option";
106
+ attributes: {
107
+ value: string;
108
+ label: string;
109
+ selected?: boolean | undefined;
110
+ };
111
+ }, {
112
+ type: "option";
113
+ attributes: {
114
+ value: string;
115
+ label: string;
116
+ selected?: boolean | undefined;
117
+ };
118
+ }>, "many">;
119
+ }, "strip", z.ZodTypeAny, {
120
+ type: "radioButtons";
121
+ options: {
122
+ type: "option";
123
+ attributes: {
124
+ value: string;
125
+ label: string;
126
+ selected?: boolean | undefined;
127
+ };
128
+ }[];
129
+ meta: {
130
+ schemaVersion: "1.0";
131
+ labelTranslationKey?: string | undefined;
132
+ };
133
+ }, {
134
+ type: "radioButtons";
135
+ options: {
136
+ type: "option";
137
+ attributes: {
138
+ value: string;
139
+ label: string;
140
+ selected?: boolean | undefined;
141
+ };
142
+ }[];
143
+ meta: {
144
+ schemaVersion: "1.0";
145
+ labelTranslationKey?: string | undefined;
146
+ };
147
+ }>;
148
+ export declare const SelectBoxQuestion: z.ZodObject<{
149
+ meta: z.ZodObject<{
150
+ schemaVersion: z.ZodLiteral<"1.0">;
151
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ schemaVersion: "1.0";
154
+ labelTranslationKey?: string | undefined;
155
+ }, {
156
+ schemaVersion: "1.0";
157
+ labelTranslationKey?: string | undefined;
158
+ }>;
159
+ } & {
160
+ type: z.ZodLiteral<"selectBox">;
161
+ options: z.ZodArray<z.ZodObject<{
162
+ type: z.ZodLiteral<"option">;
163
+ attributes: z.ZodObject<{
164
+ label: z.ZodString;
165
+ value: z.ZodString;
166
+ } & {
167
+ selected: z.ZodOptional<z.ZodBoolean>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ value: string;
170
+ label: string;
171
+ selected?: boolean | undefined;
172
+ }, {
173
+ value: string;
174
+ label: string;
175
+ selected?: boolean | undefined;
176
+ }>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "option";
179
+ attributes: {
180
+ value: string;
181
+ label: string;
182
+ selected?: boolean | undefined;
183
+ };
184
+ }, {
185
+ type: "option";
186
+ attributes: {
187
+ value: string;
188
+ label: string;
189
+ selected?: boolean | undefined;
190
+ };
191
+ }>, "many">;
192
+ attributes: z.ZodObject<{
193
+ multiple: z.ZodOptional<z.ZodBoolean>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ multiple?: boolean | undefined;
196
+ }, {
197
+ multiple?: boolean | undefined;
198
+ }>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ type: "selectBox";
201
+ options: {
202
+ type: "option";
203
+ attributes: {
204
+ value: string;
205
+ label: string;
206
+ selected?: boolean | undefined;
207
+ };
208
+ }[];
209
+ meta: {
210
+ schemaVersion: "1.0";
211
+ labelTranslationKey?: string | undefined;
212
+ };
213
+ attributes: {
214
+ multiple?: boolean | undefined;
215
+ };
216
+ }, {
217
+ type: "selectBox";
218
+ options: {
219
+ type: "option";
220
+ attributes: {
221
+ value: string;
222
+ label: string;
223
+ selected?: boolean | undefined;
224
+ };
225
+ }[];
226
+ meta: {
227
+ schemaVersion: "1.0";
228
+ labelTranslationKey?: string | undefined;
229
+ };
230
+ attributes: {
231
+ multiple?: boolean | undefined;
232
+ };
233
+ }>;
234
+ export type CheckboxesQuestionType = z.infer<typeof CheckboxesQuestion>;
235
+ export type RadioButtonsQuestionType = z.infer<typeof RadioButtonsQuestion>;
236
+ export type SelectBoxQuestionType = z.infer<typeof SelectBoxQuestion>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectBoxQuestion = exports.RadioButtonsQuestion = exports.CheckboxesQuestion = void 0;
4
+ const zod_1 = require("zod");
5
+ const primitiveQuestions_1 = require("./primitiveQuestions");
6
+ // A select box, radio buttons, or checkboxes option
7
+ const Option = zod_1.z.object({
8
+ type: zod_1.z.literal('option'), // The type of option
9
+ attributes: zod_1.z.object({
10
+ label: zod_1.z.string(), // The label of the option
11
+ value: zod_1.z.string(), // The value of the option
12
+ }),
13
+ });
14
+ const BaseOptionAttributes = Option.shape.attributes;
15
+ const CheckedOption = zod_1.z.object({
16
+ type: zod_1.z.literal('option'),
17
+ attributes: BaseOptionAttributes.extend({
18
+ checked: zod_1.z.boolean().optional(),
19
+ }),
20
+ });
21
+ const SelectedOption = zod_1.z.object({
22
+ type: zod_1.z.literal('option'),
23
+ attributes: BaseOptionAttributes.extend({
24
+ selected: zod_1.z.boolean().optional(),
25
+ }),
26
+ });
27
+ // Check boxes question and answer
28
+ exports.CheckboxesQuestion = primitiveQuestions_1.Question.merge(zod_1.z.object({
29
+ type: zod_1.z.literal('checkBoxes'), // The type of question
30
+ options: zod_1.z.array(CheckedOption)
31
+ }));
32
+ // Radio buttons question and answer
33
+ exports.RadioButtonsQuestion = primitiveQuestions_1.Question.merge(zod_1.z.object({
34
+ type: zod_1.z.literal('radioButtons'), // The type of question
35
+ options: zod_1.z.array(SelectedOption)
36
+ }));
37
+ // Select box question and answer
38
+ exports.SelectBoxQuestion = primitiveQuestions_1.Question.merge(zod_1.z.object({
39
+ type: zod_1.z.literal('selectBox'), // The type of question
40
+ options: zod_1.z.array(SelectedOption),
41
+ attributes: zod_1.z.object({
42
+ multiple: zod_1.z.boolean().optional() // Whether to allow multiple selections (default is false)
43
+ })
44
+ }));
@@ -0,0 +1,367 @@
1
+ import { z } from "zod";
2
+ export declare const CURRENT_SCHEMA_VERSION = "1.0";
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<{
5
+ type: z.ZodEnum<["boolean", "checkBoxes", "currency", "datePicker", "dateRange", "email", "filteredSearch", "number", "option", "radioButtons", "selectBox", "table", "text", "textArea", "typeaheadSearch", "url"]>;
6
+ meta: z.ZodObject<{
7
+ schemaVersion: z.ZodLiteral<"1.0">;
8
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ schemaVersion: "1.0";
11
+ labelTranslationKey?: string | undefined;
12
+ }, {
13
+ schemaVersion: "1.0";
14
+ labelTranslationKey?: string | undefined;
15
+ }>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "number" | "boolean" | "checkBoxes" | "currency" | "datePicker" | "dateRange" | "email" | "filteredSearch" | "option" | "radioButtons" | "selectBox" | "table" | "text" | "textArea" | "typeaheadSearch" | "url";
18
+ meta: {
19
+ schemaVersion: "1.0";
20
+ labelTranslationKey?: string | undefined;
21
+ };
22
+ }, {
23
+ type: "number" | "boolean" | "checkBoxes" | "currency" | "datePicker" | "dateRange" | "email" | "filteredSearch" | "option" | "radioButtons" | "selectBox" | "table" | "text" | "textArea" | "typeaheadSearch" | "url";
24
+ meta: {
25
+ schemaVersion: "1.0";
26
+ labelTranslationKey?: string | undefined;
27
+ };
28
+ }>;
29
+ export declare const BooleanQuestion: z.ZodObject<{
30
+ meta: z.ZodObject<{
31
+ schemaVersion: z.ZodLiteral<"1.0">;
32
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ schemaVersion: "1.0";
35
+ labelTranslationKey?: string | undefined;
36
+ }, {
37
+ schemaVersion: "1.0";
38
+ labelTranslationKey?: string | undefined;
39
+ }>;
40
+ } & {
41
+ type: z.ZodLiteral<"boolean">;
42
+ attributes: z.ZodObject<{
43
+ checked: z.ZodOptional<z.ZodBoolean>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ checked?: boolean | undefined;
46
+ }, {
47
+ checked?: boolean | undefined;
48
+ }>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "boolean";
51
+ meta: {
52
+ schemaVersion: "1.0";
53
+ labelTranslationKey?: string | undefined;
54
+ };
55
+ attributes: {
56
+ checked?: boolean | undefined;
57
+ };
58
+ }, {
59
+ type: "boolean";
60
+ meta: {
61
+ schemaVersion: "1.0";
62
+ labelTranslationKey?: string | undefined;
63
+ };
64
+ attributes: {
65
+ checked?: boolean | undefined;
66
+ };
67
+ }>;
68
+ export declare const NumberQuestion: z.ZodObject<{
69
+ meta: z.ZodObject<{
70
+ schemaVersion: z.ZodLiteral<"1.0">;
71
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ schemaVersion: "1.0";
74
+ labelTranslationKey?: string | undefined;
75
+ }, {
76
+ schemaVersion: "1.0";
77
+ labelTranslationKey?: string | undefined;
78
+ }>;
79
+ } & {
80
+ type: z.ZodLiteral<"number">;
81
+ attributes: z.ZodObject<{
82
+ max: z.ZodOptional<z.ZodNumber>;
83
+ min: z.ZodOptional<z.ZodNumber>;
84
+ step: z.ZodOptional<z.ZodNumber>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ max?: number | undefined;
87
+ min?: number | undefined;
88
+ step?: number | undefined;
89
+ }, {
90
+ max?: number | undefined;
91
+ min?: number | undefined;
92
+ step?: number | undefined;
93
+ }>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ type: "number";
96
+ meta: {
97
+ schemaVersion: "1.0";
98
+ labelTranslationKey?: string | undefined;
99
+ };
100
+ attributes: {
101
+ max?: number | undefined;
102
+ min?: number | undefined;
103
+ step?: number | undefined;
104
+ };
105
+ }, {
106
+ type: "number";
107
+ meta: {
108
+ schemaVersion: "1.0";
109
+ labelTranslationKey?: string | undefined;
110
+ };
111
+ attributes: {
112
+ max?: number | undefined;
113
+ min?: number | undefined;
114
+ step?: number | undefined;
115
+ };
116
+ }>;
117
+ export declare const CurrencyQuestion: z.ZodObject<{
118
+ attributes: z.ZodObject<{
119
+ max: z.ZodOptional<z.ZodNumber>;
120
+ min: z.ZodOptional<z.ZodNumber>;
121
+ step: z.ZodOptional<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ max?: number | undefined;
124
+ min?: number | undefined;
125
+ step?: number | undefined;
126
+ }, {
127
+ max?: number | undefined;
128
+ min?: number | undefined;
129
+ step?: number | undefined;
130
+ }>;
131
+ } & {
132
+ type: z.ZodLiteral<"currency">;
133
+ meta: z.ZodObject<{
134
+ denomination: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ denomination?: string | undefined;
137
+ }, {
138
+ denomination?: string | undefined;
139
+ }>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ type: "currency";
142
+ meta: {
143
+ denomination?: string | undefined;
144
+ };
145
+ attributes: {
146
+ max?: number | undefined;
147
+ min?: number | undefined;
148
+ step?: number | undefined;
149
+ };
150
+ }, {
151
+ type: "currency";
152
+ meta: {
153
+ denomination?: string | undefined;
154
+ };
155
+ attributes: {
156
+ max?: number | undefined;
157
+ min?: number | undefined;
158
+ step?: number | undefined;
159
+ };
160
+ }>;
161
+ export declare const EmailQuestion: z.ZodObject<{
162
+ meta: z.ZodObject<{
163
+ schemaVersion: z.ZodLiteral<"1.0">;
164
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ schemaVersion: "1.0";
167
+ labelTranslationKey?: string | undefined;
168
+ }, {
169
+ schemaVersion: "1.0";
170
+ labelTranslationKey?: string | undefined;
171
+ }>;
172
+ } & {
173
+ type: z.ZodLiteral<"email">;
174
+ attributes: z.ZodObject<{
175
+ maxLength: z.ZodOptional<z.ZodNumber>;
176
+ minLength: z.ZodOptional<z.ZodNumber>;
177
+ multiple: z.ZodOptional<z.ZodBoolean>;
178
+ pattern: z.ZodOptional<z.ZodString>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ maxLength?: number | undefined;
181
+ minLength?: number | undefined;
182
+ multiple?: boolean | undefined;
183
+ pattern?: string | undefined;
184
+ }, {
185
+ maxLength?: number | undefined;
186
+ minLength?: number | undefined;
187
+ multiple?: boolean | undefined;
188
+ pattern?: string | undefined;
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ type: "email";
192
+ meta: {
193
+ schemaVersion: "1.0";
194
+ labelTranslationKey?: string | undefined;
195
+ };
196
+ attributes: {
197
+ maxLength?: number | undefined;
198
+ minLength?: number | undefined;
199
+ multiple?: boolean | undefined;
200
+ pattern?: string | undefined;
201
+ };
202
+ }, {
203
+ type: "email";
204
+ meta: {
205
+ schemaVersion: "1.0";
206
+ labelTranslationKey?: string | undefined;
207
+ };
208
+ attributes: {
209
+ maxLength?: number | undefined;
210
+ minLength?: number | undefined;
211
+ multiple?: boolean | undefined;
212
+ pattern?: string | undefined;
213
+ };
214
+ }>;
215
+ export declare const TextAreaQuestion: z.ZodObject<{} & {
216
+ type: z.ZodLiteral<"textArea">;
217
+ attributes: z.ZodObject<{
218
+ cols: z.ZodOptional<z.ZodNumber>;
219
+ maxLength: z.ZodOptional<z.ZodNumber>;
220
+ minLength: z.ZodOptional<z.ZodNumber>;
221
+ rows: z.ZodOptional<z.ZodNumber>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ maxLength?: number | undefined;
224
+ minLength?: number | undefined;
225
+ cols?: number | undefined;
226
+ rows?: number | undefined;
227
+ }, {
228
+ maxLength?: number | undefined;
229
+ minLength?: number | undefined;
230
+ cols?: number | undefined;
231
+ rows?: number | undefined;
232
+ }>;
233
+ meta: z.ZodObject<{
234
+ asRichText: z.ZodOptional<z.ZodBoolean>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ asRichText?: boolean | undefined;
237
+ }, {
238
+ asRichText?: boolean | undefined;
239
+ }>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type: "textArea";
242
+ meta: {
243
+ asRichText?: boolean | undefined;
244
+ };
245
+ attributes: {
246
+ maxLength?: number | undefined;
247
+ minLength?: number | undefined;
248
+ cols?: number | undefined;
249
+ rows?: number | undefined;
250
+ };
251
+ }, {
252
+ type: "textArea";
253
+ meta: {
254
+ asRichText?: boolean | undefined;
255
+ };
256
+ attributes: {
257
+ maxLength?: number | undefined;
258
+ minLength?: number | undefined;
259
+ cols?: number | undefined;
260
+ rows?: number | undefined;
261
+ };
262
+ }>;
263
+ export declare const TextQuestion: z.ZodObject<{
264
+ meta: z.ZodObject<{
265
+ schemaVersion: z.ZodLiteral<"1.0">;
266
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ schemaVersion: "1.0";
269
+ labelTranslationKey?: string | undefined;
270
+ }, {
271
+ schemaVersion: "1.0";
272
+ labelTranslationKey?: string | undefined;
273
+ }>;
274
+ } & {
275
+ type: z.ZodLiteral<"text">;
276
+ attributes: z.ZodObject<{
277
+ maxLength: z.ZodOptional<z.ZodNumber>;
278
+ minLength: z.ZodOptional<z.ZodNumber>;
279
+ pattern: z.ZodOptional<z.ZodString>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ maxLength?: number | undefined;
282
+ minLength?: number | undefined;
283
+ pattern?: string | undefined;
284
+ }, {
285
+ maxLength?: number | undefined;
286
+ minLength?: number | undefined;
287
+ pattern?: string | undefined;
288
+ }>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ type: "text";
291
+ meta: {
292
+ schemaVersion: "1.0";
293
+ labelTranslationKey?: string | undefined;
294
+ };
295
+ attributes: {
296
+ maxLength?: number | undefined;
297
+ minLength?: number | undefined;
298
+ pattern?: string | undefined;
299
+ };
300
+ }, {
301
+ type: "text";
302
+ meta: {
303
+ schemaVersion: "1.0";
304
+ labelTranslationKey?: string | undefined;
305
+ };
306
+ attributes: {
307
+ maxLength?: number | undefined;
308
+ minLength?: number | undefined;
309
+ pattern?: string | undefined;
310
+ };
311
+ }>;
312
+ export declare const URLQuestion: z.ZodObject<{
313
+ meta: z.ZodObject<{
314
+ schemaVersion: z.ZodLiteral<"1.0">;
315
+ labelTranslationKey: z.ZodOptional<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ schemaVersion: "1.0";
318
+ labelTranslationKey?: string | undefined;
319
+ }, {
320
+ schemaVersion: "1.0";
321
+ labelTranslationKey?: string | undefined;
322
+ }>;
323
+ } & {
324
+ type: z.ZodLiteral<"url">;
325
+ attributes: z.ZodObject<{
326
+ maxLength: z.ZodOptional<z.ZodNumber>;
327
+ minLength: z.ZodOptional<z.ZodNumber>;
328
+ pattern: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ maxLength?: number | undefined;
331
+ minLength?: number | undefined;
332
+ pattern?: string | undefined;
333
+ }, {
334
+ maxLength?: number | undefined;
335
+ minLength?: number | undefined;
336
+ pattern?: string | undefined;
337
+ }>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: "url";
340
+ meta: {
341
+ schemaVersion: "1.0";
342
+ labelTranslationKey?: string | undefined;
343
+ };
344
+ attributes: {
345
+ maxLength?: number | undefined;
346
+ minLength?: number | undefined;
347
+ pattern?: string | undefined;
348
+ };
349
+ }, {
350
+ type: "url";
351
+ meta: {
352
+ schemaVersion: "1.0";
353
+ labelTranslationKey?: string | undefined;
354
+ };
355
+ attributes: {
356
+ maxLength?: number | undefined;
357
+ minLength?: number | undefined;
358
+ pattern?: string | undefined;
359
+ };
360
+ }>;
361
+ export type BooleanQuestionType = z.infer<typeof BooleanQuestion>;
362
+ export type CurrencyQuestionType = z.infer<typeof CurrencyQuestion>;
363
+ export type EmailQuestionType = z.infer<typeof EmailQuestion>;
364
+ export type NumberQuestionType = z.infer<typeof NumberQuestion>;
365
+ export type TextAreaQuestionType = z.infer<typeof TextAreaQuestion>;
366
+ export type TextQuestionType = z.infer<typeof TextQuestion>;
367
+ export type URLQuestionType = z.infer<typeof URLQuestion>;