@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
|
@@ -15,16 +15,16 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
15
15
|
legal_nature: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
17
17
|
economic_activity_group: z.ZodString;
|
|
18
|
-
state: z.
|
|
18
|
+
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]>;
|
|
19
19
|
economic_activity: z.ZodString;
|
|
20
20
|
monthly_income: z.ZodNumber;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
22
|
number: string;
|
|
23
|
+
state: string;
|
|
23
24
|
cep: string;
|
|
24
25
|
address: string;
|
|
25
26
|
district: string;
|
|
26
27
|
city: string;
|
|
27
|
-
state: string;
|
|
28
28
|
email: string;
|
|
29
29
|
monthly_income: number;
|
|
30
30
|
corporate_name: string;
|
|
@@ -37,11 +37,11 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
37
37
|
complement?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
number: string;
|
|
40
|
+
state: string;
|
|
40
41
|
cep: string;
|
|
41
42
|
address: string;
|
|
42
43
|
district: string;
|
|
43
44
|
city: string;
|
|
44
|
-
state: string;
|
|
45
45
|
email: string;
|
|
46
46
|
monthly_income: number;
|
|
47
47
|
corporate_name: string;
|
|
@@ -66,24 +66,27 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
66
66
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
67
67
|
city: z.ZodString;
|
|
68
68
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
state: z.
|
|
69
|
+
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]>;
|
|
70
70
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
71
71
|
civil_status: z.ZodString;
|
|
72
|
-
sex: z.ZodEnum<[
|
|
73
|
-
type_doc: z.ZodEnum<[
|
|
72
|
+
sex: z.ZodEnum<[string, string]>;
|
|
73
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
74
74
|
doc: z.ZodString;
|
|
75
|
-
doc_issuance_uf: z.
|
|
75
|
+
doc_issuance_uf: 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]>;
|
|
76
76
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
77
77
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
78
78
|
mother_name: z.ZodString;
|
|
79
79
|
naturalness: z.ZodString;
|
|
80
|
-
uf_naturalness: z.
|
|
80
|
+
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]>;
|
|
81
81
|
nationality: z.ZodString;
|
|
82
82
|
}, "strict", z.ZodTypeAny, {
|
|
83
83
|
number: string;
|
|
84
|
-
sex:
|
|
85
|
-
type_doc:
|
|
84
|
+
sex: string;
|
|
85
|
+
type_doc: string;
|
|
86
86
|
civil_status: string;
|
|
87
|
+
state: string;
|
|
88
|
+
uf_naturalness: string;
|
|
89
|
+
doc_issuance_uf: string;
|
|
87
90
|
doc_issue_date: string;
|
|
88
91
|
name: string;
|
|
89
92
|
cep: string;
|
|
@@ -93,23 +96,23 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
93
96
|
mother_name: string;
|
|
94
97
|
district: string;
|
|
95
98
|
city: string;
|
|
96
|
-
state: string;
|
|
97
99
|
nationality: string;
|
|
98
100
|
cellphone: string;
|
|
99
101
|
email: string;
|
|
100
102
|
doc: string;
|
|
101
103
|
phone: string;
|
|
102
104
|
doc_expiration_date: string;
|
|
103
|
-
uf_naturalness: string;
|
|
104
105
|
naturalness: string;
|
|
105
106
|
entry_date: string;
|
|
106
|
-
doc_issuance_uf: string;
|
|
107
107
|
complement?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
number: string;
|
|
110
|
-
sex:
|
|
111
|
-
type_doc:
|
|
110
|
+
sex: string;
|
|
111
|
+
type_doc: string;
|
|
112
112
|
civil_status: string;
|
|
113
|
+
state: string;
|
|
114
|
+
uf_naturalness: string;
|
|
115
|
+
doc_issuance_uf: string;
|
|
113
116
|
doc_issue_date: string;
|
|
114
117
|
name: string;
|
|
115
118
|
cep: string;
|
|
@@ -119,17 +122,14 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
119
122
|
mother_name: string;
|
|
120
123
|
district: string;
|
|
121
124
|
city: string;
|
|
122
|
-
state: string;
|
|
123
125
|
nationality: string;
|
|
124
126
|
cellphone: string;
|
|
125
127
|
email: string;
|
|
126
128
|
doc: string;
|
|
127
129
|
phone: string;
|
|
128
130
|
doc_expiration_date: string;
|
|
129
|
-
uf_naturalness: string;
|
|
130
131
|
naturalness: string;
|
|
131
132
|
entry_date: string;
|
|
132
|
-
doc_issuance_uf: string;
|
|
133
133
|
complement?: string | undefined;
|
|
134
134
|
}>, "many">;
|
|
135
135
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -204,11 +204,11 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
204
204
|
rd_re_insurance_toggle: boolean;
|
|
205
205
|
financing_company: {
|
|
206
206
|
number: string;
|
|
207
|
+
state: string;
|
|
207
208
|
cep: string;
|
|
208
209
|
address: string;
|
|
209
210
|
district: string;
|
|
210
211
|
city: string;
|
|
211
|
-
state: string;
|
|
212
212
|
email: string;
|
|
213
213
|
monthly_income: number;
|
|
214
214
|
corporate_name: string;
|
|
@@ -222,9 +222,12 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
222
222
|
};
|
|
223
223
|
financing_company_qsa: {
|
|
224
224
|
number: string;
|
|
225
|
-
sex:
|
|
226
|
-
type_doc:
|
|
225
|
+
sex: string;
|
|
226
|
+
type_doc: string;
|
|
227
227
|
civil_status: string;
|
|
228
|
+
state: string;
|
|
229
|
+
uf_naturalness: string;
|
|
230
|
+
doc_issuance_uf: string;
|
|
228
231
|
doc_issue_date: string;
|
|
229
232
|
name: string;
|
|
230
233
|
cep: string;
|
|
@@ -234,17 +237,14 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
234
237
|
mother_name: string;
|
|
235
238
|
district: string;
|
|
236
239
|
city: string;
|
|
237
|
-
state: string;
|
|
238
240
|
nationality: string;
|
|
239
241
|
cellphone: string;
|
|
240
242
|
email: string;
|
|
241
243
|
doc: string;
|
|
242
244
|
phone: string;
|
|
243
245
|
doc_expiration_date: string;
|
|
244
|
-
uf_naturalness: string;
|
|
245
246
|
naturalness: string;
|
|
246
247
|
entry_date: string;
|
|
247
|
-
doc_issuance_uf: string;
|
|
248
248
|
complement?: string | undefined;
|
|
249
249
|
}[];
|
|
250
250
|
proof_kinship?: {
|
|
@@ -270,11 +270,11 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
270
270
|
};
|
|
271
271
|
financing_company: {
|
|
272
272
|
number: string;
|
|
273
|
+
state: string;
|
|
273
274
|
cep: string;
|
|
274
275
|
address: string;
|
|
275
276
|
district: string;
|
|
276
277
|
city: string;
|
|
277
|
-
state: string;
|
|
278
278
|
email: string;
|
|
279
279
|
monthly_income: number;
|
|
280
280
|
corporate_name: string;
|
|
@@ -288,9 +288,12 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
288
288
|
};
|
|
289
289
|
financing_company_qsa: {
|
|
290
290
|
number: string;
|
|
291
|
-
sex:
|
|
292
|
-
type_doc:
|
|
291
|
+
sex: string;
|
|
292
|
+
type_doc: string;
|
|
293
293
|
civil_status: string;
|
|
294
|
+
state: string;
|
|
295
|
+
uf_naturalness: string;
|
|
296
|
+
doc_issuance_uf: string;
|
|
294
297
|
doc_issue_date: string;
|
|
295
298
|
name: string;
|
|
296
299
|
cep: string;
|
|
@@ -300,17 +303,14 @@ declare const solAgoraPjObject: z.ZodObject<{
|
|
|
300
303
|
mother_name: string;
|
|
301
304
|
district: string;
|
|
302
305
|
city: string;
|
|
303
|
-
state: string;
|
|
304
306
|
nationality: string;
|
|
305
307
|
cellphone: string;
|
|
306
308
|
email: string;
|
|
307
309
|
doc: string;
|
|
308
310
|
phone: string;
|
|
309
311
|
doc_expiration_date: string;
|
|
310
|
-
uf_naturalness: string;
|
|
311
312
|
naturalness: string;
|
|
312
313
|
entry_date: string;
|
|
313
|
-
doc_issuance_uf: string;
|
|
314
314
|
complement?: string | undefined;
|
|
315
315
|
}[];
|
|
316
316
|
proof_kinship?: {
|
|
@@ -335,16 +335,16 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
335
335
|
legal_nature: z.ZodString;
|
|
336
336
|
city: z.ZodString;
|
|
337
337
|
economic_activity_group: z.ZodString;
|
|
338
|
-
state: z.
|
|
338
|
+
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]>;
|
|
339
339
|
economic_activity: z.ZodString;
|
|
340
340
|
monthly_income: z.ZodNumber;
|
|
341
341
|
}, "strict", z.ZodTypeAny, {
|
|
342
342
|
number: string;
|
|
343
|
+
state: string;
|
|
343
344
|
cep: string;
|
|
344
345
|
address: string;
|
|
345
346
|
district: string;
|
|
346
347
|
city: string;
|
|
347
|
-
state: string;
|
|
348
348
|
email: string;
|
|
349
349
|
monthly_income: number;
|
|
350
350
|
corporate_name: string;
|
|
@@ -357,11 +357,11 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
357
357
|
complement?: string | undefined;
|
|
358
358
|
}, {
|
|
359
359
|
number: string;
|
|
360
|
+
state: string;
|
|
360
361
|
cep: string;
|
|
361
362
|
address: string;
|
|
362
363
|
district: string;
|
|
363
364
|
city: string;
|
|
364
|
-
state: string;
|
|
365
365
|
email: string;
|
|
366
366
|
monthly_income: number;
|
|
367
367
|
corporate_name: string;
|
|
@@ -386,24 +386,27 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
386
386
|
cellphone: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
387
387
|
city: z.ZodString;
|
|
388
388
|
email: z.ZodEffects<z.ZodString, string, string>;
|
|
389
|
-
state: z.
|
|
389
|
+
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]>;
|
|
390
390
|
birth_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
391
391
|
civil_status: z.ZodString;
|
|
392
|
-
sex: z.ZodEnum<[
|
|
393
|
-
type_doc: z.ZodEnum<[
|
|
392
|
+
sex: z.ZodEnum<[string, string]>;
|
|
393
|
+
type_doc: z.ZodEnum<[string, string]>;
|
|
394
394
|
doc: z.ZodString;
|
|
395
|
-
doc_issuance_uf: z.
|
|
395
|
+
doc_issuance_uf: 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]>;
|
|
396
396
|
doc_issue_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
397
397
|
doc_expiration_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
398
398
|
mother_name: z.ZodString;
|
|
399
399
|
naturalness: z.ZodString;
|
|
400
|
-
uf_naturalness: z.
|
|
400
|
+
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]>;
|
|
401
401
|
nationality: z.ZodString;
|
|
402
402
|
}, "strict", z.ZodTypeAny, {
|
|
403
403
|
number: string;
|
|
404
|
-
sex:
|
|
405
|
-
type_doc:
|
|
404
|
+
sex: string;
|
|
405
|
+
type_doc: string;
|
|
406
406
|
civil_status: string;
|
|
407
|
+
state: string;
|
|
408
|
+
uf_naturalness: string;
|
|
409
|
+
doc_issuance_uf: string;
|
|
407
410
|
doc_issue_date: string;
|
|
408
411
|
name: string;
|
|
409
412
|
cep: string;
|
|
@@ -413,23 +416,23 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
413
416
|
mother_name: string;
|
|
414
417
|
district: string;
|
|
415
418
|
city: string;
|
|
416
|
-
state: string;
|
|
417
419
|
nationality: string;
|
|
418
420
|
cellphone: string;
|
|
419
421
|
email: string;
|
|
420
422
|
doc: string;
|
|
421
423
|
phone: string;
|
|
422
424
|
doc_expiration_date: string;
|
|
423
|
-
uf_naturalness: string;
|
|
424
425
|
naturalness: string;
|
|
425
426
|
entry_date: string;
|
|
426
|
-
doc_issuance_uf: string;
|
|
427
427
|
complement?: string | undefined;
|
|
428
428
|
}, {
|
|
429
429
|
number: string;
|
|
430
|
-
sex:
|
|
431
|
-
type_doc:
|
|
430
|
+
sex: string;
|
|
431
|
+
type_doc: string;
|
|
432
432
|
civil_status: string;
|
|
433
|
+
state: string;
|
|
434
|
+
uf_naturalness: string;
|
|
435
|
+
doc_issuance_uf: string;
|
|
433
436
|
doc_issue_date: string;
|
|
434
437
|
name: string;
|
|
435
438
|
cep: string;
|
|
@@ -439,17 +442,14 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
439
442
|
mother_name: string;
|
|
440
443
|
district: string;
|
|
441
444
|
city: string;
|
|
442
|
-
state: string;
|
|
443
445
|
nationality: string;
|
|
444
446
|
cellphone: string;
|
|
445
447
|
email: string;
|
|
446
448
|
doc: string;
|
|
447
449
|
phone: string;
|
|
448
450
|
doc_expiration_date: string;
|
|
449
|
-
uf_naturalness: string;
|
|
450
451
|
naturalness: string;
|
|
451
452
|
entry_date: string;
|
|
452
|
-
doc_issuance_uf: string;
|
|
453
453
|
complement?: string | undefined;
|
|
454
454
|
}>, "many">;
|
|
455
455
|
voucher_local_installation_address: z.ZodObject<{
|
|
@@ -524,11 +524,11 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
524
524
|
rd_re_insurance_toggle: boolean;
|
|
525
525
|
financing_company: {
|
|
526
526
|
number: string;
|
|
527
|
+
state: string;
|
|
527
528
|
cep: string;
|
|
528
529
|
address: string;
|
|
529
530
|
district: string;
|
|
530
531
|
city: string;
|
|
531
|
-
state: string;
|
|
532
532
|
email: string;
|
|
533
533
|
monthly_income: number;
|
|
534
534
|
corporate_name: string;
|
|
@@ -542,9 +542,12 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
542
542
|
};
|
|
543
543
|
financing_company_qsa: {
|
|
544
544
|
number: string;
|
|
545
|
-
sex:
|
|
546
|
-
type_doc:
|
|
545
|
+
sex: string;
|
|
546
|
+
type_doc: string;
|
|
547
547
|
civil_status: string;
|
|
548
|
+
state: string;
|
|
549
|
+
uf_naturalness: string;
|
|
550
|
+
doc_issuance_uf: string;
|
|
548
551
|
doc_issue_date: string;
|
|
549
552
|
name: string;
|
|
550
553
|
cep: string;
|
|
@@ -554,17 +557,14 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
554
557
|
mother_name: string;
|
|
555
558
|
district: string;
|
|
556
559
|
city: string;
|
|
557
|
-
state: string;
|
|
558
560
|
nationality: string;
|
|
559
561
|
cellphone: string;
|
|
560
562
|
email: string;
|
|
561
563
|
doc: string;
|
|
562
564
|
phone: string;
|
|
563
565
|
doc_expiration_date: string;
|
|
564
|
-
uf_naturalness: string;
|
|
565
566
|
naturalness: string;
|
|
566
567
|
entry_date: string;
|
|
567
|
-
doc_issuance_uf: string;
|
|
568
568
|
complement?: string | undefined;
|
|
569
569
|
}[];
|
|
570
570
|
proof_kinship?: {
|
|
@@ -590,11 +590,11 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
590
590
|
};
|
|
591
591
|
financing_company: {
|
|
592
592
|
number: string;
|
|
593
|
+
state: string;
|
|
593
594
|
cep: string;
|
|
594
595
|
address: string;
|
|
595
596
|
district: string;
|
|
596
597
|
city: string;
|
|
597
|
-
state: string;
|
|
598
598
|
email: string;
|
|
599
599
|
monthly_income: number;
|
|
600
600
|
corporate_name: string;
|
|
@@ -608,9 +608,12 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
608
608
|
};
|
|
609
609
|
financing_company_qsa: {
|
|
610
610
|
number: string;
|
|
611
|
-
sex:
|
|
612
|
-
type_doc:
|
|
611
|
+
sex: string;
|
|
612
|
+
type_doc: string;
|
|
613
613
|
civil_status: string;
|
|
614
|
+
state: string;
|
|
615
|
+
uf_naturalness: string;
|
|
616
|
+
doc_issuance_uf: string;
|
|
614
617
|
doc_issue_date: string;
|
|
615
618
|
name: string;
|
|
616
619
|
cep: string;
|
|
@@ -620,17 +623,14 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
620
623
|
mother_name: string;
|
|
621
624
|
district: string;
|
|
622
625
|
city: string;
|
|
623
|
-
state: string;
|
|
624
626
|
nationality: string;
|
|
625
627
|
cellphone: string;
|
|
626
628
|
email: string;
|
|
627
629
|
doc: string;
|
|
628
630
|
phone: string;
|
|
629
631
|
doc_expiration_date: string;
|
|
630
|
-
uf_naturalness: string;
|
|
631
632
|
naturalness: string;
|
|
632
633
|
entry_date: string;
|
|
633
|
-
doc_issuance_uf: string;
|
|
634
634
|
complement?: string | undefined;
|
|
635
635
|
}[];
|
|
636
636
|
proof_kinship?: {
|
|
@@ -658,11 +658,11 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
658
658
|
rd_re_insurance_toggle: boolean;
|
|
659
659
|
financing_company: {
|
|
660
660
|
number: string;
|
|
661
|
+
state: string;
|
|
661
662
|
cep: string;
|
|
662
663
|
address: string;
|
|
663
664
|
district: string;
|
|
664
665
|
city: string;
|
|
665
|
-
state: string;
|
|
666
666
|
email: string;
|
|
667
667
|
monthly_income: number;
|
|
668
668
|
corporate_name: string;
|
|
@@ -676,9 +676,12 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
676
676
|
};
|
|
677
677
|
financing_company_qsa: {
|
|
678
678
|
number: string;
|
|
679
|
-
sex:
|
|
680
|
-
type_doc:
|
|
679
|
+
sex: string;
|
|
680
|
+
type_doc: string;
|
|
681
681
|
civil_status: string;
|
|
682
|
+
state: string;
|
|
683
|
+
uf_naturalness: string;
|
|
684
|
+
doc_issuance_uf: string;
|
|
682
685
|
doc_issue_date: string;
|
|
683
686
|
name: string;
|
|
684
687
|
cep: string;
|
|
@@ -688,17 +691,14 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
688
691
|
mother_name: string;
|
|
689
692
|
district: string;
|
|
690
693
|
city: string;
|
|
691
|
-
state: string;
|
|
692
694
|
nationality: string;
|
|
693
695
|
cellphone: string;
|
|
694
696
|
email: string;
|
|
695
697
|
doc: string;
|
|
696
698
|
phone: string;
|
|
697
699
|
doc_expiration_date: string;
|
|
698
|
-
uf_naturalness: string;
|
|
699
700
|
naturalness: string;
|
|
700
701
|
entry_date: string;
|
|
701
|
-
doc_issuance_uf: string;
|
|
702
702
|
complement?: string | undefined;
|
|
703
703
|
}[];
|
|
704
704
|
proof_kinship?: {
|
|
@@ -724,11 +724,11 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
724
724
|
};
|
|
725
725
|
financing_company: {
|
|
726
726
|
number: string;
|
|
727
|
+
state: string;
|
|
727
728
|
cep: string;
|
|
728
729
|
address: string;
|
|
729
730
|
district: string;
|
|
730
731
|
city: string;
|
|
731
|
-
state: string;
|
|
732
732
|
email: string;
|
|
733
733
|
monthly_income: number;
|
|
734
734
|
corporate_name: string;
|
|
@@ -742,9 +742,12 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
742
742
|
};
|
|
743
743
|
financing_company_qsa: {
|
|
744
744
|
number: string;
|
|
745
|
-
sex:
|
|
746
|
-
type_doc:
|
|
745
|
+
sex: string;
|
|
746
|
+
type_doc: string;
|
|
747
747
|
civil_status: string;
|
|
748
|
+
state: string;
|
|
749
|
+
uf_naturalness: string;
|
|
750
|
+
doc_issuance_uf: string;
|
|
748
751
|
doc_issue_date: string;
|
|
749
752
|
name: string;
|
|
750
753
|
cep: string;
|
|
@@ -754,17 +757,14 @@ declare const solAgoraPjSchema: z.ZodEffects<z.ZodObject<{
|
|
|
754
757
|
mother_name: string;
|
|
755
758
|
district: string;
|
|
756
759
|
city: string;
|
|
757
|
-
state: string;
|
|
758
760
|
nationality: string;
|
|
759
761
|
cellphone: string;
|
|
760
762
|
email: string;
|
|
761
763
|
doc: string;
|
|
762
764
|
phone: string;
|
|
763
765
|
doc_expiration_date: string;
|
|
764
|
-
uf_naturalness: string;
|
|
765
766
|
naturalness: string;
|
|
766
767
|
entry_date: string;
|
|
767
|
-
doc_issuance_uf: string;
|
|
768
768
|
complement?: string | undefined;
|
|
769
769
|
}[];
|
|
770
770
|
proof_kinship?: {
|
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
5
|
// src/domains/financing/formalization/schemas/SolAgoraPJSchema.ts
|
|
6
|
-
var
|
|
7
|
-
"documento_de_identidade",
|
|
8
|
-
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
9
|
-
]);
|
|
10
|
-
var SexEnum = zod.z.enum(["masculino", "feminino"]);
|
|
6
|
+
var REQUIRED_MESSAGE = "Campo obrigat\xF3rio";
|
|
11
7
|
function textField(maxLength) {
|
|
12
|
-
const base = zod.z.string().trim().min(1,
|
|
8
|
+
const base = zod.z.string().trim().min(1, REQUIRED_MESSAGE);
|
|
13
9
|
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
14
10
|
}
|
|
15
11
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
16
12
|
zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).int("Deve ser um n\xFAmero inteiro").nonnegative("Valor n\xE3o pode ser negativo");
|
|
13
|
+
function enumField(values) {
|
|
14
|
+
return zod.z.enum(values, {
|
|
15
|
+
errorMap: (issue, ctx) => {
|
|
16
|
+
if (issue.code === zod.z.ZodIssueCode.invalid_type || issue.code === zod.z.ZodIssueCode.invalid_enum_value && issue.received === "") {
|
|
17
|
+
return { message: REQUIRED_MESSAGE };
|
|
18
|
+
}
|
|
19
|
+
return { message: ctx.defaultError };
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
17
23
|
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
18
24
|
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
19
25
|
var fileUploadField = zod.z.object({
|
|
@@ -24,6 +30,46 @@ var fileUploadField = zod.z.object({
|
|
|
24
30
|
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
25
31
|
});
|
|
26
32
|
|
|
33
|
+
// src/shared/enums/document-type.ts
|
|
34
|
+
var DocumentTypeEnum = enumField([
|
|
35
|
+
"documento_de_identidade",
|
|
36
|
+
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
// src/shared/enums/sex.ts
|
|
40
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
41
|
+
|
|
42
|
+
// src/shared/enums/uf.ts
|
|
43
|
+
var UfEnum = enumField([
|
|
44
|
+
"AC",
|
|
45
|
+
"AL",
|
|
46
|
+
"AP",
|
|
47
|
+
"AM",
|
|
48
|
+
"BA",
|
|
49
|
+
"CE",
|
|
50
|
+
"DF",
|
|
51
|
+
"ES",
|
|
52
|
+
"GO",
|
|
53
|
+
"MA",
|
|
54
|
+
"MT",
|
|
55
|
+
"MS",
|
|
56
|
+
"MG",
|
|
57
|
+
"PA",
|
|
58
|
+
"PB",
|
|
59
|
+
"PR",
|
|
60
|
+
"PE",
|
|
61
|
+
"PI",
|
|
62
|
+
"RJ",
|
|
63
|
+
"RN",
|
|
64
|
+
"RS",
|
|
65
|
+
"RO",
|
|
66
|
+
"RR",
|
|
67
|
+
"SC",
|
|
68
|
+
"SP",
|
|
69
|
+
"SE",
|
|
70
|
+
"TO"
|
|
71
|
+
]);
|
|
72
|
+
|
|
27
73
|
// src/shared/regex/patterns.ts
|
|
28
74
|
var PATTERNS = {
|
|
29
75
|
cpf: /^\d{11}$/,
|
|
@@ -170,7 +216,7 @@ var solAgoraPjObject = zod.z.object({
|
|
|
170
216
|
legal_nature: textField(),
|
|
171
217
|
city: textField(),
|
|
172
218
|
economic_activity_group: textField(),
|
|
173
|
-
state:
|
|
219
|
+
state: UfEnum,
|
|
174
220
|
economic_activity: textField(),
|
|
175
221
|
monthly_income: currencySchema
|
|
176
222
|
}).strict(),
|
|
@@ -188,18 +234,18 @@ var solAgoraPjObject = zod.z.object({
|
|
|
188
234
|
cellphone: phoneBRSchema,
|
|
189
235
|
city: textField(),
|
|
190
236
|
email: emailSchema,
|
|
191
|
-
state:
|
|
237
|
+
state: UfEnum,
|
|
192
238
|
birth_date: birthDateSchema,
|
|
193
239
|
civil_status: textField(),
|
|
194
240
|
sex: SexEnum,
|
|
195
241
|
type_doc: DocumentTypeEnum,
|
|
196
242
|
doc: textField(),
|
|
197
|
-
doc_issuance_uf:
|
|
243
|
+
doc_issuance_uf: UfEnum,
|
|
198
244
|
doc_issue_date: issueDateSchema,
|
|
199
245
|
doc_expiration_date: dateDMYSchema,
|
|
200
246
|
mother_name: textField(),
|
|
201
247
|
naturalness: textField(),
|
|
202
|
-
uf_naturalness:
|
|
248
|
+
uf_naturalness: UfEnum,
|
|
203
249
|
nationality: textField()
|
|
204
250
|
}).strict()
|
|
205
251
|
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { solAgoraPjObject, solAgoraPjSchema } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
1
|
+
export { solAgoraPjObject, solAgoraPjSchema } from '../../../chunk-2W3LQ75V.mjs';
|
|
2
|
+
import '../../../chunk-XII4F5RZ.mjs';
|
|
3
|
+
import '../../../chunk-Y3FAMPYF.mjs';
|