@77sol-lab/form-schemas 1.5.1 → 1.6.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 (160) hide show
  1. package/{chunk-P54HBDOE.mjs → chunk-2ZKUSLGU.mjs} +2 -2
  2. package/{chunk-OX3X37VR.mjs → chunk-35IKZUF4.mjs} +2 -2
  3. package/{chunk-VGFPONIS.mjs → chunk-57DSP6GG.mjs} +1 -1
  4. package/{chunk-Y3FAMPYF.mjs → chunk-5YFVPFSM.mjs} +61 -21
  5. package/{chunk-2CN56LSL.mjs → chunk-66Y3FO5R.mjs} +2 -2
  6. package/{chunk-WRJAOYL6.mjs → chunk-ACJUTGEC.mjs} +1 -1
  7. package/{chunk-YNVJAGAY.mjs → chunk-AQ43O5UO.mjs} +41 -33
  8. package/{chunk-7ZERTOE7.mjs → chunk-BITN6YDR.mjs} +2 -2
  9. package/{chunk-6TFRV3FG.mjs → chunk-BRBOOPFN.mjs} +2 -2
  10. package/{chunk-3BPZV6IW.mjs → chunk-BSG5DCL7.mjs} +1 -1
  11. package/{chunk-XII4F5RZ.mjs → chunk-CSGG5DZE.mjs} +1 -1
  12. package/{chunk-AURTWOTB.mjs → chunk-E7JXDCBO.mjs} +2 -2
  13. package/{chunk-O7OHCS36.mjs → chunk-GVOOT43S.mjs} +1 -1
  14. package/{chunk-OMDC46YE.mjs → chunk-ISJKYUMR.mjs} +2 -2
  15. package/{chunk-6HBDXEIK.mjs → chunk-JBTU6WKN.mjs} +2 -2
  16. package/{chunk-HHJNVLHK.mjs → chunk-K23FTEKB.mjs} +1 -1
  17. package/{chunk-FT5BAKSG.mjs → chunk-LEUH6IFB.mjs} +2 -2
  18. package/{chunk-2W3LQ75V.mjs → chunk-LOEAPRSO.mjs} +2 -2
  19. package/{chunk-THYAK7O3.mjs → chunk-LVFKP46R.mjs} +2 -2
  20. package/{chunk-3RSZ4NGE.mjs → chunk-O5XQR5HN.mjs} +1 -1
  21. package/{chunk-F76ICRGY.mjs → chunk-OFCVHF6Z.mjs} +2 -2
  22. package/{chunk-DERWNSPY.mjs → chunk-PY7IUNIU.mjs} +1 -1
  23. package/{chunk-JPFAMQGV.mjs → chunk-QUBWDT4D.mjs} +1 -1
  24. package/{chunk-WGPPH7DC.mjs → chunk-RDLOQ6HV.mjs} +1 -1
  25. package/{chunk-HZM2PWYJ.mjs → chunk-SKSUT6CG.mjs} +2 -2
  26. package/{chunk-GR2PK3Z7.mjs → chunk-T2MFLA6J.mjs} +2 -2
  27. package/{chunk-WPLLR3SO.mjs → chunk-UYCCHEM5.mjs} +2 -2
  28. package/{chunk-MDK5KVJT.mjs → chunk-W6J3SW2H.mjs} +2 -2
  29. package/{chunk-3O52U22S.mjs → chunk-WPJOW7IE.mjs} +2 -2
  30. package/{chunk-OUVNM2RX.mjs → chunk-X4LHQVVJ.mjs} +1 -1
  31. package/{chunk-YQJCILG3.mjs → chunk-XVITSWCY.mjs} +1 -1
  32. package/{chunk-2YVK6IDS.mjs → chunk-Y7TQ2NQ2.mjs} +3 -3
  33. package/{chunk-PO6GQE6E.mjs → chunk-ZQ2PKLTM.mjs} +2 -2
  34. package/financing/formalization/index.d.cts +867 -0
  35. package/financing/formalization/index.d.ts +867 -0
  36. package/financing/formalization/index.js +68 -22
  37. package/financing/formalization/index.mjs +33 -33
  38. package/financing/formalization/schemas/AlfaPFSchema.d.cts +8 -0
  39. package/financing/formalization/schemas/AlfaPFSchema.d.ts +8 -0
  40. package/financing/formalization/schemas/AlfaPFSchema.js +51 -20
  41. package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
  42. package/financing/formalization/schemas/AlfaPJSchema.d.cts +8 -0
  43. package/financing/formalization/schemas/AlfaPJSchema.d.ts +8 -0
  44. package/financing/formalization/schemas/AlfaPJSchema.js +51 -20
  45. package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
  46. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +8 -0
  47. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +8 -0
  48. package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +51 -20
  49. package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
  50. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +8 -0
  51. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +8 -0
  52. package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +51 -20
  53. package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
  54. package/financing/formalization/schemas/BtgPFSchema.d.cts +8 -0
  55. package/financing/formalization/schemas/BtgPFSchema.d.ts +8 -0
  56. package/financing/formalization/schemas/BtgPFSchema.js +51 -20
  57. package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
  58. package/financing/formalization/schemas/BtgPJSchema.d.cts +8 -0
  59. package/financing/formalization/schemas/BtgPJSchema.d.ts +8 -0
  60. package/financing/formalization/schemas/BtgPJSchema.js +51 -20
  61. package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
  62. package/financing/formalization/schemas/BvPFSchema.d.cts +8 -0
  63. package/financing/formalization/schemas/BvPFSchema.d.ts +8 -0
  64. package/financing/formalization/schemas/BvPFSchema.js +51 -20
  65. package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
  66. package/financing/formalization/schemas/BvPJSchema.d.cts +8 -0
  67. package/financing/formalization/schemas/BvPJSchema.d.ts +8 -0
  68. package/financing/formalization/schemas/BvPJSchema.js +51 -20
  69. package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
  70. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +8 -0
  71. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +8 -0
  72. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +51 -20
  73. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
  74. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +8 -0
  75. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +8 -0
  76. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +51 -20
  77. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
  78. package/financing/formalization/schemas/CashMePFSchema.d.cts +8 -0
  79. package/financing/formalization/schemas/CashMePFSchema.d.ts +8 -0
  80. package/financing/formalization/schemas/CashMePFSchema.js +51 -20
  81. package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
  82. package/financing/formalization/schemas/CashMePJSchema.d.cts +8 -0
  83. package/financing/formalization/schemas/CashMePJSchema.d.ts +8 -0
  84. package/financing/formalization/schemas/CashMePJSchema.js +51 -20
  85. package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
  86. package/financing/formalization/schemas/Credito77PFSchema.d.cts +8 -0
  87. package/financing/formalization/schemas/Credito77PFSchema.d.ts +8 -0
  88. package/financing/formalization/schemas/Credito77PFSchema.js +51 -20
  89. package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
  90. package/financing/formalization/schemas/Credito77PJSchema.d.cts +8 -0
  91. package/financing/formalization/schemas/Credito77PJSchema.d.ts +8 -0
  92. package/financing/formalization/schemas/Credito77PJSchema.js +51 -20
  93. package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
  94. package/financing/formalization/schemas/EosPFSchema.d.cts +8 -0
  95. package/financing/formalization/schemas/EosPFSchema.d.ts +8 -0
  96. package/financing/formalization/schemas/EosPFSchema.js +51 -20
  97. package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
  98. package/financing/formalization/schemas/EosPJSchema.d.cts +8 -0
  99. package/financing/formalization/schemas/EosPJSchema.d.ts +8 -0
  100. package/financing/formalization/schemas/EosPJSchema.js +51 -20
  101. package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
  102. package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +8 -0
  103. package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +8 -0
  104. package/financing/formalization/schemas/HdtEnergyPFSchema.js +51 -20
  105. package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
  106. package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +8 -0
  107. package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +8 -0
  108. package/financing/formalization/schemas/HdtEnergyPJSchema.js +51 -20
  109. package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
  110. package/financing/formalization/schemas/LosangoPFSchema.d.cts +8 -0
  111. package/financing/formalization/schemas/LosangoPFSchema.d.ts +8 -0
  112. package/financing/formalization/schemas/LosangoPFSchema.js +51 -20
  113. package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
  114. package/financing/formalization/schemas/LosangoPJSchema.d.cts +8 -0
  115. package/financing/formalization/schemas/LosangoPJSchema.d.ts +8 -0
  116. package/financing/formalization/schemas/LosangoPJSchema.js +51 -20
  117. package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
  118. package/financing/formalization/schemas/SafraPFSchema.d.cts +8 -0
  119. package/financing/formalization/schemas/SafraPFSchema.d.ts +8 -0
  120. package/financing/formalization/schemas/SafraPFSchema.js +51 -20
  121. package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
  122. package/financing/formalization/schemas/SafraPJSchema.d.cts +8 -0
  123. package/financing/formalization/schemas/SafraPJSchema.d.ts +8 -0
  124. package/financing/formalization/schemas/SafraPJSchema.js +51 -20
  125. package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
  126. package/financing/formalization/schemas/SantanderPFSchema.d.cts +8 -0
  127. package/financing/formalization/schemas/SantanderPFSchema.d.ts +8 -0
  128. package/financing/formalization/schemas/SantanderPFSchema.js +51 -20
  129. package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
  130. package/financing/formalization/schemas/SantanderPJSchema.d.cts +8 -0
  131. package/financing/formalization/schemas/SantanderPJSchema.d.ts +8 -0
  132. package/financing/formalization/schemas/SantanderPJSchema.js +51 -20
  133. package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
  134. package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +8 -0
  135. package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +8 -0
  136. package/financing/formalization/schemas/SolAgoraPFSchema.js +51 -20
  137. package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
  138. package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +8 -0
  139. package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +8 -0
  140. package/financing/formalization/schemas/SolAgoraPJSchema.js +51 -20
  141. package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
  142. package/financing/formalization/schemas/SolfacilPFSchema.d.cts +8 -0
  143. package/financing/formalization/schemas/SolfacilPFSchema.d.ts +8 -0
  144. package/financing/formalization/schemas/SolfacilPFSchema.js +51 -20
  145. package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
  146. package/financing/formalization/schemas/SolfacilPJSchema.d.cts +8 -0
  147. package/financing/formalization/schemas/SolfacilPJSchema.d.ts +8 -0
  148. package/financing/formalization/schemas/SolfacilPJSchema.js +51 -20
  149. package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
  150. package/financing/formalization/schemas/UnifiedPFSchema.d.cts +10 -2
  151. package/financing/formalization/schemas/UnifiedPFSchema.d.ts +10 -2
  152. package/financing/formalization/schemas/UnifiedPFSchema.js +52 -21
  153. package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
  154. package/financing/formalization/schemas/UnifiedPJSchema.d.cts +8 -0
  155. package/financing/formalization/schemas/UnifiedPJSchema.d.ts +8 -0
  156. package/financing/formalization/schemas/UnifiedPJSchema.js +51 -20
  157. package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
  158. package/index.js +68 -22
  159. package/index.mjs +33 -33
  160. package/package.json +1 -1
