@77sol-lab/form-schemas 2.0.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-6U3W3WGJ.mjs → chunk-4T4DDJJZ.mjs} +6 -6
- package/{chunk-QGHAWR7N.mjs → chunk-65WB3CQB.mjs} +8 -8
- package/{chunk-AFF2ESHC.mjs → chunk-6AISIJ3O.mjs} +6 -6
- package/{chunk-P5QT636Q.mjs → chunk-7ULQG7YJ.mjs} +8 -8
- package/{chunk-QFCBUDTN.mjs → chunk-7VU2KIBV.mjs} +6 -6
- package/chunk-BXLQYGEB.mjs +105 -0
- package/{chunk-Z6PA77SA.mjs → chunk-CGBX6OCD.mjs} +6 -6
- package/{chunk-DKIUSETH.mjs → chunk-CJSJ3VDW.mjs} +109 -41
- package/{chunk-MKN3T4EC.mjs → chunk-EG5RVHCZ.mjs} +8 -8
- package/{chunk-2JHLFEU7.mjs → chunk-F4RMWUXJ.mjs} +9 -9
- package/{chunk-LXNKU6Q5.mjs → chunk-GBKY6QE3.mjs} +6 -6
- package/{chunk-KIN5ASCQ.mjs → chunk-HF7G6PTH.mjs} +8 -8
- package/{chunk-VGBIJ7LQ.mjs → chunk-HX5UJCA2.mjs} +6 -6
- package/{chunk-DRLPCEVY.mjs → chunk-HXHJSQ2X.mjs} +8 -8
- package/{chunk-ECQBM5TA.mjs → chunk-IVY6IQXZ.mjs} +8 -8
- package/{chunk-TGDPLYN3.mjs → chunk-K3QXEL6M.mjs} +19 -20
- package/{chunk-64RQV46Z.mjs → chunk-LDL7QLPB.mjs} +6 -6
- package/{chunk-DWOFPI2A.mjs → chunk-LRIO6V7H.mjs} +6 -6
- package/{chunk-FGNV6RT5.mjs → chunk-OIGZEDM3.mjs} +6 -6
- package/{chunk-FBL2YW6F.mjs → chunk-OJUTNXHL.mjs} +135 -38
- package/{chunk-E5SPEAZO.mjs → chunk-OKAMQBUN.mjs} +6 -6
- package/{chunk-KOB7CHDM.mjs → chunk-PCTF5JYB.mjs} +8 -8
- package/{chunk-26RFB4ZS.mjs → chunk-PCXYLWDD.mjs} +8 -8
- package/chunk-QEPJ2RLU.mjs +18 -0
- package/{chunk-LCD7MY35.mjs → chunk-QQCSQ3L4.mjs} +9 -9
- package/{chunk-IVT2ZFVR.mjs → chunk-R5TJYTTO.mjs} +8 -8
- package/{chunk-WVQ2LFIN.mjs → chunk-T2FBV7WO.mjs} +9 -9
- package/{chunk-LNPPAYB6.mjs → chunk-TNZ33455.mjs} +6 -6
- package/{chunk-J4BYCQDX.mjs → chunk-TWOBBIQC.mjs} +8 -8
- package/{chunk-NQIIQVGK.mjs → chunk-TZEPVIC4.mjs} +8 -8
- package/{chunk-QSMMXRNI.mjs → chunk-UK62IINL.mjs} +6 -6
- package/{chunk-6EBUH4MK.mjs → chunk-VTTNXB64.mjs} +6 -6
- package/{chunk-DQ6ZS36G.mjs → chunk-VWKF4I2L.mjs} +8 -8
- package/financing/formalization/index.d.cts +710 -708
- package/financing/formalization/index.d.ts +710 -708
- package/financing/formalization/index.js +454 -226
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/AlfaPFSchema.js +94 -27
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/AlfaPJSchema.js +97 -29
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +94 -27
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +97 -29
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/BtgPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/BtgPFSchema.js +94 -27
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BtgPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BtgPJSchema.js +102 -30
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +20 -20
- package/financing/formalization/schemas/BvPFSchema.d.ts +20 -20
- package/financing/formalization/schemas/BvPFSchema.js +96 -29
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BvPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BvPJSchema.js +102 -30
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +94 -27
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +97 -29
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +16 -16
- package/financing/formalization/schemas/CashMePFSchema.d.ts +16 -16
- package/financing/formalization/schemas/CashMePFSchema.js +94 -27
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +16 -16
- package/financing/formalization/schemas/CashMePJSchema.d.ts +16 -16
- package/financing/formalization/schemas/CashMePJSchema.js +97 -29
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +16 -16
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +16 -16
- package/financing/formalization/schemas/Credito77PFSchema.js +94 -27
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +16 -16
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +16 -16
- package/financing/formalization/schemas/Credito77PJSchema.js +97 -29
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/EosPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/EosPFSchema.js +94 -27
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/EosPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/EosPJSchema.js +97 -29
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +94 -27
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +97 -29
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/LosangoPFSchema.js +94 -27
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/LosangoPJSchema.js +97 -29
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SafraPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SafraPFSchema.js +94 -27
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SafraPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SafraPJSchema.js +97 -29
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SantanderPFSchema.js +94 -27
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SantanderPJSchema.js +97 -29
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolAgoraPFSchema.js +94 -27
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolAgoraPJSchema.js +102 -30
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolfacilPFSchema.js +94 -27
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolfacilPJSchema.js +97 -29
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +48 -48
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +48 -48
- package/financing/formalization/schemas/UnifiedPFSchema.js +108 -41
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +118 -118
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +118 -118
- package/financing/formalization/schemas/UnifiedPJSchema.js +147 -75
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +454 -226
- package/index.mjs +33 -33
- package/package.json +1 -1
- package/chunk-ARSY3NB7.mjs +0 -13
- package/chunk-QZ2BTLCH.mjs +0 -105
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-
|
|
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/LosangoPJSchema.ts
|
|
4
|
+
var losangoPjObject = 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 losangoPjObject = 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 losangoPjObject = 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(),
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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/SolfacilPFSchema.ts
|
|
5
|
+
var solfacilPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var solfacilPfObject = 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,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-
|
|
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/Credito77PJSchema.ts
|
|
4
|
+
var credito77PjObject = 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 credito77PjObject = 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 credito77PjObject = 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(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-
|
|
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/CaixaEconomicaFederalPJSchema.ts
|
|
4
|
+
var caixaEconomicaFederalPjObject = 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 caixaEconomicaFederalPjObject = 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 caixaEconomicaFederalPjObject = 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(),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { enumField, formalizationExtras, UfEnum, issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, textField, dateDMYSchema, cnpjSchema, numberField, integerField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, pfRefinement } from './chunk-
|
|
3
|
-
import { z } from 'zod';
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-QEPJ2RLU.mjs';
|
|
2
|
+
import { enumField, requiredObject, formalizationExtras, UfEnum, optionalCurrencySchema, issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, optionalField, textField, dateDMYSchema, cnpjSchema, numberField, integerField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, pfRefinement } from './chunk-CJSJ3VDW.mjs';
|
|
4
3
|
|
|
5
4
|
// src/shared/enums/nature-of-occupation-type.ts
|
|
6
5
|
var NatureOfOccupationTypeEnum = enumField(["autonomo", "clt", "aposentado", "empresario"]);
|
|
@@ -67,7 +66,7 @@ var CommunionRegimeLabels = {
|
|
|
67
66
|
};
|
|
68
67
|
|
|
69
68
|
// src/domains/financing/formalization/schemas/UnifiedPFSchema.ts
|
|
70
|
-
var unifiedPfObject =
|
|
69
|
+
var unifiedPfObject = requiredObject({
|
|
71
70
|
name: textField(),
|
|
72
71
|
cep: cepSchema,
|
|
73
72
|
cpf: cpfSchema,
|
|
@@ -75,12 +74,12 @@ var unifiedPfObject = z.object({
|
|
|
75
74
|
birth_date: birthDateSchema,
|
|
76
75
|
number: textField(),
|
|
77
76
|
sex: SexEnum,
|
|
78
|
-
complement: textField(15)
|
|
77
|
+
complement: optionalField(textField(15)),
|
|
79
78
|
mother_name: textField(),
|
|
80
79
|
district: textField(),
|
|
81
80
|
energy_account_in_requester_name: YesOrNoEnum,
|
|
82
81
|
city: textField(),
|
|
83
|
-
energy_bill_owner_document: cpfCnpjSchema
|
|
82
|
+
energy_bill_owner_document: optionalField(cpfCnpjSchema),
|
|
84
83
|
state: UfEnum,
|
|
85
84
|
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
86
85
|
cellphone: phoneBRSchema,
|
|
@@ -92,25 +91,25 @@ var unifiedPfObject = z.object({
|
|
|
92
91
|
issuing_body: textField(6),
|
|
93
92
|
doc_issue_date: issueDateSchema,
|
|
94
93
|
residence_situation: ResidenceTypeEnum,
|
|
95
|
-
months_in_residence: integerField
|
|
94
|
+
months_in_residence: optionalField(integerField),
|
|
96
95
|
civil_status: CivilStatusEnum,
|
|
97
96
|
uf_naturalness: UfEnum,
|
|
98
|
-
naturalness: textField()
|
|
97
|
+
naturalness: optionalField(textField()),
|
|
99
98
|
nature_of_occupation: NatureOfOccupationTypeEnum,
|
|
100
|
-
company_time: numberField
|
|
101
|
-
cnpj_proprietary: cnpjSchema
|
|
102
|
-
equity_value:
|
|
99
|
+
company_time: optionalField(numberField),
|
|
100
|
+
cnpj_proprietary: optionalField(cnpjSchema),
|
|
101
|
+
equity_value: optionalCurrencySchema,
|
|
103
102
|
emitting_state: UfEnum,
|
|
104
103
|
pep_relationship: YesOrNoEnum,
|
|
105
|
-
social_name: textField()
|
|
106
|
-
partner_name: textField()
|
|
107
|
-
partner_birth: dateDMYSchema
|
|
108
|
-
partner_type_doc: DocumentTypeEnum
|
|
109
|
-
partner_doc: textField()
|
|
110
|
-
partner_cpf: cpfSchema
|
|
111
|
-
partner_city: textField()
|
|
112
|
-
communion_regime: CommunionRegimeEnum
|
|
113
|
-
rural_area: textField(3)
|
|
104
|
+
social_name: optionalField(textField()),
|
|
105
|
+
partner_name: optionalField(textField()),
|
|
106
|
+
partner_birth: optionalField(dateDMYSchema),
|
|
107
|
+
partner_type_doc: optionalField(DocumentTypeEnum),
|
|
108
|
+
partner_doc: optionalField(textField()),
|
|
109
|
+
partner_cpf: optionalField(cpfSchema),
|
|
110
|
+
partner_city: optionalField(textField()),
|
|
111
|
+
communion_regime: optionalField(CommunionRegimeEnum),
|
|
112
|
+
rural_area: optionalField(textField(3)),
|
|
114
113
|
...formalizationExtras
|
|
115
114
|
});
|
|
116
115
|
var unifiedPfSchema = unifiedPfObject.strict().check(pfRefinement);
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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/SantanderPFSchema.ts
|
|
5
|
+
var santanderPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var santanderPfObject = 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,
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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/CashMePFSchema.ts
|
|
5
|
+
var cashMePfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var cashMePfObject = 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,
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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/HdtEnergyPFSchema.ts
|
|
5
|
+
var hdtEnergyPfObject = requiredObject({
|
|
6
6
|
...formalizationExtras,
|
|
7
7
|
name: textField(),
|
|
8
8
|
cep: cepSchema,
|
|
@@ -11,12 +11,12 @@ var hdtEnergyPfObject = 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,
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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,7 +160,19 @@ 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
|
}
|
|
@@ -170,6 +182,7 @@ function getFormalizationSchema(bank, person, options = {}) {
|
|
|
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, pfRefinement } from './chunk-
|
|
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,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, pjRefinement } from './chunk-
|
|
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(),
|
|
@@ -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, pfRefinement } from './chunk-
|
|
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,14 +31,14 @@ 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
43
|
var bvPfSchema = bvPfObject.strict().check(pfRefinement);
|
|
44
44
|
|