@77sol-lab/form-schemas 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/{chunk-TEL6EWAJ.mjs → chunk-2END6TYT.mjs} +3 -3
  2. package/{chunk-WHVCW22E.mjs → chunk-3OIG2FI5.mjs} +3 -3
  3. package/{chunk-FISPUQLP.mjs → chunk-4XJZIRLT.mjs} +6 -6
  4. package/{chunk-SBOQWT53.mjs → chunk-53GXILC6.mjs} +3 -3
  5. package/{chunk-CY2EXD6C.mjs → chunk-5C4YMHXV.mjs} +5 -5
  6. package/{chunk-TUYULPDF.mjs → chunk-6PH42V5T.mjs} +3 -3
  7. package/chunk-6YS5KBXS.mjs +438 -0
  8. package/chunk-7I2LXGA2.mjs +13 -0
  9. package/{chunk-2TGZGHS3.mjs → chunk-7MWUETLP.mjs} +3 -3
  10. package/{chunk-W3CNJVMM.mjs → chunk-7ZF45QUN.mjs} +3 -3
  11. package/chunk-D2ZUTYWA.mjs +109 -0
  12. package/{chunk-KXEEZLMR.mjs → chunk-F27U6CXB.mjs} +3 -3
  13. package/{chunk-TE64VI3I.mjs → chunk-FPJKWVVF.mjs} +3 -3
  14. package/{chunk-G3T562PC.mjs → chunk-FRMGP3C3.mjs} +3 -3
  15. package/{chunk-UHMVAJYK.mjs → chunk-G5SKXDYM.mjs} +3 -3
  16. package/{chunk-NL4VK2TF.mjs → chunk-GQ5G2YX4.mjs} +3 -3
  17. package/{chunk-RMWCQ6YU.mjs → chunk-H54QBCSW.mjs} +3 -3
  18. package/{chunk-NDJRJOFE.mjs → chunk-HBTFOSJU.mjs} +105 -33
  19. package/{chunk-FVIOZ4Q5.mjs → chunk-IWSDOFBY.mjs} +6 -6
  20. package/{chunk-HKY6D6J5.mjs → chunk-L4EWOROT.mjs} +3 -3
  21. package/{chunk-7LHQ27CS.mjs → chunk-N2IX5TRK.mjs} +3 -3
  22. package/{chunk-XNACW46V.mjs → chunk-NCTEG6EL.mjs} +11 -11
  23. package/{chunk-TCPW5MUT.mjs → chunk-OARPUXXM.mjs} +3 -3
  24. package/{chunk-ORO6OVTB.mjs → chunk-OVANLPKX.mjs} +3 -3
  25. package/{chunk-B7RDVG4R.mjs → chunk-R6CEKWRQ.mjs} +6 -6
  26. package/{chunk-MWPQSGDD.mjs → chunk-RYJSCFSY.mjs} +3 -3
  27. package/{chunk-36GQASLI.mjs → chunk-UMP5UF3U.mjs} +3 -3
  28. package/{chunk-GCYI6OFG.mjs → chunk-UU3MRKTH.mjs} +3 -3
  29. package/{chunk-TTHE6D3Y.mjs → chunk-UUWULEKH.mjs} +3 -3
  30. package/{chunk-6BD6V7EB.mjs → chunk-VO573WIK.mjs} +3 -3
  31. package/{chunk-22ZUS7K3.mjs → chunk-WTHEEPBE.mjs} +3 -3
  32. package/{chunk-EFLW2FHX.mjs → chunk-YIUJVGT4.mjs} +3 -3
  33. package/{chunk-XUMC3TQU.mjs → chunk-Z2TTZ3JJ.mjs} +4 -4
  34. package/financing/formalization/index.d.cts +2518 -2581
  35. package/financing/formalization/index.d.ts +2518 -2581
  36. package/financing/formalization/index.js +485 -154
  37. package/financing/formalization/index.mjs +33 -33
  38. package/financing/formalization/schemas/AlfaPFSchema.d.cts +50 -58
  39. package/financing/formalization/schemas/AlfaPFSchema.d.ts +50 -58
  40. package/financing/formalization/schemas/AlfaPFSchema.js +75 -35
  41. package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
  42. package/financing/formalization/schemas/AlfaPJSchema.d.cts +60 -68
  43. package/financing/formalization/schemas/AlfaPJSchema.d.ts +60 -68
  44. package/financing/formalization/schemas/AlfaPJSchema.js +40 -24
  45. package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
  46. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +50 -58
  47. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +50 -58
  48. package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +75 -35
  49. package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
  50. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +60 -68
  51. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +60 -68
  52. package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +40 -24
  53. package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
  54. package/financing/formalization/schemas/BtgPFSchema.d.cts +50 -58
  55. package/financing/formalization/schemas/BtgPFSchema.d.ts +50 -58
  56. package/financing/formalization/schemas/BtgPFSchema.js +75 -35
  57. package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
  58. package/financing/formalization/schemas/BtgPJSchema.d.cts +106 -114
  59. package/financing/formalization/schemas/BtgPJSchema.d.ts +106 -114
  60. package/financing/formalization/schemas/BtgPJSchema.js +46 -27
  61. package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
  62. package/financing/formalization/schemas/BvPFSchema.d.cts +84 -92
  63. package/financing/formalization/schemas/BvPFSchema.d.ts +84 -92
  64. package/financing/formalization/schemas/BvPFSchema.js +77 -37
  65. package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
  66. package/financing/formalization/schemas/BvPJSchema.d.cts +136 -144
  67. package/financing/formalization/schemas/BvPJSchema.d.ts +136 -144
  68. package/financing/formalization/schemas/BvPJSchema.js +46 -27
  69. package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
  70. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +50 -58
  71. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +50 -58
  72. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +75 -35
  73. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
  74. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +60 -68
  75. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +60 -68
  76. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +40 -24
  77. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
  78. package/financing/formalization/schemas/CashMePFSchema.d.cts +50 -58
  79. package/financing/formalization/schemas/CashMePFSchema.d.ts +50 -58
  80. package/financing/formalization/schemas/CashMePFSchema.js +75 -35
  81. package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
  82. package/financing/formalization/schemas/CashMePJSchema.d.cts +60 -68
  83. package/financing/formalization/schemas/CashMePJSchema.d.ts +60 -68
  84. package/financing/formalization/schemas/CashMePJSchema.js +40 -24
  85. package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
  86. package/financing/formalization/schemas/Credito77PFSchema.d.cts +50 -58
  87. package/financing/formalization/schemas/Credito77PFSchema.d.ts +50 -58
  88. package/financing/formalization/schemas/Credito77PFSchema.js +75 -35
  89. package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
  90. package/financing/formalization/schemas/Credito77PJSchema.d.cts +60 -68
  91. package/financing/formalization/schemas/Credito77PJSchema.d.ts +60 -68
  92. package/financing/formalization/schemas/Credito77PJSchema.js +40 -24
  93. package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
  94. package/financing/formalization/schemas/EosPFSchema.d.cts +50 -58
  95. package/financing/formalization/schemas/EosPFSchema.d.ts +50 -58
  96. package/financing/formalization/schemas/EosPFSchema.js +75 -35
  97. package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
  98. package/financing/formalization/schemas/EosPJSchema.d.cts +60 -68
  99. package/financing/formalization/schemas/EosPJSchema.d.ts +60 -68
  100. package/financing/formalization/schemas/EosPJSchema.js +40 -24
  101. package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
  102. package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +50 -58
  103. package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +50 -58
  104. package/financing/formalization/schemas/HdtEnergyPFSchema.js +75 -35
  105. package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
  106. package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +60 -68
  107. package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +60 -68
  108. package/financing/formalization/schemas/HdtEnergyPJSchema.js +40 -24
  109. package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
  110. package/financing/formalization/schemas/LosangoPFSchema.d.cts +50 -58
  111. package/financing/formalization/schemas/LosangoPFSchema.d.ts +50 -58
  112. package/financing/formalization/schemas/LosangoPFSchema.js +75 -35
  113. package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
  114. package/financing/formalization/schemas/LosangoPJSchema.d.cts +60 -68
  115. package/financing/formalization/schemas/LosangoPJSchema.d.ts +60 -68
  116. package/financing/formalization/schemas/LosangoPJSchema.js +40 -24
  117. package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
  118. package/financing/formalization/schemas/SafraPFSchema.d.cts +50 -58
  119. package/financing/formalization/schemas/SafraPFSchema.d.ts +50 -58
  120. package/financing/formalization/schemas/SafraPFSchema.js +75 -35
  121. package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
  122. package/financing/formalization/schemas/SafraPJSchema.d.cts +60 -68
  123. package/financing/formalization/schemas/SafraPJSchema.d.ts +60 -68
  124. package/financing/formalization/schemas/SafraPJSchema.js +40 -24
  125. package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
  126. package/financing/formalization/schemas/SantanderPFSchema.d.cts +50 -58
  127. package/financing/formalization/schemas/SantanderPFSchema.d.ts +50 -58
  128. package/financing/formalization/schemas/SantanderPFSchema.js +75 -35
  129. package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
  130. package/financing/formalization/schemas/SantanderPJSchema.d.cts +60 -68
  131. package/financing/formalization/schemas/SantanderPJSchema.d.ts +60 -68
  132. package/financing/formalization/schemas/SantanderPJSchema.js +40 -24
  133. package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
  134. package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +50 -58
  135. package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +50 -58
  136. package/financing/formalization/schemas/SolAgoraPFSchema.js +75 -35
  137. package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
  138. package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +106 -114
  139. package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +106 -114
  140. package/financing/formalization/schemas/SolAgoraPJSchema.js +46 -27
  141. package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
  142. package/financing/formalization/schemas/SolfacilPFSchema.d.cts +50 -58
  143. package/financing/formalization/schemas/SolfacilPFSchema.d.ts +50 -58
  144. package/financing/formalization/schemas/SolfacilPFSchema.js +75 -35
  145. package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
  146. package/financing/formalization/schemas/SolfacilPJSchema.d.cts +82 -90
  147. package/financing/formalization/schemas/SolfacilPJSchema.d.ts +82 -90
  148. package/financing/formalization/schemas/SolfacilPJSchema.js +41 -25
  149. package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
  150. package/financing/formalization/schemas/UnifiedPFSchema.d.cts +222 -166
  151. package/financing/formalization/schemas/UnifiedPFSchema.d.ts +222 -166
  152. package/financing/formalization/schemas/UnifiedPFSchema.js +114 -43
  153. package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
  154. package/financing/formalization/schemas/UnifiedPJSchema.d.cts +258 -266
  155. package/financing/formalization/schemas/UnifiedPJSchema.d.ts +258 -266
  156. package/financing/formalization/schemas/UnifiedPJSchema.js +51 -32
  157. package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
  158. package/index.d.cts +1 -1
  159. package/index.d.ts +1 -1
  160. package/index.js +485 -154
  161. package/index.mjs +33 -33
  162. package/package.json +1 -1
  163. package/chunk-52KJIJBF.mjs +0 -45
  164. package/chunk-A2TV7TRP.mjs +0 -6
  165. package/chunk-KKGV43J4.mjs +0 -250
