@77sol-lab/form-schemas 2.0.0 → 3.0.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-6U3W3WGJ.mjs → chunk-4T4DDJJZ.mjs} +6 -6
- package/{chunk-QGHAWR7N.mjs → chunk-65WB3CQB.mjs} +8 -8
- package/{chunk-AFF2ESHC.mjs → chunk-6AISIJ3O.mjs} +6 -6
- package/{chunk-P5QT636Q.mjs → chunk-7ULQG7YJ.mjs} +8 -8
- package/{chunk-QFCBUDTN.mjs → chunk-7VU2KIBV.mjs} +6 -6
- package/chunk-BXLQYGEB.mjs +105 -0
- package/{chunk-Z6PA77SA.mjs → chunk-CGBX6OCD.mjs} +6 -6
- package/{chunk-DKIUSETH.mjs → chunk-CJSJ3VDW.mjs} +109 -41
- package/{chunk-MKN3T4EC.mjs → chunk-EG5RVHCZ.mjs} +8 -8
- package/{chunk-2JHLFEU7.mjs → chunk-F4RMWUXJ.mjs} +9 -9
- package/{chunk-LXNKU6Q5.mjs → chunk-GBKY6QE3.mjs} +6 -6
- package/{chunk-KIN5ASCQ.mjs → chunk-HF7G6PTH.mjs} +8 -8
- package/{chunk-VGBIJ7LQ.mjs → chunk-HX5UJCA2.mjs} +6 -6
- package/{chunk-DRLPCEVY.mjs → chunk-HXHJSQ2X.mjs} +8 -8
- package/{chunk-ECQBM5TA.mjs → chunk-IVY6IQXZ.mjs} +8 -8
- package/{chunk-TGDPLYN3.mjs → chunk-K3QXEL6M.mjs} +19 -20
- package/{chunk-64RQV46Z.mjs → chunk-LDL7QLPB.mjs} +6 -6
- package/{chunk-DWOFPI2A.mjs → chunk-LRIO6V7H.mjs} +6 -6
- package/{chunk-FGNV6RT5.mjs → chunk-OIGZEDM3.mjs} +6 -6
- package/{chunk-FBL2YW6F.mjs → chunk-OJUTNXHL.mjs} +135 -38
- package/{chunk-E5SPEAZO.mjs → chunk-OKAMQBUN.mjs} +6 -6
- package/{chunk-KOB7CHDM.mjs → chunk-PCTF5JYB.mjs} +8 -8
- package/{chunk-26RFB4ZS.mjs → chunk-PCXYLWDD.mjs} +8 -8
- package/chunk-QEPJ2RLU.mjs +18 -0
- package/{chunk-LCD7MY35.mjs → chunk-QQCSQ3L4.mjs} +9 -9
- package/{chunk-IVT2ZFVR.mjs → chunk-R5TJYTTO.mjs} +8 -8
- package/{chunk-WVQ2LFIN.mjs → chunk-T2FBV7WO.mjs} +9 -9
- package/{chunk-LNPPAYB6.mjs → chunk-TNZ33455.mjs} +6 -6
- package/{chunk-J4BYCQDX.mjs → chunk-TWOBBIQC.mjs} +8 -8
- package/{chunk-NQIIQVGK.mjs → chunk-TZEPVIC4.mjs} +8 -8
- package/{chunk-QSMMXRNI.mjs → chunk-UK62IINL.mjs} +6 -6
- package/{chunk-6EBUH4MK.mjs → chunk-VTTNXB64.mjs} +6 -6
- package/{chunk-DQ6ZS36G.mjs → chunk-VWKF4I2L.mjs} +8 -8
- package/financing/formalization/index.d.cts +710 -708
- package/financing/formalization/index.d.ts +710 -708
- package/financing/formalization/index.js +454 -226
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/AlfaPFSchema.js +94 -27
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/AlfaPJSchema.js +97 -29
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +94 -27
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +97 -29
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/BtgPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/BtgPFSchema.js +94 -27
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BtgPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BtgPJSchema.js +102 -30
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +20 -20
- package/financing/formalization/schemas/BvPFSchema.d.ts +20 -20
- package/financing/formalization/schemas/BvPFSchema.js +96 -29
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/BvPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/BvPJSchema.js +102 -30
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +94 -27
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +97 -29
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +16 -16
- package/financing/formalization/schemas/CashMePFSchema.d.ts +16 -16
- package/financing/formalization/schemas/CashMePFSchema.js +94 -27
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +16 -16
- package/financing/formalization/schemas/CashMePJSchema.d.ts +16 -16
- package/financing/formalization/schemas/CashMePJSchema.js +97 -29
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +16 -16
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +16 -16
- package/financing/formalization/schemas/Credito77PFSchema.js +94 -27
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +16 -16
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +16 -16
- package/financing/formalization/schemas/Credito77PJSchema.js +97 -29
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/EosPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/EosPFSchema.js +94 -27
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/EosPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/EosPJSchema.js +97 -29
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +94 -27
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +97 -29
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/LosangoPFSchema.js +94 -27
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/LosangoPJSchema.js +97 -29
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SafraPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SafraPFSchema.js +94 -27
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SafraPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SafraPJSchema.js +97 -29
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SantanderPFSchema.js +94 -27
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SantanderPJSchema.js +97 -29
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolAgoraPFSchema.js +94 -27
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolAgoraPJSchema.js +102 -30
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolfacilPFSchema.js +94 -27
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +16 -16
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +16 -16
- package/financing/formalization/schemas/SolfacilPJSchema.js +97 -29
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +48 -48
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +48 -48
- package/financing/formalization/schemas/UnifiedPFSchema.js +108 -41
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +118 -118
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +118 -118
- package/financing/formalization/schemas/UnifiedPJSchema.js +147 -75
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +454 -226
- package/index.mjs +33 -33
- package/package.json +1 -1
- package/chunk-ARSY3NB7.mjs +0 -13
- package/chunk-QZ2BTLCH.mjs +0 -105
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
|
-
// src/
|
|
5
|
+
// src/shared/fields/primitives.ts
|
|
6
6
|
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
7
|
-
var REQUIRED_STRING_PARAMS = { error: REQUIRED_MESSAGE };
|
|
8
7
|
function requiredString() {
|
|
9
|
-
return zod.z.string(
|
|
8
|
+
return zod.z.string({ error: REQUIRED_MESSAGE });
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
10
|
+
var DEFAULT_TEXT_MAX_LENGTH = 255;
|
|
11
|
+
function textField(maxLength = DEFAULT_TEXT_MAX_LENGTH) {
|
|
12
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE).max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
14
13
|
}
|
|
15
14
|
function requiredNumber(invalidTypeMessage) {
|
|
16
15
|
return zod.z.number({
|
|
@@ -21,6 +20,34 @@ requiredNumber("Valor num\xE9rico inv\xE1lido").nonnegative(
|
|
|
21
20
|
"Valor n\xE3o pode ser negativo"
|
|
22
21
|
);
|
|
23
22
|
requiredNumber("Valor num\xE9rico inv\xE1lido").int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
23
|
+
function optionalField(schema) {
|
|
24
|
+
return zod.z.preprocess(
|
|
25
|
+
(value) => typeof value === "string" && value.trim() === "" ? void 0 : value,
|
|
26
|
+
schema.optional()
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function unrecognizedKeysMessage(keys) {
|
|
30
|
+
const list = keys.map((key) => `"${key}"`).join(", ");
|
|
31
|
+
return keys.length === 1 ? `Campo n\xE3o reconhecido: ${list}` : `Campos n\xE3o reconhecidos: ${list}`;
|
|
32
|
+
}
|
|
33
|
+
function requiredObject(shape) {
|
|
34
|
+
return zod.z.object(shape, {
|
|
35
|
+
error: (issue) => {
|
|
36
|
+
if (issue.code === "invalid_type") {
|
|
37
|
+
return REQUIRED_MESSAGE;
|
|
38
|
+
}
|
|
39
|
+
if (issue.code === "unrecognized_keys") {
|
|
40
|
+
return unrecognizedKeysMessage(issue.keys);
|
|
41
|
+
}
|
|
42
|
+
return void 0;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function requiredArray(element) {
|
|
47
|
+
return zod.z.array(element, {
|
|
48
|
+
error: (issue) => issue.code === "invalid_type" ? REQUIRED_MESSAGE : void 0
|
|
49
|
+
});
|
|
50
|
+
}
|
|
24
51
|
function enumField(values) {
|
|
25
52
|
return zod.z.enum(values, {
|
|
26
53
|
// No zod 4 todo input fora da lista (inclusive undefined/null) gera um único
|
|
@@ -32,14 +59,19 @@ function enumField(values) {
|
|
|
32
59
|
}
|
|
33
60
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
34
61
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
var UPLOAD_URL_PROTOCOL = /^https$/;
|
|
63
|
+
var UPLOAD_URL_HOSTNAME = /^(?!localhost$)(?!(\d{1,3}\.){3}\d{1,3}$)[a-z0-9.-]+$/i;
|
|
64
|
+
var fileUploadField = requiredObject({
|
|
65
|
+
url: optionalField(
|
|
66
|
+
zod.z.url({
|
|
67
|
+
protocol: UPLOAD_URL_PROTOCOL,
|
|
68
|
+
hostname: UPLOAD_URL_HOSTNAME,
|
|
69
|
+
error: "URL do arquivo inv\xE1lida"
|
|
70
|
+
})
|
|
71
|
+
),
|
|
72
|
+
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, { error: "Formato deve ser JPEG, PNG ou PDF" }),
|
|
73
|
+
sizeBytes: requiredNumber("Tamanho do arquivo inv\xE1lido").int("Tamanho do arquivo deve ser um n\xFAmero inteiro").positive("Tamanho do arquivo deve ser positivo").max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
74
|
+
});
|
|
43
75
|
|
|
44
76
|
// src/shared/enums/nationality.ts
|
|
45
77
|
var NATIONALITY_BRAZIL = "brasil";
|
|
@@ -112,7 +144,10 @@ var PATTERNS = {
|
|
|
112
144
|
cep: /^\d{8}$/,
|
|
113
145
|
phoneBR: /^\d{11}$/,
|
|
114
146
|
email: /^[^\s@]+@[^\s@]+\.[^\s@]+$/,
|
|
115
|
-
dateDMY: /^\d{2}\/\d{2}\/\d{4}
|
|
147
|
+
dateDMY: /^\d{2}\/\d{2}\/\d{4}$/,
|
|
148
|
+
// Formato do RNE, exigido pela RN-015 para nacionalidade estrangeira.
|
|
149
|
+
rneNumber: /^[A-Za-z0-9]+$/
|
|
150
|
+
};
|
|
116
151
|
|
|
117
152
|
// src/shared/regex/validators.ts
|
|
118
153
|
function onlyDigits(value) {
|
|
@@ -229,22 +264,22 @@ function parseBRLCurrency(value) {
|
|
|
229
264
|
if (typeof value !== "string") {
|
|
230
265
|
return value;
|
|
231
266
|
}
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
267
|
+
const normalized = value.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
268
|
+
if (normalized === "") {
|
|
234
269
|
return void 0;
|
|
235
270
|
}
|
|
236
|
-
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
237
271
|
const parsed = Number(normalized);
|
|
238
272
|
return Number.isNaN(parsed) ? value : parsed;
|
|
239
273
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
);
|
|
274
|
+
function brlAmount() {
|
|
275
|
+
return requiredNumber("Valor monet\xE1rio inv\xE1lido").positive("Valor deve ser positivo");
|
|
276
|
+
}
|
|
277
|
+
var currencySchema = zod.z.preprocess(parseBRLCurrency, brlAmount());
|
|
278
|
+
zod.z.preprocess(parseBRLCurrency, brlAmount().optional());
|
|
244
279
|
requiredNumber("Valor num\xE9rico inv\xE1lido").int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
|
|
245
280
|
var formalizationExtras = {
|
|
246
281
|
voucher_local_installation_address: fileUploadField,
|
|
247
|
-
proof_kinship_type: ProofKinshipTypeEnum
|
|
282
|
+
proof_kinship_type: optionalField(ProofKinshipTypeEnum),
|
|
248
283
|
proof_kinship: fileUploadField.optional(),
|
|
249
284
|
document_front_upload: fileUploadField,
|
|
250
285
|
document_back_upload: fileUploadField,
|
|
@@ -306,7 +341,36 @@ function applyCommonRefinements(data, ctx) {
|
|
|
306
341
|
});
|
|
307
342
|
}
|
|
308
343
|
}
|
|
344
|
+
var FOREIGN_DOCUMENT_TYPE = "registro_de_estrangeiro";
|
|
345
|
+
function applyForeignDocumentRefinement(data, ctx) {
|
|
346
|
+
const nationality = data.nationality;
|
|
347
|
+
const isForeign = typeof nationality === "string" && nationality.toLowerCase() !== NATIONALITY_BRAZIL;
|
|
348
|
+
if (!isForeign || !("type_doc" in data)) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
if (data.type_doc !== FOREIGN_DOCUMENT_TYPE) {
|
|
352
|
+
ctx.addIssue({
|
|
353
|
+
code: "custom",
|
|
354
|
+
path: ["type_doc"],
|
|
355
|
+
message: "Para nacionalidade estrangeira, o documento deve ser Registro de Estrangeiro (RNE)"
|
|
356
|
+
});
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (typeof data.doc === "string" && !PATTERNS.rneNumber.test(data.doc)) {
|
|
360
|
+
ctx.addIssue({
|
|
361
|
+
code: "custom",
|
|
362
|
+
path: ["doc"],
|
|
363
|
+
message: "RNE deve conter apenas letras e n\xFAmeros"
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
function isRecord(data) {
|
|
368
|
+
return typeof data === "object" && data !== null;
|
|
369
|
+
}
|
|
309
370
|
function applyPfRefinements(data, ctx) {
|
|
371
|
+
if (!isRecord(data)) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
310
374
|
applyCommonRefinements(data, ctx);
|
|
311
375
|
applyPartnerRefinement(data, ctx);
|
|
312
376
|
if ("nature_of_occupation" in data && typeof data.nature_of_occupation === "string" && OCCUPATIONS_REQUIRING_CNPJ.includes(data.nature_of_occupation) && !data.cnpj_proprietary) {
|
|
@@ -326,8 +390,12 @@ function applyPfRefinements(data, ctx) {
|
|
|
326
390
|
});
|
|
327
391
|
}
|
|
328
392
|
}
|
|
393
|
+
applyForeignDocumentRefinement(data, ctx);
|
|
329
394
|
}
|
|
330
395
|
function applyPjRefinements(data, ctx) {
|
|
396
|
+
if (!isRecord(data)) {
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
331
399
|
applyCommonRefinements(data, ctx);
|
|
332
400
|
}
|
|
333
401
|
function onlyUnknownKeysAborted(payload) {
|
|
@@ -341,9 +409,9 @@ var pjRefinement = zod.z.superRefine(applyPjRefinements, {
|
|
|
341
409
|
});
|
|
342
410
|
|
|
343
411
|
// src/domains/financing/formalization/schemas/SolfacilPJSchema.ts
|
|
344
|
-
var solfacilPjObject =
|
|
412
|
+
var solfacilPjObject = requiredObject({
|
|
345
413
|
...formalizationExtras,
|
|
346
|
-
financing_company:
|
|
414
|
+
financing_company: requiredObject({
|
|
347
415
|
corporate_name: textField(),
|
|
348
416
|
cep: cepSchema,
|
|
349
417
|
address: textField(),
|
|
@@ -351,22 +419,22 @@ var solfacilPjObject = zod.z.object({
|
|
|
351
419
|
number: textField(),
|
|
352
420
|
cnpj: cnpjSchema,
|
|
353
421
|
email: emailSchema,
|
|
354
|
-
complement: textField(15)
|
|
422
|
+
complement: optionalField(textField(15)),
|
|
355
423
|
phone: phoneBRSchema,
|
|
356
424
|
district: textField(),
|
|
357
425
|
legal_nature: textField(),
|
|
358
426
|
city: textField(),
|
|
359
427
|
state: UfEnum
|
|
360
428
|
}).strict(),
|
|
361
|
-
financing_company_guarantor:
|
|
362
|
-
|
|
429
|
+
financing_company_guarantor: requiredArray(
|
|
430
|
+
requiredObject({
|
|
363
431
|
name: textField(),
|
|
364
432
|
cep: cepSchema,
|
|
365
433
|
cpf: cpfSchema,
|
|
366
434
|
address: textField(),
|
|
367
435
|
birth_date: birthDateSchema,
|
|
368
436
|
number: textField(),
|
|
369
|
-
complement: textField(15)
|
|
437
|
+
complement: optionalField(textField(15)),
|
|
370
438
|
cellphone: phoneBRSchema,
|
|
371
439
|
phone: phoneBRSchema,
|
|
372
440
|
email: emailSchema,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { solfacilPjObject, solfacilPjSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { solfacilPjObject, solfacilPjSchema } from '../../../chunk-R5TJYTTO.mjs';
|
|
2
|
+
import '../../../chunk-CJSJ3VDW.mjs';
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const unifiedPfObject: z.ZodObject<{
|
|
4
4
|
voucher_local_installation_address: z.ZodObject<{
|
|
5
|
-
url: z.ZodOptional<z.ZodURL
|
|
5
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
6
6
|
mime: z.ZodEnum<{
|
|
7
7
|
"image/jpeg": "image/jpeg";
|
|
8
8
|
"image/png": "image/png";
|
|
@@ -10,11 +10,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
sizeBytes: z.ZodNumber;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
proof_kinship_type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
proof_kinship_type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
14
14
|
[x: string]: string;
|
|
15
|
-
}
|
|
15
|
+
}>>>;
|
|
16
16
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
url: z.ZodOptional<z.ZodURL
|
|
17
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
18
18
|
mime: z.ZodEnum<{
|
|
19
19
|
"image/jpeg": "image/jpeg";
|
|
20
20
|
"image/png": "image/png";
|
|
@@ -23,7 +23,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
23
23
|
sizeBytes: z.ZodNumber;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
document_front_upload: z.ZodObject<{
|
|
26
|
-
url: z.ZodOptional<z.ZodURL
|
|
26
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
27
27
|
mime: z.ZodEnum<{
|
|
28
28
|
"image/jpeg": "image/jpeg";
|
|
29
29
|
"image/png": "image/png";
|
|
@@ -32,7 +32,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
32
32
|
sizeBytes: z.ZodNumber;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
document_back_upload: z.ZodObject<{
|
|
35
|
-
url: z.ZodOptional<z.ZodURL
|
|
35
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
36
36
|
mime: z.ZodEnum<{
|
|
37
37
|
"image/jpeg": "image/jpeg";
|
|
38
38
|
"image/png": "image/png";
|
|
@@ -50,14 +50,14 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
50
50
|
sex: z.ZodEnum<{
|
|
51
51
|
[x: string]: string;
|
|
52
52
|
}>;
|
|
53
|
-
complement: z.ZodOptional<z.ZodString
|
|
53
|
+
complement: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
54
54
|
mother_name: z.ZodString;
|
|
55
55
|
district: z.ZodString;
|
|
56
56
|
energy_account_in_requester_name: z.ZodEnum<{
|
|
57
57
|
[x: string]: string;
|
|
58
58
|
}>;
|
|
59
59
|
city: z.ZodString;
|
|
60
|
-
energy_bill_owner_document: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
60
|
+
energy_bill_owner_document: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
61
61
|
state: z.ZodEnum<{
|
|
62
62
|
[x: string]: string;
|
|
63
63
|
}>;
|
|
@@ -77,43 +77,43 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
77
77
|
residence_situation: z.ZodEnum<{
|
|
78
78
|
[x: string]: string;
|
|
79
79
|
}>;
|
|
80
|
-
months_in_residence: z.ZodOptional<z.ZodNumber
|
|
80
|
+
months_in_residence: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
81
81
|
civil_status: z.ZodEnum<{
|
|
82
82
|
[x: string]: string;
|
|
83
83
|
}>;
|
|
84
84
|
uf_naturalness: z.ZodEnum<{
|
|
85
85
|
[x: string]: string;
|
|
86
86
|
}>;
|
|
87
|
-
naturalness: z.ZodOptional<z.ZodString
|
|
87
|
+
naturalness: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
88
88
|
nature_of_occupation: z.ZodEnum<{
|
|
89
89
|
[x: string]: string;
|
|
90
90
|
}>;
|
|
91
|
-
company_time: z.ZodOptional<z.ZodNumber
|
|
92
|
-
cnpj_proprietary: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
93
|
-
equity_value: z.
|
|
91
|
+
company_time: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
92
|
+
cnpj_proprietary: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
93
|
+
equity_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
94
94
|
emitting_state: z.ZodEnum<{
|
|
95
95
|
[x: string]: string;
|
|
96
96
|
}>;
|
|
97
97
|
pep_relationship: z.ZodEnum<{
|
|
98
98
|
[x: string]: string;
|
|
99
99
|
}>;
|
|
100
|
-
social_name: z.ZodOptional<z.ZodString
|
|
101
|
-
partner_name: z.ZodOptional<z.ZodString
|
|
102
|
-
partner_birth: z.ZodOptional<z.ZodString
|
|
103
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
social_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
101
|
+
partner_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
102
|
+
partner_birth: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
partner_type_doc: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
104
104
|
[x: string]: string;
|
|
105
|
-
}
|
|
106
|
-
partner_doc: z.ZodOptional<z.ZodString
|
|
107
|
-
partner_cpf: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
108
|
-
partner_city: z.ZodOptional<z.ZodString
|
|
109
|
-
communion_regime: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
}>>>;
|
|
106
|
+
partner_doc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
107
|
+
partner_cpf: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
108
|
+
partner_city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
communion_regime: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
110
110
|
[x: string]: string;
|
|
111
|
-
}
|
|
112
|
-
rural_area: z.ZodOptional<z.ZodString
|
|
111
|
+
}>>>;
|
|
112
|
+
rural_area: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
declare const unifiedPfSchema: z.ZodObject<{
|
|
115
115
|
voucher_local_installation_address: z.ZodObject<{
|
|
116
|
-
url: z.ZodOptional<z.ZodURL
|
|
116
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
117
117
|
mime: z.ZodEnum<{
|
|
118
118
|
"image/jpeg": "image/jpeg";
|
|
119
119
|
"image/png": "image/png";
|
|
@@ -121,11 +121,11 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
121
121
|
}>;
|
|
122
122
|
sizeBytes: z.ZodNumber;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
|
-
proof_kinship_type: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
proof_kinship_type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
125
125
|
[x: string]: string;
|
|
126
|
-
}
|
|
126
|
+
}>>>;
|
|
127
127
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
128
|
-
url: z.ZodOptional<z.ZodURL
|
|
128
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
129
129
|
mime: z.ZodEnum<{
|
|
130
130
|
"image/jpeg": "image/jpeg";
|
|
131
131
|
"image/png": "image/png";
|
|
@@ -134,7 +134,7 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
134
134
|
sizeBytes: z.ZodNumber;
|
|
135
135
|
}, z.core.$strip>>;
|
|
136
136
|
document_front_upload: z.ZodObject<{
|
|
137
|
-
url: z.ZodOptional<z.ZodURL
|
|
137
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
138
138
|
mime: z.ZodEnum<{
|
|
139
139
|
"image/jpeg": "image/jpeg";
|
|
140
140
|
"image/png": "image/png";
|
|
@@ -143,7 +143,7 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
143
143
|
sizeBytes: z.ZodNumber;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
document_back_upload: z.ZodObject<{
|
|
146
|
-
url: z.ZodOptional<z.ZodURL
|
|
146
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
147
147
|
mime: z.ZodEnum<{
|
|
148
148
|
"image/jpeg": "image/jpeg";
|
|
149
149
|
"image/png": "image/png";
|
|
@@ -161,14 +161,14 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
161
161
|
sex: z.ZodEnum<{
|
|
162
162
|
[x: string]: string;
|
|
163
163
|
}>;
|
|
164
|
-
complement: z.ZodOptional<z.ZodString
|
|
164
|
+
complement: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
165
165
|
mother_name: z.ZodString;
|
|
166
166
|
district: z.ZodString;
|
|
167
167
|
energy_account_in_requester_name: z.ZodEnum<{
|
|
168
168
|
[x: string]: string;
|
|
169
169
|
}>;
|
|
170
170
|
city: z.ZodString;
|
|
171
|
-
energy_bill_owner_document: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
171
|
+
energy_bill_owner_document: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
172
172
|
state: z.ZodEnum<{
|
|
173
173
|
[x: string]: string;
|
|
174
174
|
}>;
|
|
@@ -188,39 +188,39 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
188
188
|
residence_situation: z.ZodEnum<{
|
|
189
189
|
[x: string]: string;
|
|
190
190
|
}>;
|
|
191
|
-
months_in_residence: z.ZodOptional<z.ZodNumber
|
|
191
|
+
months_in_residence: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
192
192
|
civil_status: z.ZodEnum<{
|
|
193
193
|
[x: string]: string;
|
|
194
194
|
}>;
|
|
195
195
|
uf_naturalness: z.ZodEnum<{
|
|
196
196
|
[x: string]: string;
|
|
197
197
|
}>;
|
|
198
|
-
naturalness: z.ZodOptional<z.ZodString
|
|
198
|
+
naturalness: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
199
199
|
nature_of_occupation: z.ZodEnum<{
|
|
200
200
|
[x: string]: string;
|
|
201
201
|
}>;
|
|
202
|
-
company_time: z.ZodOptional<z.ZodNumber
|
|
203
|
-
cnpj_proprietary: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
204
|
-
equity_value: z.
|
|
202
|
+
company_time: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
203
|
+
cnpj_proprietary: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
204
|
+
equity_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
205
205
|
emitting_state: z.ZodEnum<{
|
|
206
206
|
[x: string]: string;
|
|
207
207
|
}>;
|
|
208
208
|
pep_relationship: z.ZodEnum<{
|
|
209
209
|
[x: string]: string;
|
|
210
210
|
}>;
|
|
211
|
-
social_name: z.ZodOptional<z.ZodString
|
|
212
|
-
partner_name: z.ZodOptional<z.ZodString
|
|
213
|
-
partner_birth: z.ZodOptional<z.ZodString
|
|
214
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
social_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
212
|
+
partner_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
213
|
+
partner_birth: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
214
|
+
partner_type_doc: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
215
215
|
[x: string]: string;
|
|
216
|
-
}
|
|
217
|
-
partner_doc: z.ZodOptional<z.ZodString
|
|
218
|
-
partner_cpf: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
219
|
-
partner_city: z.ZodOptional<z.ZodString
|
|
220
|
-
communion_regime: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
}>>>;
|
|
217
|
+
partner_doc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
218
|
+
partner_cpf: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
219
|
+
partner_city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
220
|
+
communion_regime: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
221
221
|
[x: string]: string;
|
|
222
|
-
}
|
|
223
|
-
rural_area: z.ZodOptional<z.ZodString
|
|
222
|
+
}>>>;
|
|
223
|
+
rural_area: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
224
224
|
}, z.core.$strict>;
|
|
225
225
|
type UnifiedPfFicha = z.infer<typeof unifiedPfSchema>;
|
|
226
226
|
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const unifiedPfObject: z.ZodObject<{
|
|
4
4
|
voucher_local_installation_address: z.ZodObject<{
|
|
5
|
-
url: z.ZodOptional<z.ZodURL
|
|
5
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
6
6
|
mime: z.ZodEnum<{
|
|
7
7
|
"image/jpeg": "image/jpeg";
|
|
8
8
|
"image/png": "image/png";
|
|
@@ -10,11 +10,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
sizeBytes: z.ZodNumber;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
proof_kinship_type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
proof_kinship_type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
14
14
|
[x: string]: string;
|
|
15
|
-
}
|
|
15
|
+
}>>>;
|
|
16
16
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
url: z.ZodOptional<z.ZodURL
|
|
17
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
18
18
|
mime: z.ZodEnum<{
|
|
19
19
|
"image/jpeg": "image/jpeg";
|
|
20
20
|
"image/png": "image/png";
|
|
@@ -23,7 +23,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
23
23
|
sizeBytes: z.ZodNumber;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
document_front_upload: z.ZodObject<{
|
|
26
|
-
url: z.ZodOptional<z.ZodURL
|
|
26
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
27
27
|
mime: z.ZodEnum<{
|
|
28
28
|
"image/jpeg": "image/jpeg";
|
|
29
29
|
"image/png": "image/png";
|
|
@@ -32,7 +32,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
32
32
|
sizeBytes: z.ZodNumber;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
document_back_upload: z.ZodObject<{
|
|
35
|
-
url: z.ZodOptional<z.ZodURL
|
|
35
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
36
36
|
mime: z.ZodEnum<{
|
|
37
37
|
"image/jpeg": "image/jpeg";
|
|
38
38
|
"image/png": "image/png";
|
|
@@ -50,14 +50,14 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
50
50
|
sex: z.ZodEnum<{
|
|
51
51
|
[x: string]: string;
|
|
52
52
|
}>;
|
|
53
|
-
complement: z.ZodOptional<z.ZodString
|
|
53
|
+
complement: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
54
54
|
mother_name: z.ZodString;
|
|
55
55
|
district: z.ZodString;
|
|
56
56
|
energy_account_in_requester_name: z.ZodEnum<{
|
|
57
57
|
[x: string]: string;
|
|
58
58
|
}>;
|
|
59
59
|
city: z.ZodString;
|
|
60
|
-
energy_bill_owner_document: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
60
|
+
energy_bill_owner_document: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
61
61
|
state: z.ZodEnum<{
|
|
62
62
|
[x: string]: string;
|
|
63
63
|
}>;
|
|
@@ -77,43 +77,43 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
77
77
|
residence_situation: z.ZodEnum<{
|
|
78
78
|
[x: string]: string;
|
|
79
79
|
}>;
|
|
80
|
-
months_in_residence: z.ZodOptional<z.ZodNumber
|
|
80
|
+
months_in_residence: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
81
81
|
civil_status: z.ZodEnum<{
|
|
82
82
|
[x: string]: string;
|
|
83
83
|
}>;
|
|
84
84
|
uf_naturalness: z.ZodEnum<{
|
|
85
85
|
[x: string]: string;
|
|
86
86
|
}>;
|
|
87
|
-
naturalness: z.ZodOptional<z.ZodString
|
|
87
|
+
naturalness: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
88
88
|
nature_of_occupation: z.ZodEnum<{
|
|
89
89
|
[x: string]: string;
|
|
90
90
|
}>;
|
|
91
|
-
company_time: z.ZodOptional<z.ZodNumber
|
|
92
|
-
cnpj_proprietary: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
93
|
-
equity_value: z.
|
|
91
|
+
company_time: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
92
|
+
cnpj_proprietary: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
93
|
+
equity_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
94
94
|
emitting_state: z.ZodEnum<{
|
|
95
95
|
[x: string]: string;
|
|
96
96
|
}>;
|
|
97
97
|
pep_relationship: z.ZodEnum<{
|
|
98
98
|
[x: string]: string;
|
|
99
99
|
}>;
|
|
100
|
-
social_name: z.ZodOptional<z.ZodString
|
|
101
|
-
partner_name: z.ZodOptional<z.ZodString
|
|
102
|
-
partner_birth: z.ZodOptional<z.ZodString
|
|
103
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
social_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
101
|
+
partner_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
102
|
+
partner_birth: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
partner_type_doc: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
104
104
|
[x: string]: string;
|
|
105
|
-
}
|
|
106
|
-
partner_doc: z.ZodOptional<z.ZodString
|
|
107
|
-
partner_cpf: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
108
|
-
partner_city: z.ZodOptional<z.ZodString
|
|
109
|
-
communion_regime: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
}>>>;
|
|
106
|
+
partner_doc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
107
|
+
partner_cpf: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
108
|
+
partner_city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
109
|
+
communion_regime: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
110
110
|
[x: string]: string;
|
|
111
|
-
}
|
|
112
|
-
rural_area: z.ZodOptional<z.ZodString
|
|
111
|
+
}>>>;
|
|
112
|
+
rural_area: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
113
113
|
}, z.core.$strip>;
|
|
114
114
|
declare const unifiedPfSchema: z.ZodObject<{
|
|
115
115
|
voucher_local_installation_address: z.ZodObject<{
|
|
116
|
-
url: z.ZodOptional<z.ZodURL
|
|
116
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
117
117
|
mime: z.ZodEnum<{
|
|
118
118
|
"image/jpeg": "image/jpeg";
|
|
119
119
|
"image/png": "image/png";
|
|
@@ -121,11 +121,11 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
121
121
|
}>;
|
|
122
122
|
sizeBytes: z.ZodNumber;
|
|
123
123
|
}, z.core.$strip>;
|
|
124
|
-
proof_kinship_type: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
proof_kinship_type: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
125
125
|
[x: string]: string;
|
|
126
|
-
}
|
|
126
|
+
}>>>;
|
|
127
127
|
proof_kinship: z.ZodOptional<z.ZodObject<{
|
|
128
|
-
url: z.ZodOptional<z.ZodURL
|
|
128
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
129
129
|
mime: z.ZodEnum<{
|
|
130
130
|
"image/jpeg": "image/jpeg";
|
|
131
131
|
"image/png": "image/png";
|
|
@@ -134,7 +134,7 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
134
134
|
sizeBytes: z.ZodNumber;
|
|
135
135
|
}, z.core.$strip>>;
|
|
136
136
|
document_front_upload: z.ZodObject<{
|
|
137
|
-
url: z.ZodOptional<z.ZodURL
|
|
137
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
138
138
|
mime: z.ZodEnum<{
|
|
139
139
|
"image/jpeg": "image/jpeg";
|
|
140
140
|
"image/png": "image/png";
|
|
@@ -143,7 +143,7 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
143
143
|
sizeBytes: z.ZodNumber;
|
|
144
144
|
}, z.core.$strip>;
|
|
145
145
|
document_back_upload: z.ZodObject<{
|
|
146
|
-
url: z.ZodOptional<z.ZodURL
|
|
146
|
+
url: z.ZodPreprocess<z.ZodOptional<z.ZodURL>>;
|
|
147
147
|
mime: z.ZodEnum<{
|
|
148
148
|
"image/jpeg": "image/jpeg";
|
|
149
149
|
"image/png": "image/png";
|
|
@@ -161,14 +161,14 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
161
161
|
sex: z.ZodEnum<{
|
|
162
162
|
[x: string]: string;
|
|
163
163
|
}>;
|
|
164
|
-
complement: z.ZodOptional<z.ZodString
|
|
164
|
+
complement: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
165
165
|
mother_name: z.ZodString;
|
|
166
166
|
district: z.ZodString;
|
|
167
167
|
energy_account_in_requester_name: z.ZodEnum<{
|
|
168
168
|
[x: string]: string;
|
|
169
169
|
}>;
|
|
170
170
|
city: z.ZodString;
|
|
171
|
-
energy_bill_owner_document: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
171
|
+
energy_bill_owner_document: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
172
172
|
state: z.ZodEnum<{
|
|
173
173
|
[x: string]: string;
|
|
174
174
|
}>;
|
|
@@ -188,39 +188,39 @@ declare const unifiedPfSchema: z.ZodObject<{
|
|
|
188
188
|
residence_situation: z.ZodEnum<{
|
|
189
189
|
[x: string]: string;
|
|
190
190
|
}>;
|
|
191
|
-
months_in_residence: z.ZodOptional<z.ZodNumber
|
|
191
|
+
months_in_residence: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
192
192
|
civil_status: z.ZodEnum<{
|
|
193
193
|
[x: string]: string;
|
|
194
194
|
}>;
|
|
195
195
|
uf_naturalness: z.ZodEnum<{
|
|
196
196
|
[x: string]: string;
|
|
197
197
|
}>;
|
|
198
|
-
naturalness: z.ZodOptional<z.ZodString
|
|
198
|
+
naturalness: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
199
199
|
nature_of_occupation: z.ZodEnum<{
|
|
200
200
|
[x: string]: string;
|
|
201
201
|
}>;
|
|
202
|
-
company_time: z.ZodOptional<z.ZodNumber
|
|
203
|
-
cnpj_proprietary: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
204
|
-
equity_value: z.
|
|
202
|
+
company_time: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
203
|
+
cnpj_proprietary: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
204
|
+
equity_value: z.ZodPreprocess<z.ZodOptional<z.ZodNumber>>;
|
|
205
205
|
emitting_state: z.ZodEnum<{
|
|
206
206
|
[x: string]: string;
|
|
207
207
|
}>;
|
|
208
208
|
pep_relationship: z.ZodEnum<{
|
|
209
209
|
[x: string]: string;
|
|
210
210
|
}>;
|
|
211
|
-
social_name: z.ZodOptional<z.ZodString
|
|
212
|
-
partner_name: z.ZodOptional<z.ZodString
|
|
213
|
-
partner_birth: z.ZodOptional<z.ZodString
|
|
214
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
social_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
212
|
+
partner_name: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
213
|
+
partner_birth: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
214
|
+
partner_type_doc: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
215
215
|
[x: string]: string;
|
|
216
|
-
}
|
|
217
|
-
partner_doc: z.ZodOptional<z.ZodString
|
|
218
|
-
partner_cpf: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string
|
|
219
|
-
partner_city: z.ZodOptional<z.ZodString
|
|
220
|
-
communion_regime: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
}>>>;
|
|
217
|
+
partner_doc: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
218
|
+
partner_cpf: z.ZodPreprocess<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
219
|
+
partner_city: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
220
|
+
communion_regime: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
221
221
|
[x: string]: string;
|
|
222
|
-
}
|
|
223
|
-
rural_area: z.ZodOptional<z.ZodString
|
|
222
|
+
}>>>;
|
|
223
|
+
rural_area: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
|
|
224
224
|
}, z.core.$strict>;
|
|
225
225
|
type UnifiedPfFicha = z.infer<typeof unifiedPfSchema>;
|
|
226
226
|
|