@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",
|
|
@@ -185,16 +206,22 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
185
206
|
}
|
|
186
207
|
|
|
187
208
|
// src/shared/regex/index.ts
|
|
188
|
-
|
|
189
|
-
requiredString().
|
|
190
|
-
|
|
209
|
+
function requiredFormatString() {
|
|
210
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
211
|
+
}
|
|
212
|
+
var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
213
|
+
requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
214
|
+
var cpfCnpjSchema = requiredFormatString().transform(onlyDigits).refine(
|
|
191
215
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
192
216
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
193
217
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
194
|
-
var cepSchema =
|
|
195
|
-
var phoneBRSchema =
|
|
196
|
-
var emailSchema =
|
|
197
|
-
|
|
218
|
+
var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
219
|
+
var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
220
|
+
var emailSchema = requiredFormatString().refine(
|
|
221
|
+
(v) => PATTERNS.email.test(v),
|
|
222
|
+
"E-mail inv\xE1lido"
|
|
223
|
+
);
|
|
224
|
+
var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
198
225
|
var birthDateSchema = dateDMYSchema.refine(
|
|
199
226
|
(v) => isAdultDMY(v),
|
|
200
227
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -203,7 +230,22 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
203
230
|
(v) => isNotFutureDMY(v),
|
|
204
231
|
"Data de emiss\xE3o n\xE3o pode ser futura"
|
|
205
232
|
);
|
|
206
|
-
|
|
233
|
+
function parseBRLCurrency(value) {
|
|
234
|
+
if (typeof value !== "string") {
|
|
235
|
+
return value;
|
|
236
|
+
}
|
|
237
|
+
const trimmed = value.trim();
|
|
238
|
+
if (trimmed === "") {
|
|
239
|
+
return void 0;
|
|
240
|
+
}
|
|
241
|
+
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
242
|
+
const parsed = Number(normalized);
|
|
243
|
+
return Number.isNaN(parsed) ? value : parsed;
|
|
244
|
+
}
|
|
245
|
+
var currencySchema = zod.z.preprocess(
|
|
246
|
+
parseBRLCurrency,
|
|
247
|
+
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
|
|
248
|
+
);
|
|
207
249
|
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");
|
|
208
250
|
var formalizationExtras = {
|
|
209
251
|
voucher_local_installation_address: fileUploadField,
|
|
@@ -308,7 +350,7 @@ var eosPfObject = zod.z.object({
|
|
|
308
350
|
city: textField(),
|
|
309
351
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
310
352
|
state: UfEnum,
|
|
311
|
-
nationality:
|
|
353
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
312
354
|
cellphone: phoneBRSchema,
|
|
313
355
|
email: emailSchema,
|
|
314
356
|
monthly_income: currencySchema,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { eosPfObject, eosPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { eosPfObject, eosPfSchema } from '../../../chunk-FIPFWGBQ.mjs';
|
|
2
|
+
import '../../../chunk-JZ7DY7SU.mjs';
|
|
3
|
+
import '../../../chunk-ENDOIQ32.mjs';
|
|
@@ -17,7 +17,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
17
17
|
economic_activity_group: z.ZodString;
|
|
18
18
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
19
19
|
economic_activity: z.ZodString;
|
|
20
|
-
monthly_income: z.ZodNumber
|
|
20
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
22
|
number: string;
|
|
23
23
|
state: string;
|
|
@@ -43,7 +43,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
43
43
|
district: string;
|
|
44
44
|
city: string;
|
|
45
45
|
email: string;
|
|
46
|
-
monthly_income: number;
|
|
47
46
|
corporate_name: string;
|
|
48
47
|
foundation_date: string;
|
|
49
48
|
cnpj: string;
|
|
@@ -52,6 +51,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
52
51
|
economic_activity_group: string;
|
|
53
52
|
economic_activity: string;
|
|
54
53
|
complement?: string | undefined;
|
|
54
|
+
monthly_income?: unknown;
|
|
55
55
|
}>;
|
|
56
56
|
financing_company_guarantor: z.ZodArray<z.ZodObject<{
|
|
57
57
|
name: z.ZodString;
|
|
@@ -69,10 +69,11 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
69
69
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
70
70
|
office: z.ZodString;
|
|
71
71
|
mother_name: z.ZodString;
|
|
72
|
-
nationality: z.
|
|
72
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
73
73
|
}, "strict", z.ZodTypeAny, {
|
|
74
74
|
number: string;
|
|
75
75
|
sex: string;
|
|
76
|
+
nationality: string;
|
|
76
77
|
state: string;
|
|
77
78
|
name: string;
|
|
78
79
|
cep: string;
|
|
@@ -82,7 +83,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
82
83
|
mother_name: string;
|
|
83
84
|
district: string;
|
|
84
85
|
city: string;
|
|
85
|
-
nationality: string;
|
|
86
86
|
cellphone: string;
|
|
87
87
|
email: string;
|
|
88
88
|
office: string;
|
|
@@ -99,10 +99,10 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
99
99
|
mother_name: string;
|
|
100
100
|
district: string;
|
|
101
101
|
city: string;
|
|
102
|
-
nationality: string;
|
|
103
102
|
cellphone: string;
|
|
104
103
|
email: string;
|
|
105
104
|
office: string;
|
|
105
|
+
nationality?: string | undefined;
|
|
106
106
|
complement?: string | undefined;
|
|
107
107
|
}>, "many">;
|
|
108
108
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -197,6 +197,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
197
197
|
financing_company_guarantor: {
|
|
198
198
|
number: string;
|
|
199
199
|
sex: string;
|
|
200
|
+
nationality: string;
|
|
200
201
|
state: string;
|
|
201
202
|
name: string;
|
|
202
203
|
cep: string;
|
|
@@ -206,7 +207,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
206
207
|
mother_name: string;
|
|
207
208
|
district: string;
|
|
208
209
|
city: string;
|
|
209
|
-
nationality: string;
|
|
210
210
|
cellphone: string;
|
|
211
211
|
email: string;
|
|
212
212
|
office: string;
|
|
@@ -242,7 +242,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
242
242
|
district: string;
|
|
243
243
|
city: string;
|
|
244
244
|
email: string;
|
|
245
|
-
monthly_income: number;
|
|
246
245
|
corporate_name: string;
|
|
247
246
|
foundation_date: string;
|
|
248
247
|
cnpj: string;
|
|
@@ -251,6 +250,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
251
250
|
economic_activity_group: string;
|
|
252
251
|
economic_activity: string;
|
|
253
252
|
complement?: string | undefined;
|
|
253
|
+
monthly_income?: unknown;
|
|
254
254
|
};
|
|
255
255
|
financing_company_guarantor: {
|
|
256
256
|
number: string;
|
|
@@ -264,10 +264,10 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
264
264
|
mother_name: string;
|
|
265
265
|
district: string;
|
|
266
266
|
city: string;
|
|
267
|
-
nationality: string;
|
|
268
267
|
cellphone: string;
|
|
269
268
|
email: string;
|
|
270
269
|
office: string;
|
|
270
|
+
nationality?: string | undefined;
|
|
271
271
|
complement?: string | undefined;
|
|
272
272
|
}[];
|
|
273
273
|
proof_kinship_type?: string | undefined;
|
|
@@ -295,7 +295,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
295
295
|
economic_activity_group: z.ZodString;
|
|
296
296
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
297
297
|
economic_activity: z.ZodString;
|
|
298
|
-
monthly_income: z.ZodNumber
|
|
298
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
299
299
|
}, "strict", z.ZodTypeAny, {
|
|
300
300
|
number: string;
|
|
301
301
|
state: string;
|
|
@@ -321,7 +321,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
321
321
|
district: string;
|
|
322
322
|
city: string;
|
|
323
323
|
email: string;
|
|
324
|
-
monthly_income: number;
|
|
325
324
|
corporate_name: string;
|
|
326
325
|
foundation_date: string;
|
|
327
326
|
cnpj: string;
|
|
@@ -330,6 +329,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
330
329
|
economic_activity_group: string;
|
|
331
330
|
economic_activity: string;
|
|
332
331
|
complement?: string | undefined;
|
|
332
|
+
monthly_income?: unknown;
|
|
333
333
|
}>;
|
|
334
334
|
financing_company_guarantor: z.ZodArray<z.ZodObject<{
|
|
335
335
|
name: z.ZodString;
|
|
@@ -347,10 +347,11 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
347
347
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
348
348
|
office: z.ZodString;
|
|
349
349
|
mother_name: z.ZodString;
|
|
350
|
-
nationality: z.
|
|
350
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
351
351
|
}, "strict", z.ZodTypeAny, {
|
|
352
352
|
number: string;
|
|
353
353
|
sex: string;
|
|
354
|
+
nationality: string;
|
|
354
355
|
state: string;
|
|
355
356
|
name: string;
|
|
356
357
|
cep: string;
|
|
@@ -360,7 +361,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
360
361
|
mother_name: string;
|
|
361
362
|
district: string;
|
|
362
363
|
city: string;
|
|
363
|
-
nationality: string;
|
|
364
364
|
cellphone: string;
|
|
365
365
|
email: string;
|
|
366
366
|
office: string;
|
|
@@ -377,10 +377,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
377
377
|
mother_name: string;
|
|
378
378
|
district: string;
|
|
379
379
|
city: string;
|
|
380
|
-
nationality: string;
|
|
381
380
|
cellphone: string;
|
|
382
381
|
email: string;
|
|
383
382
|
office: string;
|
|
383
|
+
nationality?: string | undefined;
|
|
384
384
|
complement?: string | undefined;
|
|
385
385
|
}>, "many">;
|
|
386
386
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -475,6 +475,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
475
475
|
financing_company_guarantor: {
|
|
476
476
|
number: string;
|
|
477
477
|
sex: string;
|
|
478
|
+
nationality: string;
|
|
478
479
|
state: string;
|
|
479
480
|
name: string;
|
|
480
481
|
cep: string;
|
|
@@ -484,7 +485,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
484
485
|
mother_name: string;
|
|
485
486
|
district: string;
|
|
486
487
|
city: string;
|
|
487
|
-
nationality: string;
|
|
488
488
|
cellphone: string;
|
|
489
489
|
email: string;
|
|
490
490
|
office: string;
|
|
@@ -520,7 +520,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
520
520
|
district: string;
|
|
521
521
|
city: string;
|
|
522
522
|
email: string;
|
|
523
|
-
monthly_income: number;
|
|
524
523
|
corporate_name: string;
|
|
525
524
|
foundation_date: string;
|
|
526
525
|
cnpj: string;
|
|
@@ -529,6 +528,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
529
528
|
economic_activity_group: string;
|
|
530
529
|
economic_activity: string;
|
|
531
530
|
complement?: string | undefined;
|
|
531
|
+
monthly_income?: unknown;
|
|
532
532
|
};
|
|
533
533
|
financing_company_guarantor: {
|
|
534
534
|
number: string;
|
|
@@ -542,10 +542,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
542
542
|
mother_name: string;
|
|
543
543
|
district: string;
|
|
544
544
|
city: string;
|
|
545
|
-
nationality: string;
|
|
546
545
|
cellphone: string;
|
|
547
546
|
email: string;
|
|
548
547
|
office: string;
|
|
548
|
+
nationality?: string | undefined;
|
|
549
549
|
complement?: string | undefined;
|
|
550
550
|
}[];
|
|
551
551
|
proof_kinship_type?: string | undefined;
|
|
@@ -593,6 +593,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
593
593
|
financing_company_guarantor: {
|
|
594
594
|
number: string;
|
|
595
595
|
sex: string;
|
|
596
|
+
nationality: string;
|
|
596
597
|
state: string;
|
|
597
598
|
name: string;
|
|
598
599
|
cep: string;
|
|
@@ -602,7 +603,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
602
603
|
mother_name: string;
|
|
603
604
|
district: string;
|
|
604
605
|
city: string;
|
|
605
|
-
nationality: string;
|
|
606
606
|
cellphone: string;
|
|
607
607
|
email: string;
|
|
608
608
|
office: string;
|
|
@@ -638,7 +638,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
638
638
|
district: string;
|
|
639
639
|
city: string;
|
|
640
640
|
email: string;
|
|
641
|
-
monthly_income: number;
|
|
642
641
|
corporate_name: string;
|
|
643
642
|
foundation_date: string;
|
|
644
643
|
cnpj: string;
|
|
@@ -647,6 +646,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
647
646
|
economic_activity_group: string;
|
|
648
647
|
economic_activity: string;
|
|
649
648
|
complement?: string | undefined;
|
|
649
|
+
monthly_income?: unknown;
|
|
650
650
|
};
|
|
651
651
|
financing_company_guarantor: {
|
|
652
652
|
number: string;
|
|
@@ -660,10 +660,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
660
660
|
mother_name: string;
|
|
661
661
|
district: string;
|
|
662
662
|
city: string;
|
|
663
|
-
nationality: string;
|
|
664
663
|
cellphone: string;
|
|
665
664
|
email: string;
|
|
666
665
|
office: string;
|
|
666
|
+
nationality?: string | undefined;
|
|
667
667
|
complement?: string | undefined;
|
|
668
668
|
}[];
|
|
669
669
|
proof_kinship_type?: string | undefined;
|
|
@@ -17,7 +17,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
17
17
|
economic_activity_group: z.ZodString;
|
|
18
18
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
19
19
|
economic_activity: z.ZodString;
|
|
20
|
-
monthly_income: z.ZodNumber
|
|
20
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
22
|
number: string;
|
|
23
23
|
state: string;
|
|
@@ -43,7 +43,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
43
43
|
district: string;
|
|
44
44
|
city: string;
|
|
45
45
|
email: string;
|
|
46
|
-
monthly_income: number;
|
|
47
46
|
corporate_name: string;
|
|
48
47
|
foundation_date: string;
|
|
49
48
|
cnpj: string;
|
|
@@ -52,6 +51,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
52
51
|
economic_activity_group: string;
|
|
53
52
|
economic_activity: string;
|
|
54
53
|
complement?: string | undefined;
|
|
54
|
+
monthly_income?: unknown;
|
|
55
55
|
}>;
|
|
56
56
|
financing_company_guarantor: z.ZodArray<z.ZodObject<{
|
|
57
57
|
name: z.ZodString;
|
|
@@ -69,10 +69,11 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
69
69
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
70
70
|
office: z.ZodString;
|
|
71
71
|
mother_name: z.ZodString;
|
|
72
|
-
nationality: z.
|
|
72
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
73
73
|
}, "strict", z.ZodTypeAny, {
|
|
74
74
|
number: string;
|
|
75
75
|
sex: string;
|
|
76
|
+
nationality: string;
|
|
76
77
|
state: string;
|
|
77
78
|
name: string;
|
|
78
79
|
cep: string;
|
|
@@ -82,7 +83,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
82
83
|
mother_name: string;
|
|
83
84
|
district: string;
|
|
84
85
|
city: string;
|
|
85
|
-
nationality: string;
|
|
86
86
|
cellphone: string;
|
|
87
87
|
email: string;
|
|
88
88
|
office: string;
|
|
@@ -99,10 +99,10 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
99
99
|
mother_name: string;
|
|
100
100
|
district: string;
|
|
101
101
|
city: string;
|
|
102
|
-
nationality: string;
|
|
103
102
|
cellphone: string;
|
|
104
103
|
email: string;
|
|
105
104
|
office: string;
|
|
105
|
+
nationality?: string | undefined;
|
|
106
106
|
complement?: string | undefined;
|
|
107
107
|
}>, "many">;
|
|
108
108
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -197,6 +197,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
197
197
|
financing_company_guarantor: {
|
|
198
198
|
number: string;
|
|
199
199
|
sex: string;
|
|
200
|
+
nationality: string;
|
|
200
201
|
state: string;
|
|
201
202
|
name: string;
|
|
202
203
|
cep: string;
|
|
@@ -206,7 +207,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
206
207
|
mother_name: string;
|
|
207
208
|
district: string;
|
|
208
209
|
city: string;
|
|
209
|
-
nationality: string;
|
|
210
210
|
cellphone: string;
|
|
211
211
|
email: string;
|
|
212
212
|
office: string;
|
|
@@ -242,7 +242,6 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
242
242
|
district: string;
|
|
243
243
|
city: string;
|
|
244
244
|
email: string;
|
|
245
|
-
monthly_income: number;
|
|
246
245
|
corporate_name: string;
|
|
247
246
|
foundation_date: string;
|
|
248
247
|
cnpj: string;
|
|
@@ -251,6 +250,7 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
251
250
|
economic_activity_group: string;
|
|
252
251
|
economic_activity: string;
|
|
253
252
|
complement?: string | undefined;
|
|
253
|
+
monthly_income?: unknown;
|
|
254
254
|
};
|
|
255
255
|
financing_company_guarantor: {
|
|
256
256
|
number: string;
|
|
@@ -264,10 +264,10 @@ declare const eosPjObject: z.ZodObject<{
|
|
|
264
264
|
mother_name: string;
|
|
265
265
|
district: string;
|
|
266
266
|
city: string;
|
|
267
|
-
nationality: string;
|
|
268
267
|
cellphone: string;
|
|
269
268
|
email: string;
|
|
270
269
|
office: string;
|
|
270
|
+
nationality?: string | undefined;
|
|
271
271
|
complement?: string | undefined;
|
|
272
272
|
}[];
|
|
273
273
|
proof_kinship_type?: string | undefined;
|
|
@@ -295,7 +295,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
295
295
|
economic_activity_group: z.ZodString;
|
|
296
296
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
297
297
|
economic_activity: z.ZodString;
|
|
298
|
-
monthly_income: z.ZodNumber
|
|
298
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
299
299
|
}, "strict", z.ZodTypeAny, {
|
|
300
300
|
number: string;
|
|
301
301
|
state: string;
|
|
@@ -321,7 +321,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
321
321
|
district: string;
|
|
322
322
|
city: string;
|
|
323
323
|
email: string;
|
|
324
|
-
monthly_income: number;
|
|
325
324
|
corporate_name: string;
|
|
326
325
|
foundation_date: string;
|
|
327
326
|
cnpj: string;
|
|
@@ -330,6 +329,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
330
329
|
economic_activity_group: string;
|
|
331
330
|
economic_activity: string;
|
|
332
331
|
complement?: string | undefined;
|
|
332
|
+
monthly_income?: unknown;
|
|
333
333
|
}>;
|
|
334
334
|
financing_company_guarantor: z.ZodArray<z.ZodObject<{
|
|
335
335
|
name: z.ZodString;
|
|
@@ -347,10 +347,11 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
347
347
|
state: z.ZodEnum<[string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>;
|
|
348
348
|
office: z.ZodString;
|
|
349
349
|
mother_name: z.ZodString;
|
|
350
|
-
nationality: z.
|
|
350
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
351
351
|
}, "strict", z.ZodTypeAny, {
|
|
352
352
|
number: string;
|
|
353
353
|
sex: string;
|
|
354
|
+
nationality: string;
|
|
354
355
|
state: string;
|
|
355
356
|
name: string;
|
|
356
357
|
cep: string;
|
|
@@ -360,7 +361,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
360
361
|
mother_name: string;
|
|
361
362
|
district: string;
|
|
362
363
|
city: string;
|
|
363
|
-
nationality: string;
|
|
364
364
|
cellphone: string;
|
|
365
365
|
email: string;
|
|
366
366
|
office: string;
|
|
@@ -377,10 +377,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
377
377
|
mother_name: string;
|
|
378
378
|
district: string;
|
|
379
379
|
city: string;
|
|
380
|
-
nationality: string;
|
|
381
380
|
cellphone: string;
|
|
382
381
|
email: string;
|
|
383
382
|
office: string;
|
|
383
|
+
nationality?: string | undefined;
|
|
384
384
|
complement?: string | undefined;
|
|
385
385
|
}>, "many">;
|
|
386
386
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -475,6 +475,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
475
475
|
financing_company_guarantor: {
|
|
476
476
|
number: string;
|
|
477
477
|
sex: string;
|
|
478
|
+
nationality: string;
|
|
478
479
|
state: string;
|
|
479
480
|
name: string;
|
|
480
481
|
cep: string;
|
|
@@ -484,7 +485,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
484
485
|
mother_name: string;
|
|
485
486
|
district: string;
|
|
486
487
|
city: string;
|
|
487
|
-
nationality: string;
|
|
488
488
|
cellphone: string;
|
|
489
489
|
email: string;
|
|
490
490
|
office: string;
|
|
@@ -520,7 +520,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
520
520
|
district: string;
|
|
521
521
|
city: string;
|
|
522
522
|
email: string;
|
|
523
|
-
monthly_income: number;
|
|
524
523
|
corporate_name: string;
|
|
525
524
|
foundation_date: string;
|
|
526
525
|
cnpj: string;
|
|
@@ -529,6 +528,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
529
528
|
economic_activity_group: string;
|
|
530
529
|
economic_activity: string;
|
|
531
530
|
complement?: string | undefined;
|
|
531
|
+
monthly_income?: unknown;
|
|
532
532
|
};
|
|
533
533
|
financing_company_guarantor: {
|
|
534
534
|
number: string;
|
|
@@ -542,10 +542,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
542
542
|
mother_name: string;
|
|
543
543
|
district: string;
|
|
544
544
|
city: string;
|
|
545
|
-
nationality: string;
|
|
546
545
|
cellphone: string;
|
|
547
546
|
email: string;
|
|
548
547
|
office: string;
|
|
548
|
+
nationality?: string | undefined;
|
|
549
549
|
complement?: string | undefined;
|
|
550
550
|
}[];
|
|
551
551
|
proof_kinship_type?: string | undefined;
|
|
@@ -593,6 +593,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
593
593
|
financing_company_guarantor: {
|
|
594
594
|
number: string;
|
|
595
595
|
sex: string;
|
|
596
|
+
nationality: string;
|
|
596
597
|
state: string;
|
|
597
598
|
name: string;
|
|
598
599
|
cep: string;
|
|
@@ -602,7 +603,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
602
603
|
mother_name: string;
|
|
603
604
|
district: string;
|
|
604
605
|
city: string;
|
|
605
|
-
nationality: string;
|
|
606
606
|
cellphone: string;
|
|
607
607
|
email: string;
|
|
608
608
|
office: string;
|
|
@@ -638,7 +638,6 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
638
638
|
district: string;
|
|
639
639
|
city: string;
|
|
640
640
|
email: string;
|
|
641
|
-
monthly_income: number;
|
|
642
641
|
corporate_name: string;
|
|
643
642
|
foundation_date: string;
|
|
644
643
|
cnpj: string;
|
|
@@ -647,6 +646,7 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
647
646
|
economic_activity_group: string;
|
|
648
647
|
economic_activity: string;
|
|
649
648
|
complement?: string | undefined;
|
|
649
|
+
monthly_income?: unknown;
|
|
650
650
|
};
|
|
651
651
|
financing_company_guarantor: {
|
|
652
652
|
number: string;
|
|
@@ -660,10 +660,10 @@ declare const eosPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
660
660
|
mother_name: string;
|
|
661
661
|
district: string;
|
|
662
662
|
city: string;
|
|
663
|
-
nationality: string;
|
|
664
663
|
cellphone: string;
|
|
665
664
|
email: string;
|
|
666
665
|
office: string;
|
|
666
|
+
nationality?: string | undefined;
|
|
667
667
|
complement?: string | undefined;
|
|
668
668
|
}[];
|
|
669
669
|
proof_kinship_type?: string | undefined;
|
|
@@ -40,6 +40,27 @@ var fileUploadField = zod.z.object(
|
|
|
40
40
|
REQUIRED_STRING_PARAMS
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
+
// src/shared/enums/nationality.ts
|
|
44
|
+
var NATIONALITY_BRAZIL = "brasil";
|
|
45
|
+
var NationalityEnum = enumField([
|
|
46
|
+
NATIONALITY_BRAZIL,
|
|
47
|
+
"argentina",
|
|
48
|
+
"bolivia",
|
|
49
|
+
"chile",
|
|
50
|
+
"colombia",
|
|
51
|
+
"paraguai",
|
|
52
|
+
"peru",
|
|
53
|
+
"uruguai",
|
|
54
|
+
"venezuela",
|
|
55
|
+
"portugal",
|
|
56
|
+
"espanha",
|
|
57
|
+
"italia",
|
|
58
|
+
"estados_unidos",
|
|
59
|
+
"japao",
|
|
60
|
+
"china",
|
|
61
|
+
"outro"
|
|
62
|
+
]);
|
|
63
|
+
|
|
43
64
|
// src/shared/enums/proof-kinship-type.ts
|
|
44
65
|
var ProofKinshipTypeEnum = enumField([
|
|
45
66
|
"certidao_casamento",
|
|
@@ -172,16 +193,22 @@ function isNotFutureDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
172
193
|
}
|
|
173
194
|
|
|
174
195
|
// src/shared/regex/index.ts
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
196
|
+
function requiredFormatString() {
|
|
197
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
198
|
+
}
|
|
199
|
+
var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
200
|
+
var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
201
|
+
requiredFormatString().transform(onlyDigits).refine(
|
|
178
202
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
179
203
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
180
204
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
181
|
-
var cepSchema =
|
|
182
|
-
var phoneBRSchema =
|
|
183
|
-
var emailSchema =
|
|
184
|
-
|
|
205
|
+
var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
206
|
+
var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
207
|
+
var emailSchema = requiredFormatString().refine(
|
|
208
|
+
(v) => PATTERNS.email.test(v),
|
|
209
|
+
"E-mail inv\xE1lido"
|
|
210
|
+
);
|
|
211
|
+
var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
185
212
|
var birthDateSchema = dateDMYSchema.refine(
|
|
186
213
|
(v) => isAdultDMY(v),
|
|
187
214
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -190,7 +217,22 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
190
217
|
(v) => isNotFutureDMY(v),
|
|
191
218
|
"Data de emiss\xE3o n\xE3o pode ser futura"
|
|
192
219
|
);
|
|
193
|
-
|
|
220
|
+
function parseBRLCurrency(value) {
|
|
221
|
+
if (typeof value !== "string") {
|
|
222
|
+
return value;
|
|
223
|
+
}
|
|
224
|
+
const trimmed = value.trim();
|
|
225
|
+
if (trimmed === "") {
|
|
226
|
+
return void 0;
|
|
227
|
+
}
|
|
228
|
+
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
229
|
+
const parsed = Number(normalized);
|
|
230
|
+
return Number.isNaN(parsed) ? value : parsed;
|
|
231
|
+
}
|
|
232
|
+
var currencySchema = zod.z.preprocess(
|
|
233
|
+
parseBRLCurrency,
|
|
234
|
+
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
|
|
235
|
+
);
|
|
194
236
|
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");
|
|
195
237
|
var formalizationExtras = {
|
|
196
238
|
voucher_local_installation_address: fileUploadField,
|
|
@@ -262,7 +304,7 @@ var eosPjObject = zod.z.object({
|
|
|
262
304
|
state: UfEnum,
|
|
263
305
|
office: textField(),
|
|
264
306
|
mother_name: textField(),
|
|
265
|
-
nationality:
|
|
307
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL)
|
|
266
308
|
}).strict()
|
|
267
309
|
)
|
|
268
310
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { eosPjObject, eosPjSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { eosPjObject, eosPjSchema } from '../../../chunk-TDL42FZZ.mjs';
|
|
2
|
+
import '../../../chunk-ENDOIQ32.mjs';
|