@@ -4,12 +4,19 @@ var zod = require('zod');
4
4
 
5
5
  // src/domains/financing/formalization/schemas/SolfacilPFSchema.ts
6
6
  var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
7
+ var REQUIRED_STRING_PARAMS = {
8
+ required_error: REQUIRED_MESSAGE,
9
+ invalid_type_error: REQUIRED_MESSAGE
10
+ };
11
+ function requiredString() {
12
+ return zod.z.string(REQUIRED_STRING_PARAMS);
13
+ }
7
14
  function textField(maxLength) {
8
- const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
15
+ const base = requiredString().trim().min(1, REQUIRED_MESSAGE);
9
16
  return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
10
17
  }
11
- zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
12
- 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");
18
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
19
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
13
20
  function enumField(values) {
14
21
  return zod.z.enum(values, {
15
22
  errorMap: (issue, ctx) => {
@@ -22,13 +29,16 @@ function enumField(values) {
22
29
  }
23
30
  var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
24
31
  var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
25
- var fileUploadField = zod.z.object({
26
- url: zod.z.string().url().optional(),
27
- mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
28
- errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
29
- }),
30
- sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
31
- });
32
+ var fileUploadField = zod.z.object(
33
+ {
34
+ url: zod.z.string().url().optional(),
35
+ mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
36
+ errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
37
+ }),
38
+ sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
39
+ },
40
+ REQUIRED_STRING_PARAMS
41
+ );
32
42
 
