@encatch/schema 1.3.0-beta.6 โ 1.3.0-beta.8
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 +215 -4
- package/dist/esm/index.js.map +3 -3
- package/dist/types/helpers/csat-emoji-helper.d.ts +52 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +32 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +31 -0
- package/dist/types/schemas/fields/field-schema.d.ts +32 -0
- package/dist/types/schemas/fields/form-properties-schema.d.ts +31 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +75 -0
- package/package.json +1 -1
- package/dist/types/schemas/fields/translations-example.d.ts +0 -10
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Canonical CSAT default emojis when `overrideEmoji` is unset (index 0 = point 1). */
|
|
2
|
+
export declare const CSAT_DEFAULT_EMOJIS_BY_SCALE: Record<number, readonly string[]>;
|
|
3
|
+
/** Emoji picker categories for CSAT custom overrides. */
|
|
4
|
+
export declare const CSAT_EMOJI_CATEGORIES: readonly [{
|
|
5
|
+
readonly id: "unhappy";
|
|
6
|
+
readonly label: "Unhappy";
|
|
7
|
+
readonly emojis: readonly ["๐ก", "๐ ", "๐ค", "๐", "๐", "๐", "๐ข", "๐ญ", "๐ฐ", "๐จ"];
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: "neutral";
|
|
10
|
+
readonly label: "Neutral";
|
|
11
|
+
readonly emojis: readonly ["๐", "๐", "๐", "๐ถ", "๐ฅฒ"];
|
|
12
|
+
}, {
|
|
13
|
+
readonly id: "happy";
|
|
14
|
+
readonly label: "Happy";
|
|
15
|
+
readonly emojis: readonly ["๐", "๐", "๐", "๐", "๐", "๐คฉ", "๐", "๐ฅฐ", "๐"];
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "gestures";
|
|
18
|
+
readonly label: "Gestures";
|
|
19
|
+
readonly emojis: readonly ["๐", "๐", "๐", "๐", "๐ค", "โ๏ธ"];
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: "hearts";
|
|
22
|
+
readonly label: "Hearts";
|
|
23
|
+
readonly emojis: readonly ["โค๏ธ", "๐งก", "๐", "๐", "๐", "๐", "๐"];
|
|
24
|
+
}, {
|
|
25
|
+
readonly id: "symbols";
|
|
26
|
+
readonly label: "Symbols";
|
|
27
|
+
readonly emojis: readonly ["โญ", "๐", "๐ฏ", "โ
", "โ", "โ ๏ธ"];
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "celebration";
|
|
30
|
+
readonly label: "Celebration";
|
|
31
|
+
readonly emojis: readonly ["๐", "๐ฅณ", "๐", "๐", "๐ฅ"];
|
|
32
|
+
}];
|
|
33
|
+
/** Flat allowed palette derived from categories (used for validation). */
|
|
34
|
+
export declare const CSAT_EMOJI_PALETTE: readonly string[];
|
|
35
|
+
export type CsatEmojiCategory = (typeof CSAT_EMOJI_CATEGORIES)[number];
|
|
36
|
+
export type CsatEmojiPaletteItem = (typeof CSAT_EMOJI_PALETTE)[number];
|
|
37
|
+
export declare function isCsatEmojiPaletteItem(value: string): value is CsatEmojiPaletteItem;
|
|
38
|
+
/** Default override values when custom emojis are enabled โ every emoji must exist in CSAT_EMOJI_PALETTE. */
|
|
39
|
+
export declare function getDefaultOverrideEmojiForScale(scale: number): string[];
|
|
40
|
+
export declare function parseOverrideEmoji(overrideEmoji: string | undefined | null): string[] | null;
|
|
41
|
+
export declare function serializeOverrideEmoji(emojis: readonly string[]): string;
|
|
42
|
+
export declare function validateOverrideEmojiForScale(overrideEmoji: string | undefined | null, scale: number): {
|
|
43
|
+
valid: boolean;
|
|
44
|
+
emojis: string[] | null;
|
|
45
|
+
error?: string;
|
|
46
|
+
};
|
|
47
|
+
/** Returns emojis for each scale point (index 0 = point 1). Falls back to defaults when unset. */
|
|
48
|
+
export declare function resolveCsatEmojis(scale: number, overrideEmoji?: string | null): string[];
|
|
49
|
+
/** Emoji for a 1-based CSAT point value. */
|
|
50
|
+
export declare function getCsatEmojiForPoint(point: number, scale: number, overrideEmoji?: string | null): string;
|
|
51
|
+
/** Trim custom emojis when scale shrinks; pad with defaults when scale grows (caller may require re-pick). */
|
|
52
|
+
export declare function trimOverrideEmojiForScale(overrideEmoji: string | undefined | null, newScale: number): string | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -15,5 +15,6 @@ export { feedbackConfigurationItemSchema, fetchFormConfigSchema, fetchConfigurat
|
|
|
15
15
|
export { RefineTextParams, RefineTextResponse, RefineTextData, refineTextDataSchema, refineTextParamsSchema, refineTextResponseSchema, } from "./schemas/api/refine-text-schema";
|
|
16
16
|
export { objectToCamel, objectToSnake, toSnake, toCamel, toPascal, objectToPascal, } from "./helpers/case-convert-helper";
|
|
17
17
|
export type { ObjectToCamel, ObjectToSnake, ToSnake, ToCamel, ToPascal, ObjectToPascal, } from "./helpers/case-convert-helper";
|
|
18
|
+
export { CSAT_DEFAULT_EMOJIS_BY_SCALE, CSAT_EMOJI_CATEGORIES, CSAT_EMOJI_PALETTE, getCsatEmojiForPoint, getDefaultOverrideEmojiForScale, isCsatEmojiPaletteItem, parseOverrideEmoji, resolveCsatEmojis, serializeOverrideEmoji, trimOverrideEmojiForScale, validateOverrideEmojiForScale, type CsatEmojiCategory, type CsatEmojiPaletteItem, } from "./helpers/csat-emoji-helper";
|
|
18
19
|
export { currentModeSchema, appPropsSchema, CurrentModes, type CurrentMode, type AppProps, } from "./schemas/fields/app-props-schema";
|
|
19
20
|
export { z } from "zod";
|
|
@@ -1687,6 +1687,7 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
|
|
|
1687
1687
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
1688
1688
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1689
1689
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1690
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
1690
1691
|
}, z.core.$strip>, z.ZodObject<{
|
|
1691
1692
|
id: z.ZodString;
|
|
1692
1693
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2000,6 +2001,10 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
|
|
|
2000
2001
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
2001
2002
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
2002
2003
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
2004
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2005
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2006
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2003
2008
|
}, z.core.$strip>, z.ZodObject<{
|
|
2004
2009
|
id: z.ZodString;
|
|
2005
2010
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2525,6 +2530,17 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
|
|
|
2525
2530
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
2526
2531
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2527
2532
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2536
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2538
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2539
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2540
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2541
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2543
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2528
2544
|
}, z.core.$strip>, z.ZodObject<{
|
|
2529
2545
|
id: z.ZodString;
|
|
2530
2546
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -4303,6 +4319,7 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
4303
4319
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
4304
4320
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4305
4321
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4322
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
4306
4323
|
}, z.core.$strip>, z.ZodObject<{
|
|
4307
4324
|
id: z.ZodString;
|
|
4308
4325
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -4616,6 +4633,10 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
4616
4633
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
4617
4634
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
4618
4635
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
4636
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4637
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4638
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4619
4640
|
}, z.core.$strip>, z.ZodObject<{
|
|
4620
4641
|
id: z.ZodString;
|
|
4621
4642
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -5141,6 +5162,17 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
5141
5162
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
5142
5163
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5143
5164
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5165
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5166
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5167
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5168
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5169
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5170
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5171
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5173
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5174
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5144
5176
|
}, z.core.$strip>, z.ZodObject<{
|
|
5145
5177
|
id: z.ZodString;
|
|
5146
5178
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1530,6 +1530,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1530
1530
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
1531
1531
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1532
1532
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1533
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
1533
1534
|
}, z.core.$strip>, z.ZodObject<{
|
|
1534
1535
|
id: z.ZodString;
|
|
1535
1536
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -1843,6 +1844,10 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
1843
1844
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
1844
1845
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
1845
1846
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
1847
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1848
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1849
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1850
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
1846
1851
|
}, z.core.$strip>, z.ZodObject<{
|
|
1847
1852
|
id: z.ZodString;
|
|
1848
1853
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2368,6 +2373,17 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2368
2373
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
2369
2374
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2370
2375
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2376
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2377
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2380
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2381
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2382
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2383
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2384
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2385
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2371
2387
|
}, z.core.$strip>, z.ZodObject<{
|
|
2372
2388
|
id: z.ZodString;
|
|
2373
2389
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2721,6 +2737,17 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2721
2737
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
2722
2738
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2723
2739
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2741
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2743
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2744
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2746
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2747
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2748
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2749
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2750
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2724
2751
|
}, z.core.$strip>, z.ZodObject<{
|
|
2725
2752
|
title: z.ZodString;
|
|
2726
2753
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2745,6 +2772,10 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2745
2772
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
2746
2773
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
2747
2774
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
2775
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2776
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2777
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2778
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2748
2779
|
}, z.core.$strip>, z.ZodObject<{
|
|
2749
2780
|
title: z.ZodString;
|
|
2750
2781
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2035,6 +2035,7 @@ export declare const csatQuestionSchema: z.ZodObject<{
|
|
|
2035
2035
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
2036
2036
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2037
2037
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2038
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
2038
2039
|
}, z.core.$strip>;
|
|
2039
2040
|
export declare const opinionScaleQuestionSchema: z.ZodObject<{
|
|
2040
2041
|
id: z.ZodString;
|
|
@@ -2372,6 +2373,10 @@ export declare const signatureQuestionSchema: z.ZodObject<{
|
|
|
2372
2373
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
2373
2374
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
2374
2375
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
2376
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2377
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2379
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2375
2380
|
}, z.core.$strip>;
|
|
2376
2381
|
export declare const fileUploadQuestionSchema: z.ZodObject<{
|
|
2377
2382
|
id: z.ZodString;
|
|
@@ -2922,6 +2927,17 @@ export declare const videoAudioQuestionSchema: z.ZodObject<{
|
|
|
2922
2927
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
2923
2928
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2924
2929
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2930
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2931
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2932
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2933
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2934
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2935
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2937
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2938
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2939
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2940
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2925
2941
|
}, z.core.$strip>;
|
|
2926
2942
|
export declare const schedulerProviderSchema: z.ZodEnum<{
|
|
2927
2943
|
google_calendar: "google_calendar";
|
|
@@ -4694,6 +4710,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
4694
4710
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
4695
4711
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4696
4712
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4713
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
4697
4714
|
}, z.core.$strip>, z.ZodObject<{
|
|
4698
4715
|
id: z.ZodString;
|
|
4699
4716
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -5007,6 +5024,10 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5007
5024
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
5008
5025
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
5009
5026
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
5027
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5028
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5029
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5030
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5010
5031
|
}, z.core.$strip>, z.ZodObject<{
|
|
5011
5032
|
id: z.ZodString;
|
|
5012
5033
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -5532,6 +5553,17 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5532
5553
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
5533
5554
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5534
5555
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5556
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5557
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5558
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5559
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5560
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5561
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5562
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5563
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5564
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5565
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5566
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5535
5567
|
}, z.core.$strip>, z.ZodObject<{
|
|
5536
5568
|
id: z.ZodString;
|
|
5537
5569
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2827,6 +2827,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
2827
2827
|
positiveColor: z.ZodOptional<z.ZodString>;
|
|
2828
2828
|
showLabels: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2829
2829
|
scaleLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2830
|
+
overrideEmoji: z.ZodOptional<z.ZodString>;
|
|
2830
2831
|
}, z.core.$strip>, z.ZodObject<{
|
|
2831
2832
|
id: z.ZodString;
|
|
2832
2833
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3140,6 +3141,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3140
3141
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
3141
3142
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
3142
3143
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
3144
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3145
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3146
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3143
3148
|
}, z.core.$strip>, z.ZodObject<{
|
|
3144
3149
|
id: z.ZodString;
|
|
3145
3150
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3665,6 +3670,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3665
3670
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
3666
3671
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3667
3672
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3673
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3674
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3675
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3678
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3679
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3680
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3681
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3682
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3683
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3668
3684
|
}, z.core.$strip>, z.ZodObject<{
|
|
3669
3685
|
id: z.ZodString;
|
|
3670
3686
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3981,6 +3997,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3981
3997
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
3982
3998
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3983
3999
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4000
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4001
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4002
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4003
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4004
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4005
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4006
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4007
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4008
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4009
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4010
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3984
4011
|
}, z.core.$strip>, z.ZodObject<{
|
|
3985
4012
|
title: z.ZodString;
|
|
3986
4013
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4005,6 +4032,10 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
4005
4032
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
4006
4033
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
4007
4034
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
4035
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4036
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4037
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4038
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
4008
4039
|
}, z.core.$strip>, z.ZodObject<{
|
|
4009
4040
|
title: z.ZodString;
|
|
4010
4041
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -74,6 +74,17 @@ export declare const videoAudioQuestionTranslationSchema: z.ZodObject<{
|
|
|
74
74
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
75
75
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
76
76
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
77
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
78
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
79
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
80
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
81
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
82
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
83
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
84
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
85
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
86
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
87
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
77
88
|
}, z.core.$strip>;
|
|
78
89
|
export declare const dateQuestionTranslationSchema: z.ZodObject<{
|
|
79
90
|
title: z.ZodString;
|
|
@@ -100,6 +111,10 @@ export declare const signatureQuestionTranslationSchema: z.ZodObject<{
|
|
|
100
111
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
101
112
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
102
113
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
114
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
115
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
116
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
117
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
103
118
|
}, z.core.$strip>;
|
|
104
119
|
export declare const schedulerQuestionTranslationSchema: z.ZodObject<{
|
|
105
120
|
title: z.ZodString;
|
|
@@ -278,6 +293,17 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
278
293
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
279
294
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
280
295
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
296
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
297
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
298
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
299
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
300
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
301
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
302
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
303
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
304
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
305
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
306
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
281
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
282
308
|
title: z.ZodString;
|
|
283
309
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -302,6 +328,10 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
302
328
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
303
329
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
304
330
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
331
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
332
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
333
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
334
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
305
335
|
}, z.core.$strip>, z.ZodObject<{
|
|
306
336
|
title: z.ZodString;
|
|
307
337
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -478,6 +508,17 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
|
|
|
478
508
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
479
509
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
480
510
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
511
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
512
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
513
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
514
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
515
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
516
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
517
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
518
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
519
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
520
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
521
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
481
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
482
523
|
title: z.ZodString;
|
|
483
524
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -502,6 +543,10 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
|
|
|
502
543
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
503
544
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
504
545
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
546
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
547
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
548
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
549
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
505
550
|
}, z.core.$strip>, z.ZodObject<{
|
|
506
551
|
title: z.ZodString;
|
|
507
552
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -667,6 +712,17 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
|
|
|
667
712
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
668
713
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
669
714
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
715
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
716
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
717
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
718
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
719
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
720
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
721
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
722
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
723
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
724
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
725
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
670
726
|
}, z.core.$strip>, z.ZodObject<{
|
|
671
727
|
title: z.ZodString;
|
|
672
728
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -691,6 +747,10 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
|
|
|
691
747
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
692
748
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
693
749
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
750
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
751
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
752
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
753
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
694
754
|
}, z.core.$strip>, z.ZodObject<{
|
|
695
755
|
title: z.ZodString;
|
|
696
756
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -856,6 +916,17 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
|
|
|
856
916
|
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
857
917
|
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
858
918
|
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
919
|
+
capturePhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
920
|
+
cancelButtonLabel: z.ZodOptional<z.ZodString>;
|
|
921
|
+
uploadPhotoButtonLabel: z.ZodOptional<z.ZodString>;
|
|
922
|
+
replaceButtonLabel: z.ZodOptional<z.ZodString>;
|
|
923
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
924
|
+
stopRecordingButtonLabel: z.ZodOptional<z.ZodString>;
|
|
925
|
+
playButtonLabel: z.ZodOptional<z.ZodString>;
|
|
926
|
+
pauseButtonLabel: z.ZodOptional<z.ZodString>;
|
|
927
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
928
|
+
rerecordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
929
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
859
930
|
}, z.core.$strip>, z.ZodObject<{
|
|
860
931
|
title: z.ZodString;
|
|
861
932
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -880,6 +951,10 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
|
|
|
880
951
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
881
952
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
882
953
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
954
|
+
uploadSignatureButtonLabel: z.ZodOptional<z.ZodString>;
|
|
955
|
+
uploadButtonLabel: z.ZodOptional<z.ZodString>;
|
|
956
|
+
removeButtonLabel: z.ZodOptional<z.ZodString>;
|
|
957
|
+
dismissErrorButtonLabel: z.ZodOptional<z.ZodString>;
|
|
883
958
|
}, z.core.$strip>, z.ZodObject<{
|
|
884
959
|
title: z.ZodString;
|
|
885
960
|
description: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Translations } from './translations-schema';
|
|
2
|
-
import { Languages, LanguageField } from './other-screen-schema';
|
|
3
|
-
export declare const exampleTranslations: Translations;
|
|
4
|
-
export declare const availableLanguages: Languages;
|
|
5
|
-
export declare const translationProvider: import("./translations-schema").TranslationProvider;
|
|
6
|
-
export declare function getLanguageDisplayName(languageCode: string): string;
|
|
7
|
-
export declare function getSupportedLanguages(): LanguageField[];
|
|
8
|
-
export declare function demonstrateUsage(): void;
|
|
9
|
-
export type { Translations } from './translations-schema';
|
|
10
|
-
export type { Languages, LanguageField } from './other-screen-schema';
|