@77sol-lab/form-schemas 1.7.0 → 3.0.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-HMC73HBG.mjs → chunk-4T4DDJJZ.mjs} +7 -7
- package/{chunk-DIYEI2PA.mjs → chunk-65WB3CQB.mjs} +9 -9
- package/{chunk-VP4HT24O.mjs → chunk-6AISIJ3O.mjs} +7 -7
- package/{chunk-LU5ODSGQ.mjs → chunk-7ULQG7YJ.mjs} +9 -9
- package/{chunk-QMODZE4A.mjs → chunk-7VU2KIBV.mjs} +7 -7
- package/chunk-BXLQYGEB.mjs +105 -0
- package/{chunk-VDFDTLU5.mjs → chunk-CGBX6OCD.mjs} +7 -7
- package/{chunk-ENDOIQ32.mjs → chunk-CJSJ3VDW.mjs} +138 -60
- package/{chunk-6ZUOXZY3.mjs → chunk-EG5RVHCZ.mjs} +9 -9
- package/{chunk-5EHEC3RT.mjs → chunk-F4RMWUXJ.mjs} +10 -10
- package/{chunk-KJTTMDZP.mjs → chunk-GBKY6QE3.mjs} +7 -7
- package/{chunk-AM7HTUI3.mjs → chunk-HF7G6PTH.mjs} +9 -9
- package/{chunk-65EE5FW3.mjs → chunk-HX5UJCA2.mjs} +7 -7
- package/{chunk-L3OISOZA.mjs → chunk-HXHJSQ2X.mjs} +9 -9
- package/{chunk-UF45URAJ.mjs → chunk-IVY6IQXZ.mjs} +9 -9
- package/{chunk-FBDTG3WD.mjs → chunk-K3QXEL6M.mjs} +20 -21
- package/{chunk-CPDLICOP.mjs → chunk-LDL7QLPB.mjs} +7 -7
- package/{chunk-ORQ52KPA.mjs → chunk-LRIO6V7H.mjs} +7 -7
- package/{chunk-MM6LQXI6.mjs → chunk-OIGZEDM3.mjs} +7 -7
- package/{chunk-PDBPFNAN.mjs → chunk-OJUTNXHL.mjs} +136 -39
- package/{chunk-KBILM3GO.mjs → chunk-OKAMQBUN.mjs} +7 -7
- package/{chunk-TDL42FZZ.mjs → chunk-PCTF5JYB.mjs} +9 -9
- package/{chunk-2BHUMNK5.mjs → chunk-PCXYLWDD.mjs} +9 -9
- package/chunk-QEPJ2RLU.mjs +18 -0
- package/{chunk-5P6NWFTX.mjs → chunk-QQCSQ3L4.mjs} +10 -10
- package/{chunk-TKHIBI4R.mjs → chunk-R5TJYTTO.mjs} +9 -9
- package/{chunk-U4ZDMJX2.mjs → chunk-T2FBV7WO.mjs} +10 -10
- package/{chunk-RWOX5QO3.mjs → chunk-TNZ33455.mjs} +7 -7
- package/{chunk-Y67MNG2X.mjs → chunk-TWOBBIQC.mjs} +9 -9
- package/{chunk-22SYVROO.mjs → chunk-TZEPVIC4.mjs} +9 -9
- package/{chunk-FIPFWGBQ.mjs → chunk-UK62IINL.mjs} +7 -7
- package/{chunk-BYAXV4TG.mjs → chunk-VTTNXB64.mjs} +7 -7
- package/{chunk-DJDG3UYR.mjs → chunk-VWKF4I2L.mjs} +9 -9
- package/financing/formalization/index.d.cts +4848 -19624
- package/financing/formalization/index.d.ts +4848 -19624
- package/financing/formalization/index.js +516 -278
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/AlfaPFSchema.js +127 -47
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/AlfaPJSchema.js +188 -46
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +127 -47
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +188 -46
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/BtgPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/BtgPFSchema.js +127 -47
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +147 -747
- package/financing/formalization/schemas/BtgPJSchema.d.ts +147 -747
- package/financing/formalization/schemas/BtgPJSchema.js +193 -47
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +125 -477
- package/financing/formalization/schemas/BvPFSchema.d.ts +125 -477
- package/financing/formalization/schemas/BvPFSchema.js +129 -49
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +149 -819
- package/financing/formalization/schemas/BvPJSchema.d.ts +149 -819
- package/financing/formalization/schemas/BvPJSchema.js +193 -47
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +127 -47
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +188 -46
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +107 -395
- package/financing/formalization/schemas/CashMePFSchema.d.ts +107 -395
- package/financing/formalization/schemas/CashMePFSchema.js +127 -47
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +119 -621
- package/financing/formalization/schemas/CashMePJSchema.d.ts +119 -621
- package/financing/formalization/schemas/CashMePJSchema.js +188 -46
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +107 -395
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +107 -395
- package/financing/formalization/schemas/Credito77PFSchema.js +127 -47
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +119 -621
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +119 -621
- package/financing/formalization/schemas/Credito77PJSchema.js +188 -46
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/EosPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/EosPFSchema.js +127 -47
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/EosPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/EosPJSchema.js +188 -46
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +127 -47
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +188 -46
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/LosangoPFSchema.js +127 -47
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/LosangoPJSchema.js +188 -46
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/SafraPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/SafraPFSchema.js +127 -47
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/SafraPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/SafraPJSchema.js +188 -46
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/SantanderPFSchema.js +127 -47
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +119 -621
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +119 -621
- package/financing/formalization/schemas/SantanderPJSchema.js +188 -46
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/SolAgoraPFSchema.js +127 -47
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +145 -725
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +145 -725
- package/financing/formalization/schemas/SolAgoraPJSchema.js +193 -47
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +107 -395
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +107 -395
- package/financing/formalization/schemas/SolfacilPFSchema.js +127 -47
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +131 -679
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +131 -679
- package/financing/formalization/schemas/SolfacilPJSchema.js +188 -46
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +185 -557
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +185 -557
- package/financing/formalization/schemas/UnifiedPFSchema.js +141 -61
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +265 -1269
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +265 -1269
- package/financing/formalization/schemas/UnifiedPJSchema.js +238 -92
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +2 -1
- package/index.d.ts +2 -1
- package/index.js +516 -278
- package/index.mjs +33 -33
- package/package.json +2 -2
- package/chunk-4PZYGTUU.mjs +0 -105
- package/chunk-JZ7DY7SU.mjs +0 -13
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { santanderPfObject, santanderPfSchema } from './chunk-
|
|
2
|
-
import { santanderPjObject, santanderPjSchema } from './chunk-
|
|
3
|
-
import { solAgoraPfObject, solAgoraPfSchema } from './chunk-
|
|
4
|
-
import { solAgoraPjObject, solAgoraPjSchema } from './chunk-
|
|
5
|
-
import { solfacilPfObject, solfacilPfSchema } from './chunk-
|
|
6
|
-
import { solfacilPjObject, solfacilPjSchema } from './chunk-
|
|
7
|
-
import { YesOrNoLabels, CommunionRegimeLabels, CivilStatusLabels, NatureOfOccupationTypeLabels, ResidenceTypeLabels, unifiedPfSchema, unifiedPfObject } from './chunk-
|
|
8
|
-
import { unifiedPjSchema, unifiedPjObject } from './chunk-
|
|
9
|
-
import { eosPfObject, eosPfSchema } from './chunk-
|
|
10
|
-
import { eosPjObject, eosPjSchema } from './chunk-
|
|
11
|
-
import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-
|
|
12
|
-
import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-
|
|
13
|
-
import { losangoPfObject, losangoPfSchema } from './chunk-
|
|
14
|
-
import { losangoPjObject, losangoPjSchema } from './chunk-
|
|
15
|
-
import { safraPfObject, safraPfSchema } from './chunk-
|
|
16
|
-
import { safraPjObject, safraPjSchema } from './chunk-
|
|
17
|
-
import { bvPfObject, bvPfSchema } from './chunk-
|
|
18
|
-
import { bvPjObject, bvPjSchema } from './chunk-
|
|
19
|
-
import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-
|
|
20
|
-
import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-
|
|
21
|
-
import { cashMePfObject, cashMePfSchema } from './chunk-
|
|
22
|
-
import { cashMePjObject, cashMePjSchema } from './chunk-
|
|
23
|
-
import { credito77PfObject, credito77PfSchema } from './chunk-
|
|
24
|
-
import { credito77PjObject, credito77PjSchema } from './chunk-
|
|
25
|
-
import { alfaPfObject, alfaPfSchema } from './chunk-
|
|
26
|
-
import { alfaPjObject, alfaPjSchema } from './chunk-
|
|
27
|
-
import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-
|
|
28
|
-
import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-
|
|
29
|
-
import { btgPfObject, btgPfSchema } from './chunk-
|
|
30
|
-
import { btgPjObject, btgPjSchema } from './chunk-
|
|
31
|
-
import { DocumentTypeLabels } from './chunk-
|
|
32
|
-
import { enumField, ProofKinshipTypeLabels, UfLabels, NationalityLabels, SexLabels,
|
|
1
|
+
import { santanderPfObject, santanderPfSchema } from './chunk-LDL7QLPB.mjs';
|
|
2
|
+
import { santanderPjObject, santanderPjSchema } from './chunk-EG5RVHCZ.mjs';
|
|
3
|
+
import { solAgoraPfObject, solAgoraPfSchema } from './chunk-TNZ33455.mjs';
|
|
4
|
+
import { solAgoraPjObject, solAgoraPjSchema } from './chunk-F4RMWUXJ.mjs';
|
|
5
|
+
import { solfacilPfObject, solfacilPfSchema } from './chunk-HX5UJCA2.mjs';
|
|
6
|
+
import { solfacilPjObject, solfacilPjSchema } from './chunk-R5TJYTTO.mjs';
|
|
7
|
+
import { YesOrNoLabels, CommunionRegimeLabels, CivilStatusLabels, NatureOfOccupationTypeLabels, ResidenceTypeLabels, unifiedPfSchema, unifiedPfObject } from './chunk-K3QXEL6M.mjs';
|
|
8
|
+
import { unifiedPjSchema, unifiedPjObject } from './chunk-BXLQYGEB.mjs';
|
|
9
|
+
import { eosPfObject, eosPfSchema } from './chunk-UK62IINL.mjs';
|
|
10
|
+
import { eosPjObject, eosPjSchema } from './chunk-PCTF5JYB.mjs';
|
|
11
|
+
import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-OIGZEDM3.mjs';
|
|
12
|
+
import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-7ULQG7YJ.mjs';
|
|
13
|
+
import { losangoPfObject, losangoPfSchema } from './chunk-CGBX6OCD.mjs';
|
|
14
|
+
import { losangoPjObject, losangoPjSchema } from './chunk-HF7G6PTH.mjs';
|
|
15
|
+
import { safraPfObject, safraPfSchema } from './chunk-VTTNXB64.mjs';
|
|
16
|
+
import { safraPjObject, safraPjSchema } from './chunk-TWOBBIQC.mjs';
|
|
17
|
+
import { bvPfObject, bvPfSchema } from './chunk-PCXYLWDD.mjs';
|
|
18
|
+
import { bvPjObject, bvPjSchema } from './chunk-QQCSQ3L4.mjs';
|
|
19
|
+
import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-OKAMQBUN.mjs';
|
|
20
|
+
import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-IVY6IQXZ.mjs';
|
|
21
|
+
import { cashMePfObject, cashMePfSchema } from './chunk-LRIO6V7H.mjs';
|
|
22
|
+
import { cashMePjObject, cashMePjSchema } from './chunk-VWKF4I2L.mjs';
|
|
23
|
+
import { credito77PfObject, credito77PfSchema } from './chunk-GBKY6QE3.mjs';
|
|
24
|
+
import { credito77PjObject, credito77PjSchema } from './chunk-HXHJSQ2X.mjs';
|
|
25
|
+
import { alfaPfObject, alfaPfSchema } from './chunk-6AISIJ3O.mjs';
|
|
26
|
+
import { alfaPjObject, alfaPjSchema } from './chunk-TZEPVIC4.mjs';
|
|
27
|
+
import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-4T4DDJJZ.mjs';
|
|
28
|
+
import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-65WB3CQB.mjs';
|
|
29
|
+
import { btgPfObject, btgPfSchema } from './chunk-7VU2KIBV.mjs';
|
|
30
|
+
import { btgPjObject, btgPjSchema } from './chunk-T2FBV7WO.mjs';
|
|
31
|
+
import { DocumentTypeLabels } from './chunk-QEPJ2RLU.mjs';
|
|
32
|
+
import { enumField, ProofKinshipTypeLabels, UfLabels, NationalityLabels, SexLabels, pfRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
33
33
|
|
|
34
34
|
// src/domains/financing/enums/banks.ts
|
|
35
35
|
var BANK_SLUGS = [
|
|
@@ -160,16 +160,29 @@ var CREDITO77_PRESTAMISTA_FIELDS = {
|
|
|
160
160
|
function isCredito77WithoutPrestamista(bank, person, options) {
|
|
161
161
|
return bank === "credito77" && person === "pf" && !options.prestamistaIncluso;
|
|
162
162
|
}
|
|
163
|
+
var VALID_BANK_SLUGS = new Set(BANK_SLUGS);
|
|
164
|
+
function assertValidTarget(bank, person) {
|
|
165
|
+
if (bank !== UNIFIED_SLUG && !VALID_BANK_SLUGS.has(bank)) {
|
|
166
|
+
throw new TypeError(
|
|
167
|
+
`Banco desconhecido: ${JSON.stringify(bank)}. Use '${UNIFIED_SLUG}' ou um de: ${BANK_SLUGS.join(", ")}.`
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
if (person !== "pf" && person !== "pj") {
|
|
171
|
+
throw new TypeError(`Tipo de pessoa desconhecido: ${JSON.stringify(person)}. Use 'pf' ou 'pj'.`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
163
174
|
function getFormalizationSchema(bank, person, options = {}) {
|
|
175
|
+
assertValidTarget(bank, person);
|
|
164
176
|
if (bank === UNIFIED_SLUG) {
|
|
165
177
|
return unifiedSchemaByPerson[person];
|
|
166
178
|
}
|
|
167
179
|
if (isCredito77WithoutPrestamista(bank, person, options)) {
|
|
168
|
-
return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS).strict().
|
|
180
|
+
return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS).strict().check(pfRefinement);
|
|
169
181
|
}
|
|
170
182
|
return person === "pf" ? pfSchemaRegistry[bank] : pjSchemaRegistry[bank];
|
|
171
183
|
}
|
|
172
184
|
function getFormalizationBaseSchema(bank, person, options = {}) {
|
|
185
|
+
assertValidTarget(bank, person);
|
|
173
186
|
if (bank === UNIFIED_SLUG) {
|
|
174
187
|
return unifiedBaseSchemaByPerson[person];
|
|
175
188
|
}
|
|
@@ -203,6 +216,24 @@ var FORMALIZATION_FIELD_META = {
|
|
|
203
216
|
label: "Documento de v\xEDnculo com o titular",
|
|
204
217
|
step: 1
|
|
205
218
|
},
|
|
219
|
+
energy_bill_owner_document: {
|
|
220
|
+
kind: "cpfCnpj",
|
|
221
|
+
label: "Documento do titular da conta",
|
|
222
|
+
step: 1,
|
|
223
|
+
placeholder: "Digite o CPF ou CNPJ do titular"
|
|
224
|
+
},
|
|
225
|
+
// `text`, e não `select`, porque o schema declara textField(): não há
|
|
226
|
+
// entrada em FORMALIZATION_OPTION_LABELS para renderizar options.
|
|
227
|
+
is_installation_at_requester: {
|
|
228
|
+
kind: "text",
|
|
229
|
+
label: "Instala\xE7\xE3o no endere\xE7o do solicitante",
|
|
230
|
+
step: 1
|
|
231
|
+
},
|
|
232
|
+
rural_area: {
|
|
233
|
+
kind: "text",
|
|
234
|
+
label: "\xC1rea rural",
|
|
235
|
+
step: 1
|
|
236
|
+
},
|
|
206
237
|
type_doc: {
|
|
207
238
|
kind: "select",
|
|
208
239
|
label: "Tipo de documento",
|
|
@@ -285,12 +316,14 @@ var FORMALIZATION_FIELD_META = {
|
|
|
285
316
|
step: 3,
|
|
286
317
|
placeholder: "Digite o nome da m\xE3e"
|
|
287
318
|
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
319
|
+
naturalness: {
|
|
320
|
+
kind: "text",
|
|
321
|
+
label: "Naturalidade",
|
|
322
|
+
step: 3,
|
|
323
|
+
// O bloco comentado trazia 'Selecione uma opção', que é o placeholder do
|
|
324
|
+
// uf_naturalness logo abaixo — o campo é textField(), não select.
|
|
325
|
+
placeholder: "Digite a naturalidade"
|
|
326
|
+
},
|
|
294
327
|
uf_naturalness: {
|
|
295
328
|
kind: "select",
|
|
296
329
|
label: "UF de naturalidade",
|
|
@@ -390,6 +423,42 @@ var FORMALIZATION_FIELD_META = {
|
|
|
390
423
|
placeholder: "Digite o tempo de resid\xEAncia em meses"
|
|
391
424
|
},
|
|
392
425
|
financing_company: { kind: "group", label: "Dados da empresa", step: 4 },
|
|
426
|
+
// Campos de dentro do grupo `financing_company`, que é step 4. O mapa é
|
|
427
|
+
// plano por nome de campo, então `phone` e `monthly_income` são
|
|
428
|
+
// compartilhados com o lado PF.
|
|
429
|
+
corporate_name: {
|
|
430
|
+
kind: "text",
|
|
431
|
+
label: "Raz\xE3o social",
|
|
432
|
+
step: 4,
|
|
433
|
+
placeholder: "Digite a raz\xE3o social"
|
|
434
|
+
},
|
|
435
|
+
cnpj: { kind: "cnpj", label: "CNPJ", step: 4, placeholder: "Digite o CNPJ" },
|
|
436
|
+
foundation_date: {
|
|
437
|
+
kind: "date",
|
|
438
|
+
label: "Data de funda\xE7\xE3o",
|
|
439
|
+
step: 4,
|
|
440
|
+
placeholder: "Digite a data de funda\xE7\xE3o"
|
|
441
|
+
},
|
|
442
|
+
legal_nature: {
|
|
443
|
+
kind: "text",
|
|
444
|
+
label: "Natureza jur\xEDdica",
|
|
445
|
+
step: 4,
|
|
446
|
+
placeholder: "Digite a natureza jur\xEDdica"
|
|
447
|
+
},
|
|
448
|
+
economic_activity: {
|
|
449
|
+
kind: "text",
|
|
450
|
+
label: "Atividade econ\xF4mica",
|
|
451
|
+
step: 4,
|
|
452
|
+
placeholder: "Digite a atividade econ\xF4mica"
|
|
453
|
+
},
|
|
454
|
+
economic_activity_group: {
|
|
455
|
+
kind: "text",
|
|
456
|
+
label: "Grupo de atividade econ\xF4mica",
|
|
457
|
+
step: 4,
|
|
458
|
+
placeholder: "Digite o grupo de atividade econ\xF4mica"
|
|
459
|
+
},
|
|
460
|
+
capital_social: { kind: "currency", label: "Capital social", step: 4 },
|
|
461
|
+
phone: { kind: "phone", label: "Telefone", step: 4, placeholder: "Digite o telefone" },
|
|
393
462
|
financing_company_guarantor: { kind: "array", label: "Avalistas", step: 4 },
|
|
394
463
|
financing_company_qsa: {
|
|
395
464
|
kind: "array",
|
|
@@ -397,6 +466,34 @@ var FORMALIZATION_FIELD_META = {
|
|
|
397
466
|
step: 4,
|
|
398
467
|
placeholder: "Selecione uma op\xE7\xE3o"
|
|
399
468
|
},
|
|
469
|
+
// Campos de dentro de `financing_company_guarantor` / `financing_company_qsa`,
|
|
470
|
+
// ambos step 4.
|
|
471
|
+
office: { kind: "text", label: "Cargo", step: 4, placeholder: "Digite o cargo" },
|
|
472
|
+
patrimony: { kind: "currency", label: "Patrim\xF4nio", step: 4 },
|
|
473
|
+
uf_issuing_body: {
|
|
474
|
+
kind: "select",
|
|
475
|
+
label: "UF do \xF3rg\xE3o emissor",
|
|
476
|
+
step: 4,
|
|
477
|
+
placeholder: "Selecione uma op\xE7\xE3o"
|
|
478
|
+
},
|
|
479
|
+
doc_issuance_uf: {
|
|
480
|
+
kind: "select",
|
|
481
|
+
label: "UF de emiss\xE3o do documento",
|
|
482
|
+
step: 4,
|
|
483
|
+
placeholder: "Selecione uma op\xE7\xE3o"
|
|
484
|
+
},
|
|
485
|
+
doc_expiration_date: {
|
|
486
|
+
kind: "date",
|
|
487
|
+
label: "Data de validade do documento",
|
|
488
|
+
step: 4,
|
|
489
|
+
placeholder: "Digite a data de validade do documento"
|
|
490
|
+
},
|
|
491
|
+
entry_date: {
|
|
492
|
+
kind: "date",
|
|
493
|
+
label: "Data de entrada na sociedade",
|
|
494
|
+
step: 4,
|
|
495
|
+
placeholder: "Digite a data de entrada na sociedade"
|
|
496
|
+
},
|
|
400
497
|
social_name: { kind: "text", label: "Nome social", step: 4 },
|
|
401
498
|
partner_name: { kind: "text", label: "Nome do c\xF4njuge", step: 4 },
|
|
402
499
|
partner_birth: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema,
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { requiredObject, issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, optionalField, cpfCnpjSchema, pfRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// src/domains/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.ts
|
|
5
|
+
var caixaEconomicaFederalPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var caixaEconomicaFederalPfObject = z.object({
|
|
|
11
11
|
birth_date: birthDateSchema,
|
|
12
12
|
number: textField(),
|
|
13
13
|
sex: SexEnum,
|
|
14
|
-
complement: textField(15)
|
|
14
|
+
complement: optionalField(textField(15)),
|
|
15
15
|
mother_name: textField(),
|
|
16
16
|
district: textField(),
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
|
-
energy_bill_owner_document: cpfCnpjSchema
|
|
19
|
+
energy_bill_owner_document: optionalField(cpfCnpjSchema),
|
|
20
20
|
state: UfEnum,
|
|
21
21
|
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
@@ -28,6 +28,6 @@ var caixaEconomicaFederalPfObject = z.object({
|
|
|
28
28
|
issuing_body: textField(6),
|
|
29
29
|
doc_issue_date: issueDateSchema
|
|
30
30
|
});
|
|
31
|
-
var caixaEconomicaFederalPfSchema = caixaEconomicaFederalPfObject.strict().
|
|
31
|
+
var caixaEconomicaFederalPfSchema = caixaEconomicaFederalPfObject.strict().check(pfRefinement);
|
|
32
32
|
|
|
33
33
|
export { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema,
|
|
2
|
-
import { z } from 'zod';
|
|
1
|
+
import { requiredObject, formalizationExtras, requiredArray, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, optionalField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// src/domains/financing/formalization/schemas/EosPJSchema.ts
|
|
4
|
+
var eosPjObject = requiredObject({
|
|
5
5
|
...formalizationExtras,
|
|
6
|
-
financing_company:
|
|
6
|
+
financing_company: requiredObject({
|
|
7
7
|
corporate_name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
9
9
|
address: textField(),
|
|
@@ -11,7 +11,7 @@ var eosPjObject = z.object({
|
|
|
11
11
|
number: textField(),
|
|
12
12
|
cnpj: cnpjSchema,
|
|
13
13
|
email: emailSchema,
|
|
14
|
-
complement: textField(15)
|
|
14
|
+
complement: optionalField(textField(15)),
|
|
15
15
|
phone: phoneBRSchema,
|
|
16
16
|
district: textField(),
|
|
17
17
|
legal_nature: textField(),
|
|
@@ -21,15 +21,15 @@ var eosPjObject = z.object({
|
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
24
|
-
financing_company_guarantor:
|
|
25
|
-
|
|
24
|
+
financing_company_guarantor: requiredArray(
|
|
25
|
+
requiredObject({
|
|
26
26
|
name: textField(),
|
|
27
27
|
cep: cepSchema,
|
|
28
28
|
cpf: cpfSchema,
|
|
29
29
|
address: textField(),
|
|
30
30
|
birth_date: birthDateSchema,
|
|
31
31
|
number: textField(),
|
|
32
|
-
complement: textField(15)
|
|
32
|
+
complement: optionalField(textField(15)),
|
|
33
33
|
cellphone: phoneBRSchema,
|
|
34
34
|
email: emailSchema,
|
|
35
35
|
district: textField(),
|
|
@@ -42,6 +42,6 @@ var eosPjObject = z.object({
|
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
45
|
-
var eosPjSchema = eosPjObject.strict().
|
|
45
|
+
var eosPjSchema = eosPjObject.strict().check(pjRefinement);
|
|
46
46
|
|
|
47
47
|
export { eosPjObject, eosPjSchema };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, UfEnum, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema,
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { requiredObject, issueDateSchema, UfEnum, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, optionalField, textField, cnpjSchema, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, pfRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// src/domains/financing/formalization/schemas/BvPFSchema.ts
|
|
5
|
+
var bvPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -13,13 +13,13 @@ var bvPfObject = z.object({
|
|
|
13
13
|
birth_date: birthDateSchema,
|
|
14
14
|
number: textField(),
|
|
15
15
|
sex: SexEnum,
|
|
16
|
-
complement: textField(15)
|
|
16
|
+
complement: optionalField(textField(15)),
|
|
17
17
|
is_installation_at_requester: textField(),
|
|
18
18
|
mother_name: textField(),
|
|
19
19
|
district: textField(),
|
|
20
20
|
energy_account_in_requester_name: textField(),
|
|
21
21
|
city: textField(),
|
|
22
|
-
energy_bill_owner_document: cpfCnpjSchema
|
|
22
|
+
energy_bill_owner_document: optionalField(cpfCnpjSchema),
|
|
23
23
|
civil_status: textField(),
|
|
24
24
|
state: UfEnum,
|
|
25
25
|
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
@@ -31,15 +31,15 @@ var bvPfObject = z.object({
|
|
|
31
31
|
profession: textField(),
|
|
32
32
|
nature_of_occupation: textField(),
|
|
33
33
|
company_time: numberField,
|
|
34
|
-
cnpj_proprietary: cnpjSchema
|
|
34
|
+
cnpj_proprietary: optionalField(cnpjSchema),
|
|
35
35
|
equity_value: currencySchema,
|
|
36
36
|
type_doc: DocumentTypeEnum,
|
|
37
37
|
doc: textField(15),
|
|
38
38
|
issuing_body: textField(6),
|
|
39
39
|
emitting_state: UfEnum,
|
|
40
40
|
doc_issue_date: issueDateSchema,
|
|
41
|
-
pep_relationship: textField()
|
|
41
|
+
pep_relationship: optionalField(textField())
|
|
42
42
|
});
|
|
43
|
-
var bvPfSchema = bvPfObject.strict().
|
|
43
|
+
var bvPfSchema = bvPfObject.strict().check(pfRefinement);
|
|
44
44
|
|
|
45
45
|
export { bvPfObject, bvPfSchema };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { enumField } from './chunk-CJSJ3VDW.mjs';
|
|
2
|
+
|
|
3
|
+
// src/shared/enums/document-type.ts
|
|
4
|
+
var DocumentTypeEnum = enumField([
|
|
5
|
+
"documento_de_identidade",
|
|
6
|
+
"carteira_nacional_de_habilita\xE7\xE3o",
|
|
7
|
+
// Exigido pela RN-015 para nacionalidade estrangeira. Sem este membro a
|
|
8
|
+
// regra seria insatisfazível: todo schema é .strict() com type_doc
|
|
9
|
+
// restrito a este enum.
|
|
10
|
+
"registro_de_estrangeiro"
|
|
11
|
+
]);
|
|
12
|
+
var DocumentTypeLabels = {
|
|
13
|
+
documento_de_identidade: "Documento de identidade (RG)",
|
|
14
|
+
carteira_nacional_de_habilita\u00E7\u00E3o: "Carteira Nacional de Habilita\xE7\xE3o (CNH)",
|
|
15
|
+
registro_de_estrangeiro: "Registro Nacional de Estrangeiro (RNE)"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { DocumentTypeEnum, DocumentTypeLabels };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { formalizationExtras, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, integerField, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, NationalityEnum, NATIONALITY_BRAZIL, cnpjSchema,
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { requiredObject, formalizationExtras, requiredArray, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, integerField, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, NationalityEnum, NATIONALITY_BRAZIL, optionalField, cnpjSchema, pjRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// src/domains/financing/formalization/schemas/BvPJSchema.ts
|
|
5
|
+
var bvPjObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
|
-
financing_company:
|
|
7
|
+
financing_company: requiredObject({
|
|
8
8
|
corporate_name: textField(),
|
|
9
9
|
cep: cepSchema,
|
|
10
10
|
residence_situation: textField(),
|
|
@@ -14,7 +14,7 @@ var bvPjObject = z.object({
|
|
|
14
14
|
number: textField(),
|
|
15
15
|
cnpj: cnpjSchema,
|
|
16
16
|
email: emailSchema,
|
|
17
|
-
complement: textField(15)
|
|
17
|
+
complement: optionalField(textField(15)),
|
|
18
18
|
phone: phoneBRSchema,
|
|
19
19
|
district: textField(),
|
|
20
20
|
legal_nature: textField(),
|
|
@@ -25,15 +25,15 @@ var bvPjObject = z.object({
|
|
|
25
25
|
monthly_income: currencySchema,
|
|
26
26
|
capital_social: currencySchema
|
|
27
27
|
}).strict(),
|
|
28
|
-
financing_company_guarantor:
|
|
29
|
-
|
|
28
|
+
financing_company_guarantor: requiredArray(
|
|
29
|
+
requiredObject({
|
|
30
30
|
name: textField(),
|
|
31
31
|
cep: cepSchema,
|
|
32
32
|
cpf: cpfSchema,
|
|
33
33
|
address: textField(),
|
|
34
34
|
birth_date: birthDateSchema,
|
|
35
35
|
number: textField(),
|
|
36
|
-
complement: textField(15)
|
|
36
|
+
complement: optionalField(textField(15)),
|
|
37
37
|
cellphone: phoneBRSchema,
|
|
38
38
|
phone: phoneBRSchema,
|
|
39
39
|
email: emailSchema,
|
|
@@ -61,6 +61,6 @@ var bvPjObject = z.object({
|
|
|
61
61
|
}).strict()
|
|
62
62
|
)
|
|
63
63
|
});
|
|
64
|
-
var bvPjSchema = bvPjObject.strict().
|
|
64
|
+
var bvPjSchema = bvPjObject.strict().check(pjRefinement);
|
|
65
65
|
|
|
66
66
|
export { bvPjObject, bvPjSchema };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, currencySchema, issueDateSchema, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, cnpjSchema,
|
|
2
|
-
import { z } from 'zod';
|
|
1
|
+
import { requiredObject, formalizationExtras, requiredArray, currencySchema, issueDateSchema, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, optionalField, cnpjSchema, pjRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// src/domains/financing/formalization/schemas/SolfacilPJSchema.ts
|
|
4
|
+
var solfacilPjObject = requiredObject({
|
|
5
5
|
...formalizationExtras,
|
|
6
|
-
financing_company:
|
|
6
|
+
financing_company: requiredObject({
|
|
7
7
|
corporate_name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
9
9
|
address: textField(),
|
|
@@ -11,22 +11,22 @@ var solfacilPjObject = z.object({
|
|
|
11
11
|
number: textField(),
|
|
12
12
|
cnpj: cnpjSchema,
|
|
13
13
|
email: emailSchema,
|
|
14
|
-
complement: textField(15)
|
|
14
|
+
complement: optionalField(textField(15)),
|
|
15
15
|
phone: phoneBRSchema,
|
|
16
16
|
district: textField(),
|
|
17
17
|
legal_nature: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
state: UfEnum
|
|
20
20
|
}).strict(),
|
|
21
|
-
financing_company_guarantor:
|
|
22
|
-
|
|
21
|
+
financing_company_guarantor: requiredArray(
|
|
22
|
+
requiredObject({
|
|
23
23
|
name: textField(),
|
|
24
24
|
cep: cepSchema,
|
|
25
25
|
cpf: cpfSchema,
|
|
26
26
|
address: textField(),
|
|
27
27
|
birth_date: birthDateSchema,
|
|
28
28
|
number: textField(),
|
|
29
|
-
complement: textField(15)
|
|
29
|
+
complement: optionalField(textField(15)),
|
|
30
30
|
cellphone: phoneBRSchema,
|
|
31
31
|
phone: phoneBRSchema,
|
|
32
32
|
email: emailSchema,
|
|
@@ -47,6 +47,6 @@ var solfacilPjObject = z.object({
|
|
|
47
47
|
}).strict()
|
|
48
48
|
)
|
|
49
49
|
});
|
|
50
|
-
var solfacilPjSchema = solfacilPjObject.strict().
|
|
50
|
+
var solfacilPjSchema = solfacilPjObject.strict().check(pjRefinement);
|
|
51
51
|
|
|
52
52
|
export { solfacilPjObject, solfacilPjSchema };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { formalizationExtras, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, cnpjSchema,
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { requiredObject, formalizationExtras, requiredArray, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, optionalField, cnpjSchema, pjRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// src/domains/financing/formalization/schemas/BtgPJSchema.ts
|
|
5
|
+
var btgPjObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
|
-
financing_company:
|
|
7
|
+
financing_company: requiredObject({
|
|
8
8
|
corporate_name: textField(),
|
|
9
9
|
cep: cepSchema,
|
|
10
10
|
address: textField(),
|
|
@@ -12,7 +12,7 @@ var btgPjObject = z.object({
|
|
|
12
12
|
number: textField(),
|
|
13
13
|
cnpj: cnpjSchema,
|
|
14
14
|
email: emailSchema,
|
|
15
|
-
complement: textField(15)
|
|
15
|
+
complement: optionalField(textField(15)),
|
|
16
16
|
phone: phoneBRSchema,
|
|
17
17
|
district: textField(),
|
|
18
18
|
legal_nature: textField(),
|
|
@@ -22,15 +22,15 @@ var btgPjObject = z.object({
|
|
|
22
22
|
economic_activity: textField(),
|
|
23
23
|
monthly_income: currencySchema
|
|
24
24
|
}).strict(),
|
|
25
|
-
financing_company_guarantor:
|
|
26
|
-
|
|
25
|
+
financing_company_guarantor: requiredArray(
|
|
26
|
+
requiredObject({
|
|
27
27
|
name: textField(),
|
|
28
28
|
cep: cepSchema,
|
|
29
29
|
cpf: cpfSchema,
|
|
30
30
|
address: textField(),
|
|
31
31
|
birth_date: birthDateSchema,
|
|
32
32
|
number: textField(),
|
|
33
|
-
complement: textField(15)
|
|
33
|
+
complement: optionalField(textField(15)),
|
|
34
34
|
cellphone: phoneBRSchema,
|
|
35
35
|
phone: phoneBRSchema,
|
|
36
36
|
email: emailSchema,
|
|
@@ -54,6 +54,6 @@ var btgPjObject = z.object({
|
|
|
54
54
|
}).strict()
|
|
55
55
|
)
|
|
56
56
|
});
|
|
57
|
-
var btgPjSchema = btgPjObject.strict().
|
|
57
|
+
var btgPjSchema = btgPjObject.strict().check(pjRefinement);
|
|
58
58
|
|
|
59
59
|
export { btgPjObject, btgPjSchema };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema,
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { requiredObject, issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, optionalField, cpfCnpjSchema, pfRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// src/domains/financing/formalization/schemas/SolAgoraPFSchema.ts
|
|
5
|
+
var solAgoraPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var solAgoraPfObject = z.object({
|
|
|
11
11
|
birth_date: birthDateSchema,
|
|
12
12
|
number: textField(),
|
|
13
13
|
sex: SexEnum,
|
|
14
|
-
complement: textField(15)
|
|
14
|
+
complement: optionalField(textField(15)),
|
|
15
15
|
mother_name: textField(),
|
|
16
16
|
district: textField(),
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
|
-
energy_bill_owner_document: cpfCnpjSchema
|
|
19
|
+
energy_bill_owner_document: optionalField(cpfCnpjSchema),
|
|
20
20
|
state: UfEnum,
|
|
21
21
|
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
@@ -28,6 +28,6 @@ var solAgoraPfObject = z.object({
|
|
|
28
28
|
issuing_body: textField(6),
|
|
29
29
|
doc_issue_date: issueDateSchema
|
|
30
30
|
});
|
|
31
|
-
var solAgoraPfSchema = solAgoraPfObject.strict().
|
|
31
|
+
var solAgoraPfSchema = solAgoraPfObject.strict().check(pfRefinement);
|
|
32
32
|
|
|
33
33
|
export { solAgoraPfObject, solAgoraPfSchema };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema,
|
|
2
|
-
import { z } from 'zod';
|
|
1
|
+
import { requiredObject, formalizationExtras, requiredArray, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, optionalField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// src/domains/financing/formalization/schemas/SafraPJSchema.ts
|
|
4
|
+
var safraPjObject = requiredObject({
|
|
5
5
|
...formalizationExtras,
|
|
6
|
-
financing_company:
|
|
6
|
+
financing_company: requiredObject({
|
|
7
7
|
corporate_name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
9
9
|
address: textField(),
|
|
@@ -11,7 +11,7 @@ var safraPjObject = z.object({
|
|
|
11
11
|
number: textField(),
|
|
12
12
|
cnpj: cnpjSchema,
|
|
13
13
|
email: emailSchema,
|
|
14
|
-
complement: textField(15)
|
|
14
|
+
complement: optionalField(textField(15)),
|
|
15
15
|
phone: phoneBRSchema,
|
|
16
16
|
district: textField(),
|
|
17
17
|
legal_nature: textField(),
|
|
@@ -21,15 +21,15 @@ var safraPjObject = z.object({
|
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
24
|
-
financing_company_guarantor:
|
|
25
|
-
|
|
24
|
+
financing_company_guarantor: requiredArray(
|
|
25
|
+
requiredObject({
|
|
26
26
|
name: textField(),
|
|
27
27
|
cep: cepSchema,
|
|
28
28
|
cpf: cpfSchema,
|
|
29
29
|
address: textField(),
|
|
30
30
|
birth_date: birthDateSchema,
|
|
31
31
|
number: textField(),
|
|
32
|
-
complement: textField(15)
|
|
32
|
+
complement: optionalField(textField(15)),
|
|
33
33
|
cellphone: phoneBRSchema,
|
|
34
34
|
email: emailSchema,
|
|
35
35
|
district: textField(),
|
|
@@ -42,6 +42,6 @@ var safraPjObject = z.object({
|
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
45
|
-
var safraPjSchema = safraPjObject.strict().
|
|
45
|
+
var safraPjSchema = safraPjObject.strict().check(pjRefinement);
|
|
46
46
|
|
|
47
47
|
export { safraPjObject, safraPjSchema };
|