@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
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { OtherFieldsSchema, OtherFieldsTranslationSchema, WelcomeScreenFieldsSchema, WelcomeFieldsTranslationSchema, EndScreenFieldsSchema, EndFieldsTranslationSchema } from "./other-screen-schema";
|
|
3
3
|
export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
isEnabled: z.ZodLiteral<false>;
|
|
5
|
-
otherFields: z.
|
|
5
|
+
otherFields: z.ZodObject<{
|
|
6
6
|
pagination: z.ZodBoolean;
|
|
7
7
|
questionNumber: z.ZodBoolean;
|
|
8
8
|
pageTitle: z.ZodBoolean;
|
|
@@ -10,11 +10,17 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
10
10
|
submitButtonLabel: z.ZodString;
|
|
11
11
|
previousButtonLabel: z.ZodString;
|
|
12
12
|
nextButtonLabel: z.ZodString;
|
|
13
|
-
|
|
13
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
14
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
15
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
14
17
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15
18
|
submitButtonLabel: z.ZodString;
|
|
16
19
|
previousButtonLabel: z.ZodString;
|
|
17
20
|
nextButtonLabel: z.ZodString;
|
|
21
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
22
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
23
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
18
24
|
}, z.core.$strip>>>;
|
|
19
25
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
26
|
isEnabled: z.ZodLiteral<true>;
|
|
@@ -26,11 +32,17 @@ export declare const otherConfigurationPropertiesSchema: z.ZodDiscriminatedUnion
|
|
|
26
32
|
submitButtonLabel: z.ZodString;
|
|
27
33
|
previousButtonLabel: z.ZodString;
|
|
28
34
|
nextButtonLabel: z.ZodString;
|
|
35
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
36
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
37
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
29
38
|
}, z.core.$strip>;
|
|
30
39
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
31
40
|
submitButtonLabel: z.ZodString;
|
|
32
41
|
previousButtonLabel: z.ZodString;
|
|
33
42
|
nextButtonLabel: z.ZodString;
|
|
43
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
44
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
45
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
34
46
|
}, z.core.$strip>>;
|
|
35
47
|
}, z.core.$strip>], "isEnabled">;
|
|
36
48
|
export declare const welcomeScreenPropertiesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -143,8 +155,8 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
143
155
|
}, z.core.$strip>;
|
|
144
156
|
}, z.core.$strip>;
|
|
145
157
|
export declare const formPropertiesSchema: z.ZodObject<{
|
|
146
|
-
|
|
147
|
-
|
|
158
|
+
feedbackConfigurationId: z.ZodUUID;
|
|
159
|
+
feedbackConfiguration: z.ZodObject<{
|
|
148
160
|
formTitle: z.ZodString;
|
|
149
161
|
formDescription: z.ZodString;
|
|
150
162
|
isPublished: z.ZodEnum<{
|
|
@@ -154,7 +166,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
154
166
|
S: "S";
|
|
155
167
|
}>;
|
|
156
168
|
}, z.core.$strip>;
|
|
157
|
-
|
|
169
|
+
questionnaireFields: z.ZodObject<{
|
|
158
170
|
questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
159
171
|
id: z.ZodString;
|
|
160
172
|
title: z.ZodString;
|
|
@@ -629,7 +641,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
629
641
|
title: z.ZodString;
|
|
630
642
|
questionIds: z.ZodArray<z.ZodString>;
|
|
631
643
|
}, z.core.$strip>>;
|
|
632
|
-
|
|
644
|
+
selectedLanguages: z.ZodArray<z.ZodObject<{
|
|
633
645
|
value: z.ZodString;
|
|
634
646
|
label: z.ZodString;
|
|
635
647
|
isFixed: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -687,7 +699,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
687
699
|
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
688
700
|
}, z.core.$strip>]>>>;
|
|
689
701
|
}, z.core.$strip>;
|
|
690
|
-
|
|
702
|
+
frequencyAndSchedulingProperties: z.ZodObject<{
|
|
691
703
|
surveyType: z.ZodEnum<{
|
|
692
704
|
S: "S";
|
|
693
705
|
R: "R";
|
|
@@ -709,11 +721,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
709
721
|
startDate: z.ZodString;
|
|
710
722
|
stopDate: z.ZodString;
|
|
711
723
|
}, z.core.$strip>;
|
|
712
|
-
|
|
724
|
+
externalPublishingProperties: z.ZodObject<{
|
|
713
725
|
isShareable: z.ZodBoolean;
|
|
714
726
|
isEmailShareable: z.ZodBoolean;
|
|
715
727
|
}, z.core.$strip>;
|
|
716
|
-
|
|
728
|
+
audienceTriggerProperties: z.ZodObject<{
|
|
717
729
|
isAuto: z.ZodBoolean;
|
|
718
730
|
isManual: z.ZodBoolean;
|
|
719
731
|
segments: z.ZodArray<z.ZodObject<{
|
|
@@ -780,9 +792,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
780
792
|
}, z.core.$strip>;
|
|
781
793
|
}, z.core.$strip>>;
|
|
782
794
|
}, z.core.$strip>;
|
|
783
|
-
|
|
795
|
+
otherConfigurationProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
784
796
|
isEnabled: z.ZodLiteral<false>;
|
|
785
|
-
otherFields: z.
|
|
797
|
+
otherFields: z.ZodObject<{
|
|
786
798
|
pagination: z.ZodBoolean;
|
|
787
799
|
questionNumber: z.ZodBoolean;
|
|
788
800
|
pageTitle: z.ZodBoolean;
|
|
@@ -790,11 +802,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
790
802
|
submitButtonLabel: z.ZodString;
|
|
791
803
|
previousButtonLabel: z.ZodString;
|
|
792
804
|
nextButtonLabel: z.ZodString;
|
|
793
|
-
|
|
805
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
806
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
807
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
808
|
+
}, z.core.$strip>;
|
|
794
809
|
translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
795
810
|
submitButtonLabel: z.ZodString;
|
|
796
811
|
previousButtonLabel: z.ZodString;
|
|
797
812
|
nextButtonLabel: z.ZodString;
|
|
813
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
814
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
815
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
798
816
|
}, z.core.$strip>>>;
|
|
799
817
|
}, z.core.$strip>, z.ZodObject<{
|
|
800
818
|
isEnabled: z.ZodLiteral<true>;
|
|
@@ -806,14 +824,20 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
806
824
|
submitButtonLabel: z.ZodString;
|
|
807
825
|
previousButtonLabel: z.ZodString;
|
|
808
826
|
nextButtonLabel: z.ZodString;
|
|
827
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
828
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
829
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
809
830
|
}, z.core.$strip>;
|
|
810
831
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
811
832
|
submitButtonLabel: z.ZodString;
|
|
812
833
|
previousButtonLabel: z.ZodString;
|
|
813
834
|
nextButtonLabel: z.ZodString;
|
|
835
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
836
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
837
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
814
838
|
}, z.core.$strip>>;
|
|
815
839
|
}, z.core.$strip>], "isEnabled">;
|
|
816
|
-
|
|
840
|
+
welcomeScreenProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
817
841
|
isEnabled: z.ZodLiteral<false>;
|
|
818
842
|
welcomeFields: z.ZodOptional<z.ZodObject<{
|
|
819
843
|
title: z.ZodString;
|
|
@@ -838,7 +862,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
838
862
|
buttonLabel: z.ZodString;
|
|
839
863
|
}, z.core.$strip>>;
|
|
840
864
|
}, z.core.$strip>], "isEnabled">;
|
|
841
|
-
|
|
865
|
+
endScreenProperties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
842
866
|
isEnabled: z.ZodLiteral<false>;
|
|
843
867
|
endFields: z.ZodOptional<z.ZodObject<{
|
|
844
868
|
title: z.ZodString;
|
|
@@ -873,7 +897,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
873
897
|
message: z.ZodString;
|
|
874
898
|
}, z.core.$strip>>;
|
|
875
899
|
}, z.core.$strip>], "isEnabled">;
|
|
876
|
-
|
|
900
|
+
appearanceProperties: z.ZodObject<{
|
|
877
901
|
themeConfiguration: z.ZodObject<{
|
|
878
902
|
themes: z.ZodObject<{
|
|
879
903
|
light: z.ZodObject<{
|
|
@@ -40,6 +40,9 @@ export declare const OtherFieldsSchema: z.ZodObject<{
|
|
|
40
40
|
submitButtonLabel: z.ZodString;
|
|
41
41
|
previousButtonLabel: z.ZodString;
|
|
42
42
|
nextButtonLabel: z.ZodString;
|
|
43
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
44
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
45
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
43
46
|
}, z.core.$strip>;
|
|
44
47
|
export declare const LanguageFieldSchema: z.ZodObject<{
|
|
45
48
|
value: z.ZodString;
|
|
@@ -55,6 +58,9 @@ export declare const OtherFieldsTranslationSchema: z.ZodObject<{
|
|
|
55
58
|
submitButtonLabel: z.ZodString;
|
|
56
59
|
previousButtonLabel: z.ZodString;
|
|
57
60
|
nextButtonLabel: z.ZodString;
|
|
61
|
+
aiEnhancementSuccessMessage: z.ZodString;
|
|
62
|
+
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
63
|
+
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
58
64
|
}, z.core.$strip>;
|
|
59
65
|
export type WelcomeFields = z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
60
66
|
export type EndFields = z.infer<typeof EndScreenFieldsSchema>;
|
package/package.json
CHANGED