@encatch/schema 1.2.0-beta.9 → 1.3.0-beta.0
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 +674 -172
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +242 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +66 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +34 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +176 -0
- package/dist/types/schemas/fields/field-schema.d.ts +223 -5
- package/dist/types/schemas/fields/form-properties-schema.d.ts +226 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +156 -0
- package/package.json +8 -18
- package/dist/types/schemas/fields/translations-example.d.ts +0 -10
|
@@ -85,6 +85,56 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
|
|
|
85
85
|
}>>;
|
|
86
86
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
88
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
href: z.ZodObject<{
|
|
90
|
+
light: z.ZodString;
|
|
91
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
94
|
+
"top-left": "top-left";
|
|
95
|
+
"top-center": "top-center";
|
|
96
|
+
"top-right": "top-right";
|
|
97
|
+
}>>;
|
|
98
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
99
|
+
small: "small";
|
|
100
|
+
medium: "medium";
|
|
101
|
+
large: "large";
|
|
102
|
+
}>>;
|
|
103
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
104
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
105
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
109
|
+
small: "small";
|
|
110
|
+
medium: "medium";
|
|
111
|
+
large: "large";
|
|
112
|
+
}>>;
|
|
113
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
"top-left": "top-left";
|
|
115
|
+
"top-center": "top-center";
|
|
116
|
+
"top-right": "top-right";
|
|
117
|
+
}>>;
|
|
118
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
small: "small";
|
|
124
|
+
medium: "medium";
|
|
125
|
+
large: "large";
|
|
126
|
+
}>>;
|
|
127
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
128
|
+
"top-left": "top-left";
|
|
129
|
+
"top-center": "top-center";
|
|
130
|
+
"top-right": "top-right";
|
|
131
|
+
}>>;
|
|
132
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
88
138
|
}, z.core.$strip>;
|
|
89
139
|
selectedPosition: z.ZodEnum<{
|
|
90
140
|
"top-left": "top-left";
|
|
@@ -3561,6 +3611,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3561
3611
|
autofillNameFieldId: z.ZodOptional<z.ZodString>;
|
|
3562
3612
|
autofillEmailFieldId: z.ZodOptional<z.ZodString>;
|
|
3563
3613
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
3564
3615
|
}, z.core.$strip>, z.ZodObject<{
|
|
3565
3616
|
id: z.ZodString;
|
|
3566
3617
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3628,6 +3679,101 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3628
3679
|
maxQaPairs: z.ZodOptional<z.ZodNumber>;
|
|
3629
3680
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
3630
3681
|
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3682
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
3683
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
3684
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
3685
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3686
|
+
id: z.ZodString;
|
|
3687
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
3688
|
+
title: z.ZodString;
|
|
3689
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3690
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3691
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
3692
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
3693
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3694
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3695
|
+
type: z.ZodEnum<{
|
|
3696
|
+
custom: "custom";
|
|
3697
|
+
pattern: "pattern";
|
|
3698
|
+
email: "email";
|
|
3699
|
+
required: "required";
|
|
3700
|
+
min: "min";
|
|
3701
|
+
max: "max";
|
|
3702
|
+
minLength: "minLength";
|
|
3703
|
+
maxLength: "maxLength";
|
|
3704
|
+
url: "url";
|
|
3705
|
+
}>;
|
|
3706
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3707
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3708
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3709
|
+
}, z.core.$strip>>>>;
|
|
3710
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3711
|
+
field: z.ZodString;
|
|
3712
|
+
operator: z.ZodEnum<{
|
|
3713
|
+
equals: "equals";
|
|
3714
|
+
not_equals: "not_equals";
|
|
3715
|
+
contains: "contains";
|
|
3716
|
+
not_contains: "not_contains";
|
|
3717
|
+
greater_than: "greater_than";
|
|
3718
|
+
less_than: "less_than";
|
|
3719
|
+
is_empty: "is_empty";
|
|
3720
|
+
is_not_empty: "is_not_empty";
|
|
3721
|
+
}>;
|
|
3722
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3723
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3724
|
+
}, z.core.$strip>>>>;
|
|
3725
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
3726
|
+
status: z.ZodEnum<{
|
|
3727
|
+
D: "D";
|
|
3728
|
+
P: "P";
|
|
3729
|
+
A: "A";
|
|
3730
|
+
S: "S";
|
|
3731
|
+
}>;
|
|
3732
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3733
|
+
left: "left";
|
|
3734
|
+
center: "center";
|
|
3735
|
+
justify: "justify";
|
|
3736
|
+
}>>>;
|
|
3737
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
3738
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
3739
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
3740
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
3741
|
+
image: "image";
|
|
3742
|
+
video: "video";
|
|
3743
|
+
youtube: "youtube";
|
|
3744
|
+
vimeo: "vimeo";
|
|
3745
|
+
}>>;
|
|
3746
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
3747
|
+
payeeVpa: z.ZodString;
|
|
3748
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
3749
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3750
|
+
mode: z.ZodLiteral<"fixed">;
|
|
3751
|
+
amount: z.ZodNumber;
|
|
3752
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3753
|
+
mode: z.ZodLiteral<"range">;
|
|
3754
|
+
minAmount: z.ZodNumber;
|
|
3755
|
+
maxAmount: z.ZodNumber;
|
|
3756
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
3757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3758
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
3759
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
3760
|
+
sourceQuestionId: z.ZodString;
|
|
3761
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
3762
|
+
answerValue: z.ZodString;
|
|
3763
|
+
amount: z.ZodNumber;
|
|
3764
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3765
|
+
}, z.core.$strip>>;
|
|
3766
|
+
}, z.core.$strip>>;
|
|
3767
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
3768
|
+
}, z.core.$strip>], "mode">;
|
|
3769
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
3770
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3771
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3772
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3773
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3774
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3775
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3776
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3631
3777
|
}, z.core.$strip>], "type">>;
|
|
3632
3778
|
sections: z.ZodArray<z.ZodObject<{
|
|
3633
3779
|
id: z.ZodString;
|
|
@@ -3734,6 +3880,36 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3734
3880
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
3735
3881
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
3736
3882
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
3883
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3884
|
+
title: z.ZodString;
|
|
3885
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3886
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3887
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3888
|
+
type: z.ZodLiteral<"scheduler">;
|
|
3889
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3890
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
3891
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3892
|
+
title: z.ZodString;
|
|
3893
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3894
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3895
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3896
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
3897
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3898
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3899
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
3900
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
3901
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
3902
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3903
|
+
title: z.ZodString;
|
|
3904
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3905
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3906
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3907
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
3908
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3909
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3910
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3911
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3737
3913
|
}, z.core.$strip>, z.ZodObject<{
|
|
3738
3914
|
title: z.ZodString;
|
|
3739
3915
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3959,6 +4135,56 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3959
4135
|
}>>;
|
|
3960
4136
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
3961
4137
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
4139
|
+
href: z.ZodObject<{
|
|
4140
|
+
light: z.ZodString;
|
|
4141
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
4142
|
+
}, z.core.$strip>;
|
|
4143
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
4144
|
+
"top-left": "top-left";
|
|
4145
|
+
"top-center": "top-center";
|
|
4146
|
+
"top-right": "top-right";
|
|
4147
|
+
}>>;
|
|
4148
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
4149
|
+
small: "small";
|
|
4150
|
+
medium: "medium";
|
|
4151
|
+
large: "large";
|
|
4152
|
+
}>>;
|
|
4153
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
4154
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
4156
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
4157
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
4158
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
4159
|
+
small: "small";
|
|
4160
|
+
medium: "medium";
|
|
4161
|
+
large: "large";
|
|
4162
|
+
}>>;
|
|
4163
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
4164
|
+
"top-left": "top-left";
|
|
4165
|
+
"top-center": "top-center";
|
|
4166
|
+
"top-right": "top-right";
|
|
4167
|
+
}>>;
|
|
4168
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
4169
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
4170
|
+
}, z.core.$strip>>;
|
|
4171
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
4172
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
4173
|
+
small: "small";
|
|
4174
|
+
medium: "medium";
|
|
4175
|
+
large: "large";
|
|
4176
|
+
}>>;
|
|
4177
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
4178
|
+
"top-left": "top-left";
|
|
4179
|
+
"top-center": "top-center";
|
|
4180
|
+
"top-right": "top-right";
|
|
4181
|
+
}>>;
|
|
4182
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
4183
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
4184
|
+
}, z.core.$strip>>;
|
|
4185
|
+
}, z.core.$strip>>;
|
|
4186
|
+
}, z.core.$strip>>;
|
|
4187
|
+
}, z.core.$strip>>;
|
|
3962
4188
|
}, z.core.$strip>;
|
|
3963
4189
|
selectedPosition: z.ZodEnum<{
|
|
3964
4190
|
"top-left": "top-left";
|
|
@@ -49,6 +49,90 @@ export declare const PreviousButtonModes: {
|
|
|
49
49
|
readonly ALWAYS: "always";
|
|
50
50
|
readonly AUTO: "auto";
|
|
51
51
|
};
|
|
52
|
+
export declare const logoPlacementSchema: z.ZodEnum<{
|
|
53
|
+
"top-left": "top-left";
|
|
54
|
+
"top-center": "top-center";
|
|
55
|
+
"top-right": "top-right";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const LogoPlacements: {
|
|
58
|
+
readonly TOP_LEFT: "top-left";
|
|
59
|
+
readonly TOP_CENTER: "top-center";
|
|
60
|
+
readonly TOP_RIGHT: "top-right";
|
|
61
|
+
};
|
|
62
|
+
export declare const logoSizeSchema: z.ZodEnum<{
|
|
63
|
+
small: "small";
|
|
64
|
+
medium: "medium";
|
|
65
|
+
large: "large";
|
|
66
|
+
}>;
|
|
67
|
+
export declare const LogoSizes: {
|
|
68
|
+
readonly SMALL: "small";
|
|
69
|
+
readonly MEDIUM: "medium";
|
|
70
|
+
readonly LARGE: "large";
|
|
71
|
+
};
|
|
72
|
+
export declare const logoSurfaceOverrideSchema: z.ZodObject<{
|
|
73
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
small: "small";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
large: "large";
|
|
77
|
+
}>>;
|
|
78
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
"top-left": "top-left";
|
|
80
|
+
"top-center": "top-center";
|
|
81
|
+
"top-right": "top-right";
|
|
82
|
+
}>>;
|
|
83
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export declare const logoSchema: z.ZodObject<{
|
|
87
|
+
href: z.ZodObject<{
|
|
88
|
+
light: z.ZodString;
|
|
89
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
92
|
+
"top-left": "top-left";
|
|
93
|
+
"top-center": "top-center";
|
|
94
|
+
"top-right": "top-right";
|
|
95
|
+
}>>;
|
|
96
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
small: "small";
|
|
98
|
+
medium: "medium";
|
|
99
|
+
large: "large";
|
|
100
|
+
}>>;
|
|
101
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
102
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
103
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
small: "small";
|
|
108
|
+
medium: "medium";
|
|
109
|
+
large: "large";
|
|
110
|
+
}>>;
|
|
111
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
"top-left": "top-left";
|
|
113
|
+
"top-center": "top-center";
|
|
114
|
+
"top-right": "top-right";
|
|
115
|
+
}>>;
|
|
116
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
small: "small";
|
|
122
|
+
medium: "medium";
|
|
123
|
+
large: "large";
|
|
124
|
+
}>>;
|
|
125
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
"top-left": "top-left";
|
|
127
|
+
"top-center": "top-center";
|
|
128
|
+
"top-right": "top-right";
|
|
129
|
+
}>>;
|
|
130
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
52
136
|
export declare const featureSettingsSchema: z.ZodObject<{
|
|
53
137
|
darkOverlay: z.ZodDefault<z.ZodBoolean>;
|
|
54
138
|
closeButton: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -71,6 +155,56 @@ export declare const featureSettingsSchema: z.ZodObject<{
|
|
|
71
155
|
}>>;
|
|
72
156
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
73
157
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
158
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
href: z.ZodObject<{
|
|
160
|
+
light: z.ZodString;
|
|
161
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
164
|
+
"top-left": "top-left";
|
|
165
|
+
"top-center": "top-center";
|
|
166
|
+
"top-right": "top-right";
|
|
167
|
+
}>>;
|
|
168
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
small: "small";
|
|
170
|
+
medium: "medium";
|
|
171
|
+
large: "large";
|
|
172
|
+
}>>;
|
|
173
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
174
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
175
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
small: "small";
|
|
180
|
+
medium: "medium";
|
|
181
|
+
large: "large";
|
|
182
|
+
}>>;
|
|
183
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
"top-left": "top-left";
|
|
185
|
+
"top-center": "top-center";
|
|
186
|
+
"top-right": "top-right";
|
|
187
|
+
}>>;
|
|
188
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
small: "small";
|
|
194
|
+
medium: "medium";
|
|
195
|
+
large: "large";
|
|
196
|
+
}>>;
|
|
197
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
"top-left": "top-left";
|
|
199
|
+
"top-center": "top-center";
|
|
200
|
+
"top-right": "top-right";
|
|
201
|
+
}>>;
|
|
202
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
74
208
|
}, z.core.$strip>;
|
|
75
209
|
export declare const themeColorsSchema: z.ZodObject<{
|
|
76
210
|
theme: z.ZodOptional<z.ZodString>;
|
|
@@ -114,6 +248,56 @@ export declare const themeConfigurationSchema: z.ZodObject<{
|
|
|
114
248
|
}>>;
|
|
115
249
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
116
250
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
251
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
href: z.ZodObject<{
|
|
253
|
+
light: z.ZodString;
|
|
254
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
257
|
+
"top-left": "top-left";
|
|
258
|
+
"top-center": "top-center";
|
|
259
|
+
"top-right": "top-right";
|
|
260
|
+
}>>;
|
|
261
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
262
|
+
small: "small";
|
|
263
|
+
medium: "medium";
|
|
264
|
+
large: "large";
|
|
265
|
+
}>>;
|
|
266
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
267
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
268
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
small: "small";
|
|
273
|
+
medium: "medium";
|
|
274
|
+
large: "large";
|
|
275
|
+
}>>;
|
|
276
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
"top-left": "top-left";
|
|
278
|
+
"top-center": "top-center";
|
|
279
|
+
"top-right": "top-right";
|
|
280
|
+
}>>;
|
|
281
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
small: "small";
|
|
287
|
+
medium: "medium";
|
|
288
|
+
large: "large";
|
|
289
|
+
}>>;
|
|
290
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
"top-left": "top-left";
|
|
292
|
+
"top-center": "top-center";
|
|
293
|
+
"top-right": "top-right";
|
|
294
|
+
}>>;
|
|
295
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
117
301
|
}, z.core.$strip>;
|
|
118
302
|
selectedPosition: z.ZodEnum<{
|
|
119
303
|
"top-left": "top-left";
|
|
@@ -142,6 +326,10 @@ export type Position = z.infer<typeof positionSchema>;
|
|
|
142
326
|
export type ThemeMode = z.infer<typeof themeModeSchema>;
|
|
143
327
|
export type ShareableMode = z.infer<typeof shareableModeSchema>;
|
|
144
328
|
export type PreviousButtonMode = z.infer<typeof previousButtonModeSchema>;
|
|
329
|
+
export type LogoPlacement = z.infer<typeof logoPlacementSchema>;
|
|
330
|
+
export type LogoSize = z.infer<typeof logoSizeSchema>;
|
|
331
|
+
export type LogoSurfaceOverride = z.infer<typeof logoSurfaceOverrideSchema>;
|
|
332
|
+
export type Logo = z.infer<typeof logoSchema>;
|
|
145
333
|
export type FeatureSettings = z.infer<typeof featureSettingsSchema>;
|
|
146
334
|
export type ThemeColors = z.infer<typeof themeColorsSchema>;
|
|
147
335
|
export type Themes = z.infer<typeof themesSchema>;
|
|
@@ -101,6 +101,39 @@ export declare const signatureQuestionTranslationSchema: z.ZodObject<{
|
|
|
101
101
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
102
102
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
103
103
|
}, z.core.$strip>;
|
|
104
|
+
export declare const schedulerQuestionTranslationSchema: z.ZodObject<{
|
|
105
|
+
title: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
108
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
109
|
+
type: z.ZodLiteral<"scheduler">;
|
|
110
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
111
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export declare const qnaWithAiQuestionTranslationSchema: z.ZodObject<{
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodOptional<z.ZodString>;
|
|
116
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
117
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
118
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
119
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
120
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
121
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
122
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
123
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const paymentsUpiQuestionTranslationSchema: z.ZodObject<{
|
|
126
|
+
title: z.ZodString;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
129
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
130
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
131
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
132
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
133
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
134
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
135
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
104
137
|
export declare const nestedSelectionQuestionTranslationSchema: z.ZodObject<{
|
|
105
138
|
title: z.ZodString;
|
|
106
139
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -263,6 +296,36 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
263
296
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
264
297
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
265
298
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
title: z.ZodString;
|
|
301
|
+
description: z.ZodOptional<z.ZodString>;
|
|
302
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
303
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
304
|
+
type: z.ZodLiteral<"scheduler">;
|
|
305
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
306
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
308
|
+
title: z.ZodString;
|
|
309
|
+
description: z.ZodOptional<z.ZodString>;
|
|
310
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
311
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
312
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
313
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
314
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
315
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
316
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
317
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
title: z.ZodString;
|
|
320
|
+
description: z.ZodOptional<z.ZodString>;
|
|
321
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
322
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
323
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
324
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
325
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
326
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
327
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
328
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
266
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
330
|
title: z.ZodString;
|
|
268
331
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -427,6 +490,36 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
|
|
|
427
490
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
428
491
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
429
492
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
494
|
+
title: z.ZodString;
|
|
495
|
+
description: z.ZodOptional<z.ZodString>;
|
|
496
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
497
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
498
|
+
type: z.ZodLiteral<"scheduler">;
|
|
499
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
500
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
|
+
title: z.ZodString;
|
|
503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
504
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
505
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
506
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
507
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
508
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
509
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
510
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
511
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
513
|
+
title: z.ZodString;
|
|
514
|
+
description: z.ZodOptional<z.ZodString>;
|
|
515
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
516
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
517
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
518
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
519
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
520
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
521
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
522
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
430
523
|
}, z.core.$strip>, z.ZodObject<{
|
|
431
524
|
title: z.ZodString;
|
|
432
525
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -580,6 +673,36 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
|
|
|
580
673
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
581
674
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
582
675
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
+
title: z.ZodString;
|
|
678
|
+
description: z.ZodOptional<z.ZodString>;
|
|
679
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
680
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
681
|
+
type: z.ZodLiteral<"scheduler">;
|
|
682
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
683
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
title: z.ZodString;
|
|
686
|
+
description: z.ZodOptional<z.ZodString>;
|
|
687
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
688
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
689
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
690
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
691
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
692
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
693
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
694
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
title: z.ZodString;
|
|
697
|
+
description: z.ZodOptional<z.ZodString>;
|
|
698
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
699
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
700
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
701
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
702
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
703
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
704
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
705
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
583
706
|
}, z.core.$strip>, z.ZodObject<{
|
|
584
707
|
title: z.ZodString;
|
|
585
708
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -733,6 +856,36 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
|
|
|
733
856
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
734
857
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
735
858
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
860
|
+
title: z.ZodString;
|
|
861
|
+
description: z.ZodOptional<z.ZodString>;
|
|
862
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
863
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
864
|
+
type: z.ZodLiteral<"scheduler">;
|
|
865
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
866
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
867
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
+
title: z.ZodString;
|
|
869
|
+
description: z.ZodOptional<z.ZodString>;
|
|
870
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
871
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
872
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
873
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
874
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
875
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
876
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
877
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
879
|
+
title: z.ZodString;
|
|
880
|
+
description: z.ZodOptional<z.ZodString>;
|
|
881
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
882
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
883
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
884
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
885
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
886
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
887
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
888
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
736
889
|
}, z.core.$strip>, z.ZodObject<{
|
|
737
890
|
title: z.ZodString;
|
|
738
891
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -811,6 +964,9 @@ export type LongAnswerQuestionTranslation = z.infer<typeof longAnswerQuestionTra
|
|
|
811
964
|
export type VideoAudioQuestionTranslation = z.infer<typeof videoAudioQuestionTranslationSchema>;
|
|
812
965
|
export type DateQuestionTranslation = z.infer<typeof dateQuestionTranslationSchema>;
|
|
813
966
|
export type SignatureQuestionTranslation = z.infer<typeof signatureQuestionTranslationSchema>;
|
|
967
|
+
export type SchedulerQuestionTranslation = z.infer<typeof schedulerQuestionTranslationSchema>;
|
|
968
|
+
export type QnaWithAiQuestionTranslation = z.infer<typeof qnaWithAiQuestionTranslationSchema>;
|
|
969
|
+
export type PaymentsUpiQuestionTranslation = z.infer<typeof paymentsUpiQuestionTranslationSchema>;
|
|
814
970
|
export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
|
|
815
971
|
export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
|
|
816
972
|
export type WelcomeQuestionTranslation = z.infer<typeof welcomeQuestionTranslationSchema>;
|