@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
|
@@ -9,7 +9,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
9
9
|
months_in_residence: z.ZodNumber;
|
|
10
10
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
11
11
|
number: z.ZodString;
|
|
12
|
-
sex: z.ZodEnum<[
|
|
12
|
+
sex: z.ZodEnum<[string, string]>;
|
|
13
13
|
complement: z.ZodOptional<z.ZodString>;
|
|
14
14
|
is_installation_at_requester: z.ZodString;
|
|
15
15
|
mother_name: z.ZodString;
|
|
@@ -18,9 +18,9 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
18
18
|
city: z.ZodString;
|
|
19
19
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
20
20
|
civil_status: z.ZodString;
|
|
21
|
-
state: z.
|
|
21
|
+
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]>;
|
|
22
22
|
nationality: z.ZodString;
|
|
23
|
-
uf_naturalness: z.
|
|
23
|
+
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]>;
|
|
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>;
|
|
@@ -30,10 +30,10 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
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
32
|
equity_value: z.ZodNumber;
|
|
33
|
-
type_doc: z.ZodEnum<[
|
|
33
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
34
34
|
doc: z.ZodString;
|
|
35
35
|
issuing_body: z.ZodString;
|
|
36
|
-
emitting_state: z.
|
|
36
|
+
emitting_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]>;
|
|
37
37
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
38
38
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
39
39
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -91,11 +91,14 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
91
91
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
number: string;
|
|
94
|
-
sex:
|
|
95
|
-
type_doc:
|
|
94
|
+
sex: string;
|
|
95
|
+
type_doc: string;
|
|
96
96
|
residence_situation: string;
|
|
97
97
|
nature_of_occupation: string;
|
|
98
98
|
civil_status: string;
|
|
99
|
+
state: string;
|
|
100
|
+
uf_naturalness: string;
|
|
101
|
+
emitting_state: string;
|
|
99
102
|
energy_account_in_requester_name: string;
|
|
100
103
|
doc_issue_date: string;
|
|
101
104
|
name: string;
|
|
@@ -106,7 +109,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
106
109
|
mother_name: string;
|
|
107
110
|
district: string;
|
|
108
111
|
city: string;
|
|
109
|
-
state: string;
|
|
110
112
|
nationality: string;
|
|
111
113
|
cellphone: string;
|
|
112
114
|
email: string;
|
|
@@ -130,13 +132,11 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
130
132
|
url?: string | undefined;
|
|
131
133
|
};
|
|
132
134
|
rd_re_insurance_toggle: boolean;
|
|
133
|
-
uf_naturalness: string;
|
|
134
135
|
months_in_residence: number;
|
|
135
136
|
is_installation_at_requester: string;
|
|
136
137
|
naturalness: string;
|
|
137
138
|
company_time: number;
|
|
138
139
|
equity_value: number;
|
|
139
|
-
emitting_state: string;
|
|
140
140
|
pep_relationship?: string | undefined;
|
|
141
141
|
proof_kinship?: {
|
|
142
142
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -148,11 +148,14 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
148
148
|
energy_bill_owner_document?: string | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
number: string;
|
|
151
|
-
sex:
|
|
152
|
-
type_doc:
|
|
151
|
+
sex: string;
|
|
152
|
+
type_doc: string;
|
|
153
153
|
residence_situation: string;
|
|
154
154
|
nature_of_occupation: string;
|
|
155
155
|
civil_status: string;
|
|
156
|
+
state: string;
|
|
157
|
+
uf_naturalness: string;
|
|
158
|
+
emitting_state: string;
|
|
156
159
|
energy_account_in_requester_name: string;
|
|
157
160
|
doc_issue_date: string;
|
|
158
161
|
name: string;
|
|
@@ -163,7 +166,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
163
166
|
mother_name: string;
|
|
164
167
|
district: string;
|
|
165
168
|
city: string;
|
|
166
|
-
state: string;
|
|
167
169
|
nationality: string;
|
|
168
170
|
cellphone: string;
|
|
169
171
|
email: string;
|
|
@@ -186,13 +188,11 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
186
188
|
sizeBytes: number;
|
|
187
189
|
url?: string | undefined;
|
|
188
190
|
};
|
|
189
|
-
uf_naturalness: string;
|
|
190
191
|
months_in_residence: number;
|
|
191
192
|
is_installation_at_requester: string;
|
|
192
193
|
naturalness: string;
|
|
193
194
|
company_time: number;
|
|
194
195
|
equity_value: number;
|
|
195
|
-
emitting_state: string;
|
|
196
196
|
pep_relationship?: string | undefined;
|
|
197
197
|
proof_kinship?: {
|
|
198
198
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -213,7 +213,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
213
213
|
months_in_residence: z.ZodNumber;
|
|
214
214
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
215
215
|
number: z.ZodString;
|
|
216
|
-
sex: z.ZodEnum<[
|
|
216
|
+
sex: z.ZodEnum<[string, string]>;
|
|
217
217
|
complement: z.ZodOptional<z.ZodString>;
|
|
218
218
|
is_installation_at_requester: z.ZodString;
|
|
219
219
|
mother_name: z.ZodString;
|
|
@@ -222,9 +222,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
222
222
|
city: z.ZodString;
|
|
223
223
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
224
224
|
civil_status: z.ZodString;
|
|
225
|
-
state: z.
|
|
225
|
+
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]>;
|
|
226
226
|
nationality: z.ZodString;
|
|
227
|
-
uf_naturalness: z.
|
|
227
|
+
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]>;
|
|
228
228
|
naturalness: z.ZodString;
|
|
229
229
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
230
230
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -234,10 +234,10 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
234
234
|
company_time: z.ZodNumber;
|
|
235
235
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
236
236
|
equity_value: z.ZodNumber;
|
|
237
|
-
type_doc: z.ZodEnum<[
|
|
237
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
238
238
|
doc: z.ZodString;
|
|
239
239
|
issuing_body: z.ZodString;
|
|
240
|
-
emitting_state: z.
|
|
240
|
+
emitting_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]>;
|
|
241
241
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
242
242
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
243
243
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -295,11 +295,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
295
295
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
296
296
|
}, "strict", z.ZodTypeAny, {
|
|
297
297
|
number: string;
|
|
298
|
-
sex:
|
|
299
|
-
type_doc:
|
|
298
|
+
sex: string;
|
|
299
|
+
type_doc: string;
|
|
300
300
|
residence_situation: string;
|
|
301
301
|
nature_of_occupation: string;
|
|
302
302
|
civil_status: string;
|
|
303
|
+
state: string;
|
|
304
|
+
uf_naturalness: string;
|
|
305
|
+
emitting_state: string;
|
|
303
306
|
energy_account_in_requester_name: string;
|
|
304
307
|
doc_issue_date: string;
|
|
305
308
|
name: string;
|
|
@@ -310,7 +313,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
313
|
mother_name: string;
|
|
311
314
|
district: string;
|
|
312
315
|
city: string;
|
|
313
|
-
state: string;
|
|
314
316
|
nationality: string;
|
|
315
317
|
cellphone: string;
|
|
316
318
|
email: string;
|
|
@@ -334,13 +336,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
334
336
|
url?: string | undefined;
|
|
335
337
|
};
|
|
336
338
|
rd_re_insurance_toggle: boolean;
|
|
337
|
-
uf_naturalness: string;
|
|
338
339
|
months_in_residence: number;
|
|
339
340
|
is_installation_at_requester: string;
|
|
340
341
|
naturalness: string;
|
|
341
342
|
company_time: number;
|
|
342
343
|
equity_value: number;
|
|
343
|
-
emitting_state: string;
|
|
344
344
|
pep_relationship?: string | undefined;
|
|
345
345
|
proof_kinship?: {
|
|
346
346
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -352,11 +352,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
352
352
|
energy_bill_owner_document?: string | undefined;
|
|
353
353
|
}, {
|
|
354
354
|
number: string;
|
|
355
|
-
sex:
|
|
356
|
-
type_doc:
|
|
355
|
+
sex: string;
|
|
356
|
+
type_doc: string;
|
|
357
357
|
residence_situation: string;
|
|
358
358
|
nature_of_occupation: string;
|
|
359
359
|
civil_status: string;
|
|
360
|
+
state: string;
|
|
361
|
+
uf_naturalness: string;
|
|
362
|
+
emitting_state: string;
|
|
360
363
|
energy_account_in_requester_name: string;
|
|
361
364
|
doc_issue_date: string;
|
|
362
365
|
name: string;
|
|
@@ -367,7 +370,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
367
370
|
mother_name: string;
|
|
368
371
|
district: string;
|
|
369
372
|
city: string;
|
|
370
|
-
state: string;
|
|
371
373
|
nationality: string;
|
|
372
374
|
cellphone: string;
|
|
373
375
|
email: string;
|
|
@@ -390,13 +392,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
390
392
|
sizeBytes: number;
|
|
391
393
|
url?: string | undefined;
|
|
392
394
|
};
|
|
393
|
-
uf_naturalness: string;
|
|
394
395
|
months_in_residence: number;
|
|
395
396
|
is_installation_at_requester: string;
|
|
396
397
|
naturalness: string;
|
|
397
398
|
company_time: number;
|
|
398
399
|
equity_value: number;
|
|
399
|
-
emitting_state: string;
|
|
400
400
|
pep_relationship?: string | undefined;
|
|
401
401
|
proof_kinship?: {
|
|
402
402
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -409,11 +409,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
409
409
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
410
410
|
}>, {
|
|
411
411
|
number: string;
|
|
412
|
-
sex:
|
|
413
|
-
type_doc:
|
|
412
|
+
sex: string;
|
|
413
|
+
type_doc: string;
|
|
414
414
|
residence_situation: string;
|
|
415
415
|
nature_of_occupation: string;
|
|
416
416
|
civil_status: string;
|
|
417
|
+
state: string;
|
|
418
|
+
uf_naturalness: string;
|
|
419
|
+
emitting_state: string;
|
|
417
420
|
energy_account_in_requester_name: string;
|
|
418
421
|
doc_issue_date: string;
|
|
419
422
|
name: string;
|
|
@@ -424,7 +427,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
427
|
mother_name: string;
|
|
425
428
|
district: string;
|
|
426
429
|
city: string;
|
|
427
|
-
state: string;
|
|
428
430
|
nationality: string;
|
|
429
431
|
cellphone: string;
|
|
430
432
|
email: string;
|
|
@@ -448,13 +450,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
448
450
|
url?: string | undefined;
|
|
449
451
|
};
|
|
450
452
|
rd_re_insurance_toggle: boolean;
|
|
451
|
-
uf_naturalness: string;
|
|
452
453
|
months_in_residence: number;
|
|
453
454
|
is_installation_at_requester: string;
|
|
454
455
|
naturalness: string;
|
|
455
456
|
company_time: number;
|
|
456
457
|
equity_value: number;
|
|
457
|
-
emitting_state: string;
|
|
458
458
|
pep_relationship?: string | undefined;
|
|
459
459
|
proof_kinship?: {
|
|
460
460
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -466,11 +466,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
466
466
|
energy_bill_owner_document?: string | undefined;
|
|
467
467
|
}, {
|
|
468
468
|
number: string;
|
|
469
|
-
sex:
|
|
470
|
-
type_doc:
|
|
469
|
+
sex: string;
|
|
470
|
+
type_doc: string;
|
|
471
471
|
residence_situation: string;
|
|
472
472
|
nature_of_occupation: string;
|
|
473
473
|
civil_status: string;
|
|
474
|
+
state: string;
|
|
475
|
+
uf_naturalness: string;
|
|
476
|
+
emitting_state: string;
|
|
474
477
|
energy_account_in_requester_name: string;
|
|
475
478
|
doc_issue_date: string;
|
|
476
479
|
name: string;
|
|
@@ -481,7 +484,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
481
484
|
mother_name: string;
|
|
482
485
|
district: string;
|
|
483
486
|
city: string;
|
|
484
|
-
state: string;
|
|
485
487
|
nationality: string;
|
|
486
488
|
cellphone: string;
|
|
487
489
|
email: string;
|
|
@@ -504,13 +506,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
504
506
|
sizeBytes: number;
|
|
505
507
|
url?: string | undefined;
|
|
506
508
|
};
|
|
507
|
-
uf_naturalness: string;
|
|
508
509
|
months_in_residence: number;
|
|
509
510
|
is_installation_at_requester: string;
|
|
510
511
|
naturalness: string;
|
|
511
512
|
company_time: number;
|
|
512
513
|
equity_value: number;
|
|
513
|
-
emitting_state: string;
|
|
514
514
|
pep_relationship?: string | undefined;
|
|
515
515
|
proof_kinship?: {
|
|
516
516
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -9,7 +9,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
9
9
|
months_in_residence: z.ZodNumber;
|
|
10
10
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
11
11
|
number: z.ZodString;
|
|
12
|
-
sex: z.ZodEnum<[
|
|
12
|
+
sex: z.ZodEnum<[string, string]>;
|
|
13
13
|
complement: z.ZodOptional<z.ZodString>;
|
|
14
14
|
is_installation_at_requester: z.ZodString;
|
|
15
15
|
mother_name: z.ZodString;
|
|
@@ -18,9 +18,9 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
18
18
|
city: z.ZodString;
|
|
19
19
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
20
20
|
civil_status: z.ZodString;
|
|
21
|
-
state: z.
|
|
21
|
+
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]>;
|
|
22
22
|
nationality: z.ZodString;
|
|
23
|
-
uf_naturalness: z.
|
|
23
|
+
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]>;
|
|
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>;
|
|
@@ -30,10 +30,10 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
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
32
|
equity_value: z.ZodNumber;
|
|
33
|
-
type_doc: z.ZodEnum<[
|
|
33
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
34
34
|
doc: z.ZodString;
|
|
35
35
|
issuing_body: z.ZodString;
|
|
36
|
-
emitting_state: z.
|
|
36
|
+
emitting_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]>;
|
|
37
37
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
38
38
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
39
39
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -91,11 +91,14 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
91
91
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
number: string;
|
|
94
|
-
sex:
|
|
95
|
-
type_doc:
|
|
94
|
+
sex: string;
|
|
95
|
+
type_doc: string;
|
|
96
96
|
residence_situation: string;
|
|
97
97
|
nature_of_occupation: string;
|
|
98
98
|
civil_status: string;
|
|
99
|
+
state: string;
|
|
100
|
+
uf_naturalness: string;
|
|
101
|
+
emitting_state: string;
|
|
99
102
|
energy_account_in_requester_name: string;
|
|
100
103
|
doc_issue_date: string;
|
|
101
104
|
name: string;
|
|
@@ -106,7 +109,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
106
109
|
mother_name: string;
|
|
107
110
|
district: string;
|
|
108
111
|
city: string;
|
|
109
|
-
state: string;
|
|
110
112
|
nationality: string;
|
|
111
113
|
cellphone: string;
|
|
112
114
|
email: string;
|
|
@@ -130,13 +132,11 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
130
132
|
url?: string | undefined;
|
|
131
133
|
};
|
|
132
134
|
rd_re_insurance_toggle: boolean;
|
|
133
|
-
uf_naturalness: string;
|
|
134
135
|
months_in_residence: number;
|
|
135
136
|
is_installation_at_requester: string;
|
|
136
137
|
naturalness: string;
|
|
137
138
|
company_time: number;
|
|
138
139
|
equity_value: number;
|
|
139
|
-
emitting_state: string;
|
|
140
140
|
pep_relationship?: string | undefined;
|
|
141
141
|
proof_kinship?: {
|
|
142
142
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -148,11 +148,14 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
148
148
|
energy_bill_owner_document?: string | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
number: string;
|
|
151
|
-
sex:
|
|
152
|
-
type_doc:
|
|
151
|
+
sex: string;
|
|
152
|
+
type_doc: string;
|
|
153
153
|
residence_situation: string;
|
|
154
154
|
nature_of_occupation: string;
|
|
155
155
|
civil_status: string;
|
|
156
|
+
state: string;
|
|
157
|
+
uf_naturalness: string;
|
|
158
|
+
emitting_state: string;
|
|
156
159
|
energy_account_in_requester_name: string;
|
|
157
160
|
doc_issue_date: string;
|
|
158
161
|
name: string;
|
|
@@ -163,7 +166,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
163
166
|
mother_name: string;
|
|
164
167
|
district: string;
|
|
165
168
|
city: string;
|
|
166
|
-
state: string;
|
|
167
169
|
nationality: string;
|
|
168
170
|
cellphone: string;
|
|
169
171
|
email: string;
|
|
@@ -186,13 +188,11 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
186
188
|
sizeBytes: number;
|
|
187
189
|
url?: string | undefined;
|
|
188
190
|
};
|
|
189
|
-
uf_naturalness: string;
|
|
190
191
|
months_in_residence: number;
|
|
191
192
|
is_installation_at_requester: string;
|
|
192
193
|
naturalness: string;
|
|
193
194
|
company_time: number;
|
|
194
195
|
equity_value: number;
|
|
195
|
-
emitting_state: string;
|
|
196
196
|
pep_relationship?: string | undefined;
|
|
197
197
|
proof_kinship?: {
|
|
198
198
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -213,7 +213,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
213
213
|
months_in_residence: z.ZodNumber;
|
|
214
214
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
215
215
|
number: z.ZodString;
|
|
216
|
-
sex: z.ZodEnum<[
|
|
216
|
+
sex: z.ZodEnum<[string, string]>;
|
|
217
217
|
complement: z.ZodOptional<z.ZodString>;
|
|
218
218
|
is_installation_at_requester: z.ZodString;
|
|
219
219
|
mother_name: z.ZodString;
|
|
@@ -222,9 +222,9 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
222
222
|
city: z.ZodString;
|
|
223
223
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
224
224
|
civil_status: z.ZodString;
|
|
225
|
-
state: z.
|
|
225
|
+
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]>;
|
|
226
226
|
nationality: z.ZodString;
|
|
227
|
-
uf_naturalness: z.
|
|
227
|
+
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]>;
|
|
228
228
|
naturalness: z.ZodString;
|
|
229
229
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
230
230
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -234,10 +234,10 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
234
234
|
company_time: z.ZodNumber;
|
|
235
235
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
236
236
|
equity_value: z.ZodNumber;
|
|
237
|
-
type_doc: z.ZodEnum<[
|
|
237
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
238
238
|
doc: z.ZodString;
|
|
239
239
|
issuing_body: z.ZodString;
|
|
240
|
-
emitting_state: z.
|
|
240
|
+
emitting_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]>;
|
|
241
241
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
242
242
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
243
243
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -295,11 +295,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
295
295
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
296
296
|
}, "strict", z.ZodTypeAny, {
|
|
297
297
|
number: string;
|
|
298
|
-
sex:
|
|
299
|
-
type_doc:
|
|
298
|
+
sex: string;
|
|
299
|
+
type_doc: string;
|
|
300
300
|
residence_situation: string;
|
|
301
301
|
nature_of_occupation: string;
|
|
302
302
|
civil_status: string;
|
|
303
|
+
state: string;
|
|
304
|
+
uf_naturalness: string;
|
|
305
|
+
emitting_state: string;
|
|
303
306
|
energy_account_in_requester_name: string;
|
|
304
307
|
doc_issue_date: string;
|
|
305
308
|
name: string;
|
|
@@ -310,7 +313,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
313
|
mother_name: string;
|
|
311
314
|
district: string;
|
|
312
315
|
city: string;
|
|
313
|
-
state: string;
|
|
314
316
|
nationality: string;
|
|
315
317
|
cellphone: string;
|
|
316
318
|
email: string;
|
|
@@ -334,13 +336,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
334
336
|
url?: string | undefined;
|
|
335
337
|
};
|
|
336
338
|
rd_re_insurance_toggle: boolean;
|
|
337
|
-
uf_naturalness: string;
|
|
338
339
|
months_in_residence: number;
|
|
339
340
|
is_installation_at_requester: string;
|
|
340
341
|
naturalness: string;
|
|
341
342
|
company_time: number;
|
|
342
343
|
equity_value: number;
|
|
343
|
-
emitting_state: string;
|
|
344
344
|
pep_relationship?: string | undefined;
|
|
345
345
|
proof_kinship?: {
|
|
346
346
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -352,11 +352,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
352
352
|
energy_bill_owner_document?: string | undefined;
|
|
353
353
|
}, {
|
|
354
354
|
number: string;
|
|
355
|
-
sex:
|
|
356
|
-
type_doc:
|
|
355
|
+
sex: string;
|
|
356
|
+
type_doc: string;
|
|
357
357
|
residence_situation: string;
|
|
358
358
|
nature_of_occupation: string;
|
|
359
359
|
civil_status: string;
|
|
360
|
+
state: string;
|
|
361
|
+
uf_naturalness: string;
|
|
362
|
+
emitting_state: string;
|
|
360
363
|
energy_account_in_requester_name: string;
|
|
361
364
|
doc_issue_date: string;
|
|
362
365
|
name: string;
|
|
@@ -367,7 +370,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
367
370
|
mother_name: string;
|
|
368
371
|
district: string;
|
|
369
372
|
city: string;
|
|
370
|
-
state: string;
|
|
371
373
|
nationality: string;
|
|
372
374
|
cellphone: string;
|
|
373
375
|
email: string;
|
|
@@ -390,13 +392,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
390
392
|
sizeBytes: number;
|
|
391
393
|
url?: string | undefined;
|
|
392
394
|
};
|
|
393
|
-
uf_naturalness: string;
|
|
394
395
|
months_in_residence: number;
|
|
395
396
|
is_installation_at_requester: string;
|
|
396
397
|
naturalness: string;
|
|
397
398
|
company_time: number;
|
|
398
399
|
equity_value: number;
|
|
399
|
-
emitting_state: string;
|
|
400
400
|
pep_relationship?: string | undefined;
|
|
401
401
|
proof_kinship?: {
|
|
402
402
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -409,11 +409,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
409
409
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
410
410
|
}>, {
|
|
411
411
|
number: string;
|
|
412
|
-
sex:
|
|
413
|
-
type_doc:
|
|
412
|
+
sex: string;
|
|
413
|
+
type_doc: string;
|
|
414
414
|
residence_situation: string;
|
|
415
415
|
nature_of_occupation: string;
|
|
416
416
|
civil_status: string;
|
|
417
|
+
state: string;
|
|
418
|
+
uf_naturalness: string;
|
|
419
|
+
emitting_state: string;
|
|
417
420
|
energy_account_in_requester_name: string;
|
|
418
421
|
doc_issue_date: string;
|
|
419
422
|
name: string;
|
|
@@ -424,7 +427,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
424
427
|
mother_name: string;
|
|
425
428
|
district: string;
|
|
426
429
|
city: string;
|
|
427
|
-
state: string;
|
|
428
430
|
nationality: string;
|
|
429
431
|
cellphone: string;
|
|
430
432
|
email: string;
|
|
@@ -448,13 +450,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
448
450
|
url?: string | undefined;
|
|
449
451
|
};
|
|
450
452
|
rd_re_insurance_toggle: boolean;
|
|
451
|
-
uf_naturalness: string;
|
|
452
453
|
months_in_residence: number;
|
|
453
454
|
is_installation_at_requester: string;
|
|
454
455
|
naturalness: string;
|
|
455
456
|
company_time: number;
|
|
456
457
|
equity_value: number;
|
|
457
|
-
emitting_state: string;
|
|
458
458
|
pep_relationship?: string | undefined;
|
|
459
459
|
proof_kinship?: {
|
|
460
460
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -466,11 +466,14 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
466
466
|
energy_bill_owner_document?: string | undefined;
|
|
467
467
|
}, {
|
|
468
468
|
number: string;
|
|
469
|
-
sex:
|
|
470
|
-
type_doc:
|
|
469
|
+
sex: string;
|
|
470
|
+
type_doc: string;
|
|
471
471
|
residence_situation: string;
|
|
472
472
|
nature_of_occupation: string;
|
|
473
473
|
civil_status: string;
|
|
474
|
+
state: string;
|
|
475
|
+
uf_naturalness: string;
|
|
476
|
+
emitting_state: string;
|
|
474
477
|
energy_account_in_requester_name: string;
|
|
475
478
|
doc_issue_date: string;
|
|
476
479
|
name: string;
|
|
@@ -481,7 +484,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
481
484
|
mother_name: string;
|
|
482
485
|
district: string;
|
|
483
486
|
city: string;
|
|
484
|
-
state: string;
|
|
485
487
|
nationality: string;
|
|
486
488
|
cellphone: string;
|
|
487
489
|
email: string;
|
|
@@ -504,13 +506,11 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
504
506
|
sizeBytes: number;
|
|
505
507
|
url?: string | undefined;
|
|
506
508
|
};
|
|
507
|
-
uf_naturalness: string;
|
|
508
509
|
months_in_residence: number;
|
|
509
510
|
is_installation_at_requester: string;
|
|
510
511
|
naturalness: string;
|
|
511
512
|
company_time: number;
|
|
512
513
|
equity_value: number;
|
|
513
|
-
emitting_state: string;
|
|
514
514
|
pep_relationship?: string | undefined;
|
|
515
515
|
proof_kinship?: {
|
|
516
516
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BvPFSchema.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
|
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
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
|
+
}
|
|
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}$/,
|
|
@@ -234,9 +280,9 @@ var bvPfObject = zod.z.object({
|
|
|
234
280
|
city: textField(),
|
|
235
281
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
236
282
|
civil_status: textField(),
|
|
237
|
-
state:
|
|
283
|
+
state: UfEnum,
|
|
238
284
|
nationality: textField(),
|
|
239
|
-
uf_naturalness:
|
|
285
|
+
uf_naturalness: UfEnum,
|
|
240
286
|
naturalness: textField(),
|
|
241
287
|
cellphone: phoneBRSchema,
|
|
242
288
|
email: emailSchema,
|
|
@@ -249,7 +295,7 @@ var bvPfObject = zod.z.object({
|
|
|
249
295
|
type_doc: DocumentTypeEnum,
|
|
250
296
|
doc: textField(15),
|
|
251
297
|
issuing_body: textField(6),
|
|
252
|
-
emitting_state:
|
|
298
|
+
emitting_state: UfEnum,
|
|
253
299
|
doc_issue_date: issueDateSchema,
|
|
254
300
|
pep_relationship: textField().optional()
|
|
255
301
|
});
|