@77sol-lab/form-schemas 1.4.0 → 1.5.1
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-XXID67A4.mjs → chunk-2CN56LSL.mjs} +3 -3
- package/{chunk-36ZWNLRE.mjs → chunk-2W3LQ75V.mjs} +6 -6
- package/{chunk-TIB6TEME.mjs → chunk-2YVK6IDS.mjs} +19 -10
- package/{chunk-2NFFUOYG.mjs → chunk-3BPZV6IW.mjs} +3 -3
- package/{chunk-BCQD5NJB.mjs → chunk-3O52U22S.mjs} +3 -3
- package/{chunk-3QVWHHHF.mjs → chunk-3RSZ4NGE.mjs} +4 -4
- package/{chunk-ENVJMMCX.mjs → chunk-6HBDXEIK.mjs} +6 -6
- package/{chunk-UHQAHHAO.mjs → chunk-6TFRV3FG.mjs} +3 -3
- package/{chunk-PP5WJMGB.mjs → chunk-7ZERTOE7.mjs} +3 -3
- package/{chunk-HK7VVKRF.mjs → chunk-AURTWOTB.mjs} +11 -11
- package/{chunk-QH5BHXWK.mjs → chunk-DERWNSPY.mjs} +3 -3
- package/{chunk-BPWVGI53.mjs → chunk-F76ICRGY.mjs} +6 -6
- package/{chunk-MUFER7FT.mjs → chunk-FT5BAKSG.mjs} +3 -3
- package/{chunk-VMIR7MGU.mjs → chunk-GR2PK3Z7.mjs} +3 -3
- package/{chunk-RFML2PIV.mjs → chunk-HHJNVLHK.mjs} +3 -3
- package/{chunk-YZ3YYQEI.mjs → chunk-HZM2PWYJ.mjs} +3 -3
- package/{chunk-BTHGPT5U.mjs → chunk-JPFAMQGV.mjs} +3 -3
- package/{chunk-QBQDE5Y7.mjs → chunk-MDK5KVJT.mjs} +3 -3
- package/{chunk-2VGGCJ2O.mjs → chunk-O7OHCS36.mjs} +3 -3
- package/{chunk-AXXSWRN2.mjs → chunk-OMDC46YE.mjs} +3 -3
- package/{chunk-DIARPLFL.mjs → chunk-OUVNM2RX.mjs} +3 -3
- package/{chunk-X3M274QY.mjs → chunk-OX3X37VR.mjs} +5 -5
- package/{chunk-PZG2YKS4.mjs → chunk-P54HBDOE.mjs} +3 -3
- package/{chunk-A5ZODVEU.mjs → chunk-PO6GQE6E.mjs} +3 -3
- package/{chunk-QZR62OU5.mjs → chunk-THYAK7O3.mjs} +3 -3
- package/{chunk-DWXCA5I6.mjs → chunk-VGFPONIS.mjs} +3 -3
- package/{chunk-XZSZRCO2.mjs → chunk-WGPPH7DC.mjs} +3 -3
- package/{chunk-BZ4V4AAJ.mjs → chunk-WPLLR3SO.mjs} +3 -3
- package/{chunk-PYKWBM67.mjs → chunk-WRJAOYL6.mjs} +3 -3
- package/{chunk-7I2LXGA2.mjs → chunk-XII4F5RZ.mjs} +2 -2
- package/{chunk-SKFIWDPV.mjs → chunk-Y3FAMPYF.mjs} +90 -17
- package/{chunk-LZCHOENM.mjs → chunk-YNVJAGAY.mjs} +41 -35
- package/{chunk-3LKC3OJJ.mjs → chunk-YQJCILG3.mjs} +3 -3
- package/financing/formalization/index.d.cts +1451 -1306
- package/financing/formalization/index.d.ts +1451 -1306
- package/financing/formalization/index.js +179 -87
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.js +53 -7
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.js +48 -4
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +53 -7
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +48 -4
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.js +53 -7
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.js +56 -10
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPFSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPFSchema.js +55 -9
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BvPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BvPJSchema.js +56 -10
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +53 -7
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +48 -4
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.js +53 -7
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.js +48 -4
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.js +53 -7
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.js +48 -4
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/EosPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/EosPFSchema.js +53 -7
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/EosPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/EosPJSchema.js +48 -4
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +53 -7
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +48 -4
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.js +53 -7
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.js +48 -4
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.js +53 -7
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.js +48 -4
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.js +53 -7
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.js +48 -4
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.js +53 -7
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.js +56 -10
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.js +53 -7
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.js +49 -5
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.js +81 -25
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.js +61 -15
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +179 -87
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-XII4F5RZ.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var bancoDoBrasilPfObject = z.object({
|
|
@@ -17,7 +17,7 @@ var bancoDoBrasilPfObject = z.object({
|
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
nationality: textField(),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-XII4F5RZ.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var solfacilPfObject = z.object({
|
|
@@ -17,7 +17,7 @@ var solfacilPfObject = z.object({
|
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
nationality: textField(),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-XII4F5RZ.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var alfaPfObject = z.object({
|
|
@@ -17,7 +17,7 @@ var alfaPfObject = z.object({
|
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
nationality: textField(),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var credito77PjObject = z.object({
|
|
@@ -17,7 +17,7 @@ var credito77PjObject = z.object({
|
|
|
17
17
|
legal_nature: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
economic_activity_group: textField(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
@@ -35,7 +35,7 @@ var credito77PjObject = z.object({
|
|
|
35
35
|
district: textField(),
|
|
36
36
|
sex: SexEnum,
|
|
37
37
|
city: textField(),
|
|
38
|
-
state:
|
|
38
|
+
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
41
|
nationality: textField()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var alfaPjObject = z.object({
|
|
@@ -17,7 +17,7 @@ var alfaPjObject = z.object({
|
|
|
17
17
|
legal_nature: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
economic_activity_group: textField(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
@@ -35,7 +35,7 @@ var alfaPjObject = z.object({
|
|
|
35
35
|
district: textField(),
|
|
36
36
|
sex: SexEnum,
|
|
37
37
|
city: textField(),
|
|
38
|
-
state:
|
|
38
|
+
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
41
|
nationality: textField()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentTypeEnum } from './chunk-
|
|
2
|
-
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-
|
|
1
|
+
import { DocumentTypeEnum } from './chunk-XII4F5RZ.mjs';
|
|
2
|
+
import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
var solAgoraPfObject = z.object({
|
|
@@ -17,7 +17,7 @@ var solAgoraPfObject = z.object({
|
|
|
17
17
|
energy_account_in_requester_name: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
nationality: textField(),
|
|
22
22
|
cellphone: phoneBRSchema,
|
|
23
23
|
email: emailSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var cashMePjObject = z.object({
|
|
@@ -17,7 +17,7 @@ var cashMePjObject = z.object({
|
|
|
17
17
|
legal_nature: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
economic_activity_group: textField(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
@@ -35,7 +35,7 @@ var cashMePjObject = z.object({
|
|
|
35
35
|
district: textField(),
|
|
36
36
|
sex: SexEnum,
|
|
37
37
|
city: textField(),
|
|
38
|
-
state:
|
|
38
|
+
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
41
|
nationality: textField()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { enumField } from './chunk-Y3FAMPYF.mjs';
|
|
2
2
|
|
|
3
3
|
// src/shared/enums/document-type.ts
|
|
4
|
-
var DocumentTypeEnum =
|
|
4
|
+
var DocumentTypeEnum = enumField([
|
|
5
5
|
"documento_de_identidade",
|
|
6
6
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
7
7
|
]);
|
|
@@ -1,12 +1,100 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
// src/shared/fields/primitives.ts
|
|
4
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
5
|
+
function textField(maxLength) {
|
|
6
|
+
const base = z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
7
|
+
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
8
|
+
}
|
|
9
|
+
var numberField = z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
10
|
+
var integerField = z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
11
|
+
function enumField(values) {
|
|
12
|
+
return z.enum(values, {
|
|
13
|
+
errorMap: (issue, ctx) => {
|
|
14
|
+
if (issue.code === z.ZodIssueCode.invalid_type || issue.code === z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
15
|
+
return { message: REQUIRED_MESSAGE };
|
|
16
|
+
}
|
|
17
|
+
return { message: ctx.defaultError };
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
22
|
+
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
23
|
+
var fileUploadField = z.object({
|
|
24
|
+
url: z.string().url().optional(),
|
|
25
|
+
mime: z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
26
|
+
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
27
|
+
}),
|
|
28
|
+
sizeBytes: z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
29
|
+
});
|
|
30
|
+
|
|
3
31
|
// src/shared/enums/sex.ts
|
|
4
|
-
var SexEnum =
|
|
32
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
5
33
|
var SexLabels = {
|
|
6
34
|
masculino: "Masculino",
|
|
7
35
|
feminino: "Feminino"
|
|
8
36
|
};
|
|
9
37
|
|
|
38
|
+
// src/shared/enums/uf.ts
|
|
39
|
+
var UfEnum = enumField([
|
|
40
|
+
"AC",
|
|
41
|
+
"AL",
|
|
42
|
+
"AP",
|
|
43
|
+
"AM",
|
|
44
|
+
"BA",
|
|
45
|
+
"CE",
|
|
46
|
+
"DF",
|
|
47
|
+
"ES",
|
|
48
|
+
"GO",
|
|
49
|
+
"MA",
|
|
50
|
+
"MT",
|
|
51
|
+
"MS",
|
|
52
|
+
"MG",
|
|
53
|
+
"PA",
|
|
54
|
+
"PB",
|
|
55
|
+
"PR",
|
|
56
|
+
"PE",
|
|
57
|
+
"PI",
|
|
58
|
+
"RJ",
|
|
59
|
+
"RN",
|
|
60
|
+
"RS",
|
|
61
|
+
"RO",
|
|
62
|
+
"RR",
|
|
63
|
+
"SC",
|
|
64
|
+
"SP",
|
|
65
|
+
"SE",
|
|
66
|
+
"TO"
|
|
67
|
+
]);
|
|
68
|
+
var UfLabels = {
|
|
69
|
+
AC: "Acre",
|
|
70
|
+
AL: "Alagoas",
|
|
71
|
+
AP: "Amap\xE1",
|
|
72
|
+
AM: "Amazonas",
|
|
73
|
+
BA: "Bahia",
|
|
74
|
+
CE: "Cear\xE1",
|
|
75
|
+
DF: "Distrito Federal",
|
|
76
|
+
ES: "Esp\xEDrito Santo",
|
|
77
|
+
GO: "Goi\xE1s",
|
|
78
|
+
MA: "Maranh\xE3o",
|
|
79
|
+
MT: "Mato Grosso",
|
|
80
|
+
MS: "Mato Grosso do Sul",
|
|
81
|
+
MG: "Minas Gerais",
|
|
82
|
+
PA: "Par\xE1",
|
|
83
|
+
PB: "Para\xEDba",
|
|
84
|
+
PR: "Paran\xE1",
|
|
85
|
+
PE: "Pernambuco",
|
|
86
|
+
PI: "Piau\xED",
|
|
87
|
+
RJ: "Rio de Janeiro",
|
|
88
|
+
RN: "Rio Grande do Norte",
|
|
89
|
+
RS: "Rio Grande do Sul",
|
|
90
|
+
RO: "Rond\xF4nia",
|
|
91
|
+
RR: "Roraima",
|
|
92
|
+
SC: "Santa Catarina",
|
|
93
|
+
SP: "S\xE3o Paulo",
|
|
94
|
+
SE: "Sergipe",
|
|
95
|
+
TO: "Tocantins"
|
|
96
|
+
};
|
|
97
|
+
|
|
10
98
|
// src/domains/financing/enums/civil-status.ts
|
|
11
99
|
var CIVIL_STATUS_REQUIRING_PARTNER = ["casado"];
|
|
12
100
|
var PARTNER_FIELDS = [
|
|
@@ -190,21 +278,6 @@ function applyPfRefinements(data, ctx) {
|
|
|
190
278
|
function applyPjRefinements(data, ctx) {
|
|
191
279
|
applyCommonRefinements(data, ctx);
|
|
192
280
|
}
|
|
193
|
-
function textField(maxLength) {
|
|
194
|
-
const base = z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
195
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
196
|
-
}
|
|
197
|
-
var numberField = z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
198
|
-
var integerField = z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
199
|
-
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
200
|
-
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
201
|
-
var fileUploadField = z.object({
|
|
202
|
-
url: z.string().url().optional(),
|
|
203
|
-
mime: z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
204
|
-
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
205
|
-
}),
|
|
206
|
-
sizeBytes: z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
207
|
-
});
|
|
208
281
|
var formalizationExtras = {
|
|
209
282
|
voucher_local_installation_address: fileUploadField,
|
|
210
283
|
proof_kinship: fileUploadField.optional(),
|
|
@@ -213,4 +286,4 @@ var formalizationExtras = {
|
|
|
213
286
|
rd_re_insurance_toggle: z.boolean().default(true)
|
|
214
287
|
};
|
|
215
288
|
|
|
216
|
-
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, SexEnum, SexLabels, applyPfRefinements, applyPjRefinements, birthDateSchema, cepSchema, cnpjSchema, cpfCnpjSchema, cpfSchema, currencySchema, dateDMYSchema, emailSchema, formalizationExtras, integerField, issueDateSchema, numberField, phoneBRSchema, textField };
|
|
289
|
+
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, SexEnum, SexLabels, UfEnum, UfLabels, applyPfRefinements, applyPjRefinements, birthDateSchema, cepSchema, cnpjSchema, cpfCnpjSchema, cpfSchema, currencySchema, dateDMYSchema, emailSchema, enumField, formalizationExtras, integerField, issueDateSchema, numberField, phoneBRSchema, textField };
|
|
@@ -1,39 +1,40 @@
|
|
|
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 { CommunionRegimeLabels, CivilStatusLabels, YesOrNoLabels, 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 { SexLabels, applyPfRefinements } from './chunk-
|
|
33
|
-
import { z } from 'zod';
|
|
1
|
+
import { santanderPfObject, santanderPfSchema } from './chunk-GR2PK3Z7.mjs';
|
|
2
|
+
import { santanderPjObject, santanderPjSchema } from './chunk-O7OHCS36.mjs';
|
|
3
|
+
import { solAgoraPfObject, solAgoraPfSchema } from './chunk-WPLLR3SO.mjs';
|
|
4
|
+
import { solAgoraPjObject, solAgoraPjSchema } from './chunk-2W3LQ75V.mjs';
|
|
5
|
+
import { solfacilPfObject, solfacilPfSchema } from './chunk-PO6GQE6E.mjs';
|
|
6
|
+
import { solfacilPjObject, solfacilPjSchema } from './chunk-3RSZ4NGE.mjs';
|
|
7
|
+
import { CommunionRegimeLabels, CivilStatusLabels, YesOrNoLabels, NatureOfOccupationTypeLabels, ResidenceTypeLabels, unifiedPfSchema, unifiedPfObject } from './chunk-2YVK6IDS.mjs';
|
|
8
|
+
import { unifiedPjSchema, unifiedPjObject } from './chunk-AURTWOTB.mjs';
|
|
9
|
+
import { eosPfObject, eosPfSchema } from './chunk-FT5BAKSG.mjs';
|
|
10
|
+
import { eosPjObject, eosPjSchema } from './chunk-HHJNVLHK.mjs';
|
|
11
|
+
import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-3O52U22S.mjs';
|
|
12
|
+
import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-OUVNM2RX.mjs';
|
|
13
|
+
import { losangoPfObject, losangoPfSchema } from './chunk-2CN56LSL.mjs';
|
|
14
|
+
import { losangoPjObject, losangoPjSchema } from './chunk-DERWNSPY.mjs';
|
|
15
|
+
import { safraPfObject, safraPfSchema } from './chunk-6TFRV3FG.mjs';
|
|
16
|
+
import { safraPjObject, safraPjSchema } from './chunk-YQJCILG3.mjs';
|
|
17
|
+
import { bvPfObject, bvPfSchema } from './chunk-OX3X37VR.mjs';
|
|
18
|
+
import { bvPjObject, bvPjSchema } from './chunk-F76ICRGY.mjs';
|
|
19
|
+
import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-7ZERTOE7.mjs';
|
|
20
|
+
import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-3BPZV6IW.mjs';
|
|
21
|
+
import { cashMePfObject, cashMePfSchema } from './chunk-OMDC46YE.mjs';
|
|
22
|
+
import { cashMePjObject, cashMePjSchema } from './chunk-WRJAOYL6.mjs';
|
|
23
|
+
import { credito77PfObject, credito77PfSchema } from './chunk-MDK5KVJT.mjs';
|
|
24
|
+
import { credito77PjObject, credito77PjSchema } from './chunk-VGFPONIS.mjs';
|
|
25
|
+
import { alfaPfObject, alfaPfSchema } from './chunk-THYAK7O3.mjs';
|
|
26
|
+
import { alfaPjObject, alfaPjSchema } from './chunk-WGPPH7DC.mjs';
|
|
27
|
+
import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-P54HBDOE.mjs';
|
|
28
|
+
import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-JPFAMQGV.mjs';
|
|
29
|
+
import { btgPfObject, btgPfSchema } from './chunk-HZM2PWYJ.mjs';
|
|
30
|
+
import { btgPjObject, btgPjSchema } from './chunk-6HBDXEIK.mjs';
|
|
31
|
+
import { DocumentTypeLabels } from './chunk-XII4F5RZ.mjs';
|
|
32
|
+
import { enumField, UfLabels, SexLabels, applyPfRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
34
33
|
|
|
35
34
|
// src/shared/enums/nationality.ts
|
|
36
35
|
var NATIONALITY_BRAZIL = "brasil";
|
|
36
|
+
|
|
37
|
+
// src/domains/financing/enums/banks.ts
|
|
37
38
|
var BANK_SLUGS = [
|
|
38
39
|
"credito77",
|
|
39
40
|
"losango",
|
|
@@ -50,7 +51,7 @@ var BANK_SLUGS = [
|
|
|
50
51
|
"sol_agora",
|
|
51
52
|
"eos"
|
|
52
53
|
];
|
|
53
|
-
var BankEnum =
|
|
54
|
+
var BankEnum = enumField(BANK_SLUGS);
|
|
54
55
|
|
|
55
56
|
// src/domains/financing/formalization/optionLabels.ts
|
|
56
57
|
var FORMALIZATION_OPTION_LABELS = {
|
|
@@ -61,7 +62,12 @@ var FORMALIZATION_OPTION_LABELS = {
|
|
|
61
62
|
nature_of_occupation: NatureOfOccupationTypeLabels,
|
|
62
63
|
pep_relationship: YesOrNoLabels,
|
|
63
64
|
civil_status: CivilStatusLabels,
|
|
64
|
-
communion_regime: CommunionRegimeLabels
|
|
65
|
+
communion_regime: CommunionRegimeLabels,
|
|
66
|
+
state: UfLabels,
|
|
67
|
+
uf_naturalness: UfLabels,
|
|
68
|
+
emitting_state: UfLabels,
|
|
69
|
+
uf_issuing_body: UfLabels,
|
|
70
|
+
doc_issuance_uf: UfLabels
|
|
65
71
|
};
|
|
66
72
|
function getFieldOptions(field) {
|
|
67
73
|
const labels = FORMALIZATION_OPTION_LABELS[field];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-
|
|
1
|
+
import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-Y3FAMPYF.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var safraPjObject = z.object({
|
|
@@ -17,7 +17,7 @@ var safraPjObject = z.object({
|
|
|
17
17
|
legal_nature: textField(),
|
|
18
18
|
city: textField(),
|
|
19
19
|
economic_activity_group: textField(),
|
|
20
|
-
state:
|
|
20
|
+
state: UfEnum,
|
|
21
21
|
economic_activity: textField(),
|
|
22
22
|
monthly_income: currencySchema
|
|
23
23
|
}).strict(),
|
|
@@ -35,7 +35,7 @@ var safraPjObject = z.object({
|
|
|
35
35
|
district: textField(),
|
|
36
36
|
sex: SexEnum,
|
|
37
37
|
city: textField(),
|
|
38
|
-
state:
|
|
38
|
+
state: UfEnum,
|
|
39
39
|
office: textField(),
|
|
40
40
|
mother_name: textField(),
|
|
41
41
|
nationality: textField()
|