@77sol-lab/form-schemas 1.6.0 → 1.7.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 (162) hide show
  1. package/{chunk-RDLOQ6HV.mjs → chunk-22SYVROO.mjs} +2 -2
  2. package/{chunk-35IKZUF4.mjs → chunk-2BHUMNK5.mjs} +3 -3
  3. package/{chunk-E7JXDCBO.mjs → chunk-4PZYGTUU.mjs} +4 -4
  4. package/{chunk-LOEAPRSO.mjs → chunk-5EHEC3RT.mjs} +3 -3
  5. package/{chunk-OFCVHF6Z.mjs → chunk-5P6NWFTX.mjs} +3 -3
  6. package/{chunk-ZQ2PKLTM.mjs → chunk-65EE5FW3.mjs} +3 -3
  7. package/{chunk-GVOOT43S.mjs → chunk-6ZUOXZY3.mjs} +2 -2
  8. package/{chunk-PY7IUNIU.mjs → chunk-AM7HTUI3.mjs} +2 -2
  9. package/{chunk-BRBOOPFN.mjs → chunk-BYAXV4TG.mjs} +3 -3
  10. package/{chunk-T2MFLA6J.mjs → chunk-CPDLICOP.mjs} +3 -3
  11. package/{chunk-QUBWDT4D.mjs → chunk-DIYEI2PA.mjs} +2 -2
  12. package/{chunk-ACJUTGEC.mjs → chunk-DJDG3UYR.mjs} +2 -2
  13. package/{chunk-5YFVPFSM.mjs → chunk-ENDOIQ32.mjs} +69 -9
  14. package/{chunk-Y7TQ2NQ2.mjs → chunk-FBDTG3WD.mjs} +3 -3
  15. package/{chunk-LEUH6IFB.mjs → chunk-FIPFWGBQ.mjs} +3 -3
  16. package/{chunk-2ZKUSLGU.mjs → chunk-HMC73HBG.mjs} +3 -3
  17. package/{chunk-CSGG5DZE.mjs → chunk-JZ7DY7SU.mjs} +1 -1
  18. package/{chunk-BITN6YDR.mjs → chunk-KBILM3GO.mjs} +3 -3
  19. package/{chunk-W6J3SW2H.mjs → chunk-KJTTMDZP.mjs} +3 -3
  20. package/{chunk-57DSP6GG.mjs → chunk-L3OISOZA.mjs} +2 -2
  21. package/{chunk-X4LHQVVJ.mjs → chunk-LU5ODSGQ.mjs} +2 -2
  22. package/{chunk-WPJOW7IE.mjs → chunk-MM6LQXI6.mjs} +3 -3
  23. package/{chunk-ISJKYUMR.mjs → chunk-ORQ52KPA.mjs} +3 -3
  24. package/{chunk-AQ43O5UO.mjs → chunk-PDBPFNAN.mjs} +34 -36
  25. package/{chunk-SKSUT6CG.mjs → chunk-QMODZE4A.mjs} +3 -3
  26. package/{chunk-UYCCHEM5.mjs → chunk-RWOX5QO3.mjs} +3 -3
  27. package/{chunk-K23FTEKB.mjs → chunk-TDL42FZZ.mjs} +2 -2
  28. package/{chunk-O5XQR5HN.mjs → chunk-TKHIBI4R.mjs} +2 -2
  29. package/{chunk-JBTU6WKN.mjs → chunk-U4ZDMJX2.mjs} +3 -3
  30. package/{chunk-BSG5DCL7.mjs → chunk-UF45URAJ.mjs} +2 -2
  31. package/{chunk-66Y3FO5R.mjs → chunk-VDFDTLU5.mjs} +3 -3
  32. package/{chunk-LVFKP46R.mjs → chunk-VP4HT24O.mjs} +3 -3
  33. package/{chunk-XVITSWCY.mjs → chunk-Y67MNG2X.mjs} +2 -2
  34. package/financing/formalization/index.d.cts +695 -657
  35. package/financing/formalization/index.d.ts +695 -657
  36. package/financing/formalization/index.js +99 -39
  37. package/financing/formalization/index.mjs +33 -33
  38. package/financing/formalization/schemas/AlfaPFSchema.d.cts +13 -13
  39. package/financing/formalization/schemas/AlfaPFSchema.d.ts +13 -13
  40. package/financing/formalization/schemas/AlfaPFSchema.js +51 -9
  41. package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
  42. package/financing/formalization/schemas/AlfaPJSchema.d.cts +19 -19
  43. package/financing/formalization/schemas/AlfaPJSchema.d.ts +19 -19
  44. package/financing/formalization/schemas/AlfaPJSchema.js +51 -9
  45. package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
  46. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +13 -13
  47. package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +13 -13
  48. package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +51 -9
  49. package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
  50. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +19 -19
  51. package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +19 -19
  52. package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +51 -9
  53. package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
  54. package/financing/formalization/schemas/BtgPFSchema.d.cts +13 -13
  55. package/financing/formalization/schemas/BtgPFSchema.d.ts +13 -13
  56. package/financing/formalization/schemas/BtgPFSchema.js +51 -9
  57. package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
  58. package/financing/formalization/schemas/BtgPJSchema.d.cts +33 -33
  59. package/financing/formalization/schemas/BtgPJSchema.d.ts +33 -33
  60. package/financing/formalization/schemas/BtgPJSchema.js +51 -9
  61. package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
  62. package/financing/formalization/schemas/BvPFSchema.d.cts +18 -18
  63. package/financing/formalization/schemas/BvPFSchema.d.ts +18 -18
  64. package/financing/formalization/schemas/BvPFSchema.js +51 -9
  65. package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
  66. package/financing/formalization/schemas/BvPJSchema.d.cts +40 -40
  67. package/financing/formalization/schemas/BvPJSchema.d.ts +40 -40
  68. package/financing/formalization/schemas/BvPJSchema.js +51 -9
  69. package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
  70. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +13 -13
  71. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +13 -13
  72. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +51 -9
  73. package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
  74. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +19 -19
  75. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +19 -19
  76. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +51 -9
  77. package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
  78. package/financing/formalization/schemas/CashMePFSchema.d.cts +13 -13
  79. package/financing/formalization/schemas/CashMePFSchema.d.ts +13 -13
  80. package/financing/formalization/schemas/CashMePFSchema.js +51 -9
  81. package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
  82. package/financing/formalization/schemas/CashMePJSchema.d.cts +19 -19
  83. package/financing/formalization/schemas/CashMePJSchema.d.ts +19 -19
  84. package/financing/formalization/schemas/CashMePJSchema.js +51 -9
  85. package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
  86. package/financing/formalization/schemas/Credito77PFSchema.d.cts +13 -13
  87. package/financing/formalization/schemas/Credito77PFSchema.d.ts +13 -13
  88. package/financing/formalization/schemas/Credito77PFSchema.js +51 -9
  89. package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
  90. package/financing/formalization/schemas/Credito77PJSchema.d.cts +19 -19
  91. package/financing/formalization/schemas/Credito77PJSchema.d.ts +19 -19
  92. package/financing/formalization/schemas/Credito77PJSchema.js +51 -9
  93. package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
  94. package/financing/formalization/schemas/EosPFSchema.d.cts +13 -13
  95. package/financing/formalization/schemas/EosPFSchema.d.ts +13 -13
  96. package/financing/formalization/schemas/EosPFSchema.js +51 -9
  97. package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
  98. package/financing/formalization/schemas/EosPJSchema.d.cts +19 -19
  99. package/financing/formalization/schemas/EosPJSchema.d.ts +19 -19
  100. package/financing/formalization/schemas/EosPJSchema.js +51 -9
  101. package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
  102. package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +13 -13
  103. package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +13 -13
  104. package/financing/formalization/schemas/HdtEnergyPFSchema.js +51 -9
  105. package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
  106. package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +19 -19
  107. package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +19 -19
  108. package/financing/formalization/schemas/HdtEnergyPJSchema.js +51 -9
  109. package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
  110. package/financing/formalization/schemas/LosangoPFSchema.d.cts +13 -13
  111. package/financing/formalization/schemas/LosangoPFSchema.d.ts +13 -13
  112. package/financing/formalization/schemas/LosangoPFSchema.js +51 -9
  113. package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
  114. package/financing/formalization/schemas/LosangoPJSchema.d.cts +19 -19
  115. package/financing/formalization/schemas/LosangoPJSchema.d.ts +19 -19
  116. package/financing/formalization/schemas/LosangoPJSchema.js +51 -9
  117. package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
  118. package/financing/formalization/schemas/SafraPFSchema.d.cts +13 -13
  119. package/financing/formalization/schemas/SafraPFSchema.d.ts +13 -13
  120. package/financing/formalization/schemas/SafraPFSchema.js +51 -9
  121. package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
  122. package/financing/formalization/schemas/SafraPJSchema.d.cts +19 -19
  123. package/financing/formalization/schemas/SafraPJSchema.d.ts +19 -19
  124. package/financing/formalization/schemas/SafraPJSchema.js +51 -9
  125. package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
  126. package/financing/formalization/schemas/SantanderPFSchema.d.cts +13 -13
  127. package/financing/formalization/schemas/SantanderPFSchema.d.ts +13 -13
  128. package/financing/formalization/schemas/SantanderPFSchema.js +51 -9
  129. package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
  130. package/financing/formalization/schemas/SantanderPJSchema.d.cts +19 -19
  131. package/financing/formalization/schemas/SantanderPJSchema.d.ts +19 -19
  132. package/financing/formalization/schemas/SantanderPJSchema.js +51 -9
  133. package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
  134. package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +13 -13
  135. package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +13 -13
  136. package/financing/formalization/schemas/SolAgoraPFSchema.js +51 -9
  137. package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
  138. package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +19 -19
  139. package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +19 -19
  140. package/financing/formalization/schemas/SolAgoraPJSchema.js +51 -9
  141. package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
  142. package/financing/formalization/schemas/SolfacilPFSchema.d.cts +13 -13
  143. package/financing/formalization/schemas/SolfacilPFSchema.d.ts +13 -13
  144. package/financing/formalization/schemas/SolfacilPFSchema.js +51 -9
  145. package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
  146. package/financing/formalization/schemas/SolfacilPJSchema.d.cts +26 -26
  147. package/financing/formalization/schemas/SolfacilPJSchema.d.ts +26 -26
  148. package/financing/formalization/schemas/SolfacilPJSchema.js +51 -9
  149. package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
  150. package/financing/formalization/schemas/UnifiedPFSchema.d.cts +18 -18
  151. package/financing/formalization/schemas/UnifiedPFSchema.d.ts +18 -18
  152. package/financing/formalization/schemas/UnifiedPFSchema.js +51 -9
  153. package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
  154. package/financing/formalization/schemas/UnifiedPJSchema.d.cts +66 -66
  155. package/financing/formalization/schemas/UnifiedPJSchema.d.ts +66 -66
  156. package/financing/formalization/schemas/UnifiedPJSchema.js +52 -10
  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 +99 -39
  161. package/index.mjs +33 -33
  162. package/package.json +1 -1
