@encatch/schema 1.0.1-beta.1 → 1.0.1-beta.3
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 +643 -793
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +350 -236
- package/dist/types/schemas/fields/app-props-schema.d.ts +175 -142
- package/dist/types/schemas/fields/field-schema.d.ts +377 -144
- package/dist/types/schemas/fields/form-properties-schema.d.ts +176 -244
- package/dist/types/schemas/fields/form-schema.d.ts +0 -58
- package/dist/types/schemas/fields/other-screen-schema.d.ts +0 -39
- package/dist/types/schemas/fields/theme-schema.d.ts +0 -4
- package/dist/types/schemas/fields/translations-schema.d.ts +1 -77
- package/package.json +1 -1
|
@@ -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,37 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const dismissBehaviorSchema: z.ZodEnum<{
|
|
3
|
-
fade: "fade";
|
|
4
|
-
manual: "manual";
|
|
5
|
-
}>;
|
|
6
|
-
export declare const DismissBehaviors: {
|
|
7
|
-
readonly FADE: "fade";
|
|
8
|
-
readonly MANUAL: "manual";
|
|
9
|
-
};
|
|
10
|
-
export declare const WelcomeScreenFieldsSchema: z.ZodObject<{
|
|
11
|
-
title: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
|
-
buttonLabel: z.ZodString;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export declare const EndScreenFieldsSchema: z.ZodObject<{
|
|
16
|
-
title: z.ZodString;
|
|
17
|
-
message: z.ZodString;
|
|
18
|
-
buttonLabel: z.ZodString;
|
|
19
|
-
dismissBehavior: z.ZodEnum<{
|
|
20
|
-
fade: "fade";
|
|
21
|
-
manual: "manual";
|
|
22
|
-
}>;
|
|
23
|
-
fadeDuration: z.ZodNumber;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export declare const WelcomeFieldsTranslationSchema: z.ZodObject<{
|
|
26
|
-
title: z.ZodString;
|
|
27
|
-
description: z.ZodString;
|
|
28
|
-
buttonLabel: z.ZodString;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export declare const EndFieldsTranslationSchema: z.ZodObject<{
|
|
31
|
-
buttonLabel: z.ZodString;
|
|
32
|
-
title: z.ZodString;
|
|
33
|
-
message: z.ZodString;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
2
|
export declare const OtherFieldsSchema: z.ZodObject<{
|
|
36
3
|
pagination: z.ZodBoolean;
|
|
37
4
|
questionNumber: z.ZodBoolean;
|
|
@@ -47,12 +14,10 @@ export declare const OtherFieldsSchema: z.ZodObject<{
|
|
|
47
14
|
export declare const LanguageFieldSchema: z.ZodObject<{
|
|
48
15
|
value: z.ZodString;
|
|
49
16
|
label: z.ZodString;
|
|
50
|
-
isFixed: z.ZodDefault<z.ZodBoolean>;
|
|
51
17
|
}, z.core.$strip>;
|
|
52
18
|
export declare const LanguagesSchema: z.ZodArray<z.ZodObject<{
|
|
53
19
|
value: z.ZodString;
|
|
54
20
|
label: z.ZodString;
|
|
55
|
-
isFixed: z.ZodDefault<z.ZodBoolean>;
|
|
56
21
|
}, z.core.$strip>>;
|
|
57
22
|
export declare const OtherFieldsTranslationSchema: z.ZodObject<{
|
|
58
23
|
submitButtonLabel: z.ZodString;
|
|
@@ -62,10 +27,6 @@ export declare const OtherFieldsTranslationSchema: z.ZodObject<{
|
|
|
62
27
|
aiEnhancementCooldownErrorMessage: z.ZodString;
|
|
63
28
|
aiEnhancementMaxReachedErrorMessage: z.ZodString;
|
|
64
29
|
}, z.core.$strip>;
|
|
65
|
-
export type WelcomeFields = z.infer<typeof WelcomeScreenFieldsSchema>;
|
|
66
|
-
export type EndFields = z.infer<typeof EndScreenFieldsSchema>;
|
|
67
|
-
export type WelcomeFieldsTranslation = z.infer<typeof WelcomeFieldsTranslationSchema>;
|
|
68
|
-
export type EndFieldsTranslation = z.infer<typeof EndFieldsTranslationSchema>;
|
|
69
30
|
export type OtherFields = z.infer<typeof OtherFieldsSchema>;
|
|
70
31
|
export type OtherFieldsTranslation = z.infer<typeof OtherFieldsTranslationSchema>;
|
|
71
32
|
export type LanguageField = z.infer<typeof LanguageFieldSchema>;
|
|
@@ -55,14 +55,12 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
55
55
|
progressBar: z.ZodBoolean;
|
|
56
56
|
showBranding: z.ZodBoolean;
|
|
57
57
|
customPosition: z.ZodBoolean;
|
|
58
|
-
customIconPosition: z.ZodBoolean;
|
|
59
58
|
customCss: z.ZodOptional<z.ZodString>;
|
|
60
59
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
61
60
|
light: "light";
|
|
62
61
|
dark: "dark";
|
|
63
62
|
system: "system";
|
|
64
63
|
}>>;
|
|
65
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
66
64
|
rtl: z.ZodBoolean;
|
|
67
65
|
previousButton: z.ZodEnum<{
|
|
68
66
|
never: "never";
|
|
@@ -96,14 +94,12 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
96
94
|
progressBar: z.ZodBoolean;
|
|
97
95
|
showBranding: z.ZodBoolean;
|
|
98
96
|
customPosition: z.ZodBoolean;
|
|
99
|
-
customIconPosition: z.ZodBoolean;
|
|
100
97
|
customCss: z.ZodOptional<z.ZodString>;
|
|
101
98
|
shareableMode: z.ZodOptional<z.ZodEnum<{
|
|
102
99
|
light: "light";
|
|
103
100
|
dark: "dark";
|
|
104
101
|
system: "system";
|
|
105
102
|
}>>;
|
|
106
|
-
allowMultipleQuestionsPerSection: z.ZodBoolean;
|
|
107
103
|
rtl: z.ZodBoolean;
|
|
108
104
|
previousButton: z.ZodEnum<{
|
|
109
105
|
never: "never";
|