@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.
- package/{chunk-RDLOQ6HV.mjs → chunk-22SYVROO.mjs} +2 -2
- package/{chunk-35IKZUF4.mjs → chunk-2BHUMNK5.mjs} +3 -3
- package/{chunk-E7JXDCBO.mjs → chunk-4PZYGTUU.mjs} +4 -4
- package/{chunk-LOEAPRSO.mjs → chunk-5EHEC3RT.mjs} +3 -3
- package/{chunk-OFCVHF6Z.mjs → chunk-5P6NWFTX.mjs} +3 -3
- package/{chunk-ZQ2PKLTM.mjs → chunk-65EE5FW3.mjs} +3 -3
- package/{chunk-GVOOT43S.mjs → chunk-6ZUOXZY3.mjs} +2 -2
- package/{chunk-PY7IUNIU.mjs → chunk-AM7HTUI3.mjs} +2 -2
- package/{chunk-BRBOOPFN.mjs → chunk-BYAXV4TG.mjs} +3 -3
- package/{chunk-T2MFLA6J.mjs → chunk-CPDLICOP.mjs} +3 -3
- package/{chunk-QUBWDT4D.mjs → chunk-DIYEI2PA.mjs} +2 -2
- package/{chunk-ACJUTGEC.mjs → chunk-DJDG3UYR.mjs} +2 -2
- package/{chunk-5YFVPFSM.mjs → chunk-ENDOIQ32.mjs} +69 -9
- package/{chunk-Y7TQ2NQ2.mjs → chunk-FBDTG3WD.mjs} +3 -3
- package/{chunk-LEUH6IFB.mjs → chunk-FIPFWGBQ.mjs} +3 -3
- package/{chunk-2ZKUSLGU.mjs → chunk-HMC73HBG.mjs} +3 -3
- package/{chunk-CSGG5DZE.mjs → chunk-JZ7DY7SU.mjs} +1 -1
- package/{chunk-BITN6YDR.mjs → chunk-KBILM3GO.mjs} +3 -3
- package/{chunk-W6J3SW2H.mjs → chunk-KJTTMDZP.mjs} +3 -3
- package/{chunk-57DSP6GG.mjs → chunk-L3OISOZA.mjs} +2 -2
- package/{chunk-X4LHQVVJ.mjs → chunk-LU5ODSGQ.mjs} +2 -2
- package/{chunk-WPJOW7IE.mjs → chunk-MM6LQXI6.mjs} +3 -3
- package/{chunk-ISJKYUMR.mjs → chunk-ORQ52KPA.mjs} +3 -3
- package/{chunk-AQ43O5UO.mjs → chunk-PDBPFNAN.mjs} +34 -36
- package/{chunk-SKSUT6CG.mjs → chunk-QMODZE4A.mjs} +3 -3
- package/{chunk-UYCCHEM5.mjs → chunk-RWOX5QO3.mjs} +3 -3
- package/{chunk-K23FTEKB.mjs → chunk-TDL42FZZ.mjs} +2 -2
- package/{chunk-O5XQR5HN.mjs → chunk-TKHIBI4R.mjs} +2 -2
- package/{chunk-JBTU6WKN.mjs → chunk-U4ZDMJX2.mjs} +3 -3
- package/{chunk-BSG5DCL7.mjs → chunk-UF45URAJ.mjs} +2 -2
- package/{chunk-66Y3FO5R.mjs → chunk-VDFDTLU5.mjs} +3 -3
- package/{chunk-LVFKP46R.mjs → chunk-VP4HT24O.mjs} +3 -3
- package/{chunk-XVITSWCY.mjs → chunk-Y67MNG2X.mjs} +2 -2
- package/financing/formalization/index.d.cts +695 -657
- package/financing/formalization/index.d.ts +695 -657
- package/financing/formalization/index.js +99 -39
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.js +51 -9
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.d.ts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.js +51 -9
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/BvPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/BvPFSchema.js +51 -9
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPJSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPJSchema.js +51 -9
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.js +51 -9
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.js +51 -9
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/EosPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/EosPFSchema.js +51 -9
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/EosPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/EosPJSchema.js +51 -9
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.js +51 -9
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.js +51 -9
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.js +51 -9
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.js +52 -10
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +99 -39
- package/index.mjs +33 -33
- 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
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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 =
|
|
188
|
-
var phoneBRSchema =
|
|
189
|
-
var emailSchema =
|
|
190
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
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
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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 =
|
|
366
|
-
var phoneBRSchema =
|
|
367
|
-
var emailSchema =
|
|
368
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { unifiedPfObject, unifiedPfSchema } from './chunk-
|
|
9
|
-
export { unifiedPjObject, unifiedPjSchema } from './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
-
export { CIVIL_STATUS_REQUIRING_PARTNER, OCCUPATIONS_REQUIRING_CNPJ, PARTNER_FIELDS, applyPfRefinements, applyPjRefinements } from './chunk-
|
|
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