@77sol-lab/form-schemas 1.3.0 → 1.5.0
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-TEL6EWAJ.mjs → chunk-2END6TYT.mjs} +3 -3
- package/{chunk-WHVCW22E.mjs → chunk-3OIG2FI5.mjs} +3 -3
- package/{chunk-FISPUQLP.mjs → chunk-4XJZIRLT.mjs} +6 -6
- package/{chunk-SBOQWT53.mjs → chunk-53GXILC6.mjs} +3 -3
- package/{chunk-CY2EXD6C.mjs → chunk-5C4YMHXV.mjs} +5 -5
- package/{chunk-TUYULPDF.mjs → chunk-6PH42V5T.mjs} +3 -3
- package/chunk-6YS5KBXS.mjs +438 -0
- package/chunk-7I2LXGA2.mjs +13 -0
- package/{chunk-2TGZGHS3.mjs → chunk-7MWUETLP.mjs} +3 -3
- package/{chunk-W3CNJVMM.mjs → chunk-7ZF45QUN.mjs} +3 -3
- package/chunk-D2ZUTYWA.mjs +109 -0
- package/{chunk-KXEEZLMR.mjs → chunk-F27U6CXB.mjs} +3 -3
- package/{chunk-TE64VI3I.mjs → chunk-FPJKWVVF.mjs} +3 -3
- package/{chunk-G3T562PC.mjs → chunk-FRMGP3C3.mjs} +3 -3
- package/{chunk-UHMVAJYK.mjs → chunk-G5SKXDYM.mjs} +3 -3
- package/{chunk-NL4VK2TF.mjs → chunk-GQ5G2YX4.mjs} +3 -3
- package/{chunk-RMWCQ6YU.mjs → chunk-H54QBCSW.mjs} +3 -3
- package/{chunk-NDJRJOFE.mjs → chunk-HBTFOSJU.mjs} +105 -33
- package/{chunk-FVIOZ4Q5.mjs → chunk-IWSDOFBY.mjs} +6 -6
- package/{chunk-HKY6D6J5.mjs → chunk-L4EWOROT.mjs} +3 -3
- package/{chunk-7LHQ27CS.mjs → chunk-N2IX5TRK.mjs} +3 -3
- package/{chunk-XNACW46V.mjs → chunk-NCTEG6EL.mjs} +11 -11
- package/{chunk-TCPW5MUT.mjs → chunk-OARPUXXM.mjs} +3 -3
- package/{chunk-ORO6OVTB.mjs → chunk-OVANLPKX.mjs} +3 -3
- package/{chunk-B7RDVG4R.mjs → chunk-R6CEKWRQ.mjs} +6 -6
- package/{chunk-MWPQSGDD.mjs → chunk-RYJSCFSY.mjs} +3 -3
- package/{chunk-36GQASLI.mjs → chunk-UMP5UF3U.mjs} +3 -3
- package/{chunk-GCYI6OFG.mjs → chunk-UU3MRKTH.mjs} +3 -3
- package/{chunk-TTHE6D3Y.mjs → chunk-UUWULEKH.mjs} +3 -3
- package/{chunk-6BD6V7EB.mjs → chunk-VO573WIK.mjs} +3 -3
- package/{chunk-22ZUS7K3.mjs → chunk-WTHEEPBE.mjs} +3 -3
- package/{chunk-EFLW2FHX.mjs → chunk-YIUJVGT4.mjs} +3 -3
- package/{chunk-XUMC3TQU.mjs → chunk-Z2TTZ3JJ.mjs} +4 -4
- package/financing/formalization/index.d.cts +2518 -2581
- package/financing/formalization/index.d.ts +2518 -2581
- package/financing/formalization/index.js +485 -154
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/AlfaPFSchema.js +75 -35
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/AlfaPJSchema.js +40 -24
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +75 -35
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +40 -24
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/BtgPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/BtgPFSchema.js +75 -35
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +106 -114
- package/financing/formalization/schemas/BtgPJSchema.d.ts +106 -114
- package/financing/formalization/schemas/BtgPJSchema.js +46 -27
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +84 -92
- package/financing/formalization/schemas/BvPFSchema.d.ts +84 -92
- package/financing/formalization/schemas/BvPFSchema.js +77 -37
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +136 -144
- package/financing/formalization/schemas/BvPJSchema.d.ts +136 -144
- package/financing/formalization/schemas/BvPJSchema.js +46 -27
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +75 -35
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +40 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +50 -58
- package/financing/formalization/schemas/CashMePFSchema.d.ts +50 -58
- package/financing/formalization/schemas/CashMePFSchema.js +75 -35
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +60 -68
- package/financing/formalization/schemas/CashMePJSchema.d.ts +60 -68
- package/financing/formalization/schemas/CashMePJSchema.js +40 -24
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +50 -58
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +50 -58
- package/financing/formalization/schemas/Credito77PFSchema.js +75 -35
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +60 -68
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +60 -68
- package/financing/formalization/schemas/Credito77PJSchema.js +40 -24
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/EosPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/EosPFSchema.js +75 -35
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/EosPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/EosPJSchema.js +40 -24
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +75 -35
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +40 -24
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/LosangoPFSchema.js +75 -35
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/LosangoPJSchema.js +40 -24
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/SafraPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/SafraPFSchema.js +75 -35
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/SafraPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/SafraPJSchema.js +40 -24
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/SantanderPFSchema.js +75 -35
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +60 -68
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +60 -68
- package/financing/formalization/schemas/SantanderPJSchema.js +40 -24
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/SolAgoraPFSchema.js +75 -35
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +106 -114
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +106 -114
- package/financing/formalization/schemas/SolAgoraPJSchema.js +46 -27
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +50 -58
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +50 -58
- package/financing/formalization/schemas/SolfacilPFSchema.js +75 -35
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +82 -90
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +82 -90
- package/financing/formalization/schemas/SolfacilPJSchema.js +41 -25
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +222 -166
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +222 -166
- package/financing/formalization/schemas/UnifiedPFSchema.js +114 -43
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +258 -266
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +258 -266
- package/financing/formalization/schemas/UnifiedPJSchema.js +51 -32
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +485 -154
- package/index.mjs +33 -33
- package/package.json +1 -1
- package/chunk-52KJIJBF.mjs +0 -45
- package/chunk-A2TV7TRP.mjs +0 -6
- package/chunk-KKGV43J4.mjs +0 -250
|
@@ -14,17 +14,17 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
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<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
|
|
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<["documento_de_identidade", "carteira_nacional_de_habilitação"]>;
|
|
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>;
|
|
27
|
-
|
|
27
|
+
voucher_local_installation_address: z.ZodObject<{
|
|
28
28
|
url: z.ZodOptional<z.ZodString>;
|
|
29
29
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
30
30
|
sizeBytes: z.ZodNumber;
|
|
@@ -37,8 +37,7 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
37
37
|
sizeBytes: number;
|
|
38
38
|
url?: string | undefined;
|
|
39
39
|
}>;
|
|
40
|
-
|
|
41
|
-
bond_document_upload: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
42
41
|
url: z.ZodOptional<z.ZodString>;
|
|
43
42
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
44
43
|
sizeBytes: z.ZodNumber;
|
|
@@ -80,28 +79,27 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
80
79
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
81
80
|
}, "strip", z.ZodTypeAny, {
|
|
82
81
|
number: string;
|
|
83
|
-
|
|
84
|
-
type_doc: "
|
|
82
|
+
sex: "masculino" | "feminino";
|
|
83
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
84
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
85
|
+
energy_account_in_requester_name: string;
|
|
85
86
|
doc_issue_date: string;
|
|
86
|
-
nationality: string;
|
|
87
87
|
name: string;
|
|
88
88
|
cep: string;
|
|
89
89
|
cpf: string;
|
|
90
90
|
address: string;
|
|
91
91
|
birth_date: string;
|
|
92
|
-
sex: "masculino" | "feminino";
|
|
93
92
|
mother_name: string;
|
|
94
93
|
district: string;
|
|
95
|
-
energy_account_in_requester_name: string;
|
|
96
94
|
city: string;
|
|
97
|
-
|
|
95
|
+
nationality: string;
|
|
98
96
|
cellphone: string;
|
|
99
97
|
email: string;
|
|
100
98
|
monthly_income: number;
|
|
101
99
|
profession: string;
|
|
102
100
|
doc: string;
|
|
103
101
|
issuing_body: string;
|
|
104
|
-
|
|
102
|
+
voucher_local_installation_address: {
|
|
105
103
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
106
104
|
sizeBytes: number;
|
|
107
105
|
url?: string | undefined;
|
|
@@ -117,7 +115,7 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
117
115
|
url?: string | undefined;
|
|
118
116
|
};
|
|
119
117
|
rd_re_insurance_toggle: boolean;
|
|
120
|
-
|
|
118
|
+
proof_kinship?: {
|
|
121
119
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
122
120
|
sizeBytes: number;
|
|
123
121
|
url?: string | undefined;
|
|
@@ -126,28 +124,27 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
126
124
|
energy_bill_owner_document?: string | undefined;
|
|
127
125
|
}, {
|
|
128
126
|
number: string;
|
|
129
|
-
|
|
130
|
-
type_doc: "
|
|
127
|
+
sex: "masculino" | "feminino";
|
|
128
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
129
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
130
|
+
energy_account_in_requester_name: string;
|
|
131
131
|
doc_issue_date: string;
|
|
132
|
-
nationality: string;
|
|
133
132
|
name: string;
|
|
134
133
|
cep: string;
|
|
135
134
|
cpf: string;
|
|
136
135
|
address: string;
|
|
137
136
|
birth_date: string;
|
|
138
|
-
sex: "masculino" | "feminino";
|
|
139
137
|
mother_name: string;
|
|
140
138
|
district: string;
|
|
141
|
-
energy_account_in_requester_name: string;
|
|
142
139
|
city: string;
|
|
143
|
-
|
|
140
|
+
nationality: string;
|
|
144
141
|
cellphone: string;
|
|
145
142
|
email: string;
|
|
146
143
|
monthly_income: number;
|
|
147
144
|
profession: string;
|
|
148
145
|
doc: string;
|
|
149
146
|
issuing_body: string;
|
|
150
|
-
|
|
147
|
+
voucher_local_installation_address: {
|
|
151
148
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
152
149
|
sizeBytes: number;
|
|
153
150
|
url?: string | undefined;
|
|
@@ -162,7 +159,7 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
162
159
|
sizeBytes: number;
|
|
163
160
|
url?: string | undefined;
|
|
164
161
|
};
|
|
165
|
-
|
|
162
|
+
proof_kinship?: {
|
|
166
163
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
167
164
|
sizeBytes: number;
|
|
168
165
|
url?: string | undefined;
|
|
@@ -185,17 +182,17 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
185
182
|
energy_account_in_requester_name: z.ZodString;
|
|
186
183
|
city: z.ZodString;
|
|
187
184
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
188
|
-
state: z.
|
|
185
|
+
state: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
|
|
189
186
|
nationality: z.ZodString;
|
|
190
187
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
191
188
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
192
189
|
monthly_income: z.ZodNumber;
|
|
193
190
|
profession: z.ZodString;
|
|
194
|
-
type_doc: z.ZodEnum<["
|
|
191
|
+
type_doc: z.ZodEnum<["documento_de_identidade", "carteira_nacional_de_habilitação"]>;
|
|
195
192
|
doc: z.ZodString;
|
|
196
193
|
issuing_body: z.ZodString;
|
|
197
194
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
198
|
-
|
|
195
|
+
voucher_local_installation_address: z.ZodObject<{
|
|
199
196
|
url: z.ZodOptional<z.ZodString>;
|
|
200
197
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
201
198
|
sizeBytes: z.ZodNumber;
|
|
@@ -208,8 +205,7 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
208
205
|
sizeBytes: number;
|
|
209
206
|
url?: string | undefined;
|
|
210
207
|
}>;
|
|
211
|
-
|
|
212
|
-
bond_document_upload: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
213
209
|
url: z.ZodOptional<z.ZodString>;
|
|
214
210
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
215
211
|
sizeBytes: z.ZodNumber;
|
|
@@ -251,28 +247,27 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
251
247
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
252
248
|
}, "strict", z.ZodTypeAny, {
|
|
253
249
|
number: string;
|
|
254
|
-
|
|
255
|
-
type_doc: "
|
|
250
|
+
sex: "masculino" | "feminino";
|
|
251
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
252
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
253
|
+
energy_account_in_requester_name: string;
|
|
256
254
|
doc_issue_date: string;
|
|
257
|
-
nationality: string;
|
|
258
255
|
name: string;
|
|
259
256
|
cep: string;
|
|
260
257
|
cpf: string;
|
|
261
258
|
address: string;
|
|
262
259
|
birth_date: string;
|
|
263
|
-
sex: "masculino" | "feminino";
|
|
264
260
|
mother_name: string;
|
|
265
261
|
district: string;
|
|
266
|
-
energy_account_in_requester_name: string;
|
|
267
262
|
city: string;
|
|
268
|
-
|
|
263
|
+
nationality: string;
|
|
269
264
|
cellphone: string;
|
|
270
265
|
email: string;
|
|
271
266
|
monthly_income: number;
|
|
272
267
|
profession: string;
|
|
273
268
|
doc: string;
|
|
274
269
|
issuing_body: string;
|
|
275
|
-
|
|
270
|
+
voucher_local_installation_address: {
|
|
276
271
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
277
272
|
sizeBytes: number;
|
|
278
273
|
url?: string | undefined;
|
|
@@ -288,7 +283,7 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
288
283
|
url?: string | undefined;
|
|
289
284
|
};
|
|
290
285
|
rd_re_insurance_toggle: boolean;
|
|
291
|
-
|
|
286
|
+
proof_kinship?: {
|
|
292
287
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
293
288
|
sizeBytes: number;
|
|
294
289
|
url?: string | undefined;
|
|
@@ -297,28 +292,27 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
297
292
|
energy_bill_owner_document?: string | undefined;
|
|
298
293
|
}, {
|
|
299
294
|
number: string;
|
|
300
|
-
|
|
301
|
-
type_doc: "
|
|
295
|
+
sex: "masculino" | "feminino";
|
|
296
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
297
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
298
|
+
energy_account_in_requester_name: string;
|
|
302
299
|
doc_issue_date: string;
|
|
303
|
-
nationality: string;
|
|
304
300
|
name: string;
|
|
305
301
|
cep: string;
|
|
306
302
|
cpf: string;
|
|
307
303
|
address: string;
|
|
308
304
|
birth_date: string;
|
|
309
|
-
sex: "masculino" | "feminino";
|
|
310
305
|
mother_name: string;
|
|
311
306
|
district: string;
|
|
312
|
-
energy_account_in_requester_name: string;
|
|
313
307
|
city: string;
|
|
314
|
-
|
|
308
|
+
nationality: string;
|
|
315
309
|
cellphone: string;
|
|
316
310
|
email: string;
|
|
317
311
|
monthly_income: number;
|
|
318
312
|
profession: string;
|
|
319
313
|
doc: string;
|
|
320
314
|
issuing_body: string;
|
|
321
|
-
|
|
315
|
+
voucher_local_installation_address: {
|
|
322
316
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
323
317
|
sizeBytes: number;
|
|
324
318
|
url?: string | undefined;
|
|
@@ -333,7 +327,7 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
333
327
|
sizeBytes: number;
|
|
334
328
|
url?: string | undefined;
|
|
335
329
|
};
|
|
336
|
-
|
|
330
|
+
proof_kinship?: {
|
|
337
331
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
338
332
|
sizeBytes: number;
|
|
339
333
|
url?: string | undefined;
|
|
@@ -343,28 +337,27 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
343
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
344
338
|
}>, {
|
|
345
339
|
number: string;
|
|
346
|
-
|
|
347
|
-
type_doc: "
|
|
340
|
+
sex: "masculino" | "feminino";
|
|
341
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
342
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
343
|
+
energy_account_in_requester_name: string;
|
|
348
344
|
doc_issue_date: string;
|
|
349
|
-
nationality: string;
|
|
350
345
|
name: string;
|
|
351
346
|
cep: string;
|
|
352
347
|
cpf: string;
|
|
353
348
|
address: string;
|
|
354
349
|
birth_date: string;
|
|
355
|
-
sex: "masculino" | "feminino";
|
|
356
350
|
mother_name: string;
|
|
357
351
|
district: string;
|
|
358
|
-
energy_account_in_requester_name: string;
|
|
359
352
|
city: string;
|
|
360
|
-
|
|
353
|
+
nationality: string;
|
|
361
354
|
cellphone: string;
|
|
362
355
|
email: string;
|
|
363
356
|
monthly_income: number;
|
|
364
357
|
profession: string;
|
|
365
358
|
doc: string;
|
|
366
359
|
issuing_body: string;
|
|
367
|
-
|
|
360
|
+
voucher_local_installation_address: {
|
|
368
361
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
369
362
|
sizeBytes: number;
|
|
370
363
|
url?: string | undefined;
|
|
@@ -380,7 +373,7 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
380
373
|
url?: string | undefined;
|
|
381
374
|
};
|
|
382
375
|
rd_re_insurance_toggle: boolean;
|
|
383
|
-
|
|
376
|
+
proof_kinship?: {
|
|
384
377
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
385
378
|
sizeBytes: number;
|
|
386
379
|
url?: string | undefined;
|
|
@@ -389,28 +382,27 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
389
382
|
energy_bill_owner_document?: string | undefined;
|
|
390
383
|
}, {
|
|
391
384
|
number: string;
|
|
392
|
-
|
|
393
|
-
type_doc: "
|
|
385
|
+
sex: "masculino" | "feminino";
|
|
386
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
387
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
|
|
388
|
+
energy_account_in_requester_name: string;
|
|
394
389
|
doc_issue_date: string;
|
|
395
|
-
nationality: string;
|
|
396
390
|
name: string;
|
|
397
391
|
cep: string;
|
|
398
392
|
cpf: string;
|
|
399
393
|
address: string;
|
|
400
394
|
birth_date: string;
|
|
401
|
-
sex: "masculino" | "feminino";
|
|
402
395
|
mother_name: string;
|
|
403
396
|
district: string;
|
|
404
|
-
energy_account_in_requester_name: string;
|
|
405
397
|
city: string;
|
|
406
|
-
|
|
398
|
+
nationality: string;
|
|
407
399
|
cellphone: string;
|
|
408
400
|
email: string;
|
|
409
401
|
monthly_income: number;
|
|
410
402
|
profession: string;
|
|
411
403
|
doc: string;
|
|
412
404
|
issuing_body: string;
|
|
413
|
-
|
|
405
|
+
voucher_local_installation_address: {
|
|
414
406
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
415
407
|
sizeBytes: number;
|
|
416
408
|
url?: string | undefined;
|
|
@@ -425,7 +417,7 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
425
417
|
sizeBytes: number;
|
|
426
418
|
url?: string | undefined;
|
|
427
419
|
};
|
|
428
|
-
|
|
420
|
+
proof_kinship?: {
|
|
429
421
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
430
422
|
sizeBytes: number;
|
|
431
423
|
url?: string | undefined;
|
|
@@ -3,20 +3,46 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/SolfacilPFSchema.ts
|
|
6
|
-
var DocumentTypeEnum = zod.z.enum([
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var DocumentTypeEnum = zod.z.enum([
|
|
7
|
+
"documento_de_identidade",
|
|
8
|
+
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
|
+
]);
|
|
10
10
|
var SexEnum = zod.z.enum(["masculino", "feminino"]);
|
|
11
|
+
var UfEnum = zod.z.enum([
|
|
12
|
+
"AC",
|
|
13
|
+
"AL",
|
|
14
|
+
"AP",
|
|
15
|
+
"AM",
|
|
16
|
+
"BA",
|
|
17
|
+
"CE",
|
|
18
|
+
"DF",
|
|
19
|
+
"ES",
|
|
20
|
+
"GO",
|
|
21
|
+
"MA",
|
|
22
|
+
"MT",
|
|
23
|
+
"MS",
|
|
24
|
+
"MG",
|
|
25
|
+
"PA",
|
|
26
|
+
"PB",
|
|
27
|
+
"PR",
|
|
28
|
+
"PE",
|
|
29
|
+
"PI",
|
|
30
|
+
"RJ",
|
|
31
|
+
"RN",
|
|
32
|
+
"RS",
|
|
33
|
+
"RO",
|
|
34
|
+
"RR",
|
|
35
|
+
"SC",
|
|
36
|
+
"SP",
|
|
37
|
+
"SE",
|
|
38
|
+
"TO"
|
|
39
|
+
]);
|
|
11
40
|
function textField(maxLength) {
|
|
12
41
|
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
13
42
|
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
14
43
|
}
|
|
15
44
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
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");
|
|
17
|
-
function selectField(values) {
|
|
18
|
-
return zod.z.enum(values);
|
|
19
|
-
}
|
|
20
46
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
21
47
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
22
48
|
var fileUploadField = zod.z.object({
|
|
@@ -123,16 +149,16 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
123
149
|
}
|
|
124
150
|
|
|
125
151
|
// src/shared/regex/index.ts
|
|
126
|
-
var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF
|
|
127
|
-
zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ
|
|
152
|
+
var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
153
|
+
zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
128
154
|
var cpfCnpjSchema = zod.z.string().transform(onlyDigits).refine(
|
|
129
155
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
130
156
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
131
157
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
132
|
-
var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP
|
|
133
|
-
var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone
|
|
158
|
+
var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
159
|
+
var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
134
160
|
var emailSchema = zod.z.string().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
|
|
135
|
-
var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data
|
|
161
|
+
var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
136
162
|
var birthDateSchema = dateDMYSchema.refine(
|
|
137
163
|
(v) => isAdultDMY(v),
|
|
138
164
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -143,40 +169,61 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
143
169
|
);
|
|
144
170
|
var currencySchema = zod.z.number({ invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
|
|
145
171
|
zod.z.number().int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
|
|
146
|
-
var THIRD_PARTY_OPTIONS = [
|
|
147
|
-
"nao_se_aplica",
|
|
148
|
-
"conjuge",
|
|
149
|
-
"pai_mae",
|
|
150
|
-
"filho_filha",
|
|
151
|
-
"parente",
|
|
152
|
-
"outro"
|
|
153
|
-
];
|
|
154
172
|
var formalizationExtras = {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
bond_document_upload: fileUploadField.optional(),
|
|
173
|
+
voucher_local_installation_address: fileUploadField,
|
|
174
|
+
proof_kinship: fileUploadField.optional(),
|
|
158
175
|
document_front_upload: fileUploadField,
|
|
159
176
|
document_back_upload: fileUploadField,
|
|
160
|
-
// RN-014: seguro RD/RE começa ON.
|
|
161
177
|
rd_re_insurance_toggle: zod.z.boolean().default(true)
|
|
162
178
|
};
|
|
163
179
|
|
|
180
|
+
// src/domains/financing/enums/civil-status.ts
|
|
181
|
+
var CIVIL_STATUS_REQUIRING_PARTNER = ["casado"];
|
|
182
|
+
var PARTNER_FIELDS = [
|
|
183
|
+
"partner_name",
|
|
184
|
+
"partner_birth",
|
|
185
|
+
"partner_type_doc",
|
|
186
|
+
"partner_doc",
|
|
187
|
+
"partner_cpf",
|
|
188
|
+
"partner_city",
|
|
189
|
+
"communion_regime"
|
|
190
|
+
];
|
|
191
|
+
|
|
164
192
|
// src/domains/financing/enums/occupation.ts
|
|
165
193
|
var OCCUPATIONS_REQUIRING_CNPJ = ["empresario", "empresario_ou_proprietario"];
|
|
166
194
|
|
|
167
195
|
// src/domains/financing/formalization/refinements.ts
|
|
168
196
|
var RG_MAX_EMISSION_YEARS = 10;
|
|
197
|
+
function applyPartnerRefinement(data, ctx) {
|
|
198
|
+
const civilStatus = data.civil_status;
|
|
199
|
+
const requiresPartner = typeof civilStatus === "string" && CIVIL_STATUS_REQUIRING_PARTNER.includes(civilStatus);
|
|
200
|
+
if (!requiresPartner) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
for (const field of PARTNER_FIELDS) {
|
|
204
|
+
const value = data[field];
|
|
205
|
+
const isEmpty = value === void 0 || value === null || typeof value === "string" && value.trim().length === 0;
|
|
206
|
+
if (isEmpty) {
|
|
207
|
+
ctx.addIssue({
|
|
208
|
+
code: zod.z.ZodIssueCode.custom,
|
|
209
|
+
path: [field],
|
|
210
|
+
message: "Campo obrigat\xF3rio para o estado civil informado"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
169
215
|
function applyCommonRefinements(data, ctx) {
|
|
170
|
-
if ("
|
|
216
|
+
if ("energy_account_in_requester_name" in data && typeof data.energy_account_in_requester_name === "string" && data.energy_account_in_requester_name !== "nao_aplica" && !data.proof_kinship) {
|
|
171
217
|
ctx.addIssue({
|
|
172
218
|
code: zod.z.ZodIssueCode.custom,
|
|
173
|
-
path: ["
|
|
219
|
+
path: ["proof_kinship"],
|
|
174
220
|
message: "Documento de v\xEDnculo \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
|
|
175
221
|
});
|
|
176
222
|
}
|
|
177
223
|
}
|
|
178
224
|
function applyPfRefinements(data, ctx) {
|
|
179
225
|
applyCommonRefinements(data, ctx);
|
|
226
|
+
applyPartnerRefinement(data, ctx);
|
|
180
227
|
if ("nature_of_occupation" in data && typeof data.nature_of_occupation === "string" && OCCUPATIONS_REQUIRING_CNPJ.includes(data.nature_of_occupation) && !data.cnpj_proprietary) {
|
|
181
228
|
ctx.addIssue({
|
|
182
229
|
code: zod.z.ZodIssueCode.custom,
|
|
@@ -184,7 +231,7 @@ function applyPfRefinements(data, ctx) {
|
|
|
184
231
|
message: "CNPJ do propriet\xE1rio \xE9 obrigat\xF3rio para esta ocupa\xE7\xE3o"
|
|
185
232
|
});
|
|
186
233
|
}
|
|
187
|
-
if (data.type_doc === "
|
|
234
|
+
if (data.type_doc === "documento_de_identidade" && typeof data.doc_issue_date === "string") {
|
|
188
235
|
const years = yearsSinceDMY(data.doc_issue_date);
|
|
189
236
|
if (years !== null && years > RG_MAX_EMISSION_YEARS) {
|
|
190
237
|
ctx.addIssue({
|
|
@@ -194,13 +241,6 @@ function applyPfRefinements(data, ctx) {
|
|
|
194
241
|
});
|
|
195
242
|
}
|
|
196
243
|
}
|
|
197
|
-
if (typeof data.nationality === "string" && data.nationality.toLowerCase() !== NATIONALITY_BRAZIL && "type_doc" in data && data.type_doc !== "rne") {
|
|
198
|
-
ctx.addIssue({
|
|
199
|
-
code: zod.z.ZodIssueCode.custom,
|
|
200
|
-
path: ["type_doc"],
|
|
201
|
-
message: "Para nacionalidade estrangeira, o documento deve ser Registro de Estrangeiro (RNE)"
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
244
|
}
|
|
205
245
|
|
|
206
246
|
// src/domains/financing/formalization/schemas/SolfacilPFSchema.ts
|
|
@@ -219,7 +259,7 @@ var solfacilPfObject = zod.z.object({
|
|
|
219
259
|
energy_account_in_requester_name: textField(),
|
|
220
260
|
city: textField(),
|
|
221
261
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
222
|
-
state:
|
|
262
|
+
state: UfEnum,
|
|
223
263
|
nationality: textField(),
|
|
224
264
|
cellphone: phoneBRSchema,
|
|
225
265
|
email: emailSchema,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-F27U6CXB.mjs';
|
|
2
|
+
import '../../../chunk-7I2LXGA2.mjs';
|
|
3
|
+
import '../../../chunk-HBTFOSJU.mjs';
|