@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
package/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, UNIFIED_SLUG, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { unifiedPfObject, unifiedPfSchema } from './chunk-
|
|
9
|
-
export { unifiedPjObject, unifiedPjSchema } from './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
-
export {
|
|
1
|
+
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, NATIONALITY_BRAZIL, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './chunk-6YS5KBXS.mjs';
|
|
2
|
+
import './chunk-UUWULEKH.mjs';
|
|
3
|
+
import './chunk-RYJSCFSY.mjs';
|
|
4
|
+
import './chunk-H54QBCSW.mjs';
|
|
5
|
+
import './chunk-R6CEKWRQ.mjs';
|
|
6
|
+
import './chunk-F27U6CXB.mjs';
|
|
7
|
+
import './chunk-Z2TTZ3JJ.mjs';
|
|
8
|
+
export { unifiedPfObject, unifiedPfSchema } from './chunk-D2ZUTYWA.mjs';
|
|
9
|
+
export { unifiedPjObject, unifiedPjSchema } from './chunk-NCTEG6EL.mjs';
|
|
10
|
+
import './chunk-OVANLPKX.mjs';
|
|
11
|
+
import './chunk-UMP5UF3U.mjs';
|
|
12
|
+
import './chunk-7MWUETLP.mjs';
|
|
13
|
+
import './chunk-FRMGP3C3.mjs';
|
|
14
|
+
import './chunk-53GXILC6.mjs';
|
|
15
|
+
import './chunk-FPJKWVVF.mjs';
|
|
16
|
+
import './chunk-G5SKXDYM.mjs';
|
|
17
|
+
import './chunk-2END6TYT.mjs';
|
|
18
|
+
import './chunk-5C4YMHXV.mjs';
|
|
19
|
+
import './chunk-IWSDOFBY.mjs';
|
|
20
|
+
import './chunk-7ZF45QUN.mjs';
|
|
21
|
+
import './chunk-UU3MRKTH.mjs';
|
|
22
|
+
import './chunk-GQ5G2YX4.mjs';
|
|
23
|
+
import './chunk-VO573WIK.mjs';
|
|
24
|
+
import './chunk-L4EWOROT.mjs';
|
|
25
|
+
import './chunk-YIUJVGT4.mjs';
|
|
26
|
+
import './chunk-N2IX5TRK.mjs';
|
|
27
|
+
import './chunk-WTHEEPBE.mjs';
|
|
28
|
+
import './chunk-OARPUXXM.mjs';
|
|
29
|
+
import './chunk-6PH42V5T.mjs';
|
|
30
|
+
import './chunk-3OIG2FI5.mjs';
|
|
31
|
+
import './chunk-4XJZIRLT.mjs';
|
|
32
|
+
import './chunk-7I2LXGA2.mjs';
|
|
33
|
+
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from './chunk-HBTFOSJU.mjs';
|
package/package.json
CHANGED
package/chunk-52KJIJBF.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, numberField, integerField, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
|
|
5
|
-
var unifiedPfObject = z.object({
|
|
6
|
-
...formalizationExtras,
|
|
7
|
-
name: textField(),
|
|
8
|
-
cep: cepSchema,
|
|
9
|
-
cpf: cpfSchema,
|
|
10
|
-
address: textField(),
|
|
11
|
-
birth_date: birthDateSchema,
|
|
12
|
-
number: textField(),
|
|
13
|
-
sex: SexEnum,
|
|
14
|
-
complement: textField(15).optional(),
|
|
15
|
-
mother_name: textField(),
|
|
16
|
-
district: textField(),
|
|
17
|
-
energy_account_in_requester_name: textField(),
|
|
18
|
-
city: textField(),
|
|
19
|
-
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
|
-
state: textField(2),
|
|
21
|
-
nationality: textField(),
|
|
22
|
-
cellphone: phoneBRSchema,
|
|
23
|
-
email: emailSchema,
|
|
24
|
-
monthly_income: currencySchema,
|
|
25
|
-
profession: textField(),
|
|
26
|
-
type_doc: DocumentTypeEnum,
|
|
27
|
-
doc: textField(15),
|
|
28
|
-
issuing_body: textField(6),
|
|
29
|
-
doc_issue_date: issueDateSchema,
|
|
30
|
-
residence_situation: textField().optional(),
|
|
31
|
-
months_in_residence: integerField.optional(),
|
|
32
|
-
is_installation_at_requester: textField().optional(),
|
|
33
|
-
civil_status: textField().optional(),
|
|
34
|
-
uf_naturalness: textField(2).optional(),
|
|
35
|
-
naturalness: textField().optional(),
|
|
36
|
-
nature_of_occupation: textField().optional(),
|
|
37
|
-
company_time: numberField.optional(),
|
|
38
|
-
cnpj_proprietary: cnpjSchema.optional(),
|
|
39
|
-
equity_value: currencySchema.optional(),
|
|
40
|
-
emitting_state: textField(2).optional(),
|
|
41
|
-
pep_relationship: textField().optional()
|
|
42
|
-
});
|
|
43
|
-
var unifiedPfSchema = unifiedPfObject.strict().superRefine(applyPfRefinements);
|
|
44
|
-
|
|
45
|
-
export { unifiedPfObject, unifiedPfSchema };
|
package/chunk-A2TV7TRP.mjs
DELETED
package/chunk-KKGV43J4.mjs
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { santanderPfObject, santanderPfSchema } from './chunk-TTHE6D3Y.mjs';
|
|
2
|
-
import { santanderPjObject, santanderPjSchema } from './chunk-MWPQSGDD.mjs';
|
|
3
|
-
import { solAgoraPfObject, solAgoraPfSchema } from './chunk-RMWCQ6YU.mjs';
|
|
4
|
-
import { solAgoraPjObject, solAgoraPjSchema } from './chunk-B7RDVG4R.mjs';
|
|
5
|
-
import { solfacilPfObject, solfacilPfSchema } from './chunk-KXEEZLMR.mjs';
|
|
6
|
-
import { solfacilPjObject, solfacilPjSchema } from './chunk-XUMC3TQU.mjs';
|
|
7
|
-
import { unifiedPfSchema, unifiedPfObject } from './chunk-52KJIJBF.mjs';
|
|
8
|
-
import { unifiedPjSchema, unifiedPjObject } from './chunk-XNACW46V.mjs';
|
|
9
|
-
import { eosPfObject, eosPfSchema } from './chunk-ORO6OVTB.mjs';
|
|
10
|
-
import { eosPjObject, eosPjSchema } from './chunk-36GQASLI.mjs';
|
|
11
|
-
import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-2TGZGHS3.mjs';
|
|
12
|
-
import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-G3T562PC.mjs';
|
|
13
|
-
import { losangoPfObject, losangoPfSchema } from './chunk-SBOQWT53.mjs';
|
|
14
|
-
import { losangoPjObject, losangoPjSchema } from './chunk-TE64VI3I.mjs';
|
|
15
|
-
import { safraPfObject, safraPfSchema } from './chunk-UHMVAJYK.mjs';
|
|
16
|
-
import { safraPjObject, safraPjSchema } from './chunk-TEL6EWAJ.mjs';
|
|
17
|
-
import { bvPfObject, bvPfSchema } from './chunk-CY2EXD6C.mjs';
|
|
18
|
-
import { bvPjObject, bvPjSchema } from './chunk-FVIOZ4Q5.mjs';
|
|
19
|
-
import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-W3CNJVMM.mjs';
|
|
20
|
-
import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-GCYI6OFG.mjs';
|
|
21
|
-
import { cashMePfObject, cashMePfSchema } from './chunk-NL4VK2TF.mjs';
|
|
22
|
-
import { cashMePjObject, cashMePjSchema } from './chunk-6BD6V7EB.mjs';
|
|
23
|
-
import { credito77PfObject, credito77PfSchema } from './chunk-HKY6D6J5.mjs';
|
|
24
|
-
import { credito77PjObject, credito77PjSchema } from './chunk-EFLW2FHX.mjs';
|
|
25
|
-
import { alfaPfObject, alfaPfSchema } from './chunk-7LHQ27CS.mjs';
|
|
26
|
-
import { alfaPjObject, alfaPjSchema } from './chunk-22ZUS7K3.mjs';
|
|
27
|
-
import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-TCPW5MUT.mjs';
|
|
28
|
-
import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-TUYULPDF.mjs';
|
|
29
|
-
import { btgPfObject, btgPfSchema } from './chunk-WHVCW22E.mjs';
|
|
30
|
-
import { btgPjObject, btgPjSchema } from './chunk-FISPUQLP.mjs';
|
|
31
|
-
import { applyPfRefinements } from './chunk-NDJRJOFE.mjs';
|
|
32
|
-
import { z } from 'zod';
|
|
33
|
-
|
|
34
|
-
var BANK_SLUGS = [
|
|
35
|
-
"credito77",
|
|
36
|
-
"losango",
|
|
37
|
-
"santander",
|
|
38
|
-
"btg",
|
|
39
|
-
"bv",
|
|
40
|
-
"banco-do-brasil",
|
|
41
|
-
"caixa-economica-federal",
|
|
42
|
-
"alfa",
|
|
43
|
-
"safra",
|
|
44
|
-
"cash_me_",
|
|
45
|
-
"hdt_energy",
|
|
46
|
-
"solfacil",
|
|
47
|
-
"sol_agora",
|
|
48
|
-
"eos"
|
|
49
|
-
];
|
|
50
|
-
var BankEnum = z.enum(BANK_SLUGS);
|
|
51
|
-
|
|
52
|
-
// src/domains/financing/formalization/registry.ts
|
|
53
|
-
var UNIFIED_SLUG = "unified";
|
|
54
|
-
var unifiedSchemaByPerson = {
|
|
55
|
-
pf: unifiedPfSchema,
|
|
56
|
-
pj: unifiedPjSchema
|
|
57
|
-
};
|
|
58
|
-
var unifiedBaseSchemaByPerson = {
|
|
59
|
-
pf: unifiedPfObject,
|
|
60
|
-
pj: unifiedPjObject
|
|
61
|
-
};
|
|
62
|
-
var pfSchemaRegistry = {
|
|
63
|
-
credito77: credito77PfSchema,
|
|
64
|
-
losango: losangoPfSchema,
|
|
65
|
-
santander: santanderPfSchema,
|
|
66
|
-
btg: btgPfSchema,
|
|
67
|
-
bv: bvPfSchema,
|
|
68
|
-
"banco-do-brasil": bancoDoBrasilPfSchema,
|
|
69
|
-
"caixa-economica-federal": caixaEconomicaFederalPfSchema,
|
|
70
|
-
alfa: alfaPfSchema,
|
|
71
|
-
safra: safraPfSchema,
|
|
72
|
-
cash_me_: cashMePfSchema,
|
|
73
|
-
hdt_energy: hdtEnergyPfSchema,
|
|
74
|
-
solfacil: solfacilPfSchema,
|
|
75
|
-
sol_agora: solAgoraPfSchema,
|
|
76
|
-
eos: eosPfSchema
|
|
77
|
-
};
|
|
78
|
-
var pjSchemaRegistry = {
|
|
79
|
-
credito77: credito77PjSchema,
|
|
80
|
-
losango: losangoPjSchema,
|
|
81
|
-
santander: santanderPjSchema,
|
|
82
|
-
btg: btgPjSchema,
|
|
83
|
-
bv: bvPjSchema,
|
|
84
|
-
"banco-do-brasil": bancoDoBrasilPjSchema,
|
|
85
|
-
"caixa-economica-federal": caixaEconomicaFederalPjSchema,
|
|
86
|
-
alfa: alfaPjSchema,
|
|
87
|
-
safra: safraPjSchema,
|
|
88
|
-
cash_me_: cashMePjSchema,
|
|
89
|
-
hdt_energy: hdtEnergyPjSchema,
|
|
90
|
-
solfacil: solfacilPjSchema,
|
|
91
|
-
sol_agora: solAgoraPjSchema,
|
|
92
|
-
eos: eosPjSchema
|
|
93
|
-
};
|
|
94
|
-
var pfBaseSchemaRegistry = {
|
|
95
|
-
credito77: credito77PfObject,
|
|
96
|
-
losango: losangoPfObject,
|
|
97
|
-
santander: santanderPfObject,
|
|
98
|
-
btg: btgPfObject,
|
|
99
|
-
bv: bvPfObject,
|
|
100
|
-
"banco-do-brasil": bancoDoBrasilPfObject,
|
|
101
|
-
"caixa-economica-federal": caixaEconomicaFederalPfObject,
|
|
102
|
-
alfa: alfaPfObject,
|
|
103
|
-
safra: safraPfObject,
|
|
104
|
-
cash_me_: cashMePfObject,
|
|
105
|
-
hdt_energy: hdtEnergyPfObject,
|
|
106
|
-
solfacil: solfacilPfObject,
|
|
107
|
-
sol_agora: solAgoraPfObject,
|
|
108
|
-
eos: eosPfObject
|
|
109
|
-
};
|
|
110
|
-
var pjBaseSchemaRegistry = {
|
|
111
|
-
credito77: credito77PjObject,
|
|
112
|
-
losango: losangoPjObject,
|
|
113
|
-
santander: santanderPjObject,
|
|
114
|
-
btg: btgPjObject,
|
|
115
|
-
bv: bvPjObject,
|
|
116
|
-
"banco-do-brasil": bancoDoBrasilPjObject,
|
|
117
|
-
"caixa-economica-federal": caixaEconomicaFederalPjObject,
|
|
118
|
-
alfa: alfaPjObject,
|
|
119
|
-
safra: safraPjObject,
|
|
120
|
-
cash_me_: cashMePjObject,
|
|
121
|
-
hdt_energy: hdtEnergyPjObject,
|
|
122
|
-
solfacil: solfacilPjObject,
|
|
123
|
-
sol_agora: solAgoraPjObject,
|
|
124
|
-
eos: eosPjObject
|
|
125
|
-
};
|
|
126
|
-
var CREDITO77_PRESTAMISTA_FIELDS = {
|
|
127
|
-
doc: true,
|
|
128
|
-
issuing_body: true,
|
|
129
|
-
doc_issue_date: true,
|
|
130
|
-
sex: true
|
|
131
|
-
};
|
|
132
|
-
function isCredito77WithoutPrestamista(bank, person, options) {
|
|
133
|
-
return bank === "credito77" && person === "pf" && !options.prestamistaIncluso;
|
|
134
|
-
}
|
|
135
|
-
function getFormalizationSchema(bank, person, options = {}) {
|
|
136
|
-
if (bank === UNIFIED_SLUG) {
|
|
137
|
-
return unifiedSchemaByPerson[person];
|
|
138
|
-
}
|
|
139
|
-
if (isCredito77WithoutPrestamista(bank, person, options)) {
|
|
140
|
-
return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS).strict().superRefine(applyPfRefinements);
|
|
141
|
-
}
|
|
142
|
-
return person === "pf" ? pfSchemaRegistry[bank] : pjSchemaRegistry[bank];
|
|
143
|
-
}
|
|
144
|
-
function getFormalizationBaseSchema(bank, person, options = {}) {
|
|
145
|
-
if (bank === UNIFIED_SLUG) {
|
|
146
|
-
return unifiedBaseSchemaByPerson[person];
|
|
147
|
-
}
|
|
148
|
-
if (isCredito77WithoutPrestamista(bank, person, options)) {
|
|
149
|
-
return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS);
|
|
150
|
-
}
|
|
151
|
-
return person === "pf" ? pfBaseSchemaRegistry[bank] : pjBaseSchemaRegistry[bank];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// src/domains/financing/formalization/uiMeta.ts
|
|
155
|
-
var FORMALIZATION_FIELD_META = {
|
|
156
|
-
energy_bill_upload: { kind: "file", label: "Conta de energia", step: 1 },
|
|
157
|
-
account_third_party: {
|
|
158
|
-
kind: "select",
|
|
159
|
-
label: "Conta em nome de terceiro?",
|
|
160
|
-
step: 1
|
|
161
|
-
},
|
|
162
|
-
bond_document_upload: {
|
|
163
|
-
kind: "file",
|
|
164
|
-
label: "Documento de v\xEDnculo com o titular",
|
|
165
|
-
step: 1
|
|
166
|
-
},
|
|
167
|
-
document_front_upload: {
|
|
168
|
-
kind: "file",
|
|
169
|
-
label: "Documento de identidade (frente)",
|
|
170
|
-
step: 2
|
|
171
|
-
},
|
|
172
|
-
document_back_upload: {
|
|
173
|
-
kind: "file",
|
|
174
|
-
label: "Documento de identidade (verso)",
|
|
175
|
-
step: 2
|
|
176
|
-
},
|
|
177
|
-
name: { kind: "text", label: "Nome", step: 3 },
|
|
178
|
-
cpf: { kind: "cpf", label: "CPF", step: 3 },
|
|
179
|
-
birth_date: { kind: "date", label: "Data de nascimento", step: 3 },
|
|
180
|
-
nationality: { kind: "text", label: "Nacionalidade", step: 3 },
|
|
181
|
-
type_doc: { kind: "select", label: "Tipo de documento", step: 3 },
|
|
182
|
-
doc: { kind: "text", label: "N\xFAmero do documento", step: 3 },
|
|
183
|
-
issuing_body: { kind: "text", label: "\xD3rg\xE3o emissor", step: 3 },
|
|
184
|
-
emitting_state: { kind: "text", label: "UF emissor", step: 3 },
|
|
185
|
-
doc_issue_date: { kind: "date", label: "Data de expedi\xE7\xE3o", step: 3 },
|
|
186
|
-
email: { kind: "email", label: "E-mail", step: 3 },
|
|
187
|
-
cellphone: { kind: "phone", label: "Celular", step: 3 },
|
|
188
|
-
monthly_income: { kind: "currency", label: "Renda mensal", step: 3 },
|
|
189
|
-
mother_name: { kind: "text", label: "Nome da m\xE3e", step: 3 },
|
|
190
|
-
is_installation_at_requester: {
|
|
191
|
-
kind: "text",
|
|
192
|
-
label: "Instala\xE7\xE3o no endere\xE7o do solicitante",
|
|
193
|
-
step: 3
|
|
194
|
-
},
|
|
195
|
-
energy_account_in_requester_name: {
|
|
196
|
-
kind: "text",
|
|
197
|
-
label: "Conta de energia no nome do solicitante",
|
|
198
|
-
step: 3
|
|
199
|
-
},
|
|
200
|
-
energy_bill_owner_document: {
|
|
201
|
-
kind: "cpfCnpj",
|
|
202
|
-
label: "Documento do titular da conta de energia",
|
|
203
|
-
step: 3
|
|
204
|
-
},
|
|
205
|
-
cep: { kind: "cep", label: "CEP", step: 3 },
|
|
206
|
-
address: { kind: "text", label: "Endere\xE7o", step: 3 },
|
|
207
|
-
number: { kind: "text", label: "N\xFAmero", step: 3 },
|
|
208
|
-
complement: { kind: "text", label: "Complemento", step: 3 },
|
|
209
|
-
district: { kind: "text", label: "Bairro", step: 3 },
|
|
210
|
-
state: { kind: "text", label: "Estado (UF)", step: 3 },
|
|
211
|
-
city: { kind: "text", label: "Cidade", step: 3 },
|
|
212
|
-
sex: { kind: "select", label: "Sexo", step: 4 },
|
|
213
|
-
profession: { kind: "text", label: "Profiss\xE3o", step: 4 },
|
|
214
|
-
rd_re_insurance_toggle: {
|
|
215
|
-
kind: "toggle",
|
|
216
|
-
label: "Seguro prestamista (RD/RE)",
|
|
217
|
-
step: 4
|
|
218
|
-
},
|
|
219
|
-
nature_of_occupation: {
|
|
220
|
-
kind: "text",
|
|
221
|
-
label: "Natureza da ocupa\xE7\xE3o",
|
|
222
|
-
step: 4
|
|
223
|
-
},
|
|
224
|
-
cnpj_proprietary: { kind: "cnpj", label: "CNPJ do propriet\xE1rio", step: 4 },
|
|
225
|
-
equity_value: { kind: "currency", label: "Patrim\xF4nio", step: 4 },
|
|
226
|
-
civil_status: { kind: "text", label: "Estado civil", step: 4 },
|
|
227
|
-
naturalness: { kind: "text", label: "Naturalidade", step: 4 },
|
|
228
|
-
uf_naturalness: { kind: "text", label: "UF de naturalidade", step: 4 },
|
|
229
|
-
company_time: { kind: "number", label: "Tempo de empresa (meses)", step: 4 },
|
|
230
|
-
pep_relationship: { kind: "text", label: "Rela\xE7\xE3o com PEP", step: 4 },
|
|
231
|
-
residence_situation: {
|
|
232
|
-
kind: "text",
|
|
233
|
-
label: "Situa\xE7\xE3o da resid\xEAncia",
|
|
234
|
-
step: 4
|
|
235
|
-
},
|
|
236
|
-
months_in_residence: {
|
|
237
|
-
kind: "integer",
|
|
238
|
-
label: "Tempo de resid\xEAncia (meses)",
|
|
239
|
-
step: 4
|
|
240
|
-
},
|
|
241
|
-
financing_company: { kind: "group", label: "Dados da empresa", step: 3 },
|
|
242
|
-
financing_company_guarantor: { kind: "array", label: "Avalistas", step: 3 },
|
|
243
|
-
financing_company_qsa: {
|
|
244
|
-
kind: "array",
|
|
245
|
-
label: "Quadro societ\xE1rio (QSA)",
|
|
246
|
-
step: 3
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, UNIFIED_SLUG, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry };
|