@encatch/schema 1.2.0-beta.1 → 1.2.0-beta.3

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
@@ -1290,6 +1290,7 @@ var OtherFieldsSchema = z5.object({
1290
1290
  remindMeLaterButtonLabel: z5.string().max(50).optional().describe("Label for the remind me later button; when absent or blank the button is not shown"),
1291
1291
  estimatedCompletionLabel: z5.string().max(100).optional().describe("Estimated completion time label shown on the welcome or first screen (e.g. 'Takes about 2 minutes'); when absent the label is not shown"),
1292
1292
  respondentsShowMinThreshold: z5.number().int().min(1).optional().describe("Minimum number of respondents required before the respondents badge is shown; when absent the badge is never shown"),
1293
+ respondentsLabel: z5.string().max(100).optional().describe("Label template for the respondents badge (e.g. '{count} people have already responded'); client interpolates {count} at render time"),
1293
1294
  windowTitle: z5.string().max(100).optional().describe("Custom browser window/tab title for the form; when absent the platform uses a default (e.g. the form title or app name)")
1294
1295
  }).describe("Schema for other form configuration fields");
1295
1296
  var LanguageFieldSchema = z5.object({
@@ -1798,8 +1799,11 @@ var fetchFeedbackDetailsSchema = z13.object({
1798
1799
  }).strict().describe("Request schema for fetching specific feedback form details");
1799
1800
  var formConfigurationResponseSchema = z13.object({
1800
1801
  formTitle: z13.string().describe("Title of the feedback form"),
1801
- formDescription: z13.string().describe("Description of the feedback form")
1802
- }).describe("Form configuration response with title and description");
1802
+ formDescription: z13.string().describe("Description of the feedback form"),
1803
+ respondentsCount: z13.number().int().min(0).optional().describe(
1804
+ "Total number of respondents enriched by the server at fetch time; used alongside respondentsShowMinThreshold to decide whether to display the welcome badge"
1805
+ )
1806
+ }).describe("Form configuration response with title, description, and optional respondent count");
1803
1807
  var logicJumpRuleSchema = z13.object({
1804
1808
  jsonLogic: z13.record(z13.string(), z13.unknown()).describe("JSON Logic expression to evaluate"),
1805
1809
  targetQuestionId: z13.string().describe("Question ID to navigate to when this rule matches")
@@ -1831,7 +1835,7 @@ var fetchFeedbackDetailsResponseSchema = z13.object({
1831
1835
  feedbackConfigurationId: z13.string().uuid().describe("Unique identifier for the feedback configuration"),
1832
1836
  feedbackIdentifier: z13.string().uuid().describe("Unique identifier for this specific feedback instance"),
1833
1837
  formConfiguration: formConfigurationResponseSchema.describe(
1834
- "Form configuration with title and description"
1838
+ "Form configuration including title, description, and optional respondent count for the welcome badge"
1835
1839
  ),
1836
1840
  questionnaireFields: questionnaireFieldsResponseSchema.describe(
1837
1841
  "Questionnaire structure including questions, sections, translations, and languages"
@@ -1841,8 +1845,7 @@ var fetchFeedbackDetailsResponseSchema = z13.object({
1841
1845
  ),
1842
1846
  appearanceProperties: appearancePropertiesSchema.describe(
1843
1847
  "Appearance properties including theme configuration"
1844
- ),
1845
- respondentsCount: z13.number().int().min(0).optional().describe("Total number of respondents enriched by the server at fetch time; used alongside respondentsShowMinThreshold to decide whether to display the badge")
1848
+ )
1846
1849
  }).strict().describe(
1847
1850
  "Complete response schema for fetchFeedbackDetails API using existing field schemas"
1848
1851
  );