@77sol-lab/form-schemas 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-RDLOQ6HV.mjs → chunk-22SYVROO.mjs} +2 -2
- package/{chunk-35IKZUF4.mjs → chunk-2BHUMNK5.mjs} +3 -3
- package/{chunk-E7JXDCBO.mjs → chunk-4PZYGTUU.mjs} +4 -4
- package/{chunk-LOEAPRSO.mjs → chunk-5EHEC3RT.mjs} +3 -3
- package/{chunk-OFCVHF6Z.mjs → chunk-5P6NWFTX.mjs} +3 -3
- package/{chunk-ZQ2PKLTM.mjs → chunk-65EE5FW3.mjs} +3 -3
- package/{chunk-GVOOT43S.mjs → chunk-6ZUOXZY3.mjs} +2 -2
- package/{chunk-PY7IUNIU.mjs → chunk-AM7HTUI3.mjs} +2 -2
- package/{chunk-BRBOOPFN.mjs → chunk-BYAXV4TG.mjs} +3 -3
- package/{chunk-T2MFLA6J.mjs → chunk-CPDLICOP.mjs} +3 -3
- package/{chunk-QUBWDT4D.mjs → chunk-DIYEI2PA.mjs} +2 -2
- package/{chunk-ACJUTGEC.mjs → chunk-DJDG3UYR.mjs} +2 -2
- package/{chunk-5YFVPFSM.mjs → chunk-ENDOIQ32.mjs} +69 -9
- package/{chunk-Y7TQ2NQ2.mjs → chunk-FBDTG3WD.mjs} +3 -3
- package/{chunk-LEUH6IFB.mjs → chunk-FIPFWGBQ.mjs} +3 -3
- package/{chunk-2ZKUSLGU.mjs → chunk-HMC73HBG.mjs} +3 -3
- package/{chunk-CSGG5DZE.mjs → chunk-JZ7DY7SU.mjs} +1 -1
- package/{chunk-BITN6YDR.mjs → chunk-KBILM3GO.mjs} +3 -3
- package/{chunk-W6J3SW2H.mjs → chunk-KJTTMDZP.mjs} +3 -3
- package/{chunk-57DSP6GG.mjs → chunk-L3OISOZA.mjs} +2 -2
- package/{chunk-X4LHQVVJ.mjs → chunk-LU5ODSGQ.mjs} +2 -2
- package/{chunk-WPJOW7IE.mjs → chunk-MM6LQXI6.mjs} +3 -3
- package/{chunk-ISJKYUMR.mjs → chunk-ORQ52KPA.mjs} +3 -3
- package/{chunk-AQ43O5UO.mjs → chunk-PDBPFNAN.mjs} +34 -36
- package/{chunk-SKSUT6CG.mjs → chunk-QMODZE4A.mjs} +3 -3
- package/{chunk-UYCCHEM5.mjs → chunk-RWOX5QO3.mjs} +3 -3
- package/{chunk-K23FTEKB.mjs → chunk-TDL42FZZ.mjs} +2 -2
- package/{chunk-O5XQR5HN.mjs → chunk-TKHIBI4R.mjs} +2 -2
- package/{chunk-JBTU6WKN.mjs → chunk-U4ZDMJX2.mjs} +3 -3
- package/{chunk-BSG5DCL7.mjs → chunk-UF45URAJ.mjs} +2 -2
- package/{chunk-66Y3FO5R.mjs → chunk-VDFDTLU5.mjs} +3 -3
- package/{chunk-LVFKP46R.mjs → chunk-VP4HT24O.mjs} +3 -3
- package/{chunk-XVITSWCY.mjs → chunk-Y67MNG2X.mjs} +2 -2
- package/financing/formalization/index.d.cts +695 -657
- package/financing/formalization/index.d.ts +695 -657
- package/financing/formalization/index.js +99 -39
- package/financing/formalization/index.mjs +33 -33
- package/financing/formalization/schemas/AlfaPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/AlfaPFSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPFSchema.mjs +3 -3
- package/financing/formalization/schemas/AlfaPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/AlfaPJSchema.js +51 -9
- package/financing/formalization/schemas/AlfaPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.js +51 -9
- package/financing/formalization/schemas/BancoDoBrasilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/BtgPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/BtgPFSchema.js +51 -9
- package/financing/formalization/schemas/BtgPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BtgPJSchema.d.cts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.d.ts +33 -33
- package/financing/formalization/schemas/BtgPJSchema.js +51 -9
- package/financing/formalization/schemas/BtgPJSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/BvPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/BvPFSchema.js +51 -9
- package/financing/formalization/schemas/BvPFSchema.mjs +3 -3
- package/financing/formalization/schemas/BvPJSchema.d.cts +40 -40
- package/financing/formalization/schemas/BvPJSchema.d.ts +40 -40
- package/financing/formalization/schemas/BvPJSchema.js +51 -9
- package/financing/formalization/schemas/BvPJSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPFSchema.mjs +3 -3
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.js +51 -9
- package/financing/formalization/schemas/CaixaEconomicaFederalPJSchema.mjs +2 -2
- package/financing/formalization/schemas/CashMePFSchema.d.cts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.d.ts +13 -13
- package/financing/formalization/schemas/CashMePFSchema.js +51 -9
- package/financing/formalization/schemas/CashMePFSchema.mjs +3 -3
- package/financing/formalization/schemas/CashMePJSchema.d.cts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.d.ts +19 -19
- package/financing/formalization/schemas/CashMePJSchema.js +51 -9
- package/financing/formalization/schemas/CashMePJSchema.mjs +2 -2
- package/financing/formalization/schemas/Credito77PFSchema.d.cts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.d.ts +13 -13
- package/financing/formalization/schemas/Credito77PFSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PFSchema.mjs +3 -3
- package/financing/formalization/schemas/Credito77PJSchema.d.cts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.d.ts +19 -19
- package/financing/formalization/schemas/Credito77PJSchema.js +51 -9
- package/financing/formalization/schemas/Credito77PJSchema.mjs +2 -2
- package/financing/formalization/schemas/EosPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/EosPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/EosPFSchema.js +51 -9
- package/financing/formalization/schemas/EosPFSchema.mjs +3 -3
- package/financing/formalization/schemas/EosPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/EosPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/EosPJSchema.js +51 -9
- package/financing/formalization/schemas/EosPJSchema.mjs +2 -2
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/HdtEnergyPFSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPFSchema.mjs +3 -3
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/HdtEnergyPJSchema.js +51 -9
- package/financing/formalization/schemas/HdtEnergyPJSchema.mjs +2 -2
- package/financing/formalization/schemas/LosangoPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/LosangoPFSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPFSchema.mjs +3 -3
- package/financing/formalization/schemas/LosangoPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/LosangoPJSchema.js +51 -9
- package/financing/formalization/schemas/LosangoPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SafraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SafraPFSchema.js +51 -9
- package/financing/formalization/schemas/SafraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SafraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SafraPJSchema.js +51 -9
- package/financing/formalization/schemas/SafraPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SantanderPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SantanderPFSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SantanderPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SantanderPJSchema.js +51 -9
- package/financing/formalization/schemas/SantanderPJSchema.mjs +2 -2
- package/financing/formalization/schemas/SolAgoraPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolAgoraPFSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolAgoraPJSchema.d.cts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.d.ts +19 -19
- package/financing/formalization/schemas/SolAgoraPJSchema.js +51 -9
- package/financing/formalization/schemas/SolAgoraPJSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPFSchema.d.cts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.d.ts +13 -13
- package/financing/formalization/schemas/SolfacilPFSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPFSchema.mjs +3 -3
- package/financing/formalization/schemas/SolfacilPJSchema.d.cts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.d.ts +26 -26
- package/financing/formalization/schemas/SolfacilPJSchema.js +51 -9
- package/financing/formalization/schemas/SolfacilPJSchema.mjs +2 -2
- package/financing/formalization/schemas/UnifiedPFSchema.d.cts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.d.ts +18 -18
- package/financing/formalization/schemas/UnifiedPFSchema.js +51 -9
- package/financing/formalization/schemas/UnifiedPFSchema.mjs +3 -3
- package/financing/formalization/schemas/UnifiedPJSchema.d.cts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.d.ts +66 -66
- package/financing/formalization/schemas/UnifiedPJSchema.js +52 -10
- package/financing/formalization/schemas/UnifiedPJSchema.mjs +3 -3
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +99 -39
- package/index.mjs +33 -33
- package/package.json +1 -1
|
@@ -69,10 +69,10 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
69
69
|
city: z.ZodString;
|
|
70
70
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
71
71
|
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]>;
|
|
72
|
-
nationality: z.
|
|
72
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
73
73
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
74
74
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
monthly_income: z.ZodNumber
|
|
75
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
76
76
|
profession: z.ZodString;
|
|
77
77
|
type_doc: z.ZodEnum<[string, string]>;
|
|
78
78
|
doc: z.ZodString;
|
|
@@ -86,7 +86,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
86
86
|
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
87
87
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
88
88
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
89
|
-
equity_value: z.ZodOptional<z.ZodNumber
|
|
89
|
+
equity_value: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
90
90
|
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]>;
|
|
91
91
|
pep_relationship: z.ZodEnum<[string, string]>;
|
|
92
92
|
social_name: z.ZodOptional<z.ZodString>;
|
|
@@ -101,6 +101,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
number: string;
|
|
103
103
|
sex: string;
|
|
104
|
+
nationality: string;
|
|
104
105
|
type_doc: string;
|
|
105
106
|
residence_situation: string;
|
|
106
107
|
nature_of_occupation: string;
|
|
@@ -119,7 +120,6 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
119
120
|
mother_name: string;
|
|
120
121
|
district: string;
|
|
121
122
|
city: string;
|
|
122
|
-
nationality: string;
|
|
123
123
|
cellphone: string;
|
|
124
124
|
email: string;
|
|
125
125
|
monthly_income: number;
|
|
@@ -185,10 +185,8 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
185
185
|
mother_name: string;
|
|
186
186
|
district: string;
|
|
187
187
|
city: string;
|
|
188
|
-
nationality: string;
|
|
189
188
|
cellphone: string;
|
|
190
189
|
email: string;
|
|
191
|
-
monthly_income: number;
|
|
192
190
|
profession: string;
|
|
193
191
|
doc: string;
|
|
194
192
|
issuing_body: string;
|
|
@@ -214,6 +212,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
214
212
|
partner_cpf?: string | undefined;
|
|
215
213
|
partner_city?: string | undefined;
|
|
216
214
|
communion_regime?: string | undefined;
|
|
215
|
+
nationality?: string | undefined;
|
|
217
216
|
proof_kinship_type?: string | undefined;
|
|
218
217
|
proof_kinship?: {
|
|
219
218
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -223,11 +222,12 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
223
222
|
cnpj_proprietary?: string | undefined;
|
|
224
223
|
complement?: string | undefined;
|
|
225
224
|
energy_bill_owner_document?: string | undefined;
|
|
225
|
+
monthly_income?: unknown;
|
|
226
226
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
227
227
|
months_in_residence?: number | undefined;
|
|
228
228
|
naturalness?: string | undefined;
|
|
229
229
|
company_time?: number | undefined;
|
|
230
|
-
equity_value?:
|
|
230
|
+
equity_value?: unknown;
|
|
231
231
|
social_name?: string | undefined;
|
|
232
232
|
rural_area?: string | undefined;
|
|
233
233
|
}>;
|
|
@@ -300,10 +300,10 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
300
300
|
city: z.ZodString;
|
|
301
301
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
302
302
|
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]>;
|
|
303
|
-
nationality: z.
|
|
303
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
304
304
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
305
305
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
306
|
-
monthly_income: z.ZodNumber
|
|
306
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
307
307
|
profession: z.ZodString;
|
|
308
308
|
type_doc: z.ZodEnum<[string, string]>;
|
|
309
309
|
doc: z.ZodString;
|
|
@@ -317,7 +317,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
317
317
|
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
318
318
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
319
319
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
320
|
-
equity_value: z.ZodOptional<z.ZodNumber
|
|
320
|
+
equity_value: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
321
321
|
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]>;
|
|
322
322
|
pep_relationship: z.ZodEnum<[string, string]>;
|
|
323
323
|
social_name: z.ZodOptional<z.ZodString>;
|
|
@@ -332,6 +332,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
332
332
|
}, "strict", z.ZodTypeAny, {
|
|
333
333
|
number: string;
|
|
334
334
|
sex: string;
|
|
335
|
+
nationality: string;
|
|
335
336
|
type_doc: string;
|
|
336
337
|
residence_situation: string;
|
|
337
338
|
nature_of_occupation: string;
|
|
@@ -350,7 +351,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
350
351
|
mother_name: string;
|
|
351
352
|
district: string;
|
|
352
353
|
city: string;
|
|
353
|
-
nationality: string;
|
|
354
354
|
cellphone: string;
|
|
355
355
|
email: string;
|
|
356
356
|
monthly_income: number;
|
|
@@ -416,10 +416,8 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
416
416
|
mother_name: string;
|
|
417
417
|
district: string;
|
|
418
418
|
city: string;
|
|
419
|
-
nationality: string;
|
|
420
419
|
cellphone: string;
|
|
421
420
|
email: string;
|
|
422
|
-
monthly_income: number;
|
|
423
421
|
profession: string;
|
|
424
422
|
doc: string;
|
|
425
423
|
issuing_body: string;
|
|
@@ -445,6 +443,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
445
443
|
partner_cpf?: string | undefined;
|
|
446
444
|
partner_city?: string | undefined;
|
|
447
445
|
communion_regime?: string | undefined;
|
|
446
|
+
nationality?: string | undefined;
|
|
448
447
|
proof_kinship_type?: string | undefined;
|
|
449
448
|
proof_kinship?: {
|
|
450
449
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -454,16 +453,18 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
454
453
|
cnpj_proprietary?: string | undefined;
|
|
455
454
|
complement?: string | undefined;
|
|
456
455
|
energy_bill_owner_document?: string | undefined;
|
|
456
|
+
monthly_income?: unknown;
|
|
457
457
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
458
458
|
months_in_residence?: number | undefined;
|
|
459
459
|
naturalness?: string | undefined;
|
|
460
460
|
company_time?: number | undefined;
|
|
461
|
-
equity_value?:
|
|
461
|
+
equity_value?: unknown;
|
|
462
462
|
social_name?: string | undefined;
|
|
463
463
|
rural_area?: string | undefined;
|
|
464
464
|
}>, {
|
|
465
465
|
number: string;
|
|
466
466
|
sex: string;
|
|
467
|
+
nationality: string;
|
|
467
468
|
type_doc: string;
|
|
468
469
|
residence_situation: string;
|
|
469
470
|
nature_of_occupation: string;
|
|
@@ -482,7 +483,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
482
483
|
mother_name: string;
|
|
483
484
|
district: string;
|
|
484
485
|
city: string;
|
|
485
|
-
nationality: string;
|
|
486
486
|
cellphone: string;
|
|
487
487
|
email: string;
|
|
488
488
|
monthly_income: number;
|
|
@@ -548,10 +548,8 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
548
|
mother_name: string;
|
|
549
549
|
district: string;
|
|
550
550
|
city: string;
|
|
551
|
-
nationality: string;
|
|
552
551
|
cellphone: string;
|
|
553
552
|
email: string;
|
|
554
|
-
monthly_income: number;
|
|
555
553
|
profession: string;
|
|
556
554
|
doc: string;
|
|
557
555
|
issuing_body: string;
|
|
@@ -577,6 +575,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
577
575
|
partner_cpf?: string | undefined;
|
|
578
576
|
partner_city?: string | undefined;
|
|
579
577
|
communion_regime?: string | undefined;
|
|
578
|
+
nationality?: string | undefined;
|
|
580
579
|
proof_kinship_type?: string | undefined;
|
|
581
580
|
proof_kinship?: {
|
|
582
581
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -586,11 +585,12 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
586
585
|
cnpj_proprietary?: string | undefined;
|
|
587
586
|
complement?: string | undefined;
|
|
588
587
|
energy_bill_owner_document?: string | undefined;
|
|
588
|
+
monthly_income?: unknown;
|
|
589
589
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
590
590
|
months_in_residence?: number | undefined;
|
|
591
591
|
naturalness?: string | undefined;
|
|
592
592
|
company_time?: number | undefined;
|
|
593
|
-
equity_value?:
|
|
593
|
+
equity_value?: unknown;
|
|
594
594
|
social_name?: string | undefined;
|
|
595
595
|
rural_area?: string | undefined;
|
|
596
596
|
}>;
|
|
@@ -69,10 +69,10 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
69
69
|
city: z.ZodString;
|
|
70
70
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
71
71
|
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]>;
|
|
72
|
-
nationality: z.
|
|
72
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
73
73
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
74
74
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
monthly_income: z.ZodNumber
|
|
75
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
76
76
|
profession: z.ZodString;
|
|
77
77
|
type_doc: z.ZodEnum<[string, string]>;
|
|
78
78
|
doc: z.ZodString;
|
|
@@ -86,7 +86,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
86
86
|
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
87
87
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
88
88
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
89
|
-
equity_value: z.ZodOptional<z.ZodNumber
|
|
89
|
+
equity_value: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
90
90
|
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]>;
|
|
91
91
|
pep_relationship: z.ZodEnum<[string, string]>;
|
|
92
92
|
social_name: z.ZodOptional<z.ZodString>;
|
|
@@ -101,6 +101,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
number: string;
|
|
103
103
|
sex: string;
|
|
104
|
+
nationality: string;
|
|
104
105
|
type_doc: string;
|
|
105
106
|
residence_situation: string;
|
|
106
107
|
nature_of_occupation: string;
|
|
@@ -119,7 +120,6 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
119
120
|
mother_name: string;
|
|
120
121
|
district: string;
|
|
121
122
|
city: string;
|
|
122
|
-
nationality: string;
|
|
123
123
|
cellphone: string;
|
|
124
124
|
email: string;
|
|
125
125
|
monthly_income: number;
|
|
@@ -185,10 +185,8 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
185
185
|
mother_name: string;
|
|
186
186
|
district: string;
|
|
187
187
|
city: string;
|
|
188
|
-
nationality: string;
|
|
189
188
|
cellphone: string;
|
|
190
189
|
email: string;
|
|
191
|
-
monthly_income: number;
|
|
192
190
|
profession: string;
|
|
193
191
|
doc: string;
|
|
194
192
|
issuing_body: string;
|
|
@@ -214,6 +212,7 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
214
212
|
partner_cpf?: string | undefined;
|
|
215
213
|
partner_city?: string | undefined;
|
|
216
214
|
communion_regime?: string | undefined;
|
|
215
|
+
nationality?: string | undefined;
|
|
217
216
|
proof_kinship_type?: string | undefined;
|
|
218
217
|
proof_kinship?: {
|
|
219
218
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -223,11 +222,12 @@ declare const unifiedPfObject: z.ZodObject<{
|
|
|
223
222
|
cnpj_proprietary?: string | undefined;
|
|
224
223
|
complement?: string | undefined;
|
|
225
224
|
energy_bill_owner_document?: string | undefined;
|
|
225
|
+
monthly_income?: unknown;
|
|
226
226
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
227
227
|
months_in_residence?: number | undefined;
|
|
228
228
|
naturalness?: string | undefined;
|
|
229
229
|
company_time?: number | undefined;
|
|
230
|
-
equity_value?:
|
|
230
|
+
equity_value?: unknown;
|
|
231
231
|
social_name?: string | undefined;
|
|
232
232
|
rural_area?: string | undefined;
|
|
233
233
|
}>;
|
|
@@ -300,10 +300,10 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
300
300
|
city: z.ZodString;
|
|
301
301
|
energy_bill_owner_document: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
302
302
|
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]>;
|
|
303
|
-
nationality: z.
|
|
303
|
+
nationality: z.ZodDefault<z.ZodEnum<["brasil", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]>>;
|
|
304
304
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
305
305
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
306
|
-
monthly_income: z.ZodNumber
|
|
306
|
+
monthly_income: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
307
307
|
profession: z.ZodString;
|
|
308
308
|
type_doc: z.ZodEnum<[string, string]>;
|
|
309
309
|
doc: z.ZodString;
|
|
@@ -317,7 +317,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
317
317
|
nature_of_occupation: z.ZodEnum<[string, string, string, string]>;
|
|
318
318
|
company_time: z.ZodOptional<z.ZodNumber>;
|
|
319
319
|
cnpj_proprietary: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
|
|
320
|
-
equity_value: z.ZodOptional<z.ZodNumber
|
|
320
|
+
equity_value: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
321
321
|
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]>;
|
|
322
322
|
pep_relationship: z.ZodEnum<[string, string]>;
|
|
323
323
|
social_name: z.ZodOptional<z.ZodString>;
|
|
@@ -332,6 +332,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
332
332
|
}, "strict", z.ZodTypeAny, {
|
|
333
333
|
number: string;
|
|
334
334
|
sex: string;
|
|
335
|
+
nationality: string;
|
|
335
336
|
type_doc: string;
|
|
336
337
|
residence_situation: string;
|
|
337
338
|
nature_of_occupation: string;
|
|
@@ -350,7 +351,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
350
351
|
mother_name: string;
|
|
351
352
|
district: string;
|
|
352
353
|
city: string;
|
|
353
|
-
nationality: string;
|
|
354
354
|
cellphone: string;
|
|
355
355
|
email: string;
|
|
356
356
|
monthly_income: number;
|
|
@@ -416,10 +416,8 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
416
416
|
mother_name: string;
|
|
417
417
|
district: string;
|
|
418
418
|
city: string;
|
|
419
|
-
nationality: string;
|
|
420
419
|
cellphone: string;
|
|
421
420
|
email: string;
|
|
422
|
-
monthly_income: number;
|
|
423
421
|
profession: string;
|
|
424
422
|
doc: string;
|
|
425
423
|
issuing_body: string;
|
|
@@ -445,6 +443,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
445
443
|
partner_cpf?: string | undefined;
|
|
446
444
|
partner_city?: string | undefined;
|
|
447
445
|
communion_regime?: string | undefined;
|
|
446
|
+
nationality?: string | undefined;
|
|
448
447
|
proof_kinship_type?: string | undefined;
|
|
449
448
|
proof_kinship?: {
|
|
450
449
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -454,16 +453,18 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
454
453
|
cnpj_proprietary?: string | undefined;
|
|
455
454
|
complement?: string | undefined;
|
|
456
455
|
energy_bill_owner_document?: string | undefined;
|
|
456
|
+
monthly_income?: unknown;
|
|
457
457
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
458
458
|
months_in_residence?: number | undefined;
|
|
459
459
|
naturalness?: string | undefined;
|
|
460
460
|
company_time?: number | undefined;
|
|
461
|
-
equity_value?:
|
|
461
|
+
equity_value?: unknown;
|
|
462
462
|
social_name?: string | undefined;
|
|
463
463
|
rural_area?: string | undefined;
|
|
464
464
|
}>, {
|
|
465
465
|
number: string;
|
|
466
466
|
sex: string;
|
|
467
|
+
nationality: string;
|
|
467
468
|
type_doc: string;
|
|
468
469
|
residence_situation: string;
|
|
469
470
|
nature_of_occupation: string;
|
|
@@ -482,7 +483,6 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
482
483
|
mother_name: string;
|
|
483
484
|
district: string;
|
|
484
485
|
city: string;
|
|
485
|
-
nationality: string;
|
|
486
486
|
cellphone: string;
|
|
487
487
|
email: string;
|
|
488
488
|
monthly_income: number;
|
|
@@ -548,10 +548,8 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
548
|
mother_name: string;
|
|
549
549
|
district: string;
|
|
550
550
|
city: string;
|
|
551
|
-
nationality: string;
|
|
552
551
|
cellphone: string;
|
|
553
552
|
email: string;
|
|
554
|
-
monthly_income: number;
|
|
555
553
|
profession: string;
|
|
556
554
|
doc: string;
|
|
557
555
|
issuing_body: string;
|
|
@@ -577,6 +575,7 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
577
575
|
partner_cpf?: string | undefined;
|
|
578
576
|
partner_city?: string | undefined;
|
|
579
577
|
communion_regime?: string | undefined;
|
|
578
|
+
nationality?: string | undefined;
|
|
580
579
|
proof_kinship_type?: string | undefined;
|
|
581
580
|
proof_kinship?: {
|
|
582
581
|
mime: "image/jpeg" | "image/png" | "application/pdf";
|
|
@@ -586,11 +585,12 @@ declare const unifiedPfSchema: z.ZodEffects<z.ZodObject<{
|
|
|
586
585
|
cnpj_proprietary?: string | undefined;
|
|
587
586
|
complement?: string | undefined;
|
|
588
587
|
energy_bill_owner_document?: string | undefined;
|
|
588
|
+
monthly_income?: unknown;
|
|
589
589
|
rd_re_insurance_toggle?: boolean | undefined;
|
|
590
590
|
months_in_residence?: number | undefined;
|
|
591
591
|
naturalness?: string | undefined;
|
|
592
592
|
company_time?: number | undefined;
|
|
593
|
-
equity_value?:
|
|
593
|
+
equity_value?: unknown;
|
|
594
594
|
social_name?: string | undefined;
|
|
595
595
|
rural_area?: string | undefined;
|
|
596
596
|
}>;
|
|
@@ -79,6 +79,27 @@ var DocumentTypeEnum = enumField([
|
|
|
79
79
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
80
80
|
]);
|
|
81
81
|
|
|
82
|
+
// src/shared/enums/nationality.ts
|
|
83
|
+
var NATIONALITY_BRAZIL = "brasil";
|
|
84
|
+
var NationalityEnum = enumField([
|
|
85
|
+
NATIONALITY_BRAZIL,
|
|
86
|
+
"argentina",
|
|
87
|
+
"bolivia",
|
|
88
|
+
"chile",
|
|
89
|
+
"colombia",
|
|
90
|
+
"paraguai",
|
|
91
|
+
"peru",
|
|
92
|
+
"uruguai",
|
|
93
|
+
"venezuela",
|
|
94
|
+
"portugal",
|
|
95
|
+
"espanha",
|
|
96
|
+
"italia",
|
|
97
|
+
"estados_unidos",
|
|
98
|
+
"japao",
|
|
99
|
+
"china",
|
|
100
|
+
"outro"
|
|
101
|
+
]);
|
|
102
|
+
|
|
82
103
|
// src/shared/enums/proof-kinship-type.ts
|
|
83
104
|
var ProofKinshipTypeEnum = enumField([
|
|
84
105
|
"certidao_casamento",
|
|
@@ -218,16 +239,22 @@ function yearsSinceDMY(value, reference = /* @__PURE__ */ new Date()) {
|
|
|
218
239
|
}
|
|
219
240
|
|
|
220
241
|
// src/shared/regex/index.ts
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
242
|
+
function requiredFormatString() {
|
|
243
|
+
return requiredString().trim().min(1, REQUIRED_MESSAGE);
|
|
244
|
+
}
|
|
245
|
+
var cpfSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cpf.test(v), "CPF inv\xE1lido").refine(isValidCPF, "CPF inv\xE1lido");
|
|
246
|
+
var cnpjSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cnpj.test(v), "CNPJ inv\xE1lido").refine(isValidCNPJ, "CNPJ inv\xE1lido");
|
|
247
|
+
var cpfCnpjSchema = requiredFormatString().transform(onlyDigits).refine(
|
|
224
248
|
(v) => PATTERNS.cpf.test(v) || PATTERNS.cnpj.test(v),
|
|
225
249
|
"Documento deve ter 11 (CPF) ou 14 (CNPJ) d\xEDgitos"
|
|
226
250
|
).refine((v) => v.length === 11 ? isValidCPF(v) : isValidCNPJ(v), "Documento inv\xE1lido");
|
|
227
|
-
var cepSchema =
|
|
228
|
-
var phoneBRSchema =
|
|
229
|
-
var emailSchema =
|
|
230
|
-
|
|
251
|
+
var cepSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.cep.test(v), "CEP inv\xE1lido");
|
|
252
|
+
var phoneBRSchema = requiredFormatString().transform(onlyDigits).refine((v) => PATTERNS.phoneBR.test(v), "Telefone inv\xE1lido");
|
|
253
|
+
var emailSchema = requiredFormatString().refine(
|
|
254
|
+
(v) => PATTERNS.email.test(v),
|
|
255
|
+
"E-mail inv\xE1lido"
|
|
256
|
+
);
|
|
257
|
+
var dateDMYSchema = requiredFormatString().refine((v) => PATTERNS.dateDMY.test(v), "Data inv\xE1lida").refine((v) => parseDMY(v) !== null, "Data inexistente no calend\xE1rio");
|
|
231
258
|
var birthDateSchema = dateDMYSchema.refine(
|
|
232
259
|
(v) => isAdultDMY(v),
|
|
233
260
|
"\xC9 necess\xE1rio ser maior de idade (18+)"
|
|
@@ -236,7 +263,22 @@ var issueDateSchema = dateDMYSchema.refine(
|
|
|
236
263
|
(v) => isNotFutureDMY(v),
|
|
237
264
|
"Data de emiss\xE3o n\xE3o pode ser futura"
|
|
238
265
|
);
|
|
239
|
-
|
|
266
|
+
function parseBRLCurrency(value) {
|
|
267
|
+
if (typeof value !== "string") {
|
|
268
|
+
return value;
|
|
269
|
+
}
|
|
270
|
+
const trimmed = value.trim();
|
|
271
|
+
if (trimmed === "") {
|
|
272
|
+
return void 0;
|
|
273
|
+
}
|
|
274
|
+
const normalized = trimmed.replace(/R\$/gi, "").replace(/\s/g, "").replace(/\./g, "").replace(",", ".");
|
|
275
|
+
const parsed = Number(normalized);
|
|
276
|
+
return Number.isNaN(parsed) ? value : parsed;
|
|
277
|
+
}
|
|
278
|
+
var currencySchema = zod.z.preprocess(
|
|
279
|
+
parseBRLCurrency,
|
|
280
|
+
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor monet\xE1rio inv\xE1lido" }).positive("Valor deve ser positivo")
|
|
281
|
+
);
|
|
240
282
|
zod.z.number({ required_error: REQUIRED_MESSAGE, invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").min(1, "M\xEDnimo 1").max(28, "M\xE1ximo 28");
|
|
241
283
|
var formalizationExtras = {
|
|
242
284
|
voucher_local_installation_address: fileUploadField,
|
|
@@ -340,7 +382,7 @@ var unifiedPfObject = zod.z.object({
|
|
|
340
382
|
city: textField(),
|
|
341
383
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
342
384
|
state: UfEnum,
|
|
343
|
-
nationality:
|
|
385
|
+
nationality: NationalityEnum.default(NATIONALITY_BRAZIL),
|
|
344
386
|
cellphone: phoneBRSchema,
|
|
345
387
|
email: emailSchema,
|
|
346
388
|
monthly_income: currencySchema,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { unifiedPfObject, unifiedPfSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { unifiedPfObject, unifiedPfSchema } from '../../../chunk-FBDTG3WD.mjs';
|
|
2
|
+
import '../../../chunk-JZ7DY7SU.mjs';
|
|
3
|
+
import '../../../chunk-ENDOIQ32.mjs';
|