evo360-types 1.1.33 → 1.1.35

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.
@@ -4,4 +4,4850 @@ export declare const zSurveyDeploymentActionSchema: z.ZodEnum<["CREATE_SURVEY_DE
4
4
  export declare const zSurveyPermissionSchema: z.ZodEnum<["private", "company", "public"]>;
5
5
  export declare const zSurveyTypeSchema: z.ZodEnum<["360", "general"]>;
6
6
  export declare const zSurveyStatusSchema: z.ZodEnum<["draft", "ready", "archived"]>;
7
+ export declare const zSurveyQuestionTypeSchema: z.ZodEnum<["scale", "essay", "options"]>;
7
8
  export declare const zSurveyDeploymentStatusSchema: z.ZodEnum<["draft", "open", "closed", "in_progress", "paused"]>;
9
+ export declare const zSurveySubmissionStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed"]>;
10
+ export declare const zQuestionSchema: z.ZodObject<z.objectUtil.extendShape<{
11
+ id: z.ZodString;
12
+ ref: z.ZodAny;
13
+ tenant: z.ZodString;
14
+ model_ver: z.ZodOptional<z.ZodNumber>;
15
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
16
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
17
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
18
+ }, {
19
+ surveyId: z.ZodString;
20
+ sectionId: z.ZodString;
21
+ statement: z.ZodOptional<z.ZodString>;
22
+ description: z.ZodOptional<z.ZodString>;
23
+ description_text: z.ZodOptional<z.ZodString>;
24
+ order: z.ZodOptional<z.ZodNumber>;
25
+ required: z.ZodOptional<z.ZodBoolean>;
26
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ name: z.ZodString;
28
+ color: z.ZodOptional<z.ZodString>;
29
+ hidden: z.ZodBoolean;
30
+ }, "strip", z.ZodTypeAny, {
31
+ name: string;
32
+ hidden: boolean;
33
+ color?: string | undefined;
34
+ }, {
35
+ name: string;
36
+ hidden: boolean;
37
+ color?: string | undefined;
38
+ }>, "many">>;
39
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
40
+ }>, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ tenant: string;
43
+ surveyId: string;
44
+ sectionId: string;
45
+ ref?: any;
46
+ model_ver?: number | undefined;
47
+ created_at?: Date | null | undefined;
48
+ updated_at?: Date | null | undefined;
49
+ deleted_at?: Date | null | undefined;
50
+ description?: string | undefined;
51
+ tags?: {
52
+ name: string;
53
+ hidden: boolean;
54
+ color?: string | undefined;
55
+ }[] | undefined;
56
+ type?: "scale" | "essay" | "options" | undefined;
57
+ statement?: string | undefined;
58
+ description_text?: string | undefined;
59
+ order?: number | undefined;
60
+ required?: boolean | undefined;
61
+ }, {
62
+ id: string;
63
+ tenant: string;
64
+ surveyId: string;
65
+ sectionId: string;
66
+ ref?: any;
67
+ model_ver?: number | undefined;
68
+ created_at?: Date | null | undefined;
69
+ updated_at?: Date | null | undefined;
70
+ deleted_at?: Date | null | undefined;
71
+ description?: string | undefined;
72
+ tags?: {
73
+ name: string;
74
+ hidden: boolean;
75
+ color?: string | undefined;
76
+ }[] | undefined;
77
+ type?: "scale" | "essay" | "options" | undefined;
78
+ statement?: string | undefined;
79
+ description_text?: string | undefined;
80
+ order?: number | undefined;
81
+ required?: boolean | undefined;
82
+ }>;
83
+ export declare const zQuestionScaleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
84
+ id: z.ZodString;
85
+ ref: z.ZodAny;
86
+ tenant: z.ZodString;
87
+ model_ver: z.ZodOptional<z.ZodNumber>;
88
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
89
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
90
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
91
+ }, {
92
+ surveyId: z.ZodString;
93
+ sectionId: z.ZodString;
94
+ statement: z.ZodOptional<z.ZodString>;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ description_text: z.ZodOptional<z.ZodString>;
97
+ order: z.ZodOptional<z.ZodNumber>;
98
+ required: z.ZodOptional<z.ZodBoolean>;
99
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ name: z.ZodString;
101
+ color: z.ZodOptional<z.ZodString>;
102
+ hidden: z.ZodBoolean;
103
+ }, "strip", z.ZodTypeAny, {
104
+ name: string;
105
+ hidden: boolean;
106
+ color?: string | undefined;
107
+ }, {
108
+ name: string;
109
+ hidden: boolean;
110
+ color?: string | undefined;
111
+ }>, "many">>;
112
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
113
+ }>, {
114
+ type: z.ZodLiteral<"scale">;
115
+ template: z.ZodOptional<z.ZodString>;
116
+ scale_min: z.ZodOptional<z.ZodNumber>;
117
+ scale_max: z.ZodOptional<z.ZodNumber>;
118
+ }>, "strip", z.ZodTypeAny, {
119
+ id: string;
120
+ tenant: string;
121
+ type: "scale";
122
+ surveyId: string;
123
+ sectionId: string;
124
+ ref?: any;
125
+ model_ver?: number | undefined;
126
+ created_at?: Date | null | undefined;
127
+ updated_at?: Date | null | undefined;
128
+ deleted_at?: Date | null | undefined;
129
+ description?: string | undefined;
130
+ tags?: {
131
+ name: string;
132
+ hidden: boolean;
133
+ color?: string | undefined;
134
+ }[] | undefined;
135
+ statement?: string | undefined;
136
+ description_text?: string | undefined;
137
+ order?: number | undefined;
138
+ required?: boolean | undefined;
139
+ template?: string | undefined;
140
+ scale_min?: number | undefined;
141
+ scale_max?: number | undefined;
142
+ }, {
143
+ id: string;
144
+ tenant: string;
145
+ type: "scale";
146
+ surveyId: string;
147
+ sectionId: string;
148
+ ref?: any;
149
+ model_ver?: number | undefined;
150
+ created_at?: Date | null | undefined;
151
+ updated_at?: Date | null | undefined;
152
+ deleted_at?: Date | null | undefined;
153
+ description?: string | undefined;
154
+ tags?: {
155
+ name: string;
156
+ hidden: boolean;
157
+ color?: string | undefined;
158
+ }[] | undefined;
159
+ statement?: string | undefined;
160
+ description_text?: string | undefined;
161
+ order?: number | undefined;
162
+ required?: boolean | undefined;
163
+ template?: string | undefined;
164
+ scale_min?: number | undefined;
165
+ scale_max?: number | undefined;
166
+ }>;
167
+ export declare const zQuestionEssaySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
168
+ id: z.ZodString;
169
+ ref: z.ZodAny;
170
+ tenant: z.ZodString;
171
+ model_ver: z.ZodOptional<z.ZodNumber>;
172
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
173
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
174
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
175
+ }, {
176
+ surveyId: z.ZodString;
177
+ sectionId: z.ZodString;
178
+ statement: z.ZodOptional<z.ZodString>;
179
+ description: z.ZodOptional<z.ZodString>;
180
+ description_text: z.ZodOptional<z.ZodString>;
181
+ order: z.ZodOptional<z.ZodNumber>;
182
+ required: z.ZodOptional<z.ZodBoolean>;
183
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
+ name: z.ZodString;
185
+ color: z.ZodOptional<z.ZodString>;
186
+ hidden: z.ZodBoolean;
187
+ }, "strip", z.ZodTypeAny, {
188
+ name: string;
189
+ hidden: boolean;
190
+ color?: string | undefined;
191
+ }, {
192
+ name: string;
193
+ hidden: boolean;
194
+ color?: string | undefined;
195
+ }>, "many">>;
196
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
197
+ }>, {
198
+ type: z.ZodLiteral<"essay">;
199
+ length_min: z.ZodOptional<z.ZodNumber>;
200
+ length_max: z.ZodOptional<z.ZodNumber>;
201
+ }>, "strip", z.ZodTypeAny, {
202
+ id: string;
203
+ tenant: string;
204
+ type: "essay";
205
+ surveyId: string;
206
+ sectionId: string;
207
+ ref?: any;
208
+ model_ver?: number | undefined;
209
+ created_at?: Date | null | undefined;
210
+ updated_at?: Date | null | undefined;
211
+ deleted_at?: Date | null | undefined;
212
+ description?: string | undefined;
213
+ tags?: {
214
+ name: string;
215
+ hidden: boolean;
216
+ color?: string | undefined;
217
+ }[] | undefined;
218
+ statement?: string | undefined;
219
+ description_text?: string | undefined;
220
+ order?: number | undefined;
221
+ required?: boolean | undefined;
222
+ length_min?: number | undefined;
223
+ length_max?: number | undefined;
224
+ }, {
225
+ id: string;
226
+ tenant: string;
227
+ type: "essay";
228
+ surveyId: string;
229
+ sectionId: string;
230
+ ref?: any;
231
+ model_ver?: number | undefined;
232
+ created_at?: Date | null | undefined;
233
+ updated_at?: Date | null | undefined;
234
+ deleted_at?: Date | null | undefined;
235
+ description?: string | undefined;
236
+ tags?: {
237
+ name: string;
238
+ hidden: boolean;
239
+ color?: string | undefined;
240
+ }[] | undefined;
241
+ statement?: string | undefined;
242
+ description_text?: string | undefined;
243
+ order?: number | undefined;
244
+ required?: boolean | undefined;
245
+ length_min?: number | undefined;
246
+ length_max?: number | undefined;
247
+ }>;
248
+ export declare const zQuestionMultipleChoiceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
249
+ id: z.ZodString;
250
+ ref: z.ZodAny;
251
+ tenant: z.ZodString;
252
+ model_ver: z.ZodOptional<z.ZodNumber>;
253
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
254
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
255
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
256
+ }, {
257
+ surveyId: z.ZodString;
258
+ sectionId: z.ZodString;
259
+ statement: z.ZodOptional<z.ZodString>;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ description_text: z.ZodOptional<z.ZodString>;
262
+ order: z.ZodOptional<z.ZodNumber>;
263
+ required: z.ZodOptional<z.ZodBoolean>;
264
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ name: z.ZodString;
266
+ color: z.ZodOptional<z.ZodString>;
267
+ hidden: z.ZodBoolean;
268
+ }, "strip", z.ZodTypeAny, {
269
+ name: string;
270
+ hidden: boolean;
271
+ color?: string | undefined;
272
+ }, {
273
+ name: string;
274
+ hidden: boolean;
275
+ color?: string | undefined;
276
+ }>, "many">>;
277
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
278
+ }>, {
279
+ type: z.ZodLiteral<"options">;
280
+ options: z.ZodArray<z.ZodString, "many">;
281
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
282
+ }>, "strip", z.ZodTypeAny, {
283
+ id: string;
284
+ tenant: string;
285
+ type: "options";
286
+ options: string[];
287
+ surveyId: string;
288
+ sectionId: string;
289
+ ref?: any;
290
+ model_ver?: number | undefined;
291
+ created_at?: Date | null | undefined;
292
+ updated_at?: Date | null | undefined;
293
+ deleted_at?: Date | null | undefined;
294
+ description?: string | undefined;
295
+ tags?: {
296
+ name: string;
297
+ hidden: boolean;
298
+ color?: string | undefined;
299
+ }[] | undefined;
300
+ statement?: string | undefined;
301
+ description_text?: string | undefined;
302
+ order?: number | undefined;
303
+ required?: boolean | undefined;
304
+ allow_multiple_selections?: boolean | undefined;
305
+ }, {
306
+ id: string;
307
+ tenant: string;
308
+ type: "options";
309
+ options: string[];
310
+ surveyId: string;
311
+ sectionId: string;
312
+ ref?: any;
313
+ model_ver?: number | undefined;
314
+ created_at?: Date | null | undefined;
315
+ updated_at?: Date | null | undefined;
316
+ deleted_at?: Date | null | undefined;
317
+ description?: string | undefined;
318
+ tags?: {
319
+ name: string;
320
+ hidden: boolean;
321
+ color?: string | undefined;
322
+ }[] | undefined;
323
+ statement?: string | undefined;
324
+ description_text?: string | undefined;
325
+ order?: number | undefined;
326
+ required?: boolean | undefined;
327
+ allow_multiple_selections?: boolean | undefined;
328
+ }>;
329
+ export declare const zSurveySectionSchema: z.ZodObject<z.objectUtil.extendShape<{
330
+ id: z.ZodString;
331
+ ref: z.ZodAny;
332
+ tenant: z.ZodString;
333
+ model_ver: z.ZodOptional<z.ZodNumber>;
334
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
335
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
336
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
337
+ }, {
338
+ surveyId: z.ZodString;
339
+ name: z.ZodString;
340
+ description: z.ZodString;
341
+ order: z.ZodNumber;
342
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
343
+ id: z.ZodString;
344
+ ref: z.ZodAny;
345
+ tenant: z.ZodString;
346
+ model_ver: z.ZodOptional<z.ZodNumber>;
347
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
348
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
349
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
350
+ }, {
351
+ surveyId: z.ZodString;
352
+ sectionId: z.ZodString;
353
+ statement: z.ZodOptional<z.ZodString>;
354
+ description: z.ZodOptional<z.ZodString>;
355
+ description_text: z.ZodOptional<z.ZodString>;
356
+ order: z.ZodOptional<z.ZodNumber>;
357
+ required: z.ZodOptional<z.ZodBoolean>;
358
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ name: z.ZodString;
360
+ color: z.ZodOptional<z.ZodString>;
361
+ hidden: z.ZodBoolean;
362
+ }, "strip", z.ZodTypeAny, {
363
+ name: string;
364
+ hidden: boolean;
365
+ color?: string | undefined;
366
+ }, {
367
+ name: string;
368
+ hidden: boolean;
369
+ color?: string | undefined;
370
+ }>, "many">>;
371
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
372
+ }>, {
373
+ type: z.ZodLiteral<"essay">;
374
+ length_min: z.ZodOptional<z.ZodNumber>;
375
+ length_max: z.ZodOptional<z.ZodNumber>;
376
+ }>, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ tenant: string;
379
+ type: "essay";
380
+ surveyId: string;
381
+ sectionId: string;
382
+ ref?: any;
383
+ model_ver?: number | undefined;
384
+ created_at?: Date | null | undefined;
385
+ updated_at?: Date | null | undefined;
386
+ deleted_at?: Date | null | undefined;
387
+ description?: string | undefined;
388
+ tags?: {
389
+ name: string;
390
+ hidden: boolean;
391
+ color?: string | undefined;
392
+ }[] | undefined;
393
+ statement?: string | undefined;
394
+ description_text?: string | undefined;
395
+ order?: number | undefined;
396
+ required?: boolean | undefined;
397
+ length_min?: number | undefined;
398
+ length_max?: number | undefined;
399
+ }, {
400
+ id: string;
401
+ tenant: string;
402
+ type: "essay";
403
+ surveyId: string;
404
+ sectionId: string;
405
+ ref?: any;
406
+ model_ver?: number | undefined;
407
+ created_at?: Date | null | undefined;
408
+ updated_at?: Date | null | undefined;
409
+ deleted_at?: Date | null | undefined;
410
+ description?: string | undefined;
411
+ tags?: {
412
+ name: string;
413
+ hidden: boolean;
414
+ color?: string | undefined;
415
+ }[] | undefined;
416
+ statement?: string | undefined;
417
+ description_text?: string | undefined;
418
+ order?: number | undefined;
419
+ required?: boolean | undefined;
420
+ length_min?: number | undefined;
421
+ length_max?: number | undefined;
422
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
423
+ id: z.ZodString;
424
+ ref: z.ZodAny;
425
+ tenant: z.ZodString;
426
+ model_ver: z.ZodOptional<z.ZodNumber>;
427
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
428
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
429
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
430
+ }, {
431
+ surveyId: z.ZodString;
432
+ sectionId: z.ZodString;
433
+ statement: z.ZodOptional<z.ZodString>;
434
+ description: z.ZodOptional<z.ZodString>;
435
+ description_text: z.ZodOptional<z.ZodString>;
436
+ order: z.ZodOptional<z.ZodNumber>;
437
+ required: z.ZodOptional<z.ZodBoolean>;
438
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
439
+ name: z.ZodString;
440
+ color: z.ZodOptional<z.ZodString>;
441
+ hidden: z.ZodBoolean;
442
+ }, "strip", z.ZodTypeAny, {
443
+ name: string;
444
+ hidden: boolean;
445
+ color?: string | undefined;
446
+ }, {
447
+ name: string;
448
+ hidden: boolean;
449
+ color?: string | undefined;
450
+ }>, "many">>;
451
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
452
+ }>, {
453
+ type: z.ZodLiteral<"scale">;
454
+ template: z.ZodOptional<z.ZodString>;
455
+ scale_min: z.ZodOptional<z.ZodNumber>;
456
+ scale_max: z.ZodOptional<z.ZodNumber>;
457
+ }>, "strip", z.ZodTypeAny, {
458
+ id: string;
459
+ tenant: string;
460
+ type: "scale";
461
+ surveyId: string;
462
+ sectionId: string;
463
+ ref?: any;
464
+ model_ver?: number | undefined;
465
+ created_at?: Date | null | undefined;
466
+ updated_at?: Date | null | undefined;
467
+ deleted_at?: Date | null | undefined;
468
+ description?: string | undefined;
469
+ tags?: {
470
+ name: string;
471
+ hidden: boolean;
472
+ color?: string | undefined;
473
+ }[] | undefined;
474
+ statement?: string | undefined;
475
+ description_text?: string | undefined;
476
+ order?: number | undefined;
477
+ required?: boolean | undefined;
478
+ template?: string | undefined;
479
+ scale_min?: number | undefined;
480
+ scale_max?: number | undefined;
481
+ }, {
482
+ id: string;
483
+ tenant: string;
484
+ type: "scale";
485
+ surveyId: string;
486
+ sectionId: string;
487
+ ref?: any;
488
+ model_ver?: number | undefined;
489
+ created_at?: Date | null | undefined;
490
+ updated_at?: Date | null | undefined;
491
+ deleted_at?: Date | null | undefined;
492
+ description?: string | undefined;
493
+ tags?: {
494
+ name: string;
495
+ hidden: boolean;
496
+ color?: string | undefined;
497
+ }[] | undefined;
498
+ statement?: string | undefined;
499
+ description_text?: string | undefined;
500
+ order?: number | undefined;
501
+ required?: boolean | undefined;
502
+ template?: string | undefined;
503
+ scale_min?: number | undefined;
504
+ scale_max?: number | undefined;
505
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
506
+ id: z.ZodString;
507
+ ref: z.ZodAny;
508
+ tenant: z.ZodString;
509
+ model_ver: z.ZodOptional<z.ZodNumber>;
510
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
511
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
512
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
513
+ }, {
514
+ surveyId: z.ZodString;
515
+ sectionId: z.ZodString;
516
+ statement: z.ZodOptional<z.ZodString>;
517
+ description: z.ZodOptional<z.ZodString>;
518
+ description_text: z.ZodOptional<z.ZodString>;
519
+ order: z.ZodOptional<z.ZodNumber>;
520
+ required: z.ZodOptional<z.ZodBoolean>;
521
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
+ name: z.ZodString;
523
+ color: z.ZodOptional<z.ZodString>;
524
+ hidden: z.ZodBoolean;
525
+ }, "strip", z.ZodTypeAny, {
526
+ name: string;
527
+ hidden: boolean;
528
+ color?: string | undefined;
529
+ }, {
530
+ name: string;
531
+ hidden: boolean;
532
+ color?: string | undefined;
533
+ }>, "many">>;
534
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
535
+ }>, {
536
+ type: z.ZodLiteral<"options">;
537
+ options: z.ZodArray<z.ZodString, "many">;
538
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
539
+ }>, "strip", z.ZodTypeAny, {
540
+ id: string;
541
+ tenant: string;
542
+ type: "options";
543
+ options: string[];
544
+ surveyId: string;
545
+ sectionId: string;
546
+ ref?: any;
547
+ model_ver?: number | undefined;
548
+ created_at?: Date | null | undefined;
549
+ updated_at?: Date | null | undefined;
550
+ deleted_at?: Date | null | undefined;
551
+ description?: string | undefined;
552
+ tags?: {
553
+ name: string;
554
+ hidden: boolean;
555
+ color?: string | undefined;
556
+ }[] | undefined;
557
+ statement?: string | undefined;
558
+ description_text?: string | undefined;
559
+ order?: number | undefined;
560
+ required?: boolean | undefined;
561
+ allow_multiple_selections?: boolean | undefined;
562
+ }, {
563
+ id: string;
564
+ tenant: string;
565
+ type: "options";
566
+ options: string[];
567
+ surveyId: string;
568
+ sectionId: string;
569
+ ref?: any;
570
+ model_ver?: number | undefined;
571
+ created_at?: Date | null | undefined;
572
+ updated_at?: Date | null | undefined;
573
+ deleted_at?: Date | null | undefined;
574
+ description?: string | undefined;
575
+ tags?: {
576
+ name: string;
577
+ hidden: boolean;
578
+ color?: string | undefined;
579
+ }[] | undefined;
580
+ statement?: string | undefined;
581
+ description_text?: string | undefined;
582
+ order?: number | undefined;
583
+ required?: boolean | undefined;
584
+ allow_multiple_selections?: boolean | undefined;
585
+ }>]>, "many">;
586
+ question_count: z.ZodOptional<z.ZodNumber>;
587
+ }>, "strip", z.ZodTypeAny, {
588
+ id: string;
589
+ tenant: string;
590
+ name: string;
591
+ description: string;
592
+ questions: ({
593
+ id: string;
594
+ tenant: string;
595
+ type: "scale";
596
+ surveyId: string;
597
+ sectionId: string;
598
+ ref?: any;
599
+ model_ver?: number | undefined;
600
+ created_at?: Date | null | undefined;
601
+ updated_at?: Date | null | undefined;
602
+ deleted_at?: Date | null | undefined;
603
+ description?: string | undefined;
604
+ tags?: {
605
+ name: string;
606
+ hidden: boolean;
607
+ color?: string | undefined;
608
+ }[] | undefined;
609
+ statement?: string | undefined;
610
+ description_text?: string | undefined;
611
+ order?: number | undefined;
612
+ required?: boolean | undefined;
613
+ template?: string | undefined;
614
+ scale_min?: number | undefined;
615
+ scale_max?: number | undefined;
616
+ } | {
617
+ id: string;
618
+ tenant: string;
619
+ type: "essay";
620
+ surveyId: string;
621
+ sectionId: string;
622
+ ref?: any;
623
+ model_ver?: number | undefined;
624
+ created_at?: Date | null | undefined;
625
+ updated_at?: Date | null | undefined;
626
+ deleted_at?: Date | null | undefined;
627
+ description?: string | undefined;
628
+ tags?: {
629
+ name: string;
630
+ hidden: boolean;
631
+ color?: string | undefined;
632
+ }[] | undefined;
633
+ statement?: string | undefined;
634
+ description_text?: string | undefined;
635
+ order?: number | undefined;
636
+ required?: boolean | undefined;
637
+ length_min?: number | undefined;
638
+ length_max?: number | undefined;
639
+ } | {
640
+ id: string;
641
+ tenant: string;
642
+ type: "options";
643
+ options: string[];
644
+ surveyId: string;
645
+ sectionId: string;
646
+ ref?: any;
647
+ model_ver?: number | undefined;
648
+ created_at?: Date | null | undefined;
649
+ updated_at?: Date | null | undefined;
650
+ deleted_at?: Date | null | undefined;
651
+ description?: string | undefined;
652
+ tags?: {
653
+ name: string;
654
+ hidden: boolean;
655
+ color?: string | undefined;
656
+ }[] | undefined;
657
+ statement?: string | undefined;
658
+ description_text?: string | undefined;
659
+ order?: number | undefined;
660
+ required?: boolean | undefined;
661
+ allow_multiple_selections?: boolean | undefined;
662
+ })[];
663
+ surveyId: string;
664
+ order: number;
665
+ ref?: any;
666
+ model_ver?: number | undefined;
667
+ created_at?: Date | null | undefined;
668
+ updated_at?: Date | null | undefined;
669
+ deleted_at?: Date | null | undefined;
670
+ question_count?: number | undefined;
671
+ }, {
672
+ id: string;
673
+ tenant: string;
674
+ name: string;
675
+ description: string;
676
+ questions: ({
677
+ id: string;
678
+ tenant: string;
679
+ type: "scale";
680
+ surveyId: string;
681
+ sectionId: string;
682
+ ref?: any;
683
+ model_ver?: number | undefined;
684
+ created_at?: Date | null | undefined;
685
+ updated_at?: Date | null | undefined;
686
+ deleted_at?: Date | null | undefined;
687
+ description?: string | undefined;
688
+ tags?: {
689
+ name: string;
690
+ hidden: boolean;
691
+ color?: string | undefined;
692
+ }[] | undefined;
693
+ statement?: string | undefined;
694
+ description_text?: string | undefined;
695
+ order?: number | undefined;
696
+ required?: boolean | undefined;
697
+ template?: string | undefined;
698
+ scale_min?: number | undefined;
699
+ scale_max?: number | undefined;
700
+ } | {
701
+ id: string;
702
+ tenant: string;
703
+ type: "essay";
704
+ surveyId: string;
705
+ sectionId: string;
706
+ ref?: any;
707
+ model_ver?: number | undefined;
708
+ created_at?: Date | null | undefined;
709
+ updated_at?: Date | null | undefined;
710
+ deleted_at?: Date | null | undefined;
711
+ description?: string | undefined;
712
+ tags?: {
713
+ name: string;
714
+ hidden: boolean;
715
+ color?: string | undefined;
716
+ }[] | undefined;
717
+ statement?: string | undefined;
718
+ description_text?: string | undefined;
719
+ order?: number | undefined;
720
+ required?: boolean | undefined;
721
+ length_min?: number | undefined;
722
+ length_max?: number | undefined;
723
+ } | {
724
+ id: string;
725
+ tenant: string;
726
+ type: "options";
727
+ options: string[];
728
+ surveyId: string;
729
+ sectionId: string;
730
+ ref?: any;
731
+ model_ver?: number | undefined;
732
+ created_at?: Date | null | undefined;
733
+ updated_at?: Date | null | undefined;
734
+ deleted_at?: Date | null | undefined;
735
+ description?: string | undefined;
736
+ tags?: {
737
+ name: string;
738
+ hidden: boolean;
739
+ color?: string | undefined;
740
+ }[] | undefined;
741
+ statement?: string | undefined;
742
+ description_text?: string | undefined;
743
+ order?: number | undefined;
744
+ required?: boolean | undefined;
745
+ allow_multiple_selections?: boolean | undefined;
746
+ })[];
747
+ surveyId: string;
748
+ order: number;
749
+ ref?: any;
750
+ model_ver?: number | undefined;
751
+ created_at?: Date | null | undefined;
752
+ updated_at?: Date | null | undefined;
753
+ deleted_at?: Date | null | undefined;
754
+ question_count?: number | undefined;
755
+ }>;
756
+ export declare const zSurveySchema: z.ZodObject<z.objectUtil.extendShape<{
757
+ id: z.ZodString;
758
+ ref: z.ZodAny;
759
+ tenant: z.ZodString;
760
+ model_ver: z.ZodOptional<z.ZodNumber>;
761
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
762
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
763
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
764
+ }, {
765
+ name: z.ZodString;
766
+ description: z.ZodOptional<z.ZodString>;
767
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
768
+ permission: z.ZodEnum<["private", "company", "public"]>;
769
+ type: z.ZodEnum<["360", "general"]>;
770
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
771
+ id: z.ZodString;
772
+ ref: z.ZodAny;
773
+ tenant: z.ZodString;
774
+ model_ver: z.ZodOptional<z.ZodNumber>;
775
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
776
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
777
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
778
+ }, {
779
+ surveyId: z.ZodString;
780
+ name: z.ZodString;
781
+ description: z.ZodString;
782
+ order: z.ZodNumber;
783
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
784
+ id: z.ZodString;
785
+ ref: z.ZodAny;
786
+ tenant: z.ZodString;
787
+ model_ver: z.ZodOptional<z.ZodNumber>;
788
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
789
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
790
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
791
+ }, {
792
+ surveyId: z.ZodString;
793
+ sectionId: z.ZodString;
794
+ statement: z.ZodOptional<z.ZodString>;
795
+ description: z.ZodOptional<z.ZodString>;
796
+ description_text: z.ZodOptional<z.ZodString>;
797
+ order: z.ZodOptional<z.ZodNumber>;
798
+ required: z.ZodOptional<z.ZodBoolean>;
799
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
800
+ name: z.ZodString;
801
+ color: z.ZodOptional<z.ZodString>;
802
+ hidden: z.ZodBoolean;
803
+ }, "strip", z.ZodTypeAny, {
804
+ name: string;
805
+ hidden: boolean;
806
+ color?: string | undefined;
807
+ }, {
808
+ name: string;
809
+ hidden: boolean;
810
+ color?: string | undefined;
811
+ }>, "many">>;
812
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
813
+ }>, {
814
+ type: z.ZodLiteral<"essay">;
815
+ length_min: z.ZodOptional<z.ZodNumber>;
816
+ length_max: z.ZodOptional<z.ZodNumber>;
817
+ }>, "strip", z.ZodTypeAny, {
818
+ id: string;
819
+ tenant: string;
820
+ type: "essay";
821
+ surveyId: string;
822
+ sectionId: string;
823
+ ref?: any;
824
+ model_ver?: number | undefined;
825
+ created_at?: Date | null | undefined;
826
+ updated_at?: Date | null | undefined;
827
+ deleted_at?: Date | null | undefined;
828
+ description?: string | undefined;
829
+ tags?: {
830
+ name: string;
831
+ hidden: boolean;
832
+ color?: string | undefined;
833
+ }[] | undefined;
834
+ statement?: string | undefined;
835
+ description_text?: string | undefined;
836
+ order?: number | undefined;
837
+ required?: boolean | undefined;
838
+ length_min?: number | undefined;
839
+ length_max?: number | undefined;
840
+ }, {
841
+ id: string;
842
+ tenant: string;
843
+ type: "essay";
844
+ surveyId: string;
845
+ sectionId: string;
846
+ ref?: any;
847
+ model_ver?: number | undefined;
848
+ created_at?: Date | null | undefined;
849
+ updated_at?: Date | null | undefined;
850
+ deleted_at?: Date | null | undefined;
851
+ description?: string | undefined;
852
+ tags?: {
853
+ name: string;
854
+ hidden: boolean;
855
+ color?: string | undefined;
856
+ }[] | undefined;
857
+ statement?: string | undefined;
858
+ description_text?: string | undefined;
859
+ order?: number | undefined;
860
+ required?: boolean | undefined;
861
+ length_min?: number | undefined;
862
+ length_max?: number | undefined;
863
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
864
+ id: z.ZodString;
865
+ ref: z.ZodAny;
866
+ tenant: z.ZodString;
867
+ model_ver: z.ZodOptional<z.ZodNumber>;
868
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
869
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
870
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
871
+ }, {
872
+ surveyId: z.ZodString;
873
+ sectionId: z.ZodString;
874
+ statement: z.ZodOptional<z.ZodString>;
875
+ description: z.ZodOptional<z.ZodString>;
876
+ description_text: z.ZodOptional<z.ZodString>;
877
+ order: z.ZodOptional<z.ZodNumber>;
878
+ required: z.ZodOptional<z.ZodBoolean>;
879
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
880
+ name: z.ZodString;
881
+ color: z.ZodOptional<z.ZodString>;
882
+ hidden: z.ZodBoolean;
883
+ }, "strip", z.ZodTypeAny, {
884
+ name: string;
885
+ hidden: boolean;
886
+ color?: string | undefined;
887
+ }, {
888
+ name: string;
889
+ hidden: boolean;
890
+ color?: string | undefined;
891
+ }>, "many">>;
892
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
893
+ }>, {
894
+ type: z.ZodLiteral<"scale">;
895
+ template: z.ZodOptional<z.ZodString>;
896
+ scale_min: z.ZodOptional<z.ZodNumber>;
897
+ scale_max: z.ZodOptional<z.ZodNumber>;
898
+ }>, "strip", z.ZodTypeAny, {
899
+ id: string;
900
+ tenant: string;
901
+ type: "scale";
902
+ surveyId: string;
903
+ sectionId: string;
904
+ ref?: any;
905
+ model_ver?: number | undefined;
906
+ created_at?: Date | null | undefined;
907
+ updated_at?: Date | null | undefined;
908
+ deleted_at?: Date | null | undefined;
909
+ description?: string | undefined;
910
+ tags?: {
911
+ name: string;
912
+ hidden: boolean;
913
+ color?: string | undefined;
914
+ }[] | undefined;
915
+ statement?: string | undefined;
916
+ description_text?: string | undefined;
917
+ order?: number | undefined;
918
+ required?: boolean | undefined;
919
+ template?: string | undefined;
920
+ scale_min?: number | undefined;
921
+ scale_max?: number | undefined;
922
+ }, {
923
+ id: string;
924
+ tenant: string;
925
+ type: "scale";
926
+ surveyId: string;
927
+ sectionId: string;
928
+ ref?: any;
929
+ model_ver?: number | undefined;
930
+ created_at?: Date | null | undefined;
931
+ updated_at?: Date | null | undefined;
932
+ deleted_at?: Date | null | undefined;
933
+ description?: string | undefined;
934
+ tags?: {
935
+ name: string;
936
+ hidden: boolean;
937
+ color?: string | undefined;
938
+ }[] | undefined;
939
+ statement?: string | undefined;
940
+ description_text?: string | undefined;
941
+ order?: number | undefined;
942
+ required?: boolean | undefined;
943
+ template?: string | undefined;
944
+ scale_min?: number | undefined;
945
+ scale_max?: number | undefined;
946
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
947
+ id: z.ZodString;
948
+ ref: z.ZodAny;
949
+ tenant: z.ZodString;
950
+ model_ver: z.ZodOptional<z.ZodNumber>;
951
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
952
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
953
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
954
+ }, {
955
+ surveyId: z.ZodString;
956
+ sectionId: z.ZodString;
957
+ statement: z.ZodOptional<z.ZodString>;
958
+ description: z.ZodOptional<z.ZodString>;
959
+ description_text: z.ZodOptional<z.ZodString>;
960
+ order: z.ZodOptional<z.ZodNumber>;
961
+ required: z.ZodOptional<z.ZodBoolean>;
962
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
963
+ name: z.ZodString;
964
+ color: z.ZodOptional<z.ZodString>;
965
+ hidden: z.ZodBoolean;
966
+ }, "strip", z.ZodTypeAny, {
967
+ name: string;
968
+ hidden: boolean;
969
+ color?: string | undefined;
970
+ }, {
971
+ name: string;
972
+ hidden: boolean;
973
+ color?: string | undefined;
974
+ }>, "many">>;
975
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
976
+ }>, {
977
+ type: z.ZodLiteral<"options">;
978
+ options: z.ZodArray<z.ZodString, "many">;
979
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
980
+ }>, "strip", z.ZodTypeAny, {
981
+ id: string;
982
+ tenant: string;
983
+ type: "options";
984
+ options: string[];
985
+ surveyId: string;
986
+ sectionId: string;
987
+ ref?: any;
988
+ model_ver?: number | undefined;
989
+ created_at?: Date | null | undefined;
990
+ updated_at?: Date | null | undefined;
991
+ deleted_at?: Date | null | undefined;
992
+ description?: string | undefined;
993
+ tags?: {
994
+ name: string;
995
+ hidden: boolean;
996
+ color?: string | undefined;
997
+ }[] | undefined;
998
+ statement?: string | undefined;
999
+ description_text?: string | undefined;
1000
+ order?: number | undefined;
1001
+ required?: boolean | undefined;
1002
+ allow_multiple_selections?: boolean | undefined;
1003
+ }, {
1004
+ id: string;
1005
+ tenant: string;
1006
+ type: "options";
1007
+ options: string[];
1008
+ surveyId: string;
1009
+ sectionId: string;
1010
+ ref?: any;
1011
+ model_ver?: number | undefined;
1012
+ created_at?: Date | null | undefined;
1013
+ updated_at?: Date | null | undefined;
1014
+ deleted_at?: Date | null | undefined;
1015
+ description?: string | undefined;
1016
+ tags?: {
1017
+ name: string;
1018
+ hidden: boolean;
1019
+ color?: string | undefined;
1020
+ }[] | undefined;
1021
+ statement?: string | undefined;
1022
+ description_text?: string | undefined;
1023
+ order?: number | undefined;
1024
+ required?: boolean | undefined;
1025
+ allow_multiple_selections?: boolean | undefined;
1026
+ }>]>, "many">;
1027
+ question_count: z.ZodOptional<z.ZodNumber>;
1028
+ }>, "strip", z.ZodTypeAny, {
1029
+ id: string;
1030
+ tenant: string;
1031
+ name: string;
1032
+ description: string;
1033
+ questions: ({
1034
+ id: string;
1035
+ tenant: string;
1036
+ type: "scale";
1037
+ surveyId: string;
1038
+ sectionId: string;
1039
+ ref?: any;
1040
+ model_ver?: number | undefined;
1041
+ created_at?: Date | null | undefined;
1042
+ updated_at?: Date | null | undefined;
1043
+ deleted_at?: Date | null | undefined;
1044
+ description?: string | undefined;
1045
+ tags?: {
1046
+ name: string;
1047
+ hidden: boolean;
1048
+ color?: string | undefined;
1049
+ }[] | undefined;
1050
+ statement?: string | undefined;
1051
+ description_text?: string | undefined;
1052
+ order?: number | undefined;
1053
+ required?: boolean | undefined;
1054
+ template?: string | undefined;
1055
+ scale_min?: number | undefined;
1056
+ scale_max?: number | undefined;
1057
+ } | {
1058
+ id: string;
1059
+ tenant: string;
1060
+ type: "essay";
1061
+ surveyId: string;
1062
+ sectionId: string;
1063
+ ref?: any;
1064
+ model_ver?: number | undefined;
1065
+ created_at?: Date | null | undefined;
1066
+ updated_at?: Date | null | undefined;
1067
+ deleted_at?: Date | null | undefined;
1068
+ description?: string | undefined;
1069
+ tags?: {
1070
+ name: string;
1071
+ hidden: boolean;
1072
+ color?: string | undefined;
1073
+ }[] | undefined;
1074
+ statement?: string | undefined;
1075
+ description_text?: string | undefined;
1076
+ order?: number | undefined;
1077
+ required?: boolean | undefined;
1078
+ length_min?: number | undefined;
1079
+ length_max?: number | undefined;
1080
+ } | {
1081
+ id: string;
1082
+ tenant: string;
1083
+ type: "options";
1084
+ options: string[];
1085
+ surveyId: string;
1086
+ sectionId: string;
1087
+ ref?: any;
1088
+ model_ver?: number | undefined;
1089
+ created_at?: Date | null | undefined;
1090
+ updated_at?: Date | null | undefined;
1091
+ deleted_at?: Date | null | undefined;
1092
+ description?: string | undefined;
1093
+ tags?: {
1094
+ name: string;
1095
+ hidden: boolean;
1096
+ color?: string | undefined;
1097
+ }[] | undefined;
1098
+ statement?: string | undefined;
1099
+ description_text?: string | undefined;
1100
+ order?: number | undefined;
1101
+ required?: boolean | undefined;
1102
+ allow_multiple_selections?: boolean | undefined;
1103
+ })[];
1104
+ surveyId: string;
1105
+ order: number;
1106
+ ref?: any;
1107
+ model_ver?: number | undefined;
1108
+ created_at?: Date | null | undefined;
1109
+ updated_at?: Date | null | undefined;
1110
+ deleted_at?: Date | null | undefined;
1111
+ question_count?: number | undefined;
1112
+ }, {
1113
+ id: string;
1114
+ tenant: string;
1115
+ name: string;
1116
+ description: string;
1117
+ questions: ({
1118
+ id: string;
1119
+ tenant: string;
1120
+ type: "scale";
1121
+ surveyId: string;
1122
+ sectionId: string;
1123
+ ref?: any;
1124
+ model_ver?: number | undefined;
1125
+ created_at?: Date | null | undefined;
1126
+ updated_at?: Date | null | undefined;
1127
+ deleted_at?: Date | null | undefined;
1128
+ description?: string | undefined;
1129
+ tags?: {
1130
+ name: string;
1131
+ hidden: boolean;
1132
+ color?: string | undefined;
1133
+ }[] | undefined;
1134
+ statement?: string | undefined;
1135
+ description_text?: string | undefined;
1136
+ order?: number | undefined;
1137
+ required?: boolean | undefined;
1138
+ template?: string | undefined;
1139
+ scale_min?: number | undefined;
1140
+ scale_max?: number | undefined;
1141
+ } | {
1142
+ id: string;
1143
+ tenant: string;
1144
+ type: "essay";
1145
+ surveyId: string;
1146
+ sectionId: string;
1147
+ ref?: any;
1148
+ model_ver?: number | undefined;
1149
+ created_at?: Date | null | undefined;
1150
+ updated_at?: Date | null | undefined;
1151
+ deleted_at?: Date | null | undefined;
1152
+ description?: string | undefined;
1153
+ tags?: {
1154
+ name: string;
1155
+ hidden: boolean;
1156
+ color?: string | undefined;
1157
+ }[] | undefined;
1158
+ statement?: string | undefined;
1159
+ description_text?: string | undefined;
1160
+ order?: number | undefined;
1161
+ required?: boolean | undefined;
1162
+ length_min?: number | undefined;
1163
+ length_max?: number | undefined;
1164
+ } | {
1165
+ id: string;
1166
+ tenant: string;
1167
+ type: "options";
1168
+ options: string[];
1169
+ surveyId: string;
1170
+ sectionId: string;
1171
+ ref?: any;
1172
+ model_ver?: number | undefined;
1173
+ created_at?: Date | null | undefined;
1174
+ updated_at?: Date | null | undefined;
1175
+ deleted_at?: Date | null | undefined;
1176
+ description?: string | undefined;
1177
+ tags?: {
1178
+ name: string;
1179
+ hidden: boolean;
1180
+ color?: string | undefined;
1181
+ }[] | undefined;
1182
+ statement?: string | undefined;
1183
+ description_text?: string | undefined;
1184
+ order?: number | undefined;
1185
+ required?: boolean | undefined;
1186
+ allow_multiple_selections?: boolean | undefined;
1187
+ })[];
1188
+ surveyId: string;
1189
+ order: number;
1190
+ ref?: any;
1191
+ model_ver?: number | undefined;
1192
+ created_at?: Date | null | undefined;
1193
+ updated_at?: Date | null | undefined;
1194
+ deleted_at?: Date | null | undefined;
1195
+ question_count?: number | undefined;
1196
+ }>, "many">>;
1197
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1198
+ name: z.ZodString;
1199
+ color: z.ZodOptional<z.ZodString>;
1200
+ hidden: z.ZodBoolean;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ name: string;
1203
+ hidden: boolean;
1204
+ color?: string | undefined;
1205
+ }, {
1206
+ name: string;
1207
+ hidden: boolean;
1208
+ color?: string | undefined;
1209
+ }>, "many">>;
1210
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
1211
+ id: z.ZodString;
1212
+ ref: z.ZodAny;
1213
+ tenant: z.ZodString;
1214
+ model_ver: z.ZodOptional<z.ZodNumber>;
1215
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1216
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1217
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1218
+ }, {
1219
+ name: z.ZodString;
1220
+ description: z.ZodOptional<z.ZodString>;
1221
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
1222
+ permission: z.ZodEnum<["private", "company", "public"]>;
1223
+ type: z.ZodEnum<["360", "general"]>;
1224
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1225
+ id: z.ZodString;
1226
+ ref: z.ZodAny;
1227
+ tenant: z.ZodString;
1228
+ model_ver: z.ZodOptional<z.ZodNumber>;
1229
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1230
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1231
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1232
+ }, {
1233
+ surveyId: z.ZodString;
1234
+ name: z.ZodString;
1235
+ description: z.ZodString;
1236
+ order: z.ZodNumber;
1237
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1238
+ id: z.ZodString;
1239
+ ref: z.ZodAny;
1240
+ tenant: z.ZodString;
1241
+ model_ver: z.ZodOptional<z.ZodNumber>;
1242
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1243
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1244
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1245
+ }, {
1246
+ surveyId: z.ZodString;
1247
+ sectionId: z.ZodString;
1248
+ statement: z.ZodOptional<z.ZodString>;
1249
+ description: z.ZodOptional<z.ZodString>;
1250
+ description_text: z.ZodOptional<z.ZodString>;
1251
+ order: z.ZodOptional<z.ZodNumber>;
1252
+ required: z.ZodOptional<z.ZodBoolean>;
1253
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1254
+ name: z.ZodString;
1255
+ color: z.ZodOptional<z.ZodString>;
1256
+ hidden: z.ZodBoolean;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ name: string;
1259
+ hidden: boolean;
1260
+ color?: string | undefined;
1261
+ }, {
1262
+ name: string;
1263
+ hidden: boolean;
1264
+ color?: string | undefined;
1265
+ }>, "many">>;
1266
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1267
+ }>, {
1268
+ type: z.ZodLiteral<"essay">;
1269
+ length_min: z.ZodOptional<z.ZodNumber>;
1270
+ length_max: z.ZodOptional<z.ZodNumber>;
1271
+ }>, "strip", z.ZodTypeAny, {
1272
+ id: string;
1273
+ tenant: string;
1274
+ type: "essay";
1275
+ surveyId: string;
1276
+ sectionId: string;
1277
+ ref?: any;
1278
+ model_ver?: number | undefined;
1279
+ created_at?: Date | null | undefined;
1280
+ updated_at?: Date | null | undefined;
1281
+ deleted_at?: Date | null | undefined;
1282
+ description?: string | undefined;
1283
+ tags?: {
1284
+ name: string;
1285
+ hidden: boolean;
1286
+ color?: string | undefined;
1287
+ }[] | undefined;
1288
+ statement?: string | undefined;
1289
+ description_text?: string | undefined;
1290
+ order?: number | undefined;
1291
+ required?: boolean | undefined;
1292
+ length_min?: number | undefined;
1293
+ length_max?: number | undefined;
1294
+ }, {
1295
+ id: string;
1296
+ tenant: string;
1297
+ type: "essay";
1298
+ surveyId: string;
1299
+ sectionId: string;
1300
+ ref?: any;
1301
+ model_ver?: number | undefined;
1302
+ created_at?: Date | null | undefined;
1303
+ updated_at?: Date | null | undefined;
1304
+ deleted_at?: Date | null | undefined;
1305
+ description?: string | undefined;
1306
+ tags?: {
1307
+ name: string;
1308
+ hidden: boolean;
1309
+ color?: string | undefined;
1310
+ }[] | undefined;
1311
+ statement?: string | undefined;
1312
+ description_text?: string | undefined;
1313
+ order?: number | undefined;
1314
+ required?: boolean | undefined;
1315
+ length_min?: number | undefined;
1316
+ length_max?: number | undefined;
1317
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1318
+ id: z.ZodString;
1319
+ ref: z.ZodAny;
1320
+ tenant: z.ZodString;
1321
+ model_ver: z.ZodOptional<z.ZodNumber>;
1322
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1323
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1324
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1325
+ }, {
1326
+ surveyId: z.ZodString;
1327
+ sectionId: z.ZodString;
1328
+ statement: z.ZodOptional<z.ZodString>;
1329
+ description: z.ZodOptional<z.ZodString>;
1330
+ description_text: z.ZodOptional<z.ZodString>;
1331
+ order: z.ZodOptional<z.ZodNumber>;
1332
+ required: z.ZodOptional<z.ZodBoolean>;
1333
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1334
+ name: z.ZodString;
1335
+ color: z.ZodOptional<z.ZodString>;
1336
+ hidden: z.ZodBoolean;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ name: string;
1339
+ hidden: boolean;
1340
+ color?: string | undefined;
1341
+ }, {
1342
+ name: string;
1343
+ hidden: boolean;
1344
+ color?: string | undefined;
1345
+ }>, "many">>;
1346
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1347
+ }>, {
1348
+ type: z.ZodLiteral<"scale">;
1349
+ template: z.ZodOptional<z.ZodString>;
1350
+ scale_min: z.ZodOptional<z.ZodNumber>;
1351
+ scale_max: z.ZodOptional<z.ZodNumber>;
1352
+ }>, "strip", z.ZodTypeAny, {
1353
+ id: string;
1354
+ tenant: string;
1355
+ type: "scale";
1356
+ surveyId: string;
1357
+ sectionId: string;
1358
+ ref?: any;
1359
+ model_ver?: number | undefined;
1360
+ created_at?: Date | null | undefined;
1361
+ updated_at?: Date | null | undefined;
1362
+ deleted_at?: Date | null | undefined;
1363
+ description?: string | undefined;
1364
+ tags?: {
1365
+ name: string;
1366
+ hidden: boolean;
1367
+ color?: string | undefined;
1368
+ }[] | undefined;
1369
+ statement?: string | undefined;
1370
+ description_text?: string | undefined;
1371
+ order?: number | undefined;
1372
+ required?: boolean | undefined;
1373
+ template?: string | undefined;
1374
+ scale_min?: number | undefined;
1375
+ scale_max?: number | undefined;
1376
+ }, {
1377
+ id: string;
1378
+ tenant: string;
1379
+ type: "scale";
1380
+ surveyId: string;
1381
+ sectionId: string;
1382
+ ref?: any;
1383
+ model_ver?: number | undefined;
1384
+ created_at?: Date | null | undefined;
1385
+ updated_at?: Date | null | undefined;
1386
+ deleted_at?: Date | null | undefined;
1387
+ description?: string | undefined;
1388
+ tags?: {
1389
+ name: string;
1390
+ hidden: boolean;
1391
+ color?: string | undefined;
1392
+ }[] | undefined;
1393
+ statement?: string | undefined;
1394
+ description_text?: string | undefined;
1395
+ order?: number | undefined;
1396
+ required?: boolean | undefined;
1397
+ template?: string | undefined;
1398
+ scale_min?: number | undefined;
1399
+ scale_max?: number | undefined;
1400
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1401
+ id: z.ZodString;
1402
+ ref: z.ZodAny;
1403
+ tenant: z.ZodString;
1404
+ model_ver: z.ZodOptional<z.ZodNumber>;
1405
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1406
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1407
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1408
+ }, {
1409
+ surveyId: z.ZodString;
1410
+ sectionId: z.ZodString;
1411
+ statement: z.ZodOptional<z.ZodString>;
1412
+ description: z.ZodOptional<z.ZodString>;
1413
+ description_text: z.ZodOptional<z.ZodString>;
1414
+ order: z.ZodOptional<z.ZodNumber>;
1415
+ required: z.ZodOptional<z.ZodBoolean>;
1416
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1417
+ name: z.ZodString;
1418
+ color: z.ZodOptional<z.ZodString>;
1419
+ hidden: z.ZodBoolean;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ name: string;
1422
+ hidden: boolean;
1423
+ color?: string | undefined;
1424
+ }, {
1425
+ name: string;
1426
+ hidden: boolean;
1427
+ color?: string | undefined;
1428
+ }>, "many">>;
1429
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1430
+ }>, {
1431
+ type: z.ZodLiteral<"options">;
1432
+ options: z.ZodArray<z.ZodString, "many">;
1433
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
1434
+ }>, "strip", z.ZodTypeAny, {
1435
+ id: string;
1436
+ tenant: string;
1437
+ type: "options";
1438
+ options: string[];
1439
+ surveyId: string;
1440
+ sectionId: string;
1441
+ ref?: any;
1442
+ model_ver?: number | undefined;
1443
+ created_at?: Date | null | undefined;
1444
+ updated_at?: Date | null | undefined;
1445
+ deleted_at?: Date | null | undefined;
1446
+ description?: string | undefined;
1447
+ tags?: {
1448
+ name: string;
1449
+ hidden: boolean;
1450
+ color?: string | undefined;
1451
+ }[] | undefined;
1452
+ statement?: string | undefined;
1453
+ description_text?: string | undefined;
1454
+ order?: number | undefined;
1455
+ required?: boolean | undefined;
1456
+ allow_multiple_selections?: boolean | undefined;
1457
+ }, {
1458
+ id: string;
1459
+ tenant: string;
1460
+ type: "options";
1461
+ options: string[];
1462
+ surveyId: string;
1463
+ sectionId: string;
1464
+ ref?: any;
1465
+ model_ver?: number | undefined;
1466
+ created_at?: Date | null | undefined;
1467
+ updated_at?: Date | null | undefined;
1468
+ deleted_at?: Date | null | undefined;
1469
+ description?: string | undefined;
1470
+ tags?: {
1471
+ name: string;
1472
+ hidden: boolean;
1473
+ color?: string | undefined;
1474
+ }[] | undefined;
1475
+ statement?: string | undefined;
1476
+ description_text?: string | undefined;
1477
+ order?: number | undefined;
1478
+ required?: boolean | undefined;
1479
+ allow_multiple_selections?: boolean | undefined;
1480
+ }>]>, "many">;
1481
+ question_count: z.ZodOptional<z.ZodNumber>;
1482
+ }>, "strip", z.ZodTypeAny, {
1483
+ id: string;
1484
+ tenant: string;
1485
+ name: string;
1486
+ description: string;
1487
+ questions: ({
1488
+ id: string;
1489
+ tenant: string;
1490
+ type: "scale";
1491
+ surveyId: string;
1492
+ sectionId: string;
1493
+ ref?: any;
1494
+ model_ver?: number | undefined;
1495
+ created_at?: Date | null | undefined;
1496
+ updated_at?: Date | null | undefined;
1497
+ deleted_at?: Date | null | undefined;
1498
+ description?: string | undefined;
1499
+ tags?: {
1500
+ name: string;
1501
+ hidden: boolean;
1502
+ color?: string | undefined;
1503
+ }[] | undefined;
1504
+ statement?: string | undefined;
1505
+ description_text?: string | undefined;
1506
+ order?: number | undefined;
1507
+ required?: boolean | undefined;
1508
+ template?: string | undefined;
1509
+ scale_min?: number | undefined;
1510
+ scale_max?: number | undefined;
1511
+ } | {
1512
+ id: string;
1513
+ tenant: string;
1514
+ type: "essay";
1515
+ surveyId: string;
1516
+ sectionId: string;
1517
+ ref?: any;
1518
+ model_ver?: number | undefined;
1519
+ created_at?: Date | null | undefined;
1520
+ updated_at?: Date | null | undefined;
1521
+ deleted_at?: Date | null | undefined;
1522
+ description?: string | undefined;
1523
+ tags?: {
1524
+ name: string;
1525
+ hidden: boolean;
1526
+ color?: string | undefined;
1527
+ }[] | undefined;
1528
+ statement?: string | undefined;
1529
+ description_text?: string | undefined;
1530
+ order?: number | undefined;
1531
+ required?: boolean | undefined;
1532
+ length_min?: number | undefined;
1533
+ length_max?: number | undefined;
1534
+ } | {
1535
+ id: string;
1536
+ tenant: string;
1537
+ type: "options";
1538
+ options: string[];
1539
+ surveyId: string;
1540
+ sectionId: string;
1541
+ ref?: any;
1542
+ model_ver?: number | undefined;
1543
+ created_at?: Date | null | undefined;
1544
+ updated_at?: Date | null | undefined;
1545
+ deleted_at?: Date | null | undefined;
1546
+ description?: string | undefined;
1547
+ tags?: {
1548
+ name: string;
1549
+ hidden: boolean;
1550
+ color?: string | undefined;
1551
+ }[] | undefined;
1552
+ statement?: string | undefined;
1553
+ description_text?: string | undefined;
1554
+ order?: number | undefined;
1555
+ required?: boolean | undefined;
1556
+ allow_multiple_selections?: boolean | undefined;
1557
+ })[];
1558
+ surveyId: string;
1559
+ order: number;
1560
+ ref?: any;
1561
+ model_ver?: number | undefined;
1562
+ created_at?: Date | null | undefined;
1563
+ updated_at?: Date | null | undefined;
1564
+ deleted_at?: Date | null | undefined;
1565
+ question_count?: number | undefined;
1566
+ }, {
1567
+ id: string;
1568
+ tenant: string;
1569
+ name: string;
1570
+ description: string;
1571
+ questions: ({
1572
+ id: string;
1573
+ tenant: string;
1574
+ type: "scale";
1575
+ surveyId: string;
1576
+ sectionId: string;
1577
+ ref?: any;
1578
+ model_ver?: number | undefined;
1579
+ created_at?: Date | null | undefined;
1580
+ updated_at?: Date | null | undefined;
1581
+ deleted_at?: Date | null | undefined;
1582
+ description?: string | undefined;
1583
+ tags?: {
1584
+ name: string;
1585
+ hidden: boolean;
1586
+ color?: string | undefined;
1587
+ }[] | undefined;
1588
+ statement?: string | undefined;
1589
+ description_text?: string | undefined;
1590
+ order?: number | undefined;
1591
+ required?: boolean | undefined;
1592
+ template?: string | undefined;
1593
+ scale_min?: number | undefined;
1594
+ scale_max?: number | undefined;
1595
+ } | {
1596
+ id: string;
1597
+ tenant: string;
1598
+ type: "essay";
1599
+ surveyId: string;
1600
+ sectionId: string;
1601
+ ref?: any;
1602
+ model_ver?: number | undefined;
1603
+ created_at?: Date | null | undefined;
1604
+ updated_at?: Date | null | undefined;
1605
+ deleted_at?: Date | null | undefined;
1606
+ description?: string | undefined;
1607
+ tags?: {
1608
+ name: string;
1609
+ hidden: boolean;
1610
+ color?: string | undefined;
1611
+ }[] | undefined;
1612
+ statement?: string | undefined;
1613
+ description_text?: string | undefined;
1614
+ order?: number | undefined;
1615
+ required?: boolean | undefined;
1616
+ length_min?: number | undefined;
1617
+ length_max?: number | undefined;
1618
+ } | {
1619
+ id: string;
1620
+ tenant: string;
1621
+ type: "options";
1622
+ options: string[];
1623
+ surveyId: string;
1624
+ sectionId: string;
1625
+ ref?: any;
1626
+ model_ver?: number | undefined;
1627
+ created_at?: Date | null | undefined;
1628
+ updated_at?: Date | null | undefined;
1629
+ deleted_at?: Date | null | undefined;
1630
+ description?: string | undefined;
1631
+ tags?: {
1632
+ name: string;
1633
+ hidden: boolean;
1634
+ color?: string | undefined;
1635
+ }[] | undefined;
1636
+ statement?: string | undefined;
1637
+ description_text?: string | undefined;
1638
+ order?: number | undefined;
1639
+ required?: boolean | undefined;
1640
+ allow_multiple_selections?: boolean | undefined;
1641
+ })[];
1642
+ surveyId: string;
1643
+ order: number;
1644
+ ref?: any;
1645
+ model_ver?: number | undefined;
1646
+ created_at?: Date | null | undefined;
1647
+ updated_at?: Date | null | undefined;
1648
+ deleted_at?: Date | null | undefined;
1649
+ question_count?: number | undefined;
1650
+ }>, "many">>;
1651
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1652
+ name: z.ZodString;
1653
+ color: z.ZodOptional<z.ZodString>;
1654
+ hidden: z.ZodBoolean;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ name: string;
1657
+ hidden: boolean;
1658
+ color?: string | undefined;
1659
+ }, {
1660
+ name: string;
1661
+ hidden: boolean;
1662
+ color?: string | undefined;
1663
+ }>, "many">>;
1664
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
1665
+ id: z.ZodString;
1666
+ ref: z.ZodAny;
1667
+ tenant: z.ZodString;
1668
+ model_ver: z.ZodOptional<z.ZodNumber>;
1669
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1670
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1671
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1672
+ }, {
1673
+ name: z.ZodString;
1674
+ description: z.ZodOptional<z.ZodString>;
1675
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
1676
+ permission: z.ZodEnum<["private", "company", "public"]>;
1677
+ type: z.ZodEnum<["360", "general"]>;
1678
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1679
+ id: z.ZodString;
1680
+ ref: z.ZodAny;
1681
+ tenant: z.ZodString;
1682
+ model_ver: z.ZodOptional<z.ZodNumber>;
1683
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1684
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1685
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1686
+ }, {
1687
+ surveyId: z.ZodString;
1688
+ name: z.ZodString;
1689
+ description: z.ZodString;
1690
+ order: z.ZodNumber;
1691
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1692
+ id: z.ZodString;
1693
+ ref: z.ZodAny;
1694
+ tenant: z.ZodString;
1695
+ model_ver: z.ZodOptional<z.ZodNumber>;
1696
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1697
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1698
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1699
+ }, {
1700
+ surveyId: z.ZodString;
1701
+ sectionId: z.ZodString;
1702
+ statement: z.ZodOptional<z.ZodString>;
1703
+ description: z.ZodOptional<z.ZodString>;
1704
+ description_text: z.ZodOptional<z.ZodString>;
1705
+ order: z.ZodOptional<z.ZodNumber>;
1706
+ required: z.ZodOptional<z.ZodBoolean>;
1707
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1708
+ name: z.ZodString;
1709
+ color: z.ZodOptional<z.ZodString>;
1710
+ hidden: z.ZodBoolean;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ name: string;
1713
+ hidden: boolean;
1714
+ color?: string | undefined;
1715
+ }, {
1716
+ name: string;
1717
+ hidden: boolean;
1718
+ color?: string | undefined;
1719
+ }>, "many">>;
1720
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1721
+ }>, {
1722
+ type: z.ZodLiteral<"essay">;
1723
+ length_min: z.ZodOptional<z.ZodNumber>;
1724
+ length_max: z.ZodOptional<z.ZodNumber>;
1725
+ }>, "strip", z.ZodTypeAny, {
1726
+ id: string;
1727
+ tenant: string;
1728
+ type: "essay";
1729
+ surveyId: string;
1730
+ sectionId: string;
1731
+ ref?: any;
1732
+ model_ver?: number | undefined;
1733
+ created_at?: Date | null | undefined;
1734
+ updated_at?: Date | null | undefined;
1735
+ deleted_at?: Date | null | undefined;
1736
+ description?: string | undefined;
1737
+ tags?: {
1738
+ name: string;
1739
+ hidden: boolean;
1740
+ color?: string | undefined;
1741
+ }[] | undefined;
1742
+ statement?: string | undefined;
1743
+ description_text?: string | undefined;
1744
+ order?: number | undefined;
1745
+ required?: boolean | undefined;
1746
+ length_min?: number | undefined;
1747
+ length_max?: number | undefined;
1748
+ }, {
1749
+ id: string;
1750
+ tenant: string;
1751
+ type: "essay";
1752
+ surveyId: string;
1753
+ sectionId: string;
1754
+ ref?: any;
1755
+ model_ver?: number | undefined;
1756
+ created_at?: Date | null | undefined;
1757
+ updated_at?: Date | null | undefined;
1758
+ deleted_at?: Date | null | undefined;
1759
+ description?: string | undefined;
1760
+ tags?: {
1761
+ name: string;
1762
+ hidden: boolean;
1763
+ color?: string | undefined;
1764
+ }[] | undefined;
1765
+ statement?: string | undefined;
1766
+ description_text?: string | undefined;
1767
+ order?: number | undefined;
1768
+ required?: boolean | undefined;
1769
+ length_min?: number | undefined;
1770
+ length_max?: number | undefined;
1771
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1772
+ id: z.ZodString;
1773
+ ref: z.ZodAny;
1774
+ tenant: z.ZodString;
1775
+ model_ver: z.ZodOptional<z.ZodNumber>;
1776
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1777
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1778
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1779
+ }, {
1780
+ surveyId: z.ZodString;
1781
+ sectionId: z.ZodString;
1782
+ statement: z.ZodOptional<z.ZodString>;
1783
+ description: z.ZodOptional<z.ZodString>;
1784
+ description_text: z.ZodOptional<z.ZodString>;
1785
+ order: z.ZodOptional<z.ZodNumber>;
1786
+ required: z.ZodOptional<z.ZodBoolean>;
1787
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1788
+ name: z.ZodString;
1789
+ color: z.ZodOptional<z.ZodString>;
1790
+ hidden: z.ZodBoolean;
1791
+ }, "strip", z.ZodTypeAny, {
1792
+ name: string;
1793
+ hidden: boolean;
1794
+ color?: string | undefined;
1795
+ }, {
1796
+ name: string;
1797
+ hidden: boolean;
1798
+ color?: string | undefined;
1799
+ }>, "many">>;
1800
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1801
+ }>, {
1802
+ type: z.ZodLiteral<"scale">;
1803
+ template: z.ZodOptional<z.ZodString>;
1804
+ scale_min: z.ZodOptional<z.ZodNumber>;
1805
+ scale_max: z.ZodOptional<z.ZodNumber>;
1806
+ }>, "strip", z.ZodTypeAny, {
1807
+ id: string;
1808
+ tenant: string;
1809
+ type: "scale";
1810
+ surveyId: string;
1811
+ sectionId: string;
1812
+ ref?: any;
1813
+ model_ver?: number | undefined;
1814
+ created_at?: Date | null | undefined;
1815
+ updated_at?: Date | null | undefined;
1816
+ deleted_at?: Date | null | undefined;
1817
+ description?: string | undefined;
1818
+ tags?: {
1819
+ name: string;
1820
+ hidden: boolean;
1821
+ color?: string | undefined;
1822
+ }[] | undefined;
1823
+ statement?: string | undefined;
1824
+ description_text?: string | undefined;
1825
+ order?: number | undefined;
1826
+ required?: boolean | undefined;
1827
+ template?: string | undefined;
1828
+ scale_min?: number | undefined;
1829
+ scale_max?: number | undefined;
1830
+ }, {
1831
+ id: string;
1832
+ tenant: string;
1833
+ type: "scale";
1834
+ surveyId: string;
1835
+ sectionId: string;
1836
+ ref?: any;
1837
+ model_ver?: number | undefined;
1838
+ created_at?: Date | null | undefined;
1839
+ updated_at?: Date | null | undefined;
1840
+ deleted_at?: Date | null | undefined;
1841
+ description?: string | undefined;
1842
+ tags?: {
1843
+ name: string;
1844
+ hidden: boolean;
1845
+ color?: string | undefined;
1846
+ }[] | undefined;
1847
+ statement?: string | undefined;
1848
+ description_text?: string | undefined;
1849
+ order?: number | undefined;
1850
+ required?: boolean | undefined;
1851
+ template?: string | undefined;
1852
+ scale_min?: number | undefined;
1853
+ scale_max?: number | undefined;
1854
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1855
+ id: z.ZodString;
1856
+ ref: z.ZodAny;
1857
+ tenant: z.ZodString;
1858
+ model_ver: z.ZodOptional<z.ZodNumber>;
1859
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1860
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1861
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1862
+ }, {
1863
+ surveyId: z.ZodString;
1864
+ sectionId: z.ZodString;
1865
+ statement: z.ZodOptional<z.ZodString>;
1866
+ description: z.ZodOptional<z.ZodString>;
1867
+ description_text: z.ZodOptional<z.ZodString>;
1868
+ order: z.ZodOptional<z.ZodNumber>;
1869
+ required: z.ZodOptional<z.ZodBoolean>;
1870
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1871
+ name: z.ZodString;
1872
+ color: z.ZodOptional<z.ZodString>;
1873
+ hidden: z.ZodBoolean;
1874
+ }, "strip", z.ZodTypeAny, {
1875
+ name: string;
1876
+ hidden: boolean;
1877
+ color?: string | undefined;
1878
+ }, {
1879
+ name: string;
1880
+ hidden: boolean;
1881
+ color?: string | undefined;
1882
+ }>, "many">>;
1883
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
1884
+ }>, {
1885
+ type: z.ZodLiteral<"options">;
1886
+ options: z.ZodArray<z.ZodString, "many">;
1887
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
1888
+ }>, "strip", z.ZodTypeAny, {
1889
+ id: string;
1890
+ tenant: string;
1891
+ type: "options";
1892
+ options: string[];
1893
+ surveyId: string;
1894
+ sectionId: string;
1895
+ ref?: any;
1896
+ model_ver?: number | undefined;
1897
+ created_at?: Date | null | undefined;
1898
+ updated_at?: Date | null | undefined;
1899
+ deleted_at?: Date | null | undefined;
1900
+ description?: string | undefined;
1901
+ tags?: {
1902
+ name: string;
1903
+ hidden: boolean;
1904
+ color?: string | undefined;
1905
+ }[] | undefined;
1906
+ statement?: string | undefined;
1907
+ description_text?: string | undefined;
1908
+ order?: number | undefined;
1909
+ required?: boolean | undefined;
1910
+ allow_multiple_selections?: boolean | undefined;
1911
+ }, {
1912
+ id: string;
1913
+ tenant: string;
1914
+ type: "options";
1915
+ options: string[];
1916
+ surveyId: string;
1917
+ sectionId: string;
1918
+ ref?: any;
1919
+ model_ver?: number | undefined;
1920
+ created_at?: Date | null | undefined;
1921
+ updated_at?: Date | null | undefined;
1922
+ deleted_at?: Date | null | undefined;
1923
+ description?: string | undefined;
1924
+ tags?: {
1925
+ name: string;
1926
+ hidden: boolean;
1927
+ color?: string | undefined;
1928
+ }[] | undefined;
1929
+ statement?: string | undefined;
1930
+ description_text?: string | undefined;
1931
+ order?: number | undefined;
1932
+ required?: boolean | undefined;
1933
+ allow_multiple_selections?: boolean | undefined;
1934
+ }>]>, "many">;
1935
+ question_count: z.ZodOptional<z.ZodNumber>;
1936
+ }>, "strip", z.ZodTypeAny, {
1937
+ id: string;
1938
+ tenant: string;
1939
+ name: string;
1940
+ description: string;
1941
+ questions: ({
1942
+ id: string;
1943
+ tenant: string;
1944
+ type: "scale";
1945
+ surveyId: string;
1946
+ sectionId: string;
1947
+ ref?: any;
1948
+ model_ver?: number | undefined;
1949
+ created_at?: Date | null | undefined;
1950
+ updated_at?: Date | null | undefined;
1951
+ deleted_at?: Date | null | undefined;
1952
+ description?: string | undefined;
1953
+ tags?: {
1954
+ name: string;
1955
+ hidden: boolean;
1956
+ color?: string | undefined;
1957
+ }[] | undefined;
1958
+ statement?: string | undefined;
1959
+ description_text?: string | undefined;
1960
+ order?: number | undefined;
1961
+ required?: boolean | undefined;
1962
+ template?: string | undefined;
1963
+ scale_min?: number | undefined;
1964
+ scale_max?: number | undefined;
1965
+ } | {
1966
+ id: string;
1967
+ tenant: string;
1968
+ type: "essay";
1969
+ surveyId: string;
1970
+ sectionId: string;
1971
+ ref?: any;
1972
+ model_ver?: number | undefined;
1973
+ created_at?: Date | null | undefined;
1974
+ updated_at?: Date | null | undefined;
1975
+ deleted_at?: Date | null | undefined;
1976
+ description?: string | undefined;
1977
+ tags?: {
1978
+ name: string;
1979
+ hidden: boolean;
1980
+ color?: string | undefined;
1981
+ }[] | undefined;
1982
+ statement?: string | undefined;
1983
+ description_text?: string | undefined;
1984
+ order?: number | undefined;
1985
+ required?: boolean | undefined;
1986
+ length_min?: number | undefined;
1987
+ length_max?: number | undefined;
1988
+ } | {
1989
+ id: string;
1990
+ tenant: string;
1991
+ type: "options";
1992
+ options: string[];
1993
+ surveyId: string;
1994
+ sectionId: string;
1995
+ ref?: any;
1996
+ model_ver?: number | undefined;
1997
+ created_at?: Date | null | undefined;
1998
+ updated_at?: Date | null | undefined;
1999
+ deleted_at?: Date | null | undefined;
2000
+ description?: string | undefined;
2001
+ tags?: {
2002
+ name: string;
2003
+ hidden: boolean;
2004
+ color?: string | undefined;
2005
+ }[] | undefined;
2006
+ statement?: string | undefined;
2007
+ description_text?: string | undefined;
2008
+ order?: number | undefined;
2009
+ required?: boolean | undefined;
2010
+ allow_multiple_selections?: boolean | undefined;
2011
+ })[];
2012
+ surveyId: string;
2013
+ order: number;
2014
+ ref?: any;
2015
+ model_ver?: number | undefined;
2016
+ created_at?: Date | null | undefined;
2017
+ updated_at?: Date | null | undefined;
2018
+ deleted_at?: Date | null | undefined;
2019
+ question_count?: number | undefined;
2020
+ }, {
2021
+ id: string;
2022
+ tenant: string;
2023
+ name: string;
2024
+ description: string;
2025
+ questions: ({
2026
+ id: string;
2027
+ tenant: string;
2028
+ type: "scale";
2029
+ surveyId: string;
2030
+ sectionId: string;
2031
+ ref?: any;
2032
+ model_ver?: number | undefined;
2033
+ created_at?: Date | null | undefined;
2034
+ updated_at?: Date | null | undefined;
2035
+ deleted_at?: Date | null | undefined;
2036
+ description?: string | undefined;
2037
+ tags?: {
2038
+ name: string;
2039
+ hidden: boolean;
2040
+ color?: string | undefined;
2041
+ }[] | undefined;
2042
+ statement?: string | undefined;
2043
+ description_text?: string | undefined;
2044
+ order?: number | undefined;
2045
+ required?: boolean | undefined;
2046
+ template?: string | undefined;
2047
+ scale_min?: number | undefined;
2048
+ scale_max?: number | undefined;
2049
+ } | {
2050
+ id: string;
2051
+ tenant: string;
2052
+ type: "essay";
2053
+ surveyId: string;
2054
+ sectionId: string;
2055
+ ref?: any;
2056
+ model_ver?: number | undefined;
2057
+ created_at?: Date | null | undefined;
2058
+ updated_at?: Date | null | undefined;
2059
+ deleted_at?: Date | null | undefined;
2060
+ description?: string | undefined;
2061
+ tags?: {
2062
+ name: string;
2063
+ hidden: boolean;
2064
+ color?: string | undefined;
2065
+ }[] | undefined;
2066
+ statement?: string | undefined;
2067
+ description_text?: string | undefined;
2068
+ order?: number | undefined;
2069
+ required?: boolean | undefined;
2070
+ length_min?: number | undefined;
2071
+ length_max?: number | undefined;
2072
+ } | {
2073
+ id: string;
2074
+ tenant: string;
2075
+ type: "options";
2076
+ options: string[];
2077
+ surveyId: string;
2078
+ sectionId: string;
2079
+ ref?: any;
2080
+ model_ver?: number | undefined;
2081
+ created_at?: Date | null | undefined;
2082
+ updated_at?: Date | null | undefined;
2083
+ deleted_at?: Date | null | undefined;
2084
+ description?: string | undefined;
2085
+ tags?: {
2086
+ name: string;
2087
+ hidden: boolean;
2088
+ color?: string | undefined;
2089
+ }[] | undefined;
2090
+ statement?: string | undefined;
2091
+ description_text?: string | undefined;
2092
+ order?: number | undefined;
2093
+ required?: boolean | undefined;
2094
+ allow_multiple_selections?: boolean | undefined;
2095
+ })[];
2096
+ surveyId: string;
2097
+ order: number;
2098
+ ref?: any;
2099
+ model_ver?: number | undefined;
2100
+ created_at?: Date | null | undefined;
2101
+ updated_at?: Date | null | undefined;
2102
+ deleted_at?: Date | null | undefined;
2103
+ question_count?: number | undefined;
2104
+ }>, "many">>;
2105
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2106
+ name: z.ZodString;
2107
+ color: z.ZodOptional<z.ZodString>;
2108
+ hidden: z.ZodBoolean;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ name: string;
2111
+ hidden: boolean;
2112
+ color?: string | undefined;
2113
+ }, {
2114
+ name: string;
2115
+ hidden: boolean;
2116
+ color?: string | undefined;
2117
+ }>, "many">>;
2118
+ }>, z.ZodTypeAny, "passthrough">>;
2119
+ export declare const zSurveyResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
2120
+ id: z.ZodString;
2121
+ ref: z.ZodAny;
2122
+ tenant: z.ZodString;
2123
+ model_ver: z.ZodOptional<z.ZodNumber>;
2124
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2125
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2126
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2127
+ }, {
2128
+ question_id: z.ZodString;
2129
+ answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2130
+ date: z.ZodDate;
2131
+ }>, "strip", z.ZodTypeAny, {
2132
+ id: string;
2133
+ tenant: string;
2134
+ question_id: string;
2135
+ answer: string | string[];
2136
+ date: Date;
2137
+ ref?: any;
2138
+ model_ver?: number | undefined;
2139
+ created_at?: Date | null | undefined;
2140
+ updated_at?: Date | null | undefined;
2141
+ deleted_at?: Date | null | undefined;
2142
+ }, {
2143
+ id: string;
2144
+ tenant: string;
2145
+ question_id: string;
2146
+ answer: string | string[];
2147
+ date: Date;
2148
+ ref?: any;
2149
+ model_ver?: number | undefined;
2150
+ created_at?: Date | null | undefined;
2151
+ updated_at?: Date | null | undefined;
2152
+ deleted_at?: Date | null | undefined;
2153
+ }>;
2154
+ export declare const zSurveySubmissionSchema: z.ZodObject<z.objectUtil.extendShape<{
2155
+ id: z.ZodString;
2156
+ ref: z.ZodAny;
2157
+ tenant: z.ZodString;
2158
+ model_ver: z.ZodOptional<z.ZodNumber>;
2159
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2160
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2161
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2162
+ }, {
2163
+ deploymentId: z.ZodOptional<z.ZodString>;
2164
+ submission_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2165
+ status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
2166
+ modified_after_completion: z.ZodBoolean;
2167
+ inviteeId: z.ZodOptional<z.ZodString>;
2168
+ user_name: z.ZodOptional<z.ZodString>;
2169
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2170
+ id: z.ZodString;
2171
+ ref: z.ZodAny;
2172
+ tenant: z.ZodString;
2173
+ model_ver: z.ZodOptional<z.ZodNumber>;
2174
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2175
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2176
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2177
+ }, {
2178
+ question_id: z.ZodString;
2179
+ answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2180
+ date: z.ZodDate;
2181
+ }>, "strip", z.ZodTypeAny, {
2182
+ id: string;
2183
+ tenant: string;
2184
+ question_id: string;
2185
+ answer: string | string[];
2186
+ date: Date;
2187
+ ref?: any;
2188
+ model_ver?: number | undefined;
2189
+ created_at?: Date | null | undefined;
2190
+ updated_at?: Date | null | undefined;
2191
+ deleted_at?: Date | null | undefined;
2192
+ }, {
2193
+ id: string;
2194
+ tenant: string;
2195
+ question_id: string;
2196
+ answer: string | string[];
2197
+ date: Date;
2198
+ ref?: any;
2199
+ model_ver?: number | undefined;
2200
+ created_at?: Date | null | undefined;
2201
+ updated_at?: Date | null | undefined;
2202
+ deleted_at?: Date | null | undefined;
2203
+ }>, "many">>;
2204
+ }>, "strip", z.ZodTypeAny, {
2205
+ id: string;
2206
+ tenant: string;
2207
+ status: "not_started" | "in_progress" | "completed";
2208
+ modified_after_completion: boolean;
2209
+ ref?: any;
2210
+ model_ver?: number | undefined;
2211
+ created_at?: Date | null | undefined;
2212
+ updated_at?: Date | null | undefined;
2213
+ deleted_at?: Date | null | undefined;
2214
+ deploymentId?: string | undefined;
2215
+ submission_date?: Date | null | undefined;
2216
+ inviteeId?: string | undefined;
2217
+ user_name?: string | undefined;
2218
+ responses?: {
2219
+ id: string;
2220
+ tenant: string;
2221
+ question_id: string;
2222
+ answer: string | string[];
2223
+ date: Date;
2224
+ ref?: any;
2225
+ model_ver?: number | undefined;
2226
+ created_at?: Date | null | undefined;
2227
+ updated_at?: Date | null | undefined;
2228
+ deleted_at?: Date | null | undefined;
2229
+ }[] | undefined;
2230
+ }, {
2231
+ id: string;
2232
+ tenant: string;
2233
+ status: "not_started" | "in_progress" | "completed";
2234
+ modified_after_completion: boolean;
2235
+ ref?: any;
2236
+ model_ver?: number | undefined;
2237
+ created_at?: Date | null | undefined;
2238
+ updated_at?: Date | null | undefined;
2239
+ deleted_at?: Date | null | undefined;
2240
+ deploymentId?: string | undefined;
2241
+ submission_date?: Date | null | undefined;
2242
+ inviteeId?: string | undefined;
2243
+ user_name?: string | undefined;
2244
+ responses?: {
2245
+ id: string;
2246
+ tenant: string;
2247
+ question_id: string;
2248
+ answer: string | string[];
2249
+ date: Date;
2250
+ ref?: any;
2251
+ model_ver?: number | undefined;
2252
+ created_at?: Date | null | undefined;
2253
+ updated_at?: Date | null | undefined;
2254
+ deleted_at?: Date | null | undefined;
2255
+ }[] | undefined;
2256
+ }>;
2257
+ export declare const zSurveyInviteeSchema: z.ZodObject<z.objectUtil.extendShape<{
2258
+ id: z.ZodString;
2259
+ ref: z.ZodAny;
2260
+ tenant: z.ZodString;
2261
+ model_ver: z.ZodOptional<z.ZodNumber>;
2262
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2263
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2264
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2265
+ }, {
2266
+ name: z.ZodString;
2267
+ email: z.ZodOptional<z.ZodString>;
2268
+ phone: z.ZodOptional<z.ZodString>;
2269
+ responded: z.ZodBoolean;
2270
+ }>, "strip", z.ZodTypeAny, {
2271
+ id: string;
2272
+ tenant: string;
2273
+ name: string;
2274
+ responded: boolean;
2275
+ ref?: any;
2276
+ model_ver?: number | undefined;
2277
+ created_at?: Date | null | undefined;
2278
+ updated_at?: Date | null | undefined;
2279
+ deleted_at?: Date | null | undefined;
2280
+ email?: string | undefined;
2281
+ phone?: string | undefined;
2282
+ }, {
2283
+ id: string;
2284
+ tenant: string;
2285
+ name: string;
2286
+ responded: boolean;
2287
+ ref?: any;
2288
+ model_ver?: number | undefined;
2289
+ created_at?: Date | null | undefined;
2290
+ updated_at?: Date | null | undefined;
2291
+ deleted_at?: Date | null | undefined;
2292
+ email?: string | undefined;
2293
+ phone?: string | undefined;
2294
+ }>;
2295
+ export declare const zSurveyDeploymentSchema: z.ZodObject<z.objectUtil.extendShape<{
2296
+ id: z.ZodString;
2297
+ ref: z.ZodAny;
2298
+ tenant: z.ZodString;
2299
+ model_ver: z.ZodOptional<z.ZodNumber>;
2300
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2301
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2302
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2303
+ }, {
2304
+ name: z.ZodString;
2305
+ description: z.ZodOptional<z.ZodString>;
2306
+ surveySourceRef: z.ZodAny;
2307
+ survey: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
2308
+ id: z.ZodString;
2309
+ ref: z.ZodAny;
2310
+ tenant: z.ZodString;
2311
+ model_ver: z.ZodOptional<z.ZodNumber>;
2312
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2313
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2314
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2315
+ }, {
2316
+ name: z.ZodString;
2317
+ description: z.ZodOptional<z.ZodString>;
2318
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
2319
+ permission: z.ZodEnum<["private", "company", "public"]>;
2320
+ type: z.ZodEnum<["360", "general"]>;
2321
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2322
+ id: z.ZodString;
2323
+ ref: z.ZodAny;
2324
+ tenant: z.ZodString;
2325
+ model_ver: z.ZodOptional<z.ZodNumber>;
2326
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2327
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2328
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2329
+ }, {
2330
+ surveyId: z.ZodString;
2331
+ name: z.ZodString;
2332
+ description: z.ZodString;
2333
+ order: z.ZodNumber;
2334
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2335
+ id: z.ZodString;
2336
+ ref: z.ZodAny;
2337
+ tenant: z.ZodString;
2338
+ model_ver: z.ZodOptional<z.ZodNumber>;
2339
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2340
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2341
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2342
+ }, {
2343
+ surveyId: z.ZodString;
2344
+ sectionId: z.ZodString;
2345
+ statement: z.ZodOptional<z.ZodString>;
2346
+ description: z.ZodOptional<z.ZodString>;
2347
+ description_text: z.ZodOptional<z.ZodString>;
2348
+ order: z.ZodOptional<z.ZodNumber>;
2349
+ required: z.ZodOptional<z.ZodBoolean>;
2350
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2351
+ name: z.ZodString;
2352
+ color: z.ZodOptional<z.ZodString>;
2353
+ hidden: z.ZodBoolean;
2354
+ }, "strip", z.ZodTypeAny, {
2355
+ name: string;
2356
+ hidden: boolean;
2357
+ color?: string | undefined;
2358
+ }, {
2359
+ name: string;
2360
+ hidden: boolean;
2361
+ color?: string | undefined;
2362
+ }>, "many">>;
2363
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2364
+ }>, {
2365
+ type: z.ZodLiteral<"essay">;
2366
+ length_min: z.ZodOptional<z.ZodNumber>;
2367
+ length_max: z.ZodOptional<z.ZodNumber>;
2368
+ }>, "strip", z.ZodTypeAny, {
2369
+ id: string;
2370
+ tenant: string;
2371
+ type: "essay";
2372
+ surveyId: string;
2373
+ sectionId: string;
2374
+ ref?: any;
2375
+ model_ver?: number | undefined;
2376
+ created_at?: Date | null | undefined;
2377
+ updated_at?: Date | null | undefined;
2378
+ deleted_at?: Date | null | undefined;
2379
+ description?: string | undefined;
2380
+ tags?: {
2381
+ name: string;
2382
+ hidden: boolean;
2383
+ color?: string | undefined;
2384
+ }[] | undefined;
2385
+ statement?: string | undefined;
2386
+ description_text?: string | undefined;
2387
+ order?: number | undefined;
2388
+ required?: boolean | undefined;
2389
+ length_min?: number | undefined;
2390
+ length_max?: number | undefined;
2391
+ }, {
2392
+ id: string;
2393
+ tenant: string;
2394
+ type: "essay";
2395
+ surveyId: string;
2396
+ sectionId: string;
2397
+ ref?: any;
2398
+ model_ver?: number | undefined;
2399
+ created_at?: Date | null | undefined;
2400
+ updated_at?: Date | null | undefined;
2401
+ deleted_at?: Date | null | undefined;
2402
+ description?: string | undefined;
2403
+ tags?: {
2404
+ name: string;
2405
+ hidden: boolean;
2406
+ color?: string | undefined;
2407
+ }[] | undefined;
2408
+ statement?: string | undefined;
2409
+ description_text?: string | undefined;
2410
+ order?: number | undefined;
2411
+ required?: boolean | undefined;
2412
+ length_min?: number | undefined;
2413
+ length_max?: number | undefined;
2414
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2415
+ id: z.ZodString;
2416
+ ref: z.ZodAny;
2417
+ tenant: z.ZodString;
2418
+ model_ver: z.ZodOptional<z.ZodNumber>;
2419
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2420
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2421
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2422
+ }, {
2423
+ surveyId: z.ZodString;
2424
+ sectionId: z.ZodString;
2425
+ statement: z.ZodOptional<z.ZodString>;
2426
+ description: z.ZodOptional<z.ZodString>;
2427
+ description_text: z.ZodOptional<z.ZodString>;
2428
+ order: z.ZodOptional<z.ZodNumber>;
2429
+ required: z.ZodOptional<z.ZodBoolean>;
2430
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2431
+ name: z.ZodString;
2432
+ color: z.ZodOptional<z.ZodString>;
2433
+ hidden: z.ZodBoolean;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ name: string;
2436
+ hidden: boolean;
2437
+ color?: string | undefined;
2438
+ }, {
2439
+ name: string;
2440
+ hidden: boolean;
2441
+ color?: string | undefined;
2442
+ }>, "many">>;
2443
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2444
+ }>, {
2445
+ type: z.ZodLiteral<"scale">;
2446
+ template: z.ZodOptional<z.ZodString>;
2447
+ scale_min: z.ZodOptional<z.ZodNumber>;
2448
+ scale_max: z.ZodOptional<z.ZodNumber>;
2449
+ }>, "strip", z.ZodTypeAny, {
2450
+ id: string;
2451
+ tenant: string;
2452
+ type: "scale";
2453
+ surveyId: string;
2454
+ sectionId: string;
2455
+ ref?: any;
2456
+ model_ver?: number | undefined;
2457
+ created_at?: Date | null | undefined;
2458
+ updated_at?: Date | null | undefined;
2459
+ deleted_at?: Date | null | undefined;
2460
+ description?: string | undefined;
2461
+ tags?: {
2462
+ name: string;
2463
+ hidden: boolean;
2464
+ color?: string | undefined;
2465
+ }[] | undefined;
2466
+ statement?: string | undefined;
2467
+ description_text?: string | undefined;
2468
+ order?: number | undefined;
2469
+ required?: boolean | undefined;
2470
+ template?: string | undefined;
2471
+ scale_min?: number | undefined;
2472
+ scale_max?: number | undefined;
2473
+ }, {
2474
+ id: string;
2475
+ tenant: string;
2476
+ type: "scale";
2477
+ surveyId: string;
2478
+ sectionId: string;
2479
+ ref?: any;
2480
+ model_ver?: number | undefined;
2481
+ created_at?: Date | null | undefined;
2482
+ updated_at?: Date | null | undefined;
2483
+ deleted_at?: Date | null | undefined;
2484
+ description?: string | undefined;
2485
+ tags?: {
2486
+ name: string;
2487
+ hidden: boolean;
2488
+ color?: string | undefined;
2489
+ }[] | undefined;
2490
+ statement?: string | undefined;
2491
+ description_text?: string | undefined;
2492
+ order?: number | undefined;
2493
+ required?: boolean | undefined;
2494
+ template?: string | undefined;
2495
+ scale_min?: number | undefined;
2496
+ scale_max?: number | undefined;
2497
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2498
+ id: z.ZodString;
2499
+ ref: z.ZodAny;
2500
+ tenant: z.ZodString;
2501
+ model_ver: z.ZodOptional<z.ZodNumber>;
2502
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2503
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2504
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2505
+ }, {
2506
+ surveyId: z.ZodString;
2507
+ sectionId: z.ZodString;
2508
+ statement: z.ZodOptional<z.ZodString>;
2509
+ description: z.ZodOptional<z.ZodString>;
2510
+ description_text: z.ZodOptional<z.ZodString>;
2511
+ order: z.ZodOptional<z.ZodNumber>;
2512
+ required: z.ZodOptional<z.ZodBoolean>;
2513
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2514
+ name: z.ZodString;
2515
+ color: z.ZodOptional<z.ZodString>;
2516
+ hidden: z.ZodBoolean;
2517
+ }, "strip", z.ZodTypeAny, {
2518
+ name: string;
2519
+ hidden: boolean;
2520
+ color?: string | undefined;
2521
+ }, {
2522
+ name: string;
2523
+ hidden: boolean;
2524
+ color?: string | undefined;
2525
+ }>, "many">>;
2526
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2527
+ }>, {
2528
+ type: z.ZodLiteral<"options">;
2529
+ options: z.ZodArray<z.ZodString, "many">;
2530
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
2531
+ }>, "strip", z.ZodTypeAny, {
2532
+ id: string;
2533
+ tenant: string;
2534
+ type: "options";
2535
+ options: string[];
2536
+ surveyId: string;
2537
+ sectionId: string;
2538
+ ref?: any;
2539
+ model_ver?: number | undefined;
2540
+ created_at?: Date | null | undefined;
2541
+ updated_at?: Date | null | undefined;
2542
+ deleted_at?: Date | null | undefined;
2543
+ description?: string | undefined;
2544
+ tags?: {
2545
+ name: string;
2546
+ hidden: boolean;
2547
+ color?: string | undefined;
2548
+ }[] | undefined;
2549
+ statement?: string | undefined;
2550
+ description_text?: string | undefined;
2551
+ order?: number | undefined;
2552
+ required?: boolean | undefined;
2553
+ allow_multiple_selections?: boolean | undefined;
2554
+ }, {
2555
+ id: string;
2556
+ tenant: string;
2557
+ type: "options";
2558
+ options: string[];
2559
+ surveyId: string;
2560
+ sectionId: string;
2561
+ ref?: any;
2562
+ model_ver?: number | undefined;
2563
+ created_at?: Date | null | undefined;
2564
+ updated_at?: Date | null | undefined;
2565
+ deleted_at?: Date | null | undefined;
2566
+ description?: string | undefined;
2567
+ tags?: {
2568
+ name: string;
2569
+ hidden: boolean;
2570
+ color?: string | undefined;
2571
+ }[] | undefined;
2572
+ statement?: string | undefined;
2573
+ description_text?: string | undefined;
2574
+ order?: number | undefined;
2575
+ required?: boolean | undefined;
2576
+ allow_multiple_selections?: boolean | undefined;
2577
+ }>]>, "many">;
2578
+ question_count: z.ZodOptional<z.ZodNumber>;
2579
+ }>, "strip", z.ZodTypeAny, {
2580
+ id: string;
2581
+ tenant: string;
2582
+ name: string;
2583
+ description: string;
2584
+ questions: ({
2585
+ id: string;
2586
+ tenant: string;
2587
+ type: "scale";
2588
+ surveyId: string;
2589
+ sectionId: string;
2590
+ ref?: any;
2591
+ model_ver?: number | undefined;
2592
+ created_at?: Date | null | undefined;
2593
+ updated_at?: Date | null | undefined;
2594
+ deleted_at?: Date | null | undefined;
2595
+ description?: string | undefined;
2596
+ tags?: {
2597
+ name: string;
2598
+ hidden: boolean;
2599
+ color?: string | undefined;
2600
+ }[] | undefined;
2601
+ statement?: string | undefined;
2602
+ description_text?: string | undefined;
2603
+ order?: number | undefined;
2604
+ required?: boolean | undefined;
2605
+ template?: string | undefined;
2606
+ scale_min?: number | undefined;
2607
+ scale_max?: number | undefined;
2608
+ } | {
2609
+ id: string;
2610
+ tenant: string;
2611
+ type: "essay";
2612
+ surveyId: string;
2613
+ sectionId: string;
2614
+ ref?: any;
2615
+ model_ver?: number | undefined;
2616
+ created_at?: Date | null | undefined;
2617
+ updated_at?: Date | null | undefined;
2618
+ deleted_at?: Date | null | undefined;
2619
+ description?: string | undefined;
2620
+ tags?: {
2621
+ name: string;
2622
+ hidden: boolean;
2623
+ color?: string | undefined;
2624
+ }[] | undefined;
2625
+ statement?: string | undefined;
2626
+ description_text?: string | undefined;
2627
+ order?: number | undefined;
2628
+ required?: boolean | undefined;
2629
+ length_min?: number | undefined;
2630
+ length_max?: number | undefined;
2631
+ } | {
2632
+ id: string;
2633
+ tenant: string;
2634
+ type: "options";
2635
+ options: string[];
2636
+ surveyId: string;
2637
+ sectionId: string;
2638
+ ref?: any;
2639
+ model_ver?: number | undefined;
2640
+ created_at?: Date | null | undefined;
2641
+ updated_at?: Date | null | undefined;
2642
+ deleted_at?: Date | null | undefined;
2643
+ description?: string | undefined;
2644
+ tags?: {
2645
+ name: string;
2646
+ hidden: boolean;
2647
+ color?: string | undefined;
2648
+ }[] | undefined;
2649
+ statement?: string | undefined;
2650
+ description_text?: string | undefined;
2651
+ order?: number | undefined;
2652
+ required?: boolean | undefined;
2653
+ allow_multiple_selections?: boolean | undefined;
2654
+ })[];
2655
+ surveyId: string;
2656
+ order: number;
2657
+ ref?: any;
2658
+ model_ver?: number | undefined;
2659
+ created_at?: Date | null | undefined;
2660
+ updated_at?: Date | null | undefined;
2661
+ deleted_at?: Date | null | undefined;
2662
+ question_count?: number | undefined;
2663
+ }, {
2664
+ id: string;
2665
+ tenant: string;
2666
+ name: string;
2667
+ description: string;
2668
+ questions: ({
2669
+ id: string;
2670
+ tenant: string;
2671
+ type: "scale";
2672
+ surveyId: string;
2673
+ sectionId: string;
2674
+ ref?: any;
2675
+ model_ver?: number | undefined;
2676
+ created_at?: Date | null | undefined;
2677
+ updated_at?: Date | null | undefined;
2678
+ deleted_at?: Date | null | undefined;
2679
+ description?: string | undefined;
2680
+ tags?: {
2681
+ name: string;
2682
+ hidden: boolean;
2683
+ color?: string | undefined;
2684
+ }[] | undefined;
2685
+ statement?: string | undefined;
2686
+ description_text?: string | undefined;
2687
+ order?: number | undefined;
2688
+ required?: boolean | undefined;
2689
+ template?: string | undefined;
2690
+ scale_min?: number | undefined;
2691
+ scale_max?: number | undefined;
2692
+ } | {
2693
+ id: string;
2694
+ tenant: string;
2695
+ type: "essay";
2696
+ surveyId: string;
2697
+ sectionId: string;
2698
+ ref?: any;
2699
+ model_ver?: number | undefined;
2700
+ created_at?: Date | null | undefined;
2701
+ updated_at?: Date | null | undefined;
2702
+ deleted_at?: Date | null | undefined;
2703
+ description?: string | undefined;
2704
+ tags?: {
2705
+ name: string;
2706
+ hidden: boolean;
2707
+ color?: string | undefined;
2708
+ }[] | undefined;
2709
+ statement?: string | undefined;
2710
+ description_text?: string | undefined;
2711
+ order?: number | undefined;
2712
+ required?: boolean | undefined;
2713
+ length_min?: number | undefined;
2714
+ length_max?: number | undefined;
2715
+ } | {
2716
+ id: string;
2717
+ tenant: string;
2718
+ type: "options";
2719
+ options: string[];
2720
+ surveyId: string;
2721
+ sectionId: string;
2722
+ ref?: any;
2723
+ model_ver?: number | undefined;
2724
+ created_at?: Date | null | undefined;
2725
+ updated_at?: Date | null | undefined;
2726
+ deleted_at?: Date | null | undefined;
2727
+ description?: string | undefined;
2728
+ tags?: {
2729
+ name: string;
2730
+ hidden: boolean;
2731
+ color?: string | undefined;
2732
+ }[] | undefined;
2733
+ statement?: string | undefined;
2734
+ description_text?: string | undefined;
2735
+ order?: number | undefined;
2736
+ required?: boolean | undefined;
2737
+ allow_multiple_selections?: boolean | undefined;
2738
+ })[];
2739
+ surveyId: string;
2740
+ order: number;
2741
+ ref?: any;
2742
+ model_ver?: number | undefined;
2743
+ created_at?: Date | null | undefined;
2744
+ updated_at?: Date | null | undefined;
2745
+ deleted_at?: Date | null | undefined;
2746
+ question_count?: number | undefined;
2747
+ }>, "many">>;
2748
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2749
+ name: z.ZodString;
2750
+ color: z.ZodOptional<z.ZodString>;
2751
+ hidden: z.ZodBoolean;
2752
+ }, "strip", z.ZodTypeAny, {
2753
+ name: string;
2754
+ hidden: boolean;
2755
+ color?: string | undefined;
2756
+ }, {
2757
+ name: string;
2758
+ hidden: boolean;
2759
+ color?: string | undefined;
2760
+ }>, "many">>;
2761
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
2762
+ id: z.ZodString;
2763
+ ref: z.ZodAny;
2764
+ tenant: z.ZodString;
2765
+ model_ver: z.ZodOptional<z.ZodNumber>;
2766
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2767
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2768
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2769
+ }, {
2770
+ name: z.ZodString;
2771
+ description: z.ZodOptional<z.ZodString>;
2772
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
2773
+ permission: z.ZodEnum<["private", "company", "public"]>;
2774
+ type: z.ZodEnum<["360", "general"]>;
2775
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2776
+ id: z.ZodString;
2777
+ ref: z.ZodAny;
2778
+ tenant: z.ZodString;
2779
+ model_ver: z.ZodOptional<z.ZodNumber>;
2780
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2781
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2782
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2783
+ }, {
2784
+ surveyId: z.ZodString;
2785
+ name: z.ZodString;
2786
+ description: z.ZodString;
2787
+ order: z.ZodNumber;
2788
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2789
+ id: z.ZodString;
2790
+ ref: z.ZodAny;
2791
+ tenant: z.ZodString;
2792
+ model_ver: z.ZodOptional<z.ZodNumber>;
2793
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2794
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2795
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2796
+ }, {
2797
+ surveyId: z.ZodString;
2798
+ sectionId: z.ZodString;
2799
+ statement: z.ZodOptional<z.ZodString>;
2800
+ description: z.ZodOptional<z.ZodString>;
2801
+ description_text: z.ZodOptional<z.ZodString>;
2802
+ order: z.ZodOptional<z.ZodNumber>;
2803
+ required: z.ZodOptional<z.ZodBoolean>;
2804
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2805
+ name: z.ZodString;
2806
+ color: z.ZodOptional<z.ZodString>;
2807
+ hidden: z.ZodBoolean;
2808
+ }, "strip", z.ZodTypeAny, {
2809
+ name: string;
2810
+ hidden: boolean;
2811
+ color?: string | undefined;
2812
+ }, {
2813
+ name: string;
2814
+ hidden: boolean;
2815
+ color?: string | undefined;
2816
+ }>, "many">>;
2817
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2818
+ }>, {
2819
+ type: z.ZodLiteral<"essay">;
2820
+ length_min: z.ZodOptional<z.ZodNumber>;
2821
+ length_max: z.ZodOptional<z.ZodNumber>;
2822
+ }>, "strip", z.ZodTypeAny, {
2823
+ id: string;
2824
+ tenant: string;
2825
+ type: "essay";
2826
+ surveyId: string;
2827
+ sectionId: string;
2828
+ ref?: any;
2829
+ model_ver?: number | undefined;
2830
+ created_at?: Date | null | undefined;
2831
+ updated_at?: Date | null | undefined;
2832
+ deleted_at?: Date | null | undefined;
2833
+ description?: string | undefined;
2834
+ tags?: {
2835
+ name: string;
2836
+ hidden: boolean;
2837
+ color?: string | undefined;
2838
+ }[] | undefined;
2839
+ statement?: string | undefined;
2840
+ description_text?: string | undefined;
2841
+ order?: number | undefined;
2842
+ required?: boolean | undefined;
2843
+ length_min?: number | undefined;
2844
+ length_max?: number | undefined;
2845
+ }, {
2846
+ id: string;
2847
+ tenant: string;
2848
+ type: "essay";
2849
+ surveyId: string;
2850
+ sectionId: string;
2851
+ ref?: any;
2852
+ model_ver?: number | undefined;
2853
+ created_at?: Date | null | undefined;
2854
+ updated_at?: Date | null | undefined;
2855
+ deleted_at?: Date | null | undefined;
2856
+ description?: string | undefined;
2857
+ tags?: {
2858
+ name: string;
2859
+ hidden: boolean;
2860
+ color?: string | undefined;
2861
+ }[] | undefined;
2862
+ statement?: string | undefined;
2863
+ description_text?: string | undefined;
2864
+ order?: number | undefined;
2865
+ required?: boolean | undefined;
2866
+ length_min?: number | undefined;
2867
+ length_max?: number | undefined;
2868
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2869
+ id: z.ZodString;
2870
+ ref: z.ZodAny;
2871
+ tenant: z.ZodString;
2872
+ model_ver: z.ZodOptional<z.ZodNumber>;
2873
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2874
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2875
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2876
+ }, {
2877
+ surveyId: z.ZodString;
2878
+ sectionId: z.ZodString;
2879
+ statement: z.ZodOptional<z.ZodString>;
2880
+ description: z.ZodOptional<z.ZodString>;
2881
+ description_text: z.ZodOptional<z.ZodString>;
2882
+ order: z.ZodOptional<z.ZodNumber>;
2883
+ required: z.ZodOptional<z.ZodBoolean>;
2884
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2885
+ name: z.ZodString;
2886
+ color: z.ZodOptional<z.ZodString>;
2887
+ hidden: z.ZodBoolean;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ name: string;
2890
+ hidden: boolean;
2891
+ color?: string | undefined;
2892
+ }, {
2893
+ name: string;
2894
+ hidden: boolean;
2895
+ color?: string | undefined;
2896
+ }>, "many">>;
2897
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2898
+ }>, {
2899
+ type: z.ZodLiteral<"scale">;
2900
+ template: z.ZodOptional<z.ZodString>;
2901
+ scale_min: z.ZodOptional<z.ZodNumber>;
2902
+ scale_max: z.ZodOptional<z.ZodNumber>;
2903
+ }>, "strip", z.ZodTypeAny, {
2904
+ id: string;
2905
+ tenant: string;
2906
+ type: "scale";
2907
+ surveyId: string;
2908
+ sectionId: string;
2909
+ ref?: any;
2910
+ model_ver?: number | undefined;
2911
+ created_at?: Date | null | undefined;
2912
+ updated_at?: Date | null | undefined;
2913
+ deleted_at?: Date | null | undefined;
2914
+ description?: string | undefined;
2915
+ tags?: {
2916
+ name: string;
2917
+ hidden: boolean;
2918
+ color?: string | undefined;
2919
+ }[] | undefined;
2920
+ statement?: string | undefined;
2921
+ description_text?: string | undefined;
2922
+ order?: number | undefined;
2923
+ required?: boolean | undefined;
2924
+ template?: string | undefined;
2925
+ scale_min?: number | undefined;
2926
+ scale_max?: number | undefined;
2927
+ }, {
2928
+ id: string;
2929
+ tenant: string;
2930
+ type: "scale";
2931
+ surveyId: string;
2932
+ sectionId: string;
2933
+ ref?: any;
2934
+ model_ver?: number | undefined;
2935
+ created_at?: Date | null | undefined;
2936
+ updated_at?: Date | null | undefined;
2937
+ deleted_at?: Date | null | undefined;
2938
+ description?: string | undefined;
2939
+ tags?: {
2940
+ name: string;
2941
+ hidden: boolean;
2942
+ color?: string | undefined;
2943
+ }[] | undefined;
2944
+ statement?: string | undefined;
2945
+ description_text?: string | undefined;
2946
+ order?: number | undefined;
2947
+ required?: boolean | undefined;
2948
+ template?: string | undefined;
2949
+ scale_min?: number | undefined;
2950
+ scale_max?: number | undefined;
2951
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2952
+ id: z.ZodString;
2953
+ ref: z.ZodAny;
2954
+ tenant: z.ZodString;
2955
+ model_ver: z.ZodOptional<z.ZodNumber>;
2956
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2957
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2958
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2959
+ }, {
2960
+ surveyId: z.ZodString;
2961
+ sectionId: z.ZodString;
2962
+ statement: z.ZodOptional<z.ZodString>;
2963
+ description: z.ZodOptional<z.ZodString>;
2964
+ description_text: z.ZodOptional<z.ZodString>;
2965
+ order: z.ZodOptional<z.ZodNumber>;
2966
+ required: z.ZodOptional<z.ZodBoolean>;
2967
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
2968
+ name: z.ZodString;
2969
+ color: z.ZodOptional<z.ZodString>;
2970
+ hidden: z.ZodBoolean;
2971
+ }, "strip", z.ZodTypeAny, {
2972
+ name: string;
2973
+ hidden: boolean;
2974
+ color?: string | undefined;
2975
+ }, {
2976
+ name: string;
2977
+ hidden: boolean;
2978
+ color?: string | undefined;
2979
+ }>, "many">>;
2980
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
2981
+ }>, {
2982
+ type: z.ZodLiteral<"options">;
2983
+ options: z.ZodArray<z.ZodString, "many">;
2984
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
2985
+ }>, "strip", z.ZodTypeAny, {
2986
+ id: string;
2987
+ tenant: string;
2988
+ type: "options";
2989
+ options: string[];
2990
+ surveyId: string;
2991
+ sectionId: string;
2992
+ ref?: any;
2993
+ model_ver?: number | undefined;
2994
+ created_at?: Date | null | undefined;
2995
+ updated_at?: Date | null | undefined;
2996
+ deleted_at?: Date | null | undefined;
2997
+ description?: string | undefined;
2998
+ tags?: {
2999
+ name: string;
3000
+ hidden: boolean;
3001
+ color?: string | undefined;
3002
+ }[] | undefined;
3003
+ statement?: string | undefined;
3004
+ description_text?: string | undefined;
3005
+ order?: number | undefined;
3006
+ required?: boolean | undefined;
3007
+ allow_multiple_selections?: boolean | undefined;
3008
+ }, {
3009
+ id: string;
3010
+ tenant: string;
3011
+ type: "options";
3012
+ options: string[];
3013
+ surveyId: string;
3014
+ sectionId: string;
3015
+ ref?: any;
3016
+ model_ver?: number | undefined;
3017
+ created_at?: Date | null | undefined;
3018
+ updated_at?: Date | null | undefined;
3019
+ deleted_at?: Date | null | undefined;
3020
+ description?: string | undefined;
3021
+ tags?: {
3022
+ name: string;
3023
+ hidden: boolean;
3024
+ color?: string | undefined;
3025
+ }[] | undefined;
3026
+ statement?: string | undefined;
3027
+ description_text?: string | undefined;
3028
+ order?: number | undefined;
3029
+ required?: boolean | undefined;
3030
+ allow_multiple_selections?: boolean | undefined;
3031
+ }>]>, "many">;
3032
+ question_count: z.ZodOptional<z.ZodNumber>;
3033
+ }>, "strip", z.ZodTypeAny, {
3034
+ id: string;
3035
+ tenant: string;
3036
+ name: string;
3037
+ description: string;
3038
+ questions: ({
3039
+ id: string;
3040
+ tenant: string;
3041
+ type: "scale";
3042
+ surveyId: string;
3043
+ sectionId: string;
3044
+ ref?: any;
3045
+ model_ver?: number | undefined;
3046
+ created_at?: Date | null | undefined;
3047
+ updated_at?: Date | null | undefined;
3048
+ deleted_at?: Date | null | undefined;
3049
+ description?: string | undefined;
3050
+ tags?: {
3051
+ name: string;
3052
+ hidden: boolean;
3053
+ color?: string | undefined;
3054
+ }[] | undefined;
3055
+ statement?: string | undefined;
3056
+ description_text?: string | undefined;
3057
+ order?: number | undefined;
3058
+ required?: boolean | undefined;
3059
+ template?: string | undefined;
3060
+ scale_min?: number | undefined;
3061
+ scale_max?: number | undefined;
3062
+ } | {
3063
+ id: string;
3064
+ tenant: string;
3065
+ type: "essay";
3066
+ surveyId: string;
3067
+ sectionId: string;
3068
+ ref?: any;
3069
+ model_ver?: number | undefined;
3070
+ created_at?: Date | null | undefined;
3071
+ updated_at?: Date | null | undefined;
3072
+ deleted_at?: Date | null | undefined;
3073
+ description?: string | undefined;
3074
+ tags?: {
3075
+ name: string;
3076
+ hidden: boolean;
3077
+ color?: string | undefined;
3078
+ }[] | undefined;
3079
+ statement?: string | undefined;
3080
+ description_text?: string | undefined;
3081
+ order?: number | undefined;
3082
+ required?: boolean | undefined;
3083
+ length_min?: number | undefined;
3084
+ length_max?: number | undefined;
3085
+ } | {
3086
+ id: string;
3087
+ tenant: string;
3088
+ type: "options";
3089
+ options: string[];
3090
+ surveyId: string;
3091
+ sectionId: string;
3092
+ ref?: any;
3093
+ model_ver?: number | undefined;
3094
+ created_at?: Date | null | undefined;
3095
+ updated_at?: Date | null | undefined;
3096
+ deleted_at?: Date | null | undefined;
3097
+ description?: string | undefined;
3098
+ tags?: {
3099
+ name: string;
3100
+ hidden: boolean;
3101
+ color?: string | undefined;
3102
+ }[] | undefined;
3103
+ statement?: string | undefined;
3104
+ description_text?: string | undefined;
3105
+ order?: number | undefined;
3106
+ required?: boolean | undefined;
3107
+ allow_multiple_selections?: boolean | undefined;
3108
+ })[];
3109
+ surveyId: string;
3110
+ order: number;
3111
+ ref?: any;
3112
+ model_ver?: number | undefined;
3113
+ created_at?: Date | null | undefined;
3114
+ updated_at?: Date | null | undefined;
3115
+ deleted_at?: Date | null | undefined;
3116
+ question_count?: number | undefined;
3117
+ }, {
3118
+ id: string;
3119
+ tenant: string;
3120
+ name: string;
3121
+ description: string;
3122
+ questions: ({
3123
+ id: string;
3124
+ tenant: string;
3125
+ type: "scale";
3126
+ surveyId: string;
3127
+ sectionId: string;
3128
+ ref?: any;
3129
+ model_ver?: number | undefined;
3130
+ created_at?: Date | null | undefined;
3131
+ updated_at?: Date | null | undefined;
3132
+ deleted_at?: Date | null | undefined;
3133
+ description?: string | undefined;
3134
+ tags?: {
3135
+ name: string;
3136
+ hidden: boolean;
3137
+ color?: string | undefined;
3138
+ }[] | undefined;
3139
+ statement?: string | undefined;
3140
+ description_text?: string | undefined;
3141
+ order?: number | undefined;
3142
+ required?: boolean | undefined;
3143
+ template?: string | undefined;
3144
+ scale_min?: number | undefined;
3145
+ scale_max?: number | undefined;
3146
+ } | {
3147
+ id: string;
3148
+ tenant: string;
3149
+ type: "essay";
3150
+ surveyId: string;
3151
+ sectionId: string;
3152
+ ref?: any;
3153
+ model_ver?: number | undefined;
3154
+ created_at?: Date | null | undefined;
3155
+ updated_at?: Date | null | undefined;
3156
+ deleted_at?: Date | null | undefined;
3157
+ description?: string | undefined;
3158
+ tags?: {
3159
+ name: string;
3160
+ hidden: boolean;
3161
+ color?: string | undefined;
3162
+ }[] | undefined;
3163
+ statement?: string | undefined;
3164
+ description_text?: string | undefined;
3165
+ order?: number | undefined;
3166
+ required?: boolean | undefined;
3167
+ length_min?: number | undefined;
3168
+ length_max?: number | undefined;
3169
+ } | {
3170
+ id: string;
3171
+ tenant: string;
3172
+ type: "options";
3173
+ options: string[];
3174
+ surveyId: string;
3175
+ sectionId: string;
3176
+ ref?: any;
3177
+ model_ver?: number | undefined;
3178
+ created_at?: Date | null | undefined;
3179
+ updated_at?: Date | null | undefined;
3180
+ deleted_at?: Date | null | undefined;
3181
+ description?: string | undefined;
3182
+ tags?: {
3183
+ name: string;
3184
+ hidden: boolean;
3185
+ color?: string | undefined;
3186
+ }[] | undefined;
3187
+ statement?: string | undefined;
3188
+ description_text?: string | undefined;
3189
+ order?: number | undefined;
3190
+ required?: boolean | undefined;
3191
+ allow_multiple_selections?: boolean | undefined;
3192
+ })[];
3193
+ surveyId: string;
3194
+ order: number;
3195
+ ref?: any;
3196
+ model_ver?: number | undefined;
3197
+ created_at?: Date | null | undefined;
3198
+ updated_at?: Date | null | undefined;
3199
+ deleted_at?: Date | null | undefined;
3200
+ question_count?: number | undefined;
3201
+ }>, "many">>;
3202
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3203
+ name: z.ZodString;
3204
+ color: z.ZodOptional<z.ZodString>;
3205
+ hidden: z.ZodBoolean;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ name: string;
3208
+ hidden: boolean;
3209
+ color?: string | undefined;
3210
+ }, {
3211
+ name: string;
3212
+ hidden: boolean;
3213
+ color?: string | undefined;
3214
+ }>, "many">>;
3215
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
3216
+ id: z.ZodString;
3217
+ ref: z.ZodAny;
3218
+ tenant: z.ZodString;
3219
+ model_ver: z.ZodOptional<z.ZodNumber>;
3220
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3221
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3222
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3223
+ }, {
3224
+ name: z.ZodString;
3225
+ description: z.ZodOptional<z.ZodString>;
3226
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
3227
+ permission: z.ZodEnum<["private", "company", "public"]>;
3228
+ type: z.ZodEnum<["360", "general"]>;
3229
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3230
+ id: z.ZodString;
3231
+ ref: z.ZodAny;
3232
+ tenant: z.ZodString;
3233
+ model_ver: z.ZodOptional<z.ZodNumber>;
3234
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3235
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3236
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3237
+ }, {
3238
+ surveyId: z.ZodString;
3239
+ name: z.ZodString;
3240
+ description: z.ZodString;
3241
+ order: z.ZodNumber;
3242
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3243
+ id: z.ZodString;
3244
+ ref: z.ZodAny;
3245
+ tenant: z.ZodString;
3246
+ model_ver: z.ZodOptional<z.ZodNumber>;
3247
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3248
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3249
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3250
+ }, {
3251
+ surveyId: z.ZodString;
3252
+ sectionId: z.ZodString;
3253
+ statement: z.ZodOptional<z.ZodString>;
3254
+ description: z.ZodOptional<z.ZodString>;
3255
+ description_text: z.ZodOptional<z.ZodString>;
3256
+ order: z.ZodOptional<z.ZodNumber>;
3257
+ required: z.ZodOptional<z.ZodBoolean>;
3258
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3259
+ name: z.ZodString;
3260
+ color: z.ZodOptional<z.ZodString>;
3261
+ hidden: z.ZodBoolean;
3262
+ }, "strip", z.ZodTypeAny, {
3263
+ name: string;
3264
+ hidden: boolean;
3265
+ color?: string | undefined;
3266
+ }, {
3267
+ name: string;
3268
+ hidden: boolean;
3269
+ color?: string | undefined;
3270
+ }>, "many">>;
3271
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
3272
+ }>, {
3273
+ type: z.ZodLiteral<"essay">;
3274
+ length_min: z.ZodOptional<z.ZodNumber>;
3275
+ length_max: z.ZodOptional<z.ZodNumber>;
3276
+ }>, "strip", z.ZodTypeAny, {
3277
+ id: string;
3278
+ tenant: string;
3279
+ type: "essay";
3280
+ surveyId: string;
3281
+ sectionId: string;
3282
+ ref?: any;
3283
+ model_ver?: number | undefined;
3284
+ created_at?: Date | null | undefined;
3285
+ updated_at?: Date | null | undefined;
3286
+ deleted_at?: Date | null | undefined;
3287
+ description?: string | undefined;
3288
+ tags?: {
3289
+ name: string;
3290
+ hidden: boolean;
3291
+ color?: string | undefined;
3292
+ }[] | undefined;
3293
+ statement?: string | undefined;
3294
+ description_text?: string | undefined;
3295
+ order?: number | undefined;
3296
+ required?: boolean | undefined;
3297
+ length_min?: number | undefined;
3298
+ length_max?: number | undefined;
3299
+ }, {
3300
+ id: string;
3301
+ tenant: string;
3302
+ type: "essay";
3303
+ surveyId: string;
3304
+ sectionId: string;
3305
+ ref?: any;
3306
+ model_ver?: number | undefined;
3307
+ created_at?: Date | null | undefined;
3308
+ updated_at?: Date | null | undefined;
3309
+ deleted_at?: Date | null | undefined;
3310
+ description?: string | undefined;
3311
+ tags?: {
3312
+ name: string;
3313
+ hidden: boolean;
3314
+ color?: string | undefined;
3315
+ }[] | undefined;
3316
+ statement?: string | undefined;
3317
+ description_text?: string | undefined;
3318
+ order?: number | undefined;
3319
+ required?: boolean | undefined;
3320
+ length_min?: number | undefined;
3321
+ length_max?: number | undefined;
3322
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3323
+ id: z.ZodString;
3324
+ ref: z.ZodAny;
3325
+ tenant: z.ZodString;
3326
+ model_ver: z.ZodOptional<z.ZodNumber>;
3327
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3328
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3329
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3330
+ }, {
3331
+ surveyId: z.ZodString;
3332
+ sectionId: z.ZodString;
3333
+ statement: z.ZodOptional<z.ZodString>;
3334
+ description: z.ZodOptional<z.ZodString>;
3335
+ description_text: z.ZodOptional<z.ZodString>;
3336
+ order: z.ZodOptional<z.ZodNumber>;
3337
+ required: z.ZodOptional<z.ZodBoolean>;
3338
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3339
+ name: z.ZodString;
3340
+ color: z.ZodOptional<z.ZodString>;
3341
+ hidden: z.ZodBoolean;
3342
+ }, "strip", z.ZodTypeAny, {
3343
+ name: string;
3344
+ hidden: boolean;
3345
+ color?: string | undefined;
3346
+ }, {
3347
+ name: string;
3348
+ hidden: boolean;
3349
+ color?: string | undefined;
3350
+ }>, "many">>;
3351
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
3352
+ }>, {
3353
+ type: z.ZodLiteral<"scale">;
3354
+ template: z.ZodOptional<z.ZodString>;
3355
+ scale_min: z.ZodOptional<z.ZodNumber>;
3356
+ scale_max: z.ZodOptional<z.ZodNumber>;
3357
+ }>, "strip", z.ZodTypeAny, {
3358
+ id: string;
3359
+ tenant: string;
3360
+ type: "scale";
3361
+ surveyId: string;
3362
+ sectionId: string;
3363
+ ref?: any;
3364
+ model_ver?: number | undefined;
3365
+ created_at?: Date | null | undefined;
3366
+ updated_at?: Date | null | undefined;
3367
+ deleted_at?: Date | null | undefined;
3368
+ description?: string | undefined;
3369
+ tags?: {
3370
+ name: string;
3371
+ hidden: boolean;
3372
+ color?: string | undefined;
3373
+ }[] | undefined;
3374
+ statement?: string | undefined;
3375
+ description_text?: string | undefined;
3376
+ order?: number | undefined;
3377
+ required?: boolean | undefined;
3378
+ template?: string | undefined;
3379
+ scale_min?: number | undefined;
3380
+ scale_max?: number | undefined;
3381
+ }, {
3382
+ id: string;
3383
+ tenant: string;
3384
+ type: "scale";
3385
+ surveyId: string;
3386
+ sectionId: string;
3387
+ ref?: any;
3388
+ model_ver?: number | undefined;
3389
+ created_at?: Date | null | undefined;
3390
+ updated_at?: Date | null | undefined;
3391
+ deleted_at?: Date | null | undefined;
3392
+ description?: string | undefined;
3393
+ tags?: {
3394
+ name: string;
3395
+ hidden: boolean;
3396
+ color?: string | undefined;
3397
+ }[] | undefined;
3398
+ statement?: string | undefined;
3399
+ description_text?: string | undefined;
3400
+ order?: number | undefined;
3401
+ required?: boolean | undefined;
3402
+ template?: string | undefined;
3403
+ scale_min?: number | undefined;
3404
+ scale_max?: number | undefined;
3405
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3406
+ id: z.ZodString;
3407
+ ref: z.ZodAny;
3408
+ tenant: z.ZodString;
3409
+ model_ver: z.ZodOptional<z.ZodNumber>;
3410
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3411
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3412
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3413
+ }, {
3414
+ surveyId: z.ZodString;
3415
+ sectionId: z.ZodString;
3416
+ statement: z.ZodOptional<z.ZodString>;
3417
+ description: z.ZodOptional<z.ZodString>;
3418
+ description_text: z.ZodOptional<z.ZodString>;
3419
+ order: z.ZodOptional<z.ZodNumber>;
3420
+ required: z.ZodOptional<z.ZodBoolean>;
3421
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3422
+ name: z.ZodString;
3423
+ color: z.ZodOptional<z.ZodString>;
3424
+ hidden: z.ZodBoolean;
3425
+ }, "strip", z.ZodTypeAny, {
3426
+ name: string;
3427
+ hidden: boolean;
3428
+ color?: string | undefined;
3429
+ }, {
3430
+ name: string;
3431
+ hidden: boolean;
3432
+ color?: string | undefined;
3433
+ }>, "many">>;
3434
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
3435
+ }>, {
3436
+ type: z.ZodLiteral<"options">;
3437
+ options: z.ZodArray<z.ZodString, "many">;
3438
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
3439
+ }>, "strip", z.ZodTypeAny, {
3440
+ id: string;
3441
+ tenant: string;
3442
+ type: "options";
3443
+ options: string[];
3444
+ surveyId: string;
3445
+ sectionId: string;
3446
+ ref?: any;
3447
+ model_ver?: number | undefined;
3448
+ created_at?: Date | null | undefined;
3449
+ updated_at?: Date | null | undefined;
3450
+ deleted_at?: Date | null | undefined;
3451
+ description?: string | undefined;
3452
+ tags?: {
3453
+ name: string;
3454
+ hidden: boolean;
3455
+ color?: string | undefined;
3456
+ }[] | undefined;
3457
+ statement?: string | undefined;
3458
+ description_text?: string | undefined;
3459
+ order?: number | undefined;
3460
+ required?: boolean | undefined;
3461
+ allow_multiple_selections?: boolean | undefined;
3462
+ }, {
3463
+ id: string;
3464
+ tenant: string;
3465
+ type: "options";
3466
+ options: string[];
3467
+ surveyId: string;
3468
+ sectionId: string;
3469
+ ref?: any;
3470
+ model_ver?: number | undefined;
3471
+ created_at?: Date | null | undefined;
3472
+ updated_at?: Date | null | undefined;
3473
+ deleted_at?: Date | null | undefined;
3474
+ description?: string | undefined;
3475
+ tags?: {
3476
+ name: string;
3477
+ hidden: boolean;
3478
+ color?: string | undefined;
3479
+ }[] | undefined;
3480
+ statement?: string | undefined;
3481
+ description_text?: string | undefined;
3482
+ order?: number | undefined;
3483
+ required?: boolean | undefined;
3484
+ allow_multiple_selections?: boolean | undefined;
3485
+ }>]>, "many">;
3486
+ question_count: z.ZodOptional<z.ZodNumber>;
3487
+ }>, "strip", z.ZodTypeAny, {
3488
+ id: string;
3489
+ tenant: string;
3490
+ name: string;
3491
+ description: string;
3492
+ questions: ({
3493
+ id: string;
3494
+ tenant: string;
3495
+ type: "scale";
3496
+ surveyId: string;
3497
+ sectionId: string;
3498
+ ref?: any;
3499
+ model_ver?: number | undefined;
3500
+ created_at?: Date | null | undefined;
3501
+ updated_at?: Date | null | undefined;
3502
+ deleted_at?: Date | null | undefined;
3503
+ description?: string | undefined;
3504
+ tags?: {
3505
+ name: string;
3506
+ hidden: boolean;
3507
+ color?: string | undefined;
3508
+ }[] | undefined;
3509
+ statement?: string | undefined;
3510
+ description_text?: string | undefined;
3511
+ order?: number | undefined;
3512
+ required?: boolean | undefined;
3513
+ template?: string | undefined;
3514
+ scale_min?: number | undefined;
3515
+ scale_max?: number | undefined;
3516
+ } | {
3517
+ id: string;
3518
+ tenant: string;
3519
+ type: "essay";
3520
+ surveyId: string;
3521
+ sectionId: string;
3522
+ ref?: any;
3523
+ model_ver?: number | undefined;
3524
+ created_at?: Date | null | undefined;
3525
+ updated_at?: Date | null | undefined;
3526
+ deleted_at?: Date | null | undefined;
3527
+ description?: string | undefined;
3528
+ tags?: {
3529
+ name: string;
3530
+ hidden: boolean;
3531
+ color?: string | undefined;
3532
+ }[] | undefined;
3533
+ statement?: string | undefined;
3534
+ description_text?: string | undefined;
3535
+ order?: number | undefined;
3536
+ required?: boolean | undefined;
3537
+ length_min?: number | undefined;
3538
+ length_max?: number | undefined;
3539
+ } | {
3540
+ id: string;
3541
+ tenant: string;
3542
+ type: "options";
3543
+ options: string[];
3544
+ surveyId: string;
3545
+ sectionId: string;
3546
+ ref?: any;
3547
+ model_ver?: number | undefined;
3548
+ created_at?: Date | null | undefined;
3549
+ updated_at?: Date | null | undefined;
3550
+ deleted_at?: Date | null | undefined;
3551
+ description?: string | undefined;
3552
+ tags?: {
3553
+ name: string;
3554
+ hidden: boolean;
3555
+ color?: string | undefined;
3556
+ }[] | undefined;
3557
+ statement?: string | undefined;
3558
+ description_text?: string | undefined;
3559
+ order?: number | undefined;
3560
+ required?: boolean | undefined;
3561
+ allow_multiple_selections?: boolean | undefined;
3562
+ })[];
3563
+ surveyId: string;
3564
+ order: number;
3565
+ ref?: any;
3566
+ model_ver?: number | undefined;
3567
+ created_at?: Date | null | undefined;
3568
+ updated_at?: Date | null | undefined;
3569
+ deleted_at?: Date | null | undefined;
3570
+ question_count?: number | undefined;
3571
+ }, {
3572
+ id: string;
3573
+ tenant: string;
3574
+ name: string;
3575
+ description: string;
3576
+ questions: ({
3577
+ id: string;
3578
+ tenant: string;
3579
+ type: "scale";
3580
+ surveyId: string;
3581
+ sectionId: string;
3582
+ ref?: any;
3583
+ model_ver?: number | undefined;
3584
+ created_at?: Date | null | undefined;
3585
+ updated_at?: Date | null | undefined;
3586
+ deleted_at?: Date | null | undefined;
3587
+ description?: string | undefined;
3588
+ tags?: {
3589
+ name: string;
3590
+ hidden: boolean;
3591
+ color?: string | undefined;
3592
+ }[] | undefined;
3593
+ statement?: string | undefined;
3594
+ description_text?: string | undefined;
3595
+ order?: number | undefined;
3596
+ required?: boolean | undefined;
3597
+ template?: string | undefined;
3598
+ scale_min?: number | undefined;
3599
+ scale_max?: number | undefined;
3600
+ } | {
3601
+ id: string;
3602
+ tenant: string;
3603
+ type: "essay";
3604
+ surveyId: string;
3605
+ sectionId: string;
3606
+ ref?: any;
3607
+ model_ver?: number | undefined;
3608
+ created_at?: Date | null | undefined;
3609
+ updated_at?: Date | null | undefined;
3610
+ deleted_at?: Date | null | undefined;
3611
+ description?: string | undefined;
3612
+ tags?: {
3613
+ name: string;
3614
+ hidden: boolean;
3615
+ color?: string | undefined;
3616
+ }[] | undefined;
3617
+ statement?: string | undefined;
3618
+ description_text?: string | undefined;
3619
+ order?: number | undefined;
3620
+ required?: boolean | undefined;
3621
+ length_min?: number | undefined;
3622
+ length_max?: number | undefined;
3623
+ } | {
3624
+ id: string;
3625
+ tenant: string;
3626
+ type: "options";
3627
+ options: string[];
3628
+ surveyId: string;
3629
+ sectionId: string;
3630
+ ref?: any;
3631
+ model_ver?: number | undefined;
3632
+ created_at?: Date | null | undefined;
3633
+ updated_at?: Date | null | undefined;
3634
+ deleted_at?: Date | null | undefined;
3635
+ description?: string | undefined;
3636
+ tags?: {
3637
+ name: string;
3638
+ hidden: boolean;
3639
+ color?: string | undefined;
3640
+ }[] | undefined;
3641
+ statement?: string | undefined;
3642
+ description_text?: string | undefined;
3643
+ order?: number | undefined;
3644
+ required?: boolean | undefined;
3645
+ allow_multiple_selections?: boolean | undefined;
3646
+ })[];
3647
+ surveyId: string;
3648
+ order: number;
3649
+ ref?: any;
3650
+ model_ver?: number | undefined;
3651
+ created_at?: Date | null | undefined;
3652
+ updated_at?: Date | null | undefined;
3653
+ deleted_at?: Date | null | undefined;
3654
+ question_count?: number | undefined;
3655
+ }>, "many">>;
3656
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3657
+ name: z.ZodString;
3658
+ color: z.ZodOptional<z.ZodString>;
3659
+ hidden: z.ZodBoolean;
3660
+ }, "strip", z.ZodTypeAny, {
3661
+ name: string;
3662
+ hidden: boolean;
3663
+ color?: string | undefined;
3664
+ }, {
3665
+ name: string;
3666
+ hidden: boolean;
3667
+ color?: string | undefined;
3668
+ }>, "many">>;
3669
+ }>, z.ZodTypeAny, "passthrough">>>>;
3670
+ start_date: z.ZodNullable<z.ZodDate>;
3671
+ end_date: z.ZodNullable<z.ZodDate>;
3672
+ status: z.ZodEnum<["draft", "open", "closed", "in_progress", "paused"]>;
3673
+ allow_edit_answers: z.ZodBoolean;
3674
+ allow_partial_submission: z.ZodBoolean;
3675
+ invitees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3676
+ id: z.ZodString;
3677
+ ref: z.ZodAny;
3678
+ tenant: z.ZodString;
3679
+ model_ver: z.ZodOptional<z.ZodNumber>;
3680
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3681
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3682
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3683
+ }, {
3684
+ name: z.ZodString;
3685
+ email: z.ZodOptional<z.ZodString>;
3686
+ phone: z.ZodOptional<z.ZodString>;
3687
+ responded: z.ZodBoolean;
3688
+ }>, "strip", z.ZodTypeAny, {
3689
+ id: string;
3690
+ tenant: string;
3691
+ name: string;
3692
+ responded: boolean;
3693
+ ref?: any;
3694
+ model_ver?: number | undefined;
3695
+ created_at?: Date | null | undefined;
3696
+ updated_at?: Date | null | undefined;
3697
+ deleted_at?: Date | null | undefined;
3698
+ email?: string | undefined;
3699
+ phone?: string | undefined;
3700
+ }, {
3701
+ id: string;
3702
+ tenant: string;
3703
+ name: string;
3704
+ responded: boolean;
3705
+ ref?: any;
3706
+ model_ver?: number | undefined;
3707
+ created_at?: Date | null | undefined;
3708
+ updated_at?: Date | null | undefined;
3709
+ deleted_at?: Date | null | undefined;
3710
+ email?: string | undefined;
3711
+ phone?: string | undefined;
3712
+ }>, "many">>>;
3713
+ invitee_count: z.ZodOptional<z.ZodNumber>;
3714
+ submissions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3715
+ id: z.ZodString;
3716
+ ref: z.ZodAny;
3717
+ tenant: z.ZodString;
3718
+ model_ver: z.ZodOptional<z.ZodNumber>;
3719
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3720
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3721
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3722
+ }, {
3723
+ deploymentId: z.ZodOptional<z.ZodString>;
3724
+ submission_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3725
+ status: z.ZodEnum<["not_started", "in_progress", "completed"]>;
3726
+ modified_after_completion: z.ZodBoolean;
3727
+ inviteeId: z.ZodOptional<z.ZodString>;
3728
+ user_name: z.ZodOptional<z.ZodString>;
3729
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3730
+ id: z.ZodString;
3731
+ ref: z.ZodAny;
3732
+ tenant: z.ZodString;
3733
+ model_ver: z.ZodOptional<z.ZodNumber>;
3734
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3735
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3736
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3737
+ }, {
3738
+ question_id: z.ZodString;
3739
+ answer: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3740
+ date: z.ZodDate;
3741
+ }>, "strip", z.ZodTypeAny, {
3742
+ id: string;
3743
+ tenant: string;
3744
+ question_id: string;
3745
+ answer: string | string[];
3746
+ date: Date;
3747
+ ref?: any;
3748
+ model_ver?: number | undefined;
3749
+ created_at?: Date | null | undefined;
3750
+ updated_at?: Date | null | undefined;
3751
+ deleted_at?: Date | null | undefined;
3752
+ }, {
3753
+ id: string;
3754
+ tenant: string;
3755
+ question_id: string;
3756
+ answer: string | string[];
3757
+ date: Date;
3758
+ ref?: any;
3759
+ model_ver?: number | undefined;
3760
+ created_at?: Date | null | undefined;
3761
+ updated_at?: Date | null | undefined;
3762
+ deleted_at?: Date | null | undefined;
3763
+ }>, "many">>;
3764
+ }>, "strip", z.ZodTypeAny, {
3765
+ id: string;
3766
+ tenant: string;
3767
+ status: "not_started" | "in_progress" | "completed";
3768
+ modified_after_completion: boolean;
3769
+ ref?: any;
3770
+ model_ver?: number | undefined;
3771
+ created_at?: Date | null | undefined;
3772
+ updated_at?: Date | null | undefined;
3773
+ deleted_at?: Date | null | undefined;
3774
+ deploymentId?: string | undefined;
3775
+ submission_date?: Date | null | undefined;
3776
+ inviteeId?: string | undefined;
3777
+ user_name?: string | undefined;
3778
+ responses?: {
3779
+ id: string;
3780
+ tenant: string;
3781
+ question_id: string;
3782
+ answer: string | string[];
3783
+ date: Date;
3784
+ ref?: any;
3785
+ model_ver?: number | undefined;
3786
+ created_at?: Date | null | undefined;
3787
+ updated_at?: Date | null | undefined;
3788
+ deleted_at?: Date | null | undefined;
3789
+ }[] | undefined;
3790
+ }, {
3791
+ id: string;
3792
+ tenant: string;
3793
+ status: "not_started" | "in_progress" | "completed";
3794
+ modified_after_completion: boolean;
3795
+ ref?: any;
3796
+ model_ver?: number | undefined;
3797
+ created_at?: Date | null | undefined;
3798
+ updated_at?: Date | null | undefined;
3799
+ deleted_at?: Date | null | undefined;
3800
+ deploymentId?: string | undefined;
3801
+ submission_date?: Date | null | undefined;
3802
+ inviteeId?: string | undefined;
3803
+ user_name?: string | undefined;
3804
+ responses?: {
3805
+ id: string;
3806
+ tenant: string;
3807
+ question_id: string;
3808
+ answer: string | string[];
3809
+ date: Date;
3810
+ ref?: any;
3811
+ model_ver?: number | undefined;
3812
+ created_at?: Date | null | undefined;
3813
+ updated_at?: Date | null | undefined;
3814
+ deleted_at?: Date | null | undefined;
3815
+ }[] | undefined;
3816
+ }>, "many">>>;
3817
+ submission_count: z.ZodOptional<z.ZodNumber>;
3818
+ submission_not_started_count: z.ZodOptional<z.ZodNumber>;
3819
+ submission_in_progress_count: z.ZodOptional<z.ZodNumber>;
3820
+ submission_completed_count: z.ZodOptional<z.ZodNumber>;
3821
+ }>, "strip", z.ZodTypeAny, {
3822
+ id: string;
3823
+ tenant: string;
3824
+ name: string;
3825
+ status: "draft" | "in_progress" | "open" | "closed" | "paused";
3826
+ start_date: Date | null;
3827
+ end_date: Date | null;
3828
+ allow_edit_answers: boolean;
3829
+ allow_partial_submission: boolean;
3830
+ ref?: any;
3831
+ model_ver?: number | undefined;
3832
+ created_at?: Date | null | undefined;
3833
+ updated_at?: Date | null | undefined;
3834
+ deleted_at?: Date | null | undefined;
3835
+ description?: string | undefined;
3836
+ submissions?: {
3837
+ id: string;
3838
+ tenant: string;
3839
+ status: "not_started" | "in_progress" | "completed";
3840
+ modified_after_completion: boolean;
3841
+ ref?: any;
3842
+ model_ver?: number | undefined;
3843
+ created_at?: Date | null | undefined;
3844
+ updated_at?: Date | null | undefined;
3845
+ deleted_at?: Date | null | undefined;
3846
+ deploymentId?: string | undefined;
3847
+ submission_date?: Date | null | undefined;
3848
+ inviteeId?: string | undefined;
3849
+ user_name?: string | undefined;
3850
+ responses?: {
3851
+ id: string;
3852
+ tenant: string;
3853
+ question_id: string;
3854
+ answer: string | string[];
3855
+ date: Date;
3856
+ ref?: any;
3857
+ model_ver?: number | undefined;
3858
+ created_at?: Date | null | undefined;
3859
+ updated_at?: Date | null | undefined;
3860
+ deleted_at?: Date | null | undefined;
3861
+ }[] | undefined;
3862
+ }[] | null | undefined;
3863
+ surveySourceRef?: any;
3864
+ survey?: z.objectOutputType<z.objectUtil.extendShape<{
3865
+ id: z.ZodString;
3866
+ ref: z.ZodAny;
3867
+ tenant: z.ZodString;
3868
+ model_ver: z.ZodOptional<z.ZodNumber>;
3869
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3870
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3871
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3872
+ }, {
3873
+ name: z.ZodString;
3874
+ description: z.ZodOptional<z.ZodString>;
3875
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
3876
+ permission: z.ZodEnum<["private", "company", "public"]>;
3877
+ type: z.ZodEnum<["360", "general"]>;
3878
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
3879
+ id: z.ZodString;
3880
+ ref: z.ZodAny;
3881
+ tenant: z.ZodString;
3882
+ model_ver: z.ZodOptional<z.ZodNumber>;
3883
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3884
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3885
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3886
+ }, {
3887
+ surveyId: z.ZodString;
3888
+ name: z.ZodString;
3889
+ description: z.ZodString;
3890
+ order: z.ZodNumber;
3891
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3892
+ id: z.ZodString;
3893
+ ref: z.ZodAny;
3894
+ tenant: z.ZodString;
3895
+ model_ver: z.ZodOptional<z.ZodNumber>;
3896
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3897
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3898
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3899
+ }, {
3900
+ surveyId: z.ZodString;
3901
+ sectionId: z.ZodString;
3902
+ statement: z.ZodOptional<z.ZodString>;
3903
+ description: z.ZodOptional<z.ZodString>;
3904
+ description_text: z.ZodOptional<z.ZodString>;
3905
+ order: z.ZodOptional<z.ZodNumber>;
3906
+ required: z.ZodOptional<z.ZodBoolean>;
3907
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3908
+ name: z.ZodString;
3909
+ color: z.ZodOptional<z.ZodString>;
3910
+ hidden: z.ZodBoolean;
3911
+ }, "strip", z.ZodTypeAny, {
3912
+ name: string;
3913
+ hidden: boolean;
3914
+ color?: string | undefined;
3915
+ }, {
3916
+ name: string;
3917
+ hidden: boolean;
3918
+ color?: string | undefined;
3919
+ }>, "many">>;
3920
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
3921
+ }>, {
3922
+ type: z.ZodLiteral<"essay">;
3923
+ length_min: z.ZodOptional<z.ZodNumber>;
3924
+ length_max: z.ZodOptional<z.ZodNumber>;
3925
+ }>, "strip", z.ZodTypeAny, {
3926
+ id: string;
3927
+ tenant: string;
3928
+ type: "essay";
3929
+ surveyId: string;
3930
+ sectionId: string;
3931
+ ref?: any;
3932
+ model_ver?: number | undefined;
3933
+ created_at?: Date | null | undefined;
3934
+ updated_at?: Date | null | undefined;
3935
+ deleted_at?: Date | null | undefined;
3936
+ description?: string | undefined;
3937
+ tags?: {
3938
+ name: string;
3939
+ hidden: boolean;
3940
+ color?: string | undefined;
3941
+ }[] | undefined;
3942
+ statement?: string | undefined;
3943
+ description_text?: string | undefined;
3944
+ order?: number | undefined;
3945
+ required?: boolean | undefined;
3946
+ length_min?: number | undefined;
3947
+ length_max?: number | undefined;
3948
+ }, {
3949
+ id: string;
3950
+ tenant: string;
3951
+ type: "essay";
3952
+ surveyId: string;
3953
+ sectionId: string;
3954
+ ref?: any;
3955
+ model_ver?: number | undefined;
3956
+ created_at?: Date | null | undefined;
3957
+ updated_at?: Date | null | undefined;
3958
+ deleted_at?: Date | null | undefined;
3959
+ description?: string | undefined;
3960
+ tags?: {
3961
+ name: string;
3962
+ hidden: boolean;
3963
+ color?: string | undefined;
3964
+ }[] | undefined;
3965
+ statement?: string | undefined;
3966
+ description_text?: string | undefined;
3967
+ order?: number | undefined;
3968
+ required?: boolean | undefined;
3969
+ length_min?: number | undefined;
3970
+ length_max?: number | undefined;
3971
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3972
+ id: z.ZodString;
3973
+ ref: z.ZodAny;
3974
+ tenant: z.ZodString;
3975
+ model_ver: z.ZodOptional<z.ZodNumber>;
3976
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3977
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3978
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3979
+ }, {
3980
+ surveyId: z.ZodString;
3981
+ sectionId: z.ZodString;
3982
+ statement: z.ZodOptional<z.ZodString>;
3983
+ description: z.ZodOptional<z.ZodString>;
3984
+ description_text: z.ZodOptional<z.ZodString>;
3985
+ order: z.ZodOptional<z.ZodNumber>;
3986
+ required: z.ZodOptional<z.ZodBoolean>;
3987
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
3988
+ name: z.ZodString;
3989
+ color: z.ZodOptional<z.ZodString>;
3990
+ hidden: z.ZodBoolean;
3991
+ }, "strip", z.ZodTypeAny, {
3992
+ name: string;
3993
+ hidden: boolean;
3994
+ color?: string | undefined;
3995
+ }, {
3996
+ name: string;
3997
+ hidden: boolean;
3998
+ color?: string | undefined;
3999
+ }>, "many">>;
4000
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
4001
+ }>, {
4002
+ type: z.ZodLiteral<"scale">;
4003
+ template: z.ZodOptional<z.ZodString>;
4004
+ scale_min: z.ZodOptional<z.ZodNumber>;
4005
+ scale_max: z.ZodOptional<z.ZodNumber>;
4006
+ }>, "strip", z.ZodTypeAny, {
4007
+ id: string;
4008
+ tenant: string;
4009
+ type: "scale";
4010
+ surveyId: string;
4011
+ sectionId: string;
4012
+ ref?: any;
4013
+ model_ver?: number | undefined;
4014
+ created_at?: Date | null | undefined;
4015
+ updated_at?: Date | null | undefined;
4016
+ deleted_at?: Date | null | undefined;
4017
+ description?: string | undefined;
4018
+ tags?: {
4019
+ name: string;
4020
+ hidden: boolean;
4021
+ color?: string | undefined;
4022
+ }[] | undefined;
4023
+ statement?: string | undefined;
4024
+ description_text?: string | undefined;
4025
+ order?: number | undefined;
4026
+ required?: boolean | undefined;
4027
+ template?: string | undefined;
4028
+ scale_min?: number | undefined;
4029
+ scale_max?: number | undefined;
4030
+ }, {
4031
+ id: string;
4032
+ tenant: string;
4033
+ type: "scale";
4034
+ surveyId: string;
4035
+ sectionId: string;
4036
+ ref?: any;
4037
+ model_ver?: number | undefined;
4038
+ created_at?: Date | null | undefined;
4039
+ updated_at?: Date | null | undefined;
4040
+ deleted_at?: Date | null | undefined;
4041
+ description?: string | undefined;
4042
+ tags?: {
4043
+ name: string;
4044
+ hidden: boolean;
4045
+ color?: string | undefined;
4046
+ }[] | undefined;
4047
+ statement?: string | undefined;
4048
+ description_text?: string | undefined;
4049
+ order?: number | undefined;
4050
+ required?: boolean | undefined;
4051
+ template?: string | undefined;
4052
+ scale_min?: number | undefined;
4053
+ scale_max?: number | undefined;
4054
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4055
+ id: z.ZodString;
4056
+ ref: z.ZodAny;
4057
+ tenant: z.ZodString;
4058
+ model_ver: z.ZodOptional<z.ZodNumber>;
4059
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4060
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4061
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4062
+ }, {
4063
+ surveyId: z.ZodString;
4064
+ sectionId: z.ZodString;
4065
+ statement: z.ZodOptional<z.ZodString>;
4066
+ description: z.ZodOptional<z.ZodString>;
4067
+ description_text: z.ZodOptional<z.ZodString>;
4068
+ order: z.ZodOptional<z.ZodNumber>;
4069
+ required: z.ZodOptional<z.ZodBoolean>;
4070
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4071
+ name: z.ZodString;
4072
+ color: z.ZodOptional<z.ZodString>;
4073
+ hidden: z.ZodBoolean;
4074
+ }, "strip", z.ZodTypeAny, {
4075
+ name: string;
4076
+ hidden: boolean;
4077
+ color?: string | undefined;
4078
+ }, {
4079
+ name: string;
4080
+ hidden: boolean;
4081
+ color?: string | undefined;
4082
+ }>, "many">>;
4083
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
4084
+ }>, {
4085
+ type: z.ZodLiteral<"options">;
4086
+ options: z.ZodArray<z.ZodString, "many">;
4087
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
4088
+ }>, "strip", z.ZodTypeAny, {
4089
+ id: string;
4090
+ tenant: string;
4091
+ type: "options";
4092
+ options: string[];
4093
+ surveyId: string;
4094
+ sectionId: string;
4095
+ ref?: any;
4096
+ model_ver?: number | undefined;
4097
+ created_at?: Date | null | undefined;
4098
+ updated_at?: Date | null | undefined;
4099
+ deleted_at?: Date | null | undefined;
4100
+ description?: string | undefined;
4101
+ tags?: {
4102
+ name: string;
4103
+ hidden: boolean;
4104
+ color?: string | undefined;
4105
+ }[] | undefined;
4106
+ statement?: string | undefined;
4107
+ description_text?: string | undefined;
4108
+ order?: number | undefined;
4109
+ required?: boolean | undefined;
4110
+ allow_multiple_selections?: boolean | undefined;
4111
+ }, {
4112
+ id: string;
4113
+ tenant: string;
4114
+ type: "options";
4115
+ options: string[];
4116
+ surveyId: string;
4117
+ sectionId: string;
4118
+ ref?: any;
4119
+ model_ver?: number | undefined;
4120
+ created_at?: Date | null | undefined;
4121
+ updated_at?: Date | null | undefined;
4122
+ deleted_at?: Date | null | undefined;
4123
+ description?: string | undefined;
4124
+ tags?: {
4125
+ name: string;
4126
+ hidden: boolean;
4127
+ color?: string | undefined;
4128
+ }[] | undefined;
4129
+ statement?: string | undefined;
4130
+ description_text?: string | undefined;
4131
+ order?: number | undefined;
4132
+ required?: boolean | undefined;
4133
+ allow_multiple_selections?: boolean | undefined;
4134
+ }>]>, "many">;
4135
+ question_count: z.ZodOptional<z.ZodNumber>;
4136
+ }>, "strip", z.ZodTypeAny, {
4137
+ id: string;
4138
+ tenant: string;
4139
+ name: string;
4140
+ description: string;
4141
+ questions: ({
4142
+ id: string;
4143
+ tenant: string;
4144
+ type: "scale";
4145
+ surveyId: string;
4146
+ sectionId: string;
4147
+ ref?: any;
4148
+ model_ver?: number | undefined;
4149
+ created_at?: Date | null | undefined;
4150
+ updated_at?: Date | null | undefined;
4151
+ deleted_at?: Date | null | undefined;
4152
+ description?: string | undefined;
4153
+ tags?: {
4154
+ name: string;
4155
+ hidden: boolean;
4156
+ color?: string | undefined;
4157
+ }[] | undefined;
4158
+ statement?: string | undefined;
4159
+ description_text?: string | undefined;
4160
+ order?: number | undefined;
4161
+ required?: boolean | undefined;
4162
+ template?: string | undefined;
4163
+ scale_min?: number | undefined;
4164
+ scale_max?: number | undefined;
4165
+ } | {
4166
+ id: string;
4167
+ tenant: string;
4168
+ type: "essay";
4169
+ surveyId: string;
4170
+ sectionId: string;
4171
+ ref?: any;
4172
+ model_ver?: number | undefined;
4173
+ created_at?: Date | null | undefined;
4174
+ updated_at?: Date | null | undefined;
4175
+ deleted_at?: Date | null | undefined;
4176
+ description?: string | undefined;
4177
+ tags?: {
4178
+ name: string;
4179
+ hidden: boolean;
4180
+ color?: string | undefined;
4181
+ }[] | undefined;
4182
+ statement?: string | undefined;
4183
+ description_text?: string | undefined;
4184
+ order?: number | undefined;
4185
+ required?: boolean | undefined;
4186
+ length_min?: number | undefined;
4187
+ length_max?: number | undefined;
4188
+ } | {
4189
+ id: string;
4190
+ tenant: string;
4191
+ type: "options";
4192
+ options: string[];
4193
+ surveyId: string;
4194
+ sectionId: string;
4195
+ ref?: any;
4196
+ model_ver?: number | undefined;
4197
+ created_at?: Date | null | undefined;
4198
+ updated_at?: Date | null | undefined;
4199
+ deleted_at?: Date | null | undefined;
4200
+ description?: string | undefined;
4201
+ tags?: {
4202
+ name: string;
4203
+ hidden: boolean;
4204
+ color?: string | undefined;
4205
+ }[] | undefined;
4206
+ statement?: string | undefined;
4207
+ description_text?: string | undefined;
4208
+ order?: number | undefined;
4209
+ required?: boolean | undefined;
4210
+ allow_multiple_selections?: boolean | undefined;
4211
+ })[];
4212
+ surveyId: string;
4213
+ order: number;
4214
+ ref?: any;
4215
+ model_ver?: number | undefined;
4216
+ created_at?: Date | null | undefined;
4217
+ updated_at?: Date | null | undefined;
4218
+ deleted_at?: Date | null | undefined;
4219
+ question_count?: number | undefined;
4220
+ }, {
4221
+ id: string;
4222
+ tenant: string;
4223
+ name: string;
4224
+ description: string;
4225
+ questions: ({
4226
+ id: string;
4227
+ tenant: string;
4228
+ type: "scale";
4229
+ surveyId: string;
4230
+ sectionId: string;
4231
+ ref?: any;
4232
+ model_ver?: number | undefined;
4233
+ created_at?: Date | null | undefined;
4234
+ updated_at?: Date | null | undefined;
4235
+ deleted_at?: Date | null | undefined;
4236
+ description?: string | undefined;
4237
+ tags?: {
4238
+ name: string;
4239
+ hidden: boolean;
4240
+ color?: string | undefined;
4241
+ }[] | undefined;
4242
+ statement?: string | undefined;
4243
+ description_text?: string | undefined;
4244
+ order?: number | undefined;
4245
+ required?: boolean | undefined;
4246
+ template?: string | undefined;
4247
+ scale_min?: number | undefined;
4248
+ scale_max?: number | undefined;
4249
+ } | {
4250
+ id: string;
4251
+ tenant: string;
4252
+ type: "essay";
4253
+ surveyId: string;
4254
+ sectionId: string;
4255
+ ref?: any;
4256
+ model_ver?: number | undefined;
4257
+ created_at?: Date | null | undefined;
4258
+ updated_at?: Date | null | undefined;
4259
+ deleted_at?: Date | null | undefined;
4260
+ description?: string | undefined;
4261
+ tags?: {
4262
+ name: string;
4263
+ hidden: boolean;
4264
+ color?: string | undefined;
4265
+ }[] | undefined;
4266
+ statement?: string | undefined;
4267
+ description_text?: string | undefined;
4268
+ order?: number | undefined;
4269
+ required?: boolean | undefined;
4270
+ length_min?: number | undefined;
4271
+ length_max?: number | undefined;
4272
+ } | {
4273
+ id: string;
4274
+ tenant: string;
4275
+ type: "options";
4276
+ options: string[];
4277
+ surveyId: string;
4278
+ sectionId: string;
4279
+ ref?: any;
4280
+ model_ver?: number | undefined;
4281
+ created_at?: Date | null | undefined;
4282
+ updated_at?: Date | null | undefined;
4283
+ deleted_at?: Date | null | undefined;
4284
+ description?: string | undefined;
4285
+ tags?: {
4286
+ name: string;
4287
+ hidden: boolean;
4288
+ color?: string | undefined;
4289
+ }[] | undefined;
4290
+ statement?: string | undefined;
4291
+ description_text?: string | undefined;
4292
+ order?: number | undefined;
4293
+ required?: boolean | undefined;
4294
+ allow_multiple_selections?: boolean | undefined;
4295
+ })[];
4296
+ surveyId: string;
4297
+ order: number;
4298
+ ref?: any;
4299
+ model_ver?: number | undefined;
4300
+ created_at?: Date | null | undefined;
4301
+ updated_at?: Date | null | undefined;
4302
+ deleted_at?: Date | null | undefined;
4303
+ question_count?: number | undefined;
4304
+ }>, "many">>;
4305
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4306
+ name: z.ZodString;
4307
+ color: z.ZodOptional<z.ZodString>;
4308
+ hidden: z.ZodBoolean;
4309
+ }, "strip", z.ZodTypeAny, {
4310
+ name: string;
4311
+ hidden: boolean;
4312
+ color?: string | undefined;
4313
+ }, {
4314
+ name: string;
4315
+ hidden: boolean;
4316
+ color?: string | undefined;
4317
+ }>, "many">>;
4318
+ }>, z.ZodTypeAny, "passthrough"> | null | undefined;
4319
+ invitees?: {
4320
+ id: string;
4321
+ tenant: string;
4322
+ name: string;
4323
+ responded: boolean;
4324
+ ref?: any;
4325
+ model_ver?: number | undefined;
4326
+ created_at?: Date | null | undefined;
4327
+ updated_at?: Date | null | undefined;
4328
+ deleted_at?: Date | null | undefined;
4329
+ email?: string | undefined;
4330
+ phone?: string | undefined;
4331
+ }[] | null | undefined;
4332
+ invitee_count?: number | undefined;
4333
+ submission_count?: number | undefined;
4334
+ submission_not_started_count?: number | undefined;
4335
+ submission_in_progress_count?: number | undefined;
4336
+ submission_completed_count?: number | undefined;
4337
+ }, {
4338
+ id: string;
4339
+ tenant: string;
4340
+ name: string;
4341
+ status: "draft" | "in_progress" | "open" | "closed" | "paused";
4342
+ start_date: Date | null;
4343
+ end_date: Date | null;
4344
+ allow_edit_answers: boolean;
4345
+ allow_partial_submission: boolean;
4346
+ ref?: any;
4347
+ model_ver?: number | undefined;
4348
+ created_at?: Date | null | undefined;
4349
+ updated_at?: Date | null | undefined;
4350
+ deleted_at?: Date | null | undefined;
4351
+ description?: string | undefined;
4352
+ submissions?: {
4353
+ id: string;
4354
+ tenant: string;
4355
+ status: "not_started" | "in_progress" | "completed";
4356
+ modified_after_completion: boolean;
4357
+ ref?: any;
4358
+ model_ver?: number | undefined;
4359
+ created_at?: Date | null | undefined;
4360
+ updated_at?: Date | null | undefined;
4361
+ deleted_at?: Date | null | undefined;
4362
+ deploymentId?: string | undefined;
4363
+ submission_date?: Date | null | undefined;
4364
+ inviteeId?: string | undefined;
4365
+ user_name?: string | undefined;
4366
+ responses?: {
4367
+ id: string;
4368
+ tenant: string;
4369
+ question_id: string;
4370
+ answer: string | string[];
4371
+ date: Date;
4372
+ ref?: any;
4373
+ model_ver?: number | undefined;
4374
+ created_at?: Date | null | undefined;
4375
+ updated_at?: Date | null | undefined;
4376
+ deleted_at?: Date | null | undefined;
4377
+ }[] | undefined;
4378
+ }[] | null | undefined;
4379
+ surveySourceRef?: any;
4380
+ survey?: z.objectInputType<z.objectUtil.extendShape<{
4381
+ id: z.ZodString;
4382
+ ref: z.ZodAny;
4383
+ tenant: z.ZodString;
4384
+ model_ver: z.ZodOptional<z.ZodNumber>;
4385
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4386
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4387
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4388
+ }, {
4389
+ name: z.ZodString;
4390
+ description: z.ZodOptional<z.ZodString>;
4391
+ status: z.ZodEnum<["draft", "ready", "archived"]>;
4392
+ permission: z.ZodEnum<["private", "company", "public"]>;
4393
+ type: z.ZodEnum<["360", "general"]>;
4394
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4395
+ id: z.ZodString;
4396
+ ref: z.ZodAny;
4397
+ tenant: z.ZodString;
4398
+ model_ver: z.ZodOptional<z.ZodNumber>;
4399
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4400
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4401
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4402
+ }, {
4403
+ surveyId: z.ZodString;
4404
+ name: z.ZodString;
4405
+ description: z.ZodString;
4406
+ order: z.ZodNumber;
4407
+ questions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4408
+ id: z.ZodString;
4409
+ ref: z.ZodAny;
4410
+ tenant: z.ZodString;
4411
+ model_ver: z.ZodOptional<z.ZodNumber>;
4412
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4413
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4414
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4415
+ }, {
4416
+ surveyId: z.ZodString;
4417
+ sectionId: z.ZodString;
4418
+ statement: z.ZodOptional<z.ZodString>;
4419
+ description: z.ZodOptional<z.ZodString>;
4420
+ description_text: z.ZodOptional<z.ZodString>;
4421
+ order: z.ZodOptional<z.ZodNumber>;
4422
+ required: z.ZodOptional<z.ZodBoolean>;
4423
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4424
+ name: z.ZodString;
4425
+ color: z.ZodOptional<z.ZodString>;
4426
+ hidden: z.ZodBoolean;
4427
+ }, "strip", z.ZodTypeAny, {
4428
+ name: string;
4429
+ hidden: boolean;
4430
+ color?: string | undefined;
4431
+ }, {
4432
+ name: string;
4433
+ hidden: boolean;
4434
+ color?: string | undefined;
4435
+ }>, "many">>;
4436
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
4437
+ }>, {
4438
+ type: z.ZodLiteral<"essay">;
4439
+ length_min: z.ZodOptional<z.ZodNumber>;
4440
+ length_max: z.ZodOptional<z.ZodNumber>;
4441
+ }>, "strip", z.ZodTypeAny, {
4442
+ id: string;
4443
+ tenant: string;
4444
+ type: "essay";
4445
+ surveyId: string;
4446
+ sectionId: string;
4447
+ ref?: any;
4448
+ model_ver?: number | undefined;
4449
+ created_at?: Date | null | undefined;
4450
+ updated_at?: Date | null | undefined;
4451
+ deleted_at?: Date | null | undefined;
4452
+ description?: string | undefined;
4453
+ tags?: {
4454
+ name: string;
4455
+ hidden: boolean;
4456
+ color?: string | undefined;
4457
+ }[] | undefined;
4458
+ statement?: string | undefined;
4459
+ description_text?: string | undefined;
4460
+ order?: number | undefined;
4461
+ required?: boolean | undefined;
4462
+ length_min?: number | undefined;
4463
+ length_max?: number | undefined;
4464
+ }, {
4465
+ id: string;
4466
+ tenant: string;
4467
+ type: "essay";
4468
+ surveyId: string;
4469
+ sectionId: string;
4470
+ ref?: any;
4471
+ model_ver?: number | undefined;
4472
+ created_at?: Date | null | undefined;
4473
+ updated_at?: Date | null | undefined;
4474
+ deleted_at?: Date | null | undefined;
4475
+ description?: string | undefined;
4476
+ tags?: {
4477
+ name: string;
4478
+ hidden: boolean;
4479
+ color?: string | undefined;
4480
+ }[] | undefined;
4481
+ statement?: string | undefined;
4482
+ description_text?: string | undefined;
4483
+ order?: number | undefined;
4484
+ required?: boolean | undefined;
4485
+ length_min?: number | undefined;
4486
+ length_max?: number | undefined;
4487
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4488
+ id: z.ZodString;
4489
+ ref: z.ZodAny;
4490
+ tenant: z.ZodString;
4491
+ model_ver: z.ZodOptional<z.ZodNumber>;
4492
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4493
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4494
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4495
+ }, {
4496
+ surveyId: z.ZodString;
4497
+ sectionId: z.ZodString;
4498
+ statement: z.ZodOptional<z.ZodString>;
4499
+ description: z.ZodOptional<z.ZodString>;
4500
+ description_text: z.ZodOptional<z.ZodString>;
4501
+ order: z.ZodOptional<z.ZodNumber>;
4502
+ required: z.ZodOptional<z.ZodBoolean>;
4503
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4504
+ name: z.ZodString;
4505
+ color: z.ZodOptional<z.ZodString>;
4506
+ hidden: z.ZodBoolean;
4507
+ }, "strip", z.ZodTypeAny, {
4508
+ name: string;
4509
+ hidden: boolean;
4510
+ color?: string | undefined;
4511
+ }, {
4512
+ name: string;
4513
+ hidden: boolean;
4514
+ color?: string | undefined;
4515
+ }>, "many">>;
4516
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
4517
+ }>, {
4518
+ type: z.ZodLiteral<"scale">;
4519
+ template: z.ZodOptional<z.ZodString>;
4520
+ scale_min: z.ZodOptional<z.ZodNumber>;
4521
+ scale_max: z.ZodOptional<z.ZodNumber>;
4522
+ }>, "strip", z.ZodTypeAny, {
4523
+ id: string;
4524
+ tenant: string;
4525
+ type: "scale";
4526
+ surveyId: string;
4527
+ sectionId: string;
4528
+ ref?: any;
4529
+ model_ver?: number | undefined;
4530
+ created_at?: Date | null | undefined;
4531
+ updated_at?: Date | null | undefined;
4532
+ deleted_at?: Date | null | undefined;
4533
+ description?: string | undefined;
4534
+ tags?: {
4535
+ name: string;
4536
+ hidden: boolean;
4537
+ color?: string | undefined;
4538
+ }[] | undefined;
4539
+ statement?: string | undefined;
4540
+ description_text?: string | undefined;
4541
+ order?: number | undefined;
4542
+ required?: boolean | undefined;
4543
+ template?: string | undefined;
4544
+ scale_min?: number | undefined;
4545
+ scale_max?: number | undefined;
4546
+ }, {
4547
+ id: string;
4548
+ tenant: string;
4549
+ type: "scale";
4550
+ surveyId: string;
4551
+ sectionId: string;
4552
+ ref?: any;
4553
+ model_ver?: number | undefined;
4554
+ created_at?: Date | null | undefined;
4555
+ updated_at?: Date | null | undefined;
4556
+ deleted_at?: Date | null | undefined;
4557
+ description?: string | undefined;
4558
+ tags?: {
4559
+ name: string;
4560
+ hidden: boolean;
4561
+ color?: string | undefined;
4562
+ }[] | undefined;
4563
+ statement?: string | undefined;
4564
+ description_text?: string | undefined;
4565
+ order?: number | undefined;
4566
+ required?: boolean | undefined;
4567
+ template?: string | undefined;
4568
+ scale_min?: number | undefined;
4569
+ scale_max?: number | undefined;
4570
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4571
+ id: z.ZodString;
4572
+ ref: z.ZodAny;
4573
+ tenant: z.ZodString;
4574
+ model_ver: z.ZodOptional<z.ZodNumber>;
4575
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4576
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4577
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4578
+ }, {
4579
+ surveyId: z.ZodString;
4580
+ sectionId: z.ZodString;
4581
+ statement: z.ZodOptional<z.ZodString>;
4582
+ description: z.ZodOptional<z.ZodString>;
4583
+ description_text: z.ZodOptional<z.ZodString>;
4584
+ order: z.ZodOptional<z.ZodNumber>;
4585
+ required: z.ZodOptional<z.ZodBoolean>;
4586
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4587
+ name: z.ZodString;
4588
+ color: z.ZodOptional<z.ZodString>;
4589
+ hidden: z.ZodBoolean;
4590
+ }, "strip", z.ZodTypeAny, {
4591
+ name: string;
4592
+ hidden: boolean;
4593
+ color?: string | undefined;
4594
+ }, {
4595
+ name: string;
4596
+ hidden: boolean;
4597
+ color?: string | undefined;
4598
+ }>, "many">>;
4599
+ type: z.ZodOptional<z.ZodEnum<["scale", "essay", "options"]>>;
4600
+ }>, {
4601
+ type: z.ZodLiteral<"options">;
4602
+ options: z.ZodArray<z.ZodString, "many">;
4603
+ allow_multiple_selections: z.ZodOptional<z.ZodBoolean>;
4604
+ }>, "strip", z.ZodTypeAny, {
4605
+ id: string;
4606
+ tenant: string;
4607
+ type: "options";
4608
+ options: string[];
4609
+ surveyId: string;
4610
+ sectionId: string;
4611
+ ref?: any;
4612
+ model_ver?: number | undefined;
4613
+ created_at?: Date | null | undefined;
4614
+ updated_at?: Date | null | undefined;
4615
+ deleted_at?: Date | null | undefined;
4616
+ description?: string | undefined;
4617
+ tags?: {
4618
+ name: string;
4619
+ hidden: boolean;
4620
+ color?: string | undefined;
4621
+ }[] | undefined;
4622
+ statement?: string | undefined;
4623
+ description_text?: string | undefined;
4624
+ order?: number | undefined;
4625
+ required?: boolean | undefined;
4626
+ allow_multiple_selections?: boolean | undefined;
4627
+ }, {
4628
+ id: string;
4629
+ tenant: string;
4630
+ type: "options";
4631
+ options: string[];
4632
+ surveyId: string;
4633
+ sectionId: string;
4634
+ ref?: any;
4635
+ model_ver?: number | undefined;
4636
+ created_at?: Date | null | undefined;
4637
+ updated_at?: Date | null | undefined;
4638
+ deleted_at?: Date | null | undefined;
4639
+ description?: string | undefined;
4640
+ tags?: {
4641
+ name: string;
4642
+ hidden: boolean;
4643
+ color?: string | undefined;
4644
+ }[] | undefined;
4645
+ statement?: string | undefined;
4646
+ description_text?: string | undefined;
4647
+ order?: number | undefined;
4648
+ required?: boolean | undefined;
4649
+ allow_multiple_selections?: boolean | undefined;
4650
+ }>]>, "many">;
4651
+ question_count: z.ZodOptional<z.ZodNumber>;
4652
+ }>, "strip", z.ZodTypeAny, {
4653
+ id: string;
4654
+ tenant: string;
4655
+ name: string;
4656
+ description: string;
4657
+ questions: ({
4658
+ id: string;
4659
+ tenant: string;
4660
+ type: "scale";
4661
+ surveyId: string;
4662
+ sectionId: string;
4663
+ ref?: any;
4664
+ model_ver?: number | undefined;
4665
+ created_at?: Date | null | undefined;
4666
+ updated_at?: Date | null | undefined;
4667
+ deleted_at?: Date | null | undefined;
4668
+ description?: string | undefined;
4669
+ tags?: {
4670
+ name: string;
4671
+ hidden: boolean;
4672
+ color?: string | undefined;
4673
+ }[] | undefined;
4674
+ statement?: string | undefined;
4675
+ description_text?: string | undefined;
4676
+ order?: number | undefined;
4677
+ required?: boolean | undefined;
4678
+ template?: string | undefined;
4679
+ scale_min?: number | undefined;
4680
+ scale_max?: number | undefined;
4681
+ } | {
4682
+ id: string;
4683
+ tenant: string;
4684
+ type: "essay";
4685
+ surveyId: string;
4686
+ sectionId: string;
4687
+ ref?: any;
4688
+ model_ver?: number | undefined;
4689
+ created_at?: Date | null | undefined;
4690
+ updated_at?: Date | null | undefined;
4691
+ deleted_at?: Date | null | undefined;
4692
+ description?: string | undefined;
4693
+ tags?: {
4694
+ name: string;
4695
+ hidden: boolean;
4696
+ color?: string | undefined;
4697
+ }[] | undefined;
4698
+ statement?: string | undefined;
4699
+ description_text?: string | undefined;
4700
+ order?: number | undefined;
4701
+ required?: boolean | undefined;
4702
+ length_min?: number | undefined;
4703
+ length_max?: number | undefined;
4704
+ } | {
4705
+ id: string;
4706
+ tenant: string;
4707
+ type: "options";
4708
+ options: string[];
4709
+ surveyId: string;
4710
+ sectionId: string;
4711
+ ref?: any;
4712
+ model_ver?: number | undefined;
4713
+ created_at?: Date | null | undefined;
4714
+ updated_at?: Date | null | undefined;
4715
+ deleted_at?: Date | null | undefined;
4716
+ description?: string | undefined;
4717
+ tags?: {
4718
+ name: string;
4719
+ hidden: boolean;
4720
+ color?: string | undefined;
4721
+ }[] | undefined;
4722
+ statement?: string | undefined;
4723
+ description_text?: string | undefined;
4724
+ order?: number | undefined;
4725
+ required?: boolean | undefined;
4726
+ allow_multiple_selections?: boolean | undefined;
4727
+ })[];
4728
+ surveyId: string;
4729
+ order: number;
4730
+ ref?: any;
4731
+ model_ver?: number | undefined;
4732
+ created_at?: Date | null | undefined;
4733
+ updated_at?: Date | null | undefined;
4734
+ deleted_at?: Date | null | undefined;
4735
+ question_count?: number | undefined;
4736
+ }, {
4737
+ id: string;
4738
+ tenant: string;
4739
+ name: string;
4740
+ description: string;
4741
+ questions: ({
4742
+ id: string;
4743
+ tenant: string;
4744
+ type: "scale";
4745
+ surveyId: string;
4746
+ sectionId: string;
4747
+ ref?: any;
4748
+ model_ver?: number | undefined;
4749
+ created_at?: Date | null | undefined;
4750
+ updated_at?: Date | null | undefined;
4751
+ deleted_at?: Date | null | undefined;
4752
+ description?: string | undefined;
4753
+ tags?: {
4754
+ name: string;
4755
+ hidden: boolean;
4756
+ color?: string | undefined;
4757
+ }[] | undefined;
4758
+ statement?: string | undefined;
4759
+ description_text?: string | undefined;
4760
+ order?: number | undefined;
4761
+ required?: boolean | undefined;
4762
+ template?: string | undefined;
4763
+ scale_min?: number | undefined;
4764
+ scale_max?: number | undefined;
4765
+ } | {
4766
+ id: string;
4767
+ tenant: string;
4768
+ type: "essay";
4769
+ surveyId: string;
4770
+ sectionId: string;
4771
+ ref?: any;
4772
+ model_ver?: number | undefined;
4773
+ created_at?: Date | null | undefined;
4774
+ updated_at?: Date | null | undefined;
4775
+ deleted_at?: Date | null | undefined;
4776
+ description?: string | undefined;
4777
+ tags?: {
4778
+ name: string;
4779
+ hidden: boolean;
4780
+ color?: string | undefined;
4781
+ }[] | undefined;
4782
+ statement?: string | undefined;
4783
+ description_text?: string | undefined;
4784
+ order?: number | undefined;
4785
+ required?: boolean | undefined;
4786
+ length_min?: number | undefined;
4787
+ length_max?: number | undefined;
4788
+ } | {
4789
+ id: string;
4790
+ tenant: string;
4791
+ type: "options";
4792
+ options: string[];
4793
+ surveyId: string;
4794
+ sectionId: string;
4795
+ ref?: any;
4796
+ model_ver?: number | undefined;
4797
+ created_at?: Date | null | undefined;
4798
+ updated_at?: Date | null | undefined;
4799
+ deleted_at?: Date | null | undefined;
4800
+ description?: string | undefined;
4801
+ tags?: {
4802
+ name: string;
4803
+ hidden: boolean;
4804
+ color?: string | undefined;
4805
+ }[] | undefined;
4806
+ statement?: string | undefined;
4807
+ description_text?: string | undefined;
4808
+ order?: number | undefined;
4809
+ required?: boolean | undefined;
4810
+ allow_multiple_selections?: boolean | undefined;
4811
+ })[];
4812
+ surveyId: string;
4813
+ order: number;
4814
+ ref?: any;
4815
+ model_ver?: number | undefined;
4816
+ created_at?: Date | null | undefined;
4817
+ updated_at?: Date | null | undefined;
4818
+ deleted_at?: Date | null | undefined;
4819
+ question_count?: number | undefined;
4820
+ }>, "many">>;
4821
+ tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
4822
+ name: z.ZodString;
4823
+ color: z.ZodOptional<z.ZodString>;
4824
+ hidden: z.ZodBoolean;
4825
+ }, "strip", z.ZodTypeAny, {
4826
+ name: string;
4827
+ hidden: boolean;
4828
+ color?: string | undefined;
4829
+ }, {
4830
+ name: string;
4831
+ hidden: boolean;
4832
+ color?: string | undefined;
4833
+ }>, "many">>;
4834
+ }>, z.ZodTypeAny, "passthrough"> | null | undefined;
4835
+ invitees?: {
4836
+ id: string;
4837
+ tenant: string;
4838
+ name: string;
4839
+ responded: boolean;
4840
+ ref?: any;
4841
+ model_ver?: number | undefined;
4842
+ created_at?: Date | null | undefined;
4843
+ updated_at?: Date | null | undefined;
4844
+ deleted_at?: Date | null | undefined;
4845
+ email?: string | undefined;
4846
+ phone?: string | undefined;
4847
+ }[] | null | undefined;
4848
+ invitee_count?: number | undefined;
4849
+ submission_count?: number | undefined;
4850
+ submission_not_started_count?: number | undefined;
4851
+ submission_in_progress_count?: number | undefined;
4852
+ submission_completed_count?: number | undefined;
4853
+ }>;