@77sol-lab/form-schemas 1.4.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-XXID67A4.mjs → chunk-2CN56LSL.mjs} +3 -3
- package/{chunk-36ZWNLRE.mjs → chunk-2W3LQ75V.mjs} +6 -6
- package/{chunk-TIB6TEME.mjs → chunk-2YVK6IDS.mjs} +19 -10
- package/{chunk-2NFFUOYG.mjs → chunk-3BPZV6IW.mjs} +3 -3
- package/{chunk-BCQD5NJB.mjs → chunk-3O52U22S.mjs} +3 -3
- package/{chunk-3QVWHHHF.mjs → chunk-3RSZ4NGE.mjs} +4 -4
- package/{chunk-ENVJMMCX.mjs → chunk-6HBDXEIK.mjs} +6 -6
- package/{chunk-UHQAHHAO.mjs → chunk-6TFRV3FG.mjs} +3 -3
- package/{chunk-PP5WJMGB.mjs → chunk-7ZERTOE7.mjs} +3 -3
- package/{chunk-HK7VVKRF.mjs → chunk-AURTWOTB.mjs} +11 -11
- package/{chunk-QH5BHXWK.mjs → chunk-DERWNSPY.mjs} +3 -3
- package/{chunk-BPWVGI53.mjs → chunk-F76ICRGY.mjs} +6 -6
- package/{chunk-MUFER7FT.mjs → chunk-FT5BAKSG.mjs} +3 -3
- package/{chunk-VMIR7MGU.mjs → chunk-GR2PK3Z7.mjs} +3 -3
- package/{chunk-RFML2PIV.mjs → chunk-HHJNVLHK.mjs} +3 -3
- package/{chunk-YZ3YYQEI.mjs → chunk-HZM2PWYJ.mjs} +3 -3
- package/{chunk-BTHGPT5U.mjs → chunk-JPFAMQGV.mjs} +3 -3
- package/{chunk-QBQDE5Y7.mjs → chunk-MDK5KVJT.mjs} +3 -3
- package/{chunk-2VGGCJ2O.mjs → chunk-O7OHCS36.mjs} +3 -3
- package/{chunk-AXXSWRN2.mjs → chunk-OMDC46YE.mjs} +3 -3
- package/{chunk-DIARPLFL.mjs → chunk-OUVNM2RX.mjs} +3 -3
- package/{chunk-X3M274QY.mjs → chunk-OX3X37VR.mjs} +5 -5
- package/{chunk-PZG2YKS4.mjs → chunk-P54HBDOE.mjs} +3 -3
- package/{chunk-A5ZODVEU.mjs → chunk-PO6GQE6E.mjs} +3 -3
- package/{chunk-QZR62OU5.mjs → chunk-THYAK7O3.mjs} +3 -3
- package/{chunk-DWXCA5I6.mjs → chunk-VGFPONIS.mjs} +3 -3
- package/{chunk-XZSZRCO2.mjs → chunk-WGPPH7DC.mjs} +3 -3
- package/{chunk-BZ4V4AAJ.mjs → chunk-WPLLR3SO.mjs} +3 -3
- package/{chunk-PYKWBM67.mjs → chunk-WRJAOYL6.mjs} +3 -3
- package/{chunk-7I2LXGA2.mjs → chunk-XII4F5RZ.mjs} +2 -2
- package/{chunk-SKFIWDPV.mjs → chunk-Y3FAMPYF.mjs} +90 -17
- package/{chunk-LZCHOENM.mjs → chunk-YNVJAGAY.mjs} +41 -35
- package/{chunk-3LKC3OJJ.mjs → chunk-YQJCILG3.mjs} +3 -3
- package/financing/formalization/index.d.cts +1451 -1306
- package/financing/formalization/index.d.ts +1451 -1306
- package/financing/formalization/index.js +179 -87
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +56 -10
- 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 +55 -9
- 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 +56 -10
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +56 -10
- 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 +53 -7
- 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 +49 -5
- 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 +81 -25
- 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 +61 -15
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +179 -87
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -15,16 +15,16 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
15
15
|
legal_nature: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
17
17
|
economic_activity_group: z.ZodString;
|
|
18
|
-
state: z.
|
|
18
|
+
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]>;
|
|
19
19
|
economic_activity: z.ZodString;
|
|
20
20
|
monthly_income: z.ZodNumber;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
22
|
number: string;
|
|
23
|
+
state: string;
|
|
23
24
|
cep: string;
|
|
24
25
|
address: string;
|
|
25
26
|
district: string;
|
|
26
27
|
city: string;
|
|
27
|
-
state: string;
|
|
28
28
|
email: string;
|
|
29
29
|
monthly_income: number;
|
|
30
30
|
corporate_name: string;
|
|
@@ -37,11 +37,11 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
37
37
|
complement?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
number: string;
|
|
40
|
+
state: string;
|
|
40
41
|
cep: string;
|
|
41
42
|
address: string;
|
|
42
43
|
district: string;
|
|
43
44
|
city: string;
|
|
44
|
-
state: string;
|
|
45
45
|
email: string;
|
|
46
46
|
monthly_income: number;
|
|
47
47
|
corporate_name: string;
|
|
@@ -65,27 +65,30 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
65
65
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
66
66
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
67
67
|
district: z.ZodString;
|
|
68
|
-
sex: z.ZodEnum<[
|
|
68
|
+
sex: z.ZodEnum<[string, string]>;
|
|
69
69
|
city: z.ZodString;
|
|
70
|
-
state: z.
|
|
70
|
+
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]>;
|
|
71
71
|
civil_status: z.ZodString;
|
|
72
72
|
office: z.ZodString;
|
|
73
|
-
type_doc: z.ZodEnum<[
|
|
73
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
74
74
|
doc: z.ZodString;
|
|
75
75
|
issuing_body: z.ZodString;
|
|
76
|
-
uf_issuing_body: z.
|
|
76
|
+
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]>;
|
|
77
77
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
78
78
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
79
79
|
mother_name: z.ZodString;
|
|
80
80
|
monthly_income: z.ZodNumber;
|
|
81
81
|
patrimony: z.ZodNumber;
|
|
82
|
-
uf_naturalness: z.
|
|
82
|
+
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]>;
|
|
83
83
|
nationality: z.ZodString;
|
|
84
84
|
}, "strict", z.ZodTypeAny, {
|
|
85
85
|
number: string;
|
|
86
|
-
sex:
|
|
87
|
-
type_doc:
|
|
86
|
+
sex: string;
|
|
87
|
+
type_doc: string;
|
|
88
88
|
civil_status: string;
|
|
89
|
+
state: string;
|
|
90
|
+
uf_naturalness: string;
|
|
91
|
+
uf_issuing_body: string;
|
|
89
92
|
doc_issue_date: string;
|
|
90
93
|
name: string;
|
|
91
94
|
cep: string;
|
|
@@ -95,7 +98,6 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
95
98
|
mother_name: string;
|
|
96
99
|
district: string;
|
|
97
100
|
city: string;
|
|
98
|
-
state: string;
|
|
99
101
|
nationality: string;
|
|
100
102
|
cellphone: string;
|
|
101
103
|
email: string;
|
|
@@ -104,16 +106,17 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
104
106
|
issuing_body: string;
|
|
105
107
|
phone: string;
|
|
106
108
|
office: string;
|
|
107
|
-
uf_issuing_body: string;
|
|
108
109
|
doc_expiration_date: string;
|
|
109
110
|
patrimony: number;
|
|
110
|
-
uf_naturalness: string;
|
|
111
111
|
complement?: string | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
number: string;
|
|
114
|
-
sex:
|
|
115
|
-
type_doc:
|
|
114
|
+
sex: string;
|
|
115
|
+
type_doc: string;
|
|
116
116
|
civil_status: string;
|
|
117
|
+
state: string;
|
|
118
|
+
uf_naturalness: string;
|
|
119
|
+
uf_issuing_body: string;
|
|
117
120
|
doc_issue_date: string;
|
|
118
121
|
name: string;
|
|
119
122
|
cep: string;
|
|
@@ -123,7 +126,6 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
123
126
|
mother_name: string;
|
|
124
127
|
district: string;
|
|
125
128
|
city: string;
|
|
126
|
-
state: string;
|
|
127
129
|
nationality: string;
|
|
128
130
|
cellphone: string;
|
|
129
131
|
email: string;
|
|
@@ -132,10 +134,8 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
132
134
|
issuing_body: string;
|
|
133
135
|
phone: string;
|
|
134
136
|
office: string;
|
|
135
|
-
uf_issuing_body: string;
|
|
136
137
|
doc_expiration_date: string;
|
|
137
138
|
patrimony: number;
|
|
138
|
-
uf_naturalness: string;
|
|
139
139
|
complement?: string | undefined;
|
|
140
140
|
}>, "many">;
|
|
141
141
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -210,11 +210,11 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
210
210
|
rd_re_insurance_toggle: boolean;
|
|
211
211
|
financing_company: {
|
|
212
212
|
number: string;
|
|
213
|
+
state: string;
|
|
213
214
|
cep: string;
|
|
214
215
|
address: string;
|
|
215
216
|
district: string;
|
|
216
217
|
city: string;
|
|
217
|
-
state: string;
|
|
218
218
|
email: string;
|
|
219
219
|
monthly_income: number;
|
|
220
220
|
corporate_name: string;
|
|
@@ -228,9 +228,12 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
228
228
|
};
|
|
229
229
|
financing_company_guarantor: {
|
|
230
230
|
number: string;
|
|
231
|
-
sex:
|
|
232
|
-
type_doc:
|
|
231
|
+
sex: string;
|
|
232
|
+
type_doc: string;
|
|
233
233
|
civil_status: string;
|
|
234
|
+
state: string;
|
|
235
|
+
uf_naturalness: string;
|
|
236
|
+
uf_issuing_body: string;
|
|
234
237
|
doc_issue_date: string;
|
|
235
238
|
name: string;
|
|
236
239
|
cep: string;
|
|
@@ -240,7 +243,6 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
240
243
|
mother_name: string;
|
|
241
244
|
district: string;
|
|
242
245
|
city: string;
|
|
243
|
-
state: string;
|
|
244
246
|
nationality: string;
|
|
245
247
|
cellphone: string;
|
|
246
248
|
email: string;
|
|
@@ -249,10 +251,8 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
249
251
|
issuing_body: string;
|
|
250
252
|
phone: string;
|
|
251
253
|
office: string;
|
|
252
|
-
uf_issuing_body: string;
|
|
253
254
|
doc_expiration_date: string;
|
|
254
255
|
patrimony: number;
|
|
255
|
-
uf_naturalness: string;
|
|
256
256
|
complement?: string | undefined;
|
|
257
257
|
}[];
|
|
258
258
|
proof_kinship?: {
|
|
@@ -278,11 +278,11 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
278
278
|
};
|
|
279
279
|
financing_company: {
|
|
280
280
|
number: string;
|
|
281
|
+
state: string;
|
|
281
282
|
cep: string;
|
|
282
283
|
address: string;
|
|
283
284
|
district: string;
|
|
284
285
|
city: string;
|
|
285
|
-
state: string;
|
|
286
286
|
email: string;
|
|
287
287
|
monthly_income: number;
|
|
288
288
|
corporate_name: string;
|
|
@@ -296,9 +296,12 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
296
296
|
};
|
|
297
297
|
financing_company_guarantor: {
|
|
298
298
|
number: string;
|
|
299
|
-
sex:
|
|
300
|
-
type_doc:
|
|
299
|
+
sex: string;
|
|
300
|
+
type_doc: string;
|
|
301
301
|
civil_status: string;
|
|
302
|
+
state: string;
|
|
303
|
+
uf_naturalness: string;
|
|
304
|
+
uf_issuing_body: string;
|
|
302
305
|
doc_issue_date: string;
|
|
303
306
|
name: string;
|
|
304
307
|
cep: string;
|
|
@@ -308,7 +311,6 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
308
311
|
mother_name: string;
|
|
309
312
|
district: string;
|
|
310
313
|
city: string;
|
|
311
|
-
state: string;
|
|
312
314
|
nationality: string;
|
|
313
315
|
cellphone: string;
|
|
314
316
|
email: string;
|
|
@@ -317,10 +319,8 @@ declare const btgPjObject: z.ZodObject<{
|
|
|
317
319
|
issuing_body: string;
|
|
318
320
|
phone: string;
|
|
319
321
|
office: string;
|
|
320
|
-
uf_issuing_body: string;
|
|
321
322
|
doc_expiration_date: string;
|
|
322
323
|
patrimony: number;
|
|
323
|
-
uf_naturalness: string;
|
|
324
324
|
complement?: string | undefined;
|
|
325
325
|
}[];
|
|
326
326
|
proof_kinship?: {
|
|
@@ -345,16 +345,16 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
345
345
|
legal_nature: z.ZodString;
|
|
346
346
|
city: z.ZodString;
|
|
347
347
|
economic_activity_group: z.ZodString;
|
|
348
|
-
state: z.
|
|
348
|
+
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]>;
|
|
349
349
|
economic_activity: z.ZodString;
|
|
350
350
|
monthly_income: z.ZodNumber;
|
|
351
351
|
}, "strict", z.ZodTypeAny, {
|
|
352
352
|
number: string;
|
|
353
|
+
state: string;
|
|
353
354
|
cep: string;
|
|
354
355
|
address: string;
|
|
355
356
|
district: string;
|
|
356
357
|
city: string;
|
|
357
|
-
state: string;
|
|
358
358
|
email: string;
|
|
359
359
|
monthly_income: number;
|
|
360
360
|
corporate_name: string;
|
|
@@ -367,11 +367,11 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
367
367
|
complement?: string | undefined;
|
|
368
368
|
}, {
|
|
369
369
|
number: string;
|
|
370
|
+
state: string;
|
|
370
371
|
cep: string;
|
|
371
372
|
address: string;
|
|
372
373
|
district: string;
|
|
373
374
|
city: string;
|
|
374
|
-
state: string;
|
|
375
375
|
email: string;
|
|
376
376
|
monthly_income: number;
|
|
377
377
|
corporate_name: string;
|
|
@@ -395,27 +395,30 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
395
395
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
396
396
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
397
397
|
district: z.ZodString;
|
|
398
|
-
sex: z.ZodEnum<[
|
|
398
|
+
sex: z.ZodEnum<[string, string]>;
|
|
399
399
|
city: z.ZodString;
|
|
400
|
-
state: z.
|
|
400
|
+
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]>;
|
|
401
401
|
civil_status: z.ZodString;
|
|
402
402
|
office: z.ZodString;
|
|
403
|
-
type_doc: z.ZodEnum<[
|
|
403
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
404
404
|
doc: z.ZodString;
|
|
405
405
|
issuing_body: z.ZodString;
|
|
406
|
-
uf_issuing_body: z.
|
|
406
|
+
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]>;
|
|
407
407
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
408
408
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
409
409
|
mother_name: z.ZodString;
|
|
410
410
|
monthly_income: z.ZodNumber;
|
|
411
411
|
patrimony: z.ZodNumber;
|
|
412
|
-
uf_naturalness: z.
|
|
412
|
+
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]>;
|
|
413
413
|
nationality: z.ZodString;
|
|
414
414
|
}, "strict", z.ZodTypeAny, {
|
|
415
415
|
number: string;
|
|
416
|
-
sex:
|
|
417
|
-
type_doc:
|
|
416
|
+
sex: string;
|
|
417
|
+
type_doc: string;
|
|
418
418
|
civil_status: string;
|
|
419
|
+
state: string;
|
|
420
|
+
uf_naturalness: string;
|
|
421
|
+
uf_issuing_body: string;
|
|
419
422
|
doc_issue_date: string;
|
|
420
423
|
name: string;
|
|
421
424
|
cep: string;
|
|
@@ -425,7 +428,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
425
428
|
mother_name: string;
|
|
426
429
|
district: string;
|
|
427
430
|
city: string;
|
|
428
|
-
state: string;
|
|
429
431
|
nationality: string;
|
|
430
432
|
cellphone: string;
|
|
431
433
|
email: string;
|
|
@@ -434,16 +436,17 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
434
436
|
issuing_body: string;
|
|
435
437
|
phone: string;
|
|
436
438
|
office: string;
|
|
437
|
-
uf_issuing_body: string;
|
|
438
439
|
doc_expiration_date: string;
|
|
439
440
|
patrimony: number;
|
|
440
|
-
uf_naturalness: string;
|
|
441
441
|
complement?: string | undefined;
|
|
442
442
|
}, {
|
|
443
443
|
number: string;
|
|
444
|
-
sex:
|
|
445
|
-
type_doc:
|
|
444
|
+
sex: string;
|
|
445
|
+
type_doc: string;
|
|
446
446
|
civil_status: string;
|
|
447
|
+
state: string;
|
|
448
|
+
uf_naturalness: string;
|
|
449
|
+
uf_issuing_body: string;
|
|
447
450
|
doc_issue_date: string;
|
|
448
451
|
name: string;
|
|
449
452
|
cep: string;
|
|
@@ -453,7 +456,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
453
456
|
mother_name: string;
|
|
454
457
|
district: string;
|
|
455
458
|
city: string;
|
|
456
|
-
state: string;
|
|
457
459
|
nationality: string;
|
|
458
460
|
cellphone: string;
|
|
459
461
|
email: string;
|
|
@@ -462,10 +464,8 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
462
464
|
issuing_body: string;
|
|
463
465
|
phone: string;
|
|
464
466
|
office: string;
|
|
465
|
-
uf_issuing_body: string;
|
|
466
467
|
doc_expiration_date: string;
|
|
467
468
|
patrimony: number;
|
|
468
|
-
uf_naturalness: string;
|
|
469
469
|
complement?: string | undefined;
|
|
470
470
|
}>, "many">;
|
|
471
471
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -540,11 +540,11 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
540
540
|
rd_re_insurance_toggle: boolean;
|
|
541
541
|
financing_company: {
|
|
542
542
|
number: string;
|
|
543
|
+
state: string;
|
|
543
544
|
cep: string;
|
|
544
545
|
address: string;
|
|
545
546
|
district: string;
|
|
546
547
|
city: string;
|
|
547
|
-
state: string;
|
|
548
548
|
email: string;
|
|
549
549
|
monthly_income: number;
|
|
550
550
|
corporate_name: string;
|
|
@@ -558,9 +558,12 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
558
558
|
};
|
|
559
559
|
financing_company_guarantor: {
|
|
560
560
|
number: string;
|
|
561
|
-
sex:
|
|
562
|
-
type_doc:
|
|
561
|
+
sex: string;
|
|
562
|
+
type_doc: string;
|
|
563
563
|
civil_status: string;
|
|
564
|
+
state: string;
|
|
565
|
+
uf_naturalness: string;
|
|
566
|
+
uf_issuing_body: string;
|
|
564
567
|
doc_issue_date: string;
|
|
565
568
|
name: string;
|
|
566
569
|
cep: string;
|
|
@@ -570,7 +573,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
570
573
|
mother_name: string;
|
|
571
574
|
district: string;
|
|
572
575
|
city: string;
|
|
573
|
-
state: string;
|
|
574
576
|
nationality: string;
|
|
575
577
|
cellphone: string;
|
|
576
578
|
email: string;
|
|
@@ -579,10 +581,8 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
579
581
|
issuing_body: string;
|
|
580
582
|
phone: string;
|
|
581
583
|
office: string;
|
|
582
|
-
uf_issuing_body: string;
|
|
583
584
|
doc_expiration_date: string;
|
|
584
585
|
patrimony: number;
|
|
585
|
-
uf_naturalness: string;
|
|
586
586
|
complement?: string | undefined;
|
|
587
587
|
}[];
|
|
588
588
|
proof_kinship?: {
|
|
@@ -608,11 +608,11 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
608
608
|
};
|
|
609
609
|
financing_company: {
|
|
610
610
|
number: string;
|
|
611
|
+
state: string;
|
|
611
612
|
cep: string;
|
|
612
613
|
address: string;
|
|
613
614
|
district: string;
|
|
614
615
|
city: string;
|
|
615
|
-
state: string;
|
|
616
616
|
email: string;
|
|
617
617
|
monthly_income: number;
|
|
618
618
|
corporate_name: string;
|
|
@@ -626,9 +626,12 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
626
626
|
};
|
|
627
627
|
financing_company_guarantor: {
|
|
628
628
|
number: string;
|
|
629
|
-
sex:
|
|
630
|
-
type_doc:
|
|
629
|
+
sex: string;
|
|
630
|
+
type_doc: string;
|
|
631
631
|
civil_status: string;
|
|
632
|
+
state: string;
|
|
633
|
+
uf_naturalness: string;
|
|
634
|
+
uf_issuing_body: string;
|
|
632
635
|
doc_issue_date: string;
|
|
633
636
|
name: string;
|
|
634
637
|
cep: string;
|
|
@@ -638,7 +641,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
638
641
|
mother_name: string;
|
|
639
642
|
district: string;
|
|
640
643
|
city: string;
|
|
641
|
-
state: string;
|
|
642
644
|
nationality: string;
|
|
643
645
|
cellphone: string;
|
|
644
646
|
email: string;
|
|
@@ -647,10 +649,8 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
647
649
|
issuing_body: string;
|
|
648
650
|
phone: string;
|
|
649
651
|
office: string;
|
|
650
|
-
uf_issuing_body: string;
|
|
651
652
|
doc_expiration_date: string;
|
|
652
653
|
patrimony: number;
|
|
653
|
-
uf_naturalness: string;
|
|
654
654
|
complement?: string | undefined;
|
|
655
655
|
}[];
|
|
656
656
|
proof_kinship?: {
|
|
@@ -678,11 +678,11 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
678
678
|
rd_re_insurance_toggle: boolean;
|
|
679
679
|
financing_company: {
|
|
680
680
|
number: string;
|
|
681
|
+
state: string;
|
|
681
682
|
cep: string;
|
|
682
683
|
address: string;
|
|
683
684
|
district: string;
|
|
684
685
|
city: string;
|
|
685
|
-
state: string;
|
|
686
686
|
email: string;
|
|
687
687
|
monthly_income: number;
|
|
688
688
|
corporate_name: string;
|
|
@@ -696,9 +696,12 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
696
696
|
};
|
|
697
697
|
financing_company_guarantor: {
|
|
698
698
|
number: string;
|
|
699
|
-
sex:
|
|
700
|
-
type_doc:
|
|
699
|
+
sex: string;
|
|
700
|
+
type_doc: string;
|
|
701
701
|
civil_status: string;
|
|
702
|
+
state: string;
|
|
703
|
+
uf_naturalness: string;
|
|
704
|
+
uf_issuing_body: string;
|
|
702
705
|
doc_issue_date: string;
|
|
703
706
|
name: string;
|
|
704
707
|
cep: string;
|
|
@@ -708,7 +711,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
708
711
|
mother_name: string;
|
|
709
712
|
district: string;
|
|
710
713
|
city: string;
|
|
711
|
-
state: string;
|
|
712
714
|
nationality: string;
|
|
713
715
|
cellphone: string;
|
|
714
716
|
email: string;
|
|
@@ -717,10 +719,8 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
717
719
|
issuing_body: string;
|
|
718
720
|
phone: string;
|
|
719
721
|
office: string;
|
|
720
|
-
uf_issuing_body: string;
|
|
721
722
|
doc_expiration_date: string;
|
|
722
723
|
patrimony: number;
|
|
723
|
-
uf_naturalness: string;
|
|
724
724
|
complement?: string | undefined;
|
|
725
725
|
}[];
|
|
726
726
|
proof_kinship?: {
|
|
@@ -746,11 +746,11 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
746
746
|
};
|
|
747
747
|
financing_company: {
|
|
748
748
|
number: string;
|
|
749
|
+
state: string;
|
|
749
750
|
cep: string;
|
|
750
751
|
address: string;
|
|
751
752
|
district: string;
|
|
752
753
|
city: string;
|
|
753
|
-
state: string;
|
|
754
754
|
email: string;
|
|
755
755
|
monthly_income: number;
|
|
756
756
|
corporate_name: string;
|
|
@@ -764,9 +764,12 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
764
764
|
};
|
|
765
765
|
financing_company_guarantor: {
|
|
766
766
|
number: string;
|
|
767
|
-
sex:
|
|
768
|
-
type_doc:
|
|
767
|
+
sex: string;
|
|
768
|
+
type_doc: string;
|
|
769
769
|
civil_status: string;
|
|
770
|
+
state: string;
|
|
771
|
+
uf_naturalness: string;
|
|
772
|
+
uf_issuing_body: string;
|
|
770
773
|
doc_issue_date: string;
|
|
771
774
|
name: string;
|
|
772
775
|
cep: string;
|
|
@@ -776,7 +779,6 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
776
779
|
mother_name: string;
|
|
777
780
|
district: string;
|
|
778
781
|
city: string;
|
|
779
|
-
state: string;
|
|
780
782
|
nationality: string;
|
|
781
783
|
cellphone: string;
|
|
782
784
|
email: string;
|
|
@@ -785,10 +787,8 @@ declare const btgPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
785
787
|
issuing_body: string;
|
|
786
788
|
phone: string;
|
|
787
789
|
office: string;
|
|
788
|
-
uf_issuing_body: string;
|
|
789
790
|
doc_expiration_date: string;
|
|
790
791
|
patrimony: number;
|
|
791
|
-
uf_naturalness: string;
|
|
792
792
|
complement?: string | undefined;
|
|
793
793
|
}[];
|
|
794
794
|
proof_kinship?: {
|
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BtgPJSchema.ts
|
|
6
|
-
var
|
|
7
|
-
"documento_de_identidade",
|
|
8
|
-
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
|
-
]);
|
|
10
|
-
var SexEnum = zod.z.enum(["masculino", "feminino"]);
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
11
7
|
function textField(maxLength) {
|
|
12
|
-
const base = zod.z.string().trim().min(1,
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
13
9
|
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
14
10
|
}
|
|
15
11
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
12
|
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
|
+
}
|
|
17
23
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
18
24
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
19
25
|
var fileUploadField = zod.z.object({
|
|
@@ -24,6 +30,46 @@ var fileUploadField = zod.z.object({
|
|
|
24
30
|
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
25
31
|
});
|
|
26
32
|
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
35
|
+
"documento_de_identidade",
|
|
36
|
+
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
44
|
+
"AC",
|
|
45
|
+
"AL",
|
|
46
|
+
"AP",
|
|
47
|
+
"AM",
|
|
48
|
+
"BA",
|
|
49
|
+
"CE",
|
|
50
|
+
"DF",
|
|
51
|
+
"ES",
|
|
52
|
+
"GO",
|
|
53
|
+
"MA",
|
|
54
|
+
"MT",
|
|
55
|
+
"MS",
|
|
56
|
+
"MG",
|
|
57
|
+
"PA",
|
|
58
|
+
"PB",
|
|
59
|
+
"PR",
|
|
60
|
+
"PE",
|
|
61
|
+
"PI",
|
|
62
|
+
"RJ",
|
|
63
|
+
"RN",
|
|
64
|
+
"RS",
|
|
65
|
+
"RO",
|
|
66
|
+
"RR",
|
|
67
|
+
"SC",
|
|
68
|
+
"SP",
|
|
69
|
+
"SE",
|
|
70
|
+
"TO"
|
|
71
|
+
]);
|
|
72
|
+
|
|
27
73
|
// src/shared/regex/patterns.ts
|
|
28
74
|
var PATTERNS = {
|
|
29
75
|
cpf: /^\d{11}$/,
|
|
@@ -170,7 +216,7 @@ var btgPjObject = zod.z.object({
|
|
|
170
216
|
legal_nature: textField(),
|
|
171
217
|
city: textField(),
|
|
172
218
|
economic_activity_group: textField(),
|
|
173
|
-
state:
|
|
219
|
+
state: UfEnum,
|
|
174
220
|
economic_activity: textField(),
|
|
175
221
|
monthly_income: currencySchema
|
|
176
222
|
}).strict(),
|
|
@@ -189,19 +235,19 @@ var btgPjObject = zod.z.object({
|
|
|
189
235
|
district: textField(),
|
|
190
236
|
sex: SexEnum,
|
|
191
237
|
city: textField(),
|
|
192
|
-
state:
|
|
238
|
+
state: UfEnum,
|
|
193
239
|
civil_status: textField(),
|
|
194
240
|
office: textField(),
|
|
195
241
|
type_doc: DocumentTypeEnum,
|
|
196
242
|
doc: textField(),
|
|
197
243
|
issuing_body: textField(),
|
|
198
|
-
uf_issuing_body:
|
|
244
|
+
uf_issuing_body: UfEnum,
|
|
199
245
|
doc_issue_date: issueDateSchema,
|
|
200
246
|
doc_expiration_date: dateDMYSchema,
|
|
201
247
|
mother_name: textField(),
|
|
202
248
|
monthly_income: currencySchema,
|
|
203
249
|
patrimony: currencySchema,
|
|
204
|
-
uf_naturalness:
|
|
250
|
+
uf_naturalness: UfEnum,
|
|
205
251
|
nationality: textField()
|
|
206
252
|
}).strict()
|
|
207
253
|
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { btgPjObject, btgPjSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { btgPjObject, btgPjSchema } from '../../../chunk-6HBDXEIK.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|