@encatch/schema 1.2.0-beta.11 → 1.2.0-beta.13
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 +20 -10
- package/dist/esm/index.js.map +2 -2
- package/dist/types/schemas/api/fetch-feedback-schema.d.ts +18 -12
- package/dist/types/schemas/api/submit-feedback-schema.d.ts +6 -0
- package/dist/types/schemas/fields/answer-schema.d.ts +3 -0
- package/dist/types/schemas/fields/app-props-schema.d.ts +9 -6
- package/dist/types/schemas/fields/field-schema.d.ts +26 -18
- package/dist/types/schemas/fields/form-properties-schema.d.ts +9 -6
- package/package.json +1 -1
|
@@ -2621,15 +2621,18 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
|
|
|
2621
2621
|
maxAmount: z.ZodNumber;
|
|
2622
2622
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
2623
2623
|
}, z.core.$strip>, z.ZodObject<{
|
|
2624
|
-
mode: z.ZodLiteral<"
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2624
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
2625
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
2626
|
+
sourceQuestionId: z.ZodString;
|
|
2627
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
2628
|
+
answerValue: z.ZodString;
|
|
2629
|
+
amount: z.ZodNumber;
|
|
2630
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2631
|
+
}, z.core.$strip>>;
|
|
2630
2632
|
}, z.core.$strip>>;
|
|
2631
2633
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
2632
2634
|
}, z.core.$strip>], "mode">;
|
|
2635
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
2633
2636
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
2634
2637
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
2635
2638
|
qrLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -5115,15 +5118,18 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
|
|
|
5115
5118
|
maxAmount: z.ZodNumber;
|
|
5116
5119
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
5117
5120
|
}, z.core.$strip>, z.ZodObject<{
|
|
5118
|
-
mode: z.ZodLiteral<"
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5121
|
+
mode: z.ZodLiteral<"question_mappings">;
|
|
5122
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
5123
|
+
sourceQuestionId: z.ZodString;
|
|
5124
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
5125
|
+
answerValue: z.ZodString;
|
|
5126
|
+
amount: z.ZodNumber;
|
|
5127
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5128
|
+
}, z.core.$strip>>;
|
|
5124
5129
|
}, z.core.$strip>>;
|
|
5125
5130
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
5126
5131
|
}, z.core.$strip>], "mode">;
|
|
5132
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
5127
5133
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
5128
5134
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
5129
5135
|
qrLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -103,6 +103,7 @@ export declare const questionResponseSchema: z.ZodObject<{
|
|
|
103
103
|
currency: z.ZodLiteral<"INR">;
|
|
104
104
|
payeeVpa: z.ZodString;
|
|
105
105
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
106
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
106
107
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
107
108
|
selfReported: z.ZodLiteral<true>;
|
|
108
109
|
}, z.core.$strip>>;
|
|
@@ -211,6 +212,7 @@ export declare const responseSchema: z.ZodObject<{
|
|
|
211
212
|
currency: z.ZodLiteral<"INR">;
|
|
212
213
|
payeeVpa: z.ZodString;
|
|
213
214
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
215
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
214
216
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
215
217
|
selfReported: z.ZodLiteral<true>;
|
|
216
218
|
}, z.core.$strip>>;
|
|
@@ -410,6 +412,7 @@ export declare const partialFeedbackSchema: z.ZodObject<{
|
|
|
410
412
|
currency: z.ZodLiteral<"INR">;
|
|
411
413
|
payeeVpa: z.ZodString;
|
|
412
414
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
415
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
413
416
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
414
417
|
selfReported: z.ZodLiteral<true>;
|
|
415
418
|
}, z.core.$strip>>;
|
|
@@ -562,6 +565,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
|
|
|
562
565
|
currency: z.ZodLiteral<"INR">;
|
|
563
566
|
payeeVpa: z.ZodString;
|
|
564
567
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
568
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
565
569
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
566
570
|
selfReported: z.ZodLiteral<true>;
|
|
567
571
|
}, z.core.$strip>>;
|
|
@@ -714,6 +718,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
714
718
|
currency: z.ZodLiteral<"INR">;
|
|
715
719
|
payeeVpa: z.ZodString;
|
|
716
720
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
721
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
717
722
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
718
723
|
selfReported: z.ZodLiteral<true>;
|
|
719
724
|
}, z.core.$strip>>;
|
|
@@ -865,6 +870,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
865
870
|
currency: z.ZodLiteral<"INR">;
|
|
866
871
|
payeeVpa: z.ZodString;
|
|
867
872
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
873
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
868
874
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
869
875
|
selfReported: z.ZodLiteral<true>;
|
|
870
876
|
}, z.core.$strip>>;
|
|
@@ -84,6 +84,7 @@ export declare const PaymentsUpiAnswerSchema: z.ZodObject<{
|
|
|
84
84
|
currency: z.ZodLiteral<"INR">;
|
|
85
85
|
payeeVpa: z.ZodString;
|
|
86
86
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
87
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
87
88
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
88
89
|
selfReported: z.ZodLiteral<true>;
|
|
89
90
|
}, z.core.$strip>;
|
|
@@ -182,6 +183,7 @@ export declare const AnswerItemSchema: z.ZodObject<{
|
|
|
182
183
|
currency: z.ZodLiteral<"INR">;
|
|
183
184
|
payeeVpa: z.ZodString;
|
|
184
185
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
186
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
185
187
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
186
188
|
selfReported: z.ZodLiteral<true>;
|
|
187
189
|
}, z.core.$strip>>;
|
|
@@ -281,6 +283,7 @@ export declare const AnswerSchema: z.ZodObject<{
|
|
|
281
283
|
currency: z.ZodLiteral<"INR">;
|
|
282
284
|
payeeVpa: z.ZodString;
|
|
283
285
|
payeeName: z.ZodOptional<z.ZodString>;
|
|
286
|
+
sourceEmail: z.ZodOptional<z.ZodString>;
|
|
284
287
|
upiIntentUri: z.ZodOptional<z.ZodString>;
|
|
285
288
|
selfReported: z.ZodLiteral<true>;
|
|
286
289
|
}, z.core.$strip>>;
|
|
@@ -2464,15 +2464,18 @@ export declare const appPropsSchema: z.ZodObject<{
|
|
|
2464
2464
|
maxAmount: z.ZodNumber;
|
|
2465
2465
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
2466
2466
|
}, z.core.$strip>, z.ZodObject<{
|
|
2467
|
-
mode: z.ZodLiteral<"
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
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>>;
|
|
2473
2475
|
}, z.core.$strip>>;
|
|
2474
2476
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
2475
2477
|
}, z.core.$strip>], "mode">;
|
|
2478
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
2476
2479
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
2477
2480
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
2478
2481
|
qrLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -2965,12 +2965,14 @@ export declare const paymentsUpiAmountConfigSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
2965
2965
|
maxAmount: z.ZodNumber;
|
|
2966
2966
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
2967
2967
|
}, z.core.$strip>, z.ZodObject<{
|
|
2968
|
-
mode: z.ZodLiteral<"
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
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>>;
|
|
2974
2976
|
}, z.core.$strip>>;
|
|
2975
2977
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
2976
2978
|
}, z.core.$strip>], "mode">;
|
|
@@ -3047,15 +3049,18 @@ export declare const paymentsUpiQuestionSchema: z.ZodObject<{
|
|
|
3047
3049
|
maxAmount: z.ZodNumber;
|
|
3048
3050
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
3049
3051
|
}, z.core.$strip>, z.ZodObject<{
|
|
3050
|
-
mode: z.ZodLiteral<"
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
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>>;
|
|
3056
3060
|
}, z.core.$strip>>;
|
|
3057
3061
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
3058
3062
|
}, z.core.$strip>], "mode">;
|
|
3063
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
3059
3064
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3060
3065
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3061
3066
|
qrLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -5504,15 +5509,18 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
5504
5509
|
maxAmount: z.ZodNumber;
|
|
5505
5510
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
5506
5511
|
}, z.core.$strip>, z.ZodObject<{
|
|
5507
|
-
mode: z.ZodLiteral<"
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
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>>;
|
|
5513
5520
|
}, z.core.$strip>>;
|
|
5514
5521
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
5515
5522
|
}, z.core.$strip>], "mode">;
|
|
5523
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
5516
5524
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
5517
5525
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
5518
5526
|
qrLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -3705,15 +3705,18 @@ export declare const formPropertiesSchema: z.ZodObject<{
|
|
|
3705
3705
|
maxAmount: z.ZodNumber;
|
|
3706
3706
|
defaultAmount: z.ZodOptional<z.ZodNumber>;
|
|
3707
3707
|
}, z.core.$strip>, z.ZodObject<{
|
|
3708
|
-
mode: z.ZodLiteral<"
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
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>>;
|
|
3714
3716
|
}, z.core.$strip>>;
|
|
3715
3717
|
fallbackAmount: z.ZodOptional<z.ZodNumber>;
|
|
3716
3718
|
}, z.core.$strip>], "mode">;
|
|
3719
|
+
sourceEmailQuestionId: z.ZodOptional<z.ZodString>;
|
|
3717
3720
|
transactionNote: z.ZodOptional<z.ZodString>;
|
|
3718
3721
|
transactionReferencePrefix: z.ZodOptional<z.ZodString>;
|
|
3719
3722
|
qrLabel: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED