@encatch/schema 0.1.15 → 0.1.18
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 +293 -100
- package/dist/esm/index.js.map +4 -4
- package/dist/types/index.d.ts +4 -1
- 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 +52 -50
- package/dist/types/schemas/fields/form-properties-schema.d.ts +1 -0
- package/dist/types/schemas/fields/form-schema.d.ts +18 -13
- package/dist/types/schemas/fields/other-screen-schema.d.ts +2 -2
- package/dist/types/schemas/fields/theme-schema.d.ts +11 -11
- package/package.json +1 -1
|
@@ -4,16 +4,16 @@ export declare const surveyTypeSchema: z.ZodEnum<{
|
|
|
4
4
|
O: "O";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const SurveyTypes: {
|
|
7
|
-
readonly RECURRING: "R"
|
|
8
|
-
readonly ONE_TIME: "
|
|
7
|
+
readonly RECURRING: "R";
|
|
8
|
+
readonly ONE_TIME: "O";
|
|
9
9
|
};
|
|
10
10
|
export declare const yesNoSchema: z.ZodEnum<{
|
|
11
11
|
Y: "Y";
|
|
12
12
|
N: "N";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const YesNoValues: {
|
|
15
|
-
readonly YES: "Y"
|
|
16
|
-
readonly NO: "
|
|
15
|
+
readonly YES: "Y";
|
|
16
|
+
readonly NO: "N";
|
|
17
17
|
};
|
|
18
18
|
export declare const recurringUnitSchema: z.ZodEnum<{
|
|
19
19
|
minutes: "minutes";
|
|
@@ -24,12 +24,12 @@ export declare const recurringUnitSchema: z.ZodEnum<{
|
|
|
24
24
|
years: "years";
|
|
25
25
|
}>;
|
|
26
26
|
export declare const RecurringUnits: {
|
|
27
|
-
readonly MINUTES: "minutes"
|
|
28
|
-
readonly HOURS: "
|
|
29
|
-
readonly DAYS: "
|
|
30
|
-
readonly WEEKS: "
|
|
31
|
-
readonly MONTHS: "
|
|
32
|
-
readonly YEARS: "
|
|
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
33
|
};
|
|
34
34
|
export declare const frequencyAndSchedulingPropertiesSchema: z.ZodObject<{
|
|
35
35
|
surveyType: z.ZodEnum<{
|
|
@@ -63,10 +63,14 @@ export declare const publicationStatusSchema: z.ZodEnum<{
|
|
|
63
63
|
A: "A";
|
|
64
64
|
}>;
|
|
65
65
|
export declare const PublicationStatuses: {
|
|
66
|
-
readonly PUBLISHED: "
|
|
67
|
-
readonly DRAFT: "D"
|
|
68
|
-
readonly ARCHIVED: "
|
|
66
|
+
readonly PUBLISHED: "P";
|
|
67
|
+
readonly DRAFT: "D";
|
|
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>;
|
|
@@ -4,8 +4,8 @@ export declare const dismissBehaviorSchema: z.ZodEnum<{
|
|
|
4
4
|
manual: "manual";
|
|
5
5
|
}>;
|
|
6
6
|
export declare const DismissBehaviors: {
|
|
7
|
-
readonly FADE: "fade"
|
|
8
|
-
readonly MANUAL: "
|
|
7
|
+
readonly FADE: "fade";
|
|
8
|
+
readonly MANUAL: "manual";
|
|
9
9
|
};
|
|
10
10
|
export declare const WelcomeScreenFieldsSchema: z.ZodObject<{
|
|
11
11
|
title: z.ZodString;
|
|
@@ -11,23 +11,23 @@ export declare const positionSchema: z.ZodEnum<{
|
|
|
11
11
|
"bottom-right": "bottom-right";
|
|
12
12
|
}>;
|
|
13
13
|
export declare const Positions: {
|
|
14
|
-
readonly TOP_LEFT: "top-left"
|
|
15
|
-
readonly TOP_CENTER: "top-
|
|
16
|
-
readonly TOP_RIGHT: "top-
|
|
17
|
-
readonly MIDDLE_LEFT: "
|
|
18
|
-
readonly MIDDLE_CENTER: "
|
|
19
|
-
readonly MIDDLE_RIGHT: "
|
|
20
|
-
readonly BOTTOM_LEFT: "
|
|
21
|
-
readonly BOTTOM_CENTER: "
|
|
22
|
-
readonly BOTTOM_RIGHT: "
|
|
14
|
+
readonly TOP_LEFT: "top-left";
|
|
15
|
+
readonly TOP_CENTER: "top-center";
|
|
16
|
+
readonly TOP_RIGHT: "top-right";
|
|
17
|
+
readonly MIDDLE_LEFT: "middle-left";
|
|
18
|
+
readonly MIDDLE_CENTER: "middle-center";
|
|
19
|
+
readonly MIDDLE_RIGHT: "middle-right";
|
|
20
|
+
readonly BOTTOM_LEFT: "bottom-left";
|
|
21
|
+
readonly BOTTOM_CENTER: "bottom-center";
|
|
22
|
+
readonly BOTTOM_RIGHT: "bottom-right";
|
|
23
23
|
};
|
|
24
24
|
export declare const themeModeSchema: z.ZodEnum<{
|
|
25
25
|
light: "light";
|
|
26
26
|
dark: "dark";
|
|
27
27
|
}>;
|
|
28
28
|
export declare const ThemeModes: {
|
|
29
|
-
readonly LIGHT: "light"
|
|
30
|
-
readonly DARK: "
|
|
29
|
+
readonly LIGHT: "light";
|
|
30
|
+
readonly DARK: "dark";
|
|
31
31
|
};
|
|
32
32
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
33
33
|
darkOverlay: z.ZodBoolean;
|
package/package.json
CHANGED