@encatch/schema 1.3.0-beta.4 → 1.3.0-beta.6
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 +40 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal/type-assert.d.ts +19 -0
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +308 -19
- package/dist/types/schemas/fields/answer-schema.d.ts +118 -14
- package/dist/types/schemas/fields/app-props-schema.d.ts +6 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +12 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +23 -0
- package/dist/types/schemas/fields/translations-example.d.ts +10 -0
- package/package.json +2 -2
|
@@ -49,6 +49,16 @@ export declare const PreviousButtonModes: {
|
|
|
49
49
|
readonly ALWAYS: "always";
|
|
50
50
|
readonly AUTO: "auto";
|
|
51
51
|
};
|
|
52
|
+
export declare const inAppDisplayTypeSchema: z.ZodEnum<{
|
|
53
|
+
auto: "auto";
|
|
54
|
+
modal: "modal";
|
|
55
|
+
selector: "selector";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const InAppDisplayTypes: {
|
|
58
|
+
readonly AUTO: "auto";
|
|
59
|
+
readonly MODAL: "modal";
|
|
60
|
+
readonly SELECTOR: "selector";
|
|
61
|
+
};
|
|
52
62
|
export declare const logoPlacementSchema: z.ZodEnum<{
|
|
53
63
|
"top-left": "top-left";
|
|
54
64
|
"top-center": "top-center";
|
|
@@ -154,6 +164,12 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
154
164
|
auto: "auto";
|
|
155
165
|
}>>;
|
|
156
166
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
inAppDisplayType: z.ZodDefault<z.ZodEnum<{
|
|
168
|
+
auto: "auto";
|
|
169
|
+
modal: "modal";
|
|
170
|
+
selector: "selector";
|
|
171
|
+
}>>;
|
|
172
|
+
inAppSelector: z.ZodOptional<z.ZodString>;
|
|
157
173
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
158
174
|
logo: z.ZodOptional<z.ZodObject<{
|
|
159
175
|
href: z.ZodObject<{
|
|
@@ -247,6 +263,12 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
247
263
|
auto: "auto";
|
|
248
264
|
}>>;
|
|
249
265
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
inAppDisplayType: z.ZodDefault<z.ZodEnum<{
|
|
267
|
+
auto: "auto";
|
|
268
|
+
modal: "modal";
|
|
269
|
+
selector: "selector";
|
|
270
|
+
}>>;
|
|
271
|
+
inAppSelector: z.ZodOptional<z.ZodString>;
|
|
250
272
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
251
273
|
logo: z.ZodOptional<z.ZodObject<{
|
|
252
274
|
href: z.ZodObject<{
|
|
@@ -330,6 +352,7 @@ export type LogoPlacement = z.infer<typeof logoPlacementSchema>;
|
|
|
330
352
|
export type LogoSize = z.infer<typeof logoSizeSchema>;
|
|
331
353
|
export type LogoSurfaceOverride = z.infer<typeof logoSurfaceOverrideSchema>;
|
|
332
354
|
export type Logo = z.infer<typeof logoSchema>;
|
|
355
|
+
export type InAppDisplayType = z.infer<typeof inAppDisplayTypeSchema>;
|
|
333
356
|
export type FeatureSettings = z.infer<typeof featureSettingsSchema>;
|
|
334
357
|
export type ThemeColors = z.infer<typeof themeColorsSchema>;
|
|
335
358
|
export type Themes = z.infer<typeof themesSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Translations } from './translations-schema';
|
|
2
|
+
import { Languages, LanguageField } from './other-screen-schema';
|
|
3
|
+
export declare const exampleTranslations: Translations;
|
|
4
|
+
export declare const availableLanguages: Languages;
|
|
5
|
+
export declare const translationProvider: import("./translations-schema").TranslationProvider;
|
|
6
|
+
export declare function getLanguageDisplayName(languageCode: string): string;
|
|
7
|
+
export declare function getSupportedLanguages(): LanguageField[];
|
|
8
|
+
export declare function demonstrateUsage(): void;
|
|
9
|
+
export type { Translations } from './translations-schema';
|
|
10
|
+
export type { Languages, LanguageField } from './other-screen-schema';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/schema",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.6",
|
|
4
4
|
"description": "TypeScript schema definitions using Zod for validation and type inference of encatch product",
|
|
5
5
|
"homepage": "https://encatch.com",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"types"
|
|
27
27
|
],
|
|
28
28
|
"author": "",
|
|
29
|
-
"license": "
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@types/node": "^25.7.0",
|
|
32
32
|
"typescript": "^6.0.3",
|