@77sol-lab/form-schemas 1.2.0 → 1.4.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 (164) hide show
  1. package/{chunk-GCYI6OFG.mjs → chunk-2NFFUOYG.mjs} +1 -1
  2. package/{chunk-MWPQSGDD.mjs → chunk-2VGGCJ2O.mjs} +1 -1
  3. package/{chunk-B7RDVG4R.mjs → chunk-36ZWNLRE.mjs} +2 -2
  4. package/{chunk-TEL6EWAJ.mjs → chunk-3LKC3OJJ.mjs} +1 -1
  5. package/{chunk-XUMC3TQU.mjs → chunk-3QVWHHHF.mjs} +1 -1
  6. package/chunk-7I2LXGA2.mjs +13 -0
  7. package/{chunk-KXEEZLMR.mjs → chunk-A5ZODVEU.mjs} +2 -2
  8. package/{chunk-NL4VK2TF.mjs → chunk-AXXSWRN2.mjs} +2 -2
  9. package/{chunk-2TGZGHS3.mjs → chunk-BCQD5NJB.mjs} +2 -2
  10. package/{chunk-FVIOZ4Q5.mjs → chunk-BPWVGI53.mjs} +2 -2
  11. package/{chunk-TUYULPDF.mjs → chunk-BTHGPT5U.mjs} +1 -1
  12. package/{chunk-RMWCQ6YU.mjs → chunk-BZ4V4AAJ.mjs} +2 -2
  13. package/{chunk-G3T562PC.mjs → chunk-DIARPLFL.mjs} +1 -1
  14. package/{chunk-EFLW2FHX.mjs → chunk-DWXCA5I6.mjs} +1 -1
  15. package/{chunk-FISPUQLP.mjs → chunk-ENVJMMCX.mjs} +2 -2
  16. package/chunk-HK7VVKRF.mjs +105 -0
  17. package/chunk-LZCHOENM.mjs +433 -0
  18. package/{chunk-ORO6OVTB.mjs → chunk-MUFER7FT.mjs} +2 -2
  19. package/{chunk-W3CNJVMM.mjs → chunk-PP5WJMGB.mjs} +2 -2
  20. package/{chunk-6BD6V7EB.mjs → chunk-PYKWBM67.mjs} +1 -1
  21. package/{chunk-TCPW5MUT.mjs → chunk-PZG2YKS4.mjs} +2 -2
  22. package/{chunk-HKY6D6J5.mjs → chunk-QBQDE5Y7.mjs} +2 -2
  23. package/{chunk-TE64VI3I.mjs → chunk-QH5BHXWK.mjs} +1 -1
  24. package/{chunk-7LHQ27CS.mjs → chunk-QZR62OU5.mjs} +2 -2
  25. package/{chunk-36GQASLI.mjs → chunk-RFML2PIV.mjs} +1 -1
  26. package/{chunk-NDJRJOFE.mjs → chunk-SKFIWDPV.mjs} +47 -33
  27. package/chunk-TIB6TEME.mjs +109 -0
  28. package/{chunk-UHMVAJYK.mjs → chunk-UHQAHHAO.mjs} +2 -2
  29. package/{chunk-TTHE6D3Y.mjs → chunk-VMIR7MGU.mjs} +2 -2
  30. package/{chunk-CY2EXD6C.mjs → chunk-X3M274QY.mjs} +2 -2
  31. package/{chunk-SBOQWT53.mjs → chunk-XXID67A4.mjs} +2 -2
  32. package/{chunk-22ZUS7K3.mjs → chunk-XZSZRCO2.mjs} +1 -1
  33. package/{chunk-WHVCW22E.mjs → chunk-YZ3YYQEI.mjs} +2 -2
  34. package/financing/formalization/index.d.cts +2978 -1853
  35. package/financing/formalization/index.d.ts +2978 -1853
  36. package/financing/formalization/index.js +511 -85
  37. package/financing/formalization/index.mjs +33 -31
  38. package/financing/formalization/schemas/AlfaPFSchema.d.cts +42 -50
  39. package/financing/formalization/schemas/AlfaPFSchema.d.ts +42 -50
  40. package/financing/formalization/schemas/AlfaPFSchema.js +45 -34
  41. package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
  42. package/financing/formalization/schemas/AlfaPJSchema.d.cts +36 -44
  43. package/financing/formalization/schemas/AlfaPJSchema.d.ts +36 -44
  44. package/financing/formalization/schemas/AlfaPJSchema.js +9 -22
  45. package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
  46. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +42 -50
  47. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +42 -50
  48. package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +45 -34
  49. package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
  50. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +36 -44
  51. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +36 -44
  52. package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +9 -22
  53. package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
  54. package/financing/formalization/schemas/BtgPFSchema.d.cts +42 -50
  55. package/financing/formalization/schemas/BtgPFSchema.d.ts +42 -50
  56. package/financing/formalization/schemas/BtgPFSchema.js +45 -34
  57. package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
  58. package/financing/formalization/schemas/BtgPJSchema.d.cts +58 -66
  59. package/financing/formalization/schemas/BtgPJSchema.d.ts +58 -66
  60. package/financing/formalization/schemas/BtgPJSchema.js +13 -23
  61. package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
  62. package/financing/formalization/schemas/BvPFSchema.d.cts +60 -68
  63. package/financing/formalization/schemas/BvPFSchema.d.ts +60 -68
  64. package/financing/formalization/schemas/BvPFSchema.js +45 -34
  65. package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
  66. package/financing/formalization/schemas/BvPJSchema.d.cts +88 -96
  67. package/financing/formalization/schemas/BvPJSchema.d.ts +88 -96
  68. package/financing/formalization/schemas/BvPJSchema.js +13 -23
  69. package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
  70. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +42 -50
  71. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +42 -50
  72. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +45 -34
  73. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
  74. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +36 -44
  75. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +36 -44
  76. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +9 -22
  77. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
  78. package/financing/formalization/schemas/CashMePFSchema.d.cts +42 -50
  79. package/financing/formalization/schemas/CashMePFSchema.d.ts +42 -50
  80. package/financing/formalization/schemas/CashMePFSchema.js +45 -34
  81. package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
  82. package/financing/formalization/schemas/CashMePJSchema.d.cts +36 -44
  83. package/financing/formalization/schemas/CashMePJSchema.d.ts +36 -44
  84. package/financing/formalization/schemas/CashMePJSchema.js +9 -22
  85. package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
  86. package/financing/formalization/schemas/Credito77PFSchema.d.cts +42 -50
  87. package/financing/formalization/schemas/Credito77PFSchema.d.ts +42 -50
  88. package/financing/formalization/schemas/Credito77PFSchema.js +45 -34
  89. package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
  90. package/financing/formalization/schemas/Credito77PJSchema.d.cts +36 -44
  91. package/financing/formalization/schemas/Credito77PJSchema.d.ts +36 -44
  92. package/financing/formalization/schemas/Credito77PJSchema.js +9 -22
  93. package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
  94. package/financing/formalization/schemas/EosPFSchema.d.cts +42 -50
  95. package/financing/formalization/schemas/EosPFSchema.d.ts +42 -50
  96. package/financing/formalization/schemas/EosPFSchema.js +45 -34
  97. package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
  98. package/financing/formalization/schemas/EosPJSchema.d.cts +36 -44
  99. package/financing/formalization/schemas/EosPJSchema.d.ts +36 -44
  100. package/financing/formalization/schemas/EosPJSchema.js +9 -22
  101. package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
  102. package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +42 -50
  103. package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +42 -50
  104. package/financing/formalization/schemas/HdtEnergyPFSchema.js +45 -34
  105. package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
  106. package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +36 -44
  107. package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +36 -44
  108. package/financing/formalization/schemas/HdtEnergyPJSchema.js +9 -22
  109. package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
  110. package/financing/formalization/schemas/LosangoPFSchema.d.cts +42 -50
  111. package/financing/formalization/schemas/LosangoPFSchema.d.ts +42 -50
  112. package/financing/formalization/schemas/LosangoPFSchema.js +45 -34
  113. package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
  114. package/financing/formalization/schemas/LosangoPJSchema.d.cts +36 -44
  115. package/financing/formalization/schemas/LosangoPJSchema.d.ts +36 -44
  116. package/financing/formalization/schemas/LosangoPJSchema.js +9 -22
  117. package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
  118. package/financing/formalization/schemas/SafraPFSchema.d.cts +42 -50
  119. package/financing/formalization/schemas/SafraPFSchema.d.ts +42 -50
  120. package/financing/formalization/schemas/SafraPFSchema.js +45 -34
  121. package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
  122. package/financing/formalization/schemas/SafraPJSchema.d.cts +36 -44
  123. package/financing/formalization/schemas/SafraPJSchema.d.ts +36 -44
  124. package/financing/formalization/schemas/SafraPJSchema.js +9 -22
  125. package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
  126. package/financing/formalization/schemas/SantanderPFSchema.d.cts +42 -50
  127. package/financing/formalization/schemas/SantanderPFSchema.d.ts +42 -50
  128. package/financing/formalization/schemas/SantanderPFSchema.js +45 -34
  129. package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
  130. package/financing/formalization/schemas/SantanderPJSchema.d.cts +36 -44
  131. package/financing/formalization/schemas/SantanderPJSchema.d.ts +36 -44
  132. package/financing/formalization/schemas/SantanderPJSchema.js +9 -22
  133. package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
  134. package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +42 -50
  135. package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +42 -50
  136. package/financing/formalization/schemas/SolAgoraPFSchema.js +45 -34
  137. package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
  138. package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +58 -66
  139. package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +58 -66
  140. package/financing/formalization/schemas/SolAgoraPJSchema.js +13 -23
  141. package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
  142. package/financing/formalization/schemas/SolfacilPFSchema.d.cts +42 -50
  143. package/financing/formalization/schemas/SolfacilPFSchema.d.ts +42 -50
  144. package/financing/formalization/schemas/SolfacilPFSchema.js +45 -34
  145. package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
  146. package/financing/formalization/schemas/SolfacilPJSchema.d.cts +46 -54
  147. package/financing/formalization/schemas/SolfacilPJSchema.d.ts +46 -54
  148. package/financing/formalization/schemas/SolfacilPJSchema.js +9 -22
  149. package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
  150. package/financing/formalization/schemas/UnifiedPFSchema.d.cts +591 -0
  151. package/financing/formalization/schemas/UnifiedPFSchema.d.ts +591 -0
  152. package/financing/formalization/schemas/UnifiedPFSchema.js +290 -0
  153. package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -0
  154. package/financing/formalization/schemas/UnifiedPJSchema.d.cts +1327 -0
  155. package/financing/formalization/schemas/UnifiedPJSchema.d.ts +1327 -0
  156. package/financing/formalization/schemas/UnifiedPJSchema.js +258 -0
  157. package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -0
  158. package/index.d.cts +3 -1
  159. package/index.d.ts +3 -1
  160. package/index.js +511 -85
  161. package/index.mjs +33 -31
  162. package/package.json +1 -1
  163. package/chunk-A2TV7TRP.mjs +0 -6
  164. package/chunk-X4DDGGAB.mjs +0 -233
