@encatch/schema 1.0.1-beta.2 → 1.1.0-beta.10

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.
@@ -1,58 +1,4 @@
1
1
  import { z } from "zod";
2
- export declare const surveyTypeSchema: z.ZodEnum<{
3
- S: "S";
4
- R: "R";
5
- }>;
6
- export declare const SurveyTypes: {
7
- readonly RECURRING: "R";
8
- readonly ONE_TIME: "S";
9
- };
10
- export declare const yesNoSchema: z.ZodEnum<{
11
- Y: "Y";
12
- N: "N";
13
- }>;
14
- export declare const YesNoValues: {
15
- readonly YES: "Y";
16
- readonly NO: "N";
17
- };
18
- export declare const recurringUnitSchema: z.ZodEnum<{
19
- minutes: "minutes";
20
- hours: "hours";
21
- days: "days";
22
- weeks: "weeks";
23
- months: "months";
24
- years: "years";
25
- }>;
26
- export declare const RecurringUnits: {
27
- readonly MINUTES: "minutes";
28
- readonly HOURS: "hours";
29
- readonly DAYS: "days";
30
- readonly WEEKS: "weeks";
31
- readonly MONTHS: "months";
32
- readonly YEARS: "years";
33
- };
34
- export declare const frequencyAndSchedulingPropertiesSchema: z.ZodObject<{
35
- surveyType: z.ZodEnum<{
36
- S: "S";
37
- R: "R";
38
- }>;
39
- showOnce: z.ZodEnum<{
40
- Y: "Y";
41
- N: "N";
42
- }>;
43
- stopWhenResponsesCount: z.ZodString;
44
- recurringValue: z.ZodString;
45
- recurringUnit: z.ZodEnum<{
46
- minutes: "minutes";
47
- hours: "hours";
48
- days: "days";
49
- weeks: "weeks";
50
- months: "months";
51
- years: "years";
52
- }>;
53
- startDate: z.ZodString;
54
- stopDate: z.ZodString;
55
- }, z.core.$strip>;
56
2
  export declare const externalPublishingPropertiesSchema: z.ZodObject<{
57
3
  isShareable: z.ZodBoolean;
58
4
  isEmailShareable: z.ZodBoolean;
@@ -79,10 +25,6 @@ export declare const feedbackConfigurationSchema: z.ZodObject<{
79
25
  S: "S";
80
26
  }>;
81
27
  }, z.core.$strip>;
82
- export type SurveyType = z.infer<typeof surveyTypeSchema>;
83
- export type YesNo = z.infer<typeof yesNoSchema>;
84
- export type RecurringUnit = z.infer<typeof recurringUnitSchema>;
85
28
  export type PublicationStatus = z.infer<typeof publicationStatusSchema>;
86
29
  export type FeedbackConfiguration = z.infer<typeof feedbackConfigurationSchema>;
87
- export type FrequencyAndSchedulingProperties = z.infer<typeof frequencyAndSchedulingPropertiesSchema>;
88
30
  export type ExternalPublishingProperties = z.infer<typeof externalPublishingPropertiesSchema>;
