@77sol-lab/form-schemas 1.5.1 → 1.6.1
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/{chunk-Y3FAMPYF.mjs → chunk-26KEKEEF.mjs} +82 -21
- package/{chunk-2CN56LSL.mjs → chunk-2BJWG5HH.mjs} +2 -2
- package/{chunk-HZM2PWYJ.mjs → chunk-4LRATW5F.mjs} +2 -2
- package/{chunk-2YVK6IDS.mjs → chunk-4NVLC5QJ.mjs} +3 -3
- package/{chunk-OX3X37VR.mjs → chunk-57OTHRRU.mjs} +2 -2
- package/{chunk-DERWNSPY.mjs → chunk-5F3IUHOW.mjs} +1 -1
- package/{chunk-GR2PK3Z7.mjs → chunk-5ZJ6TZRB.mjs} +2 -2
- package/{chunk-OUVNM2RX.mjs → chunk-6CTXET42.mjs} +1 -1
- package/{chunk-HHJNVLHK.mjs → chunk-6NX5BRIF.mjs} +1 -1
- package/{chunk-YNVJAGAY.mjs → chunk-6RYVAKNX.mjs} +41 -33
- package/{chunk-YQJCILG3.mjs → chunk-7L7ADQAE.mjs} +1 -1
- package/{chunk-AURTWOTB.mjs → chunk-7OBG2GEG.mjs} +2 -2
- package/{chunk-P54HBDOE.mjs → chunk-7QXG7J4P.mjs} +2 -2
- package/{chunk-WGPPH7DC.mjs → chunk-BJZ4B43H.mjs} +1 -1
- package/{chunk-MDK5KVJT.mjs → chunk-DAB6IBM6.mjs} +2 -2
- package/{chunk-JPFAMQGV.mjs → chunk-H245MSBR.mjs} +1 -1
- package/{chunk-XII4F5RZ.mjs → chunk-HSUS7XOX.mjs} +1 -1
- package/{chunk-3O52U22S.mjs → chunk-IV6UYEKI.mjs} +2 -2
- package/{chunk-VGFPONIS.mjs → chunk-J5YKKOCK.mjs} +1 -1
- package/{chunk-OMDC46YE.mjs → chunk-JQLNKJFR.mjs} +2 -2
- package/{chunk-6TFRV3FG.mjs → chunk-K6JM7OJP.mjs} +2 -2
- package/{chunk-2W3LQ75V.mjs → chunk-L4XSQTZM.mjs} +2 -2
- package/{chunk-WRJAOYL6.mjs → chunk-LH3JE57U.mjs} +1 -1
- package/{chunk-F76ICRGY.mjs → chunk-PZ6JDNAK.mjs} +2 -2
- package/{chunk-WPLLR3SO.mjs → chunk-SSMQ7WOS.mjs} +2 -2
- package/{chunk-THYAK7O3.mjs → chunk-TL5EG2ET.mjs} +2 -2
- package/{chunk-FT5BAKSG.mjs → chunk-U3WXTP5Y.mjs} +2 -2
- package/{chunk-3BPZV6IW.mjs → chunk-VYVXCUYH.mjs} +1 -1
- package/{chunk-3RSZ4NGE.mjs → chunk-WVDZZKR2.mjs} +1 -1
- package/{chunk-7ZERTOE7.mjs → chunk-XA4SJNUV.mjs} +2 -2
- package/{chunk-PO6GQE6E.mjs → chunk-XKMD2F5C.mjs} +2 -2
- package/{chunk-6HBDXEIK.mjs → chunk-XOTWCRWX.mjs} +2 -2
- package/{chunk-O7OHCS36.mjs → chunk-YS6GLH4U.mjs} +1 -1
- package/financing/formalization/index.d.cts +1239 -372
- package/financing/formalization/index.d.ts +1239 -372
- package/financing/formalization/index.js +89 -22
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/AlfaPFSchema.js +72 -20
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/AlfaPJSchema.js +72 -20
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +72 -20
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +72 -20
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/BtgPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/BtgPFSchema.js +72 -20
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +29 -21
- package/financing/formalization/schemas/BtgPJSchema.d.ts +29 -21
- package/financing/formalization/schemas/BtgPJSchema.js +72 -20
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +18 -10
- package/financing/formalization/schemas/BvPFSchema.d.ts +18 -10
- package/financing/formalization/schemas/BvPFSchema.js +72 -20
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +36 -28
- package/financing/formalization/schemas/BvPJSchema.d.ts +36 -28
- package/financing/formalization/schemas/BvPJSchema.js +72 -20
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +72 -20
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +72 -20
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +13 -5
- package/financing/formalization/schemas/CashMePFSchema.d.ts +13 -5
- package/financing/formalization/schemas/CashMePFSchema.js +72 -20
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +15 -7
- package/financing/formalization/schemas/CashMePJSchema.d.ts +15 -7
- package/financing/formalization/schemas/CashMePJSchema.js +72 -20
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +13 -5
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +13 -5
- package/financing/formalization/schemas/Credito77PFSchema.js +72 -20
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +15 -7
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +15 -7
- package/financing/formalization/schemas/Credito77PJSchema.js +72 -20
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/EosPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/EosPFSchema.js +72 -20
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/EosPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/EosPJSchema.js +72 -20
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +72 -20
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +72 -20
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/LosangoPFSchema.js +72 -20
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/LosangoPJSchema.js +72 -20
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/SafraPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/SafraPFSchema.js +72 -20
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/SafraPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/SafraPJSchema.js +72 -20
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/SantanderPFSchema.js +72 -20
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/SantanderPJSchema.js +72 -20
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/SolAgoraPFSchema.js +72 -20
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +15 -7
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +15 -7
- package/financing/formalization/schemas/SolAgoraPJSchema.js +72 -20
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +13 -5
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +13 -5
- package/financing/formalization/schemas/SolfacilPFSchema.js +72 -20
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +22 -14
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +22 -14
- package/financing/formalization/schemas/SolfacilPJSchema.js +72 -20
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +20 -12
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +20 -12
- package/financing/formalization/schemas/UnifiedPFSchema.js +73 -21
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +50 -42
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +50 -42
- package/financing/formalization/schemas/UnifiedPJSchema.js +72 -20
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +89 -22
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -24,12 +24,12 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
24
24
|
naturalness: z.ZodString;
|
|
25
25
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
26
26
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
27
|
-
monthly_income: z.ZodNumber
|
|
27
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
28
28
|
profession: z.ZodString;
|
|
29
29
|
nature_of_occupation: z.ZodString;
|
|
30
30
|
company_time: z.ZodNumber;
|
|
31
31
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
32
|
-
equity_value: z.ZodNumber
|
|
32
|
+
equity_value: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
33
33
|
type_doc: z.ZodEnum<[string, string]>;
|
|
34
34
|
doc: z.ZodString;
|
|
35
35
|
issuing_body: z.ZodString;
|
|
@@ -49,6 +49,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
49
49
|
sizeBytes: number;
|
|
50
50
|
url?: string | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
|
|
52
53
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
53
54
|
url: z.ZodOptional<z.ZodString>;
|
|
54
55
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
@@ -138,6 +139,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
138
139
|
company_time: number;
|
|
139
140
|
equity_value: number;
|
|
140
141
|
pep_relationship?: string | undefined;
|
|
142
|
+
proof_kinship_type?: string | undefined;
|
|
141
143
|
proof_kinship?: {
|
|
142
144
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
143
145
|
sizeBytes: number;
|
|
@@ -169,7 +171,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
169
171
|
nationality: string;
|
|
170
172
|
cellphone: string;
|
|
171
173
|
email: string;
|
|
172
|
-
monthly_income: number;
|
|
173
174
|
profession: string;
|
|
174
175
|
doc: string;
|
|
175
176
|
issuing_body: string;
|
|
@@ -192,8 +193,8 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
192
193
|
is_installation_at_requester: string;
|
|
193
194
|
naturalness: string;
|
|
194
195
|
company_time: number;
|
|
195
|
-
equity_value: number;
|
|
196
196
|
pep_relationship?: string | undefined;
|
|
197
|
+
proof_kinship_type?: string | undefined;
|
|
197
198
|
proof_kinship?: {
|
|
198
199
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
199
200
|
sizeBytes: number;
|
|
@@ -202,7 +203,9 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
202
203
|
cnpj_proprietary?: string | undefined;
|
|
203
204
|
complement?: string | undefined;
|
|
204
205
|
energy_bill_owner_document?: string | undefined;
|
|
206
|
+
monthly_income?: unknown;
|
|
205
207
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
208
|
+
equity_value?: unknown;
|
|
206
209
|
}>;
|
|
207
210
|
declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
208
211
|
name: z.ZodString;
|
|
@@ -228,12 +231,12 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
228
231
|
naturalness: z.ZodString;
|
|
229
232
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
230
233
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
231
|
-
monthly_income: z.ZodNumber
|
|
234
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
232
235
|
profession: z.ZodString;
|
|
233
236
|
nature_of_occupation: z.ZodString;
|
|
234
237
|
company_time: z.ZodNumber;
|
|
235
238
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
236
|
-
equity_value: z.ZodNumber
|
|
239
|
+
equity_value: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
237
240
|
type_doc: z.ZodEnum<[string, string]>;
|
|
238
241
|
doc: z.ZodString;
|
|
239
242
|
issuing_body: z.ZodString;
|
|
@@ -253,6 +256,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
253
256
|
sizeBytes: number;
|
|
254
257
|
url?: string | undefined;
|
|
255
258
|
}>;
|
|
259
|
+
proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
|
|
256
260
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
257
261
|
url: z.ZodOptional<z.ZodString>;
|
|
258
262
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
@@ -342,6 +346,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
342
346
|
company_time: number;
|
|
343
347
|
equity_value: number;
|
|
344
348
|
pep_relationship?: string | undefined;
|
|
349
|
+
proof_kinship_type?: string | undefined;
|
|
345
350
|
proof_kinship?: {
|
|
346
351
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
347
352
|
sizeBytes: number;
|
|
@@ -373,7 +378,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
373
378
|
nationality: string;
|
|
374
379
|
cellphone: string;
|
|
375
380
|
email: string;
|
|
376
|
-
monthly_income: number;
|
|
377
381
|
profession: string;
|
|
378
382
|
doc: string;
|
|
379
383
|
issuing_body: string;
|
|
@@ -396,8 +400,8 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
396
400
|
is_installation_at_requester: string;
|
|
397
401
|
naturalness: string;
|
|
398
402
|
company_time: number;
|
|
399
|
-
equity_value: number;
|
|
400
403
|
pep_relationship?: string | undefined;
|
|
404
|
+
proof_kinship_type?: string | undefined;
|
|
401
405
|
proof_kinship?: {
|
|
402
406
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
403
407
|
sizeBytes: number;
|
|
@@ -406,7 +410,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
406
410
|
cnpj_proprietary?: string | undefined;
|
|
407
411
|
complement?: string | undefined;
|
|
408
412
|
energy_bill_owner_document?: string | undefined;
|
|
413
|
+
monthly_income?: unknown;
|
|
409
414
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
415
|
+
equity_value?: unknown;
|
|
410
416
|
}>, {
|
|
411
417
|
number: string;
|
|
412
418
|
sex: string;
|
|
@@ -456,6 +462,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
456
462
|
company_time: number;
|
|
457
463
|
equity_value: number;
|
|
458
464
|
pep_relationship?: string | undefined;
|
|
465
|
+
proof_kinship_type?: string | undefined;
|
|
459
466
|
proof_kinship?: {
|
|
460
467
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
461
468
|
sizeBytes: number;
|
|
@@ -487,7 +494,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
487
494
|
nationality: string;
|
|
488
495
|
cellphone: string;
|
|
489
496
|
email: string;
|
|
490
|
-
monthly_income: number;
|
|
491
497
|
profession: string;
|
|
492
498
|
doc: string;
|
|
493
499
|
issuing_body: string;
|
|
@@ -510,8 +516,8 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
510
516
|
is_installation_at_requester: string;
|
|
511
517
|
naturalness: string;
|
|
512
518
|
company_time: number;
|
|
513
|
-
equity_value: number;
|
|
514
519
|
pep_relationship?: string | undefined;
|
|
520
|
+
proof_kinship_type?: string | undefined;
|
|
515
521
|
proof_kinship?: {
|
|
516
522
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
517
523
|
sizeBytes: number;
|
|
@@ -520,7 +526,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
520
526
|
cnpj_proprietary?: string | undefined;
|
|
521
527
|
complement?: string | undefined;
|
|
522
528
|
energy_bill_owner_document?: string | undefined;
|
|
529
|
+
monthly_income?: unknown;
|
|
523
530
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
531
|
+
equity_value?: unknown;
|
|
524
532
|
}>;
|
|
525
533
|
type BvPfFicha = z.infer<typeof bvPfSchema>;
|
|
526
534
|
|
|
@@ -24,12 +24,12 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
24
24
|
naturalness: z.ZodString;
|
|
25
25
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
26
26
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
27
|
-
monthly_income: z.ZodNumber
|
|
27
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
28
28
|
profession: z.ZodString;
|
|
29
29
|
nature_of_occupation: z.ZodString;
|
|
30
30
|
company_time: z.ZodNumber;
|
|
31
31
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
32
|
-
equity_value: z.ZodNumber
|
|
32
|
+
equity_value: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
33
33
|
type_doc: z.ZodEnum<[string, string]>;
|
|
34
34
|
doc: z.ZodString;
|
|
35
35
|
issuing_body: z.ZodString;
|
|
@@ -49,6 +49,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
49
49
|
sizeBytes: number;
|
|
50
50
|
url?: string | undefined;
|
|
51
51
|
}>;
|
|
52
|
+
proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
|
|
52
53
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
53
54
|
url: z.ZodOptional<z.ZodString>;
|
|
54
55
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
@@ -138,6 +139,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
138
139
|
company_time: number;
|
|
139
140
|
equity_value: number;
|
|
140
141
|
pep_relationship?: string | undefined;
|
|
142
|
+
proof_kinship_type?: string | undefined;
|
|
141
143
|
proof_kinship?: {
|
|
142
144
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
143
145
|
sizeBytes: number;
|
|
@@ -169,7 +171,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
169
171
|
nationality: string;
|
|
170
172
|
cellphone: string;
|
|
171
173
|
email: string;
|
|
172
|
-
monthly_income: number;
|
|
173
174
|
profession: string;
|
|
174
175
|
doc: string;
|
|
175
176
|
issuing_body: string;
|
|
@@ -192,8 +193,8 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
192
193
|
is_installation_at_requester: string;
|
|
193
194
|
naturalness: string;
|
|
194
195
|
company_time: number;
|
|
195
|
-
equity_value: number;
|
|
196
196
|
pep_relationship?: string | undefined;
|
|
197
|
+
proof_kinship_type?: string | undefined;
|
|
197
198
|
proof_kinship?: {
|
|
198
199
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
199
200
|
sizeBytes: number;
|
|
@@ -202,7 +203,9 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
202
203
|
cnpj_proprietary?: string | undefined;
|
|
203
204
|
complement?: string | undefined;
|
|
204
205
|
energy_bill_owner_document?: string | undefined;
|
|
206
|
+
monthly_income?: unknown;
|
|
205
207
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
208
|
+
equity_value?: unknown;
|
|
206
209
|
}>;
|
|
207
210
|
declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
208
211
|
name: z.ZodString;
|
|
@@ -228,12 +231,12 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
228
231
|
naturalness: z.ZodString;
|
|
229
232
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
230
233
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
231
|
-
monthly_income: z.ZodNumber
|
|
234
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
232
235
|
profession: z.ZodString;
|
|
233
236
|
nature_of_occupation: z.ZodString;
|
|
234
237
|
company_time: z.ZodNumber;
|
|
235
238
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
236
|
-
equity_value: z.ZodNumber
|
|
239
|
+
equity_value: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
237
240
|
type_doc: z.ZodEnum<[string, string]>;
|
|
238
241
|
doc: z.ZodString;
|
|
239
242
|
issuing_body: z.ZodString;
|
|
@@ -253,6 +256,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
253
256
|
sizeBytes: number;
|
|
254
257
|
url?: string | undefined;
|
|
255
258
|
}>;
|
|
259
|
+
proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
|
|
256
260
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
257
261
|
url: z.ZodOptional<z.ZodString>;
|
|
258
262
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
@@ -342,6 +346,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
342
346
|
company_time: number;
|
|
343
347
|
equity_value: number;
|
|
344
348
|
pep_relationship?: string | undefined;
|
|
349
|
+
proof_kinship_type?: string | undefined;
|
|
345
350
|
proof_kinship?: {
|
|
346
351
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
347
352
|
sizeBytes: number;
|
|
@@ -373,7 +378,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
373
378
|
nationality: string;
|
|
374
379
|
cellphone: string;
|
|
375
380
|
email: string;
|
|
376
|
-
monthly_income: number;
|
|
377
381
|
profession: string;
|
|
378
382
|
doc: string;
|
|
379
383
|
issuing_body: string;
|
|
@@ -396,8 +400,8 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
396
400
|
is_installation_at_requester: string;
|
|
397
401
|
naturalness: string;
|
|
398
402
|
company_time: number;
|
|
399
|
-
equity_value: number;
|
|
400
403
|
pep_relationship?: string | undefined;
|
|
404
|
+
proof_kinship_type?: string | undefined;
|
|
401
405
|
proof_kinship?: {
|
|
402
406
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
403
407
|
sizeBytes: number;
|
|
@@ -406,7 +410,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
406
410
|
cnpj_proprietary?: string | undefined;
|
|
407
411
|
complement?: string | undefined;
|
|
408
412
|
energy_bill_owner_document?: string | undefined;
|
|
413
|
+
monthly_income?: unknown;
|
|
409
414
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
415
|
+
equity_value?: unknown;
|
|
410
416
|
}>, {
|
|
411
417
|
number: string;
|
|
412
418
|
sex: string;
|
|
@@ -456,6 +462,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
456
462
|
company_time: number;
|
|
457
463
|
equity_value: number;
|
|
458
464
|
pep_relationship?: string | undefined;
|
|
465
|
+
proof_kinship_type?: string | undefined;
|
|
459
466
|
proof_kinship?: {
|
|
460
467
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
461
468
|
sizeBytes: number;
|
|
@@ -487,7 +494,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
487
494
|
nationality: string;
|
|
488
495
|
cellphone: string;
|
|
489
496
|
email: string;
|
|
490
|
-
monthly_income: number;
|
|
491
497
|
profession: string;
|
|
492
498
|
doc: string;
|
|
493
499
|
issuing_body: string;
|
|
@@ -510,8 +516,8 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
510
516
|
is_installation_at_requester: string;
|
|
511
517
|
naturalness: string;
|
|
512
518
|
company_time: number;
|
|
513
|
-
equity_value: number;
|
|
514
519
|
pep_relationship?: string | undefined;
|
|
520
|
+
proof_kinship_type?: string | undefined;
|
|
515
521
|
proof_kinship?: {
|
|
516
522
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
517
523
|
sizeBytes: number;
|
|
@@ -520,7 +526,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
520
526
|
cnpj_proprietary?: string | undefined;
|
|
521
527
|
complement?: string | undefined;
|
|
522
528
|
energy_bill_owner_document?: string | undefined;
|
|
529
|
+
monthly_income?: unknown;
|
|
523
530
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
531
|
+
equity_value?: unknown;
|
|
524
532
|
}>;
|
|
525
533
|
type BvPfFicha = z.infer<typeof bvPfSchema>;
|
|
526
534
|
|
|
@@ -4,12 +4,19 @@ var zod = require('zod');
|
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BvPFSchema.ts
|
|
6
6
|
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
7
|
+
var REQUIRED_STRING_PARAMS = {
|
|
8
|
+
required_error: REQUIRED_MESSAGE,
|
|
9
|
+
invalid_type_error: REQUIRED_MESSAGE
|
|
10
|
+
};
|
|
11
|
+
function requiredString() {
|
|
12
|
+
return zod.z.string(REQUIRED_STRING_PARAMS);
|
|
13
|
+
}
|
|
7
14
|
function textField(maxLength) {
|
|
8
|
-
const base =
|
|
15
|
+
const base = requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
9
16
|
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
10
17
|
}
|
|
11
|
-
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
12
|
-
var integerField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
18
|
+
var numberField = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
19
|
+
var integerField = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
13
20
|
function enumField(values) {
|
|
14
21
|
return zod.z.enum(values, {
|
|
15
22
|
errorMap: (issue, ctx) => {
|
|
@@ -22,13 +29,16 @@ function enumField(values) {
|
|
|
22
29
|
}
|
|
23
30
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
24
31
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
25
|
-
var fileUploadField = zod.z.object(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
var fileUploadField = zod.z.object(
|
|
33
|
+
{
|
|
34
|
+
url: zod.z.string().url().optional(),
|
|
35
|
+
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
36
|
+
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
37
|
+
}),
|
|
38
|
+
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
39
|
+
},
|
|
40
|
+
REQUIRED_STRING_PARAMS
|
|
41
|
+
);
|
|
32
42
|
|
|
33
43
|
// src/shared/enums/document-type.ts
|
|
34
44
|
var DocumentTypeEnum = enumField([
|
|
@@ -36,6 +46,15 @@ var DocumentTypeEnum = enumField([
|
|
|
36
46
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
37
47
|
]);
|
|
38
48
|
|
|
49
|
+
// src/shared/enums/proof-kinship-type.ts
|
|
50
|
+
var ProofKinshipTypeEnum = enumField([
|
|
51
|
+
"certidao_casamento",
|
|
52
|
+
"documento_identificacao",
|
|
53
|
+
"contrato_social",
|
|
54
|
+
"declaracao_parentesco",
|
|
55
|
+
"outro_documento"
|
|
56
|
+
]);
|
|
57
|
+
|
|
39
58
|
// src/shared/enums/sex.ts
|
|
40
59
|
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
60
|
|
|
@@ -166,16 +185,22 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
166
185
|
}
|
|
167
186
|
|
|
168
187
|
// src/shared/regex/index.ts
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
188
|
+
function requiredFormatString() {
|
|
189
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
190
|
+
}
|
|
191
|
+
var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
192
|
+
var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
193
|
+
var cpfCnpjSchema = requiredFormatString().transform(onlyDigits).refine(
|
|
172
194
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
173
195
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
174
196
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
175
|
-
var cepSchema =
|
|
176
|
-
var phoneBRSchema =
|
|
177
|
-
var emailSchema =
|
|
178
|
-
|
|
197
|
+
var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
198
|
+
var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
199
|
+
var emailSchema = requiredFormatString().refine(
|
|
200
|
+
(v) => PATTERNS.email.test(v),
|
|
201
|
+
"E-mail inv\xE1lido"
|
|
202
|
+
);
|
|
203
|
+
var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
179
204
|
var birthDateSchema = dateDMYSchema.refine(
|
|
180
205
|
(v) => isAdultDMY(v),
|
|
181
206
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -184,10 +209,26 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
184
209
|
(v) => isNotFutureDMY(v),
|
|
185
210
|
"Data de emiss\xE3o n\xE3o pode ser futura"
|
|
186
211
|
);
|
|
187
|
-
|
|
188
|
-
|
|
212
|
+
function parseBRLCurrency(value) {
|
|
213
|
+
if (typeof value !== "string") {
|
|
214
|
+
return value;
|
|
215
|
+
}
|
|
216
|
+
const trimmed = value.trim();
|
|
217
|
+
if (trimmed === "") {
|
|
218
|
+
return void 0;
|
|
219
|
+
}
|
|
220
|
+
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
221
|
+
const parsed = Number(normalized);
|
|
222
|
+
return Number.isNaN(parsed) ? value : parsed;
|
|
223
|
+
}
|
|
224
|
+
var currencySchema = zod.z.preprocess(
|
|
225
|
+
parseBRLCurrency,
|
|
226
|
+
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
|
|
227
|
+
);
|
|
228
|
+
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
|
|
189
229
|
var formalizationExtras = {
|
|
190
230
|
voucher_local_installation_address: fileUploadField,
|
|
231
|
+
proof_kinship_type: ProofKinshipTypeEnum.optional(),
|
|
191
232
|
proof_kinship: fileUploadField.optional(),
|
|
192
233
|
document_front_upload: fileUploadField,
|
|
193
234
|
document_back_upload: fileUploadField,
|
|
@@ -230,7 +271,18 @@ function applyPartnerRefinement(data, ctx) {
|
|
|
230
271
|
}
|
|
231
272
|
}
|
|
232
273
|
function applyCommonRefinements(data, ctx) {
|
|
233
|
-
|
|
274
|
+
const accountInThirdPartyName = data.energy_account_in_requester_name === "sim";
|
|
275
|
+
if (!accountInThirdPartyName) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (!data.proof_kinship_type) {
|
|
279
|
+
ctx.addIssue({
|
|
280
|
+
code: zod.z.ZodIssueCode.custom,
|
|
281
|
+
path: ["proof_kinship_type"],
|
|
282
|
+
message: "Tipo de comprovante \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
if (!data.proof_kinship) {
|
|
234
286
|
ctx.addIssue({
|
|
235
287
|
code: zod.z.ZodIssueCode.custom,
|
|
236
288
|
path: ["proof_kinship"],
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bvPfObject, bvPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { bvPfObject, bvPfSchema } from '../../../chunk-57OTHRRU.mjs';
|
|
2
|
+
import '../../../chunk-HSUS7XOX.mjs';
|
|
3
|
+
import '../../../chunk-26KEKEEF.mjs';
|