@77sol-lab/form-schemas 1.4.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-XXID67A4.mjs → chunk-2CN56LSL.mjs} +3 -3
- package/{chunk-36ZWNLRE.mjs → chunk-2W3LQ75V.mjs} +6 -6
- package/{chunk-TIB6TEME.mjs → chunk-2YVK6IDS.mjs} +19 -10
- package/{chunk-2NFFUOYG.mjs → chunk-3BPZV6IW.mjs} +3 -3
- package/{chunk-BCQD5NJB.mjs → chunk-3O52U22S.mjs} +3 -3
- package/{chunk-3QVWHHHF.mjs → chunk-3RSZ4NGE.mjs} +4 -4
- package/{chunk-ENVJMMCX.mjs → chunk-6HBDXEIK.mjs} +6 -6
- package/{chunk-UHQAHHAO.mjs → chunk-6TFRV3FG.mjs} +3 -3
- package/{chunk-PP5WJMGB.mjs → chunk-7ZERTOE7.mjs} +3 -3
- package/{chunk-HK7VVKRF.mjs → chunk-AURTWOTB.mjs} +11 -11
- package/{chunk-QH5BHXWK.mjs → chunk-DERWNSPY.mjs} +3 -3
- package/{chunk-BPWVGI53.mjs → chunk-F76ICRGY.mjs} +6 -6
- package/{chunk-MUFER7FT.mjs → chunk-FT5BAKSG.mjs} +3 -3
- package/{chunk-VMIR7MGU.mjs → chunk-GR2PK3Z7.mjs} +3 -3
- package/{chunk-RFML2PIV.mjs → chunk-HHJNVLHK.mjs} +3 -3
- package/{chunk-YZ3YYQEI.mjs → chunk-HZM2PWYJ.mjs} +3 -3
- package/{chunk-BTHGPT5U.mjs → chunk-JPFAMQGV.mjs} +3 -3
- package/{chunk-QBQDE5Y7.mjs → chunk-MDK5KVJT.mjs} +3 -3
- package/{chunk-2VGGCJ2O.mjs → chunk-O7OHCS36.mjs} +3 -3
- package/{chunk-AXXSWRN2.mjs → chunk-OMDC46YE.mjs} +3 -3
- package/{chunk-DIARPLFL.mjs → chunk-OUVNM2RX.mjs} +3 -3
- package/{chunk-X3M274QY.mjs → chunk-OX3X37VR.mjs} +5 -5
- package/{chunk-PZG2YKS4.mjs → chunk-P54HBDOE.mjs} +3 -3
- package/{chunk-A5ZODVEU.mjs → chunk-PO6GQE6E.mjs} +3 -3
- package/{chunk-QZR62OU5.mjs → chunk-THYAK7O3.mjs} +3 -3
- package/{chunk-DWXCA5I6.mjs → chunk-VGFPONIS.mjs} +3 -3
- package/{chunk-XZSZRCO2.mjs → chunk-WGPPH7DC.mjs} +3 -3
- package/{chunk-BZ4V4AAJ.mjs → chunk-WPLLR3SO.mjs} +3 -3
- package/{chunk-PYKWBM67.mjs → chunk-WRJAOYL6.mjs} +3 -3
- package/{chunk-7I2LXGA2.mjs → chunk-XII4F5RZ.mjs} +2 -2
- package/{chunk-SKFIWDPV.mjs → chunk-Y3FAMPYF.mjs} +90 -17
- package/{chunk-LZCHOENM.mjs → chunk-YNVJAGAY.mjs} +41 -35
- package/{chunk-3LKC3OJJ.mjs → chunk-YQJCILG3.mjs} +3 -3
- package/financing/formalization/index.d.cts +1451 -1306
- package/financing/formalization/index.d.ts +1451 -1306
- package/financing/formalization/index.js +179 -87
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +56 -10
- 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 +55 -9
- 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 +56 -10
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +48 -4
- 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 +53 -7
- 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 +56 -10
- 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 +53 -7
- 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 +49 -5
- 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 +81 -25
- 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 +61 -15
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.js +179 -87
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -60,51 +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.
|
|
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.
|
|
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.
|
|
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:
|
|
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;
|
|
108
111
|
energy_account_in_requester_name: string;
|
|
109
112
|
doc_issue_date: string;
|
|
110
113
|
name: string;
|
|
@@ -115,7 +118,6 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
115
118
|
mother_name: string;
|
|
116
119
|
district: string;
|
|
117
120
|
city: string;
|
|
118
|
-
state: string;
|
|
119
121
|
nationality: string;
|
|
120
122
|
cellphone: string;
|
|
121
123
|
email: string;
|
|
@@ -141,11 +143,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
141
143
|
rd_re_insurance_toggle: boolean;
|
|
142
144
|
partner_name?: string | undefined;
|
|
143
145
|
partner_birth?: string | undefined;
|
|
144
|
-
partner_type_doc?:
|
|
146
|
+
partner_type_doc?: string | undefined;
|
|
145
147
|
partner_doc?: string | undefined;
|
|
146
148
|
partner_cpf?: string | undefined;
|
|
147
149
|
partner_city?: string | undefined;
|
|
148
|
-
communion_regime?:
|
|
150
|
+
communion_regime?: string | undefined;
|
|
149
151
|
proof_kinship?: {
|
|
150
152
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
151
153
|
sizeBytes: number;
|
|
@@ -154,22 +156,23 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
154
156
|
cnpj_proprietary?: string | undefined;
|
|
155
157
|
complement?: string | undefined;
|
|
156
158
|
energy_bill_owner_document?: string | undefined;
|
|
157
|
-
uf_naturalness?: string | undefined;
|
|
158
159
|
months_in_residence?: number | undefined;
|
|
159
160
|
naturalness?: string | undefined;
|
|
160
161
|
company_time?: number | undefined;
|
|
161
162
|
equity_value?: number | undefined;
|
|
162
|
-
emitting_state?: string | undefined;
|
|
163
163
|
social_name?: string | undefined;
|
|
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:
|
|
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;
|
|
173
176
|
energy_account_in_requester_name: string;
|
|
174
177
|
doc_issue_date: string;
|
|
175
178
|
name: string;
|
|
@@ -180,7 +183,6 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
180
183
|
mother_name: string;
|
|
181
184
|
district: string;
|
|
182
185
|
city: string;
|
|
183
|
-
state: string;
|
|
184
186
|
nationality: string;
|
|
185
187
|
cellphone: string;
|
|
186
188
|
email: string;
|
|
@@ -205,11 +207,11 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
205
207
|
};
|
|
206
208
|
partner_name?: string | undefined;
|
|
207
209
|
partner_birth?: string | undefined;
|
|
208
|
-
partner_type_doc?:
|
|
210
|
+
partner_type_doc?: string | undefined;
|
|
209
211
|
partner_doc?: string | undefined;
|
|
210
212
|
partner_cpf?: string | undefined;
|
|
211
213
|
partner_city?: string | undefined;
|
|
212
|
-
communion_regime?:
|
|
214
|
+
communion_regime?: string | undefined;
|
|
213
215
|
proof_kinship?: {
|
|
214
216
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
215
217
|
sizeBytes: number;
|
|
@@ -219,12 +221,10 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
219
221
|
complement?: string | undefined;
|
|
220
222
|
energy_bill_owner_document?: string | undefined;
|
|
221
223
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
222
|
-
uf_naturalness?: string | undefined;
|
|
223
224
|
months_in_residence?: number | undefined;
|
|
224
225
|
naturalness?: string | undefined;
|
|
225
226
|
company_time?: number | undefined;
|
|
226
227
|
equity_value?: number | undefined;
|
|
227
|
-
emitting_state?: string | undefined;
|
|
228
228
|
social_name?: string | undefined;
|
|
229
229
|
rural_area?: string | undefined;
|
|
230
230
|
}>;
|
|
@@ -288,51 +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.
|
|
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.
|
|
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.
|
|
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:
|
|
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;
|
|
336
339
|
energy_account_in_requester_name: string;
|
|
337
340
|
doc_issue_date: string;
|
|
338
341
|
name: string;
|
|
@@ -343,7 +346,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
343
346
|
mother_name: string;
|
|
344
347
|
district: string;
|
|
345
348
|
city: string;
|
|
346
|
-
state: string;
|
|
347
349
|
nationality: string;
|
|
348
350
|
cellphone: string;
|
|
349
351
|
email: string;
|
|
@@ -369,11 +371,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
369
371
|
rd_re_insurance_toggle: boolean;
|
|
370
372
|
partner_name?: string | undefined;
|
|
371
373
|
partner_birth?: string | undefined;
|
|
372
|
-
partner_type_doc?:
|
|
374
|
+
partner_type_doc?: string | undefined;
|
|
373
375
|
partner_doc?: string | undefined;
|
|
374
376
|
partner_cpf?: string | undefined;
|
|
375
377
|
partner_city?: string | undefined;
|
|
376
|
-
communion_regime?:
|
|
378
|
+
communion_regime?: string | undefined;
|
|
377
379
|
proof_kinship?: {
|
|
378
380
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
379
381
|
sizeBytes: number;
|
|
@@ -382,22 +384,23 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
382
384
|
cnpj_proprietary?: string | undefined;
|
|
383
385
|
complement?: string | undefined;
|
|
384
386
|
energy_bill_owner_document?: string | undefined;
|
|
385
|
-
uf_naturalness?: string | undefined;
|
|
386
387
|
months_in_residence?: number | undefined;
|
|
387
388
|
naturalness?: string | undefined;
|
|
388
389
|
company_time?: number | undefined;
|
|
389
390
|
equity_value?: number | undefined;
|
|
390
|
-
emitting_state?: string | undefined;
|
|
391
391
|
social_name?: string | undefined;
|
|
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:
|
|
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;
|
|
401
404
|
energy_account_in_requester_name: string;
|
|
402
405
|
doc_issue_date: string;
|
|
403
406
|
name: string;
|
|
@@ -408,7 +411,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
408
411
|
mother_name: string;
|
|
409
412
|
district: string;
|
|
410
413
|
city: string;
|
|
411
|
-
state: string;
|
|
412
414
|
nationality: string;
|
|
413
415
|
cellphone: string;
|
|
414
416
|
email: string;
|
|
@@ -433,11 +435,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
433
435
|
};
|
|
434
436
|
partner_name?: string | undefined;
|
|
435
437
|
partner_birth?: string | undefined;
|
|
436
|
-
partner_type_doc?:
|
|
438
|
+
partner_type_doc?: string | undefined;
|
|
437
439
|
partner_doc?: string | undefined;
|
|
438
440
|
partner_cpf?: string | undefined;
|
|
439
441
|
partner_city?: string | undefined;
|
|
440
|
-
communion_regime?:
|
|
442
|
+
communion_regime?: string | undefined;
|
|
441
443
|
proof_kinship?: {
|
|
442
444
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
443
445
|
sizeBytes: number;
|
|
@@ -447,22 +449,23 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
447
449
|
complement?: string | undefined;
|
|
448
450
|
energy_bill_owner_document?: string | undefined;
|
|
449
451
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
450
|
-
uf_naturalness?: string | undefined;
|
|
451
452
|
months_in_residence?: number | undefined;
|
|
452
453
|
naturalness?: string | undefined;
|
|
453
454
|
company_time?: number | undefined;
|
|
454
455
|
equity_value?: number | undefined;
|
|
455
|
-
emitting_state?: string | undefined;
|
|
456
456
|
social_name?: string | undefined;
|
|
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:
|
|
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;
|
|
466
469
|
energy_account_in_requester_name: string;
|
|
467
470
|
doc_issue_date: string;
|
|
468
471
|
name: string;
|
|
@@ -473,7 +476,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
473
476
|
mother_name: string;
|
|
474
477
|
district: string;
|
|
475
478
|
city: string;
|
|
476
|
-
state: string;
|
|
477
479
|
nationality: string;
|
|
478
480
|
cellphone: string;
|
|
479
481
|
email: string;
|
|
@@ -499,11 +501,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
499
501
|
rd_re_insurance_toggle: boolean;
|
|
500
502
|
partner_name?: string | undefined;
|
|
501
503
|
partner_birth?: string | undefined;
|
|
502
|
-
partner_type_doc?:
|
|
504
|
+
partner_type_doc?: string | undefined;
|
|
503
505
|
partner_doc?: string | undefined;
|
|
504
506
|
partner_cpf?: string | undefined;
|
|
505
507
|
partner_city?: string | undefined;
|
|
506
|
-
communion_regime?:
|
|
508
|
+
communion_regime?: string | undefined;
|
|
507
509
|
proof_kinship?: {
|
|
508
510
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
509
511
|
sizeBytes: number;
|
|
@@ -512,22 +514,23 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
512
514
|
cnpj_proprietary?: string | undefined;
|
|
513
515
|
complement?: string | undefined;
|
|
514
516
|
energy_bill_owner_document?: string | undefined;
|
|
515
|
-
uf_naturalness?: string | undefined;
|
|
516
517
|
months_in_residence?: number | undefined;
|
|
517
518
|
naturalness?: string | undefined;
|
|
518
519
|
company_time?: number | undefined;
|
|
519
520
|
equity_value?: number | undefined;
|
|
520
|
-
emitting_state?: string | undefined;
|
|
521
521
|
social_name?: string | undefined;
|
|
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:
|
|
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;
|
|
531
534
|
energy_account_in_requester_name: string;
|
|
532
535
|
doc_issue_date: string;
|
|
533
536
|
name: string;
|
|
@@ -538,7 +541,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
538
541
|
mother_name: string;
|
|
539
542
|
district: string;
|
|
540
543
|
city: string;
|
|
541
|
-
state: string;
|
|
542
544
|
nationality: string;
|
|
543
545
|
cellphone: string;
|
|
544
546
|
email: string;
|
|
@@ -563,11 +565,11 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
563
565
|
};
|
|
564
566
|
partner_name?: string | undefined;
|
|
565
567
|
partner_birth?: string | undefined;
|
|
566
|
-
partner_type_doc?:
|
|
568
|
+
partner_type_doc?: string | undefined;
|
|
567
569
|
partner_doc?: string | undefined;
|
|
568
570
|
partner_cpf?: string | undefined;
|
|
569
571
|
partner_city?: string | undefined;
|
|
570
|
-
communion_regime?:
|
|
572
|
+
communion_regime?: string | undefined;
|
|
571
573
|
proof_kinship?: {
|
|
572
574
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
573
575
|
sizeBytes: number;
|
|
@@ -577,12 +579,10 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
577
579
|
complement?: string | undefined;
|
|
578
580
|
energy_bill_owner_document?: string | undefined;
|
|
579
581
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
580
|
-
uf_naturalness?: string | undefined;
|
|
581
582
|
months_in_residence?: number | undefined;
|
|
582
583
|
naturalness?: string | undefined;
|
|
583
584
|
company_time?: number | undefined;
|
|
584
585
|
equity_value?: number | undefined;
|
|
585
|
-
emitting_state?: string | undefined;
|
|
586
586
|
social_name?: string | undefined;
|
|
587
587
|
rural_area?: string | undefined;
|
|
588
588
|
}>;
|
|
@@ -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,32 +54,54 @@ 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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
71
|
+
|
|
72
|
+
// src/shared/enums/sex.ts
|
|
73
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
74
|
+
|
|
75
|
+
// src/shared/enums/uf.ts
|
|
76
|
+
var UfEnum = enumField([
|
|
77
|
+
"AC",
|
|
78
|
+
"AL",
|
|
79
|
+
"AP",
|
|
80
|
+
"AM",
|
|
81
|
+
"BA",
|
|
82
|
+
"CE",
|
|
83
|
+
"DF",
|
|
84
|
+
"ES",
|
|
85
|
+
"GO",
|
|
86
|
+
"MA",
|
|
87
|
+
"MT",
|
|
88
|
+
"MS",
|
|
89
|
+
"MG",
|
|
90
|
+
"PA",
|
|
91
|
+
"PB",
|
|
92
|
+
"PR",
|
|
93
|
+
"PE",
|
|
94
|
+
"PI",
|
|
95
|
+
"RJ",
|
|
96
|
+
"RN",
|
|
97
|
+
"RS",
|
|
98
|
+
"RO",
|
|
99
|
+
"RR",
|
|
100
|
+
"SC",
|
|
101
|
+
"SP",
|
|
102
|
+
"SE",
|
|
103
|
+
"TO"
|
|
104
|
+
]);
|
|
49
105
|
|
|
50
106
|
// src/shared/regex/patterns.ts
|
|
51
107
|
var PATTERNS = {
|
|
@@ -252,7 +308,7 @@ var unifiedPfObject = zod.z.object({
|
|
|
252
308
|
energy_account_in_requester_name: textField(),
|
|
253
309
|
city: textField(),
|
|
254
310
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
255
|
-
state:
|
|
311
|
+
state: UfEnum,
|
|
256
312
|
nationality: textField(),
|
|
257
313
|
cellphone: phoneBRSchema,
|
|
258
314
|
email: emailSchema,
|
|
@@ -265,13 +321,13 @@ var unifiedPfObject = zod.z.object({
|
|
|
265
321
|
residence_situation: ResidenceTypeEnum,
|
|
266
322
|
months_in_residence: integerField.optional(),
|
|
267
323
|
civil_status: CivilStatusEnum,
|
|
268
|
-
uf_naturalness:
|
|
324
|
+
uf_naturalness: UfEnum,
|
|
269
325
|
naturalness: textField().optional(),
|
|
270
326
|
nature_of_occupation: NatureOfOccupationTypeEnum,
|
|
271
327
|
company_time: numberField.optional(),
|
|
272
328
|
cnpj_proprietary: cnpjSchema.optional(),
|
|
273
329
|
equity_value: currencySchema.optional(),
|
|
274
|
-
emitting_state:
|
|
330
|
+
emitting_state: UfEnum,
|
|
275
331
|
pep_relationship: YesOrNoEnum,
|
|
276
332
|
social_name: textField().optional(),
|
|
277
333
|
partner_name: textField().optional(),
|
|
@@ -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';
|