@encatch/schema 1.3.0-beta.5 → 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.
@@ -3,7 +3,7 @@ export { AnnotationMarkerSchema, AnnotationSchema, SignatureAnswerSchema, FileUp
3
3
  export { externalPublishingPropertiesSchema, publicationStatusSchema, feedbackConfigurationSchema, PublicationStatuses, type PublicationStatus, type FeedbackConfiguration, type ExternalPublishingProperties, } from "./schemas/fields/form-schema";
4
4
  export { otherConfigurationPropertiesSchema, appearancePropertiesSchema, formPropertiesSchema, type FormProperties, type OtherConfigurationProperties, type AppearanceProperties, } from "./schemas/fields/form-properties-schema";
5
5
  export { OtherFieldsSchema, LanguageFieldSchema, LanguagesSchema, OtherFieldsTranslationSchema, type OtherFields, type OtherFieldsTranslation, type LanguageField, type Languages, } from "./schemas/fields/other-screen-schema";
6
- export { positionSchema, themeModeSchema, shareableModeSchema, previousButtonModeSchema, featureSettingsSchema, themeColorsSchema, themesSchema, themeConfigurationSchema, Positions, ThemeModes, ShareableModes, PreviousButtonModes, type Position, type FeatureSettings, type ThemeColors, type Themes, type ThemeMode, type ShareableMode, type PreviousButtonMode, type ThemeConfiguration, } from "./schemas/fields/theme-schema";
6
+ export { positionSchema, themeModeSchema, shareableModeSchema, previousButtonModeSchema, inAppDisplayTypeSchema, featureSettingsSchema, themeColorsSchema, themesSchema, themeConfigurationSchema, Positions, ThemeModes, ShareableModes, PreviousButtonModes, InAppDisplayTypes, type Position, type FeatureSettings, type InAppDisplayType, type ThemeColors, type Themes, type ThemeMode, type ShareableMode, type PreviousButtonMode, type ThemeConfiguration, } from "./schemas/fields/theme-schema";
7
7
  export { focalPointSchema, imageAttachmentSchema, videoAttachmentSchema, colorAttachmentSchema, gradientAttachmentSchema, layoutAttachmentSchema, stackLayoutSchema, floatLayoutSchema, splitLayoutSchema, wallpaperLayoutSchema, sectionLayoutVariantSchema, layoutSurfaceSchema, sectionLayoutSchema, LayoutAttachmentTypes, LayoutTypes, type FocalPoint, type ImageAttachment, type VideoAttachment, type ColorAttachment, type GradientAttachment, type LayoutAttachment, type StackLayout, type FloatLayout, type SplitLayout, type WallpaperLayout, type SectionLayoutVariant, type LayoutSurface, type SectionLayout, } from "./schemas/fields/layout-schema";
8
8
  export { translationEntrySchema, ratingQuestionTranslationSchema, singleChoiceQuestionTranslationSchema, multipleChoiceQuestionTranslationSchema, npsQuestionTranslationSchema, shortAnswerQuestionTranslationSchema, longAnswerQuestionTranslationSchema, videoAudioQuestionTranslationSchema, dateQuestionTranslationSchema, signatureQuestionTranslationSchema, schedulerQuestionTranslationSchema, qnaWithAiQuestionTranslationSchema, paymentsUpiQuestionTranslationSchema, nestedSelectionQuestionTranslationSchema, annotationQuestionTranslationSchema, welcomeQuestionTranslationSchema, thankYouQuestionTranslationSchema, messagePanelQuestionTranslationSchema, yesNoQuestionTranslationSchema, consentQuestionTranslationSchema, ratingMatrixQuestionTranslationSchema, matrixSingleChoiceQuestionTranslationSchema, matrixMultipleChoiceQuestionTranslationSchema, questionTranslationSchema, sectionTranslationSchema, sectionTranslationsByLanguageSchema, questionCentricTranslationsSchema, translationsSchema, TranslationProvider, createTranslationProvider, type TranslationEntry, type RatingQuestionTranslation, type SingleChoiceQuestionTranslation, type MultipleChoiceQuestionTranslation, type NpsQuestionTranslation, type ShortAnswerQuestionTranslation, type LongAnswerQuestionTranslation, type VideoAudioQuestionTranslation, type DateQuestionTranslation, type SignatureQuestionTranslation, type SchedulerQuestionTranslation, type QnaWithAiQuestionTranslation, type PaymentsUpiQuestionTranslation, type NestedSelectionQuestionTranslation, type AnnotationQuestionTranslation, type WelcomeQuestionTranslation, type ThankYouQuestionTranslation, type MessagePanelQuestionTranslation, type YesNoQuestionTranslation, type ConsentQuestionTranslation, type RatingMatrixQuestionTranslation, type MatrixSingleChoiceQuestionTranslation, type MatrixMultipleChoiceQuestionTranslation, type QuestionTranslation, type SectionTranslation, type SectionTranslationsByLanguage, type QuestionCentricTranslations, type Translations, } from "./schemas/fields/translations-schema";
9
9
  export { platformCompletionCtaSchema, completionCtaSecondarySchema, completionCtaSchema, type PlatformCompletionCta, type CompletionCtaSecondary, type CompletionCta, type CompletionCtaAction, } from "./schemas/fields/completion-cta-schema";
@@ -5488,6 +5488,12 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
5488
5488
  auto: "auto";
5489
5489
  }>>;
