@encatch/schema 0.1.29 → 0.1.31
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/esm/index.js +82 -25
- package/dist/esm/index.js.map +4 -4
- package/dist/types/index.d.ts +2 -1
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +14 -2
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +36 -32
- package/dist/types/schemas/fields/answer-schema.d.ts +20 -20
- package/dist/types/schemas/fields/app-props-schema.d.ts +721 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +39 -15
- package/dist/types/schemas/fields/other-screen-schema.d.ts +6 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export { userActionSchema, formConfigSchema, questionResponseSchema, responseSch
|
|
|
12
12
|
export { feedbackConfigurationItemSchema, fetchFormConfigSchema, fetchConfigurationListSchema, fetchFeedbackDetailsSchema, formConfigurationResponseSchema, questionnaireFieldsResponseSchema, fetchFeedbackDetailsResponseSchema, fetchConfigurationListResponseSchema, type FeedbackConfigurationItem, type FetchFormConfig, type FetchConfigurationListRequest, type FetchFeedbackDetailsRequest, type FormConfigurationResponse, type QuestionnaireFieldsResponse, type FetchFeedbackDetailsResponse, type FetchConfigurationListResponse, } from "./schemas/api/fetch-feedback-schema";
|
|
13
13
|
export { RefineTextParams, RefineTextResponse, RefineTextData, refineTextDataSchema, refineTextParamsSchema, refineTextResponseSchema, } from "./schemas/api/refine-text-schema";
|
|
14
14
|
export { objectToCamel, objectToSnake, toSnake, toCamel, toPascal, objectToPascal, } from './helpers/case-convert-helper';
|
|
15
|
-
export type { ObjectToCamel, ObjectToSnake, ToSnake, ToCamel, ToPascal, ObjectToPascal, } from
|
|
15
|
+
export type { ObjectToCamel, ObjectToSnake, ToSnake, ToCamel, ToPascal, ObjectToPascal, } from "./helpers/case-convert-helper";
|
|
16
|
+
export { currentModeSchema, appPropsSchema, CurrentModes, type CurrentMode, type AppProps, } from "./schemas/fields/app-props-schema";
|
|
16
17
|
export { z } from "zod";
|
|
@@ -1141,7 +1141,7 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
1141
1141
|
}, z.core.$strip>;
|
|
1142
1142
|
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1143
1143
|
isEnabled: z.ZodLiteral<false>;
|
|
1144
|
-
otherFields: z.
|
|
1144
|
+
otherFields: z.ZodObject<{
|
|
1145
1145
|
pagination: z.ZodBoolean;
|
|
1146
1146
|
questionNumber: z.ZodBoolean;
|
|
1147
1147
|
pageTitle: z.ZodBoolean;
|
|
@@ -1149,11 +1149,17 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
1149
1149
|
submitButtonLabel: z.ZodString;
|
|
1150
1150
|
previousButtonLabel: z.ZodString;
|
|
1151
1151
|
nextButtonLabel: z.ZodString;
|
|
1152
|
-
|
|
1152
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
1153
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1154
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1153
1156
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1154
1157
|
submitButtonLabel: z.ZodString;
|
|
1155
1158
|
previousButtonLabel: z.ZodString;
|
|
1156
1159
|
nextButtonLabel: z.ZodString;
|
|
1160
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
1161
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1162
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
1157
1163
|
}, z.core.$strip>>>;
|
|
1158
1164
|
}, z.core.$strip>, z.ZodObject<{
|
|
1159
1165
|
isEnabled: z.ZodLiteral<true>;
|
|
@@ -1165,11 +1171,17 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
1165
1171
|
submitButtonLabel: z.ZodString;
|
|
1166
1172
|
previousButtonLabel: z.ZodString;
|
|
1167
1173
|
nextButtonLabel: z.ZodString;
|
|
1174
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
1175
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1176
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
1168
1177
|
}, z.core.$strip>;
|
|
1169
1178
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1170
1179
|
submitButtonLabel: z.ZodString;
|
|
1171
1180
|
previousButtonLabel: z.ZodString;
|
|
1172
1181
|
nextButtonLabel: z.ZodString;
|
|
1182
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
1183
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
1184
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
1173
1185
|
}, z.core.$strip>>;
|
|
1174
1186
|
}, z.core.$strip>], "isEnabled">;
|
|
1175
1187
|
welcomeScreenProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -21,17 +21,17 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
21
21
|
questionId: z.ZodString;
|
|
22
22
|
answer: z.ZodObject<{
|
|
23
23
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
26
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
27
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
28
28
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
|
|
29
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
30
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
fileType: z.ZodString;
|
|
32
|
+
fileName: z.ZodString;
|
|
33
33
|
markers: z.ZodArray<z.ZodObject<{
|
|
34
|
-
|
|
34
|
+
markerNo: z.ZodString;
|
|
35
35
|
timeline: z.ZodString;
|
|
36
36
|
comment: z.ZodString;
|
|
37
37
|
}, z.core.$strip>>;
|
|
@@ -39,23 +39,24 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
39
39
|
others: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
type: z.ZodString;
|
|
42
|
+
error: z.ZodOptional<z.ZodString>;
|
|
42
43
|
}, z.core.$strip>;
|
|
43
44
|
export declare const responseSchema: z.ZodObject<{
|
|
44
45
|
questions: z.ZodArray<z.ZodObject<{
|
|
45
46
|
questionId: z.ZodString;
|
|
46
47
|
answer: z.ZodObject<{
|
|
47
48
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
51
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
52
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
52
53
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
|
|
54
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
55
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
fileType: z.ZodString;
|
|
57
|
+
fileName: z.ZodString;
|
|
57
58
|
markers: z.ZodArray<z.ZodObject<{
|
|
58
|
-
|
|
59
|
+
markerNo: z.ZodString;
|
|
59
60
|
timeline: z.ZodString;
|
|
60
61
|
comment: z.ZodString;
|
|
61
62
|
}, z.core.$strip>>;
|
|
@@ -63,6 +64,7 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
63
64
|
others: z.ZodOptional<z.ZodString>;
|
|
64
65
|
}, z.core.$strip>;
|
|
65
66
|
type: z.ZodString;
|
|
67
|
+
error: z.ZodOptional<z.ZodString>;
|
|
66
68
|
}, z.core.$strip>>;
|
|
67
69
|
}, z.core.$strip>;
|
|
68
70
|
export declare const matchedTriggerPropertiesSchema: z.ZodObject<{
|
|
@@ -203,17 +205,17 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
203
205
|
questionId: z.ZodString;
|
|
204
206
|
answer: z.ZodObject<{
|
|
205
207
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
209
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
210
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
211
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
210
212
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
211
|
-
|
|
213
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
214
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
fileType: z.ZodString;
|
|
216
|
+
fileName: z.ZodString;
|
|
215
217
|
markers: z.ZodArray<z.ZodObject<{
|
|
216
|
-
|
|
218
|
+
markerNo: z.ZodString;
|
|
217
219
|
timeline: z.ZodString;
|
|
218
220
|
comment: z.ZodString;
|
|
219
221
|
}, z.core.$strip>>;
|
|
@@ -221,6 +223,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
221
223
|
others: z.ZodOptional<z.ZodString>;
|
|
222
224
|
}, z.core.$strip>;
|
|
223
225
|
type: z.ZodString;
|
|
226
|
+
error: z.ZodOptional<z.ZodString>;
|
|
224
227
|
}, z.core.$strip>>;
|
|
225
228
|
}, z.core.$strip>;
|
|
226
229
|
}, z.core.$strict>;
|
|
@@ -311,17 +314,17 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
311
314
|
questionId: z.ZodString;
|
|
312
315
|
answer: z.ZodObject<{
|
|
313
316
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
317
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
319
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
320
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
318
321
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
|
|
322
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
323
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
321
|
-
|
|
322
|
-
|
|
324
|
+
fileType: z.ZodString;
|
|
325
|
+
fileName: z.ZodString;
|
|
323
326
|
markers: z.ZodArray<z.ZodObject<{
|
|
324
|
-
|
|
327
|
+
markerNo: z.ZodString;
|
|
325
328
|
timeline: z.ZodString;
|
|
326
329
|
comment: z.ZodString;
|
|
327
330
|
}, z.core.$strip>>;
|
|
@@ -329,6 +332,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
329
332
|
others: z.ZodOptional<z.ZodString>;
|
|
330
333
|
}, z.core.$strip>;
|
|
331
334
|
type: z.ZodString;
|
|
335
|
+
error: z.ZodOptional<z.ZodString>;
|
|
332
336
|
}, z.core.$strip>>;
|
|
333
337
|
}, z.core.$strip>;
|
|
334
338
|
}, z.core.$strict>]>;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const AnnotationMarkerSchema: z.ZodObject<{
|
|
3
|
-
|
|
3
|
+
markerNo: z.ZodString;
|
|
4
4
|
timeline: z.ZodString;
|
|
5
5
|
comment: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export declare const AnnotationSchema: z.ZodObject<{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
fileType: z.ZodString;
|
|
9
|
+
fileName: z.ZodString;
|
|
10
10
|
markers: z.ZodArray<z.ZodObject<{
|
|
11
|
-
|
|
11
|
+
markerNo: z.ZodString;
|
|
12
12
|
timeline: z.ZodString;
|
|
13
13
|
comment: z.ZodString;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
16
|
export declare const AnswerItemSchema: z.ZodObject<{
|
|
17
17
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
20
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
21
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
22
22
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
|
|
23
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
24
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
fileType: z.ZodString;
|
|
26
|
+
fileName: z.ZodString;
|
|
27
27
|
markers: z.ZodArray<z.ZodObject<{
|
|
28
|
-
|
|
28
|
+
markerNo: z.ZodString;
|
|
29
29
|
timeline: z.ZodString;
|
|
30
30
|
comment: z.ZodString;
|
|
31
31
|
}, z.core.$strip>>;
|
|
@@ -34,17 +34,17 @@ export declare const AnswerItemSchema: z.ZodObject<{
|
|
|
34
34
|
}, z.core.$strip>;
|
|
35
35
|
export declare const AnswerSchema: z.ZodObject<{
|
|
36
36
|
nps: z.ZodOptional<z.ZodNumber>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
longText: z.ZodOptional<z.ZodString>;
|
|
39
|
+
shortAnswer: z.ZodOptional<z.ZodString>;
|
|
40
|
+
singleChoice: z.ZodOptional<z.ZodString>;
|
|
41
41
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
|
|
42
|
+
multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
43
|
annotation: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
fileType: z.ZodString;
|
|
45
|
+
fileName: z.ZodString;
|
|
46
46
|
markers: z.ZodArray<z.ZodObject<{
|
|
47
|
-
|
|
47
|
+
markerNo: z.ZodString;
|
|
48
48
|
timeline: z.ZodString;
|
|
49
49
|
comment: z.ZodString;
|
|
50
50
|
}, z.core.$strip>>;
|