package/index.js CHANGED
@@ -2,12 +2,77 @@
2
2
 
3
3
  var zod = require('zod');
4
4
 
5
- // src/shared/enums/document-type.ts
6
- var DocumentTypeEnum = zod.z.enum(["rg", "cnh", "rne"]);
5
+ // src/shared/enums/civil-status.ts
6
+ var CivilStatusEnum = zod.z.enum([
7
+ "solteiro",
8
+ "casado",
9
+ "divorciado",
10
+ "viuvo",
11
+ "separado_judicialmente",
12
+ "companheiro"
13
+ ]);
14
+ var CivilStatusLabels = {
15
+ solteiro: "Solteiro(a)",
16
+ casado: "Casado(a)",
17
+ divorciado: "Divorciado(a)",
18
+ viuvo: "Vi\xFAvo(a)",
19
+ separado_judicialmente: "Separado(a) judicialmente",
20
+ companheiro: "Companheiro(a)"
21
+ };
22
+ var CommunionRegimeEnum = zod.z.enum([
23
+ "comunhao_parcial",
24
+ "comunhao_universal",
25
+ "separacao_total",
26
+ "participacao_final_aquestos"
27
+ ]);
28
+ var CommunionRegimeLabels = {
29
+ comunhao_parcial: "Comunh\xE3o parcial de bens",
30
+ comunhao_universal: "Comunh\xE3o universal de bens",
31
+ separacao_total: "Separa\xE7\xE3o total de bens",
32
+ participacao_final_aquestos: "Participa\xE7\xE3o final nos aquestos"
33
+ };
34
+ var DocumentTypeEnum = zod.z.enum([
35
+ "documento_de_identidade",
36
+ "carteira_nacional_de_habilita\xE7\xE3o"
37
+ ]);
38
+ var DocumentTypeLabels = {
39
+ documento_de_identidade: "Documento de identidade (RG)",
40
+ carteira_nacional_de_habilita\u00E7\u00E3o: "Carteira Nacional de Habilita\xE7\xE3o (CNH)"
41
+ };
7
42
 
