@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
|
@@ -7,20 +7,20 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
7
7
|
address: z.ZodString;
|
|
8
8
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
9
9
|
number: z.ZodString;
|
|
10
|
-
sex: z.ZodEnum<[
|
|
10
|
+
sex: z.ZodEnum<[string, string]>;
|
|
11
11
|
complement: z.ZodOptional<z.ZodString>;
|
|
12
12
|
mother_name: z.ZodString;
|
|
13
13
|
district: z.ZodString;
|
|
14
14
|
energy_account_in_requester_name: z.ZodString;
|
|
15
15
|
city: z.ZodString;
|
|
16
16
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
17
|
-
state: z.ZodEnum<[
|
|
17
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
18
18
|
nationality: z.ZodString;
|
|
19
19
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
20
20
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
monthly_income: z.ZodNumber;
|
|
22
22
|
profession: z.ZodString;
|
|
23
|
-
type_doc: z.ZodEnum<[
|
|
23
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
24
24
|
doc: z.ZodString;
|
|
25
25
|
issuing_body: z.ZodString;
|
|
26
26
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -79,9 +79,9 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
79
79
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
number: string;
|
|
82
|
-
sex:
|
|
83
|
-
type_doc:
|
|
84
|
-
state:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
85
85
|
energy_account_in_requester_name: string;
|
|
86
86
|
doc_issue_date: string;
|
|
87
87
|
name: string;
|
|
@@ -124,9 +124,9 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
129
|
-
state:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
130
130
|
energy_account_in_requester_name: string;
|
|
131
131
|
doc_issue_date: string;
|
|
132
132
|
name: string;
|
|
@@ -175,20 +175,20 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
address: z.ZodString;
|
|
176
176
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
177
177
|
number: z.ZodString;
|
|
178
|
-
sex: z.ZodEnum<[
|
|
178
|
+
sex: z.ZodEnum<[string, string]>;
|
|
179
179
|
complement: z.ZodOptional<z.ZodString>;
|
|
180
180
|
mother_name: z.ZodString;
|
|
181
181
|
district: z.ZodString;
|
|
182
182
|
energy_account_in_requester_name: z.ZodString;
|
|
183
183
|
city: z.ZodString;
|
|
184
184
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
185
|
-
state: z.ZodEnum<[
|
|
185
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
186
186
|
nationality: z.ZodString;
|
|
187
187
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
188
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
189
189
|
monthly_income: z.ZodNumber;
|
|
190
190
|
profession: z.ZodString;
|
|
191
|
-
type_doc: z.ZodEnum<[
|
|
191
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
192
192
|
doc: z.ZodString;
|
|
193
193
|
issuing_body: z.ZodString;
|
|
194
194
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -247,9 +247,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
248
248
|
}, "strict", z.ZodTypeAny, {
|
|
249
249
|
number: string;
|
|
250
|
-
sex:
|
|
251
|
-
type_doc:
|
|
252
|
-
state:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
253
253
|
energy_account_in_requester_name: string;
|
|
254
254
|
doc_issue_date: string;
|
|
255
255
|
name: string;
|
|
@@ -292,9 +292,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
297
|
-
state:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
298
298
|
energy_account_in_requester_name: string;
|
|
299
299
|
doc_issue_date: string;
|
|
300
300
|
name: string;
|
|
@@ -337,9 +337,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
342
|
-
state:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
343
343
|
energy_account_in_requester_name: string;
|
|
344
344
|
doc_issue_date: string;
|
|
345
345
|
name: string;
|
|
@@ -382,9 +382,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
387
|
-
state:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
388
388
|
energy_account_in_requester_name: string;
|
|
389
389
|
doc_issue_date: string;
|
|
390
390
|
name: string;
|
|
@@ -7,20 +7,20 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
7
7
|
address: z.ZodString;
|
|
8
8
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
9
9
|
number: z.ZodString;
|
|
10
|
-
sex: z.ZodEnum<[
|
|
10
|
+
sex: z.ZodEnum<[string, string]>;
|
|
11
11
|
complement: z.ZodOptional<z.ZodString>;
|
|
12
12
|
mother_name: z.ZodString;
|
|
13
13
|
district: z.ZodString;
|
|
14
14
|
energy_account_in_requester_name: z.ZodString;
|
|
15
15
|
city: z.ZodString;
|
|
16
16
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
17
|
-
state: z.ZodEnum<[
|
|
17
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
18
18
|
nationality: z.ZodString;
|
|
19
19
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
20
20
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
monthly_income: z.ZodNumber;
|
|
22
22
|
profession: z.ZodString;
|
|
23
|
-
type_doc: z.ZodEnum<[
|
|
23
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
24
24
|
doc: z.ZodString;
|
|
25
25
|
issuing_body: z.ZodString;
|
|
26
26
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -79,9 +79,9 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
79
79
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
number: string;
|
|
82
|
-
sex:
|
|
83
|
-
type_doc:
|
|
84
|
-
state:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
85
85
|
energy_account_in_requester_name: string;
|
|
86
86
|
doc_issue_date: string;
|
|
87
87
|
name: string;
|
|
@@ -124,9 +124,9 @@ declare const safraPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
129
|
-
state:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
130
130
|
energy_account_in_requester_name: string;
|
|
131
131
|
doc_issue_date: string;
|
|
132
132
|
name: string;
|
|
@@ -175,20 +175,20 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
address: z.ZodString;
|
|
176
176
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
177
177
|
number: z.ZodString;
|
|
178
|
-
sex: z.ZodEnum<[
|
|
178
|
+
sex: z.ZodEnum<[string, string]>;
|
|
179
179
|
complement: z.ZodOptional<z.ZodString>;
|
|
180
180
|
mother_name: z.ZodString;
|
|
181
181
|
district: z.ZodString;
|
|
182
182
|
energy_account_in_requester_name: z.ZodString;
|
|
183
183
|
city: z.ZodString;
|
|
184
184
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
185
|
-
state: z.ZodEnum<[
|
|
185
|
+
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
186
186
|
nationality: z.ZodString;
|
|
187
187
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
188
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
189
189
|
monthly_income: z.ZodNumber;
|
|
190
190
|
profession: z.ZodString;
|
|
191
|
-
type_doc: z.ZodEnum<[
|
|
191
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
192
192
|
doc: z.ZodString;
|
|
193
193
|
issuing_body: z.ZodString;
|
|
194
194
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -247,9 +247,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
248
248
|
}, "strict", z.ZodTypeAny, {
|
|
249
249
|
number: string;
|
|
250
|
-
sex:
|
|
251
|
-
type_doc:
|
|
252
|
-
state:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
253
253
|
energy_account_in_requester_name: string;
|
|
254
254
|
doc_issue_date: string;
|
|
255
255
|
name: string;
|
|
@@ -292,9 +292,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
297
|
-
state:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
298
298
|
energy_account_in_requester_name: string;
|
|
299
299
|
doc_issue_date: string;
|
|
300
300
|
name: string;
|
|
@@ -337,9 +337,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
342
|
-
state:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
343
343
|
energy_account_in_requester_name: string;
|
|
344
344
|
doc_issue_date: string;
|
|
345
345
|
name: string;
|
|
@@ -382,9 +382,9 @@ declare const safraPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
387
|
-
state:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
388
388
|
energy_account_in_requester_name: string;
|
|
389
389
|
doc_issue_date: string;
|
|
390
390
|
name: string;
|
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/SafraPFSchema.ts
|
|
6
|
-
var
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
7
|
+
function textField(maxLength) {
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
9
|
+
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
10
|
+
}
|
|
11
|
+
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
12
|
+
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
13
|
+
function enumField(values) {
|
|
14
|
+
return zod.z.enum(values, {
|
|
15
|
+
errorMap: (issue, ctx) => {
|
|
16
|
+
if (issue.code === zod.z.ZodIssueCode.invalid_type || issue.code === zod.z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
17
|
+
return { message: REQUIRED_MESSAGE };
|
|
18
|
+
}
|
|
19
|
+
return { message: ctx.defaultError };
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
24
|
+
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
25
|
+
var fileUploadField = zod.z.object({
|
|
26
|
+
url: zod.z.string().url().optional(),
|
|
27
|
+
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
28
|
+
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
29
|
+
}),
|
|
30
|
+
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
7
35
|
"documento_de_identidade",
|
|
8
36
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
37
|
]);
|
|
10
|
-
|
|
11
|
-
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
12
44
|
"AC",
|
|
13
45
|
"AL",
|
|
14
46
|
"AP",
|
|
@@ -37,21 +69,6 @@ var UfEnum = zod.z.enum([
|
|
|
37
69
|
"SE",
|
|
38
70
|
"TO"
|
|
39
71
|
]);
|
|
40
|
-
function textField(maxLength) {
|
|
41
|
-
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
42
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
43
|
-
}
|
|
44
|
-
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
45
|
-
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 { safraPfObject, safraPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { safraPfObject, safraPfSchema } from '../../../chunk-6TFRV3FG.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|
|
@@ -15,12 +15,12 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
15
15
|
legal_nature: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
17
17
|
economic_activity_group: z.ZodString;
|
|
18
|
-
state: z.ZodEnum<[
|
|
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:
|
|
23
|
+
state: string;
|
|
24
24
|
cep: string;
|
|
25
25
|
address: string;
|
|
26
26
|
district: string;
|
|
@@ -37,7 +37,7 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
37
37
|
complement?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
number: string;
|
|
40
|
-
state:
|
|
40
|
+
state: string;
|
|
41
41
|
cep: string;
|
|
42
42
|
address: string;
|
|
43
43
|
district: string;
|
|
@@ -64,16 +64,16 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
64
64
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
65
65
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
66
66
|
district: z.ZodString;
|
|
67
|
-
sex: z.ZodEnum<[
|
|
67
|
+
sex: z.ZodEnum<[string, string]>;
|
|
68
68
|
city: z.ZodString;
|
|
69
|
-
state: z.ZodEnum<[
|
|
69
|
+
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]>;
|
|
70
70
|
office: z.ZodString;
|
|
71
71
|
mother_name: z.ZodString;
|
|
72
72
|
nationality: z.ZodString;
|
|
73
73
|
}, "strict", z.ZodTypeAny, {
|
|
74
74
|
number: string;
|
|
75
|
-
sex:
|
|
76
|
-
state:
|
|
75
|
+
sex: string;
|
|
76
|
+
state: string;
|
|
77
77
|
name: string;
|
|
78
78
|
cep: string;
|
|
79
79
|
cpf: string;
|
|
@@ -89,8 +89,8 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
89
89
|
complement?: string | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
number: string;
|
|
92
|
-
sex:
|
|
93
|
-
state:
|
|
92
|
+
sex: string;
|
|
93
|
+
state: string;
|
|
94
94
|
name: string;
|
|
95
95
|
cep: string;
|
|
96
96
|
cpf: string;
|
|
@@ -177,7 +177,7 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
177
177
|
rd_re_insurance_toggle: boolean;
|
|
178
178
|
financing_company: {
|
|
179
179
|
number: string;
|
|
180
|
-
state:
|
|
180
|
+
state: string;
|
|
181
181
|
cep: string;
|
|
182
182
|
address: string;
|
|
183
183
|
district: string;
|
|
@@ -195,8 +195,8 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
195
195
|
};
|
|
196
196
|
financing_company_guarantor: {
|
|
197
197
|
number: string;
|
|
198
|
-
sex:
|
|
199
|
-
state:
|
|
198
|
+
sex: string;
|
|
199
|
+
state: string;
|
|
200
200
|
name: string;
|
|
201
201
|
cep: string;
|
|
202
202
|
cpf: string;
|
|
@@ -234,7 +234,7 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
234
234
|
};
|
|
235
235
|
financing_company: {
|
|
236
236
|
number: string;
|
|
237
|
-
state:
|
|
237
|
+
state: string;
|
|
238
238
|
cep: string;
|
|
239
239
|
address: string;
|
|
240
240
|
district: string;
|
|
@@ -252,8 +252,8 @@ declare const safraPjObject: z.ZodObject<{
|
|
|
252
252
|
};
|
|
253
253
|
financing_company_guarantor: {
|
|
254
254
|
number: string;
|
|
255
|
-
sex:
|
|
256
|
-
state:
|
|
255
|
+
sex: string;
|
|
256
|
+
state: string;
|
|
257
257
|
name: string;
|
|
258
258
|
cep: string;
|
|
259
259
|
cpf: string;
|
|
@@ -290,12 +290,12 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
290
290
|
legal_nature: z.ZodString;
|
|
291
291
|
city: z.ZodString;
|
|
292
292
|
economic_activity_group: z.ZodString;
|
|
293
|
-
state: z.ZodEnum<[
|
|
293
|
+
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]>;
|
|
294
294
|
economic_activity: z.ZodString;
|
|
295
295
|
monthly_income: z.ZodNumber;
|
|
296
296
|
}, "strict", z.ZodTypeAny, {
|
|
297
297
|
number: string;
|
|
298
|
-
state:
|
|
298
|
+
state: string;
|
|
299
299
|
cep: string;
|
|
300
300
|
address: string;
|
|
301
301
|
district: string;
|
|
@@ -312,7 +312,7 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
312
312
|
complement?: string | undefined;
|
|
313
313
|
}, {
|
|
314
314
|
number: string;
|
|
315
|
-
state:
|
|
315
|
+
state: string;
|
|
316
316
|
cep: string;
|
|
317
317
|
address: string;
|
|
318
318
|
district: string;
|
|
@@ -339,16 +339,16 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
339
339
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
340
340
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
341
341
|
district: z.ZodString;
|
|
342
|
-
sex: z.ZodEnum<[
|
|
342
|
+
sex: z.ZodEnum<[string, string]>;
|
|
343
343
|
city: z.ZodString;
|
|
344
|
-
state: z.ZodEnum<[
|
|
344
|
+
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]>;
|
|
345
345
|
office: z.ZodString;
|
|
346
346
|
mother_name: z.ZodString;
|
|
347
347
|
nationality: z.ZodString;
|
|
348
348
|
}, "strict", z.ZodTypeAny, {
|
|
349
349
|
number: string;
|
|
350
|
-
sex:
|
|
351
|
-
state:
|
|
350
|
+
sex: string;
|
|
351
|
+
state: string;
|
|
352
352
|
name: string;
|
|
353
353
|
cep: string;
|
|
354
354
|
cpf: string;
|
|
@@ -364,8 +364,8 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
364
364
|
complement?: string | undefined;
|
|
365
365
|
}, {
|
|
366
366
|
number: string;
|
|
367
|
-
sex:
|
|
368
|
-
state:
|
|
367
|
+
sex: string;
|
|
368
|
+
state: string;
|
|
369
369
|
name: string;
|
|
370
370
|
cep: string;
|
|
371
371
|
cpf: string;
|
|
@@ -452,7 +452,7 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
452
452
|
rd_re_insurance_toggle: boolean;
|
|
453
453
|
financing_company: {
|
|
454
454
|
number: string;
|
|
455
|
-
state:
|
|
455
|
+
state: string;
|
|
456
456
|
cep: string;
|
|
457
457
|
address: string;
|
|
458
458
|
district: string;
|
|
@@ -470,8 +470,8 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
470
470
|
};
|
|
471
471
|
financing_company_guarantor: {
|
|
472
472
|
number: string;
|
|
473
|
-
sex:
|
|
474
|
-
state:
|
|
473
|
+
sex: string;
|
|
474
|
+
state: string;
|
|
475
475
|
name: string;
|
|
476
476
|
cep: string;
|
|
477
477
|
cpf: string;
|
|
@@ -509,7 +509,7 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
509
509
|
};
|
|
510
510
|
financing_company: {
|
|
511
511
|
number: string;
|
|
512
|
-
state:
|
|
512
|
+
state: string;
|
|
513
513
|
cep: string;
|
|
514
514
|
address: string;
|
|
515
515
|
district: string;
|
|
@@ -527,8 +527,8 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
527
527
|
};
|
|
528
528
|
financing_company_guarantor: {
|
|
529
529
|
number: string;
|
|
530
|
-
sex:
|
|
531
|
-
state:
|
|
530
|
+
sex: string;
|
|
531
|
+
state: string;
|
|
532
532
|
name: string;
|
|
533
533
|
cep: string;
|
|
534
534
|
cpf: string;
|
|
@@ -568,7 +568,7 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
568
568
|
rd_re_insurance_toggle: boolean;
|
|
569
569
|
financing_company: {
|
|
570
570
|
number: string;
|
|
571
|
-
state:
|
|
571
|
+
state: string;
|
|
572
572
|
cep: string;
|
|
573
573
|
address: string;
|
|
574
574
|
district: string;
|
|
@@ -586,8 +586,8 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
586
586
|
};
|
|
587
587
|
financing_company_guarantor: {
|
|
588
588
|
number: string;
|
|
589
|
-
sex:
|
|
590
|
-
state:
|
|
589
|
+
sex: string;
|
|
590
|
+
state: string;
|
|
591
591
|
name: string;
|
|
592
592
|
cep: string;
|
|
593
593
|
cpf: string;
|
|
@@ -625,7 +625,7 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
625
625
|
};
|
|
626
626
|
financing_company: {
|
|
627
627
|
number: string;
|
|
628
|
-
state:
|
|
628
|
+
state: string;
|
|
629
629
|
cep: string;
|
|
630
630
|
address: string;
|
|
631
631
|
district: string;
|
|
@@ -643,8 +643,8 @@ declare const safraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
643
643
|
};
|
|
644
644
|
financing_company_guarantor: {
|
|
645
645
|
number: string;
|
|
646
|
-
sex:
|
|
647
|
-
state:
|
|
646
|
+
sex: string;
|
|
647
|
+
state: string;
|
|
648
648
|
name: string;
|
|
649
649
|
cep: string;
|
|
650
650
|
cpf: string;
|