@encatch/schema 0.1.18 → 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.
@@ -4,7 +4,7 @@ export { surveyTypeSchema, yesNoSchema, recurringUnitSchema, frequencyAndSchedul
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";
6
6
  export { positionSchema, themeModeSchema, featureSettingsSchema, themeColorsSchema, themesSchema, themeConfigurationSchema, Positions, ThemeModes, type Position, type FeatureSettings, type ThemeColors, type Themes, type ThemeMode, type ThemeConfiguration, } from "./schemas/fields/theme-schema";
7
- export { translationEntrySchema, ratingTranslationsSchema, singleChoiceTranslationsSchema, multipleChoiceTranslationsSchema, npsTranslationsSchema, shortAnswerTranslationsSchema, longAnswerTranslationsSchema, nestedSelectionTranslationsSchema, annotationTranslationsSchema, questionTranslationsSchema, languageTranslationsSchema, translationsSchema, TranslationProvider, createTranslationProvider, type TranslationEntry, type RatingTranslations, type SingleChoiceTranslations, type MultipleChoiceTranslations, type NpsTranslations, type ShortAnswerTranslations, type LongAnswerTranslations, type NestedSelectionTranslations, type AnnotationTranslations, type QuestionTranslations, type LanguageTranslations, type Translations, } from "./schemas/fields/translations-schema";
7
+ export { translationEntrySchema, ratingQuestionTranslationSchema, singleChoiceQuestionTranslationSchema, multipleChoiceQuestionTranslationSchema, npsQuestionTranslationSchema, shortAnswerQuestionTranslationSchema, longAnswerQuestionTranslationSchema, nestedSelectionQuestionTranslationSchema, annotationQuestionTranslationSchema, questionTranslationSchema, questionCentricTranslationsSchema, translationsSchema, TranslationProvider, createTranslationProvider, type TranslationEntry, type RatingQuestionTranslation, type SingleChoiceQuestionTranslation, type MultipleChoiceQuestionTranslation, type NpsQuestionTranslation, type ShortAnswerQuestionTranslation, type LongAnswerQuestionTranslation, type NestedSelectionQuestionTranslation, type AnnotationQuestionTranslation, type QuestionTranslation, type QuestionCentricTranslations, type Translations, } from "./schemas/fields/translations-schema";
8
8
  export { customEventFieldOperatorSchema, customEventFieldSchema, conditionalIfMetadataSchema, queryOutputSchema, conditionalIfSchema, triggerActionSchema, conditionalWhenSchema, filterConditionSchema, categorySpecificFiltersSchema, whoSchema, audienceSegmentSchema, audienceTriggerPropertiesSchema, type CustomEventFieldOperator, type CustomEventField, type ConditionalIfMetadata, type QueryOutput, type ConditionalIf, type TriggerAction, type ConditionalWhen, type FilterCondition, type CategorySpecificFilters, type Who, type AudienceSegment, type AudienceTriggerProperties, } from "./schemas/fields/auto-trigger-schema";
9
9
  export { masterPropertiesSchema, type MasterProperties, } from "./schemas/fields/other-properties-schema";
10
10
  export { deviceThemeSchema, deviceInfoSchema, sessionInfoSchema, deviceSessionInfoSchema, userPropertiesSchema, userInfoSchema, DeviceThemes, type DeviceTheme, type DeviceInfo, type SessionInfo, type DeviceSessionInfo, type UserProperties, type UserInfo, } from "./schemas/api/other-schema";
@@ -639,217 +639,58 @@ export declare const formPropertiesSchema: z.ZodObject<{
639
639
  }, z.core.$strip>>;
640
640
  translations: z.ZodObject<{
641
641
  defaultLanguage: z.ZodString;
642
- languages: z.ZodArray<z.ZodObject<{
643
- languageCode: z.ZodString;
644
- questions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
645
- type: z.ZodLiteral<"rating">;
646
- translations: z.ZodObject<{
647
- title: z.ZodObject<{
648
- text: z.ZodString;
649
- context: z.ZodOptional<z.ZodString>;
650
- }, z.core.$strip>;
651
- description: z.ZodOptional<z.ZodObject<{
652
- text: z.ZodString;
653
- context: z.ZodOptional<z.ZodString>;
654
- }, z.core.$strip>>;
655
- errorMessage: z.ZodOptional<z.ZodObject<{
656
- text: z.ZodString;
657
- context: z.ZodOptional<z.ZodString>;
658
- }, z.core.$strip>>;
659
- minLabel: z.ZodOptional<z.ZodObject<{
660
- text: z.ZodString;
661
- context: z.ZodOptional<z.ZodString>;
662
- }, z.core.$strip>>;
663
- maxLabel: z.ZodOptional<z.ZodObject<{
664
- text: z.ZodString;
665
- context: z.ZodOptional<z.ZodString>;
666
- }, z.core.$strip>>;
667
- }, z.core.$strip>;
668
- }, z.core.$strip>, z.ZodObject<{
669
- type: z.ZodLiteral<"single_choice">;
670
- translations: z.ZodObject<{
671
- title: z.ZodObject<{
672
- text: z.ZodString;
673
- context: z.ZodOptional<z.ZodString>;
674
- }, z.core.$strip>;
675
- description: z.ZodOptional<z.ZodObject<{
676
- text: z.ZodString;
677
- context: z.ZodOptional<z.ZodString>;
678
- }, z.core.$strip>>;
679
- errorMessage: z.ZodOptional<z.ZodObject<{
680
- text: z.ZodString;
681
- context: z.ZodOptional<z.ZodString>;
682
- }, z.core.$strip>>;
683
- placeholder: z.ZodOptional<z.ZodObject<{
684
- text: z.ZodString;
685
- context: z.ZodOptional<z.ZodString>;
686
- }, z.core.$strip>>;
687
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
688
- label: z.ZodObject<{
689
- text: z.ZodString;
690
- context: z.ZodOptional<z.ZodString>;
691
- }, z.core.$strip>;
692
- hint: z.ZodOptional<z.ZodObject<{
693
- text: z.ZodString;
694
- context: z.ZodOptional<z.ZodString>;
695
- }, z.core.$strip>>;
696
- }, z.core.$strip>>;
697
- }, z.core.$strip>;
698
- }, z.core.$strip>, z.ZodObject<{
699
- type: z.ZodLiteral<"multiple_choice_multiple">;
700
- translations: z.ZodObject<{
701
- title: z.ZodObject<{
702
- text: z.ZodString;
703
- context: z.ZodOptional<z.ZodString>;
704
- }, z.core.$strip>;
705
- description: z.ZodOptional<z.ZodObject<{
706
- text: z.ZodString;
707
- context: z.ZodOptional<z.ZodString>;
708
- }, z.core.$strip>>;
709
- errorMessage: z.ZodOptional<z.ZodObject<{
710
- text: z.ZodString;
711
- context: z.ZodOptional<z.ZodString>;
712
- }, z.core.$strip>>;
713
- placeholder: z.ZodOptional<z.ZodObject<{
714
- text: z.ZodString;
715
- context: z.ZodOptional<z.ZodString>;
716
- }, z.core.$strip>>;
717
- options: z.ZodRecord<z.ZodString, z.ZodObject<{
718
- label: z.ZodObject<{
719
- text: z.ZodString;
720
- context: z.ZodOptional<z.ZodString>;
721
- }, z.core.$strip>;
722
- hint: z.ZodOptional<z.ZodObject<{
723
- text: z.ZodString;
724
- context: z.ZodOptional<z.ZodString>;
725
- }, z.core.$strip>>;
726
- }, z.core.$strip>>;
727
- }, z.core.$strip>;
728
- }, z.core.$strip>, z.ZodObject<{
729
- type: z.ZodLiteral<"nps">;
730
- translations: z.ZodObject<{
731
- title: z.ZodObject<{
732
- text: z.ZodString;
733
- context: z.ZodOptional<z.ZodString>;
734
- }, z.core.$strip>;
735
- description: z.ZodOptional<z.ZodObject<{
736
- text: z.ZodString;
737
- context: z.ZodOptional<z.ZodString>;
738
- }, z.core.$strip>>;
739
- errorMessage: z.ZodOptional<z.ZodObject<{
740
- text: z.ZodString;
741
- context: z.ZodOptional<z.ZodString>;
742
- }, z.core.$strip>>;
743
- minLabel: z.ZodOptional<z.ZodObject<{
744
- text: z.ZodString;
745
- context: z.ZodOptional<z.ZodString>;
746
- }, z.core.$strip>>;
747
- maxLabel: z.ZodOptional<z.ZodObject<{
748
- text: z.ZodString;
749
- context: z.ZodOptional<z.ZodString>;
750
- }, z.core.$strip>>;
751
- scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{
752
- text: z.ZodString;
753
- context: z.ZodOptional<z.ZodString>;
754
- }, z.core.$strip>>>;
755
- }, z.core.$strip>;
756
- }, z.core.$strip>, z.ZodObject<{
757
- type: z.ZodLiteral<"short_answer">;
758
- translations: z.ZodObject<{
759
- title: z.ZodObject<{
760
- text: z.ZodString;
761
- context: z.ZodOptional<z.ZodString>;
762
- }, z.core.$strip>;
763
- description: z.ZodOptional<z.ZodObject<{
764
- text: z.ZodString;
765
- context: z.ZodOptional<z.ZodString>;
766
- }, z.core.$strip>>;
767
- errorMessage: z.ZodOptional<z.ZodObject<{
768
- text: z.ZodString;
769
- context: z.ZodOptional<z.ZodString>;
770
- }, z.core.$strip>>;
771
- placeholder: z.ZodOptional<z.ZodObject<{
772
- text: z.ZodString;
773
- context: z.ZodOptional<z.ZodString>;
774
- }, z.core.$strip>>;
775
- }, z.core.$strip>;
776
- }, z.core.$strip>, z.ZodObject<{
777
- type: z.ZodLiteral<"long_text">;
778
- translations: z.ZodObject<{
779
- title: z.ZodObject<{
780
- text: z.ZodString;
781
- context: z.ZodOptional<z.ZodString>;
782
- }, z.core.$strip>;
783
- description: z.ZodOptional<z.ZodObject<{
784
- text: z.ZodString;
785
- context: z.ZodOptional<z.ZodString>;
786
- }, z.core.$strip>>;
787
- errorMessage: z.ZodOptional<z.ZodObject<{
788
- text: z.ZodString;
789
- context: z.ZodOptional<z.ZodString>;
790
- }, z.core.$strip>>;
791
- placeholder: z.ZodOptional<z.ZodObject<{
792
- text: z.ZodString;
793
- context: z.ZodOptional<z.ZodString>;
794
- }, z.core.$strip>>;
795
- }, z.core.$strip>;
796
- }, z.core.$strip>, z.ZodObject<{
797
- type: z.ZodLiteral<"nested_selection">;
798
- translations: z.ZodObject<{
799
- title: z.ZodObject<{
800
- text: z.ZodString;
801
- context: z.ZodOptional<z.ZodString>;
802
- }, z.core.$strip>;
803
- description: z.ZodOptional<z.ZodObject<{
804
- text: z.ZodString;
805
- context: z.ZodOptional<z.ZodString>;
806
- }, z.core.$strip>>;
807
- errorMessage: z.ZodOptional<z.ZodObject<{
808
- text: z.ZodString;
809
- context: z.ZodOptional<z.ZodString>;
810
- }, z.core.$strip>>;
811
- placeholder: z.ZodOptional<z.ZodObject<{
812
- text: z.ZodString;
813
- context: z.ZodOptional<z.ZodString>;
814
- }, z.core.$strip>>;
815
- nestedOptions: z.ZodRecord<z.ZodString, z.ZodObject<{
816
- label: z.ZodObject<{
817
- text: z.ZodString;
818
- context: z.ZodOptional<z.ZodString>;
819
- }, z.core.$strip>;
820
- hint: z.ZodOptional<z.ZodObject<{
821
- text: z.ZodString;
822
- context: z.ZodOptional<z.ZodString>;
823
- }, z.core.$strip>>;
824
- }, z.core.$strip>>;
825
- }, z.core.$strip>;
826
- }, z.core.$strip>, z.ZodObject<{
827
- type: z.ZodLiteral<"annotation">;
828
- translations: z.ZodObject<{
829
- title: z.ZodObject<{
830
- text: z.ZodString;
831
- context: z.ZodOptional<z.ZodString>;
832
- }, z.core.$strip>;
833
- description: z.ZodOptional<z.ZodObject<{
834
- text: z.ZodString;
835
- context: z.ZodOptional<z.ZodString>;
836
- }, z.core.$strip>>;
837
- errorMessage: z.ZodOptional<z.ZodObject<{
838
- text: z.ZodString;
839
- context: z.ZodOptional<z.ZodString>;
840
- }, z.core.$strip>>;
841
- annotationText: z.ZodOptional<z.ZodObject<{
842
- text: z.ZodString;
843
- context: z.ZodOptional<z.ZodString>;
844
- }, z.core.$strip>>;
845
- noAnnotationText: z.ZodOptional<z.ZodObject<{
846
- text: z.ZodString;
847
- context: z.ZodOptional<z.ZodString>;
848
- }, z.core.$strip>>;
849
- }, z.core.$strip>;
850
- }, z.core.$strip>], "type">>;
851
- }, z.core.$strip>>;
852
- 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>]>>>;
853
694
  }, z.core.$strip>;
854
695
  }, z.core.$strip>;
855
696
  frequency_and_scheduling_properties: z.ZodObject<{