@encatch/schema 1.2.0-beta.12 → 1.2.0-beta.14
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 +30 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +52 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +3 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +51 -0
- package/dist/types/schemas/fields/field-schema.d.ts +2 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +101 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1533,6 +1533,9 @@ var paymentsUpiQuestionSchema = questionSchema.extend({
|
|
|
1533
1533
|
amount: paymentsUpiAmountConfigSchema.describe(
|
|
1534
1534
|
"How the requested INR amount is determined"
|
|
1535
1535
|
),
|
|
1536
|
+
sourceEmailQuestionId: z2.string().optional().describe(
|
|
1537
|
+
"Optional ID of the email question whose answer is used for form submission receipt emails"
|
|
1538
|
+
),
|
|
1536
1539
|
transactionNote: z2.string().max(80).optional().describe(
|
|
1537
1540
|
"Short note included in the UPI intent; the platform may append the Encatch reference"
|
|
1538
1541
|
),
|
|
@@ -1678,6 +1681,7 @@ var PaymentsUpiAnswerSchema = z3.object({
|
|
|
1678
1681
|
currency: z3.literal("INR").describe("Currency for UPI payments"),
|
|
1679
1682
|
payeeVpa: z3.string().describe("UPI VPA shown to the respondent"),
|
|
1680
1683
|
payeeName: z3.string().optional().describe("Payee display name shown to the respondent"),
|
|
1684
|
+
sourceEmail: z3.string().optional().describe("Email address resolved from the configured source email question"),
|
|
1681
1685
|
upiIntentUri: z3.string().optional().describe("Generated UPI intent URI shown to the respondent"),
|
|
1682
1686
|
selfReported: z3.literal(true).describe(
|
|
1683
1687
|
"Always true: Encatch records this answer but does not verify the payment"
|
|
@@ -1885,6 +1889,30 @@ var PreviousButtonModes = {
|
|
|
1885
1889
|
ALWAYS: "always",
|
|
1886
1890
|
AUTO: "auto"
|
|
1887
1891
|
};
|
|
1892
|
+
var logoPlacementSchema = z6.enum(["top-left", "top-center", "top-right"]).describe("Where the logo is anchored in the form header");
|
|
1893
|
+
var logoSizeSchema = z6.enum(["small", "medium", "large"]).describe("Rendered display size of the logo within the 96\xD740 px container");
|
|
1894
|
+
var logoSurfaceOverrideSchema = z6.object({
|
|
1895
|
+
size: logoSizeSchema.optional().describe("Size override for this surface; falls back to the global size"),
|
|
1896
|
+
placement: logoPlacementSchema.optional().describe("Placement override for this surface; falls back to the global placement"),
|
|
1897
|
+
hidden: z6.boolean().optional().describe("When true, the logo is suppressed on this surface"),
|
|
1898
|
+
disableLink: z6.boolean().optional().describe("When true, the logo is not clickable on this surface")
|
|
1899
|
+
}).describe("Per-surface overrides for logo display on link/shareable");
|
|
1900
|
+
var logoSchema = z6.object({
|
|
1901
|
+
href: z6.object({
|
|
1902
|
+
light: z6.string().url().describe("Logo URL for light mode \u2014 rendered within a 96\xD740 px container"),
|
|
1903
|
+
dark: z6.string().url().optional().describe("Logo URL for dark mode; falls back to light if absent")
|
|
1904
|
+
}).describe("Logo image URLs per theme mode"),
|
|
1905
|
+
placement: logoPlacementSchema.default("top-left").describe("Default placement in the form header"),
|
|
1906
|
+
size: logoSizeSchema.default("medium").describe("Default rendered size of the logo"),
|
|
1907
|
+
linkUrl: z6.string().url().optional().describe("Optional URL to navigate to when the logo is clicked"),
|
|
1908
|
+
altText: z6.string().max(200).optional().describe("Accessible alt text for the logo image"),
|
|
1909
|
+
surfaces: z6.object({
|
|
1910
|
+
link: z6.object({
|
|
1911
|
+
mobile: logoSurfaceOverrideSchema.optional().describe("Overrides for link/shareable on mobile viewports"),
|
|
1912
|
+
others: logoSurfaceOverrideSchema.optional().describe("Overrides for link/shareable on tablet and desktop viewports")
|
|
1913
|
+
}).optional()
|
|
1914
|
+
}).optional().describe("Per-surface overrides; logo is link/shareable only \u2014 not rendered in-app")
|
|
1915
|
+
}).describe("Logo displayed in the form header; applies to link/shareable surfaces only");
|
|
1888
1916
|
var featureSettingsSchema = z6.object({
|
|
1889
1917
|
darkOverlay: z6.boolean().default(false).describe("Whether to show a dark overlay behind the widget"),
|
|
1890
1918
|
closeButton: z6.boolean().default(true).describe("Whether to display a close button on the widget"),
|
|
@@ -1902,7 +1930,8 @@ var featureSettingsSchema = z6.object({
|
|
|
1902
1930
|
rtl: z6.boolean().default(false).describe("Whether right-to-left text direction is enabled"),
|
|
1903
1931
|
previousButton: previousButtonModeSchema.default(PreviousButtonModes.ALWAYS).describe("Previous button: never (hidden) or always (shown)"),
|
|
1904
1932
|
maxDialogHeightPercentInApp: z6.number().int().min(10).max(100).optional().describe("Maximum height of the in-app dialog as a percentage of the viewport height (10\u2013100); when absent the dialog uses its default height"),
|
|
1905
|
-
faviconUrl: z6.string().optional().describe("URL of a custom favicon image to display in the browser tab; when absent the platform default favicon is used")
|
|
1933
|
+
faviconUrl: z6.string().optional().describe("URL of a custom favicon image to display in the browser tab; when absent the platform default favicon is used"),
|
|
1934
|
+
logo: logoSchema.optional().describe("Optional form-level logo shown in the header on link/shareable surfaces; omit to show no logo")
|
|
1906
1935
|
}).describe("Feature settings controlling widget UI behavior and appearance");
|
|
1907
1936
|
var themeColorsSchema = z6.object({
|
|
1908
1937
|
theme: z6.string().optional().describe("Theme for a single mode (shadcn variables JSON)")
|