@encatch/schema 1.2.0-beta.10 → 1.2.0-beta.12
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 +608 -169
- package/dist/esm/index.js.map +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +182 -0
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +60 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +31 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +102 -0
- package/dist/types/schemas/fields/field-schema.d.ts +209 -1
- package/dist/types/schemas/fields/form-properties-schema.d.ts +102 -0
- package/dist/types/schemas/fields/translations-schema.d.ts +57 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare const questionTypeSchema: z.ZodEnum<{
|
|
|
12
12
|
signature: "signature";
|
|
13
13
|
scheduler: "scheduler";
|
|
14
14
|
qna_with_ai: "qna_with_ai";
|
|
15
|
+
payments_upi: "payments_upi";
|
|
15
16
|
nested_selection: "nested_selection";
|
|
16
17
|
annotation: "annotation";
|
|
17
18
|
welcome: "welcome";
|
|
@@ -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";
|
|
@@ -258,6 +260,7 @@ export declare const questionSchema: z.ZodObject<{
|
|
|
258
260
|
signature: "signature";
|
|
259
261
|
scheduler: "scheduler";
|
|
260
262
|
qna_with_ai: "qna_with_ai";
|
|
263
|
+
payments_upi: "payments_upi";
|
|
261
264
|
nested_selection: "nested_selection";
|
|
262
265
|
annotation: "annotation";
|
|
263
266
|
welcome: "welcome";
|
|
@@ -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";
|
|
@@ -2951,6 +2956,118 @@ export declare const qnaWithAiQuestionSchema: z.ZodObject<{
|
|
|
2951
2956
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
2952
2957
|
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
2953
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
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3064
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3065
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3066
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3067
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3068
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3069
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3070
|
+
}, z.core.$strip>;
|
|
2954
3071
|
export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2955
3072
|
id: z.ZodString;
|
|
2956
3073
|
slug: z.ZodOptional<z.ZodString>;
|
|
@@ -5318,5 +5435,96 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5318
5435
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
5319
5436
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
5320
5437
|
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
5438
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5439
|
+
id: z.ZodString;
|
|
5440
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
5441
|
+
title: z.ZodString;
|
|
5442
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5443
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5444
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5445
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
5446
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
5447
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5448
|
+
type: z.ZodEnum<{
|
|
5449
|
+
custom: "custom";
|
|
5450
|
+
pattern: "pattern";
|
|
5451
|
+
email: "email";
|
|
5452
|
+
required: "required";
|
|
5453
|
+
min: "min";
|
|
5454
|
+
max: "max";
|
|
5455
|
+
minLength: "minLength";
|
|
5456
|
+
maxLength: "maxLength";
|
|
5457
|
+
url: "url";
|
|
5458
|
+
}>;
|
|
5459
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
5460
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5461
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5462
|
+
}, z.core.$strip>>>>;
|
|
5463
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5464
|
+
field: z.ZodString;
|
|
5465
|
+
operator: z.ZodEnum<{
|
|
5466
|
+
equals: "equals";
|
|
5467
|
+
not_equals: "not_equals";
|
|
5468
|
+
contains: "contains";
|
|
5469
|
+
not_contains: "not_contains";
|
|
5470
|
+
greater_than: "greater_than";
|
|
5471
|
+
less_than: "less_than";
|
|
5472
|
+
is_empty: "is_empty";
|
|
5473
|
+
is_not_empty: "is_not_empty";
|
|
5474
|
+
}>;
|
|
5475
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
5476
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
5477
|
+
}, z.core.$strip>>>>;
|
|
5478
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
5479
|
+
status: z.ZodEnum<{
|
|
5480
|
+
D: "D";
|
|
5481
|
+
P: "P";
|
|
5482
|
+
A: "A";
|
|
5483
|
+
S: "S";
|
|
5484
|
+
}>;
|
|
5485
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5486
|
+
left: "left";
|
|
5487
|
+
center: "center";
|
|
5488
|
+
justify: "justify";
|
|
5489
|
+
}>>>;
|
|
5490
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
5491
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
5492
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
5493
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
5494
|
+
image: "image";
|
|
5495
|
+
video: "video";
|
|
5496
|
+
youtube: "youtube";
|
|
5497
|
+
vimeo: "vimeo";
|
|
5498
|
+
}>>;
|
|
5499
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
5500
|
+
payeeVpa: z.ZodString;
|
|
5501
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
5502
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5503
|
+
mode: z.ZodLiteral<"fixed">;
|
|
5504
|
+
amount: z.ZodNumber;
|
|
5505
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5506
|
+
mode: z.ZodLiteral<"range">;
|
|
5507
|
+
minAmount: z.ZodNumber;
|
|
5508
|
+
maxAmount: z.ZodNumber;
|
|
5509
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
5510
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5511
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
5512
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
5513
|
+
sourceQuestionId: z.ZodString;
|
|
5514
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
5515
|
+
answerValue: z.ZodString;
|
|
5516
|
+
amount: z.ZodNumber;
|
|
5517
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5518
|
+
}, z.core.$strip>>;
|
|
5519
|
+
}, z.core.$strip>>;
|
|
5520
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
5521
|
+
}, z.core.$strip>], "mode">;
|
|
5522
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
5523
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
5524
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
5525
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
5526
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
5527
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
5528
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
5321
5529
|
}, z.core.$strip>], "type">;
|
|
5322
|
-
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>;
|
|
5530
|
+
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>;
|
|
@@ -3632,6 +3632,97 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3632
3632
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
3633
3633
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
3634
3634
|
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
3635
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3636
|
+
id: z.ZodString;
|
|
3637
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
3638
|
+
title: z.ZodString;
|
|
3639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3640
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3641
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
3642
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
3643
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3644
|
+
validations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3645
|
+
type: z.ZodEnum<{
|
|
3646
|
+
custom: "custom";
|
|
3647
|
+
pattern: "pattern";
|
|
3648
|
+
email: "email";
|
|
3649
|
+
required: "required";
|
|
3650
|
+
min: "min";
|
|
3651
|
+
max: "max";
|
|
3652
|
+
minLength: "minLength";
|
|
3653
|
+
maxLength: "maxLength";
|
|
3654
|
+
url: "url";
|
|
3655
|
+
}>;
|
|
3656
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3657
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3658
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3659
|
+
}, z.core.$strip>>>>;
|
|
3660
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3661
|
+
field: z.ZodString;
|
|
3662
|
+
operator: z.ZodEnum<{
|
|
3663
|
+
equals: "equals";
|
|
3664
|
+
not_equals: "not_equals";
|
|
3665
|
+
contains: "contains";
|
|
3666
|
+
not_contains: "not_contains";
|
|
3667
|
+
greater_than: "greater_than";
|
|
3668
|
+
less_than: "less_than";
|
|
3669
|
+
is_empty: "is_empty";
|
|
3670
|
+
is_not_empty: "is_not_empty";
|
|
3671
|
+
}>;
|
|
3672
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3673
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
3674
|
+
}, z.core.$strip>>>>;
|
|
3675
|
+
sectionId: z.ZodOptional<z.ZodString>;
|
|
3676
|
+
status: z.ZodEnum<{
|
|
3677
|
+
D: "D";
|
|
3678
|
+
P: "P";
|
|
3679
|
+
A: "A";
|
|
3680
|
+
S: "S";
|
|
3681
|
+
}>;
|
|
3682
|
+
textAlign: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3683
|
+
left: "left";
|
|
3684
|
+
center: "center";
|
|
3685
|
+
justify: "justify";
|
|
3686
|
+
}>>>;
|
|
3687
|
+
nextButtonLabel: z.ZodDefault<z.ZodString>;
|
|
3688
|
+
showQuestionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
3689
|
+
questionMediaUrl: z.ZodOptional<z.ZodString>;
|
|
3690
|
+
questionMediaType: z.ZodOptional<z.ZodEnum<{
|
|
3691
|
+
image: "image";
|
|
3692
|
+
video: "video";
|
|
3693
|
+
youtube: "youtube";
|
|
3694
|
+
vimeo: "vimeo";
|
|
3695
|
+
}>>;
|
|
3696
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
3697
|
+
payeeVpa: z.ZodString;
|
|
3698
|
+
payeeName: z.ZodOptional<z.ZodString>;
|
|
3699
|
+
amount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3700
|
+
mode: z.ZodLiteral<"fixed">;
|
|
3701
|
+
amount: z.ZodNumber;
|
|
3702
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3703
|
+
mode: z.ZodLiteral<"range">;
|
|
3704
|
+
minAmount: z.ZodNumber;
|
|
3705
|
+
maxAmount: z.ZodNumber;
|
|
3706
|
+
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
3707
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3708
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
3709
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
3710
|
+
sourceQuestionId: z.ZodString;
|
|
3711
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
3712
|
+
answerValue: z.ZodString;
|
|
3713
|
+
amount: z.ZodNumber;
|
|
3714
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3715
|
+
}, z.core.$strip>>;
|
|
3716
|
+
}, z.core.$strip>>;
|
|
3717
|
+
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
3718
|
+
}, z.core.$strip>], "mode">;
|
|
3719
|
+
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3720
|
+
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3721
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3722
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3723
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3724
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3725
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3635
3726
|
}, z.core.$strip>], "type">>;
|
|
3636
3727
|
sections: z.ZodArray<z.ZodObject<{
|
|
3637
3728
|
id: z.ZodString;
|
|
@@ -3757,6 +3848,17 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3757
3848
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
3758
3849
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
3759
3850
|
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
3851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3852
|
+
title: z.ZodString;
|
|
3853
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3854
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
3855
|
+
nextButtonLabel: z.ZodOptional<z.ZodString>;
|
|
3856
|
+
type: z.ZodLiteral<"payments_upi">;
|
|
3857
|
+
qrLabel: z.ZodOptional<z.ZodString>;
|
|
3858
|
+
openUpiAppLabel: z.ZodOptional<z.ZodString>;
|
|
3859
|
+
copyUpiIdLabel: z.ZodOptional<z.ZodString>;
|
|
3860
|
+
transactionIdLabel: z.ZodOptional<z.ZodString>;
|
|
3861
|
+
transactionIdPlaceholder: z.ZodOptional<z.ZodString>;
|
|
3760
3862
|
}, z.core.$strip>, z.ZodObject<{
|
|
3761
3863
|
title: z.ZodString;
|
|
3762
3864
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -122,6 +122,18 @@ export declare const qnaWithAiQuestionTranslationSchema: z.ZodObject<{
|
|
|
122
122
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
123
123
|
pairsLimitReachedTemplate: z.ZodOptional<z.ZodString>;
|
|
124
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>;
|
|
125
137
|
export declare const nestedSelectionQuestionTranslationSchema: z.ZodObject<{
|
|
126
138
|
title: z.ZodString;
|
|
127
139
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +315,17 @@ export declare const questionTranslationSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
303
315
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
304
316
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
305
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>;
|
|
306
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
307
330
|
title: z.ZodString;
|
|
308
331
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -486,6 +509,17 @@ export declare const questionTranslationsByLanguageSchema: z.ZodRecord<z.ZodStri
|
|
|
486
509
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
487
510
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
488
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>;
|
|
489
523
|
}, z.core.$strip>, z.ZodObject<{
|
|
490
524
|
title: z.ZodString;
|
|
491
525
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -658,6 +692,17 @@ export declare const questionCentricTranslationsSchema: z.ZodRecord<z.ZodString,
|
|
|
658
692
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
659
693
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
660
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>;
|
|
661
706
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
707
|
title: z.ZodString;
|
|
663
708
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -830,6 +875,17 @@ export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.
|
|
|
830
875
|
emptyStateHint: z.ZodOptional<z.ZodString>;
|
|
831
876
|
pairsRemainingTemplate: z.ZodOptional<z.ZodString>;
|
|
832
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>;
|
|
833
889
|
}, z.core.$strip>, z.ZodObject<{
|
|
834
890
|
title: z.ZodString;
|
|
835
891
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -910,6 +966,7 @@ export type DateQuestionTranslation = z.infer<typeof dateQuestionTranslationSche
|
|
|
910
966
|
export type SignatureQuestionTranslation = z.infer<typeof signatureQuestionTranslationSchema>;
|
|
911
967
|
export type SchedulerQuestionTranslation = z.infer<typeof schedulerQuestionTranslationSchema>;
|
|
912
968
|
export type QnaWithAiQuestionTranslation = z.infer<typeof qnaWithAiQuestionTranslationSchema>;
|
|
969
|
+
export type PaymentsUpiQuestionTranslation = z.infer<typeof paymentsUpiQuestionTranslationSchema>;
|
|
913
970
|
export type NestedSelectionQuestionTranslation = z.infer<typeof nestedSelectionQuestionTranslationSchema>;
|
|
914
971
|
export type AnnotationQuestionTranslation = z.infer<typeof annotationQuestionTranslationSchema>;
|
|
915
972
|
export type WelcomeQuestionTranslation = z.infer<typeof welcomeQuestionTranslationSchema>;
|
package/package.json
CHANGED