33
43
  // src/shared/enums/document-type.ts
34
44
  var DocumentTypeEnum = enumField([
@@ -36,6 +46,15 @@ var DocumentTypeEnum = enumField([
36
46
  "carteira_nacional_de_habilita\xE7\xE3o"
37
47
  ]);
38
48
 
49
+ // src/shared/enums/proof-kinship-type.ts
50
+ var ProofKinshipTypeEnum = enumField([
51
+ "certidao_casamento",
52
+ "documento_identificacao",
53
+ "contrato_social",
54
+ "declaracao_parentesco",
55
+ "outro_documento"
56
+ ]);
57
+
39
58
  // src/shared/enums/sex.ts
40
59
  var SexEnum = enumField(["masculino", "feminino"]);
41
60
 
@@ -166,16 +185,16 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
166
185
  }
167
186
 
168
187
  // src/shared/regex/index.ts
169
- var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
170
- zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
171
- var cpfCnpjSchema = zod.z.string().transform(onlyDigits).refine(
188
+ var cpfSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
189
+ requiredString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
190
+ var cpfCnpjSchema = requiredString().transform(onlyDigits).refine(
172
191
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
173
192
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
174
193
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
175
- var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
176
- var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
177
- var emailSchema = zod.z.string().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
178
- var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
194
+ var cepSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
195
+ var phoneBRSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
196
+ var emailSchema = requiredString().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
197
+ var dateDMYSchema = requiredString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
179
198
  var birthDateSchema = dateDMYSchema.refine(
180
199
  (v) => isAdultDMY(v),
181
200
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -184,10 +203,11 @@ var issueDateSchema = dateDMYSchema.refine(
184
203
  (v) => isNotFutureDMY(v),
185
204
  "Data de emiss\xE3o n\xE3o pode ser futura"
186
205
  );
187
- var currencySchema = zod.z.number({ invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
188
- zod.z.number().int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
206
+ var currencySchema = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
207
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
189
208
  var formalizationExtras = {
190
209
  voucher_local_installation_address: fileUploadField,
210
+ proof_kinship_type: ProofKinshipTypeEnum.optional(),
191
211
  proof_kinship: fileUploadField.optional(),
192
212
  document_front_upload: fileUploadField,
193
213
  document_back_upload: fileUploadField,
@@ -230,7 +250,18 @@ function applyPartnerRefinement(data, ctx) {
230
250
  }
231
251
  }
232
252
  function applyCommonRefinements(data, ctx) {
233
- 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) {
253
+ const accountInThirdPartyName = data.energy_account_in_requester_name === "sim";
254
+ if (!accountInThirdPartyName) {
255
+ return;
256
+ }
257
+ if (!data.proof_kinship_type) {
258
+ ctx.addIssue({
259
+ code: zod.z.ZodIssueCode.custom,
260
+ path: ["proof_kinship_type"],
261
+ message: "Tipo de comprovante \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
262
+ });
263
+ }
264
+ if (!data.proof_kinship) {
234
265
  ctx.addIssue({
235
266
  code: zod.z.ZodIssueCode.custom,
236
267
  path: ["proof_kinship"],
@@ -1,3 +1,3 @@
1
- export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-PO6GQE6E.mjs';
2
- import '../../../chunk-XII4F5RZ.mjs';
3
- import '../../../chunk-Y3FAMPYF.mjs';
1
+ export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-ZQ2PKLTM.mjs';
2
+ import '../../../chunk-CSGG5DZE.mjs';
3
+ import '../../../chunk-5YFVPFSM.mjs';
@@ -133,6 +133,7 @@ declare const solfacilPjObject: z.ZodObject<{
133
133
  sizeBytes: number;
134
134
  url?: string | undefined;
135
135
  }>;
136
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
136
137
  proof_kinship: z.ZodOptional<z.ZodObject<{
137
138
  url: z.ZodOptional<z.ZodString>;
138
139
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -231,6 +232,7 @@ declare const solfacilPjObject: z.ZodObject<{
231
232
  patrimony: number;
232
233
  complement?: string | undefined;
233
234
  }[];
235
+ proof_kinship_type?: string | undefined;
234
236
  proof_kinship?: {
235
237
  mime: "image/jpeg" | "image/png" | "application/pdf";
236
238
  sizeBytes: number;
@@ -293,6 +295,7 @@ declare const solfacilPjObject: z.ZodObject<{
293
295
  patrimony: number;
294
296
  complement?: string | undefined;
295
297
  }[];
298
+ proof_kinship_type?: string | undefined;
296
299
  proof_kinship?: {
297
300
  mime: "image/jpeg" | "image/png" | "application/pdf";
298
301
  sizeBytes: number;
@@ -433,6 +436,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
433
436
  sizeBytes: number;
434
437
  url?: string | undefined;
435
438
  }>;
439
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
436
440
  proof_kinship: z.ZodOptional<z.ZodObject<{
437
441
  url: z.ZodOptional<z.ZodString>;
438
442
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -531,6 +535,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
531
535
  patrimony: number;
532
536
  complement?: string | undefined;
533
537
  }[];
538
+ proof_kinship_type?: string | undefined;
534
539
  proof_kinship?: {
535
540
  mime: "image/jpeg" | "image/png" | "application/pdf";
536
541
  sizeBytes: number;
@@ -593,6 +598,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
593
598
  patrimony: number;
594
599
  complement?: string | undefined;
595
600
  }[];
601
+ proof_kinship_type?: string | undefined;
596
602
  proof_kinship?: {
597
603
  mime: "image/jpeg" | "image/png" | "application/pdf";
598
604
  sizeBytes: number;
@@ -657,6 +663,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
657
663
  patrimony: number;
658
664
  complement?: string | undefined;
659
665
  }[];
666
+ proof_kinship_type?: string | undefined;
660
667
  proof_kinship?: {
661
668
  mime: "image/jpeg" | "image/png" | "application/pdf";
662
669
  sizeBytes: number;
@@ -719,6 +726,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
719
726
  patrimony: number;
720
727
  complement?: string | undefined;
721
728
  }[];
729
+ proof_kinship_type?: string | undefined;
722
730
  proof_kinship?: {
723
731
  mime: "image/jpeg" | "image/png" | "application/pdf";
724
732
  sizeBytes: number;
@@ -133,6 +133,7 @@ declare const solfacilPjObject: z.ZodObject<{
133
133
  sizeBytes: number;
134
134
  url?: string | undefined;
135
135
  }>;
136
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
136
137
  proof_kinship: z.ZodOptional<z.ZodObject<{
137
138
  url: z.ZodOptional<z.ZodString>;
138
139
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -231,6 +232,7 @@ declare const solfacilPjObject: z.ZodObject<{
231
232
  patrimony: number;
232
233
  complement?: string | undefined;
233
234
  }[];
235
+ proof_kinship_type?: string | undefined;
234
236
  proof_kinship?: {
235
237
  mime: "image/jpeg" | "image/png" | "application/pdf";
236
238
  sizeBytes: number;
@@ -293,6 +295,7 @@ declare const solfacilPjObject: z.ZodObject<{
293
295
  patrimony: number;
294
296
  complement?: string | undefined;
295
297
  }[];
298
+ proof_kinship_type?: string | undefined;
296
299
  proof_kinship?: {
297
300
  mime: "image/jpeg" | "image/png" | "application/pdf";
298
301
  sizeBytes: number;
@@ -433,6 +436,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
433
436
  sizeBytes: number;
434
437
  url?: string | undefined;
435
438
  }>;
439
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
436
440
  proof_kinship: z.ZodOptional<z.ZodObject<{
437
441
  url: z.ZodOptional<z.ZodString>;
438
442
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -531,6 +535,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
531
535
  patrimony: number;
532
536
  complement?: string | undefined;
533
537
  }[];
538
+ proof_kinship_type?: string | undefined;
534
539
  proof_kinship?: {
535
540
  mime: "image/jpeg" | "image/png" | "application/pdf";
536
541
  sizeBytes: number;
@@ -593,6 +598,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
593
598
  patrimony: number;
594
599
  complement?: string | undefined;
595
600
  }[];
601
+ proof_kinship_type?: string | undefined;
596
602
  proof_kinship?: {
597
603
  mime: "image/jpeg" | "image/png" | "application/pdf";
598
604
  sizeBytes: number;
@@ -657,6 +663,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
657
663
  patrimony: number;
658
664
  complement?: string | undefined;
659
665
  }[];
666
+ proof_kinship_type?: string | undefined;
660
667
  proof_kinship?: {
661
668
  mime: "image/jpeg" | "image/png" | "application/pdf";
662
669
  sizeBytes: number;
@@ -719,6 +726,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
719
726
  patrimony: number;
720
727
  complement?: string | undefined;
721
728
  }[];
729
+ proof_kinship_type?: string | undefined;
722
730
  proof_kinship?: {
723
731
  mime: "image/jpeg" | "image/png" | "application/pdf";
724
732
  sizeBytes: number;
@@ -4,12 +4,19 @@ var zod = require('zod');
4
4
 
5
5
  // src/domains/financing/formalization/schemas/SolfacilPJSchema.ts
6
6
  var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
7
+ var REQUIRED_STRING_PARAMS = {
8
+ required_error: REQUIRED_MESSAGE,
9
+ invalid_type_error: REQUIRED_MESSAGE
10
+ };
11
+ function requiredString() {
12
+ return zod.z.string(REQUIRED_STRING_PARAMS);
13
+ }
7
14
  function textField(maxLength) {
8
- const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
15
+ const base = requiredString().trim().min(1, REQUIRED_MESSAGE);
9
16
  return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
10
17
  }
11
- zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
12
- 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");
18
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
19
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
13
20
  function enumField(values) {
14
21
  return zod.z.enum(values, {
15
22
  errorMap: (issue, ctx) => {
@@ -22,13 +29,25 @@ function enumField(values) {
22
29
  }
23
30
  var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
24
31
  var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
25
- var fileUploadField = zod.z.object({
26
- url: zod.z.string().url().optional(),
27
- mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
28
- errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
29
- }),
30
- sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
31
- });
32
+ var fileUploadField = zod.z.object(
33
+ {
34
+ url: zod.z.string().url().optional(),
35
+ mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
36
+ errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
37
+ }),
38
+ sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
39
+ },
40
+ REQUIRED_STRING_PARAMS
41
+ );
42
+
43
+ // src/shared/enums/proof-kinship-type.ts
44
+ var ProofKinshipTypeEnum = enumField([
45
+ "certidao_casamento",
46
+ "documento_identificacao",
47
+ "contrato_social",
48
+ "declaracao_parentesco",
49
+ "outro_documento"
50
+ ]);
32
51
 
33
52
  // src/shared/enums/sex.ts
34
53
  var SexEnum = enumField(["masculino", "feminino"]);
@@ -153,16 +172,16 @@ function isNotFutureDMY(value, reference = /* @__PURE__ */ new Date()) {
153
172
  }
154
173
 
155
174
  // src/shared/regex/index.ts
156
- var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
157
- var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
158
- zod.z.string().transform(onlyDigits).refine(
175
+ var cpfSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
176
+ var cnpjSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
177
+ requiredString().transform(onlyDigits).refine(
159
178
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
160
179
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
161
180
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
162
- var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
163
- var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
164
- var emailSchema = zod.z.string().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
165
- var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
181
+ var cepSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
182
+ var phoneBRSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
183
+ var emailSchema = requiredString().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
184
+ var dateDMYSchema = requiredString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
166
185
  var birthDateSchema = dateDMYSchema.refine(
167
186
  (v) => isAdultDMY(v),
168
187
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -171,17 +190,29 @@ var issueDateSchema = dateDMYSchema.refine(
171
190
  (v) => isNotFutureDMY(v),
172
191
  "Data de emiss\xE3o n\xE3o pode ser futura"
173
192
  );
174
- var currencySchema = zod.z.number({ invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
175
- zod.z.number().int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
193
+ var currencySchema = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
194
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
176
195
  var formalizationExtras = {
177
196
  voucher_local_installation_address: fileUploadField,
197
+ proof_kinship_type: ProofKinshipTypeEnum.optional(),
178
198
  proof_kinship: fileUploadField.optional(),
179
199
  document_front_upload: fileUploadField,
180
200
  document_back_upload: fileUploadField,
181
201
  rd_re_insurance_toggle: zod.z.boolean().default(true)
182
202
  };
183
203
  function applyCommonRefinements(data, ctx) {
184
- 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) {
204
+ const accountInThirdPartyName = data.energy_account_in_requester_name === "sim";
205
+ if (!accountInThirdPartyName) {
206
+ return;
207
+ }
208
+ if (!data.proof_kinship_type) {
209
+ ctx.addIssue({
210
+ code: zod.z.ZodIssueCode.custom,
211
+ path: ["proof_kinship_type"],
212
+ message: "Tipo de comprovante \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
213
+ });
214
+ }
215
+ if (!data.proof_kinship) {
185
216
  ctx.addIssue({
186
217
  code: zod.z.ZodIssueCode.custom,
187
218
  path: ["proof_kinship"],
@@ -1,2 +1,2 @@
1
- export { solfacilPjObject, solfacilPjSchema } from '../../../chunk-3RSZ4NGE.mjs';
2
- import '../../../chunk-Y3FAMPYF.mjs';
1
+ export { solfacilPjObject, solfacilPjSchema } from '../../../chunk-O5XQR5HN.mjs';
2
+ import '../../../chunk-5YFVPFSM.mjs';
@@ -14,6 +14,7 @@ declare const unifiedPfObject: z.ZodObject<{
14
14
  sizeBytes: number;
15
15
  url?: string | undefined;
16
16
  }>;
17
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
17
18
  proof_kinship: z.ZodOptional<z.ZodObject<{
18
19
  url: z.ZodOptional<z.ZodString>;
19
20
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -64,7 +65,7 @@ declare const unifiedPfObject: z.ZodObject<{
64
65
  complement: z.ZodOptional<z.ZodString>;
65
66
  mother_name: z.ZodString;
66
67
  district: z.ZodString;
67
- energy_account_in_requester_name: z.ZodString;
68
+ energy_account_in_requester_name: z.ZodEnum<[string, string]>;
68
69
  city: z.ZodString;
69
70
  energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
70
71
  state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
@@ -148,6 +149,7 @@ declare const unifiedPfObject: z.ZodObject<{
148
149
  partner_cpf?: string | undefined;
149
150
  partner_city?: string | undefined;
150
151
  communion_regime?: string | undefined;
152
+ proof_kinship_type?: string | undefined;
151
153
  proof_kinship?: {
152
154
  mime: "image/jpeg" | "image/png" | "application/pdf";
153
155
  sizeBytes: number;
@@ -212,6 +214,7 @@ declare const unifiedPfObject: z.ZodObject<{
212
214
  partner_cpf?: string | undefined;
213
215
  partner_city?: string | undefined;
214
216
  communion_regime?: string | undefined;
217
+ proof_kinship_type?: string | undefined;
215
218
  proof_kinship?: {
216
219
  mime: "image/jpeg" | "image/png" | "application/pdf";
217
220
  sizeBytes: number;
@@ -242,6 +245,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
242
245
  sizeBytes: number;
243
246
  url?: string | undefined;
244
247
  }>;
248
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
245
249
  proof_kinship: z.ZodOptional<z.ZodObject<{
246
250
  url: z.ZodOptional<z.ZodString>;
247
251
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -292,7 +296,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
292
296
  complement: z.ZodOptional<z.ZodString>;
293
297
  mother_name: z.ZodString;
294
298
  district: z.ZodString;
295
- energy_account_in_requester_name: z.ZodString;
299
+ energy_account_in_requester_name: z.ZodEnum<[string, string]>;
296
300
  city: z.ZodString;
297
301
  energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
298
302
  state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
@@ -376,6 +380,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
376
380
  partner_cpf?: string | undefined;
377
381
  partner_city?: string | undefined;
378
382
  communion_regime?: string | undefined;
383
+ proof_kinship_type?: string | undefined;
379
384
  proof_kinship?: {
380
385
  mime: "image/jpeg" | "image/png" | "application/pdf";
381
386
  sizeBytes: number;
@@ -440,6 +445,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
440
445
  partner_cpf?: string | undefined;
441
446
  partner_city?: string | undefined;
442
447
  communion_regime?: string | undefined;
448
+ proof_kinship_type?: string | undefined;
443
449
  proof_kinship?: {
444
450
  mime: "image/jpeg" | "image/png" | "application/pdf";
445
451
  sizeBytes: number;
@@ -506,6 +512,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
506
512
  partner_cpf?: string | undefined;
507
513
  partner_city?: string | undefined;
508
514
  communion_regime?: string | undefined;
515
+ proof_kinship_type?: string | undefined;
509
516
  proof_kinship?: {
510
517
  mime: "image/jpeg" | "image/png" | "application/pdf";
511
518
  sizeBytes: number;
@@ -570,6 +577,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
570
577
  partner_cpf?: string | undefined;
571
578
  partner_city?: string | undefined;
572
579
  communion_regime?: string | undefined;
580
+ proof_kinship_type?: string | undefined;
573
581
  proof_kinship?: {
574
582
  mime: "image/jpeg" | "image/png" | "application/pdf";
575
583
  sizeBytes: number;
@@ -14,6 +14,7 @@ declare const unifiedPfObject: z.ZodObject<{
14
14
  sizeBytes: number;
15
15
  url?: string | undefined;
16
16
  }>;
17
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
17
18
  proof_kinship: z.ZodOptional<z.ZodObject<{
18
19
  url: z.ZodOptional<z.ZodString>;
19
20
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -64,7 +65,7 @@ declare const unifiedPfObject: z.ZodObject<{
64
65
  complement: z.ZodOptional<z.ZodString>;
65
66
  mother_name: z.ZodString;
66
67
  district: z.ZodString;
67
- energy_account_in_requester_name: z.ZodString;
68
+ energy_account_in_requester_name: z.ZodEnum<[string, string]>;
68
69
  city: z.ZodString;
69
70
  energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
70
71
  state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
@@ -148,6 +149,7 @@ declare const unifiedPfObject: z.ZodObject<{
148
149
  partner_cpf?: string | undefined;
149
150
  partner_city?: string | undefined;
150
151
  communion_regime?: string | undefined;
152
+ proof_kinship_type?: string | undefined;
151
153
  proof_kinship?: {
152
154
  mime: "image/jpeg" | "image/png" | "application/pdf";
153
155
  sizeBytes: number;
@@ -212,6 +214,7 @@ declare const unifiedPfObject: z.ZodObject<{
212
214
  partner_cpf?: string | undefined;
213
215
  partner_city?: string | undefined;
214
216
  communion_regime?: string | undefined;
217
+ proof_kinship_type?: string | undefined;
215
218
  proof_kinship?: {
216
219
  mime: "image/jpeg" | "image/png" | "application/pdf";
217
220
  sizeBytes: number;
@@ -242,6 +245,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
242
245
  sizeBytes: number;
243
246
  url?: string | undefined;
244
247
  }>;
248
+ proof_kinship_type: z.ZodOptional<z.ZodEnum<[string, string, string, string, string]>>;
245
249
  proof_kinship: z.ZodOptional<z.ZodObject<{
246
250
  url: z.ZodOptional<z.ZodString>;
247
251
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
@@ -292,7 +296,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
292
296
  complement: z.ZodOptional<z.ZodString>;
293
297
  mother_name: z.ZodString;
294
298
  district: z.ZodString;
295
- energy_account_in_requester_name: z.ZodString;
299
+ energy_account_in_requester_name: z.ZodEnum<[string, string]>;
296
300
  city: z.ZodString;
297
301
  energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
298
302
  state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
@@ -376,6 +380,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
376
380
  partner_cpf?: string | undefined;
377
381
  partner_city?: string | undefined;
378
382
  communion_regime?: string | undefined;
383
+ proof_kinship_type?: string | undefined;
379
384
  proof_kinship?: {
380
385
  mime: "image/jpeg" | "image/png" | "application/pdf";
381
386
  sizeBytes: number;
@@ -440,6 +445,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
440
445
  partner_cpf?: string | undefined;
441
446
  partner_city?: string | undefined;
442
447
  communion_regime?: string | undefined;
448
+ proof_kinship_type?: string | undefined;
443
449
  proof_kinship?: {
444
450
  mime: "image/jpeg" | "image/png" | "application/pdf";
445
451
  sizeBytes: number;
@@ -506,6 +512,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
506
512
  partner_cpf?: string | undefined;
507
513
  partner_city?: string | undefined;
508
514
  communion_regime?: string | undefined;
515
+ proof_kinship_type?: string | undefined;
509
516
  proof_kinship?: {
510
517
  mime: "image/jpeg" | "image/png" | "application/pdf";
511
518
  sizeBytes: number;
@@ -570,6 +577,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
570
577
  partner_cpf?: string | undefined;
571
578
  partner_city?: string | undefined;
572
579
  communion_regime?: string | undefined;
580
+ proof_kinship_type?: string | undefined;
573
581
  proof_kinship?: {
574
582
  mime: "image/jpeg" | "image/png" | "application/pdf";
575
583
  sizeBytes: number;