5490
5490
  maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
5491
+ inAppDisplayType: z.ZodDefault<z.ZodEnum<{
5492
+ auto: "auto";
5493
+ modal: "modal";
5494
+ selector: "selector";
5495
+ }>>;
5496
+ inAppSelector: z.ZodOptional<z.ZodString>;
5491
5497
  faviconUrl: z.ZodOptional<z.ZodString>;
5492
5498
  logo: z.ZodOptional<z.ZodObject<{
5493
5499
  href: z.ZodObject<{
@@ -2897,6 +2897,12 @@ export declare const appPropsSchema: z.ZodObject<{
2897
2897
  auto: "auto";
2898
2898
  }>>;
2899
2899
  maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
2900
+ inAppDisplayType: z.ZodDefault<z.ZodEnum<{
2901
+ auto: "auto";
2902
+ modal: "modal";
2903
+ selector: "selector";
2904
+ }>>;
2905
+ inAppSelector: z.ZodOptional<z.ZodString>;
2900
2906
  faviconUrl: z.ZodOptional<z.ZodString>;
2901
2907
  logo: z.ZodOptional<z.ZodObject<{
2902
2908
  href: z.ZodObject<{
@@ -84,6 +84,12 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
84
84
  auto: "auto";
85
85
  }>>;
86
86
  maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
87
+ inAppDisplayType: z.ZodDefault<z.ZodEnum<{
88
+ auto: "auto";
89
+ modal: "modal";
90
+ selector: "selector";
91
+ }>>;
92
+ inAppSelector: z.ZodOptional<z.ZodString>;
87
93
  faviconUrl: z.ZodOptional<z.ZodString>;
88
94
  logo: z.ZodOptional<z.ZodObject<{
89
95
  href: z.ZodObject<{
@@ -4259,6 +4265,12 @@ export declare const formPropertiesSchema: z.ZodObject<{
4259
4265
  auto: "auto";
4260
4266
  }>>;
4261
4267
  maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
4268
+ inAppDisplayType: z.ZodDefault<z.ZodEnum<{
4269
+ auto: "auto";
4270
+ modal: "modal";
4271
+ selector: "selector";
4272
+ }>>;
4273
+ inAppSelector: z.ZodOptional<z.ZodString>;
4262
4274
  faviconUrl: z.ZodOptional<z.ZodString>;
4263
4275
  logo: z.ZodOptional<z.ZodObject<{
4264
4276
  href: z.ZodObject<{
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "1.3.0-beta.5",
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",