@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
|
@@ -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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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,14 +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:
|
|
100
|
-
uf_naturalness:
|
|
101
|
-
emitting_state:
|
|
99
|
+
state: string;
|
|
100
|
+
uf_naturalness: string;
|
|
101
|
+
emitting_state: string;
|
|
102
102
|
energy_account_in_requester_name: string;
|
|
103
103
|
doc_issue_date: string;
|
|
104
104
|
name: string;
|
|
@@ -148,14 +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:
|
|
157
|
-
uf_naturalness:
|
|
158
|
-
emitting_state:
|
|
156
|
+
state: string;
|
|
157
|
+
uf_naturalness: string;
|
|
158
|
+
emitting_state: string;
|
|
159
159
|
energy_account_in_requester_name: string;
|
|
160
160
|
doc_issue_date: string;
|
|
161
161
|
name: string;
|
|
@@ -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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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,14 +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:
|
|
304
|
-
uf_naturalness:
|
|
305
|
-
emitting_state:
|
|
303
|
+
state: string;
|
|
304
|
+
uf_naturalness: string;
|
|
305
|
+
emitting_state: string;
|
|
306
306
|
energy_account_in_requester_name: string;
|
|
307
307
|
doc_issue_date: string;
|
|
308
308
|
name: string;
|
|
@@ -352,14 +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:
|
|
361
|
-
uf_naturalness:
|
|
362
|
-
emitting_state:
|
|
360
|
+
state: string;
|
|
361
|
+
uf_naturalness: string;
|
|
362
|
+
emitting_state: string;
|
|
363
363
|
energy_account_in_requester_name: string;
|
|
364
364
|
doc_issue_date: string;
|
|
365
365
|
name: string;
|
|
@@ -409,14 +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:
|
|
418
|
-
uf_naturalness:
|
|
419
|
-
emitting_state:
|
|
417
|
+
state: string;
|
|
418
|
+
uf_naturalness: string;
|
|
419
|
+
emitting_state: string;
|
|
420
420
|
energy_account_in_requester_name: string;
|
|
421
421
|
doc_issue_date: string;
|
|
422
422
|
name: string;
|
|
@@ -466,14 +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:
|
|
475
|
-
uf_naturalness:
|
|
476
|
-
emitting_state:
|
|
474
|
+
state: string;
|
|
475
|
+
uf_naturalness: string;
|
|
476
|
+
emitting_state: string;
|
|
477
477
|
energy_account_in_requester_name: string;
|
|
478
478
|
doc_issue_date: string;
|
|
479
479
|
name: string;
|
|
@@ -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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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,14 +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:
|
|
100
|
-
uf_naturalness:
|
|
101
|
-
emitting_state:
|
|
99
|
+
state: string;
|
|
100
|
+
uf_naturalness: string;
|
|
101
|
+
emitting_state: string;
|
|
102
102
|
energy_account_in_requester_name: string;
|
|
103
103
|
doc_issue_date: string;
|
|
104
104
|
name: string;
|
|
@@ -148,14 +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:
|
|
157
|
-
uf_naturalness:
|
|
158
|
-
emitting_state:
|
|
156
|
+
state: string;
|
|
157
|
+
uf_naturalness: string;
|
|
158
|
+
emitting_state: string;
|
|
159
159
|
energy_account_in_requester_name: string;
|
|
160
160
|
doc_issue_date: string;
|
|
161
161
|
name: string;
|
|
@@ -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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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.ZodEnum<[
|
|
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,14 +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:
|
|
304
|
-
uf_naturalness:
|
|
305
|
-
emitting_state:
|
|
303
|
+
state: string;
|
|
304
|
+
uf_naturalness: string;
|
|
305
|
+
emitting_state: string;
|
|
306
306
|
energy_account_in_requester_name: string;
|
|
307
307
|
doc_issue_date: string;
|
|
308
308
|
name: string;
|
|
@@ -352,14 +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:
|
|
361
|
-
uf_naturalness:
|
|
362
|
-
emitting_state:
|
|
360
|
+
state: string;
|
|
361
|
+
uf_naturalness: string;
|
|
362
|
+
emitting_state: string;
|
|
363
363
|
energy_account_in_requester_name: string;
|
|
364
364
|
doc_issue_date: string;
|
|
365
365
|
name: string;
|
|
@@ -409,14 +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:
|
|
418
|
-
uf_naturalness:
|
|
419
|
-
emitting_state:
|
|
417
|
+
state: string;
|
|
418
|
+
uf_naturalness: string;
|
|
419
|
+
emitting_state: string;
|
|
420
420
|
energy_account_in_requester_name: string;
|
|
421
421
|
doc_issue_date: string;
|
|
422
422
|
name: string;
|
|
@@ -466,14 +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:
|
|
475
|
-
uf_naturalness:
|
|
476
|
-
emitting_state:
|
|
474
|
+
state: string;
|
|
475
|
+
uf_naturalness: string;
|
|
476
|
+
emitting_state: string;
|
|
477
477
|
energy_account_in_requester_name: string;
|
|
478
478
|
doc_issue_date: string;
|
|
479
479
|
name: string;
|
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BvPFSchema.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
|
+
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
12
|
+
var integerField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
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
|
-
var numberField = 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 { bvPfObject, bvPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { bvPfObject, bvPfSchema } from '../../../chunk-OX3X37VR.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|