@@ -1,12 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const OtherFieldsSchema: z.ZodObject<{
3
- pagination: z.ZodBoolean;
4
3
  questionNumber: z.ZodBoolean;
5
- pageTitle: z.ZodBoolean;
6
- blockerFeedback: z.ZodBoolean;
7
4
  submitButtonLabel: z.ZodString;
8
5
  previousButtonLabel: z.ZodString;
9
- nextButtonLabel: z.ZodString;
10
6
  aiEnhancementSuccessMessage: z.ZodString;
11
7
  aiEnhancementCooldownErrorMessage: z.ZodString;
12
8
  aiEnhancementMaxReachedErrorMessage: z.ZodString;
@@ -22,7 +18,6 @@ export declare const LanguagesSchema: z.ZodArray<z.ZodObject<{
22
18
  export declare const OtherFieldsTranslationSchema: z.ZodObject<{
23
19
  submitButtonLabel: z.ZodString;
24
20
  previousButtonLabel: z.ZodString;
25
- nextButtonLabel: z.ZodString;
26
21
  aiEnhancementSuccessMessage: z.ZodString;
27
22
  aiEnhancementCooldownErrorMessage: z.ZodString;
28
23
  aiEnhancementMaxReachedErrorMessage: z.ZodString;
@@ -50,25 +50,24 @@ export declare const PreviousButtonModes: {
50
50
  readonly AUTO: "auto";
51
51
  };
52
52
  export declare const featureSettingsSchema: z.ZodObject<{
53
- darkOverlay: z.ZodBoolean;
54
- closeButton: z.ZodBoolean;
55
- progressBar: z.ZodBoolean;
56
- showBranding: z.ZodBoolean;
53
+ darkOverlay: z.ZodDefault<z.ZodBoolean>;
54
+ closeButton: z.ZodDefault<z.ZodBoolean>;
55
+ progressBar: z.ZodDefault<z.ZodBoolean>;
56
+ showBranding: z.ZodDefault<z.ZodBoolean>;
57
57
  customPosition: z.ZodBoolean;
58
- customIconPosition: z.ZodBoolean;
59
58
  customCss: z.ZodOptional<z.ZodString>;
60
- shareableMode: z.ZodOptional<z.ZodEnum<{
59
+ shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
61
60
  light: "light";
62
61
  dark: "dark";
63
62
  system: "system";
64
- }>>;
65
- allowMultipleQuestionsPerSection: z.ZodBoolean;
66
- rtl: z.ZodBoolean;
67
- previousButton: z.ZodEnum<{
63
+ }>>>;
64
+ enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
65
+ rtl: z.ZodDefault<z.ZodBoolean>;
66
+ previousButton: z.ZodDefault<z.ZodEnum<{
68
67
  never: "never";
69
68
  always: "always";
70
69
  auto: "auto";
71
- }>;
70
+ }>>;
72
71
  }, z.core.$strip>;
73
72
  export declare const themeColorsSchema: z.ZodObject<{
74
73
  theme: z.ZodOptional<z.ZodString>;
@@ -91,25 +90,24 @@ export declare const themeConfigurationSchema: z.ZodObject<{
91
90
  }, z.core.$strip>;
92
91
  }, z.core.$strip>;
93
92
  featureSettings: z.ZodObject<{
94
- darkOverlay: z.ZodBoolean;
95
- closeButton: z.ZodBoolean;
96
- progressBar: z.ZodBoolean;
97
- showBranding: z.ZodBoolean;
93
+ darkOverlay: z.ZodDefault<z.ZodBoolean>;
94
+ closeButton: z.ZodDefault<z.ZodBoolean>;
95
+ progressBar: z.ZodDefault<z.ZodBoolean>;
96
+ showBranding: z.ZodDefault<z.ZodBoolean>;
98
97
  customPosition: z.ZodBoolean;
99
- customIconPosition: z.ZodBoolean;
100
98
  customCss: z.ZodOptional<z.ZodString>;
101
- shareableMode: z.ZodOptional<z.ZodEnum<{
99
+ shareableMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
102
100
  light: "light";
103
101
  dark: "dark";
104
102
  system: "system";
105
- }>>;
106
- allowMultipleQuestionsPerSection: z.ZodBoolean;
107
- rtl: z.ZodBoolean;
108
- previousButton: z.ZodEnum<{
103
+ }>>>;
104
+ enableShareableKeyboardNavigation: z.ZodDefault<z.ZodBoolean>;
105
+ rtl: z.ZodDefault<z.ZodBoolean>;
106
+ previousButton: z.ZodDefault<z.ZodEnum<{
109
107
  never: "never";
110
108
  always: "always";
111
109
  auto: "auto";
112
- }>;
110
+ }>>;
113
111
  }, z.core.$strip>;
114
112
  selectedPosition: z.ZodEnum<{
115
113
  "top-left": "top-left";