@@ -46,6 +46,27 @@ var DocumentTypeEnum = enumField([
46
46
  "carteira_nacional_de_habilita\xE7\xE3o"
47
47
  ]);
48
48
 
49
+ // src/shared/enums/nationality.ts
50
+ var NATIONALITY_BRAZIL = "brasil";
51
+ var NationalityEnum = enumField([
52
+ NATIONALITY_BRAZIL,
53
+ "argentina",
54
+ "bolivia",
55
+ "chile",
56
+ "colombia",
57
+ "paraguai",
58
+ "peru",
59
+ "uruguai",
60
+ "venezuela",
61
+ "portugal",
62
+ "espanha",
63
+ "italia",
64
+ "estados_unidos",
65
+ "japao",
66
+ "china",
67
+ "outro"
68
+ ]);
69
+
49
70
  // src/shared/enums/proof-kinship-type.ts
50
71
  var ProofKinshipTypeEnum = enumField([
51
72
  "certidao_casamento",
@@ -178,16 +199,22 @@ function isNotFutureDMY(value, reference = /* @__PURE__ */ new Date()) {
178
199
  }
179
200
 
180
201
  // src/shared/regex/index.ts
181
- var cpfSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
182
- var cnpjSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
183
- requiredString().transform(onlyDigits).refine(
202
+ function requiredFormatString() {
203
+ return requiredString().trim().min(1, REQUIRED_MESSAGE);
204
+ }
205
+ var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
206
+ var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
207
+ requiredFormatString().transform(onlyDigits).refine(
184
208
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
185
209
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
186
210
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
187
- var cepSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
188
- var phoneBRSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
189
- var emailSchema = requiredString().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
190
- var dateDMYSchema = requiredString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
211
+ var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
212
+ var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
213
+ var emailSchema = requiredFormatString().refine(
214
+ (v) => PATTERNS.email.test(v),
215
+ "E-mail inv\xE1lido"
216
+ );
217
+ var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
191
218
  var birthDateSchema = dateDMYSchema.refine(
192
219
  (v) => isAdultDMY(v),
193
220
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -196,7 +223,22 @@ var issueDateSchema = dateDMYSchema.refine(
196
223
  (v) => isNotFutureDMY(v),
197
224
  "Data de emiss\xE3o n\xE3o pode ser futura"
198
225
  );
199
- var currencySchema = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
226
+ function parseBRLCurrency(value) {
227
+ if (typeof value !== "string") {
228
+ return value;
229
+ }
230
+ const trimmed = value.trim();
231
+ if (trimmed === "") {
232
+ return void 0;
233
+ }
234
+ const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
235
+ const parsed = Number(normalized);
236
+ return Number.isNaN(parsed) ? value : parsed;
237
+ }
238
+ var currencySchema = zod.z.preprocess(
239
+ parseBRLCurrency,
240
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
241
+ );
200
242
  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");
201
243
  var formalizationExtras = {
202
244
  voucher_local_installation_address: fileUploadField,
@@ -270,7 +312,7 @@ var unifiedPjObject = zod.z.object({
270
312
  city: textField(),
271
313
  state: UfEnum,
272
314
  mother_name: textField(),
273
- nationality: textField(),
315
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
274
316
  office: textField().optional(),
275
317
  phone: phoneBRSchema.optional(),
276
318
  civil_status: textField().optional(),
@@ -307,7 +349,7 @@ var unifiedPjObject = zod.z.object({
307
349
  city: textField(),
308
350
  state: UfEnum,
309
351
  mother_name: textField(),
310
- nationality: textField(),
352
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
311
353
  office: textField().optional(),
312
354
  phone: phoneBRSchema.optional(),
313
355
  civil_status: textField().optional(),
@@ -1,3 +1,3 @@
1
- export { unifiedPjObject, unifiedPjSchema } from '../../../chunk-E7JXDCBO.mjs';
2
- import '../../../chunk-CSGG5DZE.mjs';
3
- import '../../../chunk-5YFVPFSM.mjs';
1
+ export { unifiedPjObject, unifiedPjSchema } from '../../../chunk-4PZYGTUU.mjs';
2
+ import '../../../chunk-JZ7DY7SU.mjs';
3
+ import '../../../chunk-ENDOIQ32.mjs';
package/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { BANK_SLUGS, Bank, BankEnum, BankSlug, CIVIL_STATUS_REQUIRING_PARTNER, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, FormalizationFieldKind, FormalizationFieldMeta, FormalizationOptionField, NATIONALITY_BRAZIL, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, PartnerField, PersonType, UNIFIED_SLUG, UnifiedSlug, applyPfRefinements, applyPjRefinements, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './financing/formalization/index.cjs';
1
+ export { BANK_SLUGS, Bank, BankEnum, BankSlug, CIVIL_STATUS_REQUIRING_PARTNER, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, FormalizationFieldKind, FormalizationFieldMeta, FormalizationOptionField, NATIONALITY_BRAZIL, Nationality, NationalityEnum, NationalityLabels, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, PartnerField, PersonType, UNIFIED_SLUG, UnifiedSlug, applyPfRefinements, applyPjRefinements, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './financing/formalization/index.cjs';
2
2
  export { unifiedPfObject, unifiedPfSchema } from './financing/formalization/schemas/UnifiedPFSchema.cjs';
3
3
  export { unifiedPjObject, unifiedPjSchema } from './financing/formalization/schemas/UnifiedPJSchema.cjs';
4
4
  import 'zod';
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { BANK_SLUGS, Bank, BankEnum, BankSlug, CIVIL_STATUS_REQUIRING_PARTNER, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, FormalizationFieldKind, FormalizationFieldMeta, FormalizationOptionField, NATIONALITY_BRAZIL, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, PartnerField, PersonType, UNIFIED_SLUG, UnifiedSlug, applyPfRefinements, applyPjRefinements, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './financing/formalization/index.js';
1
+ export { BANK_SLUGS, Bank, BankEnum, BankSlug, CIVIL_STATUS_REQUIRING_PARTNER, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, FormalizationFieldKind, FormalizationFieldMeta, FormalizationOptionField, NATIONALITY_BRAZIL, Nationality, NationalityEnum, NationalityLabels, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, PartnerField, PersonType, UNIFIED_SLUG, UnifiedSlug, applyPfRefinements, applyPjRefinements, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './financing/formalization/index.js';
2
2
  export { unifiedPfObject, unifiedPfSchema } from './financing/formalization/schemas/UnifiedPFSchema.js';
3
3
  export { unifiedPjObject, unifiedPjSchema } from './financing/formalization/schemas/UnifiedPJSchema.js';
4
4
  import 'zod';
package/index.js CHANGED
@@ -84,6 +84,42 @@ var DocumentTypeLabels = {
84
84
 
85
85
  // src/shared/enums/nationality.ts
86
86
  var NATIONALITY_BRAZIL = "brasil";
87
+ var NationalityEnum = enumField([
88
+ NATIONALITY_BRAZIL,
89
+ "argentina",
90
+ "bolivia",
91
+ "chile",
92
+ "colombia",
93
+ "paraguai",
94
+ "peru",
95
+ "uruguai",
96
+ "venezuela",
97
+ "portugal",
98
+ "espanha",
99
+ "italia",
100
+ "estados_unidos",
101
+ "japao",
102
+ "china",
103
+ "outro"
104
+ ]);
105
+ var NationalityLabels = {
106
+ brasil: "Brasil",
107
+ argentina: "Argentina",
108
+ bolivia: "Bol\xEDvia",
109
+ chile: "Chile",
110
+ colombia: "Col\xF4mbia",
111
+ paraguai: "Paraguai",
112
+ peru: "Peru",
113
+ uruguai: "Uruguai",
114
+ venezuela: "Venezuela",
115
+ portugal: "Portugal",
116
+ espanha: "Espanha",
117
+ italia: "It\xE1lia",
118
+ estados_unidos: "Estados Unidos",
119
+ japao: "Jap\xE3o",
120
+ china: "China",
121
+ outro: "Outro"
122
+ };
87
123
 
88
124
  // src/shared/enums/nature-of-occupation-type.ts
89
125
  var NatureOfOccupationTypeEnum = enumField(["autonomo", "clt", "aposentado", "empresario"]);
@@ -237,6 +273,7 @@ var OCCUPATIONS_REQUIRING_CNPJ = ["empresario", "empresario_ou_proprietario"];
237
273
  // src/domains/financing/formalization/optionLabels.ts
238
274
  var FORMALIZATION_OPTION_LABELS = {
239
275
  sex: SexLabels,
276
+ nationality: NationalityLabels,
240
277
  type_doc: DocumentTypeLabels,
241
278
  partner_type_doc: DocumentTypeLabels,
242
279
  residence_situation: ResidenceTypeLabels,
@@ -356,16 +393,22 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
356
393
  }
357
394
 
358
395
  // src/shared/regex/index.ts
359
- var cpfSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
360
- var cnpjSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
361
- var cpfCnpjSchema = requiredString().transform(onlyDigits).refine(
396
+ function requiredFormatString() {
397
+ return requiredString().trim().min(1, REQUIRED_MESSAGE);
398
+ }
399
+ var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
400
+ var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
401
+ var cpfCnpjSchema = requiredFormatString().transform(onlyDigits).refine(
362
402
  (v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
363
403
  "Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
364
404
  ).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
365
- var cepSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
366
- var phoneBRSchema = requiredString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
367
- var emailSchema = requiredString().trim().refine((v) => PATTERNS.email.test(v), "E-mail inv\xE1lido");
368
- var dateDMYSchema = requiredString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
405
+ var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
406
+ var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
407
+ var emailSchema = requiredFormatString().refine(
408
+ (v) => PATTERNS.email.test(v),
409
+ "E-mail inv\xE1lido"
410
+ );
411
+ var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
369
412
  var birthDateSchema = dateDMYSchema.refine(
370
413
  (v) => isAdultDMY(v),
371
414
  "\xC9 necess\xE1rio ser maior de idade (18+)"
@@ -374,7 +417,22 @@ var issueDateSchema = dateDMYSchema.refine(
374
417
  (v) => isNotFutureDMY(v),
375
418
  "Data de emiss\xE3o n\xE3o pode ser futura"
376
419
  );
377
- var currencySchema = zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo");
420
+ function parseBRLCurrency(value) {
421
+ if (typeof value !== "string") {
422
+ return value;
423
+ }
424
+ const trimmed = value.trim();
425
+ if (trimmed === "") {
426
+ return void 0;
427
+ }
428
+ const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
429
+ const parsed = Number(normalized);
430
+ return Number.isNaN(parsed) ? value : parsed;
431
+ }
432
+ var currencySchema = zod.z.preprocess(
433
+ parseBRLCurrency,
434
+ zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
435
+ );
378
436
  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");
379
437
 
380
438
  // src/domains/financing/formalization/refinements.ts
@@ -467,7 +525,7 @@ var alfaPfObject = zod.z.object({
467
525
  city: textField(),
468
526
  energy_bill_owner_document: cpfCnpjSchema.optional(),
469
527
  state: UfEnum,
470
- nationality: textField(),
528
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
471
529
  cellphone: phoneBRSchema,
472
530
  email: emailSchema,
473
531
  monthly_income: currencySchema,
@@ -515,7 +573,7 @@ var alfaPjObject = zod.z.object({
515
573
  state: UfEnum,
516
574
  office: textField(),
517
575
  mother_name: textField(),
518
- nationality: textField()
576
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
519
577
  }).strict()
520
578
  )
521
579
  });
@@ -536,7 +594,7 @@ var bancoDoBrasilPfObject = zod.z.object({
536
594
  city: textField(),
537
595
  energy_bill_owner_document: cpfCnpjSchema.optional(),
538
596
  state: UfEnum,
539
- nationality: textField(),
597
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
540
598
  cellphone: phoneBRSchema,
541
599
  email: emailSchema,
542
600
  monthly_income: currencySchema,
@@ -584,7 +642,7 @@ var bancoDoBrasilPjObject = zod.z.object({
584
642
  state: UfEnum,
585
643
  office: textField(),
586
644
  mother_name: textField(),
587
- nationality: textField()
645
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
588
646
  }).strict()
589
647
  )
590
648
  });
@@ -605,7 +663,7 @@ var btgPfObject = zod.z.object({
605
663
  city: textField(),
606
664
  energy_bill_owner_document: cpfCnpjSchema.optional(),
607
665
  state: UfEnum,
608
- nationality: textField(),
666
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
609
667
  cellphone: phoneBRSchema,
610
668
  email: emailSchema,
611
669
  monthly_income: currencySchema,
@@ -664,7 +722,7 @@ var btgPjObject = zod.z.object({
664
722
  monthly_income: currencySchema,
665
723
  patrimony: currencySchema,
666
724
  uf_naturalness: UfEnum,
667
- nationality: textField()
725
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
668
726
  }).strict()
669
727
  )
670
728
  });
@@ -689,7 +747,7 @@ var bvPfObject = zod.z.object({
689
747
  energy_bill_owner_document: cpfCnpjSchema.optional(),
690
748
  civil_status: textField(),
691
749
  state: UfEnum,
692
- nationality: textField(),
750
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
693
751
  uf_naturalness: UfEnum,
694
752
  naturalness: textField(),
695
753
  cellphone: phoneBRSchema,
@@ -762,7 +820,7 @@ var bvPjObject = zod.z.object({
762
820
  patrimony: currencySchema,
763
821
  naturalness: textField(),
764
822
  uf_naturalness: UfEnum,
765
- nationality: textField(),
823
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
766
824
  pep_relationship: textField()
767
825
  }).strict()
768
826
  )
@@ -784,7 +842,7 @@ var caixaEconomicaFederalPfObject = zod.z.object({
784
842
  city: textField(),
785
843
  energy_bill_owner_document: cpfCnpjSchema.optional(),
786
844
  state: UfEnum,
787
- nationality: textField(),
845
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
788
846
  cellphone: phoneBRSchema,
789
847
  email: emailSchema,
790
848
  monthly_income: currencySchema,
@@ -832,7 +890,7 @@ var caixaEconomicaFederalPjObject = zod.z.object({
832
890
  state: UfEnum,
833
891
  office: textField(),
834
892
  mother_name: textField(),
835
- nationality: textField()
893
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
836
894
  }).strict()
837
895
  )
838
896
  });
@@ -853,7 +911,7 @@ var cashMePfObject = zod.z.object({
853
911
  city: textField(),
854
912
  energy_bill_owner_document: cpfCnpjSchema.optional(),
855
913
  state: UfEnum,
856
- nationality: textField(),
914
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
857
915
  cellphone: phoneBRSchema,
858
916
  email: emailSchema,
859
917
  monthly_income: currencySchema,
@@ -901,7 +959,7 @@ var cashMePjObject = zod.z.object({
901
959
  state: UfEnum,
902
960
  office: textField(),
903
961
  mother_name: textField(),
904
- nationality: textField()
962
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
905
963
  }).strict()
906
964
  )
907
965
  });
@@ -922,7 +980,7 @@ var credito77PfObject = zod.z.object({
922
980
  city: textField(),
923
981
  energy_bill_owner_document: cpfCnpjSchema.optional(),
924
982
  state: UfEnum,
925
- nationality: textField(),
983
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
926
984
  cellphone: phoneBRSchema,
927
985
  email: emailSchema,
928
986
  monthly_income: currencySchema,
@@ -970,7 +1028,7 @@ var credito77PjObject = zod.z.object({
970
1028
  state: UfEnum,
971
1029
  office: textField(),
972
1030
  mother_name: textField(),
973
- nationality: textField()
1031
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
974
1032
  }).strict()
975
1033
  )
976
1034
  });
@@ -991,7 +1049,7 @@ var eosPfObject = zod.z.object({
991
1049
  city: textField(),
992
1050
  energy_bill_owner_document: cpfCnpjSchema.optional(),
993
1051
  state: UfEnum,
994
- nationality: textField(),
1052
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
995
1053
  cellphone: phoneBRSchema,
996
1054
  email: emailSchema,
997
1055
  monthly_income: currencySchema,
@@ -1039,7 +1097,7 @@ var eosPjObject = zod.z.object({
1039
1097
  state: UfEnum,
1040
1098
  office: textField(),
1041
1099
  mother_name: textField(),
1042
- nationality: textField()
1100
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1043
1101
  }).strict()
1044
1102
  )
1045
1103
  });
@@ -1060,7 +1118,7 @@ var hdtEnergyPfObject = zod.z.object({
1060
1118
  city: textField(),
1061
1119
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1062
1120
  state: UfEnum,
1063
- nationality: textField(),
1121
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1064
1122
  cellphone: phoneBRSchema,
1065
1123
  email: emailSchema,
1066
1124
  monthly_income: currencySchema,
@@ -1108,7 +1166,7 @@ var hdtEnergyPjObject = zod.z.object({
1108
1166
  state: UfEnum,
1109
1167
  office: textField(),
1110
1168
  mother_name: textField(),
1111
- nationality: textField()
1169
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1112
1170
  }).strict()
1113
1171
  )
1114
1172
  });
@@ -1129,7 +1187,7 @@ var losangoPfObject = zod.z.object({
1129
1187
  city: textField(),
1130
1188
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1131
1189
  state: UfEnum,
1132
- nationality: textField(),
1190
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1133
1191
  cellphone: phoneBRSchema,
1134
1192
  email: emailSchema,
1135
1193
  monthly_income: currencySchema,
@@ -1177,7 +1235,7 @@ var losangoPjObject = zod.z.object({
1177
1235
  state: UfEnum,
1178
1236
  office: textField(),
1179
1237
  mother_name: textField(),
1180
- nationality: textField()
1238
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1181
1239
  }).strict()
1182
1240
  )
1183
1241
  });
@@ -1198,7 +1256,7 @@ var safraPfObject = zod.z.object({
1198
1256
  city: textField(),
1199
1257
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1200
1258
  state: UfEnum,
1201
- nationality: textField(),
1259
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1202
1260
  cellphone: phoneBRSchema,
1203
1261
  email: emailSchema,
1204
1262
  monthly_income: currencySchema,
@@ -1246,7 +1304,7 @@ var safraPjObject = zod.z.object({
1246
1304
  state: UfEnum,
1247
1305
  office: textField(),
1248
1306
  mother_name: textField(),
1249
- nationality: textField()
1307
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1250
1308
  }).strict()
1251
1309
  )
1252
1310
  });
@@ -1267,7 +1325,7 @@ var santanderPfObject = zod.z.object({
1267
1325
  city: textField(),
1268
1326
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1269
1327
  state: UfEnum,
1270
- nationality: textField(),
1328
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1271
1329
  cellphone: phoneBRSchema,
1272
1330
  email: emailSchema,
1273
1331
  monthly_income: currencySchema,
@@ -1315,7 +1373,7 @@ var santanderPjObject = zod.z.object({
1315
1373
  state: UfEnum,
1316
1374
  office: textField(),
1317
1375
  mother_name: textField(),
1318
- nationality: textField()
1376
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1319
1377
  }).strict()
1320
1378
  )
1321
1379
  });
@@ -1336,7 +1394,7 @@ var solAgoraPfObject = zod.z.object({
1336
1394
  city: textField(),
1337
1395
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1338
1396
  state: UfEnum,
1339
- nationality: textField(),
1397
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1340
1398
  cellphone: phoneBRSchema,
1341
1399
  email: emailSchema,
1342
1400
  monthly_income: currencySchema,
@@ -1393,7 +1451,7 @@ var solAgoraPjObject = zod.z.object({
1393
1451
  mother_name: textField(),
1394
1452
  naturalness: textField(),
1395
1453
  uf_naturalness: UfEnum,
1396
- nationality: textField()
1454
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1397
1455
  }).strict()
1398
1456
  )
1399
1457
  });
@@ -1414,7 +1472,7 @@ var solfacilPfObject = zod.z.object({
1414
1472
  city: textField(),
1415
1473
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1416
1474
  state: UfEnum,
1417
- nationality: textField(),
1475
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1418
1476
  cellphone: phoneBRSchema,
1419
1477
  email: emailSchema,
1420
1478
  monthly_income: currencySchema,
@@ -1467,7 +1525,7 @@ var solfacilPjObject = zod.z.object({
1467
1525
  mother_name: textField(),
1468
1526
  monthly_income: currencySchema,
1469
1527
  patrimony: currencySchema,
1470
- nationality: textField()
1528
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
1471
1529
  }).strict()
1472
1530
  )
1473
1531
  });
@@ -1487,7 +1545,7 @@ var unifiedPfObject = zod.z.object({
1487
1545
  city: textField(),
1488
1546
  energy_bill_owner_document: cpfCnpjSchema.optional(),
1489
1547
  state: UfEnum,
1490
- nationality: textField(),
1548
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1491
1549
  cellphone: phoneBRSchema,
1492
1550
  email: emailSchema,
1493
1551
  monthly_income: currencySchema,
@@ -1558,7 +1616,7 @@ var unifiedPjObject = zod.z.object({
1558
1616
  city: textField(),
1559
1617
  state: UfEnum,
1560
1618
  mother_name: textField(),
1561
- nationality: textField(),
1619
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1562
1620
  office: textField().optional(),
1563
1621
  phone: phoneBRSchema.optional(),
1564
1622
  civil_status: textField().optional(),
@@ -1595,7 +1653,7 @@ var unifiedPjObject = zod.z.object({
1595
1653
  city: textField(),
1596
1654
  state: UfEnum,
1597
1655
  mother_name: textField(),
1598
- nationality: textField(),
1656
+ nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
1599
1657
  office: textField().optional(),
1600
1658
  phone: phoneBRSchema.optional(),
1601
1659
  civil_status: textField().optional(),
@@ -1990,6 +2048,8 @@ exports.CIVIL_STATUS_REQUIRING_PARTNER = CIVIL_STATUS_REQUIRING_PARTNER;
1990
2048
  exports.FORMALIZATION_FIELD_META = FORMALIZATION_FIELD_META;
1991
2049
  exports.FORMALIZATION_OPTION_LABELS = FORMALIZATION_OPTION_LABELS;
1992
2050
  exports.NATIONALITY_BRAZIL = NATIONALITY_BRAZIL;
2051
+ exports.NationalityEnum = NationalityEnum;
2052
+ exports.NationalityLabels = NationalityLabels;
1993
2053
  exports.OCCUPATIONS_REQUIRING_CNPJ = OCCUPATIONS_REQUIRING_CNPJ;
1994
2054
  exports.PARTNER_FIELDS = PARTNER_FIELDS;
1995
2055
  exports.UNIFIED_SLUG = UNIFIED_SLUG;
package/index.mjs CHANGED
@@ -1,33 +1,33 @@
1
- export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, NATIONALITY_BRAZIL, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './chunk-AQ43O5UO.mjs';
2
- import './chunk-T2MFLA6J.mjs';
3
- import './chunk-GVOOT43S.mjs';
4
- import './chunk-UYCCHEM5.mjs';
5
- import './chunk-LOEAPRSO.mjs';
6
- import './chunk-ZQ2PKLTM.mjs';
7
- import './chunk-O5XQR5HN.mjs';
8
- export { unifiedPfObject, unifiedPfSchema } from './chunk-Y7TQ2NQ2.mjs';
9
- export { unifiedPjObject, unifiedPjSchema } from './chunk-E7JXDCBO.mjs';
10
- import './chunk-LEUH6IFB.mjs';
11
- import './chunk-K23FTEKB.mjs';
12
- import './chunk-WPJOW7IE.mjs';
13
- import './chunk-X4LHQVVJ.mjs';
14
- import './chunk-66Y3FO5R.mjs';
15
- import './chunk-PY7IUNIU.mjs';
16
- import './chunk-BRBOOPFN.mjs';
17
- import './chunk-XVITSWCY.mjs';
18
- import './chunk-35IKZUF4.mjs';
19
- import './chunk-OFCVHF6Z.mjs';
20
- import './chunk-BITN6YDR.mjs';
21
- import './chunk-BSG5DCL7.mjs';
22
- import './chunk-ISJKYUMR.mjs';
23
- import './chunk-ACJUTGEC.mjs';
24
- import './chunk-W6J3SW2H.mjs';
25
- import './chunk-57DSP6GG.mjs';
26
- import './chunk-LVFKP46R.mjs';
27
- import './chunk-RDLOQ6HV.mjs';
28
- import './chunk-2ZKUSLGU.mjs';
29
- import './chunk-QUBWDT4D.mjs';
30
- import './chunk-SKSUT6CG.mjs';
31
- import './chunk-JBTU6WKN.mjs';
32
- import './chunk-CSGG5DZE.mjs';
33
- export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from './chunk-5YFVPFSM.mjs';
1
+ export { BANK_SLUGS, BankEnum, FORMALIZATION_FIELD_META, FORMALIZATION_OPTION_LABELS, UNIFIED_SLUG, getFieldOptions, getFormalizationBaseSchema, getFormalizationSchema, pfBaseSchemaRegistry, pfSchemaRegistry, pjBaseSchemaRegistry, pjSchemaRegistry } from './chunk-PDBPFNAN.mjs';
2
+ import './chunk-CPDLICOP.mjs';
3
+ import './chunk-6ZUOXZY3.mjs';
4
+ import './chunk-RWOX5QO3.mjs';
5
+ import './chunk-5EHEC3RT.mjs';
6
+ import './chunk-65EE5FW3.mjs';
7
+ import './chunk-TKHIBI4R.mjs';
8
+ export { unifiedPfObject, unifiedPfSchema } from './chunk-FBDTG3WD.mjs';
9
+ export { unifiedPjObject, unifiedPjSchema } from './chunk-4PZYGTUU.mjs';
10
+ import './chunk-FIPFWGBQ.mjs';
11
+ import './chunk-TDL42FZZ.mjs';
12
+ import './chunk-MM6LQXI6.mjs';
13
+ import './chunk-LU5ODSGQ.mjs';
14
+ import './chunk-VDFDTLU5.mjs';
15
+ import './chunk-AM7HTUI3.mjs';
16
+ import './chunk-BYAXV4TG.mjs';
17
+ import './chunk-Y67MNG2X.mjs';
18
+ import './chunk-2BHUMNK5.mjs';
19
+ import './chunk-5P6NWFTX.mjs';
20
+ import './chunk-KBILM3GO.mjs';
21
+ import './chunk-UF45URAJ.mjs';
22
+ import './chunk-ORQ52KPA.mjs';
23
+ import './chunk-DJDG3UYR.mjs';
24
+ import './chunk-KJTTMDZP.mjs';
25
+ import './chunk-L3OISOZA.mjs';
26
+ import './chunk-VP4HT24O.mjs';
27
+ import './chunk-22SYVROO.mjs';
28
+ import './chunk-HMC73HBG.mjs';
29
+ import './chunk-DIYEI2PA.mjs';
30
+ import './chunk-QMODZE4A.mjs';
31
+ import './chunk-U4ZDMJX2.mjs';
32
+ import './chunk-JZ7DY7SU.mjs';
33
+ export { CIVIL_STATUS_REQUIRING_PARTNER, NATIONALITY_BRAZIL, NationalityEnum, NationalityLabels, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from './chunk-ENDOIQ32.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@77sol-lab/form-schemas",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Fonte central de schemas Zod da 77 (compilada: JS + .d.ts). Financiamento (PF) é o primeiro domínio.",
5
5
  "license": "MIT",
6
6
  "private": false,