@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
|
@@ -60,54 +60,54 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
60
60
|
address: z.ZodString;
|
|
61
61
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
62
62
|
number: z.ZodString;
|
|
63
|
-
sex: z.ZodEnum<[
|
|
63
|
+
sex: z.ZodEnum<[string, string]>;
|
|
64
64
|
complement: z.ZodOptional<z.ZodString>;
|
|
65
65
|
mother_name: z.ZodString;
|
|
66
66
|
district: z.ZodString;
|
|
67
67
|
energy_account_in_requester_name: z.ZodString;
|
|
68
68
|
city: z.ZodString;
|
|
69
69
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
70
|
-
state: z.ZodEnum<[
|
|
70
|
+
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]>;
|
|
71
71
|
nationality: z.ZodString;
|
|
72
72
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
73
73
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
74
74
|
monthly_income: z.ZodNumber;
|
|
75
75
|
profession: z.ZodString;
|
|
76
|
-
type_doc: z.ZodEnum<[
|
|
76
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
77
77
|
doc: z.ZodString;
|
|
78
78
|
issuing_body: z.ZodString;
|
|
79
79
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
80
|
-
residence_situation: z.ZodEnum<[
|
|
80
|
+
residence_situation: z.ZodEnum<[string, string, string, string, string]>;
|
|
81
81
|
months_in_residence: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
civil_status: z.ZodEnum<[
|
|
83
|
-
uf_naturalness: z.ZodEnum<[
|
|
82
|
+
civil_status: z.ZodEnum<[string, string, string, string, string, string]>;
|
|
83
|
+
uf_naturalness: 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]>;
|
|
84
84
|
naturalness: z.ZodOptional<z.ZodString>;
|
|
85
|
-
nature_of_occupation: z.ZodEnum<[
|
|
85
|
+
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
86
86
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
87
87
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
88
88
|
equity_value: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
emitting_state: z.ZodEnum<[
|
|
90
|
-
pep_relationship: z.ZodEnum<[
|
|
89
|
+
emitting_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]>;
|
|
90
|
+
pep_relationship: z.ZodEnum<[string, string]>;
|
|
91
91
|
social_name: z.ZodOptional<z.ZodString>;
|
|
92
92
|
partner_name: z.ZodOptional<z.ZodString>;
|
|
93
93
|
partner_birth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
94
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<[
|
|
94
|
+
partner_type_doc: z.ZodOptional<z.ZodEnum<[string, string]>>;
|
|
95
95
|
partner_doc: z.ZodOptional<z.ZodString>;
|
|
96
96
|
partner_cpf: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
97
97
|
partner_city: z.ZodOptional<z.ZodString>;
|
|
98
|
-
communion_regime: z.ZodOptional<z.ZodEnum<[
|
|
98
|
+
communion_regime: z.ZodOptional<z.ZodEnum<[string, string, string, string]>>;
|
|
99
99
|
rural_area: z.ZodOptional<z.ZodString>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
number: string;
|
|
102
|
-
sex:
|
|
103
|
-
type_doc:
|
|
104
|
-
residence_situation:
|
|
105
|
-
nature_of_occupation:
|
|
106
|
-
pep_relationship:
|
|
107
|
-
civil_status:
|
|
108
|
-
state:
|
|
109
|
-
uf_naturalness:
|
|
110
|
-
emitting_state:
|
|
102
|
+
sex: string;
|
|
103
|
+
type_doc: string;
|
|
104
|
+
residence_situation: string;
|
|
105
|
+
nature_of_occupation: string;
|
|
106
|
+
pep_relationship: string;
|
|
107
|
+
civil_status: string;
|
|
108
|
+
state: string;
|
|
109
|
+
uf_naturalness: string;
|
|
110
|
+
emitting_state: string;
|
|
111
111
|
energy_account_in_requester_name: string;
|
|
112
112
|
doc_issue_date: string;
|
|
113
113
|
name: string;
|
|
@@ -143,11 +143,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
143
143
|
rd_re_insurance_toggle: boolean;
|
|
144
144
|
partner_name?: string | undefined;
|
|
145
145
|
partner_birth?: string | undefined;
|
|
146
|
-
partner_type_doc?:
|
|
146
|
+
partner_type_doc?: string | undefined;
|
|
147
147
|
partner_doc?: string | undefined;
|
|
148
148
|
partner_cpf?: string | undefined;
|
|
149
149
|
partner_city?: string | undefined;
|
|
150
|
-
communion_regime?:
|
|
150
|
+
communion_regime?: string | undefined;
|
|
151
151
|
proof_kinship?: {
|
|
152
152
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
153
153
|
sizeBytes: number;
|
|
@@ -164,15 +164,15 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
164
164
|
rural_area?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
number: string;
|
|
167
|
-
sex:
|
|
168
|
-
type_doc:
|
|
169
|
-
residence_situation:
|
|
170
|
-
nature_of_occupation:
|
|
171
|
-
pep_relationship:
|
|
172
|
-
civil_status:
|
|
173
|
-
state:
|
|
174
|
-
uf_naturalness:
|
|
175
|
-
emitting_state:
|
|
167
|
+
sex: string;
|
|
168
|
+
type_doc: string;
|
|
169
|
+
residence_situation: string;
|
|
170
|
+
nature_of_occupation: string;
|
|
171
|
+
pep_relationship: string;
|
|
172
|
+
civil_status: string;
|
|
173
|
+
state: string;
|
|
174
|
+
uf_naturalness: string;
|
|
175
|
+
emitting_state: string;
|
|
176
176
|
energy_account_in_requester_name: string;
|
|
177
177
|
doc_issue_date: string;
|
|
178
178
|
name: string;
|
|
@@ -207,11 +207,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
207
207
|
};
|
|
208
208
|
partner_name?: string | undefined;
|
|
209
209
|
partner_birth?: string | undefined;
|
|
210
|
-
partner_type_doc?:
|
|
210
|
+
partner_type_doc?: string | undefined;
|
|
211
211
|
partner_doc?: string | undefined;
|
|
212
212
|
partner_cpf?: string | undefined;
|
|
213
213
|
partner_city?: string | undefined;
|
|
214
|
-
communion_regime?:
|
|
214
|
+
communion_regime?: string | undefined;
|
|
215
215
|
proof_kinship?: {
|
|
216
216
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
217
217
|
sizeBytes: number;
|
|
@@ -288,54 +288,54 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
288
288
|
address: z.ZodString;
|
|
289
289
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
290
290
|
number: z.ZodString;
|
|
291
|
-
sex: z.ZodEnum<[
|
|
291
|
+
sex: z.ZodEnum<[string, string]>;
|
|
292
292
|
complement: z.ZodOptional<z.ZodString>;
|
|
293
293
|
mother_name: z.ZodString;
|
|
294
294
|
district: z.ZodString;
|
|
295
295
|
energy_account_in_requester_name: z.ZodString;
|
|
296
296
|
city: z.ZodString;
|
|
297
297
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
298
|
-
state: z.ZodEnum<[
|
|
298
|
+
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]>;
|
|
299
299
|
nationality: z.ZodString;
|
|
300
300
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
301
301
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
302
302
|
monthly_income: z.ZodNumber;
|
|
303
303
|
profession: z.ZodString;
|
|
304
|
-
type_doc: z.ZodEnum<[
|
|
304
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
305
305
|
doc: z.ZodString;
|
|
306
306
|
issuing_body: z.ZodString;
|
|
307
307
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
308
|
-
residence_situation: z.ZodEnum<[
|
|
308
|
+
residence_situation: z.ZodEnum<[string, string, string, string, string]>;
|
|
309
309
|
months_in_residence: z.ZodOptional<z.ZodNumber>;
|
|
310
|
-
civil_status: z.ZodEnum<[
|
|
311
|
-
uf_naturalness: z.ZodEnum<[
|
|
310
|
+
civil_status: z.ZodEnum<[string, string, string, string, string, string]>;
|
|
311
|
+
uf_naturalness: 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]>;
|
|
312
312
|
naturalness: z.ZodOptional<z.ZodString>;
|
|
313
|
-
nature_of_occupation: z.ZodEnum<[
|
|
313
|
+
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
314
314
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
315
315
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
316
316
|
equity_value: z.ZodOptional<z.ZodNumber>;
|
|
317
|
-
emitting_state: z.ZodEnum<[
|
|
318
|
-
pep_relationship: z.ZodEnum<[
|
|
317
|
+
emitting_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
|
+
pep_relationship: z.ZodEnum<[string, string]>;
|
|
319
319
|
social_name: z.ZodOptional<z.ZodString>;
|
|
320
320
|
partner_name: z.ZodOptional<z.ZodString>;
|
|
321
321
|
partner_birth: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
322
|
-
partner_type_doc: z.ZodOptional<z.ZodEnum<[
|
|
322
|
+
partner_type_doc: z.ZodOptional<z.ZodEnum<[string, string]>>;
|
|
323
323
|
partner_doc: z.ZodOptional<z.ZodString>;
|
|
324
324
|
partner_cpf: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
325
325
|
partner_city: z.ZodOptional<z.ZodString>;
|
|
326
|
-
communion_regime: z.ZodOptional<z.ZodEnum<[
|
|
326
|
+
communion_regime: z.ZodOptional<z.ZodEnum<[string, string, string, string]>>;
|
|
327
327
|
rural_area: z.ZodOptional<z.ZodString>;
|
|
328
328
|
}, "strict", z.ZodTypeAny, {
|
|
329
329
|
number: string;
|
|
330
|
-
sex:
|
|
331
|
-
type_doc:
|
|
332
|
-
residence_situation:
|
|
333
|
-
nature_of_occupation:
|
|
334
|
-
pep_relationship:
|
|
335
|
-
civil_status:
|
|
336
|
-
state:
|
|
337
|
-
uf_naturalness:
|
|
338
|
-
emitting_state:
|
|
330
|
+
sex: string;
|
|
331
|
+
type_doc: string;
|
|
332
|
+
residence_situation: string;
|
|
333
|
+
nature_of_occupation: string;
|
|
334
|
+
pep_relationship: string;
|
|
335
|
+
civil_status: string;
|
|
336
|
+
state: string;
|
|
337
|
+
uf_naturalness: string;
|
|
338
|
+
emitting_state: string;
|
|
339
339
|
energy_account_in_requester_name: string;
|
|
340
340
|
doc_issue_date: string;
|
|
341
341
|
name: string;
|
|
@@ -371,11 +371,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
371
371
|
rd_re_insurance_toggle: boolean;
|
|
372
372
|
partner_name?: string | undefined;
|
|
373
373
|
partner_birth?: string | undefined;
|
|
374
|
-
partner_type_doc?:
|
|
374
|
+
partner_type_doc?: string | undefined;
|
|
375
375
|
partner_doc?: string | undefined;
|
|
376
376
|
partner_cpf?: string | undefined;
|
|
377
377
|
partner_city?: string | undefined;
|
|
378
|
-
communion_regime?:
|
|
378
|
+
communion_regime?: string | undefined;
|
|
379
379
|
proof_kinship?: {
|
|
380
380
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
381
381
|
sizeBytes: number;
|
|
@@ -392,15 +392,15 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
392
392
|
rural_area?: string | undefined;
|
|
393
393
|
}, {
|
|
394
394
|
number: string;
|
|
395
|
-
sex:
|
|
396
|
-
type_doc:
|
|
397
|
-
residence_situation:
|
|
398
|
-
nature_of_occupation:
|
|
399
|
-
pep_relationship:
|
|
400
|
-
civil_status:
|
|
401
|
-
state:
|
|
402
|
-
uf_naturalness:
|
|
403
|
-
emitting_state:
|
|
395
|
+
sex: string;
|
|
396
|
+
type_doc: string;
|
|
397
|
+
residence_situation: string;
|
|
398
|
+
nature_of_occupation: string;
|
|
399
|
+
pep_relationship: string;
|
|
400
|
+
civil_status: string;
|
|
401
|
+
state: string;
|
|
402
|
+
uf_naturalness: string;
|
|
403
|
+
emitting_state: string;
|
|
404
404
|
energy_account_in_requester_name: string;
|
|
405
405
|
doc_issue_date: string;
|
|
406
406
|
name: string;
|
|
@@ -435,11 +435,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
435
435
|
};
|
|
436
436
|
partner_name?: string | undefined;
|
|
437
437
|
partner_birth?: string | undefined;
|
|
438
|
-
partner_type_doc?:
|
|
438
|
+
partner_type_doc?: string | undefined;
|
|
439
439
|
partner_doc?: string | undefined;
|
|
440
440
|
partner_cpf?: string | undefined;
|
|
441
441
|
partner_city?: string | undefined;
|
|
442
|
-
communion_regime?:
|
|
442
|
+
communion_regime?: string | undefined;
|
|
443
443
|
proof_kinship?: {
|
|
444
444
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
445
445
|
sizeBytes: number;
|
|
@@ -457,15 +457,15 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
457
457
|
rural_area?: string | undefined;
|
|
458
458
|
}>, {
|
|
459
459
|
number: string;
|
|
460
|
-
sex:
|
|
461
|
-
type_doc:
|
|
462
|
-
residence_situation:
|
|
463
|
-
nature_of_occupation:
|
|
464
|
-
pep_relationship:
|
|
465
|
-
civil_status:
|
|
466
|
-
state:
|
|
467
|
-
uf_naturalness:
|
|
468
|
-
emitting_state:
|
|
460
|
+
sex: string;
|
|
461
|
+
type_doc: string;
|
|
462
|
+
residence_situation: string;
|
|
463
|
+
nature_of_occupation: string;
|
|
464
|
+
pep_relationship: string;
|
|
465
|
+
civil_status: string;
|
|
466
|
+
state: string;
|
|
467
|
+
uf_naturalness: string;
|
|
468
|
+
emitting_state: string;
|
|
469
469
|
energy_account_in_requester_name: string;
|
|
470
470
|
doc_issue_date: string;
|
|
471
471
|
name: string;
|
|
@@ -501,11 +501,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
501
501
|
rd_re_insurance_toggle: boolean;
|
|
502
502
|
partner_name?: string | undefined;
|
|
503
503
|
partner_birth?: string | undefined;
|
|
504
|
-
partner_type_doc?:
|
|
504
|
+
partner_type_doc?: string | undefined;
|
|
505
505
|
partner_doc?: string | undefined;
|
|
506
506
|
partner_cpf?: string | undefined;
|
|
507
507
|
partner_city?: string | undefined;
|
|
508
|
-
communion_regime?:
|
|
508
|
+
communion_regime?: string | undefined;
|
|
509
509
|
proof_kinship?: {
|
|
510
510
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
511
511
|
sizeBytes: number;
|
|
@@ -522,15 +522,15 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
522
522
|
rural_area?: string | undefined;
|
|
523
523
|
}, {
|
|
524
524
|
number: string;
|
|
525
|
-
sex:
|
|
526
|
-
type_doc:
|
|
527
|
-
residence_situation:
|
|
528
|
-
nature_of_occupation:
|
|
529
|
-
pep_relationship:
|
|
530
|
-
civil_status:
|
|
531
|
-
state:
|
|
532
|
-
uf_naturalness:
|
|
533
|
-
emitting_state:
|
|
525
|
+
sex: string;
|
|
526
|
+
type_doc: string;
|
|
527
|
+
residence_situation: string;
|
|
528
|
+
nature_of_occupation: string;
|
|
529
|
+
pep_relationship: string;
|
|
530
|
+
civil_status: string;
|
|
531
|
+
state: string;
|
|
532
|
+
uf_naturalness: string;
|
|
533
|
+
emitting_state: string;
|
|
534
534
|
energy_account_in_requester_name: string;
|
|
535
535
|
doc_issue_date: string;
|
|
536
536
|
name: string;
|
|
@@ -565,11 +565,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
565
565
|
};
|
|
566
566
|
partner_name?: string | undefined;
|
|
567
567
|
partner_birth?: string | undefined;
|
|
568
|
-
partner_type_doc?:
|
|
568
|
+
partner_type_doc?: string | undefined;
|
|
569
569
|
partner_doc?: string | undefined;
|
|
570
570
|
partner_cpf?: string | undefined;
|
|
571
571
|
partner_city?: string | undefined;
|
|
572
|
-
communion_regime?:
|
|
572
|
+
communion_regime?: string | undefined;
|
|
573
573
|
proof_kinship?: {
|
|
574
574
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
575
575
|
sizeBytes: number;
|
|
@@ -3,16 +3,50 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/UnifiedPFSchema.ts
|
|
6
|
-
var
|
|
7
|
-
|
|
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
|
+
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
12
|
+
var integerField = 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/nature-of-occupation-type.ts
|
|
34
|
+
var NatureOfOccupationTypeEnum = enumField(["autonomo", "clt", "aposentado", "empresario"]);
|
|
35
|
+
|
|
36
|
+
// src/shared/enums/residence-type.ts
|
|
37
|
+
var ResidenceTypeEnum = enumField([
|
|
8
38
|
"proprio",
|
|
9
39
|
"familiar",
|
|
10
40
|
"alugado",
|
|
11
41
|
"proprio_financiado",
|
|
12
42
|
"cedido"
|
|
13
43
|
]);
|
|
14
|
-
|
|
15
|
-
|
|
44
|
+
|
|
45
|
+
// src/shared/enums/yes-or-not-type.ts
|
|
46
|
+
var YesOrNoEnum = enumField(["sim", "nao"]);
|
|
47
|
+
|
|
48
|
+
// src/shared/enums/civil-status.ts
|
|
49
|
+
var CivilStatusEnum = enumField([
|
|
16
50
|
"solteiro",
|
|
17
51
|
"casado",
|
|
18
52
|
"divorciado",
|
|
@@ -20,18 +54,26 @@ var CivilStatusEnum = zod.z.enum([
|
|
|
20
54
|
"separado_judicialmente",
|
|
21
55
|
"companheiro"
|
|
22
56
|
]);
|
|
23
|
-
|
|
57
|
+
|
|
58
|
+
// src/shared/enums/communion-regime.ts
|
|
59
|
+
var CommunionRegimeEnum = enumField([
|
|
24
60
|
"comunhao_parcial",
|
|
25
61
|
"comunhao_universal",
|
|
26
62
|
"separacao_total",
|
|
27
63
|
"participacao_final_aquestos"
|
|
28
64
|
]);
|
|
29
|
-
|
|
65
|
+
|
|
66
|
+
// src/shared/enums/document-type.ts
|
|
67
|
+
var DocumentTypeEnum = enumField([
|
|
30
68
|
"documento_de_identidade",
|
|
31
69
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
32
70
|
]);
|
|
33
|
-
|
|
34
|
-
|
|
71
|
+
|
|
72
|
+
// src/shared/enums/sex.ts
|
|
73
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
74
|
+
|
|
75
|
+
// src/shared/enums/uf.ts
|
|
76
|
+
var UfEnum = enumField([
|
|
35
77
|
"AC",
|
|
36
78
|
"AL",
|
|
37
79
|
"AP",
|
|
@@ -60,21 +102,6 @@ var UfEnum = zod.z.enum([
|
|
|
60
102
|
"SE",
|
|
61
103
|
"TO"
|
|
62
104
|
]);
|
|
63
|
-
function textField(maxLength) {
|
|
64
|
-
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
65
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
66
|
-
}
|
|
67
|
-
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
68
|
-
var integerField = 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");
|
|
69
|
-
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
70
|
-
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
71
|
-
var fileUploadField = zod.z.object({
|
|
72
|
-
url: zod.z.string().url().optional(),
|
|
73
|
-
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
74
|
-
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
75
|
-
}),
|
|
76
|
-
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
77
|
-
});
|
|
78
105
|
|
|
79
106
|
// src/shared/regex/patterns.ts
|
|
80
107
|
var PATTERNS = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { unifiedPfObject, unifiedPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { unifiedPfObject, unifiedPfSchema } from '../../../chunk-2YVK6IDS.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|