@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
|
@@ -2320,6 +2320,7 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2320
2320
|
autofillNameFieldId: z.ZodOptional<z.ZodString>;
|
|
2321
2321
|
autofillEmailFieldId: z.ZodOptional<z.ZodString>;
|
|
2322
2322
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2323
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
2323
2324
|
}, z.core.$strip>, z.ZodObject<{
|
|
2324
2325
|
id: z.ZodString;
|
|
2325
2326
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -2387,6 +2388,101 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2387
2388
|
maxQaPairs: z.ZodOptional<z.ZodNumber>;
|
|
2388
2389
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2389
2390
|
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2391
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
2392
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
2393
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
2394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2395
|
+
id: z.ZodString;
|
|
2396
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2397
|
+
title: z.ZodString;
|
|
2398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2399
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2400
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2401
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
2402
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2403
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2404
|
+
type: z.ZodEnum<{
|
|
2405
|
+
custom: "custom";
|
|
2406
|
+
pattern: "pattern";
|
|
2407
|
+
email: "email";
|
|
2408
|
+
required: "required";
|
|
2409
|
+
min: "min";
|
|
2410
|
+
max: "max";
|
|
2411
|
+
minLength: "minLength";
|
|
2412
|
+
maxLength: "maxLength";
|
|
2413
|
+
url: "url";
|
|
2414
|
+
}>;
|
|
2415
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2416
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2417
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2418
|
+
}, z.core.$strip>>>>;
|
|
2419
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2420
|
+
field: z.ZodString;
|
|
2421
|
+
operator: z.ZodEnum<{
|
|
2422
|
+
equals: "equals";
|
|
2423
|
+
not_equals: "not_equals";
|
|
2424
|
+
contains: "contains";
|
|
2425
|
+
not_contains: "not_contains";
|
|
2426
|
+
greater_than: "greater_than";
|
|
2427
|
+
less_than: "less_than";
|
|
2428
|
+
is_empty: "is_empty";
|
|
2429
|
+
is_not_empty: "is_not_empty";
|
|
2430
|
+
}>;
|
|
2431
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2432
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2433
|
+
}, z.core.$strip>>>>;
|
|
2434
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
2435
|
+
status: z.ZodEnum<{
|
|
2436
|
+
D: "D";
|
|
2437
|
+
P: "P";
|
|
2438
|
+
A: "A";
|
|
2439
|
+
S: "S";
|
|
2440
|
+
}>;
|
|
2441
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2442
|
+
left: "left";
|
|
2443
|
+
center: "center";
|
|
2444
|
+
justify: "justify";
|
|
2445
|
+
}>>>;
|
|
2446
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
2447
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
2448
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
2449
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
2450
|
+
image: "image";
|
|
2451
|
+
video: "video";
|
|
2452
|
+
youtube: "youtube";
|
|
2453
|
+
vimeo: "vimeo";
|
|
2454
|
+
}>>;
|
|
2455
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
2456
|
+
payeeVpa: z.ZodString;
|
|
2457
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2459
|
+
mode: z.ZodLiteral<"fixed">;
|
|
2460
|
+
amount: z.ZodNumber;
|
|
2461
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2462
|
+
mode: z.ZodLiteral<"range">;
|
|
2463
|
+
minAmount: z.ZodNumber;
|
|
2464
|
+
maxAmount: z.ZodNumber;
|
|
2465
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
2466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2467
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
2468
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
2469
|
+
sourceQuestionId: z.ZodString;
|
|
2470
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
2471
|
+
answerValue: z.ZodString;
|
|
2472
|
+
amount: z.ZodNumber;
|
|
2473
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
}, z.core.$strip>>;
|
|
2475
|
+
}, z.core.$strip>>;
|
|
2476
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
2477
|
+
}, z.core.$strip>], "mode">;
|
|
2478
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
2479
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
2481
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
2482
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
2483
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
2484
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
2485
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
2390
2486
|
}, z.core.$strip>], "type">>;
|
|
2391
2487
|
questionLanguages: z.ZodArray<z.ZodObject<{
|
|
2392
2488
|
value: z.ZodString;
|
|
@@ -2530,6 +2626,36 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2530
2626
|
drawCanvasHint: z.ZodOptional<z.ZodString>;
|
|
2531
2627
|
uploadZonePrimary: z.ZodOptional<z.ZodString>;
|
|
2532
2628
|
uploadZoneDrag: z.ZodOptional<z.ZodString>;
|
|
2629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2630
|
+
title: z.ZodString;
|
|
2631
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2632
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2633
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2634
|
+
type: z.ZodLiteral<"scheduler">;
|
|
2635
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2636
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
2637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2638
|
+
title: z.ZodString;
|
|
2639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2641
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2642
|
+
type: z.ZodLiteral<"qna_with_ai">;
|
|
2643
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2644
|
+
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
2646
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
2648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2649
|
+
title: z.ZodString;
|
|
2650
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2651
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2652
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2653
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
2654
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
2655
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
2656
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
2657
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
2658
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
2533
2659
|
}, z.core.$strip>, z.ZodObject<{
|
|
2534
2660
|
title: z.ZodString;
|
|
2535
2661
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2647,6 +2773,56 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2647
2773
|
}>>;
|
|
2648
2774
|
maxDialogHeightPercentInApp: z.ZodOptional<z.ZodNumber>;
|
|
2649
2775
|
faviconUrl: z.ZodOptional<z.ZodString>;
|
|
2776
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
2777
|
+
href: z.ZodObject<{
|
|
2778
|
+
light: z.ZodString;
|
|
2779
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
2780
|
+
}, z.core.$strip>;
|
|
2781
|
+
placement: z.ZodDefault<z.ZodEnum<{
|
|
2782
|
+
"top-left": "top-left";
|
|
2783
|
+
"top-center": "top-center";
|
|
2784
|
+
"top-right": "top-right";
|
|
2785
|
+
}>>;
|
|
2786
|
+
size: z.ZodDefault<z.ZodEnum<{
|
|
2787
|
+
small: "small";
|
|
2788
|
+
medium: "medium";
|
|
2789
|
+
large: "large";
|
|
2790
|
+
}>>;
|
|
2791
|
+
linkUrl: z.ZodOptional<z.ZodString>;
|
|
2792
|
+
altText: z.ZodOptional<z.ZodString>;
|
|
2793
|
+
surfaces: z.ZodOptional<z.ZodObject<{
|
|
2794
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
2795
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
2796
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2797
|
+
small: "small";
|
|
2798
|
+
medium: "medium";
|
|
2799
|
+
large: "large";
|
|
2800
|
+
}>>;
|
|
2801
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2802
|
+
"top-left": "top-left";
|
|
2803
|
+
"top-center": "top-center";
|
|
2804
|
+
"top-right": "top-right";
|
|
2805
|
+
}>>;
|
|
2806
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2807
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
2808
|
+
}, z.core.$strip>>;
|
|
2809
|
+
others: z.ZodOptional<z.ZodObject<{
|
|
2810
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
2811
|
+
small: "small";
|
|
2812
|
+
medium: "medium";
|
|
2813
|
+
large: "large";
|
|
2814
|
+
}>>;
|
|
2815
|
+
placement: z.ZodOptional<z.ZodEnum<{
|
|
2816
|
+
"top-left": "top-left";
|
|
2817
|
+
"top-center": "top-center";
|
|
2818
|
+
"top-right": "top-right";
|
|
2819
|
+
}>>;
|
|
2820
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2821
|
+
disableLink: z.ZodOptional<z.ZodBoolean>;
|
|
2822
|
+
}, z.core.$strip>>;
|
|
2823
|
+
}, z.core.$strip>>;
|
|
2824
|
+
}, z.core.$strip>>;
|
|
2825
|
+
}, z.core.$strip>>;
|
|
2650
2826
|
}, z.core.$strip>;
|
|
2651
2827
|
selectedPosition: z.ZodEnum<{
|
|
2652
2828
|
"top-left": "top-left";
|
|
@@ -10,6 +10,9 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
10
10
|
long_text: "long_text";
|
|
11
11
|
video_audio: "video_audio";
|
|
12
12
|
signature: "signature";
|
|
13
|
+
scheduler: "scheduler";
|
|
14
|
+
qna_with_ai: "qna_with_ai";
|
|
15
|
+
payments_upi: "payments_upi";
|
|
13
16
|
nested_selection: "nested_selection";
|
|
14
17
|
annotation: "annotation";
|
|
15
18
|
welcome: "welcome";
|
|
@@ -30,8 +33,6 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
30
33
|
website: "website";
|
|
31
34
|
phone_number: "phone_number";
|
|
32
35
|
address: "address";
|
|
33
|
-
scheduler: "scheduler";
|
|
34
|
-
qna_with_ai: "qna_with_ai";
|
|
35
36
|
}>;
|
|
36
37
|
export declare const QuestionTypes: {
|
|
37
38
|
readonly RATING: "rating";
|
|
@@ -66,6 +67,7 @@ export declare const QuestionTypes: {
|
|
|
66
67
|
readonly VIDEO_AUDIO: "video_audio";
|
|
67
68
|
readonly SCHEDULER: "scheduler";
|
|
68
69
|
readonly QNA_WITH_AI: "qna_with_ai";
|
|
70
|
+
readonly PAYMENTS_UPI: "payments_upi";
|
|
69
71
|
};
|
|
70
72
|
export declare const validationRuleTypeSchema: z.ZodEnum<{
|
|
71
73
|
custom: "custom";
|
|
@@ -256,6 +258,9 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
256
258
|
long_text: "long_text";
|
|
257
259
|
video_audio: "video_audio";
|
|
258
260
|
signature: "signature";
|
|
261
|
+
scheduler: "scheduler";
|
|
262
|
+
qna_with_ai: "qna_with_ai";
|
|
263
|
+
payments_upi: "payments_upi";
|
|
259
264
|
nested_selection: "nested_selection";
|
|
260
265
|
annotation: "annotation";
|
|
261
266
|
welcome: "welcome";
|
|
@@ -276,8 +281,6 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
276
281
|
website: "website";
|
|
277
282
|
phone_number: "phone_number";
|
|
278
283
|
address: "address";
|
|
279
|
-
scheduler: "scheduler";
|
|
280
|
-
qna_with_ai: "qna_with_ai";
|
|
281
284
|
}>;
|
|
282
285
|
title: z.ZodString;
|
|
283
286
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1730,6 +1733,8 @@ export type VideoAudioQuestion = z.infer<typeof videoAudioQuestionSchema>;
|
|
|
1730
1733
|
export type SchedulerProvider = z.infer<typeof schedulerProviderSchema>;
|
|
1731
1734
|
export type SchedulerQuestion = z.infer<typeof schedulerQuestionSchema>;
|
|
1732
1735
|
export type QnaWithAiQuestion = z.infer<typeof qnaWithAiQuestionSchema>;
|
|
1736
|
+
export type PaymentsUpiAmountConfig = z.infer<typeof paymentsUpiAmountConfigSchema>;
|
|
1737
|
+
export type PaymentsUpiQuestion = z.infer<typeof paymentsUpiQuestionSchema>;
|
|
1733
1738
|
export type Section = z.infer<typeof sectionSchema>;
|
|
1734
1739
|
export declare const dateFormatSchema: z.ZodEnum<{
|
|
1735
1740
|
"MM/DD/YYYY": "MM/DD/YYYY";
|
|
@@ -2878,6 +2883,7 @@ export declare const schedulerQuestionSchema: z.ZodObject<{
|
|
|
2878
2883
|
autofillNameFieldId: z.ZodOptional<z.ZodString>;
|
|
2879
2884
|
autofillEmailFieldId: z.ZodOptional<z.ZodString>;
|
|
2880
2885
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2886
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
2881
2887
|
}, z.core.$strip>;
|
|
2882
2888
|
export declare const qnaWithAiQuestionSchema: z.ZodObject<{
|
|
2883
2889
|
id: z.ZodString;
|
|
@@ -2946,6 +2952,122 @@ export declare const qnaWithAiQuestionSchema: z.ZodObject<{
|
|
|
2946
2952
|
maxQaPairs: z.ZodOptional<z.ZodNumber>;
|
|
2947
2953
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2948
2954
|
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
2955
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
2956
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
2957
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
2958
|
+
}, z.core.$strip>;
|
|
2959
|
+
export declare const paymentsUpiAmountConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2960
|
+
mode: z.ZodLiteral<"fixed">;
|
|
2961
|
+
amount: z.ZodNumber;
|
|
2962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2963
|
+
mode: z.ZodLiteral<"range">;
|
|
2964
|
+
minAmount: z.ZodNumber;
|
|
2965
|
+
maxAmount: z.ZodNumber;
|
|
2966
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
2967
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2968
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
2969
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
2970
|
+
sourceQuestionId: z.ZodString;
|
|
2971
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
2972
|
+
answerValue: z.ZodString;
|
|
2973
|
+
amount: z.ZodNumber;
|
|
2974
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2975
|
+
}, z.core.$strip>>;
|
|
2976
|
+
}, z.core.$strip>>;
|
|
2977
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
2978
|
+
}, z.core.$strip>], "mode">;
|
|
2979
|
+
export declare const paymentsUpiQuestionSchema: z.ZodObject<{
|
|
2980
|
+
id: z.ZodString;
|
|
2981
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
2982
|
+
title: z.ZodString;
|
|
2983
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2984
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
2985
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2986
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
2987
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2988
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2989
|
+
type: z.ZodEnum<{
|
|
2990
|
+
custom: "custom";
|
|
2991
|
+
pattern: "pattern";
|
|
2992
|
+
email: "email";
|
|
2993
|
+
required: "required";
|
|
2994
|
+
min: "min";
|
|
2995
|
+
max: "max";
|
|
2996
|
+
minLength: "minLength";
|
|
2997
|
+
maxLength: "maxLength";
|
|
2998
|
+
url: "url";
|
|
2999
|
+
}>;
|
|
3000
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3001
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3002
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3003
|
+
}, z.core.$strip>>>>;
|
|
3004
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3005
|
+
field: z.ZodString;
|
|
3006
|
+
operator: z.ZodEnum<{
|
|
3007
|
+
equals: "equals";
|
|
3008
|
+
not_equals: "not_equals";
|
|
3009
|
+
contains: "contains";
|
|
3010
|
+
not_contains: "not_contains";
|
|
3011
|
+
greater_than: "greater_than";
|
|
3012
|
+
less_than: "less_than";
|
|
3013
|
+
is_empty: "is_empty";
|
|
3014
|
+
is_not_empty: "is_not_empty";
|
|
3015
|
+
}>;
|
|
3016
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3017
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
}, z.core.$strip>>>>;
|
|
3019
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
3020
|
+
status: z.ZodEnum<{
|
|
3021
|
+
D: "D";
|
|
3022
|
+
P: "P";
|
|
3023
|
+
A: "A";
|
|
3024
|
+
S: "S";
|
|
3025
|
+
}>;
|
|
3026
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3027
|
+
left: "left";
|
|
3028
|
+
center: "center";
|
|
3029
|
+
justify: "justify";
|
|
3030
|
+
}>>>;
|
|
3031
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
3032
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
3033
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
3034
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
3035
|
+
image: "image";
|
|
3036
|
+
video: "video";
|
|
3037
|
+
youtube: "youtube";
|
|
3038
|
+
vimeo: "vimeo";
|
|
3039
|
+
}>>;
|
|
3040
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
3041
|
+
payeeVpa: z.ZodString;
|
|
3042
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
3043
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3044
|
+
mode: z.ZodLiteral<"fixed">;
|
|
3045
|
+
amount: z.ZodNumber;
|
|
3046
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3047
|
+
mode: z.ZodLiteral<"range">;
|
|
3048
|
+
minAmount: z.ZodNumber;
|
|
3049
|
+
maxAmount: z.ZodNumber;
|
|
3050
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
3051
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3052
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
3053
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
3054
|
+
sourceQuestionId: z.ZodString;
|
|
3055
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
3056
|
+
answerValue: z.ZodString;
|
|
3057
|
+
amount: z.ZodNumber;
|
|
3058
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3059
|
+
}, z.core.$strip>>;
|
|
3060
|
+
}, z.core.$strip>>;
|
|
3061
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
3062
|
+
}, z.core.$strip>], "mode">;
|
|
3063
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
3064
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3065
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3066
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3067
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3068
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3069
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3070
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
2949
3071
|
}, z.core.$strip>;
|
|
2950
3072
|
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2951
3073
|
id: z.ZodString;
|
|
@@ -5243,6 +5365,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5243
5365
|
autofillNameFieldId: z.ZodOptional<z.ZodString>;
|
|
5244
5366
|
autofillEmailFieldId: z.ZodOptional<z.ZodString>;
|
|
5245
5367
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
5368
|
+
scheduleMeetingLabel: z.ZodOptional<z.ZodString>;
|
|
5246
5369
|
}, z.core.$strip>, z.ZodObject<{
|
|
5247
5370
|
id: z.ZodString;
|
|
5248
5371
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -5310,5 +5433,100 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5310
5433
|
maxQaPairs: z.ZodOptional<z.ZodNumber>;
|
|
5311
5434
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
5312
5435
|
askButtonLabel: z.ZodOptional<z.ZodString>;
|
|
5436
|
+
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
5437
|
+
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
5438
|
+
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
5439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5440
|
+
id: z.ZodString;
|
|
5441
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
5442
|
+
title: z.ZodString;
|
|
5443
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5444
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5445
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5446
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
5447
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
5448
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5449
|
+
type: z.ZodEnum<{
|
|
5450
|
+
custom: "custom";
|
|
5451
|
+
pattern: "pattern";
|
|
5452
|
+
email: "email";
|
|
5453
|
+
required: "required";
|
|
5454
|
+
min: "min";
|
|
5455
|
+
max: "max";
|
|
5456
|
+
minLength: "minLength";
|
|
5457
|
+
maxLength: "maxLength";
|
|
5458
|
+
url: "url";
|
|
5459
|
+
}>;
|
|
5460
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
5461
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5462
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5463
|
+
}, z.core.$strip>>>>;
|
|
5464
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5465
|
+
field: z.ZodString;
|
|
5466
|
+
operator: z.ZodEnum<{
|
|
5467
|
+
equals: "equals";
|
|
5468
|
+
not_equals: "not_equals";
|
|
5469
|
+
contains: "contains";
|
|
5470
|
+
not_contains: "not_contains";
|
|
5471
|
+
greater_than: "greater_than";
|
|
5472
|
+
less_than: "less_than";
|
|
5473
|
+
is_empty: "is_empty";
|
|
5474
|
+
is_not_empty: "is_not_empty";
|
|
5475
|
+
}>;
|
|
5476
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
5477
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5478
|
+
}, z.core.$strip>>>>;
|
|
5479
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
5480
|
+
status: z.ZodEnum<{
|
|
5481
|
+
D: "D";
|
|
5482
|
+
P: "P";
|
|
5483
|
+
A: "A";
|
|
5484
|
+
S: "S";
|
|
5485
|
+
}>;
|
|
5486
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5487
|
+
left: "left";
|
|
5488
|
+
center: "center";
|
|
5489
|
+
justify: "justify";
|
|
5490
|
+
}>>>;
|
|
5491
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
5492
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
5493
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
5494
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
5495
|
+
image: "image";
|
|
5496
|
+
video: "video";
|
|
5497
|
+
youtube: "youtube";
|
|
5498
|
+
vimeo: "vimeo";
|
|
5499
|
+
}>>;
|
|
5500
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
5501
|
+
payeeVpa: z.ZodString;
|
|
5502
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
5503
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5504
|
+
mode: z.ZodLiteral<"fixed">;
|
|
5505
|
+
amount: z.ZodNumber;
|
|
5506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5507
|
+
mode: z.ZodLiteral<"range">;
|
|
5508
|
+
minAmount: z.ZodNumber;
|
|
5509
|
+
maxAmount: z.ZodNumber;
|
|
5510
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
5511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5512
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
5513
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
5514
|
+
sourceQuestionId: z.ZodString;
|
|
5515
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
5516
|
+
answerValue: z.ZodString;
|
|
5517
|
+
amount: z.ZodNumber;
|
|
5518
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5519
|
+
}, z.core.$strip>>;
|
|
5520
|
+
}, z.core.$strip>>;
|
|
5521
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
5522
|
+
}, z.core.$strip>], "mode">;
|
|
5523
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
5524
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
5525
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
5526
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
5527
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
5528
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
5529
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
5530
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
5313
5531
|
}, z.core.$strip>], "type">;
|
|
5314
|
-
export type CombinedQuestion = z.infer<typeof ratingQuestionSchema> | z.infer<typeof annotationQuestionSchema> | z.infer<typeof welcomeQuestionSchema> | z.infer<typeof thankYouQuestionSchema> | z.infer<typeof messagePanelQuestionSchema> | z.infer<typeof exitFormQuestionSchema> | z.infer<typeof yesNoQuestionSchema> | z.infer<typeof consentQuestionSchema> | z.infer<typeof ratingMatrixQuestionSchema> | z.infer<typeof matrixSingleChoiceQuestionSchema> | z.infer<typeof matrixMultipleChoiceQuestionSchema> | z.infer<typeof multipleChoiceSingleQuestionSchema> | z.infer<typeof multipleChoiceMultipleQuestionSchema> | z.infer<typeof npsQuestionSchema> | z.infer<typeof shortAnswerQuestionSchema> | z.infer<typeof longAnswerQuestionSchema> | z.infer<typeof nestedDropdownQuestionSchema> | z.infer<typeof dateQuestionSchema> | z.infer<typeof csatQuestionSchema> | z.infer<typeof opinionScaleQuestionSchema> | z.infer<typeof rankingQuestionSchema> | z.infer<typeof pictureChoiceQuestionSchema> | z.infer<typeof signatureQuestionSchema> | z.infer<typeof fileUploadQuestionSchema> | z.infer<typeof emailQuestionSchema> | z.infer<typeof numberQuestionSchema> | z.infer<typeof websiteQuestionSchema> | z.infer<typeof phoneNumberQuestionSchema> | z.infer<typeof addressQuestionSchema> | z.infer<typeof videoAudioQuestionSchema> | z.infer<typeof schedulerQuestionSchema> | z.infer<typeof qnaWithAiQuestionSchema>;
|
|
5532
|
+
export type CombinedQuestion = z.infer<typeof ratingQuestionSchema> | z.infer<typeof annotationQuestionSchema> | z.infer<typeof welcomeQuestionSchema> | z.infer<typeof thankYouQuestionSchema> | z.infer<typeof messagePanelQuestionSchema> | z.infer<typeof exitFormQuestionSchema> | z.infer<typeof yesNoQuestionSchema> | z.infer<typeof consentQuestionSchema> | z.infer<typeof ratingMatrixQuestionSchema> | z.infer<typeof matrixSingleChoiceQuestionSchema> | z.infer<typeof matrixMultipleChoiceQuestionSchema> | z.infer<typeof multipleChoiceSingleQuestionSchema> | z.infer<typeof multipleChoiceMultipleQuestionSchema> | z.infer<typeof npsQuestionSchema> | z.infer<typeof shortAnswerQuestionSchema> | z.infer<typeof longAnswerQuestionSchema> | z.infer<typeof nestedDropdownQuestionSchema> | z.infer<typeof dateQuestionSchema> | z.infer<typeof csatQuestionSchema> | z.infer<typeof opinionScaleQuestionSchema> | z.infer<typeof rankingQuestionSchema> | z.infer<typeof pictureChoiceQuestionSchema> | z.infer<typeof signatureQuestionSchema> | z.infer<typeof fileUploadQuestionSchema> | z.infer<typeof emailQuestionSchema> | z.infer<typeof numberQuestionSchema> | z.infer<typeof websiteQuestionSchema> | z.infer<typeof phoneNumberQuestionSchema> | z.infer<typeof addressQuestionSchema> | z.infer<typeof videoAudioQuestionSchema> | z.infer<typeof schedulerQuestionSchema> | z.infer<typeof qnaWithAiQuestionSchema> | z.infer<typeof paymentsUpiQuestionSchema>;
|