@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
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, NATIONALITY_BRAZIL, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
export { unifiedPfObject, unifiedPfSchema } from '../../chunk-
|
|
9
|
-
export { unifiedPjObject, unifiedPjSchema } from '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import '../../chunk-
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-
|
|
20
|
-
import '../../chunk-
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-
|
|
26
|
-
import '../../chunk-
|
|
27
|
-
import '../../chunk-
|
|
28
|
-
import '../../chunk-
|
|
29
|
-
import '../../chunk-
|
|
30
|
-
import '../../chunk-
|
|
31
|
-
import '../../chunk-
|
|
32
|
-
import '../../chunk-
|
|
33
|
-
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from '../../chunk-
|
|
1
|
+
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, NATIONALITY_BRAZIL, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from '../../chunk-YNVJAGAY.mjs';
|
|
2
|
+
import '../../chunk-GR2PK3Z7.mjs';
|
|
3
|
+
import '../../chunk-O7OHCS36.mjs';
|
|
4
|
+
import '../../chunk-WPLLR3SO.mjs';
|
|
5
|
+
import '../../chunk-2W3LQ75V.mjs';
|
|
6
|
+
import '../../chunk-PO6GQE6E.mjs';
|
|
7
|
+
import '../../chunk-3RSZ4NGE.mjs';
|
|
8
|
+
export { unifiedPfObject, unifiedPfSchema } from '../../chunk-2YVK6IDS.mjs';
|
|
9
|
+
export { unifiedPjObject, unifiedPjSchema } from '../../chunk-AURTWOTB.mjs';
|
|
10
|
+
import '../../chunk-FT5BAKSG.mjs';
|
|
11
|
+
import '../../chunk-HHJNVLHK.mjs';
|
|
12
|
+
import '../../chunk-3O52U22S.mjs';
|
|
13
|
+
import '../../chunk-OUVNM2RX.mjs';
|
|
14
|
+
import '../../chunk-2CN56LSL.mjs';
|
|
15
|
+
import '../../chunk-DERWNSPY.mjs';
|
|
16
|
+
import '../../chunk-6TFRV3FG.mjs';
|
|
17
|
+
import '../../chunk-YQJCILG3.mjs';
|
|
18
|
+
import '../../chunk-OX3X37VR.mjs';
|
|
19
|
+
import '../../chunk-F76ICRGY.mjs';
|
|
20
|
+
import '../../chunk-7ZERTOE7.mjs';
|
|
21
|
+
import '../../chunk-3BPZV6IW.mjs';
|
|
22
|
+
import '../../chunk-OMDC46YE.mjs';
|
|
23
|
+
import '../../chunk-WRJAOYL6.mjs';
|
|
24
|
+
import '../../chunk-MDK5KVJT.mjs';
|
|
25
|
+
import '../../chunk-VGFPONIS.mjs';
|
|
26
|
+
import '../../chunk-THYAK7O3.mjs';
|
|
27
|
+
import '../../chunk-WGPPH7DC.mjs';
|
|
28
|
+
import '../../chunk-P54HBDOE.mjs';
|
|
29
|
+
import '../../chunk-JPFAMQGV.mjs';
|
|
30
|
+
import '../../chunk-HZM2PWYJ.mjs';
|
|
31
|
+
import '../../chunk-6HBDXEIK.mjs';
|
|
32
|
+
import '../../chunk-XII4F5RZ.mjs';
|
|
33
|
+
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from '../../chunk-Y3FAMPYF.mjs';
|
|
@@ -7,20 +7,20 @@ declare const alfaPfObject: 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.
|
|
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,8 +79,9 @@ declare const alfaPfObject: 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:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
84
85
|
energy_account_in_requester_name: string;
|
|
85
86
|
doc_issue_date: string;
|
|
86
87
|
name: string;
|
|
@@ -91,7 +92,6 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
91
92
|
mother_name: string;
|
|
92
93
|
district: string;
|
|
93
94
|
city: string;
|
|
94
|
-
state: string;
|
|
95
95
|
nationality: string;
|
|
96
96
|
cellphone: string;
|
|
97
97
|
email: string;
|
|
@@ -124,8 +124,9 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
129
130
|
energy_account_in_requester_name: string;
|
|
130
131
|
doc_issue_date: string;
|
|
131
132
|
name: string;
|
|
@@ -136,7 +137,6 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
136
137
|
mother_name: string;
|
|
137
138
|
district: string;
|
|
138
139
|
city: string;
|
|
139
|
-
state: string;
|
|
140
140
|
nationality: string;
|
|
141
141
|
cellphone: string;
|
|
142
142
|
email: string;
|
|
@@ -175,20 +175,20 @@ declare const alfaPfSchema: 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.
|
|
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,8 +247,9 @@ declare const alfaPfSchema: 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:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
252
253
|
energy_account_in_requester_name: string;
|
|
253
254
|
doc_issue_date: string;
|
|
254
255
|
name: string;
|
|
@@ -259,7 +260,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
259
260
|
mother_name: string;
|
|
260
261
|
district: string;
|
|
261
262
|
city: string;
|
|
262
|
-
state: string;
|
|
263
263
|
nationality: string;
|
|
264
264
|
cellphone: string;
|
|
265
265
|
email: string;
|
|
@@ -292,8 +292,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
297
298
|
energy_account_in_requester_name: string;
|
|
298
299
|
doc_issue_date: string;
|
|
299
300
|
name: string;
|
|
@@ -304,7 +305,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
304
305
|
mother_name: string;
|
|
305
306
|
district: string;
|
|
306
307
|
city: string;
|
|
307
|
-
state: string;
|
|
308
308
|
nationality: string;
|
|
309
309
|
cellphone: string;
|
|
310
310
|
email: string;
|
|
@@ -337,8 +337,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
342
343
|
energy_account_in_requester_name: string;
|
|
343
344
|
doc_issue_date: string;
|
|
344
345
|
name: string;
|
|
@@ -349,7 +350,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
349
350
|
mother_name: string;
|
|
350
351
|
district: string;
|
|
351
352
|
city: string;
|
|
352
|
-
state: string;
|
|
353
353
|
nationality: string;
|
|
354
354
|
cellphone: string;
|
|
355
355
|
email: string;
|
|
@@ -382,8 +382,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
387
388
|
energy_account_in_requester_name: string;
|
|
388
389
|
doc_issue_date: string;
|
|
389
390
|
name: string;
|
|
@@ -394,7 +395,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
394
395
|
mother_name: string;
|
|
395
396
|
district: string;
|
|
396
397
|
city: string;
|
|
397
|
-
state: string;
|
|
398
398
|
nationality: string;
|
|
399
399
|
cellphone: string;
|
|
400
400
|
email: string;
|
|
@@ -7,20 +7,20 @@ declare const alfaPfObject: 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.
|
|
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,8 +79,9 @@ declare const alfaPfObject: 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:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
84
85
|
energy_account_in_requester_name: string;
|
|
85
86
|
doc_issue_date: string;
|
|
86
87
|
name: string;
|
|
@@ -91,7 +92,6 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
91
92
|
mother_name: string;
|
|
92
93
|
district: string;
|
|
93
94
|
city: string;
|
|
94
|
-
state: string;
|
|
95
95
|
nationality: string;
|
|
96
96
|
cellphone: string;
|
|
97
97
|
email: string;
|
|
@@ -124,8 +124,9 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
129
130
|
energy_account_in_requester_name: string;
|
|
130
131
|
doc_issue_date: string;
|
|
131
132
|
name: string;
|
|
@@ -136,7 +137,6 @@ declare const alfaPfObject: z.ZodObject<{
|
|
|
136
137
|
mother_name: string;
|
|
137
138
|
district: string;
|
|
138
139
|
city: string;
|
|
139
|
-
state: string;
|
|
140
140
|
nationality: string;
|
|
141
141
|
cellphone: string;
|
|
142
142
|
email: string;
|
|
@@ -175,20 +175,20 @@ declare const alfaPfSchema: 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.
|
|
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,8 +247,9 @@ declare const alfaPfSchema: 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:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
252
253
|
energy_account_in_requester_name: string;
|
|
253
254
|
doc_issue_date: string;
|
|
254
255
|
name: string;
|
|
@@ -259,7 +260,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
259
260
|
mother_name: string;
|
|
260
261
|
district: string;
|
|
261
262
|
city: string;
|
|
262
|
-
state: string;
|
|
263
263
|
nationality: string;
|
|
264
264
|
cellphone: string;
|
|
265
265
|
email: string;
|
|
@@ -292,8 +292,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
297
298
|
energy_account_in_requester_name: string;
|
|
298
299
|
doc_issue_date: string;
|
|
299
300
|
name: string;
|
|
@@ -304,7 +305,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
304
305
|
mother_name: string;
|
|
305
306
|
district: string;
|
|
306
307
|
city: string;
|
|
307
|
-
state: string;
|
|
308
308
|
nationality: string;
|
|
309
309
|
cellphone: string;
|
|
310
310
|
email: string;
|
|
@@ -337,8 +337,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
342
343
|
energy_account_in_requester_name: string;
|
|
343
344
|
doc_issue_date: string;
|
|
344
345
|
name: string;
|
|
@@ -349,7 +350,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
349
350
|
mother_name: string;
|
|
350
351
|
district: string;
|
|
351
352
|
city: string;
|
|
352
|
-
state: string;
|
|
353
353
|
nationality: string;
|
|
354
354
|
cellphone: string;
|
|
355
355
|
email: string;
|
|
@@ -382,8 +382,9 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
387
388
|
energy_account_in_requester_name: string;
|
|
388
389
|
doc_issue_date: string;
|
|
389
390
|
name: string;
|
|
@@ -394,7 +395,6 @@ declare const alfaPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
394
395
|
mother_name: string;
|
|
395
396
|
district: string;
|
|
396
397
|
city: string;
|
|
397
|
-
state: string;
|
|
398
398
|
nationality: string;
|
|
399
399
|
cellphone: string;
|
|
400
400
|
email: string;
|
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/AlfaPFSchema.ts
|
|
6
|
-
var
|
|
7
|
-
"documento_de_identidade",
|
|
8
|
-
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
|
-
]);
|
|
10
|
-
var SexEnum = zod.z.enum(["masculino", "feminino"]);
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
11
7
|
function textField(maxLength) {
|
|
12
|
-
const base = zod.z.string().trim().min(1,
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
13
9
|
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
14
10
|
}
|
|
15
11
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
12
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
13
|
+
function enumField(values) {
|
|
14
|
+
return zod.z.enum(values, {
|
|
15
|
+
errorMap: (issue, ctx) => {
|
|
16
|
+
if (issue.code === zod.z.ZodIssueCode.invalid_type || issue.code === zod.z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
17
|
+
return { message: REQUIRED_MESSAGE };
|
|
18
|
+
}
|
|
19
|
+
return { message: ctx.defaultError };
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
17
23
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
18
24
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
19
25
|
var fileUploadField = zod.z.object({
|
|
@@ -24,6 +30,46 @@ var fileUploadField = zod.z.object({
|
|
|
24
30
|
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
25
31
|
});
|
|
26
32
|
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
35
|
+
"documento_de_identidade",
|
|
36
|
+
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
44
|
+
"AC",
|
|
45
|
+
"AL",
|
|
46
|
+
"AP",
|
|
47
|
+
"AM",
|
|
48
|
+
"BA",
|
|
49
|
+
"CE",
|
|
50
|
+
"DF",
|
|
51
|
+
"ES",
|
|
52
|
+
"GO",
|
|
53
|
+
"MA",
|
|
54
|
+
"MT",
|
|
55
|
+
"MS",
|
|
56
|
+
"MG",
|
|
57
|
+
"PA",
|
|
58
|
+
"PB",
|
|
59
|
+
"PR",
|
|
60
|
+
"PE",
|
|
61
|
+
"PI",
|
|
62
|
+
"RJ",
|
|
63
|
+
"RN",
|
|
64
|
+
"RS",
|
|
65
|
+
"RO",
|
|
66
|
+
"RR",
|
|
67
|
+
"SC",
|
|
68
|
+
"SP",
|
|
69
|
+
"SE",
|
|
70
|
+
"TO"
|
|
71
|
+
]);
|
|
72
|
+
|
|
27
73
|
// src/shared/regex/patterns.ts
|
|
28
74
|
var PATTERNS = {
|
|
29
75
|
cpf: /^\d{11}$/,
|
|
@@ -230,7 +276,7 @@ var alfaPfObject = zod.z.object({
|
|
|
230
276
|
energy_account_in_requester_name: textField(),
|
|
231
277
|
city: textField(),
|
|
232
278
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
233
|
-
state:
|
|
279
|
+
state: UfEnum,
|
|
234
280
|
nationality: textField(),
|
|
235
281
|
cellphone: phoneBRSchema,
|
|
236
282
|
email: emailSchema,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { alfaPfObject, alfaPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { alfaPfObject, alfaPfSchema } from '../../../chunk-THYAK7O3.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|