@encatch/schema 0.1.22 → 0.1.23
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.
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { questionTypeSchema, validationRuleTypeSchema, validationRuleSchema, visibilityConditionSchema, sectionSchema, questionStatusSchema, ratingDisplayStyleSchema, ratingRepresentationSizeSchema, multipleChoiceDisplayStyleSchema, multipleChoiceMultipleDisplayStyleSchema, choiceOrderOptionSchema, questionSchema, ratingQuestionSchema, annotationQuestionSchema, questionOptionSchema, nestedOptionSchema, multipleChoiceSingleQuestionSchema, multipleChoiceMultipleQuestionSchema, npsQuestionSchema, shortAnswerQuestionSchema, longAnswerQuestionSchema, nestedDropdownQuestionSchema, combinedQuestionSchema, QuestionTypes, ValidationRuleTypes, VisibilityConditionOperators, QuestionStatuses, RatingDisplayStyles, RatingRepresentationSizes, MultipleChoiceDisplayStyles, MultipleChoiceMultipleDisplayStyles, ChoiceOrderOptions, type QuestionType, type ValidationRule, type VisibilityCondition, type QuestionStatus, type Question, type RatingDisplayStyle, type RatingRepresentationSize, type RatingQuestion, type AnnotationQuestion, type QuestionOption, type NestedOption, type MultipleChoiceDisplayStyle, type MultipleChoiceSingleQuestion, type MultipleChoiceMultipleDisplayStyle, type MultipleChoiceMultipleQuestion, type NpsQuestion, type ShortAnswerQuestion, type LongAnswerQuestion, type ChoiceOrderOption, type NestedDropdownQuestion, type Section, type CombinedQuestion, } from "./schemas/fields/field-schema";
|
|
2
|
-
export {
|
|
2
|
+
export { AnnotationMarkerSchema, AnnotationSchema, AnswerItemSchema, QuestionsResponseSchema, AnswerSchema, type AnnotationMarker, type Annotation, type AnswerItem, type QuestionsResponse, type Answer, } from "./schemas/fields/answer-schema";
|
|
3
3
|
export { surveyTypeSchema, yesNoSchema, recurringUnitSchema, frequencyAndSchedulingPropertiesSchema, externalPublishingPropertiesSchema, publicationStatusSchema, feedbackConfigurationSchema, SurveyTypes, YesNoValues, RecurringUnits, PublicationStatuses, type SurveyType, type YesNo, type RecurringUnit, type PublicationStatus, type FeedbackConfiguration, type FrequencyAndSchedulingProperties, type ExternalPublishingProperties, } from "./schemas/fields/form-schema";
|
|
4
4
|
export { otherConfigurationPropertiesSchema, welcomeScreenPropertiesSchema, endScreenPropertiesSchema, appearancePropertiesSchema, formPropertiesSchema, type FormProperties, type OtherConfigurationProperties, type WelcomeScreenProperties, type EndScreenProperties, type AppearanceProperties, } from "./schemas/fields/form-properties-schema";
|
|
5
5
|
export { dismissBehaviorSchema, WelcomeScreenFieldsSchema, EndScreenFieldsSchema, WelcomeFieldsTranslationSchema, EndFieldsTranslationSchema, OtherFieldsSchema, LanguageFieldSchema, LanguagesSchema, OtherFieldsTranslationSchema, DismissBehaviors, type WelcomeFields, type EndFields, type WelcomeFieldsTranslation, type EndFieldsTranslation, type OtherFields, type OtherFieldsTranslation, type LanguageField, type Languages, } from "./schemas/fields/other-screen-schema";
|
|
@@ -19,73 +19,47 @@ export declare const formConfigSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export declare const questionResponseSchema: z.ZodObject<{
|
|
21
21
|
questionId: z.ZodString;
|
|
22
|
-
answer: z.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
value: z.ZodNumber;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
type: z.ZodLiteral<"ranking">;
|
|
42
|
-
ranks: z.ZodArray<z.ZodObject<{
|
|
43
|
-
optionId: z.ZodString;
|
|
44
|
-
rank: z.ZodNumber;
|
|
45
|
-
}, z.core.$strip>>;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
type: z.ZodLiteral<"text">;
|
|
48
|
-
values: z.ZodArray<z.ZodObject<{
|
|
49
|
-
fieldId: z.ZodString;
|
|
50
|
-
text: z.ZodString;
|
|
22
|
+
answer: z.ZodObject<{
|
|
23
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
26
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
27
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
28
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
file_type: z.ZodString;
|
|
32
|
+
file_name: z.ZodString;
|
|
33
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
34
|
+
marker_no: z.ZodString;
|
|
35
|
+
timeline: z.ZodString;
|
|
36
|
+
comment: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
51
38
|
}, z.core.$strip>>;
|
|
52
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
53
40
|
type: z.ZodString;
|
|
54
41
|
}, z.core.$strip>;
|
|
55
42
|
export declare const responseSchema: z.ZodObject<{
|
|
56
43
|
questions: z.ZodArray<z.ZodObject<{
|
|
57
44
|
questionId: z.ZodString;
|
|
58
|
-
answer: z.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
value: z.ZodNumber;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"ranking">;
|
|
78
|
-
ranks: z.ZodArray<z.ZodObject<{
|
|
79
|
-
optionId: z.ZodString;
|
|
80
|
-
rank: z.ZodNumber;
|
|
81
|
-
}, z.core.$strip>>;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
type: z.ZodLiteral<"text">;
|
|
84
|
-
values: z.ZodArray<z.ZodObject<{
|
|
85
|
-
fieldId: z.ZodString;
|
|
86
|
-
text: z.ZodString;
|
|
45
|
+
answer: z.ZodObject<{
|
|
46
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
49
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
50
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
51
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
file_type: z.ZodString;
|
|
55
|
+
file_name: z.ZodString;
|
|
56
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
57
|
+
marker_no: z.ZodString;
|
|
58
|
+
timeline: z.ZodString;
|
|
59
|
+
comment: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
87
61
|
}, z.core.$strip>>;
|
|
88
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
89
63
|
type: z.ZodString;
|
|
90
64
|
}, z.core.$strip>>;
|
|
91
65
|
}, z.core.$strip>;
|
|
@@ -219,37 +193,24 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
219
193
|
response: z.ZodObject<{
|
|
220
194
|
questions: z.ZodArray<z.ZodObject<{
|
|
221
195
|
questionId: z.ZodString;
|
|
222
|
-
answer: z.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
value: z.ZodNumber;
|
|
239
|
-
}, z.core.$strip>>;
|
|
240
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
241
|
-
type: z.ZodLiteral<"ranking">;
|
|
242
|
-
ranks: z.ZodArray<z.ZodObject<{
|
|
243
|
-
optionId: z.ZodString;
|
|
244
|
-
rank: z.ZodNumber;
|
|
245
|
-
}, z.core.$strip>>;
|
|
246
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
-
type: z.ZodLiteral<"text">;
|
|
248
|
-
values: z.ZodArray<z.ZodObject<{
|
|
249
|
-
fieldId: z.ZodString;
|
|
250
|
-
text: z.ZodString;
|
|
196
|
+
answer: z.ZodObject<{
|
|
197
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
199
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
200
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
201
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
202
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
file_type: z.ZodString;
|
|
206
|
+
file_name: z.ZodString;
|
|
207
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
208
|
+
marker_no: z.ZodString;
|
|
209
|
+
timeline: z.ZodString;
|
|
210
|
+
comment: z.ZodString;
|
|
211
|
+
}, z.core.$strip>>;
|
|
251
212
|
}, z.core.$strip>>;
|
|
252
|
-
}, z.core.$
|
|
213
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
253
214
|
type: z.ZodString;
|
|
254
215
|
}, z.core.$strip>>;
|
|
255
216
|
}, z.core.$strip>;
|
|
@@ -335,37 +296,24 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
335
296
|
response: z.ZodObject<{
|
|
336
297
|
questions: z.ZodArray<z.ZodObject<{
|
|
337
298
|
questionId: z.ZodString;
|
|
338
|
-
answer: z.
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
value: z.ZodNumber;
|
|
355
|
-
}, z.core.$strip>>;
|
|
356
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
357
|
-
type: z.ZodLiteral<"ranking">;
|
|
358
|
-
ranks: z.ZodArray<z.ZodObject<{
|
|
359
|
-
optionId: z.ZodString;
|
|
360
|
-
rank: z.ZodNumber;
|
|
361
|
-
}, z.core.$strip>>;
|
|
362
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
-
type: z.ZodLiteral<"text">;
|
|
364
|
-
values: z.ZodArray<z.ZodObject<{
|
|
365
|
-
fieldId: z.ZodString;
|
|
366
|
-
text: z.ZodString;
|
|
299
|
+
answer: z.ZodObject<{
|
|
300
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
302
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
303
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
304
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
305
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
file_type: z.ZodString;
|
|
309
|
+
file_name: z.ZodString;
|
|
310
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
311
|
+
marker_no: z.ZodString;
|
|
312
|
+
timeline: z.ZodString;
|
|
313
|
+
comment: z.ZodString;
|
|
314
|
+
}, z.core.$strip>>;
|
|
367
315
|
}, z.core.$strip>>;
|
|
368
|
-
}, z.core.$
|
|
316
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
369
317
|
type: z.ZodString;
|
|
370
318
|
}, z.core.$strip>>;
|
|
371
319
|
}, z.core.$strip>;
|
|
@@ -1,77 +1,79 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const AnnotationMarkerSchema: z.ZodObject<{
|
|
3
|
+
marker_no: z.ZodString;
|
|
4
|
+
timeline: z.ZodString;
|
|
5
|
+
comment: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export declare const ScaleAnswerSchema: z.ZodObject<{
|
|
15
|
-
type: z.ZodLiteral<"scale">;
|
|
16
|
-
value: z.ZodNumber;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export declare const ContinuousSumAnswerSchema: z.ZodObject<{
|
|
19
|
-
type: z.ZodLiteral<"continuous_sum">;
|
|
20
|
-
values: z.ZodArray<z.ZodObject<{
|
|
21
|
-
optionId: z.ZodString;
|
|
22
|
-
value: z.ZodNumber;
|
|
7
|
+
export declare const AnnotationSchema: z.ZodObject<{
|
|
8
|
+
file_type: z.ZodString;
|
|
9
|
+
file_name: z.ZodString;
|
|
10
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
11
|
+
marker_no: z.ZodString;
|
|
12
|
+
timeline: z.ZodString;
|
|
13
|
+
comment: z.ZodString;
|
|
23
14
|
}, z.core.$strip>>;
|
|
24
15
|
}, z.core.$strip>;
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
export declare const AnswerItemSchema: z.ZodObject<{
|
|
17
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
20
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
21
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
22
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
file_type: z.ZodString;
|
|
26
|
+
file_name: z.ZodString;
|
|
27
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
28
|
+
marker_no: z.ZodString;
|
|
29
|
+
timeline: z.ZodString;
|
|
30
|
+
comment: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>;
|
|
30
32
|
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
34
|
+
export declare const QuestionsResponseSchema: z.ZodObject<{
|
|
35
|
+
question_id: z.ZodString;
|
|
36
|
+
title: z.ZodString;
|
|
37
|
+
answer: z.ZodObject<{
|
|
38
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
41
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
42
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
43
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
file_type: z.ZodString;
|
|
47
|
+
file_name: z.ZodString;
|
|
48
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
49
|
+
marker_no: z.ZodString;
|
|
50
|
+
timeline: z.ZodString;
|
|
51
|
+
comment: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
55
|
+
type: z.ZodString;
|
|
31
56
|
}, z.core.$strip>;
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
type: z.ZodLiteral<"scale">;
|
|
50
|
-
value: z.ZodNumber;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
type: z.ZodLiteral<"continuous_sum">;
|
|
53
|
-
values: z.ZodArray<z.ZodObject<{
|
|
54
|
-
optionId: z.ZodString;
|
|
55
|
-
value: z.ZodNumber;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
type: z.ZodLiteral<"ranking">;
|
|
59
|
-
ranks: z.ZodArray<z.ZodObject<{
|
|
60
|
-
optionId: z.ZodString;
|
|
61
|
-
rank: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
type: z.ZodLiteral<"text">;
|
|
65
|
-
values: z.ZodArray<z.ZodObject<{
|
|
66
|
-
fieldId: z.ZodString;
|
|
67
|
-
text: z.ZodString;
|
|
57
|
+
export declare const AnswerSchema: z.ZodObject<{
|
|
58
|
+
nps: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
nested_selection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
long_text: z.ZodOptional<z.ZodString>;
|
|
61
|
+
short_answer: z.ZodOptional<z.ZodString>;
|
|
62
|
+
single_choice: z.ZodOptional<z.ZodString>;
|
|
63
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
multiple_choice_multiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
annotation: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
file_type: z.ZodString;
|
|
67
|
+
file_name: z.ZodString;
|
|
68
|
+
markers: z.ZodArray<z.ZodObject<{
|
|
69
|
+
marker_no: z.ZodString;
|
|
70
|
+
timeline: z.ZodString;
|
|
71
|
+
comment: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>;
|
|
68
73
|
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$
|
|
70
|
-
export type
|
|
71
|
-
export type
|
|
72
|
-
export type
|
|
73
|
-
export type
|
|
74
|
-
export type
|
|
75
|
-
export type RankingAnswer = z.infer<typeof RankingAnswerSchema>;
|
|
76
|
-
export type TextAnswer = z.infer<typeof TextAnswerSchema>;
|
|
77
|
-
export type Answer = z.infer<typeof SimpleAnswerSchema> | z.infer<typeof ChoiceAnswerSchema> | z.infer<typeof MultipleChoiceAnswerSchema> | z.infer<typeof ScaleAnswerSchema> | z.infer<typeof ContinuousSumAnswerSchema> | z.infer<typeof RankingAnswerSchema> | z.infer<typeof TextAnswerSchema>;
|
|
74
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
75
|
+
export type AnnotationMarker = z.infer<typeof AnnotationMarkerSchema>;
|
|
76
|
+
export type Annotation = z.infer<typeof AnnotationSchema>;
|
|
77
|
+
export type AnswerItem = z.infer<typeof AnswerItemSchema>;
|
|
78
|
+
export type QuestionsResponse = z.infer<typeof QuestionsResponseSchema>;
|
|
79
|
+
export type Answer = z.infer<typeof AnswerSchema>;
|
package/package.json
CHANGED