@encatch/schema 1.1.0-beta.5 → 1.1.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 CHANGED
@@ -88,20 +88,13 @@ var annotationQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.ex
88
88
  noAnnotationText: translationEntrySchema.optional().describe("No annotation display text translation")
89
89
  }).describe("Translation schema for annotation questions");
90
90
  var welcomeQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.extend({
91
- type: z.literal("welcome").describe("Question type identifier"),
92
- buttonLabel: translationEntrySchema.optional().describe("Translated proceed/start button label")
91
+ type: z.literal("welcome").describe("Question type identifier")
93
92
  }).describe("Translation schema for welcome screen questions");
94
93
  var thankYouQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.extend({
95
- type: z.literal("thank_you").describe("Question type identifier"),
96
- buttonLabel: translationEntrySchema.optional().describe(
97
- "Translated dismiss/done button label"
98
- )
94
+ type: z.literal("thank_you").describe("Question type identifier")
99
95
  }).describe("Translation schema for thank you screen questions");
100
96
  var messagePanelQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.extend({
101
- type: z.literal("message_panel").describe("Question type identifier"),
102
- buttonLabel: translationEntrySchema.optional().describe(
103
- "Translated continue/button label"
104
- )
97
+ type: z.literal("message_panel").describe("Question type identifier")
105
98
  }).describe("Translation schema for message panel questions");
106
99
  var yesNoQuestionTranslationSchema = baseQuestionTranslationFieldsSchema.extend({
107
100
  type: z.literal("yes_no").describe("Question type identifier"),
@@ -506,7 +499,6 @@ var welcomeQuestionSchema = questionSchema.extend({
506
499
  type: z2.literal("welcome").describe("Must be exactly 'welcome'"),
507
500
  title: z2.string().min(1).max(200).describe("The main heading displayed on the welcome screen"),
508
501
  description: z2.string().max(1e3).optional().describe("Optional sub-text body shown below the heading"),
509
- buttonLabel: z2.string().min(1).max(50).optional().describe("Label for the proceed/start button (e.g. 'Get Started', 'Begin')"),
510
502
  imageUrl: z2.string().url().optional().describe("Optional image URL displayed on the welcome screen")
511
503
  }).describe("Schema for a welcome screen displayed at the start or inline within a form");
512
504
  var thankYouQuestionSchema = questionSchema.extend({
@@ -515,7 +507,6 @@ var thankYouQuestionSchema = questionSchema.extend({
515
507
  description: z2.string().max(1e3).optional().describe(
516
508
  "Optional thank you body text; rendered as Markdown where the form supports it"
517
509
  ),
518
- buttonLabel: z2.string().min(1).max(50).optional().describe("Label for the dismiss/done button (e.g. 'Done', 'Close')"),
519
510
  imageUrl: z2.string().url().optional().describe("Optional image URL displayed on the thank you screen")
520
511
  }).describe(
521
512
  "Schema for a thank you screen shown at the end or inline within a form"
@@ -524,7 +515,6 @@ var messagePanelQuestionSchema = questionSchema.extend({
524
515
  type: z2.literal("message_panel").describe("Must be exactly 'message_panel'"),
525
516
  title: z2.string().min(1).max(200).describe("The main heading displayed on the message panel"),
526
517
  description: z2.string().max(1e3).optional().describe("Optional body text shown below the heading"),
527
- buttonLabel: z2.string().min(1).max(50).optional().describe("Label for the continue button (e.g. 'Continue', 'Next')"),
528
518
  imageUrl: z2.string().url().optional().describe("Optional image URL displayed on the message panel")
529
519
  }).describe(
530
520
  "Schema for an inline message panel (informational); distinct from welcome for UI semantics and analytics"
@@ -923,13 +913,9 @@ import { z as z8 } from "zod";
923
913
  // src/schemas/fields/other-screen-schema.ts
924
914
  import { z as z5 } from "zod";
925
915
  var OtherFieldsSchema = z5.object({
926
- pagination: z5.boolean().describe("Whether to show pagination for multi-page forms"),
927
916
  questionNumber: z5.boolean().describe("Whether to display question numbers"),
928
- pageTitle: z5.boolean().describe("Whether to show page titles in multi-page forms"),
929
- blockerFeedback: z5.boolean().describe("Whether to show blocker feedback for validation errors"),
930
917
  submitButtonLabel: z5.string().min(1).max(50).describe("Text for the submit button"),
931
918
  previousButtonLabel: z5.string().min(1).max(50).describe("Text for the previous button in pagination"),
932
- nextButtonLabel: z5.string().min(1).max(50).describe("Text for the next button in pagination"),
933
919
  aiEnhancementSuccessMessage: z5.string().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),
934
920
  aiEnhancementCooldownErrorMessage: z5.string().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),
935
921
  aiEnhancementMaxReachedErrorMessage: z5.string().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")
@@ -942,7 +928,6 @@ var LanguagesSchema = z5.array(LanguageFieldSchema).describe("Schema for array o
942
928
  var OtherFieldsTranslationSchema = z5.object({
943
929
  submitButtonLabel: z5.string().min(1).max(50).describe("Translated text for the submit button"),
944
930
  previousButtonLabel: z5.string().min(1).max(50).describe("Translated text for the previous button in pagination"),
945
- nextButtonLabel: z5.string().min(1).max(50).describe("Translated text for the next button in pagination"),
946
931
  aiEnhancementSuccessMessage: z5.string().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),
947
932
  aiEnhancementCooldownErrorMessage: z5.string().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),
948
933
  aiEnhancementMaxReachedErrorMessage: z5.string().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")
@@ -1101,13 +1086,13 @@ var otherConfigurationPropertiesSchema = z8.discriminatedUnion("isEnabled", [
1101
1086
  // When other configuration is disabled
1102
1087
  z8.object({
1103
1088
  isEnabled: z8.literal(false).describe("Whether other configuration properties are enabled"),
1104
- otherFields: OtherFieldsSchema.describe("Other form configuration fields including pagination, buttons, and display options"),
1089
+ otherFields: OtherFieldsSchema.describe("Other form configuration fields including buttons and display options"),
1105
1090
  translations: z8.record(z8.string(), OtherFieldsTranslationSchema).optional().describe("Translations for other configuration field labels and buttons keyed by language code")
1106
1091
  }),
1107
1092
  // When other configuration is enabled
1108
1093
  z8.object({
1109
1094
  isEnabled: z8.literal(true).describe("Whether other configuration properties are enabled"),
1110
- otherFields: OtherFieldsSchema.describe("Other form configuration fields including pagination, buttons, and display options"),
1095
+ otherFields: OtherFieldsSchema.describe("Other form configuration fields including buttons and display options"),
1111
1096
  translations: z8.record(z8.string(), OtherFieldsTranslationSchema).describe("Translations for other configuration field labels and buttons keyed by language code")
1112
1097
  })
1113
1098
  ]).describe("Schema for other configuration properties including fields and translations");