@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
@@ -15,16 +15,16 @@ declare const hdtEnergyPjObject: z.ZodObject<{
15
15
  legal_nature: z.ZodString;
16
16
  city: z.ZodString;
17
17
  economic_activity_group: z.ZodString;
18
- state: z.ZodString;
18
+ state: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
19
19
  economic_activity: z.ZodString;
20
20
  monthly_income: z.ZodNumber;
21
21
  }, "strict", z.ZodTypeAny, {
22
22
  number: string;
23
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
23
24
  cep: string;
24
25
  address: string;
25
26
  district: string;
26
27
  city: string;
27
- state: string;
28
28
  email: string;
29
29
  monthly_income: number;
30
30
  corporate_name: string;
@@ -37,11 +37,11 @@ declare const hdtEnergyPjObject: z.ZodObject<{
37
37
  complement?: string | undefined;
38
38
  }, {
39
39
  number: string;
40
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
40
41
  cep: string;
41
42
  address: string;
42
43
  district: string;
43
44
  city: string;
44
- state: string;
45
45
  email: string;
46
46
  monthly_income: number;
47
47
  corporate_name: string;
@@ -66,46 +66,46 @@ declare const hdtEnergyPjObject: z.ZodObject<{
66
66
  district: z.ZodString;
67
67
  sex: z.ZodEnum<["masculino", "feminino"]>;
68
68
  city: z.ZodString;
69
- state: z.ZodString;
69
+ state: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
70
70
  office: z.ZodString;
71
71
  mother_name: z.ZodString;
72
72
  nationality: z.ZodString;
73
73
  }, "strict", z.ZodTypeAny, {
74
74
  number: string;
75
- nationality: string;
75
+ sex: "masculino" | "feminino";
76
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
76
77
  name: string;
77
78
  cep: string;
78
79
  cpf: string;
79
80
  address: string;
80
81
  birth_date: string;
81
- sex: "masculino" | "feminino";
82
82
  mother_name: string;
83
83
  district: string;
84
84
  city: string;
85
- state: string;
85
+ nationality: string;
86
86
  cellphone: string;
87
87
  email: string;
88
88
  office: string;
89
89
  complement?: string | undefined;
90
90
  }, {
91
91
  number: string;
92
- nationality: string;
92
+ sex: "masculino" | "feminino";
93
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
93
94
  name: string;
94
95
  cep: string;
95
96
  cpf: string;
96
97
  address: string;
97
98
  birth_date: string;
98
- sex: "masculino" | "feminino";
99
99
  mother_name: string;
100
100
  district: string;
101
101
  city: string;
102
- state: string;
102
+ nationality: string;
103
103
  cellphone: string;
104
104
  email: string;
105
105
  office: string;
106
106
  complement?: string | undefined;
107
107
  }>, "many">;
108
- energy_bill_upload: z.ZodObject<{
108
+ voucher_local_installation_address: z.ZodObject<{
109
109
  url: z.ZodOptional<z.ZodString>;
110
110
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
111
111
  sizeBytes: z.ZodNumber;
@@ -118,8 +118,7 @@ declare const hdtEnergyPjObject: z.ZodObject<{
118
118
  sizeBytes: number;
119
119
  url?: string | undefined;
120
120
  }>;
121
- account_third_party: z.ZodEnum<["nao_se_aplica", "conjuge", "pai_mae", "filho_filha", "parente", "outro"]>;
122
- bond_document_upload: z.ZodOptional<z.ZodObject<{
121
+ proof_kinship: z.ZodOptional<z.ZodObject<{
123
122
  url: z.ZodOptional<z.ZodString>;
124
123
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
125
124
  sizeBytes: z.ZodNumber;
@@ -160,8 +159,7 @@ declare const hdtEnergyPjObject: z.ZodObject<{
160
159
  }>;
161
160
  rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
162
161
  }, "strip", z.ZodTypeAny, {
163
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
164
- energy_bill_upload: {
162
+ voucher_local_installation_address: {
165
163
  mime: "image/jpeg" | "image/png" | "application/pdf";
166
164
  sizeBytes: number;
167
165
  url?: string | undefined;
@@ -179,11 +177,11 @@ declare const hdtEnergyPjObject: z.ZodObject<{
179
177
  rd_re_insurance_toggle: boolean;
180
178
  financing_company: {
181
179
  number: string;
180
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
182
181
  cep: string;
183
182
  address: string;
184
183
  district: string;
185
184
  city: string;
186
- state: string;
187
185
  email: string;
188
186
  monthly_income: number;
189
187
  corporate_name: string;
@@ -197,30 +195,29 @@ declare const hdtEnergyPjObject: z.ZodObject<{
197
195
  };
198
196
  financing_company_guarantor: {
199
197
  number: string;
200
- nationality: string;
198
+ sex: "masculino" | "feminino";
199
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
201
200
  name: string;
202
201
  cep: string;
203
202
  cpf: string;
204
203
  address: string;
205
204
  birth_date: string;
206
- sex: "masculino" | "feminino";
207
205
  mother_name: string;
208
206
  district: string;
209
207
  city: string;
210
- state: string;
208
+ nationality: string;
211
209
  cellphone: string;
212
210
  email: string;
213
211
  office: string;
214
212
  complement?: string | undefined;
215
213
  }[];
216
- bond_document_upload?: {
214
+ proof_kinship?: {
217
215
  mime: "image/jpeg" | "image/png" | "application/pdf";
218
216
  sizeBytes: number;
219
217
  url?: string | undefined;
220
218
  } | undefined;
221
219
  }, {
222
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
223
- energy_bill_upload: {
220
+ voucher_local_installation_address: {
224
221
  mime: "image/jpeg" | "image/png" | "application/pdf";
225
222
  sizeBytes: number;
226
223
  url?: string | undefined;
@@ -237,11 +234,11 @@ declare const hdtEnergyPjObject: z.ZodObject<{
237
234
  };
238
235
  financing_company: {
239
236
  number: string;
237
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
240
238
  cep: string;
241
239
  address: string;
242
240
  district: string;
243
241
  city: string;
244
- state: string;
245
242
  email: string;
246
243
  monthly_income: number;
247
244
  corporate_name: string;
@@ -255,23 +252,23 @@ declare const hdtEnergyPjObject: z.ZodObject<{
255
252
  };
256
253
  financing_company_guarantor: {
257
254
  number: string;
258
- nationality: string;
255
+ sex: "masculino" | "feminino";
256
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
259
257
  name: string;
260
258
  cep: string;
261
259
  cpf: string;
262
260
  address: string;
263
261
  birth_date: string;
264
- sex: "masculino" | "feminino";
265
262
  mother_name: string;
266
263
  district: string;
267
264
  city: string;
268
- state: string;
265
+ nationality: string;
269
266
  cellphone: string;
270
267
  email: string;
271
268
  office: string;
272
269
  complement?: string | undefined;
273
270
  }[];
274
- bond_document_upload?: {
271
+ proof_kinship?: {
275
272
  mime: "image/jpeg" | "image/png" | "application/pdf";
276
273
  sizeBytes: number;
277
274
  url?: string | undefined;
@@ -293,16 +290,16 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
293
290
  legal_nature: z.ZodString;
294
291
  city: z.ZodString;
295
292
  economic_activity_group: z.ZodString;
296
- state: z.ZodString;
293
+ state: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
297
294
  economic_activity: z.ZodString;
298
295
  monthly_income: z.ZodNumber;
299
296
  }, "strict", z.ZodTypeAny, {
300
297
  number: string;
298
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
301
299
  cep: string;
302
300
  address: string;
303
301
  district: string;
304
302
  city: string;
305
- state: string;
306
303
  email: string;
307
304
  monthly_income: number;
308
305
  corporate_name: string;
@@ -315,11 +312,11 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
315
312
  complement?: string | undefined;
316
313
  }, {
317
314
  number: string;
315
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
318
316
  cep: string;
319
317
  address: string;
320
318
  district: string;
321
319
  city: string;
322
- state: string;
323
320
  email: string;
324
321
  monthly_income: number;
325
322
  corporate_name: string;
@@ -344,46 +341,46 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
344
341
  district: z.ZodString;
345
342
  sex: z.ZodEnum<["masculino", "feminino"]>;
346
343
  city: z.ZodString;
347
- state: z.ZodString;
344
+ state: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO"]>;
348
345
  office: z.ZodString;
349
346
  mother_name: z.ZodString;
350
347
  nationality: z.ZodString;
351
348
  }, "strict", z.ZodTypeAny, {
352
349
  number: string;
353
- nationality: string;
350
+ sex: "masculino" | "feminino";
351
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
354
352
  name: string;
355
353
  cep: string;
356
354
  cpf: string;
357
355
  address: string;
358
356
  birth_date: string;
359
- sex: "masculino" | "feminino";
360
357
  mother_name: string;
361
358
  district: string;
362
359
  city: string;
363
- state: string;
360
+ nationality: string;
364
361
  cellphone: string;
365
362
  email: string;
366
363
  office: string;
367
364
  complement?: string | undefined;
368
365
  }, {
369
366
  number: string;
370
- nationality: string;
367
+ sex: "masculino" | "feminino";
368
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
371
369
  name: string;
372
370
  cep: string;
373
371
  cpf: string;
374
372
  address: string;
375
373
  birth_date: string;
376
- sex: "masculino" | "feminino";
377
374
  mother_name: string;
378
375
  district: string;
379
376
  city: string;
380
- state: string;
377
+ nationality: string;
381
378
  cellphone: string;
382
379
  email: string;
383
380
  office: string;
384
381
  complement?: string | undefined;
385
382
  }>, "many">;
386
- energy_bill_upload: z.ZodObject<{
383
+ voucher_local_installation_address: z.ZodObject<{
387
384
  url: z.ZodOptional<z.ZodString>;
388
385
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
389
386
  sizeBytes: z.ZodNumber;
@@ -396,8 +393,7 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
396
393
  sizeBytes: number;
397
394
  url?: string | undefined;
398
395
  }>;
399
- account_third_party: z.ZodEnum<["nao_se_aplica", "conjuge", "pai_mae", "filho_filha", "parente", "outro"]>;
400
- bond_document_upload: z.ZodOptional<z.ZodObject<{
396
+ proof_kinship: z.ZodOptional<z.ZodObject<{
401
397
  url: z.ZodOptional<z.ZodString>;
402
398
  mime: z.ZodEnum<["image/jpeg", "image/png", "application/pdf"]>;
403
399
  sizeBytes: z.ZodNumber;
@@ -438,8 +434,7 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
438
434
  }>;
439
435
  rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
440
436
  }, "strict", z.ZodTypeAny, {
441
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
442
- energy_bill_upload: {
437
+ voucher_local_installation_address: {
443
438
  mime: "image/jpeg" | "image/png" | "application/pdf";
444
439
  sizeBytes: number;
445
440
  url?: string | undefined;
@@ -457,11 +452,11 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
457
452
  rd_re_insurance_toggle: boolean;
458
453
  financing_company: {
459
454
  number: string;
455
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
460
456
  cep: string;
461
457
  address: string;
462
458
  district: string;
463
459
  city: string;
464
- state: string;
465
460
  email: string;
466
461
  monthly_income: number;
467
462
  corporate_name: string;
@@ -475,30 +470,29 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
475
470
  };
476
471
  financing_company_guarantor: {
477
472
  number: string;
478
- nationality: string;
473
+ sex: "masculino" | "feminino";
474
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
479
475
  name: string;
480
476
  cep: string;
481
477
  cpf: string;
482
478
  address: string;
483
479
  birth_date: string;
484
- sex: "masculino" | "feminino";
485
480
  mother_name: string;
486
481
  district: string;
487
482
  city: string;
488
- state: string;
483
+ nationality: string;
489
484
  cellphone: string;
490
485
  email: string;
491
486
  office: string;
492
487
  complement?: string | undefined;
493
488
  }[];
494
- bond_document_upload?: {
489
+ proof_kinship?: {
495
490
  mime: "image/jpeg" | "image/png" | "application/pdf";
496
491
  sizeBytes: number;
497
492
  url?: string | undefined;
498
493
  } | undefined;
499
494
  }, {
500
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
501
- energy_bill_upload: {
495
+ voucher_local_installation_address: {
502
496
  mime: "image/jpeg" | "image/png" | "application/pdf";
503
497
  sizeBytes: number;
504
498
  url?: string | undefined;
@@ -515,11 +509,11 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
515
509
  };
516
510
  financing_company: {
517
511
  number: string;
512
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
518
513
  cep: string;
519
514
  address: string;
520
515
  district: string;
521
516
  city: string;
522
- state: string;
523
517
  email: string;
524
518
  monthly_income: number;
525
519
  corporate_name: string;
@@ -533,31 +527,30 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
533
527
  };
534
528
  financing_company_guarantor: {
535
529
  number: string;
536
- nationality: string;
530
+ sex: "masculino" | "feminino";
531
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
537
532
  name: string;
538
533
  cep: string;
539
534
  cpf: string;
540
535
  address: string;
541
536
  birth_date: string;
542
- sex: "masculino" | "feminino";
543
537
  mother_name: string;
544
538
  district: string;
545
539
  city: string;
546
- state: string;
540
+ nationality: string;
547
541
  cellphone: string;
548
542
  email: string;
549
543
  office: string;
550
544
  complement?: string | undefined;
551
545
  }[];
552
- bond_document_upload?: {
546
+ proof_kinship?: {
553
547
  mime: "image/jpeg" | "image/png" | "application/pdf";
554
548
  sizeBytes: number;
555
549
  url?: string | undefined;
556
550
  } | undefined;
557
551
  rd_re_insurance_toggle?: boolean | undefined;
558
552
  }>, {
559
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
560
- energy_bill_upload: {
553
+ voucher_local_installation_address: {
561
554
  mime: "image/jpeg" | "image/png" | "application/pdf";
562
555
  sizeBytes: number;
563
556
  url?: string | undefined;
@@ -575,11 +568,11 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
575
568
  rd_re_insurance_toggle: boolean;
576
569
  financing_company: {
577
570
  number: string;
571
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
578
572
  cep: string;
579
573
  address: string;
580
574
  district: string;
581
575
  city: string;
582
- state: string;
583
576
  email: string;
584
577
  monthly_income: number;
585
578
  corporate_name: string;
@@ -593,30 +586,29 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
593
586
  };
594
587
  financing_company_guarantor: {
595
588
  number: string;
596
- nationality: string;
589
+ sex: "masculino" | "feminino";
590
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
597
591
  name: string;
598
592
  cep: string;
599
593
  cpf: string;
600
594
  address: string;
601
595
  birth_date: string;
602
- sex: "masculino" | "feminino";
603
596
  mother_name: string;
604
597
  district: string;
605
598
  city: string;
606
- state: string;
599
+ nationality: string;
607
600
  cellphone: string;
608
601
  email: string;
609
602
  office: string;
610
603
  complement?: string | undefined;
611
604
  }[];
612
- bond_document_upload?: {
605
+ proof_kinship?: {
613
606
  mime: "image/jpeg" | "image/png" | "application/pdf";
614
607
  sizeBytes: number;
615
608
  url?: string | undefined;
616
609
  } | undefined;
617
610
  }, {
618
- account_third_party: "nao_se_aplica" | "conjuge" | "pai_mae" | "filho_filha" | "parente" | "outro";
619
- energy_bill_upload: {
611
+ voucher_local_installation_address: {
620
612
  mime: "image/jpeg" | "image/png" | "application/pdf";
621
613
  sizeBytes: number;
622
614
  url?: string | undefined;
@@ -633,11 +625,11 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
633
625
  };
634
626
  financing_company: {
635
627
  number: string;
628
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
636
629
  cep: string;
637
630
  address: string;
638
631
  district: string;
639
632
  city: string;
640
- state: string;
641
633
  email: string;
642
634
  monthly_income: number;
643
635
  corporate_name: string;
@@ -651,23 +643,23 @@ declare const hdtEnergyPjSchema: z.ZodEffects<z.ZodObject<{
651
643
  };
652
644
  financing_company_guarantor: {
653
645
  number: string;
654
- nationality: string;
646
+ sex: "masculino" | "feminino";
647
+ state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "DF" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO";
655
648
  name: string;
656
649
  cep: string;
657
650
  cpf: string;
658
651
  address: string;
659
652
  birth_date: string;
660
- sex: "masculino" | "feminino";
661
653
  mother_name: string;
662
654
  district: string;
663
655
  city: string;
664
- state: string;
656
+ nationality: string;
665
657
  cellphone: string;
666
658
  email: string;
667
659
  office: string;
668
660
  complement?: string | undefined;
669
661
  }[];
670
- bond_document_upload?: {
662
+ proof_kinship?: {
671
663
  mime: "image/jpeg" | "image/png" | "application/pdf";
672
664
  sizeBytes: number;
673
665
  url?: string | undefined;
@@ -4,15 +4,41 @@ var zod = require('zod');
4
4
 
5
5
  // src/domains/financing/formalization/schemas/HdtEnergyPJSchema.ts
6
6
  var SexEnum = zod.z.enum(["masculino", "feminino"]);
7
+ var UfEnum = zod.z.enum([
8
+ "AC",
9
+ "AL",
10
+ "AP",
11
+ "AM",
12
+ "BA",
13
+ "CE",
14
+ "DF",
15
+ "ES",
16
+ "GO",
17
+ "MA",
18
+ "MT",
19
+ "MS",
20
+ "MG",
21
+ "PA",
22
+ "PB",
23
+ "PR",
24
+ "PE",
25
+ "PI",
26
+ "RJ",
27
+ "RN",
28
+ "RS",
29
+ "RO",
30
+ "RR",
31
+ "SC",
32
+ "SP",
33
+ "SE",
34
+ "TO"
35
+ ]);
7
36
  function textField(maxLength) {
8
37
  const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
9
38
  return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
10
39
  }
11
40
  zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
12
41
  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");
13
- function selectField(values) {
14
- return zod.z.enum(values);
15
- }
16
42
  var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
17
43
  var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
18
44
  var fileUploadField = zod.z.object({
@@ -112,16 +138,16 @@ function isNotFutureDMY(value, reference = /* @__PURE__ */ new Date()) {
112
138
  }
113
139
 
114
140
  // src/shared/regex/index.ts
115
- var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF deve ter 11 d\xEDgitos").refine(isValidCPF, "CPF inv\xE1lido");
116
- var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ deve ter 14 d\xEDgitos").refine(isValidCNPJ, "CNPJ inv\xE1lido");
141
+ var cpfSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
142
+ var cnpjSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
117
143
  zod.z.string().transform(onlyDigits).refine(
118
144
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
119
145
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
120
146
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
121
- var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP deve ter 8 d\xEDgitos");
122
- var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone deve ter 11 d\xEDgitos com DDD");
147
+ var cepSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
148
+ var phoneBRSchema = zod.z.string().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
123
149
  var emailSchema = zod.z.string().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
124
- 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");
150
+ var dateDMYSchema = zod.z.string().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
125
151
  var birthDateSchema = dateDMYSchema.refine(
126
152
  (v) => isAdultDMY(v),
127
153
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -132,28 +158,18 @@ var issueDateSchema = dateDMYSchema.refine(
132
158
  );
133
159
  var currencySchema = zod.z.number({ invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
134
160
  zod.z.number().int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
135
- var THIRD_PARTY_OPTIONS = [
136
- "nao_se_aplica",
137
- "conjuge",
138
- "pai_mae",
139
- "filho_filha",
140
- "parente",
141
- "outro"
142
- ];
143
161
  var formalizationExtras = {
144
- energy_bill_upload: fileUploadField,
145
- account_third_party: selectField(THIRD_PARTY_OPTIONS),
146
- bond_document_upload: fileUploadField.optional(),
162
+ voucher_local_installation_address: fileUploadField,
163
+ proof_kinship: fileUploadField.optional(),
147
164
  document_front_upload: fileUploadField,
148
165
  document_back_upload: fileUploadField,
149
- // RN-014: seguro RD/RE começa ON.
150
166
  rd_re_insurance_toggle: zod.z.boolean().default(true)
151
167
  };
152
168
  function applyCommonRefinements(data, ctx) {
153
- if ("account_third_party" in data && typeof data.account_third_party === "string" && data.account_third_party !== "nao_se_aplica" && !data.bond_document_upload) {
169
+ 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) {
154
170
  ctx.addIssue({
155
171
  code: zod.z.ZodIssueCode.custom,
156
- path: ["bond_document_upload"],
172
+ path: ["proof_kinship"],
157
173
  message: "Documento de v\xEDnculo \xE9 obrigat\xF3rio quando a conta est\xE1 em nome de terceiro"
158
174
  });
159
175
  }
@@ -179,7 +195,7 @@ var hdtEnergyPjObject = zod.z.object({
179
195
  legal_nature: textField(),
180
196
  city: textField(),
181
197
  economic_activity_group: textField(),
182
- state: textField(2),
198
+ state: UfEnum,
183
199
  economic_activity: textField(),
184
200
  monthly_income: currencySchema
185
201
  }).strict(),
@@ -197,7 +213,7 @@ var hdtEnergyPjObject = zod.z.object({
197
213
  district: textField(),
198
214
  sex: SexEnum,
199
215
  city: textField(),
200
- state: textField(2),
216
+ state: UfEnum,
201
217
  office: textField(),
202
218
  mother_name: textField(),
203
219
  nationality: textField()
@@ -1,2 +1,2 @@
1
- export { hdtEnergyPjObject, hdtEnergyPjSchema } from '../../../chunk-G3T562PC.mjs';
2
- import '../../../chunk-NDJRJOFE.mjs';
1
+ export { hdtEnergyPjObject, hdtEnergyPjSchema } from '../../../chunk-FRMGP3C3.mjs';
2
+ import '../../../chunk-HBTFOSJU.mjs';