@encatch/schema 1.2.0-beta.8 → 1.2.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 +711 -163
- 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 +274 -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 +222 -0
- package/dist/types/schemas/fields/field-schema.d.ts +257 -7
- package/dist/types/schemas/fields/form-properties-schema.d.ts +272 -0
- package/dist/types/schemas/fields/theme-schema.d.ts +188 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +310 -0
- package/package.json +8 -18
|
@@ -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";
|
|
@@ -2584,6 +2634,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
2584
2634
|
minDate: z.ZodOptional<z.ZodString>;
|
|
2585
2635
|
maxDate: z.ZodOptional<z.ZodString>;
|
|
2586
2636
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
2638
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
2639
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
2587
2640
|
prepopulatedValue: z.ZodOptional<z.ZodString>;
|
|
2588
2641
|
}, z.core.$strip>, z.ZodObject<{
|
|
2589
2642
|
id: z.ZodString;
|
|
@@ -2963,6 +3016,13 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
2963
3016
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
2964
3017
|
canvasHeight: z.ZodOptional<z.ZodNumber>;
|
|
2965
3018
|
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3019
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
3021
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
3024
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
3025
|
+
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
2966
3026
|
}, z.core.$strip>, z.ZodObject<{
|
|
2967
3027
|
id: z.ZodString;
|
|
2968
3028
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3474,6 +3534,12 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3474
3534
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
3475
3535
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
3476
3536
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
3537
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3538
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3539
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
3540
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
3541
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3542
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3477
3543
|
}, z.core.$strip>, z.ZodObject<{
|
|
3478
3544
|
id: z.ZodString;
|
|
3479
3545
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3545,6 +3611,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3545
3611
|
autofillNameFieldId: z.ZodOptional<z.ZodString>;
|
|
3546
3612
|
autofillEmailFieldId: z.ZodOptional<z.ZodString>;
|
|
3547
3613
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
3548
3615
|
}, z.core.$strip>, z.ZodObject<{
|
|
3549
3616
|
id: z.ZodString;
|
|
3550
3617
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -3612,6 +3679,101 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3612
3679
|
maxQaPairs: z.ZodOptional<z.ZodNumber>;
|
|
3613
3680
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
3614
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>;
|
|
3615
3777
|
}, z.core.$strip>], "type">>;
|
|
3616
3778
|
sections: z.ZodArray<z.ZodObject<{
|
|
3617
3779
|
id: z.ZodString;
|
|
@@ -3688,6 +3850,66 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3688
3850
|
modeTabLabelAudio: z.ZodOptional<z.ZodString>;
|
|
3689
3851
|
modeTabLabelPhoto: z.ZodOptional<z.ZodString>;
|
|
3690
3852
|
modeTabLabelText: z.ZodOptional<z.ZodString>;
|
|
3853
|
+
recordButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3854
|
+
uploadMediaButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3855
|
+
videoIdleHint: z.ZodOptional<z.ZodString>;
|
|
3856
|
+
photoEmptyHint: z.ZodOptional<z.ZodString>;
|
|
3857
|
+
photoUseCameraButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3858
|
+
photoUploadImageButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3860
|
+
title: z.ZodString;
|
|
3861
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3862
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3863
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3864
|
+
type: z.ZodLiteral<"date">;
|
|
3865
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3866
|
+
segmentLabelDD: z.ZodOptional<z.ZodString>;
|
|
3867
|
+
segmentLabelMM: z.ZodOptional<z.ZodString>;
|
|
3868
|
+
segmentLabelYYYY: z.ZodOptional<z.ZodString>;
|
|
3869
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3870
|
+
title: z.ZodString;
|
|
3871
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3872
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3873
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3874
|
+
type: z.ZodLiteral<"signature">;
|
|
3875
|
+
clearButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3876
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3877
|
+
modeTabLabelType: z.ZodOptional<z.ZodString>;
|
|
3878
|
+
modeTabLabelDraw: z.ZodOptional<z.ZodString>;
|
|
3879
|
+
modeTabLabelUpload: z.ZodOptional<z.ZodString>;
|
|
3880
|
+
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
3881
|
+
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
3691
3913
|
}, z.core.$strip>, z.ZodObject<{
|
|
3692
3914
|
title: z.ZodString;
|
|
3693
3915
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3913,6 +4135,56 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3913
4135
|
}>>;
|
|
3914
4136
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
3915
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>>;
|
|
3916
4188
|
}, z.core.$strip>;
|
|
3917
4189
|
selectedPosition: z.ZodEnum<{
|
|
3918
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>;
|