@encatch/schema 1.2.0-beta.6 → 1.2.0-beta.7

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.
@@ -5,7 +5,7 @@ export { otherConfigurationPropertiesSchema, appearancePropertiesSchema, formPro
5
5
  export { OtherFieldsSchema, LanguageFieldSchema, LanguagesSchema, OtherFieldsTranslationSchema, type OtherFields, type OtherFieldsTranslation, type LanguageField, type Languages, } from "./schemas/fields/other-screen-schema";
6
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";
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
- export { translationEntrySchema, ratingQuestionTranslationSchema, singleChoiceQuestionTranslationSchema, multipleChoiceQuestionTranslationSchema, npsQuestionTranslationSchema, shortAnswerQuestionTranslationSchema, longAnswerQuestionTranslationSchema, 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 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";
8
+ export { translationEntrySchema, ratingQuestionTranslationSchema, singleChoiceQuestionTranslationSchema, multipleChoiceQuestionTranslationSchema, npsQuestionTranslationSchema, shortAnswerQuestionTranslationSchema, longAnswerQuestionTranslationSchema, videoAudioQuestionTranslationSchema, 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 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 { customEventFieldOperatorSchema, customEventFieldSchema, conditionalIfMetadataSchema, queryOutputSchema, conditionalIfSchema, triggerActionSchema, conditionalWhenSchema, filterConditionSchema, categorySpecificFiltersSchema, whoSchema, audienceSegmentSchema, audienceTriggerPropertiesSchema, type CustomEventFieldOperator, type CustomEventField, type ConditionalIfMetadata, type QueryOutput, type ConditionalIf, type TriggerAction, type ConditionalWhen, type FilterCondition, type CategorySpecificFilters, type Who, type AudienceSegment, type AudienceTriggerProperties, } from "./schemas/fields/auto-trigger-schema";
10
10
  export { masterPropertiesSchema, type MasterProperties, } from "./schemas/fields/other-properties-schema";
11
11
  export { deviceThemeSchema, deviceInfoSchema, sessionInfoSchema, deviceSessionInfoSchema, userPropertiesSchema, userInfoSchema, DeviceThemes, type DeviceTheme, type DeviceInfo, type SessionInfo, type DeviceSessionInfo, type UserProperties, type UserInfo, } from "./schemas/api/other-schema";
@@ -2176,6 +2176,10 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
2176
2176
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
2177
2177
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2178
2178
  placeholder: z.ZodOptional<z.ZodString>;
2179
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
2180
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
2181
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
2182
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
2179
2183
  }, z.core.$strip>, z.ZodObject<{
2180
2184
  id: z.ZodString;
2181
2185
  slug: z.ZodOptional<z.ZodString>;
@@ -4333,6 +4337,10 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
4333
4337
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
4334
4338
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4335
4339
  placeholder: z.ZodOptional<z.ZodString>;
4340
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
4341
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
4342
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
4343
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
4336
4344
  }, z.core.$strip>, z.ZodObject<{
4337
4345
  id: z.ZodString;
4338
4346
  slug: z.ZodOptional<z.ZodString>;
@@ -2019,6 +2019,10 @@ export declare const appPropsSchema: z.ZodObject<{
2019
2019
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
2020
2020
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2021
2021
  placeholder: z.ZodOptional<z.ZodString>;
2022
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
2023
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
2024
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
2025
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
2022
2026
  }, z.core.$strip>, z.ZodObject<{
2023
2027
  id: z.ZodString;
2024
2028
  slug: z.ZodOptional<z.ZodString>;
@@ -2245,6 +2249,17 @@ export declare const appPropsSchema: z.ZodObject<{
2245
2249
  nextButtonLabel: z.ZodOptional<z.ZodString>;
2246
2250
  type: z.ZodLiteral<"long_text">;
2247
2251
  placeholder: z.ZodOptional<z.ZodString>;
2252
+ }, z.core.$strip>, z.ZodObject<{
2253
+ title: z.ZodString;
2254
+ description: z.ZodOptional<z.ZodString>;
2255
+ errorMessage: z.ZodOptional<z.ZodString>;
2256
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
2257
+ type: z.ZodLiteral<"video_audio">;
2258
+ placeholder: z.ZodOptional<z.ZodString>;
2259
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
2260
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
2261
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
2262
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
2248
2263
  }, z.core.$strip>, z.ZodObject<{
2249
2264
  title: z.ZodString;
2250
2265
  description: z.ZodOptional<z.ZodString>;
@@ -8,6 +8,7 @@ export declare const questionTypeSchema: z.ZodEnum<{
8
8
  nps: "nps";
9
9
  short_answer: "short_answer";
10
10
  long_text: "long_text";
11
+ video_audio: "video_audio";
11
12
  nested_selection: "nested_selection";
12
13
  annotation: "annotation";
13
14
  welcome: "welcome";
@@ -29,7 +30,6 @@ export declare const questionTypeSchema: z.ZodEnum<{
29
30
  website: "website";
30
31
  phone_number: "phone_number";
31
32
  address: "address";
32
- video_audio: "video_audio";
33
33
  scheduler: "scheduler";
34
34
  qna_with_ai: "qna_with_ai";
35
35
  }>;
@@ -254,6 +254,7 @@ export declare const questionSchema: z.ZodObject<{
254
254
  nps: "nps";
255
255
  short_answer: "short_answer";
256
256
  long_text: "long_text";
257
+ video_audio: "video_audio";
257
258
  nested_selection: "nested_selection";
258
259
  annotation: "annotation";
259
260
  welcome: "welcome";
@@ -275,7 +276,6 @@ export declare const questionSchema: z.ZodObject<{
275
276
  website: "website";
276
277
  phone_number: "phone_number";
277
278
  address: "address";
278
- video_audio: "video_audio";
279
279
  scheduler: "scheduler";
280
280
  qna_with_ai: "qna_with_ai";
281
281
  }>;
@@ -2561,6 +2561,10 @@ export declare const videoAudioQuestionSchema: z.ZodObject<{
2561
2561
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
2562
2562
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2563
2563
  placeholder: z.ZodOptional<z.ZodString>;
2564
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
2565
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
2566
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
2567
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
2564
2568
  }, z.core.$strip>;
2565
2569
  export declare const schedulerProviderSchema: z.ZodEnum<{
2566
2570
  google_calendar: "google_calendar";
@@ -4691,6 +4695,10 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4691
4695
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
4692
4696
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4693
4697
  placeholder: z.ZodOptional<z.ZodString>;
4698
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
4699
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
4700
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
4701
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
4694
4702
  }, z.core.$strip>, z.ZodObject<{
4695
4703
  id: z.ZodString;
4696
4704
  slug: z.ZodOptional<z.ZodString>;
@@ -3260,6 +3260,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
3260
3260
  maxFileSizeMb: z.ZodOptional<z.ZodNumber>;
3261
3261
  allowUpload: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3262
3262
  placeholder: z.ZodOptional<z.ZodString>;
3263
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
3264
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
3265
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
3266
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
3263
3267
  }, z.core.$strip>, z.ZodObject<{
3264
3268
  id: z.ZodString;
3265
3269
  slug: z.ZodOptional<z.ZodString>;
@@ -3449,6 +3453,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
3449
3453
  nextButtonLabel: z.ZodOptional<z.ZodString>;
3450
3454
  type: z.ZodLiteral<"long_text">;
3451
3455
  placeholder: z.ZodOptional<z.ZodString>;
3456
+ }, z.core.$strip>, z.ZodObject<{
3457
+ title: z.ZodString;
3458
+ description: z.ZodOptional<z.ZodString>;
3459
+ errorMessage: z.ZodOptional<z.ZodString>;
3460
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
3461
+ type: z.ZodLiteral<"video_audio">;
3462
+ placeholder: z.ZodOptional<z.ZodString>;
3463
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
3464
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
3465
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
3466
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
3452
3467
  }, z.core.$strip>, z.ZodObject<{
3453
3468
  title: z.ZodString;
3454
3469
  description: z.ZodOptional<z.ZodString>;
@@ -57,6 +57,18 @@ export declare const longAnswerQuestionTranslationSchema: z.ZodObject<{
57
57
  type: z.ZodLiteral<"long_text">;
58
58
  placeholder: z.ZodOptional<z.ZodString>;
59
59
  }, z.core.$strip>;
60
+ export declare const videoAudioQuestionTranslationSchema: z.ZodObject<{
61
+ title: z.ZodString;
62
+ description: z.ZodOptional<z.ZodString>;
63
+ errorMessage: z.ZodOptional<z.ZodString>;
64
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
65
+ type: z.ZodLiteral<"video_audio">;
66
+ placeholder: z.ZodOptional<z.ZodString>;
67
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
68
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
69
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
70
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>;
60
72
  export declare const nestedSelectionQuestionTranslationSchema: z.ZodObject<{
61
73
  title: z.ZodString;
62
74
  description: z.ZodOptional<z.ZodString>;
@@ -178,6 +190,17 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
178
190
  nextButtonLabel: z.ZodOptional<z.ZodString>;
179
191
  type: z.ZodLiteral<"long_text">;
180
192
  placeholder: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ title: z.ZodString;
195
+ description: z.ZodOptional<z.ZodString>;
196
+ errorMessage: z.ZodOptional<z.ZodString>;
197
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
198
+ type: z.ZodLiteral<"video_audio">;
199
+ placeholder: z.ZodOptional<z.ZodString>;
200
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
201
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
202
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
203
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
181
204
  }, z.core.$strip>, z.ZodObject<{
182
205
  title: z.ZodString;
183
206
  description: z.ZodOptional<z.ZodString>;
@@ -301,6 +324,17 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
301
324
  nextButtonLabel: z.ZodOptional<z.ZodString>;
302
325
  type: z.ZodLiteral<"long_text">;
303
326
  placeholder: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>, z.ZodObject<{
328
+ title: z.ZodString;
329
+ description: z.ZodOptional<z.ZodString>;
330
+ errorMessage: z.ZodOptional<z.ZodString>;
331
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
332
+ type: z.ZodLiteral<"video_audio">;
333
+ placeholder: z.ZodOptional<z.ZodString>;
334
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
335
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
336
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
337
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
304
338
  }, z.core.$strip>, z.ZodObject<{
305
339
  title: z.ZodString;
306
340
  description: z.ZodOptional<z.ZodString>;
@@ -413,6 +447,17 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
413
447
  nextButtonLabel: z.ZodOptional<z.ZodString>;
414
448
  type: z.ZodLiteral<"long_text">;
415
449
  placeholder: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ title: z.ZodString;
452
+ description: z.ZodOptional<z.ZodString>;
453
+ errorMessage: z.ZodOptional<z.ZodString>;
454
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
455
+ type: z.ZodLiteral<"video_audio">;
456
+ placeholder: z.ZodOptional<z.ZodString>;
457
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
458
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
459
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
460
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
416
461
  }, z.core.$strip>, z.ZodObject<{
417
462
  title: z.ZodString;
418
463
  description: z.ZodOptional<z.ZodString>;
@@ -525,6 +570,17 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
525
570
  nextButtonLabel: z.ZodOptional<z.ZodString>;
526
571
  type: z.ZodLiteral<"long_text">;
527
572
  placeholder: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>, z.ZodObject<{
574
+ title: z.ZodString;
575
+ description: z.ZodOptional<z.ZodString>;
576
+ errorMessage: z.ZodOptional<z.ZodString>;
577
+ nextButtonLabel: z.ZodOptional<z.ZodString>;
578
+ type: z.ZodLiteral<"video_audio">;
579
+ placeholder: z.ZodOptional<z.ZodString>;
580
+ modeTabLabelVideo: z.ZodOptional<z.ZodString>;
581
+ modeTabLabelAudio: z.ZodOptional<z.ZodString>;
582
+ modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
583
+ modeTabLabelText: z.ZodOptional<z.ZodString>;
528
584
  }, z.core.$strip>, z.ZodObject<{
529
585
  title: z.ZodString;
530
586
  description: z.ZodOptional<z.ZodString>;
@@ -600,6 +656,7 @@ export type MultipleChoiceQuestionTranslation = z.infer<typeof multipleChoiceQue
600
656
  export type NpsQuestionTranslation = z.infer<typeof npsQuestionTranslationSchema>;
601
657
  export type ShortAnswerQuestionTranslation = z.infer<typeof shortAnswerQuestionTranslationSchema>;
602
658
  export type LongAnswerQuestionTranslation = z.infer<typeof longAnswerQuestionTranslationSchema>;
659
+ export type VideoAudioQuestionTranslation = z.infer<typeof videoAudioQuestionTranslationSchema>;
603
660
  export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
604
661
  export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
605
662
  export type WelcomeQuestionTranslation = z.infer<typeof welcomeQuestionTranslationSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "1.2.0-beta.6",
3
+ "version": "1.2.0-beta.7",
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",