@encatch/schema 0.1.16 → 0.1.19
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 +344 -108
- package/dist/esm/index.js.map +4 -4
- package/dist/types/index.d.ts +5 -2
- package/dist/types/schemas/api/feedback-actions-schema.d.ts +0 -0
- package/dist/types/schemas/api/feedback-fetch-schema.d.ts +0 -0
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +1354 -0
- package/dist/types/schemas/api/other-schema.d.ts +68 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +381 -0
- package/dist/types/schemas/fields/field-schema.d.ts +2 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +53 -211
- package/dist/types/schemas/fields/form-schema.d.ts +5 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +276 -835
- package/package.json +1 -1
|
@@ -562,6 +562,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
562
562
|
cooldownSeconds: z.ZodOptional<z.ZodNumber>;
|
|
563
563
|
maxEnhancements: z.ZodOptional<z.ZodNumber>;
|
|
564
564
|
maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
|
|
565
566
|
}, z.core.$strip>, z.ZodObject<{
|
|
566
567
|
id: z.ZodString;
|
|
567
568
|
title: z.ZodString;
|
|
@@ -638,217 +639,58 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
638
639
|
}, z.core.$strip>>;
|
|
639
640
|
translations: z.ZodObject<{
|
|
640
641
|
defaultLanguage: z.ZodString;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
context: z.ZodOptional<z.ZodString>;
|
|
694
|
-
}, z.core.$strip>>;
|
|
695
|
-
}, z.core.$strip>>;
|
|
696
|
-
}, z.core.$strip>;
|
|
697
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
698
|
-
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
699
|
-
translations: z.ZodObject<{
|
|
700
|
-
title: z.ZodObject<{
|
|
701
|
-
text: z.ZodString;
|
|
702
|
-
context: z.ZodOptional<z.ZodString>;
|
|
703
|
-
}, z.core.$strip>;
|
|
704
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
705
|
-
text: z.ZodString;
|
|
706
|
-
context: z.ZodOptional<z.ZodString>;
|
|
707
|
-
}, z.core.$strip>>;
|
|
708
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
709
|
-
text: z.ZodString;
|
|
710
|
-
context: z.ZodOptional<z.ZodString>;
|
|
711
|
-
}, z.core.$strip>>;
|
|
712
|
-
placeholder: z.ZodOptional<z.ZodObject<{
|
|
713
|
-
text: z.ZodString;
|
|
714
|
-
context: z.ZodOptional<z.ZodString>;
|
|
715
|
-
}, z.core.$strip>>;
|
|
716
|
-
options: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
717
|
-
label: z.ZodObject<{
|
|
718
|
-
text: z.ZodString;
|
|
719
|
-
context: z.ZodOptional<z.ZodString>;
|
|
720
|
-
}, z.core.$strip>;
|
|
721
|
-
hint: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
text: z.ZodString;
|
|
723
|
-
context: z.ZodOptional<z.ZodString>;
|
|
724
|
-
}, z.core.$strip>>;
|
|
725
|
-
}, z.core.$strip>>;
|
|
726
|
-
}, z.core.$strip>;
|
|
727
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
-
type: z.ZodLiteral<"nps">;
|
|
729
|
-
translations: z.ZodObject<{
|
|
730
|
-
title: z.ZodObject<{
|
|
731
|
-
text: z.ZodString;
|
|
732
|
-
context: z.ZodOptional<z.ZodString>;
|
|
733
|
-
}, z.core.$strip>;
|
|
734
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
735
|
-
text: z.ZodString;
|
|
736
|
-
context: z.ZodOptional<z.ZodString>;
|
|
737
|
-
}, z.core.$strip>>;
|
|
738
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
739
|
-
text: z.ZodString;
|
|
740
|
-
context: z.ZodOptional<z.ZodString>;
|
|
741
|
-
}, z.core.$strip>>;
|
|
742
|
-
minLabel: z.ZodOptional<z.ZodObject<{
|
|
743
|
-
text: z.ZodString;
|
|
744
|
-
context: z.ZodOptional<z.ZodString>;
|
|
745
|
-
}, z.core.$strip>>;
|
|
746
|
-
maxLabel: z.ZodOptional<z.ZodObject<{
|
|
747
|
-
text: z.ZodString;
|
|
748
|
-
context: z.ZodOptional<z.ZodString>;
|
|
749
|
-
}, z.core.$strip>>;
|
|
750
|
-
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
751
|
-
text: z.ZodString;
|
|
752
|
-
context: z.ZodOptional<z.ZodString>;
|
|
753
|
-
}, z.core.$strip>>>;
|
|
754
|
-
}, z.core.$strip>;
|
|
755
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
756
|
-
type: z.ZodLiteral<"short_answer">;
|
|
757
|
-
translations: z.ZodObject<{
|
|
758
|
-
title: z.ZodObject<{
|
|
759
|
-
text: z.ZodString;
|
|
760
|
-
context: z.ZodOptional<z.ZodString>;
|
|
761
|
-
}, z.core.$strip>;
|
|
762
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
763
|
-
text: z.ZodString;
|
|
764
|
-
context: z.ZodOptional<z.ZodString>;
|
|
765
|
-
}, z.core.$strip>>;
|
|
766
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
767
|
-
text: z.ZodString;
|
|
768
|
-
context: z.ZodOptional<z.ZodString>;
|
|
769
|
-
}, z.core.$strip>>;
|
|
770
|
-
placeholder: z.ZodOptional<z.ZodObject<{
|
|
771
|
-
text: z.ZodString;
|
|
772
|
-
context: z.ZodOptional<z.ZodString>;
|
|
773
|
-
}, z.core.$strip>>;
|
|
774
|
-
}, z.core.$strip>;
|
|
775
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
776
|
-
type: z.ZodLiteral<"long_text">;
|
|
777
|
-
translations: z.ZodObject<{
|
|
778
|
-
title: z.ZodObject<{
|
|
779
|
-
text: z.ZodString;
|
|
780
|
-
context: z.ZodOptional<z.ZodString>;
|
|
781
|
-
}, z.core.$strip>;
|
|
782
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
783
|
-
text: z.ZodString;
|
|
784
|
-
context: z.ZodOptional<z.ZodString>;
|
|
785
|
-
}, z.core.$strip>>;
|
|
786
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
787
|
-
text: z.ZodString;
|
|
788
|
-
context: z.ZodOptional<z.ZodString>;
|
|
789
|
-
}, z.core.$strip>>;
|
|
790
|
-
placeholder: z.ZodOptional<z.ZodObject<{
|
|
791
|
-
text: z.ZodString;
|
|
792
|
-
context: z.ZodOptional<z.ZodString>;
|
|
793
|
-
}, z.core.$strip>>;
|
|
794
|
-
}, z.core.$strip>;
|
|
795
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
796
|
-
type: z.ZodLiteral<"nested_selection">;
|
|
797
|
-
translations: z.ZodObject<{
|
|
798
|
-
title: z.ZodObject<{
|
|
799
|
-
text: z.ZodString;
|
|
800
|
-
context: z.ZodOptional<z.ZodString>;
|
|
801
|
-
}, z.core.$strip>;
|
|
802
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
803
|
-
text: z.ZodString;
|
|
804
|
-
context: z.ZodOptional<z.ZodString>;
|
|
805
|
-
}, z.core.$strip>>;
|
|
806
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
807
|
-
text: z.ZodString;
|
|
808
|
-
context: z.ZodOptional<z.ZodString>;
|
|
809
|
-
}, z.core.$strip>>;
|
|
810
|
-
placeholder: z.ZodOptional<z.ZodObject<{
|
|
811
|
-
text: z.ZodString;
|
|
812
|
-
context: z.ZodOptional<z.ZodString>;
|
|
813
|
-
}, z.core.$strip>>;
|
|
814
|
-
nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
815
|
-
label: z.ZodObject<{
|
|
816
|
-
text: z.ZodString;
|
|
817
|
-
context: z.ZodOptional<z.ZodString>;
|
|
818
|
-
}, z.core.$strip>;
|
|
819
|
-
hint: z.ZodOptional<z.ZodObject<{
|
|
820
|
-
text: z.ZodString;
|
|
821
|
-
context: z.ZodOptional<z.ZodString>;
|
|
822
|
-
}, z.core.$strip>>;
|
|
823
|
-
}, z.core.$strip>>;
|
|
824
|
-
}, z.core.$strip>;
|
|
825
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
826
|
-
type: z.ZodLiteral<"annotation">;
|
|
827
|
-
translations: z.ZodObject<{
|
|
828
|
-
title: z.ZodObject<{
|
|
829
|
-
text: z.ZodString;
|
|
830
|
-
context: z.ZodOptional<z.ZodString>;
|
|
831
|
-
}, z.core.$strip>;
|
|
832
|
-
description: z.ZodOptional<z.ZodObject<{
|
|
833
|
-
text: z.ZodString;
|
|
834
|
-
context: z.ZodOptional<z.ZodString>;
|
|
835
|
-
}, z.core.$strip>>;
|
|
836
|
-
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
837
|
-
text: z.ZodString;
|
|
838
|
-
context: z.ZodOptional<z.ZodString>;
|
|
839
|
-
}, z.core.$strip>>;
|
|
840
|
-
annotationText: z.ZodOptional<z.ZodObject<{
|
|
841
|
-
text: z.ZodString;
|
|
842
|
-
context: z.ZodOptional<z.ZodString>;
|
|
843
|
-
}, z.core.$strip>>;
|
|
844
|
-
noAnnotationText: z.ZodOptional<z.ZodObject<{
|
|
845
|
-
text: z.ZodString;
|
|
846
|
-
context: z.ZodOptional<z.ZodString>;
|
|
847
|
-
}, z.core.$strip>>;
|
|
848
|
-
}, z.core.$strip>;
|
|
849
|
-
}, z.core.$strip>], "type">>;
|
|
850
|
-
}, z.core.$strip>>;
|
|
851
|
-
version: z.ZodOptional<z.ZodString>;
|
|
642
|
+
questions: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
643
|
+
type: z.ZodLiteral<"rating">;
|
|
644
|
+
title: z.ZodString;
|
|
645
|
+
description: z.ZodOptional<z.ZodString>;
|
|
646
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
647
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
648
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
650
|
+
type: z.ZodLiteral<"single_choice">;
|
|
651
|
+
title: z.ZodString;
|
|
652
|
+
description: z.ZodOptional<z.ZodString>;
|
|
653
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
654
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
656
|
+
type: z.ZodLiteral<"multiple_choice_multiple">;
|
|
657
|
+
title: z.ZodString;
|
|
658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
659
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
660
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
661
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
662
|
+
type: z.ZodLiteral<"nps">;
|
|
663
|
+
title: z.ZodString;
|
|
664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
665
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
666
|
+
minLabel: z.ZodOptional<z.ZodString>;
|
|
667
|
+
maxLabel: z.ZodOptional<z.ZodString>;
|
|
668
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
669
|
+
type: z.ZodLiteral<"short_answer">;
|
|
670
|
+
title: z.ZodString;
|
|
671
|
+
description: z.ZodOptional<z.ZodString>;
|
|
672
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
673
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
+
type: z.ZodLiteral<"long_text">;
|
|
676
|
+
title: z.ZodString;
|
|
677
|
+
description: z.ZodOptional<z.ZodString>;
|
|
678
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
679
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
681
|
+
type: z.ZodLiteral<"nested_selection">;
|
|
682
|
+
title: z.ZodString;
|
|
683
|
+
description: z.ZodOptional<z.ZodString>;
|
|
684
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
685
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
686
|
+
}, z.core.$catchall<z.ZodString>>, z.ZodObject<{
|
|
687
|
+
type: z.ZodLiteral<"annotation">;
|
|
688
|
+
title: z.ZodString;
|
|
689
|
+
description: z.ZodOptional<z.ZodString>;
|
|
690
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
691
|
+
annotationText: z.ZodOptional<z.ZodString>;
|
|
692
|
+
noAnnotationText: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, z.core.$strip>]>>>;
|
|
852
694
|
}, z.core.$strip>;
|
|
853
695
|
}, z.core.$strip>;
|
|
854
696
|
frequency_and_scheduling_properties: z.ZodObject<{
|
|
@@ -67,6 +67,10 @@ export declare const PublicationStatuses: {
|
|
|
67
67
|
readonly DRAFT: "D";
|
|
68
68
|
readonly ARCHIVED: "A";
|
|
69
69
|
};
|
|
70
|
+
export declare const durationSchema: z.ZodObject<{
|
|
71
|
+
from: z.ZodString;
|
|
72
|
+
to: z.ZodString;
|
|
73
|
+
}, z.core.$strip>;
|
|
70
74
|
export declare const feedbackConfigurationSchema: z.ZodObject<{
|
|
71
75
|
form_title: z.ZodString;
|
|
72
76
|
form_description: z.ZodString;
|
|
@@ -84,6 +88,7 @@ export type SurveyType = z.infer<typeof surveyTypeSchema>;
|
|
|
84
88
|
export type YesNo = z.infer<typeof yesNoSchema>;
|
|
85
89
|
export type RecurringUnit = z.infer<typeof recurringUnitSchema>;
|
|
86
90
|
export type PublicationStatus = z.infer<typeof publicationStatusSchema>;
|
|
91
|
+
export type Duration = z.infer<typeof durationSchema>;
|
|
87
92
|
export type FeedbackConfiguration = z.infer<typeof feedbackConfigurationSchema>;
|
|
88
93
|
export type FrequencyAndSchedulingProperties = z.infer<typeof frequencyAndSchedulingPropertiesSchema>;
|
|
89
94
|
export type ExternalPublishingProperties = z.infer<typeof externalPublishingPropertiesSchema>;
|