8
43
  // src/shared/enums/nationality.ts
9
44
  var NATIONALITY_BRAZIL = "brasil";
45
+ var NatureOfOccupationTypeEnum = zod.z.enum(["autonomo", "clt", "aposentado", "empresario"]);
46
+ var NatureOfOccupationTypeLabels = {
47
+ autonomo: "Aut\xF4nomo",
48
+ clt: "CLT",
49
+ aposentado: "Aposentado",
50
+ empresario: "Empres\xE1rio"
51
+ };
52
+ var ResidenceTypeEnum = zod.z.enum([
53
+ "proprio",
54
+ "familiar",
55
+ "alugado",
56
+ "proprio_financiado",
57
+ "cedido"
58
+ ]);
59
+ var ResidenceTypeLabels = {
60
+ proprio: "Pr\xF3prio",
61
+ familiar: "Familiar",
62
+ alugado: "Alugado",
63
+ proprio_financiado: "Pr\xF3prio financiado",
64
+ cedido: "Cedido"
65
+ };
10
66
  var SexEnum = zod.z.enum(["masculino", "feminino"]);
67
+ var SexLabels = {
68
+ masculino: "Masculino",
69
+ feminino: "Feminino"
70
+ };
71
+ var YesOrNoEnum = zod.z.enum(["sim", "nao"]);
72
+ var YesOrNoLabels = {
73
+ sim: "Sim",
74
+ nao: "N\xE3o"
75
+ };
11
76
  var BANK_SLUGS = [
12
77
  "credito77",
13
78
  "losango",
@@ -26,9 +91,40 @@ var BANK_SLUGS = [
26
91
  ];
27
92
  var BankEnum = zod.z.enum(BANK_SLUGS);
28
93
 
94
+ // src/domains/financing/enums/civil-status.ts
95
+ var CIVIL_STATUS_REQUIRING_PARTNER = ["casado"];
96
+ var PARTNER_FIELDS = [
97
+ "partner_name",
98
+ "partner_birth",
99
+ "partner_type_doc",
100
+ "partner_doc",
101
+ "partner_cpf",
102
+ "partner_city",
103
+ "communion_regime"
104
+ ];
105
+
29
106
  // src/domains/financing/enums/occupation.ts
30
107
  var OCCUPATIONS_REQUIRING_CNPJ = ["empresario", "empresario_ou_proprietario"];
31
108
 
109
+ // src/domains/financing/formalization/optionLabels.ts
110
+ var FORMALIZATION_OPTION_LABELS = {
111
+ sex: SexLabels,
112
+ type_doc: DocumentTypeLabels,
113
+ partner_type_doc: DocumentTypeLabels,
114
+ residence_situation: ResidenceTypeLabels,
115
+ nature_of_occupation: NatureOfOccupationTypeLabels,
116
+ pep_relationship: YesOrNoLabels,
117
+ civil_status: CivilStatusLabels,
118
+ communion_regime: CommunionRegimeLabels
119
+ };
120
+ function getFieldOptions(field) {
121
+ const labels = FORMALIZATION_OPTION_LABELS[field];
122
+ if (!labels) {
123
+ return [];
124
+ }
125
+ return Object.entries(labels).map(([value, label]) => ({ value, label }));
126
+ }
127
+
32
128
  // src/shared/regex/patterns.ts
33
129
  var PATTERNS = {
34
130
  cpf: /^\d{11}$/,
@@ -125,16 +221,16 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
125
221
  }
126
222
 
127
223
  // src/shared/regex/index.ts
128
- var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF deve ter 11 d\xEDgitos").refine(isValidCPF, "CPF inv\xE1lido");
129
- var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ deve ter 14 d\xEDgitos").refine(isValidCNPJ, "CNPJ inv\xE1lido");
224
+ var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
225
+ var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
130
226
  var cpfCnpjSchema = zod.z.string().transform(onlyDigits).refine(
131
227
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
132
228
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
133
229
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
134
- var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP deve ter 8 d\xEDgitos");
135
- var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone deve ter 11 d\xEDgitos com DDD");
230
+ var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
231
+ var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
136
232
  var emailSchema = zod.z.string().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
137
- var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data deve estar no formato DD/MM/AAAA").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
233
+ var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
138
234
  var birthDateSchema = dateDMYSchema.refine(
139
235
  (v) => isAdultDMY(v),
140
236
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -148,17 +244,36 @@ zod.z.number().int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28
148
244
 
149
245
  // src/domains/financing/formalization/refinements.ts
150
246
  var RG_MAX_EMISSION_YEARS = 10;
247
+ function applyPartnerRefinement(data, ctx) {
248
+ const civilStatus = data.civil_status;
249
+ const requiresPartner = typeof civilStatus === "string" && CIVIL_STATUS_REQUIRING_PARTNER.includes(civilStatus);
250
+ if (!requiresPartner) {
251
+ return;
252
+ }
253
+ for (const field of PARTNER_FIELDS) {
254
+ const value = data[field];
255
+ const isEmpty = value === void 0 || value === null || typeof value === "string" && value.trim().length === 0;
256
+ if (isEmpty) {
257
+ ctx.addIssue({
258
+ code: zod.z.ZodIssueCode.custom,
259
+ path: [field],
260
+ message: "Campo obrigat\xF3rio para o estado civil informado"
261
+ });
262
+ }
263
+ }
264
+ }
151
265
  function applyCommonRefinements(data, ctx) {
152
- if ("account_third_party" in data && typeof data.account_third_party === "string" && data.account_third_party !== "nao_se_aplica" && !data.bond_document_upload) {
266
+ if ("energy_account_in_requester_name" in data && typeof data.energy_account_in_requester_name === "string" && data.energy_account_in_requester_name !== "nao_aplica" && !data.proof_kinship) {
153
267
  ctx.addIssue({
154
268
  code: zod.z.ZodIssueCode.custom,
155
- path: ["bond_document_upload"],
269
+ path: ["proof_kinship"],
156
270
  message: "Documento de v\xEDnculo \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
157
271
  });
158
272
  }
159
273
  }
160
274
  function applyPfRefinements(data, ctx) {
161
275
  applyCommonRefinements(data, ctx);
276
+ applyPartnerRefinement(data, ctx);
162
277
  if ("nature_of_occupation" in data && typeof data.nature_of_occupation === "string" && OCCUPATIONS_REQUIRING_CNPJ.includes(data.nature_of_occupation) && !data.cnpj_proprietary) {
163
278
  ctx.addIssue({
164
279
  code: zod.z.ZodIssueCode.custom,
@@ -166,7 +281,7 @@ function applyPfRefinements(data, ctx) {
166
281
  message: "CNPJ do propriet\xE1rio \xE9 obrigat\xF3rio para esta ocupa\xE7\xE3o"
167
282
  });
168
283
  }
169
- if (data.type_doc === "rg" && typeof data.doc_issue_date === "string") {
284
+ if (data.type_doc === "documento_de_identidade" && typeof data.doc_issue_date === "string") {
170
285
  const years = yearsSinceDMY(data.doc_issue_date);
171
286
  if (years !== null && years > RG_MAX_EMISSION_YEARS) {
172
287
  ctx.addIssue({
@@ -176,13 +291,6 @@ function applyPfRefinements(data, ctx) {
176
291
  });
177
292
  }
178
293
  }
179
- if (typeof data.nationality === "string" && data.nationality.toLowerCase() !== NATIONALITY_BRAZIL && "type_doc" in data && data.type_doc !== "rne") {
180
- ctx.addIssue({
181
- code: zod.z.ZodIssueCode.custom,
182
- path: ["type_doc"],
183
- message: "Para nacionalidade estrangeira, o documento deve ser Registro de Estrangeiro (RNE)"
184
- });
185
- }
186
294
  }
187
295
  function applyPjRefinements(data, ctx) {
188
296
  applyCommonRefinements(data, ctx);
@@ -193,9 +301,6 @@ function textField(maxLength) {
193
301
  }
194
302
  var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
195
303
  var integerField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
196
- function selectField(values) {
197
- return zod.z.enum(values);
198
- }
199
304
  var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
200
305
  var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
201
306
  var fileUploadField = zod.z.object({
@@ -205,21 +310,11 @@ var fileUploadField = zod.z.object({
205
310
  }),
206
311
  sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
207
312
  });
208
- var THIRD_PARTY_OPTIONS = [
209
- "nao_se_aplica",
210
- "conjuge",
211
- "pai_mae",
212
- "filho_filha",
213
- "parente",
214
- "outro"
215
- ];
216
313
  var formalizationExtras = {
217
- energy_bill_upload: fileUploadField,
218
- account_third_party: selectField(THIRD_PARTY_OPTIONS),
219
- bond_document_upload: fileUploadField.optional(),
314
+ voucher_local_installation_address: fileUploadField,
315
+ proof_kinship: fileUploadField.optional(),
220
316
  document_front_upload: fileUploadField,
221
317
  document_back_upload: fileUploadField,
222
- // RN-014: seguro RD/RE começa ON.
223
318
  rd_re_insurance_toggle: zod.z.boolean().default(true)
224
319
  };
225
320
 
@@ -1245,8 +1340,163 @@ var solfacilPjObject = zod.z.object({
1245
1340
  )
1246
1341
  });
1247
1342
  var solfacilPjSchema = solfacilPjObject.strict().superRefine(applyPjRefinements);
1343
+ var unifiedPfObject = zod.z.object({
1344
+ name: textField(),
1345
+ cep: cepSchema,
1346
+ cpf: cpfSchema,
1347
+ address: textField(),
1348
+ birth_date: birthDateSchema,
1349
+ number: textField(),
1350
+ sex: SexEnum,
1351
+ complement: textField(15).optional(),
1352
+ mother_name: textField(),
1353
+ district: textField(),
1354
+ energy_account_in_requester_name: textField(),
1355
+ city: textField(),
1356
+ energy_bill_owner_document: cpfCnpjSchema.optional(),
1357
+ state: textField(2),
1358
+ nationality: textField(),
1359
+ cellphone: phoneBRSchema,
1360
+ email: emailSchema,
1361
+ monthly_income: currencySchema,
1362
+ profession: textField(),
1363
+ type_doc: DocumentTypeEnum,
1364
+ doc: textField(15),
1365
+ issuing_body: textField(6),
1366
+ doc_issue_date: issueDateSchema,
1367
+ residence_situation: ResidenceTypeEnum,
1368
+ months_in_residence: integerField.optional(),
1369
+ civil_status: CivilStatusEnum,
1370
+ uf_naturalness: textField(2).optional(),
1371
+ naturalness: textField().optional(),
1372
+ nature_of_occupation: NatureOfOccupationTypeEnum,
1373
+ company_time: numberField.optional(),
1374
+ cnpj_proprietary: cnpjSchema.optional(),
1375
+ equity_value: currencySchema.optional(),
1376
+ emitting_state: textField(2).optional(),
1377
+ pep_relationship: YesOrNoEnum,
1378
+ social_name: textField().optional(),
1379
+ partner_name: textField().optional(),
1380
+ partner_birth: dateDMYSchema.optional(),
1381
+ partner_type_doc: DocumentTypeEnum.optional(),
1382
+ partner_doc: textField().optional(),
1383
+ partner_cpf: cpfSchema.optional(),
1384
+ partner_city: textField().optional(),
1385
+ communion_regime: CommunionRegimeEnum.optional(),
1386
+ rural_area: textField(3).optional(),
1387
+ ...formalizationExtras
1388
+ });
1389
+ var unifiedPfSchema = unifiedPfObject.strict().superRefine(applyPfRefinements);
1390
+ var unifiedPjObject = zod.z.object({
1391
+ ...formalizationExtras,
1392
+ financing_company: zod.z.object({
1393
+ corporate_name: textField(),
1394
+ cnpj: cnpjSchema,
1395
+ foundation_date: issueDateSchema,
1396
+ address: textField(),
1397
+ number: textField(),
1398
+ email: emailSchema,
1399
+ complement: textField(15).optional(),
1400
+ phone: phoneBRSchema,
1401
+ district: textField(),
1402
+ legal_nature: textField(),
1403
+ city: textField(),
1404
+ state: textField(2),
1405
+ cep: cepSchema,
1406
+ economic_activity: textField().optional(),
1407
+ economic_activity_group: textField().optional(),
1408
+ monthly_income: currencySchema.optional(),
1409
+ residence_situation: textField().optional(),
1410
+ months_in_residence: integerField.optional(),
1411
+ capital_social: currencySchema.optional()
1412
+ }).strict(),
1413
+ financing_company_guarantor: zod.z.array(
1414
+ zod.z.object({
1415
+ name: textField(),
1416
+ cpf: cpfSchema,
1417
+ birth_date: birthDateSchema,
1418
+ address: textField(),
1419
+ number: textField(),
1420
+ cep: cepSchema,
1421
+ complement: textField(15).optional(),
1422
+ cellphone: phoneBRSchema,
1423
+ email: emailSchema,
1424
+ district: textField(),
1425
+ sex: SexEnum,
1426
+ city: textField(),
1427
+ state: textField(2),
1428
+ mother_name: textField(),
1429
+ nationality: textField(),
1430
+ office: textField().optional(),
1431
+ phone: phoneBRSchema.optional(),
1432
+ civil_status: textField().optional(),
1433
+ residence_situation: textField().optional(),
1434
+ months_in_residence: integerField.optional(),
1435
+ type_doc: DocumentTypeEnum.optional(),
1436
+ doc: textField().optional(),
1437
+ issuing_body: textField().optional(),
1438
+ uf_issuing_body: textField(2).optional(),
1439
+ doc_issue_date: issueDateSchema.optional(),
1440
+ doc_expiration_date: dateDMYSchema.optional(),
1441
+ monthly_income: currencySchema.optional(),
1442
+ patrimony: currencySchema.optional(),
1443
+ naturalness: textField().optional(),
1444
+ uf_naturalness: textField(2).optional(),
1445
+ pep_relationship: textField().optional(),
1446
+ entry_date: issueDateSchema.optional(),
1447
+ doc_issuance_uf: textField(2).optional()
1448
+ }).strict()
1449
+ ).optional(),
1450
+ financing_company_qsa: zod.z.array(
1451
+ zod.z.object({
1452
+ name: textField(),
1453
+ cpf: cpfSchema,
1454
+ birth_date: birthDateSchema,
1455
+ address: textField(),
1456
+ number: textField(),
1457
+ cep: cepSchema,
1458
+ complement: textField(15).optional(),
1459
+ cellphone: phoneBRSchema,
1460
+ email: emailSchema,
1461
+ district: textField(),
1462
+ sex: SexEnum,
1463
+ city: textField(),
1464
+ state: textField(2),
1465
+ mother_name: textField(),
1466
+ nationality: textField(),
1467
+ office: textField().optional(),
1468
+ phone: phoneBRSchema.optional(),
1469
+ civil_status: textField().optional(),
1470
+ residence_situation: textField().optional(),
1471
+ months_in_residence: integerField.optional(),
1472
+ type_doc: DocumentTypeEnum.optional(),
1473
+ doc: textField().optional(),
1474
+ issuing_body: textField().optional(),
1475
+ uf_issuing_body: textField(2).optional(),
1476
+ doc_issue_date: issueDateSchema.optional(),
1477
+ doc_expiration_date: dateDMYSchema.optional(),
1478
+ monthly_income: currencySchema.optional(),
1479
+ patrimony: currencySchema.optional(),
1480
+ naturalness: textField().optional(),
1481
+ uf_naturalness: textField(2).optional(),
1482
+ pep_relationship: textField().optional(),
1483
+ entry_date: issueDateSchema.optional(),
1484
+ doc_issuance_uf: textField(2).optional()
1485
+ }).strict()
1486
+ ).optional()
1487
+ });
1488
+ var unifiedPjSchema = unifiedPjObject.strict().superRefine(applyPjRefinements);
1248
1489
 
1249
1490
  // src/domains/financing/formalization/registry.ts
1491
+ var UNIFIED_SLUG = "unified";
1492
+ var unifiedSchemaByPerson = {
1493
+ pf: unifiedPfSchema,
1494
+ pj: unifiedPjSchema
1495
+ };
1496
+ var unifiedBaseSchemaByPerson = {
1497
+ pf: unifiedPfObject,
1498
+ pj: unifiedPjObject
1499
+ };
1250
1500
  var pfSchemaRegistry = {
1251
1501
  credito77: credito77PfSchema,
1252
1502
  losango: losangoPfSchema,
@@ -1321,12 +1571,18 @@ function isCredito77WithoutPrestamista(bank, person, options) {
1321
1571
  return bank === "credito77" && person === "pf" && !options.prestamistaIncluso;
1322
1572
  }
1323
1573
  function getFormalizationSchema(bank, person, options = {}) {
1574
+ if (bank === UNIFIED_SLUG) {
1575
+ return unifiedSchemaByPerson[person];
1576
+ }
1324
1577
  if (isCredito77WithoutPrestamista(bank, person, options)) {
1325
1578
  return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS).strict().superRefine(applyPfRefinements);
1326
1579
  }
1327
1580
  return person === "pf" ? pfSchemaRegistry[bank] : pjSchemaRegistry[bank];
1328
1581
  }
1329
1582
  function getFormalizationBaseSchema(bank, person, options = {}) {
1583
+ if (bank === UNIFIED_SLUG) {
1584
+ return unifiedBaseSchemaByPerson[person];
1585
+ }
1330
1586
  if (isCredito77WithoutPrestamista(bank, person, options)) {
1331
1587
  return credito77PfObject.omit(CREDITO77_PRESTAMISTA_FIELDS);
1332
1588
  }
@@ -1335,17 +1591,28 @@ function getFormalizationBaseSchema(bank, person, options = {}) {
1335
1591
 
1336
1592
  // src/domains/financing/formalization/uiMeta.ts
1337
1593
  var FORMALIZATION_FIELD_META = {
1338
- energy_bill_upload: { kind: "file", label: "Conta de energia", step: 1 },
1339
- account_third_party: {
1594
+ voucher_local_installation_address: {
1595
+ kind: "file",
1596
+ label: "Comprovante de endere\xE7o da instala\xE7\xE3o",
1597
+ step: 1
1598
+ },
1599
+ energy_account_in_requester_name: {
1340
1600
  kind: "select",
1341
1601
  label: "Conta em nome de terceiro?",
1342
- step: 1
1602
+ step: 1,
1603
+ placeholder: "Selecione uma op\xE7\xE3o"
1343
1604
  },
1344
- bond_document_upload: {
1605
+ proof_kinship: {
1345
1606
  kind: "file",
1346
1607
  label: "Documento de v\xEDnculo com o titular",
1347
1608
  step: 1
1348
1609
  },
1610
+ type_doc: {
1611
+ kind: "select",
1612
+ label: "Tipo de documento",
1613
+ step: 3,
1614
+ placeholder: "Selecione uma op\xE7\xE3o"
1615
+ },
1349
1616
  document_front_upload: {
1350
1617
  kind: "file",
1351
1618
  label: "Documento de identidade (frente)",
@@ -1356,89 +1623,248 @@ var FORMALIZATION_FIELD_META = {
1356
1623
  label: "Documento de identidade (verso)",
1357
1624
  step: 2
1358
1625
  },
1359
- name: { kind: "text", label: "Nome", step: 3 },
1360
- cpf: { kind: "cpf", label: "CPF", step: 3 },
1361
- birth_date: { kind: "date", label: "Data de nascimento", step: 3 },
1362
- nationality: { kind: "text", label: "Nacionalidade", step: 3 },
1363
- type_doc: { kind: "select", label: "Tipo de documento", step: 3 },
1364
- doc: { kind: "text", label: "N\xFAmero do documento", step: 3 },
1365
- issuing_body: { kind: "text", label: "\xD3rg\xE3o emissor", step: 3 },
1366
- emitting_state: { kind: "text", label: "UF emissor", step: 3 },
1367
- doc_issue_date: { kind: "date", label: "Data de expedi\xE7\xE3o", step: 3 },
1368
- email: { kind: "email", label: "E-mail", step: 3 },
1369
- cellphone: { kind: "phone", label: "Celular", step: 3 },
1370
- monthly_income: { kind: "currency", label: "Renda mensal", step: 3 },
1371
- mother_name: { kind: "text", label: "Nome da m\xE3e", step: 3 },
1372
- is_installation_at_requester: {
1626
+ name: {
1373
1627
  kind: "text",
1374
- label: "Instala\xE7\xE3o no endere\xE7o do solicitante",
1375
- step: 3
1628
+ label: "Nome",
1629
+ step: 3,
1630
+ placeholder: "Digite o nome completo"
1376
1631
  },
1377
- energy_account_in_requester_name: {
1632
+ cpf: { kind: "cpf", label: "CPF", step: 3, placeholder: "Digite o CPF" },
1633
+ birth_date: {
1634
+ kind: "date",
1635
+ label: "Data de nascimento",
1636
+ step: 3,
1637
+ placeholder: "Digite a data de nascimento"
1638
+ },
1639
+ nationality: {
1640
+ kind: "select",
1641
+ label: "Nacionalidade",
1642
+ step: 3,
1643
+ placeholder: "Selecione uma op\xE7\xE3o"
1644
+ },
1645
+ doc: {
1378
1646
  kind: "text",
1379
- label: "Conta de energia no nome do solicitante",
1380
- step: 3
1647
+ label: "N\xFAmero do documento",
1648
+ step: 3,
1649
+ placeholder: "Digite o n\xFAmero do documento"
1650
+ },
1651
+ issuing_body: {
1652
+ kind: "text",
1653
+ label: "\xD3rg\xE3o emissor",
1654
+ step: 3,
1655
+ placeholder: "Digite o \xF3rg\xE3o emissor"
1656
+ },
1657
+ emitting_state: {
1658
+ kind: "select",
1659
+ label: "UF emissor",
1660
+ step: 3,
1661
+ placeholder: "Digite a UF do emissor"
1662
+ },
1663
+ doc_issue_date: {
1664
+ kind: "date",
1665
+ label: "Data de expedi\xE7\xE3o",
1666
+ step: 3,
1667
+ placeholder: "Digite a data de expedi\xE7\xE3o"
1668
+ },
1669
+ email: {
1670
+ kind: "email",
1671
+ label: "E-mail",
1672
+ step: 3,
1673
+ placeholder: "Digite o e-mail"
1381
1674
  },
1382
- energy_bill_owner_document: {
1383
- kind: "cpfCnpj",
1384
- label: "Documento do titular da conta de energia",
1675
+ cellphone: {
1676
+ kind: "phone",
1677
+ label: "Celular",
1678
+ step: 3,
1679
+ placeholder: "Digite o celular"
1680
+ },
1681
+ monthly_income: {
1682
+ kind: "currency",
1683
+ label: "Renda mensal",
1385
1684
  step: 3
1386
1685
  },
1387
- cep: { kind: "cep", label: "CEP", step: 3 },
1388
- address: { kind: "text", label: "Endere\xE7o", step: 3 },
1389
- number: { kind: "text", label: "N\xFAmero", step: 3 },
1390
- complement: { kind: "text", label: "Complemento", step: 3 },
1391
- district: { kind: "text", label: "Bairro", step: 3 },
1392
- state: { kind: "text", label: "Estado (UF)", step: 3 },
1393
- city: { kind: "text", label: "Cidade", step: 3 },
1394
- sex: { kind: "select", label: "Sexo", step: 4 },
1395
- profession: { kind: "text", label: "Profiss\xE3o", step: 4 },
1396
- rd_re_insurance_toggle: {
1397
- kind: "toggle",
1398
- label: "Seguro prestamista (RD/RE)",
1399
- step: 4
1686
+ mother_name: {
1687
+ kind: "text",
1688
+ label: "Nome da m\xE3e",
1689
+ step: 3,
1690
+ placeholder: "Digite o nome da m\xE3e"
1400
1691
  },
1401
- nature_of_occupation: {
1692
+ // naturalness: {
1693
+ // kind: 'text',
1694
+ // label: 'Naturalidade',
1695
+ // step: 3,
1696
+ // placeholder: 'Selecione uma opção',
1697
+ // },
1698
+ uf_naturalness: {
1699
+ kind: "select",
1700
+ label: "UF de naturalidade",
1701
+ step: 3,
1702
+ placeholder: "Selecione uma op\xE7\xE3o"
1703
+ },
1704
+ cep: { kind: "cep", label: "CEP", step: 3, placeholder: "Digite o CEP" },
1705
+ address: {
1706
+ kind: "text",
1707
+ label: "Endere\xE7o",
1708
+ step: 3,
1709
+ placeholder: "Digite o endere\xE7o"
1710
+ },
1711
+ number: {
1712
+ kind: "text",
1713
+ label: "N\xFAmero",
1714
+ step: 3,
1715
+ placeholder: "Digite o n\xFAmero"
1716
+ },
1717
+ complement: {
1718
+ kind: "text",
1719
+ label: "Complemento",
1720
+ step: 3,
1721
+ placeholder: "Digite o complemento"
1722
+ },
1723
+ district: {
1724
+ kind: "text",
1725
+ label: "Bairro",
1726
+ step: 3,
1727
+ placeholder: "Digite o bairro"
1728
+ },
1729
+ state: {
1730
+ kind: "select",
1731
+ label: "Estado (UF)",
1732
+ step: 3,
1733
+ placeholder: "Selecione uma op\xE7\xE3o"
1734
+ },
1735
+ city: {
1402
1736
  kind: "text",
1737
+ label: "Cidade",
1738
+ step: 3,
1739
+ placeholder: "Informe a cidade"
1740
+ },
1741
+ sex: {
1742
+ kind: "select",
1743
+ label: "Sexo",
1744
+ step: 4,
1745
+ placeholder: "Selecione uma op\xE7\xE3o"
1746
+ },
1747
+ profession: {
1748
+ kind: "select",
1749
+ label: "Profiss\xE3o",
1750
+ step: 4,
1751
+ placeholder: "Selecione uma op\xE7\xE3o"
1752
+ },
1753
+ nature_of_occupation: {
1754
+ kind: "select",
1403
1755
  label: "Natureza da ocupa\xE7\xE3o",
1404
- step: 4
1756
+ step: 4,
1757
+ placeholder: "Selecione uma op\xE7\xE3o"
1758
+ },
1759
+ cnpj_proprietary: {
1760
+ kind: "cnpj",
1761
+ label: "CNPJ do propriet\xE1rio",
1762
+ step: 4,
1763
+ placeholder: "Digite o CNPJ do propriet\xE1rio"
1405
1764
  },
1406
- cnpj_proprietary: { kind: "cnpj", label: "CNPJ do propriet\xE1rio", step: 4 },
1407
1765
  equity_value: { kind: "currency", label: "Patrim\xF4nio", step: 4 },
1408
- civil_status: { kind: "text", label: "Estado civil", step: 4 },
1409
- naturalness: { kind: "text", label: "Naturalidade", step: 4 },
1410
- uf_naturalness: { kind: "text", label: "UF de naturalidade", step: 4 },
1411
- company_time: { kind: "number", label: "Tempo de empresa (meses)", step: 4 },
1412
- pep_relationship: { kind: "text", label: "Rela\xE7\xE3o com PEP", step: 4 },
1766
+ civil_status: {
1767
+ kind: "select",
1768
+ label: "Estado civil",
1769
+ step: 4,
1770
+ placeholder: "Selecione uma op\xE7\xE3o"
1771
+ },
1772
+ company_time: {
1773
+ kind: "number",
1774
+ label: "Tempo de empresa (meses)",
1775
+ step: 4,
1776
+ placeholder: "Digite o tempo de empresa em meses"
1777
+ },
1778
+ pep_relationship: {
1779
+ kind: "select",
1780
+ label: "Rela\xE7\xE3o com PEP",
1781
+ step: 4,
1782
+ placeholder: "Selecione uma op\xE7\xE3o"
1783
+ },
1413
1784
  residence_situation: {
1414
- kind: "text",
1785
+ kind: "select",
1415
1786
  label: "Situa\xE7\xE3o da resid\xEAncia",
1416
- step: 4
1787
+ step: 4,
1788
+ placeholder: "Selecione uma op\xE7\xE3o"
1417
1789
  },
1418
1790
  months_in_residence: {
1419
1791
  kind: "integer",
1420
1792
  label: "Tempo de resid\xEAncia (meses)",
1421
- step: 4
1793
+ step: 4,
1794
+ placeholder: "Digite o tempo de resid\xEAncia em meses"
1422
1795
  },
1423
- financing_company: { kind: "group", label: "Dados da empresa", step: 3 },
1424
- financing_company_guarantor: { kind: "array", label: "Avalistas", step: 3 },
1796
+ financing_company: { kind: "group", label: "Dados da empresa", step: 4 },
1797
+ financing_company_guarantor: { kind: "array", label: "Avalistas", step: 4 },
1425
1798
  financing_company_qsa: {
1426
1799
  kind: "array",
1427
1800
  label: "Quadro societ\xE1rio (QSA)",
1428
- step: 3
1801
+ step: 4,
1802
+ placeholder: "Selecione uma op\xE7\xE3o"
1803
+ },
1804
+ social_name: { kind: "text", label: "Nome social", step: 4 },
1805
+ partner_name: { kind: "text", label: "Nome do c\xF4njuge", step: 4 },
1806
+ partner_birth: {
1807
+ kind: "date",
1808
+ label: "Data de nascimento do c\xF4njuge",
1809
+ step: 4,
1810
+ placeholder: "Digite a data de nascimento do c\xF4njuge"
1811
+ },
1812
+ partner_type_doc: {
1813
+ kind: "select",
1814
+ label: "Tipo de documento do c\xF4njuge",
1815
+ step: 4,
1816
+ placeholder: "Selecione uma op\xE7\xE3o"
1817
+ },
1818
+ partner_doc: {
1819
+ kind: "text",
1820
+ label: "Documento do c\xF4njuge",
1821
+ step: 4,
1822
+ placeholder: "Digite o documento do c\xF4njuge"
1823
+ },
1824
+ partner_cpf: {
1825
+ kind: "cpf",
1826
+ label: "CPF do c\xF4njuge",
1827
+ step: 4,
1828
+ placeholder: "Digite o CPF do c\xF4njuge"
1829
+ },
1830
+ partner_city: {
1831
+ kind: "text",
1832
+ label: "Cidade do c\xF4njuge",
1833
+ step: 4,
1834
+ placeholder: "Digite a cidade do c\xF4njuge"
1835
+ },
1836
+ communion_regime: {
1837
+ kind: "select",
1838
+ label: "Regime de comunh\xE3o",
1839
+ step: 4,
1840
+ placeholder: "Selecione uma op\xE7\xE3o"
1841
+ },
1842
+ rd_re_insurance_toggle: {
1843
+ kind: "toggle",
1844
+ label: "Seguro prestamista (RD/RE)",
1845
+ step: 4
1429
1846
  }
1430
1847
  };
1431
1848
 
1432
1849
  exports.BANK_SLUGS = BANK_SLUGS;
1433
1850
  exports.BankEnum = BankEnum;
1851
+ exports.CIVIL_STATUS_REQUIRING_PARTNER = CIVIL_STATUS_REQUIRING_PARTNER;
1434
1852
  exports.FORMALIZATION_FIELD_META = FORMALIZATION_FIELD_META;
1853
+ exports.FORMALIZATION_OPTION_LABELS = FORMALIZATION_OPTION_LABELS;
1435
1854
  exports.NATIONALITY_BRAZIL = NATIONALITY_BRAZIL;
1436
1855
  exports.OCCUPATIONS_REQUIRING_CNPJ = OCCUPATIONS_REQUIRING_CNPJ;
1856
+ exports.PARTNER_FIELDS = PARTNER_FIELDS;
1857
+ exports.UNIFIED_SLUG = UNIFIED_SLUG;
1437
1858
  exports.applyPfRefinements = applyPfRefinements;
1438
1859
  exports.applyPjRefinements = applyPjRefinements;
1860
+ exports.getFieldOptions = getFieldOptions;
1439
1861
  exports.getFormalizationBaseSchema = getFormalizationBaseSchema;
1440
1862
  exports.getFormalizationSchema = getFormalizationSchema;
1441
1863
  exports.pfBaseSchemaRegistry = pfBaseSchemaRegistry;
1442
1864
  exports.pfSchemaRegistry = pfSchemaRegistry;
1443
1865
  exports.pjBaseSchemaRegistry = pjBaseSchemaRegistry;
1444
1866
  exports.pjSchemaRegistry = pjSchemaRegistry;
1867
+ exports.unifiedPfObject = unifiedPfObject;
1868
+ exports.unifiedPfSchema = unifiedPfSchema;
1869
+ exports.unifiedPjObject = unifiedPjObject;
1870
+ exports.unifiedPjSchema = unifiedPjSchema;