@@ -1,4 +1,4 @@
1
- import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-HBTFOSJU.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: textField(2),
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: textField(2),
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-A2TV7TRP.mjs';
2
- import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var btgPfObject = z.object({
@@ -17,7 +17,7 @@ var btgPfObject = z.object({
17
17
  energy_account_in_requester_name: textField(),
18
18
  city: textField(),
19
19
  energy_bill_owner_document: cpfCnpjSchema.optional(),
20
- state: textField(2),
20
+ state: UfEnum,
21
21
  nationality: textField(),
22
22
  cellphone: phoneBRSchema,
23
23
  email: emailSchema,
@@ -1,5 +1,5 @@
1
- import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
2
- import { formalizationExtras, currencySchema, dateDMYSchema, issueDateSchema, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, cnpjSchema, applyPjRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { formalizationExtras, UfEnum, currencySchema, dateDMYSchema, issueDateSchema, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, cnpjSchema, applyPjRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var btgPjObject = z.object({
@@ -18,7 +18,7 @@ var btgPjObject = z.object({
18
18
  legal_nature: textField(),
19
19
  city: textField(),
20
20
  economic_activity_group: textField(),
21
- state: textField(2),
21
+ state: UfEnum,
22
22
  economic_activity: textField(),
23
23
  monthly_income: currencySchema
24
24
  }).strict(),
@@ -37,19 +37,19 @@ var btgPjObject = z.object({
37
37
  district: textField(),
38
38
  sex: SexEnum,
39
39
  city: textField(),
40
- state: textField(2),
40
+ state: UfEnum,
41
41
  civil_status: textField(),
42
42
  office: textField(),
43
43
  type_doc: DocumentTypeEnum,
44
44
  doc: textField(),
45
45
  issuing_body: textField(),
46
- uf_issuing_body: textField(2),
46
+ uf_issuing_body: UfEnum,
47
47
  doc_issue_date: issueDateSchema,
48
48
  doc_expiration_date: dateDMYSchema,
49
49
  mother_name: textField(),
50
50
  monthly_income: currencySchema,
51
51
  patrimony: currencySchema,
52
- uf_naturalness: textField(2),
52
+ uf_naturalness: UfEnum,
53
53
  nationality: textField()
54
54
  }).strict()
55
55
  )
@@ -1,5 +1,5 @@
1
- import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
2
- import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var losangoPfObject = z.object({
@@ -17,7 +17,7 @@ var losangoPfObject = z.object({
17
17
  energy_account_in_requester_name: textField(),
18
18
  city: textField(),
19
19
  energy_bill_owner_document: cpfCnpjSchema.optional(),
20
- state: textField(2),
20
+ state: UfEnum,
21
21
  nationality: textField(),
22
22
  cellphone: phoneBRSchema,
23
23
  email: emailSchema,
@@ -1,5 +1,5 @@
1
- import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
2
- import { issueDateSchema, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { issueDateSchema, UfEnum, currencySchema, numberField, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, integerField, cpfSchema, cepSchema, formalizationExtras, textField, cnpjSchema, cpfCnpjSchema, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var bvPfObject = z.object({
@@ -21,9 +21,9 @@ var bvPfObject = z.object({
21
21
  city: textField(),
22
22
  energy_bill_owner_document: cpfCnpjSchema.optional(),
23
23
  civil_status: textField(),
24
- state: textField(2),
24
+ state: UfEnum,
25
25
  nationality: textField(),
26
- uf_naturalness: textField(2),
26
+ uf_naturalness: UfEnum,
27
27
  naturalness: textField(),
28
28
  cellphone: phoneBRSchema,
29
29
  email: emailSchema,
@@ -36,7 +36,7 @@ var bvPfObject = z.object({
36
36
  type_doc: DocumentTypeEnum,
37
37
  doc: textField(15),
38
38
  issuing_body: textField(6),
39
- emitting_state: textField(2),
39
+ emitting_state: UfEnum,
40
40
  doc_issue_date: issueDateSchema,
41
41
  pep_relationship: textField().optional()
42
42
  });
@@ -1,4 +1,4 @@
1
- import { formalizationExtras, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { formalizationExtras, UfEnum, SexEnum, emailSchema, phoneBRSchema, birthDateSchema, cpfSchema, cepSchema, textField, currencySchema, cnpjSchema, issueDateSchema, applyPjRefinements } from './chunk-HBTFOSJU.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  var bancoDoBrasilPjObject = z.object({
@@ -17,7 +17,7 @@ var bancoDoBrasilPjObject = z.object({
17
17
  legal_nature: textField(),
18
18
  city: textField(),
19
19
  economic_activity_group: textField(),
20
- state: textField(2),
20
+ state: UfEnum,
21
21
  economic_activity: textField(),
22
22
  monthly_income: currencySchema
23
23
  }).strict(),
@@ -35,7 +35,7 @@ var bancoDoBrasilPjObject = z.object({
35
35
  district: textField(),
36
36
  sex: SexEnum,
37
37
  city: textField(),
38
- state: textField(2),
38
+ state: UfEnum,
39
39
  office: textField(),
40
40
  mother_name: textField(),
41
41
  nationality: textField()
@@ -0,0 +1,438 @@
1
+ import { santanderPfObject, santanderPfSchema } from './chunk-UUWULEKH.mjs';
2
+ import { santanderPjObject, santanderPjSchema } from './chunk-RYJSCFSY.mjs';
3
+ import { solAgoraPfObject, solAgoraPfSchema } from './chunk-H54QBCSW.mjs';
4
+ import { solAgoraPjObject, solAgoraPjSchema } from './chunk-R6CEKWRQ.mjs';
5
+ import { solfacilPfObject, solfacilPfSchema } from './chunk-F27U6CXB.mjs';
6
+ import { solfacilPjObject, solfacilPjSchema } from './chunk-Z2TTZ3JJ.mjs';
7
+ import { CommunionRegimeLabels, CivilStatusLabels, YesOrNoLabels, NatureOfOccupationTypeLabels, ResidenceTypeLabels, unifiedPfSchema, unifiedPfObject } from './chunk-D2ZUTYWA.mjs';
8
+ import { unifiedPjSchema, unifiedPjObject } from './chunk-NCTEG6EL.mjs';
9
+ import { eosPfObject, eosPfSchema } from './chunk-OVANLPKX.mjs';
10
+ import { eosPjObject, eosPjSchema } from './chunk-UMP5UF3U.mjs';
11
+ import { hdtEnergyPfObject, hdtEnergyPfSchema } from './chunk-7MWUETLP.mjs';
12
+ import { hdtEnergyPjObject, hdtEnergyPjSchema } from './chunk-FRMGP3C3.mjs';
13
+ import { losangoPfObject, losangoPfSchema } from './chunk-53GXILC6.mjs';
14
+ import { losangoPjObject, losangoPjSchema } from './chunk-FPJKWVVF.mjs';
15
+ import { safraPfObject, safraPfSchema } from './chunk-G5SKXDYM.mjs';
16
+ import { safraPjObject, safraPjSchema } from './chunk-2END6TYT.mjs';
17
+ import { bvPfObject, bvPfSchema } from './chunk-5C4YMHXV.mjs';
18
+ import { bvPjObject, bvPjSchema } from './chunk-IWSDOFBY.mjs';
19
+ import { caixaEconomicaFederalPfObject, caixaEconomicaFederalPfSchema } from './chunk-7ZF45QUN.mjs';
20
+ import { caixaEconomicaFederalPjObject, caixaEconomicaFederalPjSchema } from './chunk-UU3MRKTH.mjs';
21
+ import { cashMePfObject, cashMePfSchema } from './chunk-GQ5G2YX4.mjs';
22
+ import { cashMePjObject, cashMePjSchema } from './chunk-VO573WIK.mjs';
23
+ import { credito77PfObject, credito77PfSchema } from './chunk-L4EWOROT.mjs';
24
+ import { credito77PjObject, credito77PjSchema } from './chunk-YIUJVGT4.mjs';
25
+ import { alfaPfObject, alfaPfSchema } from './chunk-N2IX5TRK.mjs';
26
+ import { alfaPjObject, alfaPjSchema } from './chunk-WTHEEPBE.mjs';
27
+ import { bancoDoBrasilPfObject, bancoDoBrasilPfSchema } from './chunk-OARPUXXM.mjs';
28
+ import { bancoDoBrasilPjObject, bancoDoBrasilPjSchema } from './chunk-6PH42V5T.mjs';
29
+ import { btgPfObject, btgPfSchema } from './chunk-3OIG2FI5.mjs';
30
+ import { btgPjObject, btgPjSchema } from './chunk-4XJZIRLT.mjs';
31
+ import { DocumentTypeLabels } from './chunk-7I2LXGA2.mjs';
32
+ import { UfLabels, SexLabels, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
33
+ import { z } from 'zod';
34
+
35
+ // src/shared/enums/nationality.ts
36
+ var NATIONALITY_BRAZIL = "brasil";
37
+ var BANK_SLUGS = [
38
+ "credito77",
39
+ "losango",
40
+ "santander",
41
+ "btg",
42
+ "bv",
43
+ "banco-do-brasil",
44
+ "caixa-economica-federal",
45
+ "alfa",
46
+ "safra",
47
+ "cash_me_",
48
+ "hdt_energy",
49
+ "solfacil",
50
+ "sol_agora",
51
+ "eos"
52
+ ];
53
+ var BankEnum = z.enum(BANK_SLUGS);
54
+
55
+ // src/domains/financing/formalization/optionLabels.ts
56
+ var FORMALIZATION_OPTION_LABELS = {
57
+ sex: SexLabels,
58
+ type_doc: DocumentTypeLabels,
59
+ partner_type_doc: DocumentTypeLabels,
60
+ residence_situation: ResidenceTypeLabels,
61
+ nature_of_occupation: NatureOfOccupationTypeLabels,
62
+ pep_relationship: YesOrNoLabels,
63
+ civil_status: CivilStatusLabels,
64
+ communion_regime: CommunionRegimeLabels,
65
+ state: UfLabels,
66
+ uf_naturalness: UfLabels,
67
+ emitting_state: UfLabels,
68
+ uf_issuing_body: UfLabels,
69
+ doc_issuance_uf: UfLabels
70
+ };
71
+ function getFieldOptions(field) {
72
+ const labels = FORMALIZATION_OPTION_LABELS[field];
73
+ if (!labels) {
74
+ return [];
75
+ }
76
+ return Object.entries(labels).map(([value, label]) => ({ value, label }));
77
+ }
78
+
79
+ // src/domains/financing/formalization/registry.ts
80
+ var UNIFIED_SLUG = "unified";
81
+ var unifiedSchemaByPerson = {
82
+ pf: unifiedPfSchema,
83
+ pj: unifiedPjSchema
84
+ };
85
+ var unifiedBaseSchemaByPerson = {
86
+ pf: unifiedPfObject,
87
+ pj: unifiedPjObject
88
+ };
89
+ var pfSchemaRegistry = {
90
+ credito77: credito77PfSchema,
91
+ losango: losangoPfSchema,
92
+ santander: santanderPfSchema,
93
+ btg: btgPfSchema,
94
+ bv: bvPfSchema,
95
+ "banco-do-brasil": bancoDoBrasilPfSchema,
96
+ "caixa-economica-federal": caixaEconomicaFederalPfSchema,
97
+ alfa: alfaPfSchema,
98
+ safra: safraPfSchema,
99
+ cash_me_: cashMePfSchema,
100
+ hdt_energy: hdtEnergyPfSchema,
101
+ solfacil: solfacilPfSchema,
102
+ sol_agora: solAgoraPfSchema,
103
+ eos: eosPfSchema
104
+ };
105
+ var pjSchemaRegistry = {
106
+ credito77: credito77PjSchema,
107
+ losango: losangoPjSchema,
108
+ santander: santanderPjSchema,
109
+ btg: btgPjSchema,
110
+ bv: bvPjSchema,
111
+ "banco-do-brasil": bancoDoBrasilPjSchema,
112
+ "caixa-economica-federal": caixaEconomicaFederalPjSchema,
113
+ alfa: alfaPjSchema,
114
+ safra: safraPjSchema,
115
+ cash_me_: cashMePjSchema,
116
+ hdt_energy: hdtEnergyPjSchema,
117
+ solfacil: solfacilPjSchema,
118
+ sol_agora: solAgoraPjSchema,
119
+ eos: eosPjSchema
120
+ };
121
+ var pfBaseSchemaRegistry = {
122
+ credito77: credito77PfObject,
123
+ losango: losangoPfObject,
124
+ santander: santanderPfObject,
125
+ btg: btgPfObject,
126
+ bv: bvPfObject,
127
+ "banco-do-brasil": bancoDoBrasilPfObject,
128
+ "caixa-economica-federal": caixaEconomicaFederalPfObject,
129
+ alfa: alfaPfObject,
130
+ safra: safraPfObject,
131
+ cash_me_: cashMePfObject,
132
+ hdt_energy: hdtEnergyPfObject,
133
+ solfacil: solfacilPfObject,
134
+ sol_agora: solAgoraPfObject,
135
+ eos: eosPfObject
136
+ };
137
+ var pjBaseSchemaRegistry = {
138
+ credito77: credito77PjObject,
139
+ losango: losangoPjObject,
140
+ santander: santanderPjObject,
141
+ btg: btgPjObject,
142
+ bv: bvPjObject,
143
+ "banco-do-brasil": bancoDoBrasilPjObject,
144
+ "caixa-economica-federal": caixaEconomicaFederalPjObject,
145
+ alfa: alfaPjObject,
146
+ safra: safraPjObject,
147
+ cash_me_: cashMePjObject,
148
+ hdt_energy: hdtEnergyPjObject,
149
+ solfacil: solfacilPjObject,
150
+ sol_agora: solAgoraPjObject,
151
+ eos: eosPjObject
152
+ };
153
+ var CREDITO77_PRESTAMISTA_FIELDS = {
154
+ doc: true,
155
+ issuing_body: true,
156
+ doc_issue_date: true,
157
+ sex: true
158
+ };
159
+ function isCredito77WithoutPrestamista(bank, person, options) {
160
+ return bank === "credito77" && person === "pf" && !options.prestamistaIncluso;
161
+ }
162
+ function getFormalizationSchema(bank, person, options = {}) {
163
+ if (bank === UNIFIED_SLUG) {
164
+ return unifiedSchemaByPerson[person];
165
+ }
166
+ if (isCredito77WithoutPrestamista(bank, person, options)) {
167
+ return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS).strict().superRefine(applyPfRefinements);
168
+ }
169
+ return person === "pf" ? pfSchemaRegistry[bank] : pjSchemaRegistry[bank];
170
+ }
171
+ function getFormalizationBaseSchema(bank, person, options = {}) {
172
+ if (bank === UNIFIED_SLUG) {
173
+ return unifiedBaseSchemaByPerson[person];
174
+ }
175
+ if (isCredito77WithoutPrestamista(bank, person, options)) {
176
+ return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS);
177
+ }
178
+ return person === "pf" ? pfBaseSchemaRegistry[bank] : pjBaseSchemaRegistry[bank];
179
+ }
180
+
181
+ // src/domains/financing/formalization/uiMeta.ts
182
+ var FORMALIZATION_FIELD_META = {
183
+ voucher_local_installation_address: {
184
+ kind: "file",
185
+ label: "Comprovante de endere\xE7o da instala\xE7\xE3o",
186
+ step: 1
187
+ },
188
+ energy_account_in_requester_name: {
189
+ kind: "select",
190
+ label: "Conta em nome de terceiro?",
191
+ step: 1,
192
+ placeholder: "Selecione uma op\xE7\xE3o"
193
+ },
194
+ proof_kinship: {
195
+ kind: "file",
196
+ label: "Documento de v\xEDnculo com o titular",
197
+ step: 1
198
+ },
199
+ type_doc: {
200
+ kind: "select",
201
+ label: "Tipo de documento",
202
+ step: 3,
203
+ placeholder: "Selecione uma op\xE7\xE3o"
204
+ },
205
+ document_front_upload: {
206
+ kind: "file",
207
+ label: "Documento de identidade (frente)",
208
+ step: 2
209
+ },
210
+ document_back_upload: {
211
+ kind: "file",
212
+ label: "Documento de identidade (verso)",
213
+ step: 2
214
+ },
215
+ name: {
216
+ kind: "text",
217
+ label: "Nome",
218
+ step: 3,
219
+ placeholder: "Digite o nome completo"
220
+ },
221
+ cpf: { kind: "cpf", label: "CPF", step: 3, placeholder: "Digite o CPF" },
222
+ birth_date: {
223
+ kind: "date",
224
+ label: "Data de nascimento",
225
+ step: 3,
226
+ placeholder: "Digite a data de nascimento"
227
+ },
228
+ nationality: {
229
+ kind: "select",
230
+ label: "Nacionalidade",
231
+ step: 3,
232
+ placeholder: "Selecione uma op\xE7\xE3o"
233
+ },
234
+ doc: {
235
+ kind: "text",
236
+ label: "N\xFAmero do documento",
237
+ step: 3,
238
+ placeholder: "Digite o n\xFAmero do documento"
239
+ },
240
+ issuing_body: {
241
+ kind: "text",
242
+ label: "\xD3rg\xE3o emissor",
243
+ step: 3,
244
+ placeholder: "Digite o \xF3rg\xE3o emissor"
245
+ },
246
+ emitting_state: {
247
+ kind: "select",
248
+ label: "UF emissor",
249
+ step: 3,
250
+ placeholder: "Digite a UF do emissor"
251
+ },
252
+ doc_issue_date: {
253
+ kind: "date",
254
+ label: "Data de expedi\xE7\xE3o",
255
+ step: 3,
256
+ placeholder: "Digite a data de expedi\xE7\xE3o"
257
+ },
258
+ email: {
259
+ kind: "email",
260
+ label: "E-mail",
261
+ step: 3,
262
+ placeholder: "Digite o e-mail"
263
+ },
264
+ cellphone: {
265
+ kind: "phone",
266
+ label: "Celular",
267
+ step: 3,
268
+ placeholder: "Digite o celular"
269
+ },
270
+ monthly_income: {
271
+ kind: "currency",
272
+ label: "Renda mensal",
273
+ step: 3
274
+ },
275
+ mother_name: {
276
+ kind: "text",
277
+ label: "Nome da m\xE3e",
278
+ step: 3,
279
+ placeholder: "Digite o nome da m\xE3e"
280
+ },
281
+ // naturalness: {
282
+ // kind: 'text',
283
+ // label: 'Naturalidade',
284
+ // step: 3,
285
+ // placeholder: 'Selecione uma opção',
286
+ // },
287
+ uf_naturalness: {
288
+ kind: "select",
289
+ label: "UF de naturalidade",
290
+ step: 3,
291
+ placeholder: "Selecione uma op\xE7\xE3o"
292
+ },
293
+ cep: { kind: "cep", label: "CEP", step: 3, placeholder: "Digite o CEP" },
294
+ address: {
295
+ kind: "text",
296
+ label: "Endere\xE7o",
297
+ step: 3,
298
+ placeholder: "Digite o endere\xE7o"
299
+ },
300
+ number: {
301
+ kind: "text",
302
+ label: "N\xFAmero",
303
+ step: 3,
304
+ placeholder: "Digite o n\xFAmero"
305
+ },
306
+ complement: {
307
+ kind: "text",
308
+ label: "Complemento",
309
+ step: 3,
310
+ placeholder: "Digite o complemento"
311
+ },
312
+ district: {
313
+ kind: "text",
314
+ label: "Bairro",
315
+ step: 3,
316
+ placeholder: "Digite o bairro"
317
+ },
318
+ state: {
319
+ kind: "select",
320
+ label: "Estado (UF)",
321
+ step: 3,
322
+ placeholder: "Selecione uma op\xE7\xE3o"
323
+ },
324
+ city: {
325
+ kind: "text",
326
+ label: "Cidade",
327
+ step: 3,
328
+ placeholder: "Informe a cidade"
329
+ },
330
+ sex: {
331
+ kind: "select",
332
+ label: "Sexo",
333
+ step: 4,
334
+ placeholder: "Selecione uma op\xE7\xE3o"
335
+ },
336
+ profession: {
337
+ kind: "select",
338
+ label: "Profiss\xE3o",
339
+ step: 4,
340
+ placeholder: "Selecione uma op\xE7\xE3o"
341
+ },
342
+ nature_of_occupation: {
343
+ kind: "select",
344
+ label: "Natureza da ocupa\xE7\xE3o",
345
+ step: 4,
346
+ placeholder: "Selecione uma op\xE7\xE3o"
347
+ },
348
+ cnpj_proprietary: {
349
+ kind: "cnpj",
350
+ label: "CNPJ do propriet\xE1rio",
351
+ step: 4,
352
+ placeholder: "Digite o CNPJ do propriet\xE1rio"
353
+ },
354
+ equity_value: { kind: "currency", label: "Patrim\xF4nio", step: 4 },
355
+ civil_status: {
356
+ kind: "select",
357
+ label: "Estado civil",
358
+ step: 4,
359
+ placeholder: "Selecione uma op\xE7\xE3o"
360
+ },
361
+ company_time: {
362
+ kind: "number",
363
+ label: "Tempo de empresa (meses)",
364
+ step: 4,
365
+ placeholder: "Digite o tempo de empresa em meses"
366
+ },
367
+ pep_relationship: {
368
+ kind: "select",
369
+ label: "Rela\xE7\xE3o com PEP",
370
+ step: 4,
371
+ placeholder: "Selecione uma op\xE7\xE3o"
372
+ },
373
+ residence_situation: {
374
+ kind: "select",
375
+ label: "Situa\xE7\xE3o da resid\xEAncia",
376
+ step: 4,
377
+ placeholder: "Selecione uma op\xE7\xE3o"
378
+ },
379
+ months_in_residence: {
380
+ kind: "integer",
381
+ label: "Tempo de resid\xEAncia (meses)",
382
+ step: 4,
383
+ placeholder: "Digite o tempo de resid\xEAncia em meses"
384
+ },
385
+ financing_company: { kind: "group", label: "Dados da empresa", step: 4 },
386
+ financing_company_guarantor: { kind: "array", label: "Avalistas", step: 4 },
387
+ financing_company_qsa: {
388
+ kind: "array",
389
+ label: "Quadro societ\xE1rio (QSA)",
390
+ step: 4,
391
+ placeholder: "Selecione uma op\xE7\xE3o"
392
+ },
393
+ social_name: { kind: "text", label: "Nome social", step: 4 },
394
+ partner_name: { kind: "text", label: "Nome do c\xF4njuge", step: 4 },
395
+ partner_birth: {
396
+ kind: "date",
397
+ label: "Data de nascimento do c\xF4njuge",
398
+ step: 4,
399
+ placeholder: "Digite a data de nascimento do c\xF4njuge"
400
+ },
401
+ partner_type_doc: {
402
+ kind: "select",
403
+ label: "Tipo de documento do c\xF4njuge",
404
+ step: 4,
405
+ placeholder: "Selecione uma op\xE7\xE3o"
406
+ },
407
+ partner_doc: {
408
+ kind: "text",
409
+ label: "Documento do c\xF4njuge",
410
+ step: 4,
411
+ placeholder: "Digite o documento do c\xF4njuge"
412
+ },
413
+ partner_cpf: {
414
+ kind: "cpf",
415
+ label: "CPF do c\xF4njuge",
416
+ step: 4,
417
+ placeholder: "Digite o CPF do c\xF4njuge"
418
+ },
419
+ partner_city: {
420
+ kind: "text",
421
+ label: "Cidade do c\xF4njuge",
422
+ step: 4,
423
+ placeholder: "Digite a cidade do c\xF4njuge"
424
+ },
425
+ communion_regime: {
426
+ kind: "select",
427
+ label: "Regime de comunh\xE3o",
428
+ step: 4,
429
+ placeholder: "Selecione uma op\xE7\xE3o"
430
+ },
431
+ rd_re_insurance_toggle: {
432
+ kind: "toggle",
433
+ label: "Seguro prestamista (RD/RE)",
434
+ step: 4
435
+ }
436
+ };
437
+
438
+ export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, NATIONALITY_BRAZIL, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry };
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+
3
+ // src/shared/enums/document-type.ts
4
+ var DocumentTypeEnum = z.enum([
5
+ "documento_de_identidade",
6
+ "carteira_nacional_de_habilita\xE7\xE3o"
7
+ ]);
8
+ var DocumentTypeLabels = {
9
+ documento_de_identidade: "Documento de identidade (RG)",
10
+ carteira_nacional_de_habilita\u00E7\u00E3o: "Carteira Nacional de Habilita\xE7\xE3o (CNH)"
11
+ };
12
+
13
+ export { DocumentTypeEnum, DocumentTypeLabels };
@@ -1,5 +1,5 @@
1
- import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
2
- import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var hdtEnergyPfObject = z.object({
@@ -17,7 +17,7 @@ var hdtEnergyPfObject = z.object({
17
17
  energy_account_in_requester_name: textField(),
18
18
  city: textField(),
19
19
  energy_bill_owner_document: cpfCnpjSchema.optional(),
20
- state: textField(2),
20
+ state: UfEnum,
21
21
  nationality: textField(),
22
22
  cellphone: phoneBRSchema,
23
23
  email: emailSchema,
@@ -1,5 +1,5 @@
1
- import { DocumentTypeEnum } from './chunk-A2TV7TRP.mjs';
2
- import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-NDJRJOFE.mjs';
1
+ import { DocumentTypeEnum } from './chunk-7I2LXGA2.mjs';
2
+ import { issueDateSchema, currencySchema, emailSchema, phoneBRSchema, UfEnum, SexEnum, birthDateSchema, cpfSchema, cepSchema, formalizationExtras, textField, cpfCnpjSchema, applyPfRefinements } from './chunk-HBTFOSJU.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var caixaEconomicaFederalPfObject = z.object({
@@ -17,7 +17,7 @@ var caixaEconomicaFederalPfObject = z.object({
17
17
  energy_account_in_requester_name: textField(),
18
18
  city: textField(),
19
19
  energy_bill_owner_document: cpfCnpjSchema.optional(),
20
- state: textField(2),
20
+ state: UfEnum,
21
21
  nationality: textField(),
22
22
  cellphone: phoneBRSchema,
23
23
  email: emailSchema,