@77sol-lab/form-schemas 1.6.0 → 1.7.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-RDLOQ6HV.mjs → chunk-22SYVROO.mjs} +2 -2
- package/{chunk-35IKZUF4.mjs → chunk-2BHUMNK5.mjs} +3 -3
- package/{chunk-E7JXDCBO.mjs → chunk-4PZYGTUU.mjs} +4 -4
- package/{chunk-LOEAPRSO.mjs → chunk-5EHEC3RT.mjs} +3 -3
- package/{chunk-OFCVHF6Z.mjs → chunk-5P6NWFTX.mjs} +3 -3
- package/{chunk-ZQ2PKLTM.mjs → chunk-65EE5FW3.mjs} +3 -3
- package/{chunk-GVOOT43S.mjs → chunk-6ZUOXZY3.mjs} +2 -2
- package/{chunk-PY7IUNIU.mjs → chunk-AM7HTUI3.mjs} +2 -2
- package/{chunk-BRBOOPFN.mjs → chunk-BYAXV4TG.mjs} +3 -3
- package/{chunk-T2MFLA6J.mjs → chunk-CPDLICOP.mjs} +3 -3
- package/{chunk-QUBWDT4D.mjs → chunk-DIYEI2PA.mjs} +2 -2
- package/{chunk-ACJUTGEC.mjs → chunk-DJDG3UYR.mjs} +2 -2
- package/{chunk-5YFVPFSM.mjs → chunk-ENDOIQ32.mjs} +69 -9
- package/{chunk-Y7TQ2NQ2.mjs → chunk-FBDTG3WD.mjs} +3 -3
- package/{chunk-LEUH6IFB.mjs → chunk-FIPFWGBQ.mjs} +3 -3
- package/{chunk-2ZKUSLGU.mjs → chunk-HMC73HBG.mjs} +3 -3
- package/{chunk-CSGG5DZE.mjs → chunk-JZ7DY7SU.mjs} +1 -1
- package/{chunk-BITN6YDR.mjs → chunk-KBILM3GO.mjs} +3 -3
- package/{chunk-W6J3SW2H.mjs → chunk-KJTTMDZP.mjs} +3 -3
- package/{chunk-57DSP6GG.mjs → chunk-L3OISOZA.mjs} +2 -2
- package/{chunk-X4LHQVVJ.mjs → chunk-LU5ODSGQ.mjs} +2 -2
- package/{chunk-WPJOW7IE.mjs → chunk-MM6LQXI6.mjs} +3 -3
- package/{chunk-ISJKYUMR.mjs → chunk-ORQ52KPA.mjs} +3 -3
- package/{chunk-AQ43O5UO.mjs → chunk-PDBPFNAN.mjs} +34 -36
- package/{chunk-SKSUT6CG.mjs → chunk-QMODZE4A.mjs} +3 -3
- package/{chunk-UYCCHEM5.mjs → chunk-RWOX5QO3.mjs} +3 -3
- package/{chunk-K23FTEKB.mjs → chunk-TDL42FZZ.mjs} +2 -2
- package/{chunk-O5XQR5HN.mjs → chunk-TKHIBI4R.mjs} +2 -2
- package/{chunk-JBTU6WKN.mjs → chunk-U4ZDMJX2.mjs} +3 -3
- package/{chunk-BSG5DCL7.mjs → chunk-UF45URAJ.mjs} +2 -2
- package/{chunk-66Y3FO5R.mjs → chunk-VDFDTLU5.mjs} +3 -3
- package/{chunk-LVFKP46R.mjs → chunk-VP4HT24O.mjs} +3 -3
- package/{chunk-XVITSWCY.mjs → chunk-Y67MNG2X.mjs} +2 -2
- package/financing/formalization/index.d.cts +695 -657
- package/financing/formalization/index.d.ts +695 -657
- package/financing/formalization/index.js +99 -39
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.js +51 -9
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.d.ts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.js +51 -9
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/BvPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/BvPFSchema.js +51 -9
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPJSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPJSchema.js +51 -9
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.js +51 -9
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.js +51 -9
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/EosPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/EosPFSchema.js +51 -9
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/EosPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/EosPJSchema.js +51 -9
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.js +51 -9
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.js +51 -9
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.js +51 -9
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.js +52 -10
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +99 -39
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var alfaPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var alfaPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, UfEnum, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, UfEnum, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var bvPfObject = z.object({
|
|
@@ -22,7 +22,7 @@ var bvPfObject = z.object({
|
|
|
22
22
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
23
23
|
civil_status: textField(),
|
|
24
24
|
state: UfEnum,
|
|
25
|
-
nationality:
|
|
25
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
26
26
|
uf_naturalness: UfEnum,
|
|
27
27
|
naturalness: textField(),
|
|
28
28
|
cellphone: phoneBRSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, cepSchema, birthDateSchema, cpfSchema, issueDateSchema, textField, currencySchema, dateDMYSchema, integerField, cnpjSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, cepSchema, birthDateSchema, cpfSchema, issueDateSchema, textField, currencySchema, dateDMYSchema, integerField, NationalityEnum, NATIONALITY_BRAZIL, cnpjSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var unifiedPjObject = z.object({
|
|
@@ -41,7 +41,7 @@ var unifiedPjObject = z.object({
|
|
|
41
41
|
city: textField(),
|
|
42
42
|
state: UfEnum,
|
|
43
43
|
mother_name: textField(),
|
|
44
|
-
nationality:
|
|
44
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
45
45
|
office: textField().optional(),
|
|
46
46
|
phone: phoneBRSchema.optional(),
|
|
47
47
|
civil_status: textField().optional(),
|
|
@@ -78,7 +78,7 @@ var unifiedPjObject = z.object({
|
|
|
78
78
|
city: textField(),
|
|
79
79
|
state: UfEnum,
|
|
80
80
|
mother_name: textField(),
|
|
81
|
-
nationality:
|
|
81
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
82
82
|
office: textField().optional(),
|
|
83
83
|
phone: phoneBRSchema.optional(),
|
|
84
84
|
civil_status: textField().optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { formalizationExtras, UfEnum, dateDMYSchema, issueDateSchema, SexEnum, birthDateSchema, emailSchema, phoneBRSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { formalizationExtras, UfEnum, dateDMYSchema, issueDateSchema, SexEnum, birthDateSchema, emailSchema, phoneBRSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var solAgoraPjObject = z.object({
|
|
@@ -48,7 +48,7 @@ var solAgoraPjObject = z.object({
|
|
|
48
48
|
mother_name: textField(),
|
|
49
49
|
naturalness: textField(),
|
|
50
50
|
uf_naturalness: UfEnum,
|
|
51
|
-
nationality:
|
|
51
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
52
52
|
}).strict()
|
|
53
53
|
)
|
|
54
54
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { formalizationExtras, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, integerField, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, cnpjSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { formalizationExtras, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, integerField, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, NationalityEnum, NATIONALITY_BRAZIL, cnpjSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var bvPjObject = z.object({
|
|
@@ -56,7 +56,7 @@ var bvPjObject = z.object({
|
|
|
56
56
|
patrimony: currencySchema,
|
|
57
57
|
naturalness: textField(),
|
|
58
58
|
uf_naturalness: UfEnum,
|
|
59
|
-
nationality:
|
|
59
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
60
60
|
pep_relationship: textField()
|
|
61
61
|
}).strict()
|
|
62
62
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var solfacilPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var solfacilPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var santanderPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var santanderPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var losangoPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var losangoPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var safraPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var safraPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var santanderPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var santanderPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var bancoDoBrasilPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var bancoDoBrasilPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var cashMePjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var cashMePjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -38,6 +38,45 @@ var fileUploadField = z.object(
|
|
|
38
38
|
REQUIRED_STRING_PARAMS
|
|
39
39
|
);
|
|
40
40
|
|
|
41
|
+
// src/shared/enums/nationality.ts
|
|
42
|
+
var NATIONALITY_BRAZIL = "brasil";
|
|
43
|
+
var NationalityEnum = enumField([
|
|
44
|
+
NATIONALITY_BRAZIL,
|
|
45
|
+
"argentina",
|
|
46
|
+
"bolivia",
|
|
47
|
+
"chile",
|
|
48
|
+
"colombia",
|
|
49
|
+
"paraguai",
|
|
50
|
+
"peru",
|
|
51
|
+
"uruguai",
|
|
52
|
+
"venezuela",
|
|
53
|
+
"portugal",
|
|
54
|
+
"espanha",
|
|
55
|
+
"italia",
|
|
56
|
+
"estados_unidos",
|
|
57
|
+
"japao",
|
|
58
|
+
"china",
|
|
59
|
+
"outro"
|
|
60
|
+
]);
|
|
61
|
+
var NationalityLabels = {
|
|
62
|
+
brasil: "Brasil",
|
|
63
|
+
argentina: "Argentina",
|
|
64
|
+
bolivia: "Bol\xEDvia",
|
|
65
|
+
chile: "Chile",
|
|
66
|
+
colombia: "Col\xF4mbia",
|
|
67
|
+
paraguai: "Paraguai",
|
|
68
|
+
peru: "Peru",
|
|
69
|
+
uruguai: "Uruguai",
|
|
70
|
+
venezuela: "Venezuela",
|
|
71
|
+
portugal: "Portugal",
|
|
72
|
+
espanha: "Espanha",
|
|
73
|
+
italia: "It\xE1lia",
|
|
74
|
+
estados_unidos: "Estados Unidos",
|
|
75
|
+
japao: "Jap\xE3o",
|
|
76
|
+
china: "China",
|
|
77
|
+
outro: "Outro"
|
|
78
|
+
};
|
|
79
|
+
|
|
41
80
|
// src/shared/enums/sex.ts
|
|
42
81
|
var SexEnum = enumField(["masculino", "feminino"]);
|
|
43
82
|
var SexLabels = {
|
|
@@ -216,16 +255,22 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
216
255
|
}
|
|
217
256
|
|
|
218
257
|
// src/shared/regex/index.ts
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
258
|
+
function requiredFormatString() {
|
|
259
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
260
|
+
}
|
|
261
|
+
var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
262
|
+
var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
263
|
+
var cpfCnpjSchema = requiredFormatString().transform(onlyDigits).refine(
|
|
222
264
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
223
265
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
224
266
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
225
|
-
var cepSchema =
|
|
226
|
-
var phoneBRSchema =
|
|
227
|
-
var emailSchema =
|
|
228
|
-
|
|
267
|
+
var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
268
|
+
var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
269
|
+
var emailSchema = requiredFormatString().refine(
|
|
270
|
+
(v) => PATTERNS.email.test(v),
|
|
271
|
+
"E-mail inv\xE1lido"
|
|
272
|
+
);
|
|
273
|
+
var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
229
274
|
var birthDateSchema = dateDMYSchema.refine(
|
|
230
275
|
(v) => isAdultDMY(v),
|
|
231
276
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -234,7 +279,22 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
234
279
|
(v) => isNotFutureDMY(v),
|
|
235
280
|
"Data de emiss\xE3o n\xE3o pode ser futura"
|
|
236
281
|
);
|
|
237
|
-
|
|
282
|
+
function parseBRLCurrency(value) {
|
|
283
|
+
if (typeof value !== "string") {
|
|
284
|
+
return value;
|
|
285
|
+
}
|
|
286
|
+
const trimmed = value.trim();
|
|
287
|
+
if (trimmed === "") {
|
|
288
|
+
return void 0;
|
|
289
|
+
}
|
|
290
|
+
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
291
|
+
const parsed = Number(normalized);
|
|
292
|
+
return Number.isNaN(parsed) ? value : parsed;
|
|
293
|
+
}
|
|
294
|
+
var currencySchema = z.preprocess(
|
|
295
|
+
parseBRLCurrency,
|
|
296
|
+
z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
|
|
297
|
+
);
|
|
238
298
|
z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
|
|
239
299
|
var RG_MAX_EMISSION_YEARS = 10;
|
|
240
300
|
function applyPartnerRefinement(data, ctx) {
|
|
@@ -326,4 +386,4 @@ var formalizationExtras = {
|
|
|
326
386
|
rd_re_insurance_toggle: z.boolean().default(true)
|
|
327
387
|
};
|
|
328
388
|
|
|
329
|
-
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, ProofKinshipTypeLabels, SexEnum, SexLabels, UfEnum, UfLabels, applyPfRefinements, applyPjRefinements, birthDateSchema, cepSchema, cnpjSchema, cpfCnpjSchema, cpfSchema, currencySchema, dateDMYSchema, emailSchema, enumField, formalizationExtras, integerField, issueDateSchema, numberField, phoneBRSchema, textField };
|
|
389
|
+
export { CIVIL_STATUS_REQUIRING_PARTNER, NATIONALITY_BRAZIL, NationalityEnum, NationalityLabels, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, ProofKinshipTypeLabels, SexEnum, SexLabels, UfEnum, UfLabels, applyPfRefinements, applyPjRefinements, birthDateSchema, cepSchema, cnpjSchema, cpfCnpjSchema, cpfSchema, currencySchema, dateDMYSchema, emailSchema, enumField, formalizationExtras, integerField, issueDateSchema, numberField, phoneBRSchema, textField };
|
|
@@ -1,5 +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, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { enumField, formalizationExtras, UfEnum, issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, textField, dateDMYSchema, cnpjSchema, numberField, integerField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
// src/shared/enums/nature-of-occupation-type.ts
|
|
@@ -82,7 +82,7 @@ var unifiedPfObject = z.object({
|
|
|
82
82
|
city: textField(),
|
|
83
83
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
84
84
|
state: UfEnum,
|
|
85
|
-
nationality:
|
|
85
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
86
86
|
cellphone: phoneBRSchema,
|
|
87
87
|
email: emailSchema,
|
|
88
88
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var eosPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var eosPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var bancoDoBrasilPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var bancoDoBrasilPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var caixaEconomicaFederalPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var caixaEconomicaFederalPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var credito77PfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var credito77PfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var credito77PjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var credito77PjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var hdtEnergyPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var hdtEnergyPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var hdtEnergyPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var hdtEnergyPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var cashMePfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var cashMePfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,38 +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, SexLabels, applyPfRefinements } from './chunk-
|
|
33
|
-
|
|
34
|
-
// src/shared/enums/nationality.ts
|
|
35
|
-
var NATIONALITY_BRAZIL = "brasil";
|
|
1
|
+
import { santanderPfObject, santanderPfSchema } from './chunk-CPDLICOP.mjs';
|
|
2
|
+
import { santanderPjObject, santanderPjSchema } from './chunk-6ZUOXZY3.mjs';
|
|
3
|
+
import { solAgoraPfObject, solAgoraPfSchema } from './chunk-RWOX5QO3.mjs';
|
|
4
|
+
import { solAgoraPjObject, solAgoraPjSchema } from './chunk-5EHEC3RT.mjs';
|
|
5
|
+
import { solfacilPfObject, solfacilPfSchema } from './chunk-65EE5FW3.mjs';
|
|
6
|
+
import { solfacilPjObject, solfacilPjSchema } from './chunk-TKHIBI4R.mjs';
|
|
7
|
+
import { YesOrNoLabels, CommunionRegimeLabels, CivilStatusLabels, NatureOfOccupationTypeLabels, ResidenceTypeLabels, unifiedPfSchema, unifiedPfObject } from './chunk-FBDTG3WD.mjs';
|
|
8
|
+
import { unifiedPjSchema, unifiedPjObject } from './chunk-4PZYGTUU.mjs';
|
|
9
|
+
import { eosPfObject, eosPfSchema } from './chunk-FIPFWGBQ.mjs';
|
|
10
|
+
import { eosPjObject, eosPjSchema } from './chunk-TDL42FZZ.mjs';
|
|
11
|
+
import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-MM6LQXI6.mjs';
|
|
12
|
+
import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-LU5ODSGQ.mjs';
|
|
13
|
+
import { losangoPfObject, losangoPfSchema } from './chunk-VDFDTLU5.mjs';
|
|
14
|
+
import { losangoPjObject, losangoPjSchema } from './chunk-AM7HTUI3.mjs';
|
|
15
|
+
import { safraPfObject, safraPfSchema } from './chunk-BYAXV4TG.mjs';
|
|
16
|
+
import { safraPjObject, safraPjSchema } from './chunk-Y67MNG2X.mjs';
|
|
17
|
+
import { bvPfObject, bvPfSchema } from './chunk-2BHUMNK5.mjs';
|
|
18
|
+
import { bvPjObject, bvPjSchema } from './chunk-5P6NWFTX.mjs';
|
|
19
|
+
import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-KBILM3GO.mjs';
|
|
20
|
+
import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-UF45URAJ.mjs';
|
|
21
|
+
import { cashMePfObject, cashMePfSchema } from './chunk-ORQ52KPA.mjs';
|
|
22
|
+
import { cashMePjObject, cashMePjSchema } from './chunk-DJDG3UYR.mjs';
|
|
23
|
+
import { credito77PfObject, credito77PfSchema } from './chunk-KJTTMDZP.mjs';
|
|
24
|
+
import { credito77PjObject, credito77PjSchema } from './chunk-L3OISOZA.mjs';
|
|
25
|
+
import { alfaPfObject, alfaPfSchema } from './chunk-VP4HT24O.mjs';
|
|
26
|
+
import { alfaPjObject, alfaPjSchema } from './chunk-22SYVROO.mjs';
|
|
27
|
+
import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-HMC73HBG.mjs';
|
|
28
|
+
import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-DIYEI2PA.mjs';
|
|
29
|
+
import { btgPfObject, btgPfSchema } from './chunk-QMODZE4A.mjs';
|
|
30
|
+
import { btgPjObject, btgPjSchema } from './chunk-U4ZDMJX2.mjs';
|
|
31
|
+
import { DocumentTypeLabels } from './chunk-JZ7DY7SU.mjs';
|
|
32
|
+
import { enumField, ProofKinshipTypeLabels, UfLabels, NationalityLabels, SexLabels, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
36
33
|
|
|
37
34
|
// src/domains/financing/enums/banks.ts
|
|
38
35
|
var BANK_SLUGS = [
|
|
@@ -56,6 +53,7 @@ var BankEnum = enumField(BANK_SLUGS);
|
|
|
56
53
|
// src/domains/financing/formalization/optionLabels.ts
|
|
57
54
|
var FORMALIZATION_OPTION_LABELS = {
|
|
58
55
|
sex: SexLabels,
|
|
56
|
+
nationality: NationalityLabels,
|
|
59
57
|
type_doc: DocumentTypeLabels,
|
|
60
58
|
partner_type_doc: DocumentTypeLabels,
|
|
61
59
|
residence_situation: ResidenceTypeLabels,
|
|
@@ -444,4 +442,4 @@ var FORMALIZATION_FIELD_META = {
|
|
|
444
442
|
}
|
|
445
443
|
};
|
|
446
444
|
|
|
447
|
-
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS,
|
|
445
|
+
export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var btgPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var btgPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-JZ7DY7SU.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, NationalityEnum, NATIONALITY_BRAZIL, cpfCnpjSchema, applyPfRefinements } from './chunk-ENDOIQ32.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var solAgoraPfObject = z.object({
|
|
@@ -18,7 +18,7 @@ var solAgoraPfObject = z.object({
|
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
20
|
state: UfEnum,
|
|
21
|
-
nationality:
|
|
21
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
24
24
|
monthly_income: currencySchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, NationalityEnum, NATIONALITY_BRAZIL, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var eosPjObject = z.object({
|
|
@@ -38,7 +38,7 @@ var eosPjObject = z.object({
|
|
|
38
38
|
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
|
-
nationality:
|
|
41
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
42
42
|
}).strict()
|
|
43
43
|
)
|
|
44
44
|
});
|