@77sol-lab/form-schemas 1.5.0 → 1.5.1
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-53GXILC6.mjs → chunk-2CN56LSL.mjs} +2 -2
- package/{chunk-R6CEKWRQ.mjs → chunk-2W3LQ75V.mjs} +2 -2
- package/{chunk-D2ZUTYWA.mjs → chunk-2YVK6IDS.mjs} +16 -7
- package/{chunk-UU3MRKTH.mjs → chunk-3BPZV6IW.mjs} +1 -1
- package/{chunk-7MWUETLP.mjs → chunk-3O52U22S.mjs} +2 -2
- package/{chunk-Z2TTZ3JJ.mjs → chunk-3RSZ4NGE.mjs} +1 -1
- package/{chunk-4XJZIRLT.mjs → chunk-6HBDXEIK.mjs} +2 -2
- package/{chunk-G5SKXDYM.mjs → chunk-6TFRV3FG.mjs} +2 -2
- package/{chunk-7ZF45QUN.mjs → chunk-7ZERTOE7.mjs} +2 -2
- package/{chunk-NCTEG6EL.mjs → chunk-AURTWOTB.mjs} +2 -2
- package/{chunk-FPJKWVVF.mjs → chunk-DERWNSPY.mjs} +1 -1
- package/{chunk-IWSDOFBY.mjs → chunk-F76ICRGY.mjs} +2 -2
- package/{chunk-OVANLPKX.mjs → chunk-FT5BAKSG.mjs} +2 -2
- package/{chunk-UUWULEKH.mjs → chunk-GR2PK3Z7.mjs} +2 -2
- package/{chunk-UMP5UF3U.mjs → chunk-HHJNVLHK.mjs} +1 -1
- package/{chunk-3OIG2FI5.mjs → chunk-HZM2PWYJ.mjs} +2 -2
- package/{chunk-6PH42V5T.mjs → chunk-JPFAMQGV.mjs} +1 -1
- package/{chunk-L4EWOROT.mjs → chunk-MDK5KVJT.mjs} +2 -2
- package/{chunk-RYJSCFSY.mjs → chunk-O7OHCS36.mjs} +1 -1
- package/{chunk-GQ5G2YX4.mjs → chunk-OMDC46YE.mjs} +2 -2
- package/{chunk-FRMGP3C3.mjs → chunk-OUVNM2RX.mjs} +1 -1
- package/{chunk-5C4YMHXV.mjs → chunk-OX3X37VR.mjs} +2 -2
- package/{chunk-OARPUXXM.mjs → chunk-P54HBDOE.mjs} +2 -2
- package/{chunk-F27U6CXB.mjs → chunk-PO6GQE6E.mjs} +2 -2
- package/{chunk-N2IX5TRK.mjs → chunk-THYAK7O3.mjs} +2 -2
- package/{chunk-YIUJVGT4.mjs → chunk-VGFPONIS.mjs} +1 -1
- package/{chunk-WTHEEPBE.mjs → chunk-WGPPH7DC.mjs} +1 -1
- package/{chunk-H54QBCSW.mjs → chunk-WPLLR3SO.mjs} +2 -2
- package/{chunk-VO573WIK.mjs → chunk-WRJAOYL6.mjs} +1 -1
- package/{chunk-7I2LXGA2.mjs → chunk-XII4F5RZ.mjs} +2 -2
- package/{chunk-HBTFOSJU.mjs → chunk-Y3FAMPYF.mjs} +33 -18
- package/{chunk-6YS5KBXS.mjs → chunk-YNVJAGAY.mjs} +35 -34
- package/{chunk-2END6TYT.mjs → chunk-YQJCILG3.mjs} +1 -1
- package/financing/formalization/index.d.cts +1306 -1306
- package/financing/formalization/index.d.ts +1306 -1306
- package/financing/formalization/index.js +53 -24
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/AlfaPFSchema.js +35 -18
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/AlfaPJSchema.js +32 -17
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +35 -18
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +32 -17
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/BtgPFSchema.js +35 -18
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BtgPJSchema.js +35 -18
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPFSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPFSchema.js +35 -18
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/BvPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/BvPJSchema.js +35 -18
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +35 -18
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +32 -17
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.d.ts +24 -24
- package/financing/formalization/schemas/CashMePFSchema.js +35 -18
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.d.ts +36 -36
- package/financing/formalization/schemas/CashMePJSchema.js +32 -17
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +24 -24
- package/financing/formalization/schemas/Credito77PFSchema.js +35 -18
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +36 -36
- package/financing/formalization/schemas/Credito77PJSchema.js +32 -17
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/EosPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/EosPFSchema.js +35 -18
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/EosPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/EosPJSchema.js +32 -17
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +35 -18
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +32 -17
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/LosangoPFSchema.js +35 -18
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/LosangoPJSchema.js +32 -17
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SafraPFSchema.js +35 -18
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SafraPJSchema.js +32 -17
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SantanderPFSchema.js +35 -18
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +36 -36
- package/financing/formalization/schemas/SantanderPJSchema.js +32 -17
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolAgoraPFSchema.js +35 -18
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +72 -72
- package/financing/formalization/schemas/SolAgoraPJSchema.js +35 -18
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +24 -24
- package/financing/formalization/schemas/SolfacilPFSchema.js +35 -18
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +48 -48
- package/financing/formalization/schemas/SolfacilPJSchema.js +32 -17
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +88 -88
- package/financing/formalization/schemas/UnifiedPFSchema.js +50 -23
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +156 -156
- package/financing/formalization/schemas/UnifiedPJSchema.js +35 -18
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +53 -24
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -7,20 +7,20 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
7
7
|
address: z.ZodString;
|
|
8
8
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
9
9
|
number: z.ZodString;
|
|
10
|
-
sex: z.ZodEnum<[
|
|
10
|
+
sex: z.ZodEnum<[string, string]>;
|
|
11
11
|
complement: z.ZodOptional<z.ZodString>;
|
|
12
12
|
mother_name: z.ZodString;
|
|
13
13
|
district: z.ZodString;
|
|
14
14
|
energy_account_in_requester_name: z.ZodString;
|
|
15
15
|
city: z.ZodString;
|
|
16
16
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
17
|
-
state: z.ZodEnum<[
|
|
17
|
+
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]>;
|
|
18
18
|
nationality: z.ZodString;
|
|
19
19
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
20
20
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
21
21
|
monthly_income: z.ZodNumber;
|
|
22
22
|
profession: z.ZodString;
|
|
23
|
-
type_doc: z.ZodEnum<[
|
|
23
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
24
24
|
doc: z.ZodString;
|
|
25
25
|
issuing_body: z.ZodString;
|
|
26
26
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -79,9 +79,9 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
79
79
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
number: string;
|
|
82
|
-
sex:
|
|
83
|
-
type_doc:
|
|
84
|
-
state:
|
|
82
|
+
sex: string;
|
|
83
|
+
type_doc: string;
|
|
84
|
+
state: string;
|
|
85
85
|
energy_account_in_requester_name: string;
|
|
86
86
|
doc_issue_date: string;
|
|
87
87
|
name: string;
|
|
@@ -124,9 +124,9 @@ declare const solfacilPfObject: z.ZodObject<{
|
|
|
124
124
|
energy_bill_owner_document?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
number: string;
|
|
127
|
-
sex:
|
|
128
|
-
type_doc:
|
|
129
|
-
state:
|
|
127
|
+
sex: string;
|
|
128
|
+
type_doc: string;
|
|
129
|
+
state: string;
|
|
130
130
|
energy_account_in_requester_name: string;
|
|
131
131
|
doc_issue_date: string;
|
|
132
132
|
name: string;
|
|
@@ -175,20 +175,20 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
175
175
|
address: z.ZodString;
|
|
176
176
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
177
177
|
number: z.ZodString;
|
|
178
|
-
sex: z.ZodEnum<[
|
|
178
|
+
sex: z.ZodEnum<[string, string]>;
|
|
179
179
|
complement: z.ZodOptional<z.ZodString>;
|
|
180
180
|
mother_name: z.ZodString;
|
|
181
181
|
district: z.ZodString;
|
|
182
182
|
energy_account_in_requester_name: z.ZodString;
|
|
183
183
|
city: z.ZodString;
|
|
184
184
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
185
|
-
state: z.ZodEnum<[
|
|
185
|
+
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]>;
|
|
186
186
|
nationality: z.ZodString;
|
|
187
187
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
188
188
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
189
189
|
monthly_income: z.ZodNumber;
|
|
190
190
|
profession: z.ZodString;
|
|
191
|
-
type_doc: z.ZodEnum<[
|
|
191
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
192
192
|
doc: z.ZodString;
|
|
193
193
|
issuing_body: z.ZodString;
|
|
194
194
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
@@ -247,9 +247,9 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
247
247
|
rd_re_insurance_toggle: z.ZodDefault<z.ZodBoolean>;
|
|
248
248
|
}, "strict", z.ZodTypeAny, {
|
|
249
249
|
number: string;
|
|
250
|
-
sex:
|
|
251
|
-
type_doc:
|
|
252
|
-
state:
|
|
250
|
+
sex: string;
|
|
251
|
+
type_doc: string;
|
|
252
|
+
state: string;
|
|
253
253
|
energy_account_in_requester_name: string;
|
|
254
254
|
doc_issue_date: string;
|
|
255
255
|
name: string;
|
|
@@ -292,9 +292,9 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
292
292
|
energy_bill_owner_document?: string | undefined;
|
|
293
293
|
}, {
|
|
294
294
|
number: string;
|
|
295
|
-
sex:
|
|
296
|
-
type_doc:
|
|
297
|
-
state:
|
|
295
|
+
sex: string;
|
|
296
|
+
type_doc: string;
|
|
297
|
+
state: string;
|
|
298
298
|
energy_account_in_requester_name: string;
|
|
299
299
|
doc_issue_date: string;
|
|
300
300
|
name: string;
|
|
@@ -337,9 +337,9 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
338
338
|
}>, {
|
|
339
339
|
number: string;
|
|
340
|
-
sex:
|
|
341
|
-
type_doc:
|
|
342
|
-
state:
|
|
340
|
+
sex: string;
|
|
341
|
+
type_doc: string;
|
|
342
|
+
state: string;
|
|
343
343
|
energy_account_in_requester_name: string;
|
|
344
344
|
doc_issue_date: string;
|
|
345
345
|
name: string;
|
|
@@ -382,9 +382,9 @@ declare const solfacilPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
382
|
energy_bill_owner_document?: string | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
number: string;
|
|
385
|
-
sex:
|
|
386
|
-
type_doc:
|
|
387
|
-
state:
|
|
385
|
+
sex: string;
|
|
386
|
+
type_doc: string;
|
|
387
|
+
state: string;
|
|
388
388
|
energy_account_in_requester_name: string;
|
|
389
389
|
doc_issue_date: string;
|
|
390
390
|
name: string;
|
|
@@ -3,12 +3,44 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/SolfacilPFSchema.ts
|
|
6
|
-
var
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
7
|
+
function textField(maxLength) {
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
9
|
+
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
10
|
+
}
|
|
11
|
+
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
12
|
+
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
13
|
+
function enumField(values) {
|
|
14
|
+
return zod.z.enum(values, {
|
|
15
|
+
errorMap: (issue, ctx) => {
|
|
16
|
+
if (issue.code === zod.z.ZodIssueCode.invalid_type || issue.code === zod.z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
17
|
+
return { message: REQUIRED_MESSAGE };
|
|
18
|
+
}
|
|
19
|
+
return { message: ctx.defaultError };
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
24
|
+
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
25
|
+
var fileUploadField = zod.z.object({
|
|
26
|
+
url: zod.z.string().url().optional(),
|
|
27
|
+
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
28
|
+
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
29
|
+
}),
|
|
30
|
+
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
7
35
|
"documento_de_identidade",
|
|
8
36
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
37
|
]);
|
|
10
|
-
|
|
11
|
-
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
12
44
|
"AC",
|
|
13
45
|
"AL",
|
|
14
46
|
"AP",
|
|
@@ -37,21 +69,6 @@ var UfEnum = zod.z.enum([
|
|
|
37
69
|
"SE",
|
|
38
70
|
"TO"
|
|
39
71
|
]);
|
|
40
|
-
function textField(maxLength) {
|
|
41
|
-
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
42
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
43
|
-
}
|
|
44
|
-
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
45
|
-
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
46
|
-
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
47
|
-
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
48
|
-
var fileUploadField = zod.z.object({
|
|
49
|
-
url: zod.z.string().url().optional(),
|
|
50
|
-
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
51
|
-
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
52
|
-
}),
|
|
53
|
-
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
54
|
-
});
|
|
55
72
|
|
|
56
73
|
// src/shared/regex/patterns.ts
|
|
57
74
|
var PATTERNS = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { solfacilPfObject, solfacilPfSchema } from '../../../chunk-PO6GQE6E.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|
|
@@ -14,10 +14,10 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
14
14
|
district: z.ZodString;
|
|
15
15
|
legal_nature: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
17
|
-
state: z.ZodEnum<[
|
|
17
|
+
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]>;
|
|
18
18
|
}, "strict", z.ZodTypeAny, {
|
|
19
19
|
number: string;
|
|
20
|
-
state:
|
|
20
|
+
state: string;
|
|
21
21
|
cep: string;
|
|
22
22
|
address: string;
|
|
23
23
|
district: string;
|
|
@@ -31,7 +31,7 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
31
31
|
complement?: string | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
number: string;
|
|
34
|
-
state:
|
|
34
|
+
state: string;
|
|
35
35
|
cep: string;
|
|
36
36
|
address: string;
|
|
37
37
|
district: string;
|
|
@@ -56,14 +56,14 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
56
56
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
57
57
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
58
58
|
district: z.ZodString;
|
|
59
|
-
sex: z.ZodEnum<[
|
|
59
|
+
sex: z.ZodEnum<[string, string]>;
|
|
60
60
|
city: z.ZodString;
|
|
61
|
-
state: z.ZodEnum<[
|
|
61
|
+
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]>;
|
|
62
62
|
civil_status: z.ZodString;
|
|
63
63
|
office: z.ZodString;
|
|
64
64
|
doc: z.ZodString;
|
|
65
65
|
issuing_body: z.ZodString;
|
|
66
|
-
uf_issuing_body: z.ZodEnum<[
|
|
66
|
+
uf_issuing_body: 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]>;
|
|
67
67
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
68
68
|
mother_name: z.ZodString;
|
|
69
69
|
monthly_income: z.ZodNumber;
|
|
@@ -71,10 +71,10 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
71
71
|
nationality: z.ZodString;
|
|
72
72
|
}, "strict", z.ZodTypeAny, {
|
|
73
73
|
number: string;
|
|
74
|
-
sex:
|
|
74
|
+
sex: string;
|
|
75
75
|
civil_status: string;
|
|
76
|
-
state:
|
|
77
|
-
uf_issuing_body:
|
|
76
|
+
state: string;
|
|
77
|
+
uf_issuing_body: string;
|
|
78
78
|
doc_issue_date: string;
|
|
79
79
|
name: string;
|
|
80
80
|
cep: string;
|
|
@@ -96,10 +96,10 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
96
96
|
complement?: string | undefined;
|
|
97
97
|
}, {
|
|
98
98
|
number: string;
|
|
99
|
-
sex:
|
|
99
|
+
sex: string;
|
|
100
100
|
civil_status: string;
|
|
101
|
-
state:
|
|
102
|
-
uf_issuing_body:
|
|
101
|
+
state: string;
|
|
102
|
+
uf_issuing_body: string;
|
|
103
103
|
doc_issue_date: string;
|
|
104
104
|
name: string;
|
|
105
105
|
cep: string;
|
|
@@ -192,7 +192,7 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
192
192
|
rd_re_insurance_toggle: boolean;
|
|
193
193
|
financing_company: {
|
|
194
194
|
number: string;
|
|
195
|
-
state:
|
|
195
|
+
state: string;
|
|
196
196
|
cep: string;
|
|
197
197
|
address: string;
|
|
198
198
|
district: string;
|
|
@@ -207,10 +207,10 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
207
207
|
};
|
|
208
208
|
financing_company_guarantor: {
|
|
209
209
|
number: string;
|
|
210
|
-
sex:
|
|
210
|
+
sex: string;
|
|
211
211
|
civil_status: string;
|
|
212
|
-
state:
|
|
213
|
-
uf_issuing_body:
|
|
212
|
+
state: string;
|
|
213
|
+
uf_issuing_body: string;
|
|
214
214
|
doc_issue_date: string;
|
|
215
215
|
name: string;
|
|
216
216
|
cep: string;
|
|
@@ -254,7 +254,7 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
254
254
|
};
|
|
255
255
|
financing_company: {
|
|
256
256
|
number: string;
|
|
257
|
-
state:
|
|
257
|
+
state: string;
|
|
258
258
|
cep: string;
|
|
259
259
|
address: string;
|
|
260
260
|
district: string;
|
|
@@ -269,10 +269,10 @@ declare const solfacilPjObject: z.ZodObject<{
|
|
|
269
269
|
};
|
|
270
270
|
financing_company_guarantor: {
|
|
271
271
|
number: string;
|
|
272
|
-
sex:
|
|
272
|
+
sex: string;
|
|
273
273
|
civil_status: string;
|
|
274
|
-
state:
|
|
275
|
-
uf_issuing_body:
|
|
274
|
+
state: string;
|
|
275
|
+
uf_issuing_body: string;
|
|
276
276
|
doc_issue_date: string;
|
|
277
277
|
name: string;
|
|
278
278
|
cep: string;
|
|
@@ -314,10 +314,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
314
314
|
district: z.ZodString;
|
|
315
315
|
legal_nature: z.ZodString;
|
|
316
316
|
city: z.ZodString;
|
|
317
|
-
state: z.ZodEnum<[
|
|
317
|
+
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]>;
|
|
318
318
|
}, "strict", z.ZodTypeAny, {
|
|
319
319
|
number: string;
|
|
320
|
-
state:
|
|
320
|
+
state: string;
|
|
321
321
|
cep: string;
|
|
322
322
|
address: string;
|
|
323
323
|
district: string;
|
|
@@ -331,7 +331,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
331
331
|
complement?: string | undefined;
|
|
332
332
|
}, {
|
|
333
333
|
number: string;
|
|
334
|
-
state:
|
|
334
|
+
state: string;
|
|
335
335
|
cep: string;
|
|
336
336
|
address: string;
|
|
337
337
|
district: string;
|
|
@@ -356,14 +356,14 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
356
356
|
phone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
357
357
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
358
358
|
district: z.ZodString;
|
|
359
|
-
sex: z.ZodEnum<[
|
|
359
|
+
sex: z.ZodEnum<[string, string]>;
|
|
360
360
|
city: z.ZodString;
|
|
361
|
-
state: z.ZodEnum<[
|
|
361
|
+
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]>;
|
|
362
362
|
civil_status: z.ZodString;
|
|
363
363
|
office: z.ZodString;
|
|
364
364
|
doc: z.ZodString;
|
|
365
365
|
issuing_body: z.ZodString;
|
|
366
|
-
uf_issuing_body: z.ZodEnum<[
|
|
366
|
+
uf_issuing_body: 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]>;
|
|
367
367
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
368
368
|
mother_name: z.ZodString;
|
|
369
369
|
monthly_income: z.ZodNumber;
|
|
@@ -371,10 +371,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
371
371
|
nationality: z.ZodString;
|
|
372
372
|
}, "strict", z.ZodTypeAny, {
|
|
373
373
|
number: string;
|
|
374
|
-
sex:
|
|
374
|
+
sex: string;
|
|
375
375
|
civil_status: string;
|
|
376
|
-
state:
|
|
377
|
-
uf_issuing_body:
|
|
376
|
+
state: string;
|
|
377
|
+
uf_issuing_body: string;
|
|
378
378
|
doc_issue_date: string;
|
|
379
379
|
name: string;
|
|
380
380
|
cep: string;
|
|
@@ -396,10 +396,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
396
396
|
complement?: string | undefined;
|
|
397
397
|
}, {
|
|
398
398
|
number: string;
|
|
399
|
-
sex:
|
|
399
|
+
sex: string;
|
|
400
400
|
civil_status: string;
|
|
401
|
-
state:
|
|
402
|
-
uf_issuing_body:
|
|
401
|
+
state: string;
|
|
402
|
+
uf_issuing_body: string;
|
|
403
403
|
doc_issue_date: string;
|
|
404
404
|
name: string;
|
|
405
405
|
cep: string;
|
|
@@ -492,7 +492,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
492
492
|
rd_re_insurance_toggle: boolean;
|
|
493
493
|
financing_company: {
|
|
494
494
|
number: string;
|
|
495
|
-
state:
|
|
495
|
+
state: string;
|
|
496
496
|
cep: string;
|
|
497
497
|
address: string;
|
|
498
498
|
district: string;
|
|
@@ -507,10 +507,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
507
507
|
};
|
|
508
508
|
financing_company_guarantor: {
|
|
509
509
|
number: string;
|
|
510
|
-
sex:
|
|
510
|
+
sex: string;
|
|
511
511
|
civil_status: string;
|
|
512
|
-
state:
|
|
513
|
-
uf_issuing_body:
|
|
512
|
+
state: string;
|
|
513
|
+
uf_issuing_body: string;
|
|
514
514
|
doc_issue_date: string;
|
|
515
515
|
name: string;
|
|
516
516
|
cep: string;
|
|
@@ -554,7 +554,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
554
554
|
};
|
|
555
555
|
financing_company: {
|
|
556
556
|
number: string;
|
|
557
|
-
state:
|
|
557
|
+
state: string;
|
|
558
558
|
cep: string;
|
|
559
559
|
address: string;
|
|
560
560
|
district: string;
|
|
@@ -569,10 +569,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
569
569
|
};
|
|
570
570
|
financing_company_guarantor: {
|
|
571
571
|
number: string;
|
|
572
|
-
sex:
|
|
572
|
+
sex: string;
|
|
573
573
|
civil_status: string;
|
|
574
|
-
state:
|
|
575
|
-
uf_issuing_body:
|
|
574
|
+
state: string;
|
|
575
|
+
uf_issuing_body: string;
|
|
576
576
|
doc_issue_date: string;
|
|
577
577
|
name: string;
|
|
578
578
|
cep: string;
|
|
@@ -618,7 +618,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
618
618
|
rd_re_insurance_toggle: boolean;
|
|
619
619
|
financing_company: {
|
|
620
620
|
number: string;
|
|
621
|
-
state:
|
|
621
|
+
state: string;
|
|
622
622
|
cep: string;
|
|
623
623
|
address: string;
|
|
624
624
|
district: string;
|
|
@@ -633,10 +633,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
633
633
|
};
|
|
634
634
|
financing_company_guarantor: {
|
|
635
635
|
number: string;
|
|
636
|
-
sex:
|
|
636
|
+
sex: string;
|
|
637
637
|
civil_status: string;
|
|
638
|
-
state:
|
|
639
|
-
uf_issuing_body:
|
|
638
|
+
state: string;
|
|
639
|
+
uf_issuing_body: string;
|
|
640
640
|
doc_issue_date: string;
|
|
641
641
|
name: string;
|
|
642
642
|
cep: string;
|
|
@@ -680,7 +680,7 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
680
680
|
};
|
|
681
681
|
financing_company: {
|
|
682
682
|
number: string;
|
|
683
|
-
state:
|
|
683
|
+
state: string;
|
|
684
684
|
cep: string;
|
|
685
685
|
address: string;
|
|
686
686
|
district: string;
|
|
@@ -695,10 +695,10 @@ declare const solfacilPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
695
695
|
};
|
|
696
696
|
financing_company_guarantor: {
|
|
697
697
|
number: string;
|
|
698
|
-
sex:
|
|
698
|
+
sex: string;
|
|
699
699
|
civil_status: string;
|
|
700
|
-
state:
|
|
701
|
-
uf_issuing_body:
|
|
700
|
+
state: string;
|
|
701
|
+
uf_issuing_body: string;
|
|
702
702
|
doc_issue_date: string;
|
|
703
703
|
name: string;
|
|
704
704
|
cep: string;
|