@77sol-lab/form-schemas 1.3.0 → 1.4.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-GCYI6OFG.mjs → chunk-2NFFUOYG.mjs} +1 -1
- package/{chunk-MWPQSGDD.mjs → chunk-2VGGCJ2O.mjs} +1 -1
- package/{chunk-B7RDVG4R.mjs → chunk-36ZWNLRE.mjs} +2 -2
- package/{chunk-TEL6EWAJ.mjs → chunk-3LKC3OJJ.mjs} +1 -1
- package/{chunk-XUMC3TQU.mjs → chunk-3QVWHHHF.mjs} +1 -1
- package/chunk-7I2LXGA2.mjs +13 -0
- package/{chunk-KXEEZLMR.mjs → chunk-A5ZODVEU.mjs} +2 -2
- package/{chunk-NL4VK2TF.mjs → chunk-AXXSWRN2.mjs} +2 -2
- package/{chunk-2TGZGHS3.mjs → chunk-BCQD5NJB.mjs} +2 -2
- package/{chunk-FVIOZ4Q5.mjs → chunk-BPWVGI53.mjs} +2 -2
- package/{chunk-TUYULPDF.mjs → chunk-BTHGPT5U.mjs} +1 -1
- package/{chunk-RMWCQ6YU.mjs → chunk-BZ4V4AAJ.mjs} +2 -2
- package/{chunk-G3T562PC.mjs → chunk-DIARPLFL.mjs} +1 -1
- package/{chunk-EFLW2FHX.mjs → chunk-DWXCA5I6.mjs} +1 -1
- package/{chunk-FISPUQLP.mjs → chunk-ENVJMMCX.mjs} +2 -2
- package/{chunk-XNACW46V.mjs → chunk-HK7VVKRF.mjs} +2 -2
- package/chunk-LZCHOENM.mjs +433 -0
- package/{chunk-ORO6OVTB.mjs → chunk-MUFER7FT.mjs} +2 -2
- package/{chunk-W3CNJVMM.mjs → chunk-PP5WJMGB.mjs} +2 -2
- package/{chunk-6BD6V7EB.mjs → chunk-PYKWBM67.mjs} +1 -1
- package/{chunk-TCPW5MUT.mjs → chunk-PZG2YKS4.mjs} +2 -2
- package/{chunk-HKY6D6J5.mjs → chunk-QBQDE5Y7.mjs} +2 -2
- package/{chunk-TE64VI3I.mjs → chunk-QH5BHXWK.mjs} +1 -1
- package/{chunk-7LHQ27CS.mjs → chunk-QZR62OU5.mjs} +2 -2
- package/{chunk-36GQASLI.mjs → chunk-RFML2PIV.mjs} +1 -1
- package/{chunk-NDJRJOFE.mjs → chunk-SKFIWDPV.mjs} +47 -33
- package/chunk-TIB6TEME.mjs +109 -0
- package/{chunk-UHMVAJYK.mjs → chunk-UHQAHHAO.mjs} +2 -2
- package/{chunk-TTHE6D3Y.mjs → chunk-VMIR7MGU.mjs} +2 -2
- package/{chunk-CY2EXD6C.mjs → chunk-X3M274QY.mjs} +2 -2
- package/{chunk-SBOQWT53.mjs → chunk-XXID67A4.mjs} +2 -2
- package/{chunk-22ZUS7K3.mjs → chunk-XZSZRCO2.mjs} +1 -1
- package/{chunk-WHVCW22E.mjs → chunk-YZ3YYQEI.mjs} +2 -2
- package/financing/formalization/index.d.cts +1601 -1809
- package/financing/formalization/index.d.ts +1601 -1809
- package/financing/formalization/index.js +359 -91
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/AlfaPFSchema.js +45 -34
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/AlfaPJSchema.js +9 -22
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +45 -34
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +9 -22
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/BtgPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/BtgPFSchema.js +45 -34
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +58 -66
- package/financing/formalization/schemas/BtgPJSchema.d.ts +58 -66
- package/financing/formalization/schemas/BtgPJSchema.js +13 -23
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +60 -68
- package/financing/formalization/schemas/BvPFSchema.d.ts +60 -68
- package/financing/formalization/schemas/BvPFSchema.js +45 -34
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +88 -96
- package/financing/formalization/schemas/BvPJSchema.d.ts +88 -96
- package/financing/formalization/schemas/BvPJSchema.js +13 -23
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +45 -34
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +9 -22
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +42 -50
- package/financing/formalization/schemas/CashMePFSchema.d.ts +42 -50
- package/financing/formalization/schemas/CashMePFSchema.js +45 -34
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +36 -44
- package/financing/formalization/schemas/CashMePJSchema.d.ts +36 -44
- package/financing/formalization/schemas/CashMePJSchema.js +9 -22
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +42 -50
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +42 -50
- package/financing/formalization/schemas/Credito77PFSchema.js +45 -34
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +36 -44
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +36 -44
- package/financing/formalization/schemas/Credito77PJSchema.js +9 -22
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/EosPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/EosPFSchema.js +45 -34
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/EosPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/EosPJSchema.js +9 -22
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +45 -34
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +9 -22
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/LosangoPFSchema.js +45 -34
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/LosangoPJSchema.js +9 -22
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/SafraPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/SafraPFSchema.js +45 -34
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/SafraPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/SafraPJSchema.js +9 -22
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/SantanderPFSchema.js +45 -34
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +36 -44
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +36 -44
- package/financing/formalization/schemas/SantanderPJSchema.js +9 -22
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/SolAgoraPFSchema.js +45 -34
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +58 -66
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +58 -66
- package/financing/formalization/schemas/SolAgoraPJSchema.js +13 -23
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +42 -50
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +42 -50
- package/financing/formalization/schemas/SolfacilPFSchema.js +45 -34
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +46 -54
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +46 -54
- package/financing/formalization/schemas/SolfacilPJSchema.js +9 -22
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +204 -148
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +204 -148
- package/financing/formalization/schemas/UnifiedPFSchema.js +82 -40
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +150 -158
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +150 -158
- package/financing/formalization/schemas/UnifiedPJSchema.js +13 -23
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +359 -91
- 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
|
@@ -30,13 +30,13 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
30
30
|
company_time: z.ZodNumber;
|
|
31
31
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
32
32
|
equity_value: z.ZodNumber;
|
|
33
|
-
type_doc: z.ZodEnum<["
|
|
33
|
+
type_doc: z.ZodEnum<["documento_de_identidade", "carteira_nacional_de_habilitação"]>;
|
|
34
34
|
doc: z.ZodString;
|
|
35
35
|
issuing_body: z.ZodString;
|
|
36
36
|
emitting_state: z.ZodString;
|
|
37
37
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
38
38
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
39
|
-
|
|
39
|
+
voucher_local_installation_address: z.ZodObject<{
|
|
40
40
|
url: z.ZodOptional<z.ZodString>;
|
|
41
41
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
42
42
|
sizeBytes: z.ZodNumber;
|
|
@@ -49,8 +49,7 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
49
49
|
sizeBytes: number;
|
|
50
50
|
url?: string | undefined;
|
|
51
51
|
}>;
|
|
52
|
-
|
|
53
|
-
bond_document_upload: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
54
53
|
url: z.ZodOptional<z.ZodString>;
|
|
55
54
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
56
55
|
sizeBytes: z.ZodNumber;
|
|
@@ -92,29 +91,30 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
92
91
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
93
92
|
}, "strip", z.ZodTypeAny, {
|
|
94
93
|
number: string;
|
|
95
|
-
|
|
94
|
+
sex: "masculino" | "feminino";
|
|
95
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
96
|
+
residence_situation: string;
|
|
96
97
|
nature_of_occupation: string;
|
|
97
|
-
|
|
98
|
+
civil_status: string;
|
|
99
|
+
energy_account_in_requester_name: string;
|
|
98
100
|
doc_issue_date: string;
|
|
99
|
-
nationality: string;
|
|
100
101
|
name: string;
|
|
101
102
|
cep: string;
|
|
102
103
|
cpf: string;
|
|
103
104
|
address: string;
|
|
104
105
|
birth_date: string;
|
|
105
|
-
sex: "masculino" | "feminino";
|
|
106
106
|
mother_name: string;
|
|
107
107
|
district: string;
|
|
108
|
-
energy_account_in_requester_name: string;
|
|
109
108
|
city: string;
|
|
110
109
|
state: string;
|
|
110
|
+
nationality: string;
|
|
111
111
|
cellphone: string;
|
|
112
112
|
email: string;
|
|
113
113
|
monthly_income: number;
|
|
114
114
|
profession: string;
|
|
115
115
|
doc: string;
|
|
116
116
|
issuing_body: string;
|
|
117
|
-
|
|
117
|
+
voucher_local_installation_address: {
|
|
118
118
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
119
119
|
sizeBytes: number;
|
|
120
120
|
url?: string | undefined;
|
|
@@ -130,16 +130,15 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
130
130
|
url?: string | undefined;
|
|
131
131
|
};
|
|
132
132
|
rd_re_insurance_toggle: boolean;
|
|
133
|
-
civil_status: string;
|
|
134
133
|
uf_naturalness: string;
|
|
135
|
-
residence_situation: string;
|
|
136
134
|
months_in_residence: number;
|
|
137
135
|
is_installation_at_requester: string;
|
|
138
136
|
naturalness: string;
|
|
139
137
|
company_time: number;
|
|
140
138
|
equity_value: number;
|
|
141
139
|
emitting_state: string;
|
|
142
|
-
|
|
140
|
+
pep_relationship?: string | undefined;
|
|
141
|
+
proof_kinship?: {
|
|
143
142
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
144
143
|
sizeBytes: number;
|
|
145
144
|
url?: string | undefined;
|
|
@@ -147,32 +146,32 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
147
146
|
cnpj_proprietary?: string | undefined;
|
|
148
147
|
complement?: string | undefined;
|
|
149
148
|
energy_bill_owner_document?: string | undefined;
|
|
150
|
-
pep_relationship?: string | undefined;
|
|
151
149
|
}, {
|
|
152
150
|
number: string;
|
|
153
|
-
|
|
151
|
+
sex: "masculino" | "feminino";
|
|
152
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
153
|
+
residence_situation: string;
|
|
154
154
|
nature_of_occupation: string;
|
|
155
|
-
|
|
155
|
+
civil_status: string;
|
|
156
|
+
energy_account_in_requester_name: string;
|
|
156
157
|
doc_issue_date: string;
|
|
157
|
-
nationality: string;
|
|
158
158
|
name: string;
|
|
159
159
|
cep: string;
|
|
160
160
|
cpf: string;
|
|
161
161
|
address: string;
|
|
162
162
|
birth_date: string;
|
|
163
|
-
sex: "masculino" | "feminino";
|
|
164
163
|
mother_name: string;
|
|
165
164
|
district: string;
|
|
166
|
-
energy_account_in_requester_name: string;
|
|
167
165
|
city: string;
|
|
168
166
|
state: string;
|
|
167
|
+
nationality: string;
|
|
169
168
|
cellphone: string;
|
|
170
169
|
email: string;
|
|
171
170
|
monthly_income: number;
|
|
172
171
|
profession: string;
|
|
173
172
|
doc: string;
|
|
174
173
|
issuing_body: string;
|
|
175
|
-
|
|
174
|
+
voucher_local_installation_address: {
|
|
176
175
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
177
176
|
sizeBytes: number;
|
|
178
177
|
url?: string | undefined;
|
|
@@ -187,16 +186,15 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
187
186
|
sizeBytes: number;
|
|
188
187
|
url?: string | undefined;
|
|
189
188
|
};
|
|
190
|
-
civil_status: string;
|
|
191
189
|
uf_naturalness: string;
|
|
192
|
-
residence_situation: string;
|
|
193
190
|
months_in_residence: number;
|
|
194
191
|
is_installation_at_requester: string;
|
|
195
192
|
naturalness: string;
|
|
196
193
|
company_time: number;
|
|
197
194
|
equity_value: number;
|
|
198
195
|
emitting_state: string;
|
|
199
|
-
|
|
196
|
+
pep_relationship?: string | undefined;
|
|
197
|
+
proof_kinship?: {
|
|
200
198
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
201
199
|
sizeBytes: number;
|
|
202
200
|
url?: string | undefined;
|
|
@@ -205,7 +203,6 @@ declare const bvPfObject: z.ZodObject<{
|
|
|
205
203
|
complement?: string | undefined;
|
|
206
204
|
energy_bill_owner_document?: string | undefined;
|
|
207
205
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
208
|
-
pep_relationship?: string | undefined;
|
|
209
206
|
}>;
|
|
210
207
|
declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
211
208
|
name: z.ZodString;
|
|
@@ -237,13 +234,13 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
237
234
|
company_time: z.ZodNumber;
|
|
238
235
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
239
236
|
equity_value: z.ZodNumber;
|
|
240
|
-
type_doc: z.ZodEnum<["
|
|
237
|
+
type_doc: z.ZodEnum<["documento_de_identidade", "carteira_nacional_de_habilitação"]>;
|
|
241
238
|
doc: z.ZodString;
|
|
242
239
|
issuing_body: z.ZodString;
|
|
243
240
|
emitting_state: z.ZodString;
|
|
244
241
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
245
242
|
pep_relationship: z.ZodOptional<z.ZodString>;
|
|
246
|
-
|
|
243
|
+
voucher_local_installation_address: z.ZodObject<{
|
|
247
244
|
url: z.ZodOptional<z.ZodString>;
|
|
248
245
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
249
246
|
sizeBytes: z.ZodNumber;
|
|
@@ -256,8 +253,7 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
256
253
|
sizeBytes: number;
|
|
257
254
|
url?: string | undefined;
|
|
258
255
|
}>;
|
|
259
|
-
|
|
260
|
-
bond_document_upload: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
261
257
|
url: z.ZodOptional<z.ZodString>;
|
|
262
258
|
mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
|
|
263
259
|
sizeBytes: z.ZodNumber;
|
|
@@ -299,29 +295,30 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
299
295
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
300
296
|
}, "strict", z.ZodTypeAny, {
|
|
301
297
|
number: string;
|
|
302
|
-
|
|
298
|
+
sex: "masculino" | "feminino";
|
|
299
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
300
|
+
residence_situation: string;
|
|
303
301
|
nature_of_occupation: string;
|
|
304
|
-
|
|
302
|
+
civil_status: string;
|
|
303
|
+
energy_account_in_requester_name: string;
|
|
305
304
|
doc_issue_date: string;
|
|
306
|
-
nationality: string;
|
|
307
305
|
name: string;
|
|
308
306
|
cep: string;
|
|
309
307
|
cpf: string;
|
|
310
308
|
address: string;
|
|
311
309
|
birth_date: string;
|
|
312
|
-
sex: "masculino" | "feminino";
|
|
313
310
|
mother_name: string;
|
|
314
311
|
district: string;
|
|
315
|
-
energy_account_in_requester_name: string;
|
|
316
312
|
city: string;
|
|
317
313
|
state: string;
|
|
314
|
+
nationality: string;
|
|
318
315
|
cellphone: string;
|
|
319
316
|
email: string;
|
|
320
317
|
monthly_income: number;
|
|
321
318
|
profession: string;
|
|
322
319
|
doc: string;
|
|
323
320
|
issuing_body: string;
|
|
324
|
-
|
|
321
|
+
voucher_local_installation_address: {
|
|
325
322
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
326
323
|
sizeBytes: number;
|
|
327
324
|
url?: string | undefined;
|
|
@@ -337,16 +334,15 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
334
|
url?: string | undefined;
|
|
338
335
|
};
|
|
339
336
|
rd_re_insurance_toggle: boolean;
|
|
340
|
-
civil_status: string;
|
|
341
337
|
uf_naturalness: string;
|
|
342
|
-
residence_situation: string;
|
|
343
338
|
months_in_residence: number;
|
|
344
339
|
is_installation_at_requester: string;
|
|
345
340
|
naturalness: string;
|
|
346
341
|
company_time: number;
|
|
347
342
|
equity_value: number;
|
|
348
343
|
emitting_state: string;
|
|
349
|
-
|
|
344
|
+
pep_relationship?: string | undefined;
|
|
345
|
+
proof_kinship?: {
|
|
350
346
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
351
347
|
sizeBytes: number;
|
|
352
348
|
url?: string | undefined;
|
|
@@ -354,32 +350,32 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
354
350
|
cnpj_proprietary?: string | undefined;
|
|
355
351
|
complement?: string | undefined;
|
|
356
352
|
energy_bill_owner_document?: string | undefined;
|
|
357
|
-
pep_relationship?: string | undefined;
|
|
358
353
|
}, {
|
|
359
354
|
number: string;
|
|
360
|
-
|
|
355
|
+
sex: "masculino" | "feminino";
|
|
356
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
357
|
+
residence_situation: string;
|
|
361
358
|
nature_of_occupation: string;
|
|
362
|
-
|
|
359
|
+
civil_status: string;
|
|
360
|
+
energy_account_in_requester_name: string;
|
|
363
361
|
doc_issue_date: string;
|
|
364
|
-
nationality: string;
|
|
365
362
|
name: string;
|
|
366
363
|
cep: string;
|
|
367
364
|
cpf: string;
|
|
368
365
|
address: string;
|
|
369
366
|
birth_date: string;
|
|
370
|
-
sex: "masculino" | "feminino";
|
|
371
367
|
mother_name: string;
|
|
372
368
|
district: string;
|
|
373
|
-
energy_account_in_requester_name: string;
|
|
374
369
|
city: string;
|
|
375
370
|
state: string;
|
|
371
|
+
nationality: string;
|
|
376
372
|
cellphone: string;
|
|
377
373
|
email: string;
|
|
378
374
|
monthly_income: number;
|
|
379
375
|
profession: string;
|
|
380
376
|
doc: string;
|
|
381
377
|
issuing_body: string;
|
|
382
|
-
|
|
378
|
+
voucher_local_installation_address: {
|
|
383
379
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
384
380
|
sizeBytes: number;
|
|
385
381
|
url?: string | undefined;
|
|
@@ -394,16 +390,15 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
394
390
|
sizeBytes: number;
|
|
395
391
|
url?: string | undefined;
|
|
396
392
|
};
|
|
397
|
-
civil_status: string;
|
|
398
393
|
uf_naturalness: string;
|
|
399
|
-
residence_situation: string;
|
|
400
394
|
months_in_residence: number;
|
|
401
395
|
is_installation_at_requester: string;
|
|
402
396
|
naturalness: string;
|
|
403
397
|
company_time: number;
|
|
404
398
|
equity_value: number;
|
|
405
399
|
emitting_state: string;
|
|
406
|
-
|
|
400
|
+
pep_relationship?: string | undefined;
|
|
401
|
+
proof_kinship?: {
|
|
407
402
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
408
403
|
sizeBytes: number;
|
|
409
404
|
url?: string | undefined;
|
|
@@ -412,32 +407,32 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
412
407
|
complement?: string | undefined;
|
|
413
408
|
energy_bill_owner_document?: string | undefined;
|
|
414
409
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
415
|
-
pep_relationship?: string | undefined;
|
|
416
410
|
}>, {
|
|
417
411
|
number: string;
|
|
418
|
-
|
|
412
|
+
sex: "masculino" | "feminino";
|
|
413
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
414
|
+
residence_situation: string;
|
|
419
415
|
nature_of_occupation: string;
|
|
420
|
-
|
|
416
|
+
civil_status: string;
|
|
417
|
+
energy_account_in_requester_name: string;
|
|
421
418
|
doc_issue_date: string;
|
|
422
|
-
nationality: string;
|
|
423
419
|
name: string;
|
|
424
420
|
cep: string;
|
|
425
421
|
cpf: string;
|
|
426
422
|
address: string;
|
|
427
423
|
birth_date: string;
|
|
428
|
-
sex: "masculino" | "feminino";
|
|
429
424
|
mother_name: string;
|
|
430
425
|
district: string;
|
|
431
|
-
energy_account_in_requester_name: string;
|
|
432
426
|
city: string;
|
|
433
427
|
state: string;
|
|
428
|
+
nationality: string;
|
|
434
429
|
cellphone: string;
|
|
435
430
|
email: string;
|
|
436
431
|
monthly_income: number;
|
|
437
432
|
profession: string;
|
|
438
433
|
doc: string;
|
|
439
434
|
issuing_body: string;
|
|
440
|
-
|
|
435
|
+
voucher_local_installation_address: {
|
|
441
436
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
442
437
|
sizeBytes: number;
|
|
443
438
|
url?: string | undefined;
|
|
@@ -453,16 +448,15 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
453
448
|
url?: string | undefined;
|
|
454
449
|
};
|
|
455
450
|
rd_re_insurance_toggle: boolean;
|
|
456
|
-
civil_status: string;
|
|
457
451
|
uf_naturalness: string;
|
|
458
|
-
residence_situation: string;
|
|
459
452
|
months_in_residence: number;
|
|
460
453
|
is_installation_at_requester: string;
|
|
461
454
|
naturalness: string;
|
|
462
455
|
company_time: number;
|
|
463
456
|
equity_value: number;
|
|
464
457
|
emitting_state: string;
|
|
465
|
-
|
|
458
|
+
pep_relationship?: string | undefined;
|
|
459
|
+
proof_kinship?: {
|
|
466
460
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
467
461
|
sizeBytes: number;
|
|
468
462
|
url?: string | undefined;
|
|
@@ -470,32 +464,32 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
470
464
|
cnpj_proprietary?: string | undefined;
|
|
471
465
|
complement?: string | undefined;
|
|
472
466
|
energy_bill_owner_document?: string | undefined;
|
|
473
|
-
pep_relationship?: string | undefined;
|
|
474
467
|
}, {
|
|
475
468
|
number: string;
|
|
476
|
-
|
|
469
|
+
sex: "masculino" | "feminino";
|
|
470
|
+
type_doc: "documento_de_identidade" | "carteira_nacional_de_habilitação";
|
|
471
|
+
residence_situation: string;
|
|
477
472
|
nature_of_occupation: string;
|
|
478
|
-
|
|
473
|
+
civil_status: string;
|
|
474
|
+
energy_account_in_requester_name: string;
|
|
479
475
|
doc_issue_date: string;
|
|
480
|
-
nationality: string;
|
|
481
476
|
name: string;
|
|
482
477
|
cep: string;
|
|
483
478
|
cpf: string;
|
|
484
479
|
address: string;
|
|
485
480
|
birth_date: string;
|
|
486
|
-
sex: "masculino" | "feminino";
|
|
487
481
|
mother_name: string;
|
|
488
482
|
district: string;
|
|
489
|
-
energy_account_in_requester_name: string;
|
|
490
483
|
city: string;
|
|
491
484
|
state: string;
|
|
485
|
+
nationality: string;
|
|
492
486
|
cellphone: string;
|
|
493
487
|
email: string;
|
|
494
488
|
monthly_income: number;
|
|
495
489
|
profession: string;
|
|
496
490
|
doc: string;
|
|
497
491
|
issuing_body: string;
|
|
498
|
-
|
|
492
|
+
voucher_local_installation_address: {
|
|
499
493
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
500
494
|
sizeBytes: number;
|
|
501
495
|
url?: string | undefined;
|
|
@@ -510,16 +504,15 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
510
504
|
sizeBytes: number;
|
|
511
505
|
url?: string | undefined;
|
|
512
506
|
};
|
|
513
|
-
civil_status: string;
|
|
514
507
|
uf_naturalness: string;
|
|
515
|
-
residence_situation: string;
|
|
516
508
|
months_in_residence: number;
|
|
517
509
|
is_installation_at_requester: string;
|
|
518
510
|
naturalness: string;
|
|
519
511
|
company_time: number;
|
|
520
512
|
equity_value: number;
|
|
521
513
|
emitting_state: string;
|
|
522
|
-
|
|
514
|
+
pep_relationship?: string | undefined;
|
|
515
|
+
proof_kinship?: {
|
|
523
516
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
524
517
|
sizeBytes: number;
|
|
525
518
|
url?: string | undefined;
|
|
@@ -528,7 +521,6 @@ declare const bvPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
528
521
|
complement?: string | undefined;
|
|
529
522
|
energy_bill_owner_document?: string | undefined;
|
|
530
523
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
531
|
-
pep_relationship?: string | undefined;
|
|
532
524
|
}>;
|
|
533
525
|
type BvPfFicha = z.infer<typeof bvPfSchema>;
|
|
534
526
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/BvPFSchema.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
11
|
function textField(maxLength) {
|
|
12
12
|
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
@@ -14,9 +14,6 @@ function textField(maxLength) {
|
|
|
14
14
|
}
|
|
15
15
|
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
16
|
var integerField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
17
|
-
function selectField(values) {
|
|
18
|
-
return zod.z.enum(values);
|
|
19
|
-
}
|
|
20
17
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
21
18
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
22
19
|
var fileUploadField = zod.z.object({
|
|
@@ -123,16 +120,16 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
123
120
|
}
|
|
124
121
|
|
|
125
122
|
// src/shared/regex/index.ts
|
|
126
|
-
var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF
|
|
127
|
-
var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ
|
|
123
|
+
var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
124
|
+
var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
128
125
|
var cpfCnpjSchema = zod.z.string().transform(onlyDigits).refine(
|
|
129
126
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
130
127
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
131
128
|
).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
|
|
129
|
+
var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
130
|
+
var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
134
131
|
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
|
|
132
|
+
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
133
|
var birthDateSchema = dateDMYSchema.refine(
|
|
137
134
|
(v) => isAdultDMY(v),
|
|
138
135
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -143,40 +140,61 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
143
140
|
);
|
|
144
141
|
var currencySchema = zod.z.number({ invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
|
|
145
142
|
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
143
|
var formalizationExtras = {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
bond_document_upload: fileUploadField.optional(),
|
|
144
|
+
voucher_local_installation_address: fileUploadField,
|
|
145
|
+
proof_kinship: fileUploadField.optional(),
|
|
158
146
|
document_front_upload: fileUploadField,
|
|
159
147
|
document_back_upload: fileUploadField,
|
|
160
|
-
// RN-014: seguro RD/RE começa ON.
|
|
161
148
|
rd_re_insurance_toggle: zod.z.boolean().default(true)
|
|
162
149
|
};
|
|
163
150
|
|
|
151
|
+
// src/domains/financing/enums/civil-status.ts
|
|
152
|
+
var CIVIL_STATUS_REQUIRING_PARTNER = ["casado"];
|
|
153
|
+
var PARTNER_FIELDS = [
|
|
154
|
+
"partner_name",
|
|
155
|
+
"partner_birth",
|
|
156
|
+
"partner_type_doc",
|
|
157
|
+
"partner_doc",
|
|
158
|
+
"partner_cpf",
|
|
159
|
+
"partner_city",
|
|
160
|
+
"communion_regime"
|
|
161
|
+
];
|
|
162
|
+
|
|
164
163
|
// src/domains/financing/enums/occupation.ts
|
|
165
164
|
var OCCUPATIONS_REQUIRING_CNPJ = ["empresario", "empresario_ou_proprietario"];
|
|
166
165
|
|
|
167
166
|
// src/domains/financing/formalization/refinements.ts
|
|
168
167
|
var RG_MAX_EMISSION_YEARS = 10;
|
|
168
|
+
function applyPartnerRefinement(data, ctx) {
|
|
169
|
+
const civilStatus = data.civil_status;
|
|
170
|
+
const requiresPartner = typeof civilStatus === "string" && CIVIL_STATUS_REQUIRING_PARTNER.includes(civilStatus);
|
|
171
|
+
if (!requiresPartner) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
for (const field of PARTNER_FIELDS) {
|
|
175
|
+
const value = data[field];
|
|
176
|
+
const isEmpty = value === void 0 || value === null || typeof value === "string" && value.trim().length === 0;
|
|
177
|
+
if (isEmpty) {
|
|
178
|
+
ctx.addIssue({
|
|
179
|
+
code: zod.z.ZodIssueCode.custom,
|
|
180
|
+
path: [field],
|
|
181
|
+
message: "Campo obrigat\xF3rio para o estado civil informado"
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
169
186
|
function applyCommonRefinements(data, ctx) {
|
|
170
|
-
if ("
|
|
187
|
+
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
188
|
ctx.addIssue({
|
|
172
189
|
code: zod.z.ZodIssueCode.custom,
|
|
173
|
-
path: ["
|
|
190
|
+
path: ["proof_kinship"],
|
|
174
191
|
message: "Documento de v\xEDnculo \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
|
|
175
192
|
});
|
|
176
193
|
}
|
|
177
194
|
}
|
|
178
195
|
function applyPfRefinements(data, ctx) {
|
|
179
196
|
applyCommonRefinements(data, ctx);
|
|
197
|
+
applyPartnerRefinement(data, ctx);
|
|
180
198
|
if ("nature_of_occupation" in data && typeof data.nature_of_occupation === "string" && OCCUPATIONS_REQUIRING_CNPJ.includes(data.nature_of_occupation) && !data.cnpj_proprietary) {
|
|
181
199
|
ctx.addIssue({
|
|
182
200
|
code: zod.z.ZodIssueCode.custom,
|
|
@@ -184,7 +202,7 @@ function applyPfRefinements(data, ctx) {
|
|
|
184
202
|
message: "CNPJ do propriet\xE1rio \xE9 obrigat\xF3rio para esta ocupa\xE7\xE3o"
|
|
185
203
|
});
|
|
186
204
|
}
|
|
187
|
-
if (data.type_doc === "
|
|
205
|
+
if (data.type_doc === "documento_de_identidade" && typeof data.doc_issue_date === "string") {
|
|
188
206
|
const years = yearsSinceDMY(data.doc_issue_date);
|
|
189
207
|
if (years !== null && years > RG_MAX_EMISSION_YEARS) {
|
|
190
208
|
ctx.addIssue({
|
|
@@ -194,13 +212,6 @@ function applyPfRefinements(data, ctx) {
|
|
|
194
212
|
});
|
|
195
213
|
}
|
|
196
214
|
}
|
|
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
215
|
}
|
|
205
216
|
|
|
206
217
|
// src/domains/financing/formalization/schemas/BvPFSchema.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { bvPfObject, bvPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { bvPfObject, bvPfSchema } from '../../../chunk-X3M274QY.mjs';
|
|
2
|
+
import '../../../chunk-7I2LXGA2.mjs';
|
|
3
|
+
import '../../../chunk-SKFIWDPV.mjs';
|