@77sol-lab/form-schemas 1.5.0 → 1.5.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-53GXILC6.mjs → chunk-2CN56LSL.mjs} +2 -2
- package/{chunk-R6CEKWRQ.mjs → chunk-2W3LQ75V.mjs} +2 -2
- package/{chunk-D2ZUTYWA.mjs → chunk-2YVK6IDS.mjs} +16 -7
- package/{chunk-UU3MRKTH.mjs → chunk-3BPZV6IW.mjs} +1 -1
- package/{chunk-7MWUETLP.mjs → chunk-3O52U22S.mjs} +2 -2
- package/{chunk-Z2TTZ3JJ.mjs → chunk-3RSZ4NGE.mjs} +1 -1
- package/{chunk-4XJZIRLT.mjs → chunk-6HBDXEIK.mjs} +2 -2
- package/{chunk-G5SKXDYM.mjs → chunk-6TFRV3FG.mjs} +2 -2
- package/{chunk-7ZF45QUN.mjs → chunk-7ZERTOE7.mjs} +2 -2
- package/{chunk-NCTEG6EL.mjs → chunk-AURTWOTB.mjs} +2 -2
- package/{chunk-FPJKWVVF.mjs → chunk-DERWNSPY.mjs} +1 -1
- package/{chunk-IWSDOFBY.mjs → chunk-F76ICRGY.mjs} +2 -2
- package/{chunk-OVANLPKX.mjs → chunk-FT5BAKSG.mjs} +2 -2
- package/{chunk-UUWULEKH.mjs → chunk-GR2PK3Z7.mjs} +2 -2
- package/{chunk-UMP5UF3U.mjs → chunk-HHJNVLHK.mjs} +1 -1
- package/{chunk-3OIG2FI5.mjs → chunk-HZM2PWYJ.mjs} +2 -2
- package/{chunk-6PH42V5T.mjs → chunk-JPFAMQGV.mjs} +1 -1
- package/{chunk-L4EWOROT.mjs → chunk-MDK5KVJT.mjs} +2 -2
- package/{chunk-RYJSCFSY.mjs → chunk-O7OHCS36.mjs} +1 -1
- package/{chunk-GQ5G2YX4.mjs → chunk-OMDC46YE.mjs} +2 -2
- package/{chunk-FRMGP3C3.mjs → chunk-OUVNM2RX.mjs} +1 -1
- package/{chunk-5C4YMHXV.mjs → chunk-OX3X37VR.mjs} +2 -2
- package/{chunk-OARPUXXM.mjs → chunk-P54HBDOE.mjs} +2 -2
- package/{chunk-F27U6CXB.mjs → chunk-PO6GQE6E.mjs} +2 -2
- package/{chunk-N2IX5TRK.mjs → chunk-THYAK7O3.mjs} +2 -2
- package/{chunk-YIUJVGT4.mjs → chunk-VGFPONIS.mjs} +1 -1
- package/{chunk-WTHEEPBE.mjs → chunk-WGPPH7DC.mjs} +1 -1
- package/{chunk-H54QBCSW.mjs → chunk-WPLLR3SO.mjs} +2 -2
- package/{chunk-VO573WIK.mjs → chunk-WRJAOYL6.mjs} +1 -1
- package/{chunk-7I2LXGA2.mjs → chunk-XII4F5RZ.mjs} +2 -2
- package/{chunk-HBTFOSJU.mjs → chunk-Y3FAMPYF.mjs} +33 -18
- package/{chunk-6YS5KBXS.mjs → chunk-YNVJAGAY.mjs} +35 -34
- package/{chunk-2END6TYT.mjs → chunk-YQJCILG3.mjs} +1 -1
- package/financing/formalization/index.d.cts +1306 -1306
- package/financing/formalization/index.d.ts +1306 -1306
- package/financing/formalization/index.js +53 -24
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.js +35 -18
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.js +32 -17
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +35 -18
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +32 -17
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.js +35 -18
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.js +35 -18
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPFSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPFSchema.js +35 -18
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BvPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BvPJSchema.js +35 -18
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +35 -18
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +32 -17
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.js +35 -18
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.js +32 -17
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.js +35 -18
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.js +32 -17
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/EosPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/EosPFSchema.js +35 -18
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/EosPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/EosPJSchema.js +32 -17
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +35 -18
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +32 -17
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.js +35 -18
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.js +32 -17
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.js +35 -18
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.js +32 -17
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.js +35 -18
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.js +32 -17
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.js +35 -18
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.js +35 -18
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.js +35 -18
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.js +32 -17
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.js +50 -23
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.js +35 -18
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +53 -24
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -17,14 +17,14 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
17
17
|
legal_nature: z.ZodString;
|
|
18
18
|
city: z.ZodString;
|
|
19
19
|
economic_activity_group: z.ZodString;
|
|
20
|
-
state: z.ZodEnum<[
|
|
20
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
21
21
|
economic_activity: z.ZodString;
|
|
22
22
|
monthly_income: z.ZodNumber;
|
|
23
23
|
capital_social: z.ZodNumber;
|
|
24
24
|
}, "strict", z.ZodTypeAny, {
|
|
25
25
|
number: string;
|
|
26
26
|
residence_situation: string;
|
|
27
|
-
state:
|
|
27
|
+
state: string;
|
|
28
28
|
cep: string;
|
|
29
29
|
address: string;
|
|
30
30
|
district: string;
|
|
@@ -44,7 +44,7 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
44
44
|
}, {
|
|
45
45
|
number: string;
|
|
46
46
|
residence_situation: string;
|
|
47
|
-
state:
|
|
47
|
+
state: string;
|
|
48
48
|
cep: string;
|
|
49
49
|
address: string;
|
|
50
50
|
district: string;
|
|
@@ -74,36 +74,36 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
74
74
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
75
75
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
76
76
|
district: z.ZodString;
|
|
77
|
-
sex: z.ZodEnum<[
|
|
77
|
+
sex: z.ZodEnum<[string, string]>;
|
|
78
78
|
city: z.ZodString;
|
|
79
|
-
state: z.ZodEnum<[
|
|
79
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
80
80
|
civil_status: z.ZodString;
|
|
81
81
|
residence_situation: z.ZodString;
|
|
82
82
|
office: z.ZodString;
|
|
83
83
|
months_in_residence: z.ZodNumber;
|
|
84
|
-
type_doc: z.ZodEnum<[
|
|
84
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
85
85
|
doc: z.ZodString;
|
|
86
86
|
issuing_body: z.ZodString;
|
|
87
|
-
uf_issuing_body: z.ZodEnum<[
|
|
87
|
+
uf_issuing_body: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
88
88
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
89
89
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
90
90
|
mother_name: z.ZodString;
|
|
91
91
|
monthly_income: z.ZodNumber;
|
|
92
92
|
patrimony: z.ZodNumber;
|
|
93
93
|
naturalness: z.ZodString;
|
|
94
|
-
uf_naturalness: z.ZodEnum<[
|
|
94
|
+
uf_naturalness: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
95
95
|
nationality: z.ZodString;
|
|
96
96
|
pep_relationship: z.ZodString;
|
|
97
97
|
}, "strict", z.ZodTypeAny, {
|
|
98
98
|
number: string;
|
|
99
|
-
sex:
|
|
100
|
-
type_doc:
|
|
99
|
+
sex: string;
|
|
100
|
+
type_doc: string;
|
|
101
101
|
residence_situation: string;
|
|
102
102
|
pep_relationship: string;
|
|
103
103
|
civil_status: string;
|
|
104
|
-
state:
|
|
105
|
-
uf_naturalness:
|
|
106
|
-
uf_issuing_body:
|
|
104
|
+
state: string;
|
|
105
|
+
uf_naturalness: string;
|
|
106
|
+
uf_issuing_body: string;
|
|
107
107
|
doc_issue_date: string;
|
|
108
108
|
name: string;
|
|
109
109
|
cep: string;
|
|
@@ -128,14 +128,14 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
128
128
|
complement?: string | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
number: string;
|
|
131
|
-
sex:
|
|
132
|
-
type_doc:
|
|
131
|
+
sex: string;
|
|
132
|
+
type_doc: string;
|
|
133
133
|
residence_situation: string;
|
|
134
134
|
pep_relationship: string;
|
|
135
135
|
civil_status: string;
|
|
136
|
-
state:
|
|
137
|
-
uf_naturalness:
|
|
138
|
-
uf_issuing_body:
|
|
136
|
+
state: string;
|
|
137
|
+
uf_naturalness: string;
|
|
138
|
+
uf_issuing_body: string;
|
|
139
139
|
doc_issue_date: string;
|
|
140
140
|
name: string;
|
|
141
141
|
cep: string;
|
|
@@ -232,7 +232,7 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
232
232
|
financing_company: {
|
|
233
233
|
number: string;
|
|
234
234
|
residence_situation: string;
|
|
235
|
-
state:
|
|
235
|
+
state: string;
|
|
236
236
|
cep: string;
|
|
237
237
|
address: string;
|
|
238
238
|
district: string;
|
|
@@ -252,14 +252,14 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
252
252
|
};
|
|
253
253
|
financing_company_guarantor: {
|
|
254
254
|
number: string;
|
|
255
|
-
sex:
|
|
256
|
-
type_doc:
|
|
255
|
+
sex: string;
|
|
256
|
+
type_doc: string;
|
|
257
257
|
residence_situation: string;
|
|
258
258
|
pep_relationship: string;
|
|
259
259
|
civil_status: string;
|
|
260
|
-
state:
|
|
261
|
-
uf_naturalness:
|
|
262
|
-
uf_issuing_body:
|
|
260
|
+
state: string;
|
|
261
|
+
uf_naturalness: string;
|
|
262
|
+
uf_issuing_body: string;
|
|
263
263
|
doc_issue_date: string;
|
|
264
264
|
name: string;
|
|
265
265
|
cep: string;
|
|
@@ -307,7 +307,7 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
307
307
|
financing_company: {
|
|
308
308
|
number: string;
|
|
309
309
|
residence_situation: string;
|
|
310
|
-
state:
|
|
310
|
+
state: string;
|
|
311
311
|
cep: string;
|
|
312
312
|
address: string;
|
|
313
313
|
district: string;
|
|
@@ -327,14 +327,14 @@ declare const bvPjObject: z.ZodObject<{
|
|
|
327
327
|
};
|
|
328
328
|
financing_company_guarantor: {
|
|
329
329
|
number: string;
|
|
330
|
-
sex:
|
|
331
|
-
type_doc:
|
|
330
|
+
sex: string;
|
|
331
|
+
type_doc: string;
|
|
332
332
|
residence_situation: string;
|
|
333
333
|
pep_relationship: string;
|
|
334
334
|
civil_status: string;
|
|
335
|
-
state:
|
|
336
|
-
uf_naturalness:
|
|
337
|
-
uf_issuing_body:
|
|
335
|
+
state: string;
|
|
336
|
+
uf_naturalness: string;
|
|
337
|
+
uf_issuing_body: string;
|
|
338
338
|
doc_issue_date: string;
|
|
339
339
|
name: string;
|
|
340
340
|
cep: string;
|
|
@@ -382,14 +382,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
legal_nature: z.ZodString;
|
|
383
383
|
city: z.ZodString;
|
|
384
384
|
economic_activity_group: z.ZodString;
|
|
385
|
-
state: z.ZodEnum<[
|
|
385
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
386
386
|
economic_activity: z.ZodString;
|
|
387
387
|
monthly_income: z.ZodNumber;
|
|
388
388
|
capital_social: z.ZodNumber;
|
|
389
389
|
}, "strict", z.ZodTypeAny, {
|
|
390
390
|
number: string;
|
|
391
391
|
residence_situation: string;
|
|
392
|
-
state:
|
|
392
|
+
state: string;
|
|
393
393
|
cep: string;
|
|
394
394
|
address: string;
|
|
395
395
|
district: string;
|
|
@@ -409,7 +409,7 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
409
409
|
}, {
|
|
410
410
|
number: string;
|
|
411
411
|
residence_situation: string;
|
|
412
|
-
state:
|
|
412
|
+
state: string;
|
|
413
413
|
cep: string;
|
|
414
414
|
address: string;
|
|
415
415
|
district: string;
|
|
@@ -439,36 +439,36 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
439
439
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
440
440
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
441
441
|
district: z.ZodString;
|
|
442
|
-
sex: z.ZodEnum<[
|
|
442
|
+
sex: z.ZodEnum<[string, string]>;
|
|
443
443
|
city: z.ZodString;
|
|
444
|
-
state: z.ZodEnum<[
|
|
444
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
445
445
|
civil_status: z.ZodString;
|
|
446
446
|
residence_situation: z.ZodString;
|
|
447
447
|
office: z.ZodString;
|
|
448
448
|
months_in_residence: z.ZodNumber;
|
|
449
|
-
type_doc: z.ZodEnum<[
|
|
449
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
450
450
|
doc: z.ZodString;
|
|
451
451
|
issuing_body: z.ZodString;
|
|
452
|
-
uf_issuing_body: z.ZodEnum<[
|
|
452
|
+
uf_issuing_body: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
453
453
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
454
454
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
455
455
|
mother_name: z.ZodString;
|
|
456
456
|
monthly_income: z.ZodNumber;
|
|
457
457
|
patrimony: z.ZodNumber;
|
|
458
458
|
naturalness: z.ZodString;
|
|
459
|
-
uf_naturalness: z.ZodEnum<[
|
|
459
|
+
uf_naturalness: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
460
460
|
nationality: z.ZodString;
|
|
461
461
|
pep_relationship: z.ZodString;
|
|
462
462
|
}, "strict", z.ZodTypeAny, {
|
|
463
463
|
number: string;
|
|
464
|
-
sex:
|
|
465
|
-
type_doc:
|
|
464
|
+
sex: string;
|
|
465
|
+
type_doc: string;
|
|
466
466
|
residence_situation: string;
|
|
467
467
|
pep_relationship: string;
|
|
468
468
|
civil_status: string;
|
|
469
|
-
state:
|
|
470
|
-
uf_naturalness:
|
|
471
|
-
uf_issuing_body:
|
|
469
|
+
state: string;
|
|
470
|
+
uf_naturalness: string;
|
|
471
|
+
uf_issuing_body: string;
|
|
472
472
|
doc_issue_date: string;
|
|
473
473
|
name: string;
|
|
474
474
|
cep: string;
|
|
@@ -493,14 +493,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
493
493
|
complement?: string | undefined;
|
|
494
494
|
}, {
|
|
495
495
|
number: string;
|
|
496
|
-
sex:
|
|
497
|
-
type_doc:
|
|
496
|
+
sex: string;
|
|
497
|
+
type_doc: string;
|
|
498
498
|
residence_situation: string;
|
|
499
499
|
pep_relationship: string;
|
|
500
500
|
civil_status: string;
|
|
501
|
-
state:
|
|
502
|
-
uf_naturalness:
|
|
503
|
-
uf_issuing_body:
|
|
501
|
+
state: string;
|
|
502
|
+
uf_naturalness: string;
|
|
503
|
+
uf_issuing_body: string;
|
|
504
504
|
doc_issue_date: string;
|
|
505
505
|
name: string;
|
|
506
506
|
cep: string;
|
|
@@ -597,7 +597,7 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
597
597
|
financing_company: {
|
|
598
598
|
number: string;
|
|
599
599
|
residence_situation: string;
|
|
600
|
-
state:
|
|
600
|
+
state: string;
|
|
601
601
|
cep: string;
|
|
602
602
|
address: string;
|
|
603
603
|
district: string;
|
|
@@ -617,14 +617,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
617
617
|
};
|
|
618
618
|
financing_company_guarantor: {
|
|
619
619
|
number: string;
|
|
620
|
-
sex:
|
|
621
|
-
type_doc:
|
|
620
|
+
sex: string;
|
|
621
|
+
type_doc: string;
|
|
622
622
|
residence_situation: string;
|
|
623
623
|
pep_relationship: string;
|
|
624
624
|
civil_status: string;
|
|
625
|
-
state:
|
|
626
|
-
uf_naturalness:
|
|
627
|
-
uf_issuing_body:
|
|
625
|
+
state: string;
|
|
626
|
+
uf_naturalness: string;
|
|
627
|
+
uf_issuing_body: string;
|
|
628
628
|
doc_issue_date: string;
|
|
629
629
|
name: string;
|
|
630
630
|
cep: string;
|
|
@@ -672,7 +672,7 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
672
672
|
financing_company: {
|
|
673
673
|
number: string;
|
|
674
674
|
residence_situation: string;
|
|
675
|
-
state:
|
|
675
|
+
state: string;
|
|
676
676
|
cep: string;
|
|
677
677
|
address: string;
|
|
678
678
|
district: string;
|
|
@@ -692,14 +692,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
692
692
|
};
|
|
693
693
|
financing_company_guarantor: {
|
|
694
694
|
number: string;
|
|
695
|
-
sex:
|
|
696
|
-
type_doc:
|
|
695
|
+
sex: string;
|
|
696
|
+
type_doc: string;
|
|
697
697
|
residence_situation: string;
|
|
698
698
|
pep_relationship: string;
|
|
699
699
|
civil_status: string;
|
|
700
|
-
state:
|
|
701
|
-
uf_naturalness:
|
|
702
|
-
uf_issuing_body:
|
|
700
|
+
state: string;
|
|
701
|
+
uf_naturalness: string;
|
|
702
|
+
uf_issuing_body: string;
|
|
703
703
|
doc_issue_date: string;
|
|
704
704
|
name: string;
|
|
705
705
|
cep: string;
|
|
@@ -749,7 +749,7 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
749
749
|
financing_company: {
|
|
750
750
|
number: string;
|
|
751
751
|
residence_situation: string;
|
|
752
|
-
state:
|
|
752
|
+
state: string;
|
|
753
753
|
cep: string;
|
|
754
754
|
address: string;
|
|
755
755
|
district: string;
|
|
@@ -769,14 +769,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
769
769
|
};
|
|
770
770
|
financing_company_guarantor: {
|
|
771
771
|
number: string;
|
|
772
|
-
sex:
|
|
773
|
-
type_doc:
|
|
772
|
+
sex: string;
|
|
773
|
+
type_doc: string;
|
|
774
774
|
residence_situation: string;
|
|
775
775
|
pep_relationship: string;
|
|
776
776
|
civil_status: string;
|
|
777
|
-
state:
|
|
778
|
-
uf_naturalness:
|
|
779
|
-
uf_issuing_body:
|
|
777
|
+
state: string;
|
|
778
|
+
uf_naturalness: string;
|
|
779
|
+
uf_issuing_body: string;
|
|
780
780
|
doc_issue_date: string;
|
|
781
781
|
name: string;
|
|
782
782
|
cep: string;
|
|
@@ -824,7 +824,7 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
824
824
|
financing_company: {
|
|
825
825
|
number: string;
|
|
826
826
|
residence_situation: string;
|
|
827
|
-
state:
|
|
827
|
+
state: string;
|
|
828
828
|
cep: string;
|
|
829
829
|
address: string;
|
|
830
830
|
district: string;
|
|
@@ -844,14 +844,14 @@ declare const bvPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
844
844
|
};
|
|
845
845
|
financing_company_guarantor: {
|
|
846
846
|
number: string;
|
|
847
|
-
sex:
|
|
848
|
-
type_doc:
|
|
847
|
+
sex: string;
|
|
848
|
+
type_doc: string;
|
|
849
849
|
residence_situation: string;
|
|
850
850
|
pep_relationship: string;
|
|
851
851
|
civil_status: string;
|
|
852
|
-
state:
|
|
853
|
-
uf_naturalness:
|
|
854
|
-
uf_issuing_body:
|
|
852
|
+
state: string;
|
|
853
|
+
uf_naturalness: string;
|
|
854
|
+
uf_issuing_body: string;
|
|
855
855
|
doc_issue_date: string;
|
|
856
856
|
name: string;
|
|
857
857
|
cep: string;
|
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BvPJSchema.ts
|
|
6
|
-
var
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
7
|
+
function textField(maxLength) {
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
9
|
+
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
10
|
+
}
|
|
11
|
+
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");
|
|
13
|
+
function enumField(values) {
|
|
14
|
+
return zod.z.enum(values, {
|
|
15
|
+
errorMap: (issue, ctx) => {
|
|
16
|
+
if (issue.code === zod.z.ZodIssueCode.invalid_type || issue.code === zod.z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
17
|
+
return { message: REQUIRED_MESSAGE };
|
|
18
|
+
}
|
|
19
|
+
return { message: ctx.defaultError };
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
24
|
+
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
25
|
+
var fileUploadField = zod.z.object({
|
|
26
|
+
url: zod.z.string().url().optional(),
|
|
27
|
+
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
28
|
+
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
29
|
+
}),
|
|
30
|
+
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
7
35
|
"documento_de_identidade",
|
|
8
36
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
37
|
]);
|
|
10
|
-
|
|
11
|
-
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
12
44
|
"AC",
|
|
13
45
|
"AL",
|
|
14
46
|
"AP",
|
|
@@ -37,21 +69,6 @@ var UfEnum = zod.z.enum([
|
|
|
37
69
|
"SE",
|
|
38
70
|
"TO"
|
|
39
71
|
]);
|
|
40
|
-
function textField(maxLength) {
|
|
41
|
-
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
42
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
43
|
-
}
|
|
44
|
-
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
45
|
-
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");
|
|
46
|
-
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
47
|
-
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
48
|
-
var fileUploadField = zod.z.object({
|
|
49
|
-
url: zod.z.string().url().optional(),
|
|
50
|
-
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
51
|
-
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
52
|
-
}),
|
|
53
|
-
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
54
|
-
});
|
|
55
72
|
|
|
56
73
|
// src/shared/regex/patterns.ts
|
|
57
74
|
var PATTERNS = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bvPjObject, bvPjSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { bvPjObject, bvPjSchema } from '../../../chunk-F76ICRGY.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|
|
@@ -7,20 +7,20 @@ declare const caixaEconomicaFederalPfObject: z.ZodObject<{
|
|
|
7
7
|
address: z.ZodString;
|
|
8
8
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
9
9
|
number: z.ZodString;
|
|
10
|
-
sex: z.ZodEnum<[
|
|
10
|
+
sex: z.ZodEnum<[string, string]>;
|
|
11
11
|
complement: z.ZodOptional<z.ZodString>;
|
|
12
12
|
mother_name: z.ZodString;
|
|
13
13
|
district: z.ZodString;
|
|
14
14
|
energy_account_in_requester_name: z.ZodString;
|
|
15
15
|
city: z.ZodString;
|
|
16
16
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
17
|
-
state: z.ZodEnum<[
|
|
17
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
18
18
|
nationality: z.ZodString;
|
|
19
19
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
20
20
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
monthly_income: z.ZodNumber;
|
|
22
22
|
profession: z.ZodString;
|
|
23
|
-
type_doc: z.ZodEnum<[
|
|
23
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
24
24
|
doc: z.ZodString;
|
|
25
25
|
issuing_body: z.ZodString;
|
|
26
26
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -79,9 +79,9 @@ declare const caixaEconomicaFederalPfObject: z.ZodObject<{
|
|
|
79
79
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
number: string;
|
|
82
|
-
sex:
|
|
83
|
-
type_doc:
|
|
84
|
-
state:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
85
85
|
energy_account_in_requester_name: string;
|
|
86
86
|
doc_issue_date: string;
|
|
87
87
|
name: string;
|
|
@@ -124,9 +124,9 @@ declare const caixaEconomicaFederalPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
129
|
-
state:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
130
130
|
energy_account_in_requester_name: string;
|
|
131
131
|
doc_issue_date: string;
|
|
132
132
|
name: string;
|
|
@@ -175,20 +175,20 @@ declare const caixaEconomicaFederalPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
address: z.ZodString;
|
|
176
176
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
177
177
|
number: z.ZodString;
|
|
178
|
-
sex: z.ZodEnum<[
|
|
178
|
+
sex: z.ZodEnum<[string, string]>;
|
|
179
179
|
complement: z.ZodOptional<z.ZodString>;
|
|
180
180
|
mother_name: z.ZodString;
|
|
181
181
|
district: z.ZodString;
|
|
182
182
|
energy_account_in_requester_name: z.ZodString;
|
|
183
183
|
city: z.ZodString;
|
|
184
184
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
185
|
-
state: z.ZodEnum<[
|
|
185
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
186
186
|
nationality: z.ZodString;
|
|
187
187
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
188
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
189
189
|
monthly_income: z.ZodNumber;
|
|
190
190
|
profession: z.ZodString;
|
|
191
|
-
type_doc: z.ZodEnum<[
|
|
191
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
192
192
|
doc: z.ZodString;
|
|
193
193
|
issuing_body: z.ZodString;
|
|
194
194
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -247,9 +247,9 @@ declare const caixaEconomicaFederalPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
248
248
|
}, "strict", z.ZodTypeAny, {
|
|
249
249
|
number: string;
|
|
250
|
-
sex:
|
|
251
|
-
type_doc:
|
|
252
|
-
state:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
253
253
|
energy_account_in_requester_name: string;
|
|
254
254
|
doc_issue_date: string;
|
|
255
255
|
name: string;
|
|
@@ -292,9 +292,9 @@ declare const caixaEconomicaFederalPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
297
|
-
state:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
298
298
|
energy_account_in_requester_name: string;
|
|
299
299
|
doc_issue_date: string;
|
|
300
300
|
name: string;
|
|
@@ -337,9 +337,9 @@ declare const caixaEconomicaFederalPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
342
|
-
state:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
343
343
|
energy_account_in_requester_name: string;
|
|
344
344
|
doc_issue_date: string;
|
|
345
345
|
name: string;
|
|
@@ -382,9 +382,9 @@ declare const caixaEconomicaFederalPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
387
|
-
state:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
388
388
|
energy_account_in_requester_name: string;
|
|
389
389
|
doc_issue_date: string;
|
|
390
390
|
name: string;
|