@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
|
@@ -2,8 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
|
+
// src/shared/fields/primitives.ts
|
|
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
|
+
|
|
5
33
|
// src/shared/enums/civil-status.ts
|
|
6
|
-
var CivilStatusEnum =
|
|
34
|
+
var CivilStatusEnum = enumField([
|
|
7
35
|
"solteiro",
|
|
8
36
|
"casado",
|
|
9
37
|
"divorciado",
|
|
@@ -19,7 +47,9 @@ var CivilStatusLabels = {
|
|
|
19
47
|
separado_judicialmente: "Separado(a) judicialmente",
|
|
20
48
|
companheiro: "Companheiro(a)"
|
|
21
49
|
};
|
|
22
|
-
|
|
50
|
+
|
|
51
|
+
// src/shared/enums/communion-regime.ts
|
|
52
|
+
var CommunionRegimeEnum = enumField([
|
|
23
53
|
"comunhao_parcial",
|
|
24
54
|
"comunhao_universal",
|
|
25
55
|
"separacao_total",
|
|
@@ -31,7 +61,9 @@ var CommunionRegimeLabels = {
|
|
|
31
61
|
separacao_total: "Separa\xE7\xE3o total de bens",
|
|
32
62
|
participacao_final_aquestos: "Participa\xE7\xE3o final nos aquestos"
|
|
33
63
|
};
|
|
34
|
-
|
|
64
|
+
|
|
65
|
+
// src/shared/enums/document-type.ts
|
|
66
|
+
var DocumentTypeEnum = enumField([
|
|
35
67
|
"documento_de_identidade",
|
|
36
68
|
"carteira_nacional_de_habilita\xE7\xE3o"
|
|
37
69
|
]);
|
|
@@ -42,14 +74,18 @@ var DocumentTypeLabels = {
|
|
|
42
74
|
|
|
43
75
|
// src/shared/enums/nationality.ts
|
|
44
76
|
var NATIONALITY_BRAZIL = "brasil";
|
|
45
|
-
|
|
77
|
+
|
|
78
|
+
// src/shared/enums/nature-of-occupation-type.ts
|
|
79
|
+
var NatureOfOccupationTypeEnum = enumField(["autonomo", "clt", "aposentado", "empresario"]);
|
|
46
80
|
var NatureOfOccupationTypeLabels = {
|
|
47
81
|
autonomo: "Aut\xF4nomo",
|
|
48
82
|
clt: "CLT",
|
|
49
83
|
aposentado: "Aposentado",
|
|
50
84
|
empresario: "Empres\xE1rio"
|
|
51
85
|
};
|
|
52
|
-
|
|
86
|
+
|
|
87
|
+
// src/shared/enums/residence-type.ts
|
|
88
|
+
var ResidenceTypeEnum = enumField([
|
|
53
89
|
"proprio",
|
|
54
90
|
"familiar",
|
|
55
91
|
"alugado",
|
|
@@ -63,16 +99,82 @@ var ResidenceTypeLabels = {
|
|
|
63
99
|
proprio_financiado: "Pr\xF3prio financiado",
|
|
64
100
|
cedido: "Cedido"
|
|
65
101
|
};
|
|
66
|
-
|
|
102
|
+
|
|
103
|
+
// src/shared/enums/sex.ts
|
|
104
|
+
var SexEnum = enumField(["masculino", "feminino"]);
|
|
67
105
|
var SexLabels = {
|
|
68
106
|
masculino: "Masculino",
|
|
69
107
|
feminino: "Feminino"
|
|
70
108
|
};
|
|
71
|
-
|
|
109
|
+
|
|
110
|
+
// src/shared/enums/uf.ts
|
|
111
|
+
var UfEnum = enumField([
|
|
112
|
+
"AC",
|
|
113
|
+
"AL",
|
|
114
|
+
"AP",
|
|
115
|
+
"AM",
|
|
116
|
+
"BA",
|
|
117
|
+
"CE",
|
|
118
|
+
"DF",
|
|
119
|
+
"ES",
|
|
120
|
+
"GO",
|
|
121
|
+
"MA",
|
|
122
|
+
"MT",
|
|
123
|
+
"MS",
|
|
124
|
+
"MG",
|
|
125
|
+
"PA",
|
|
126
|
+
"PB",
|
|
127
|
+
"PR",
|
|
128
|
+
"PE",
|
|
129
|
+
"PI",
|
|
130
|
+
"RJ",
|
|
131
|
+
"RN",
|
|
132
|
+
"RS",
|
|
133
|
+
"RO",
|
|
134
|
+
"RR",
|
|
135
|
+
"SC",
|
|
136
|
+
"SP",
|
|
137
|
+
"SE",
|
|
138
|
+
"TO"
|
|
139
|
+
]);
|
|
140
|
+
var UfLabels = {
|
|
141
|
+
AC: "Acre",
|
|
142
|
+
AL: "Alagoas",
|
|
143
|
+
AP: "Amap\xE1",
|
|
144
|
+
AM: "Amazonas",
|
|
145
|
+
BA: "Bahia",
|
|
146
|
+
CE: "Cear\xE1",
|
|
147
|
+
DF: "Distrito Federal",
|
|
148
|
+
ES: "Esp\xEDrito Santo",
|
|
149
|
+
GO: "Goi\xE1s",
|
|
150
|
+
MA: "Maranh\xE3o",
|
|
151
|
+
MT: "Mato Grosso",
|
|
152
|
+
MS: "Mato Grosso do Sul",
|
|
153
|
+
MG: "Minas Gerais",
|
|
154
|
+
PA: "Par\xE1",
|
|
155
|
+
PB: "Para\xEDba",
|
|
156
|
+
PR: "Paran\xE1",
|
|
157
|
+
PE: "Pernambuco",
|
|
158
|
+
PI: "Piau\xED",
|
|
159
|
+
RJ: "Rio de Janeiro",
|
|
160
|
+
RN: "Rio Grande do Norte",
|
|
161
|
+
RS: "Rio Grande do Sul",
|
|
162
|
+
RO: "Rond\xF4nia",
|
|
163
|
+
RR: "Roraima",
|
|
164
|
+
SC: "Santa Catarina",
|
|
165
|
+
SP: "S\xE3o Paulo",
|
|
166
|
+
SE: "Sergipe",
|
|
167
|
+
TO: "Tocantins"
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// src/shared/enums/yes-or-not-type.ts
|
|
171
|
+
var YesOrNoEnum = enumField(["sim", "nao"]);
|
|
72
172
|
var YesOrNoLabels = {
|
|
73
173
|
sim: "Sim",
|
|
74
174
|
nao: "N\xE3o"
|
|
75
175
|
};
|
|
176
|
+
|
|
177
|
+
// src/domains/financing/enums/banks.ts
|
|
76
178
|
var BANK_SLUGS = [
|
|
77
179
|
"credito77",
|
|
78
180
|
"losango",
|
|
@@ -89,7 +191,7 @@ var BANK_SLUGS = [
|
|
|
89
191
|
"sol_agora",
|
|
90
192
|
"eos"
|
|
91
193
|
];
|
|
92
|
-
var BankEnum =
|
|
194
|
+
var BankEnum = enumField(BANK_SLUGS);
|
|
93
195
|
|
|
94
196
|
// src/domains/financing/enums/civil-status.ts
|
|
95
197
|
var CIVIL_STATUS_REQUIRING_PARTNER = ["casado"];
|
|
@@ -115,7 +217,12 @@ var FORMALIZATION_OPTION_LABELS = {
|
|
|
115
217
|
nature_of_occupation: NatureOfOccupationTypeLabels,
|
|
116
218
|
pep_relationship: YesOrNoLabels,
|
|
117
219
|
civil_status: CivilStatusLabels,
|
|
118
|
-
communion_regime: CommunionRegimeLabels
|
|
220
|
+
communion_regime: CommunionRegimeLabels,
|
|
221
|
+
state: UfLabels,
|
|
222
|
+
uf_naturalness: UfLabels,
|
|
223
|
+
emitting_state: UfLabels,
|
|
224
|
+
uf_issuing_body: UfLabels,
|
|
225
|
+
doc_issuance_uf: UfLabels
|
|
119
226
|
};
|
|
120
227
|
function getFieldOptions(field) {
|
|
121
228
|
const labels = FORMALIZATION_OPTION_LABELS[field];
|
|
@@ -295,21 +402,6 @@ function applyPfRefinements(data, ctx) {
|
|
|
295
402
|
function applyPjRefinements(data, ctx) {
|
|
296
403
|
applyCommonRefinements(data, ctx);
|
|
297
404
|
}
|
|
298
|
-
function textField(maxLength) {
|
|
299
|
-
const base = zod.z.string().trim().min(1, "Campo obrigat\xF3rio");
|
|
300
|
-
return maxLength === void 0 ? base : base.max(maxLength, `M\xE1ximo ${maxLength} caracteres`);
|
|
301
|
-
}
|
|
302
|
-
var numberField = zod.z.number({ invalid_type_error: "Valor num\xE9rico inv\xE1lido" }).nonnegative("Valor n\xE3o pode ser negativo");
|
|
303
|
-
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");
|
|
304
|
-
var MAX_UPLOAD_BYTES = 5 * 1024 * 1024;
|
|
305
|
-
var ACCEPTED_UPLOAD_MIME = ["image/jpeg", "image/png", "application/pdf"];
|
|
306
|
-
var fileUploadField = zod.z.object({
|
|
307
|
-
url: zod.z.string().url().optional(),
|
|
308
|
-
mime: zod.z.enum(ACCEPTED_UPLOAD_MIME, {
|
|
309
|
-
errorMap: () => ({ message: "Formato deve ser JPEG, PNG ou PDF" })
|
|
310
|
-
}),
|
|
311
|
-
sizeBytes: zod.z.number().max(MAX_UPLOAD_BYTES, "Arquivo deve ter no m\xE1ximo 5MB")
|
|
312
|
-
});
|
|
313
405
|
var formalizationExtras = {
|
|
314
406
|
voucher_local_installation_address: fileUploadField,
|
|
315
407
|
proof_kinship: fileUploadField.optional(),
|
|
@@ -334,7 +426,7 @@ var alfaPfObject = zod.z.object({
|
|
|
334
426
|
energy_account_in_requester_name: textField(),
|
|
335
427
|
city: textField(),
|
|
336
428
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
337
|
-
state:
|
|
429
|
+
state: UfEnum,
|
|
338
430
|
nationality: textField(),
|
|
339
431
|
cellphone: phoneBRSchema,
|
|
340
432
|
email: emailSchema,
|
|
@@ -362,7 +454,7 @@ var alfaPjObject = zod.z.object({
|
|
|
362
454
|
legal_nature: textField(),
|
|
363
455
|
city: textField(),
|
|
364
456
|
economic_activity_group: textField(),
|
|
365
|
-
state:
|
|
457
|
+
state: UfEnum,
|
|
366
458
|
economic_activity: textField(),
|
|
367
459
|
monthly_income: currencySchema
|
|
368
460
|
}).strict(),
|
|
@@ -380,7 +472,7 @@ var alfaPjObject = zod.z.object({
|
|
|
380
472
|
district: textField(),
|
|
381
473
|
sex: SexEnum,
|
|
382
474
|
city: textField(),
|
|
383
|
-
state:
|
|
475
|
+
state: UfEnum,
|
|
384
476
|
office: textField(),
|
|
385
477
|
mother_name: textField(),
|
|
386
478
|
nationality: textField()
|
|
@@ -403,7 +495,7 @@ var bancoDoBrasilPfObject = zod.z.object({
|
|
|
403
495
|
energy_account_in_requester_name: textField(),
|
|
404
496
|
city: textField(),
|
|
405
497
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
406
|
-
state:
|
|
498
|
+
state: UfEnum,
|
|
407
499
|
nationality: textField(),
|
|
408
500
|
cellphone: phoneBRSchema,
|
|
409
501
|
email: emailSchema,
|
|
@@ -431,7 +523,7 @@ var bancoDoBrasilPjObject = zod.z.object({
|
|
|
431
523
|
legal_nature: textField(),
|
|
432
524
|
city: textField(),
|
|
433
525
|
economic_activity_group: textField(),
|
|
434
|
-
state:
|
|
526
|
+
state: UfEnum,
|
|
435
527
|
economic_activity: textField(),
|
|
436
528
|
monthly_income: currencySchema
|
|
437
529
|
}).strict(),
|
|
@@ -449,7 +541,7 @@ var bancoDoBrasilPjObject = zod.z.object({
|
|
|
449
541
|
district: textField(),
|
|
450
542
|
sex: SexEnum,
|
|
451
543
|
city: textField(),
|
|
452
|
-
state:
|
|
544
|
+
state: UfEnum,
|
|
453
545
|
office: textField(),
|
|
454
546
|
mother_name: textField(),
|
|
455
547
|
nationality: textField()
|
|
@@ -472,7 +564,7 @@ var btgPfObject = zod.z.object({
|
|
|
472
564
|
energy_account_in_requester_name: textField(),
|
|
473
565
|
city: textField(),
|
|
474
566
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
475
|
-
state:
|
|
567
|
+
state: UfEnum,
|
|
476
568
|
nationality: textField(),
|
|
477
569
|
cellphone: phoneBRSchema,
|
|
478
570
|
email: emailSchema,
|
|
@@ -500,7 +592,7 @@ var btgPjObject = zod.z.object({
|
|
|
500
592
|
legal_nature: textField(),
|
|
501
593
|
city: textField(),
|
|
502
594
|
economic_activity_group: textField(),
|
|
503
|
-
state:
|
|
595
|
+
state: UfEnum,
|
|
504
596
|
economic_activity: textField(),
|
|
505
597
|
monthly_income: currencySchema
|
|
506
598
|
}).strict(),
|
|
@@ -519,19 +611,19 @@ var btgPjObject = zod.z.object({
|
|
|
519
611
|
district: textField(),
|
|
520
612
|
sex: SexEnum,
|
|
521
613
|
city: textField(),
|
|
522
|
-
state:
|
|
614
|
+
state: UfEnum,
|
|
523
615
|
civil_status: textField(),
|
|
524
616
|
office: textField(),
|
|
525
617
|
type_doc: DocumentTypeEnum,
|
|
526
618
|
doc: textField(),
|
|
527
619
|
issuing_body: textField(),
|
|
528
|
-
uf_issuing_body:
|
|
620
|
+
uf_issuing_body: UfEnum,
|
|
529
621
|
doc_issue_date: issueDateSchema,
|
|
530
622
|
doc_expiration_date: dateDMYSchema,
|
|
531
623
|
mother_name: textField(),
|
|
532
624
|
monthly_income: currencySchema,
|
|
533
625
|
patrimony: currencySchema,
|
|
534
|
-
uf_naturalness:
|
|
626
|
+
uf_naturalness: UfEnum,
|
|
535
627
|
nationality: textField()
|
|
536
628
|
}).strict()
|
|
537
629
|
)
|
|
@@ -556,9 +648,9 @@ var bvPfObject = zod.z.object({
|
|
|
556
648
|
city: textField(),
|
|
557
649
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
558
650
|
civil_status: textField(),
|
|
559
|
-
state:
|
|
651
|
+
state: UfEnum,
|
|
560
652
|
nationality: textField(),
|
|
561
|
-
uf_naturalness:
|
|
653
|
+
uf_naturalness: UfEnum,
|
|
562
654
|
naturalness: textField(),
|
|
563
655
|
cellphone: phoneBRSchema,
|
|
564
656
|
email: emailSchema,
|
|
@@ -571,7 +663,7 @@ var bvPfObject = zod.z.object({
|
|
|
571
663
|
type_doc: DocumentTypeEnum,
|
|
572
664
|
doc: textField(15),
|
|
573
665
|
issuing_body: textField(6),
|
|
574
|
-
emitting_state:
|
|
666
|
+
emitting_state: UfEnum,
|
|
575
667
|
doc_issue_date: issueDateSchema,
|
|
576
668
|
pep_relationship: textField().optional()
|
|
577
669
|
});
|
|
@@ -594,7 +686,7 @@ var bvPjObject = zod.z.object({
|
|
|
594
686
|
legal_nature: textField(),
|
|
595
687
|
city: textField(),
|
|
596
688
|
economic_activity_group: textField(),
|
|
597
|
-
state:
|
|
689
|
+
state: UfEnum,
|
|
598
690
|
economic_activity: textField(),
|
|
599
691
|
monthly_income: currencySchema,
|
|
600
692
|
capital_social: currencySchema
|
|
@@ -614,7 +706,7 @@ var bvPjObject = zod.z.object({
|
|
|
614
706
|
district: textField(),
|
|
615
707
|
sex: SexEnum,
|
|
616
708
|
city: textField(),
|
|
617
|
-
state:
|
|
709
|
+
state: UfEnum,
|
|
618
710
|
civil_status: textField(),
|
|
619
711
|
residence_situation: textField(),
|
|
620
712
|
office: textField(),
|
|
@@ -622,14 +714,14 @@ var bvPjObject = zod.z.object({
|
|
|
622
714
|
type_doc: DocumentTypeEnum,
|
|
623
715
|
doc: textField(),
|
|
624
716
|
issuing_body: textField(),
|
|
625
|
-
uf_issuing_body:
|
|
717
|
+
uf_issuing_body: UfEnum,
|
|
626
718
|
doc_issue_date: issueDateSchema,
|
|
627
719
|
doc_expiration_date: dateDMYSchema,
|
|
628
720
|
mother_name: textField(),
|
|
629
721
|
monthly_income: currencySchema,
|
|
630
722
|
patrimony: currencySchema,
|
|
631
723
|
naturalness: textField(),
|
|
632
|
-
uf_naturalness:
|
|
724
|
+
uf_naturalness: UfEnum,
|
|
633
725
|
nationality: textField(),
|
|
634
726
|
pep_relationship: textField()
|
|
635
727
|
}).strict()
|
|
@@ -651,7 +743,7 @@ var caixaEconomicaFederalPfObject = zod.z.object({
|
|
|
651
743
|
energy_account_in_requester_name: textField(),
|
|
652
744
|
city: textField(),
|
|
653
745
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
654
|
-
state:
|
|
746
|
+
state: UfEnum,
|
|
655
747
|
nationality: textField(),
|
|
656
748
|
cellphone: phoneBRSchema,
|
|
657
749
|
email: emailSchema,
|
|
@@ -679,7 +771,7 @@ var caixaEconomicaFederalPjObject = zod.z.object({
|
|
|
679
771
|
legal_nature: textField(),
|
|
680
772
|
city: textField(),
|
|
681
773
|
economic_activity_group: textField(),
|
|
682
|
-
state:
|
|
774
|
+
state: UfEnum,
|
|
683
775
|
economic_activity: textField(),
|
|
684
776
|
monthly_income: currencySchema
|
|
685
777
|
}).strict(),
|
|
@@ -697,7 +789,7 @@ var caixaEconomicaFederalPjObject = zod.z.object({
|
|
|
697
789
|
district: textField(),
|
|
698
790
|
sex: SexEnum,
|
|
699
791
|
city: textField(),
|
|
700
|
-
state:
|
|
792
|
+
state: UfEnum,
|
|
701
793
|
office: textField(),
|
|
702
794
|
mother_name: textField(),
|
|
703
795
|
nationality: textField()
|
|
@@ -720,7 +812,7 @@ var cashMePfObject = zod.z.object({
|
|
|
720
812
|
energy_account_in_requester_name: textField(),
|
|
721
813
|
city: textField(),
|
|
722
814
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
723
|
-
state:
|
|
815
|
+
state: UfEnum,
|
|
724
816
|
nationality: textField(),
|
|
725
817
|
cellphone: phoneBRSchema,
|
|
726
818
|
email: emailSchema,
|
|
@@ -748,7 +840,7 @@ var cashMePjObject = zod.z.object({
|
|
|
748
840
|
legal_nature: textField(),
|
|
749
841
|
city: textField(),
|
|
750
842
|
economic_activity_group: textField(),
|
|
751
|
-
state:
|
|
843
|
+
state: UfEnum,
|
|
752
844
|
economic_activity: textField(),
|
|
753
845
|
monthly_income: currencySchema
|
|
754
846
|
}).strict(),
|
|
@@ -766,7 +858,7 @@ var cashMePjObject = zod.z.object({
|
|
|
766
858
|
district: textField(),
|
|
767
859
|
sex: SexEnum,
|
|
768
860
|
city: textField(),
|
|
769
|
-
state:
|
|
861
|
+
state: UfEnum,
|
|
770
862
|
office: textField(),
|
|
771
863
|
mother_name: textField(),
|
|
772
864
|
nationality: textField()
|
|
@@ -789,7 +881,7 @@ var credito77PfObject = zod.z.object({
|
|
|
789
881
|
energy_account_in_requester_name: textField(),
|
|
790
882
|
city: textField(),
|
|
791
883
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
792
|
-
state:
|
|
884
|
+
state: UfEnum,
|
|
793
885
|
nationality: textField(),
|
|
794
886
|
cellphone: phoneBRSchema,
|
|
795
887
|
email: emailSchema,
|
|
@@ -817,7 +909,7 @@ var credito77PjObject = zod.z.object({
|
|
|
817
909
|
legal_nature: textField(),
|
|
818
910
|
city: textField(),
|
|
819
911
|
economic_activity_group: textField(),
|
|
820
|
-
state:
|
|
912
|
+
state: UfEnum,
|
|
821
913
|
economic_activity: textField(),
|
|
822
914
|
monthly_income: currencySchema
|
|
823
915
|
}).strict(),
|
|
@@ -835,7 +927,7 @@ var credito77PjObject = zod.z.object({
|
|
|
835
927
|
district: textField(),
|
|
836
928
|
sex: SexEnum,
|
|
837
929
|
city: textField(),
|
|
838
|
-
state:
|
|
930
|
+
state: UfEnum,
|
|
839
931
|
office: textField(),
|
|
840
932
|
mother_name: textField(),
|
|
841
933
|
nationality: textField()
|
|
@@ -858,7 +950,7 @@ var eosPfObject = zod.z.object({
|
|
|
858
950
|
energy_account_in_requester_name: textField(),
|
|
859
951
|
city: textField(),
|
|
860
952
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
861
|
-
state:
|
|
953
|
+
state: UfEnum,
|
|
862
954
|
nationality: textField(),
|
|
863
955
|
cellphone: phoneBRSchema,
|
|
864
956
|
email: emailSchema,
|
|
@@ -886,7 +978,7 @@ var eosPjObject = zod.z.object({
|
|
|
886
978
|
legal_nature: textField(),
|
|
887
979
|
city: textField(),
|
|
888
980
|
economic_activity_group: textField(),
|
|
889
|
-
state:
|
|
981
|
+
state: UfEnum,
|
|
890
982
|
economic_activity: textField(),
|
|
891
983
|
monthly_income: currencySchema
|
|
892
984
|
}).strict(),
|
|
@@ -904,7 +996,7 @@ var eosPjObject = zod.z.object({
|
|
|
904
996
|
district: textField(),
|
|
905
997
|
sex: SexEnum,
|
|
906
998
|
city: textField(),
|
|
907
|
-
state:
|
|
999
|
+
state: UfEnum,
|
|
908
1000
|
office: textField(),
|
|
909
1001
|
mother_name: textField(),
|
|
910
1002
|
nationality: textField()
|
|
@@ -927,7 +1019,7 @@ var hdtEnergyPfObject = zod.z.object({
|
|
|
927
1019
|
energy_account_in_requester_name: textField(),
|
|
928
1020
|
city: textField(),
|
|
929
1021
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
930
|
-
state:
|
|
1022
|
+
state: UfEnum,
|
|
931
1023
|
nationality: textField(),
|
|
932
1024
|
cellphone: phoneBRSchema,
|
|
933
1025
|
email: emailSchema,
|
|
@@ -955,7 +1047,7 @@ var hdtEnergyPjObject = zod.z.object({
|
|
|
955
1047
|
legal_nature: textField(),
|
|
956
1048
|
city: textField(),
|
|
957
1049
|
economic_activity_group: textField(),
|
|
958
|
-
state:
|
|
1050
|
+
state: UfEnum,
|
|
959
1051
|
economic_activity: textField(),
|
|
960
1052
|
monthly_income: currencySchema
|
|
961
1053
|
}).strict(),
|
|
@@ -973,7 +1065,7 @@ var hdtEnergyPjObject = zod.z.object({
|
|
|
973
1065
|
district: textField(),
|
|
974
1066
|
sex: SexEnum,
|
|
975
1067
|
city: textField(),
|
|
976
|
-
state:
|
|
1068
|
+
state: UfEnum,
|
|
977
1069
|
office: textField(),
|
|
978
1070
|
mother_name: textField(),
|
|
979
1071
|
nationality: textField()
|
|
@@ -996,7 +1088,7 @@ var losangoPfObject = zod.z.object({
|
|
|
996
1088
|
energy_account_in_requester_name: textField(),
|
|
997
1089
|
city: textField(),
|
|
998
1090
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
999
|
-
state:
|
|
1091
|
+
state: UfEnum,
|
|
1000
1092
|
nationality: textField(),
|
|
1001
1093
|
cellphone: phoneBRSchema,
|
|
1002
1094
|
email: emailSchema,
|
|
@@ -1024,7 +1116,7 @@ var losangoPjObject = zod.z.object({
|
|
|
1024
1116
|
legal_nature: textField(),
|
|
1025
1117
|
city: textField(),
|
|
1026
1118
|
economic_activity_group: textField(),
|
|
1027
|
-
state:
|
|
1119
|
+
state: UfEnum,
|
|
1028
1120
|
economic_activity: textField(),
|
|
1029
1121
|
monthly_income: currencySchema
|
|
1030
1122
|
}).strict(),
|
|
@@ -1042,7 +1134,7 @@ var losangoPjObject = zod.z.object({
|
|
|
1042
1134
|
district: textField(),
|
|
1043
1135
|
sex: SexEnum,
|
|
1044
1136
|
city: textField(),
|
|
1045
|
-
state:
|
|
1137
|
+
state: UfEnum,
|
|
1046
1138
|
office: textField(),
|
|
1047
1139
|
mother_name: textField(),
|
|
1048
1140
|
nationality: textField()
|
|
@@ -1065,7 +1157,7 @@ var safraPfObject = zod.z.object({
|
|
|
1065
1157
|
energy_account_in_requester_name: textField(),
|
|
1066
1158
|
city: textField(),
|
|
1067
1159
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
1068
|
-
state:
|
|
1160
|
+
state: UfEnum,
|
|
1069
1161
|
nationality: textField(),
|
|
1070
1162
|
cellphone: phoneBRSchema,
|
|
1071
1163
|
email: emailSchema,
|
|
@@ -1093,7 +1185,7 @@ var safraPjObject = zod.z.object({
|
|
|
1093
1185
|
legal_nature: textField(),
|
|
1094
1186
|
city: textField(),
|
|
1095
1187
|
economic_activity_group: textField(),
|
|
1096
|
-
state:
|
|
1188
|
+
state: UfEnum,
|
|
1097
1189
|
economic_activity: textField(),
|
|
1098
1190
|
monthly_income: currencySchema
|
|
1099
1191
|
}).strict(),
|
|
@@ -1111,7 +1203,7 @@ var safraPjObject = zod.z.object({
|
|
|
1111
1203
|
district: textField(),
|
|
1112
1204
|
sex: SexEnum,
|
|
1113
1205
|
city: textField(),
|
|
1114
|
-
state:
|
|
1206
|
+
state: UfEnum,
|
|
1115
1207
|
office: textField(),
|
|
1116
1208
|
mother_name: textField(),
|
|
1117
1209
|
nationality: textField()
|
|
@@ -1134,7 +1226,7 @@ var santanderPfObject = zod.z.object({
|
|
|
1134
1226
|
energy_account_in_requester_name: textField(),
|
|
1135
1227
|
city: textField(),
|
|
1136
1228
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
1137
|
-
state:
|
|
1229
|
+
state: UfEnum,
|
|
1138
1230
|
nationality: textField(),
|
|
1139
1231
|
cellphone: phoneBRSchema,
|
|
1140
1232
|
email: emailSchema,
|
|
@@ -1162,7 +1254,7 @@ var santanderPjObject = zod.z.object({
|
|
|
1162
1254
|
legal_nature: textField(),
|
|
1163
1255
|
city: textField(),
|
|
1164
1256
|
economic_activity_group: textField(),
|
|
1165
|
-
state:
|
|
1257
|
+
state: UfEnum,
|
|
1166
1258
|
economic_activity: textField(),
|
|
1167
1259
|
monthly_income: currencySchema
|
|
1168
1260
|
}).strict(),
|
|
@@ -1180,7 +1272,7 @@ var santanderPjObject = zod.z.object({
|
|
|
1180
1272
|
district: textField(),
|
|
1181
1273
|
sex: SexEnum,
|
|
1182
1274
|
city: textField(),
|
|
1183
|
-
state:
|
|
1275
|
+
state: UfEnum,
|
|
1184
1276
|
office: textField(),
|
|
1185
1277
|
mother_name: textField(),
|
|
1186
1278
|
nationality: textField()
|
|
@@ -1203,7 +1295,7 @@ var solAgoraPfObject = zod.z.object({
|
|
|
1203
1295
|
energy_account_in_requester_name: textField(),
|
|
1204
1296
|
city: textField(),
|
|
1205
1297
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
1206
|
-
state:
|
|
1298
|
+
state: UfEnum,
|
|
1207
1299
|
nationality: textField(),
|
|
1208
1300
|
cellphone: phoneBRSchema,
|
|
1209
1301
|
email: emailSchema,
|
|
@@ -1231,7 +1323,7 @@ var solAgoraPjObject = zod.z.object({
|
|
|
1231
1323
|
legal_nature: textField(),
|
|
1232
1324
|
city: textField(),
|
|
1233
1325
|
economic_activity_group: textField(),
|
|
1234
|
-
state:
|
|
1326
|
+
state: UfEnum,
|
|
1235
1327
|
economic_activity: textField(),
|
|
1236
1328
|
monthly_income: currencySchema
|
|
1237
1329
|
}).strict(),
|
|
@@ -1249,18 +1341,18 @@ var solAgoraPjObject = zod.z.object({
|
|
|
1249
1341
|
cellphone: phoneBRSchema,
|
|
1250
1342
|
city: textField(),
|
|
1251
1343
|
email: emailSchema,
|
|
1252
|
-
state:
|
|
1344
|
+
state: UfEnum,
|
|
1253
1345
|
birth_date: birthDateSchema,
|
|
1254
1346
|
civil_status: textField(),
|
|
1255
1347
|
sex: SexEnum,
|
|
1256
1348
|
type_doc: DocumentTypeEnum,
|
|
1257
1349
|
doc: textField(),
|
|
1258
|
-
doc_issuance_uf:
|
|
1350
|
+
doc_issuance_uf: UfEnum,
|
|
1259
1351
|
doc_issue_date: issueDateSchema,
|
|
1260
1352
|
doc_expiration_date: dateDMYSchema,
|
|
1261
1353
|
mother_name: textField(),
|
|
1262
1354
|
naturalness: textField(),
|
|
1263
|
-
uf_naturalness:
|
|
1355
|
+
uf_naturalness: UfEnum,
|
|
1264
1356
|
nationality: textField()
|
|
1265
1357
|
}).strict()
|
|
1266
1358
|
)
|
|
@@ -1281,7 +1373,7 @@ var solfacilPfObject = zod.z.object({
|
|
|
1281
1373
|
energy_account_in_requester_name: textField(),
|
|
1282
1374
|
city: textField(),
|
|
1283
1375
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
1284
|
-
state:
|
|
1376
|
+
state: UfEnum,
|
|
1285
1377
|
nationality: textField(),
|
|
1286
1378
|
cellphone: phoneBRSchema,
|
|
1287
1379
|
email: emailSchema,
|
|
@@ -1308,7 +1400,7 @@ var solfacilPjObject = zod.z.object({
|
|
|
1308
1400
|
district: textField(),
|
|
1309
1401
|
legal_nature: textField(),
|
|
1310
1402
|
city: textField(),
|
|
1311
|
-
state:
|
|
1403
|
+
state: UfEnum
|
|
1312
1404
|
}).strict(),
|
|
1313
1405
|
financing_company_guarantor: zod.z.array(
|
|
1314
1406
|
zod.z.object({
|
|
@@ -1325,12 +1417,12 @@ var solfacilPjObject = zod.z.object({
|
|
|
1325
1417
|
district: textField(),
|
|
1326
1418
|
sex: SexEnum,
|
|
1327
1419
|
city: textField(),
|
|
1328
|
-
state:
|
|
1420
|
+
state: UfEnum,
|
|
1329
1421
|
civil_status: textField(),
|
|
1330
1422
|
office: textField(),
|
|
1331
1423
|
doc: textField(),
|
|
1332
1424
|
issuing_body: textField(),
|
|
1333
|
-
uf_issuing_body:
|
|
1425
|
+
uf_issuing_body: UfEnum,
|
|
1334
1426
|
doc_issue_date: issueDateSchema,
|
|
1335
1427
|
mother_name: textField(),
|
|
1336
1428
|
monthly_income: currencySchema,
|
|
@@ -1354,7 +1446,7 @@ var unifiedPfObject = zod.z.object({
|
|
|
1354
1446
|
energy_account_in_requester_name: textField(),
|
|
1355
1447
|
city: textField(),
|
|
1356
1448
|
energy_bill_owner_document: cpfCnpjSchema.optional(),
|
|
1357
|
-
state:
|
|
1449
|
+
state: UfEnum,
|
|
1358
1450
|
nationality: textField(),
|
|
1359
1451
|
cellphone: phoneBRSchema,
|
|
1360
1452
|
email: emailSchema,
|
|
@@ -1367,13 +1459,13 @@ var unifiedPfObject = zod.z.object({
|
|
|
1367
1459
|
residence_situation: ResidenceTypeEnum,
|
|
1368
1460
|
months_in_residence: integerField.optional(),
|
|
1369
1461
|
civil_status: CivilStatusEnum,
|
|
1370
|
-
uf_naturalness:
|
|
1462
|
+
uf_naturalness: UfEnum,
|
|
1371
1463
|
naturalness: textField().optional(),
|
|
1372
1464
|
nature_of_occupation: NatureOfOccupationTypeEnum,
|
|
1373
1465
|
company_time: numberField.optional(),
|
|
1374
1466
|
cnpj_proprietary: cnpjSchema.optional(),
|
|
1375
1467
|
equity_value: currencySchema.optional(),
|
|
1376
|
-
emitting_state:
|
|
1468
|
+
emitting_state: UfEnum,
|
|
1377
1469
|
pep_relationship: YesOrNoEnum,
|
|
1378
1470
|
social_name: textField().optional(),
|
|
1379
1471
|
partner_name: textField().optional(),
|
|
@@ -1401,7 +1493,7 @@ var unifiedPjObject = zod.z.object({
|
|
|
1401
1493
|
district: textField(),
|
|
1402
1494
|
legal_nature: textField(),
|
|
1403
1495
|
city: textField(),
|
|
1404
|
-
state:
|
|
1496
|
+
state: UfEnum,
|
|
1405
1497
|
cep: cepSchema,
|
|
1406
1498
|
economic_activity: textField().optional(),
|
|
1407
1499
|
economic_activity_group: textField().optional(),
|
|
@@ -1424,7 +1516,7 @@ var unifiedPjObject = zod.z.object({
|
|
|
1424
1516
|
district: textField(),
|
|
1425
1517
|
sex: SexEnum,
|
|
1426
1518
|
city: textField(),
|
|
1427
|
-
state:
|
|
1519
|
+
state: UfEnum,
|
|
1428
1520
|
mother_name: textField(),
|
|
1429
1521
|
nationality: textField(),
|
|
1430
1522
|
office: textField().optional(),
|
|
@@ -1435,16 +1527,16 @@ var unifiedPjObject = zod.z.object({
|
|
|
1435
1527
|
type_doc: DocumentTypeEnum.optional(),
|
|
1436
1528
|
doc: textField().optional(),
|
|
1437
1529
|
issuing_body: textField().optional(),
|
|
1438
|
-
uf_issuing_body:
|
|
1530
|
+
uf_issuing_body: UfEnum.optional(),
|
|
1439
1531
|
doc_issue_date: issueDateSchema.optional(),
|
|
1440
1532
|
doc_expiration_date: dateDMYSchema.optional(),
|
|
1441
1533
|
monthly_income: currencySchema.optional(),
|
|
1442
1534
|
patrimony: currencySchema.optional(),
|
|
1443
1535
|
naturalness: textField().optional(),
|
|
1444
|
-
uf_naturalness:
|
|
1536
|
+
uf_naturalness: UfEnum.optional(),
|
|
1445
1537
|
pep_relationship: textField().optional(),
|
|
1446
1538
|
entry_date: issueDateSchema.optional(),
|
|
1447
|
-
doc_issuance_uf:
|
|
1539
|
+
doc_issuance_uf: UfEnum.optional()
|
|
1448
1540
|
}).strict()
|
|
1449
1541
|
).optional(),
|
|
1450
1542
|
financing_company_qsa: zod.z.array(
|
|
@@ -1461,7 +1553,7 @@ var unifiedPjObject = zod.z.object({
|
|
|
1461
1553
|
district: textField(),
|
|
1462
1554
|
sex: SexEnum,
|
|
1463
1555
|
city: textField(),
|
|
1464
|
-
state:
|
|
1556
|
+
state: UfEnum,
|
|
1465
1557
|
mother_name: textField(),
|
|
1466
1558
|
nationality: textField(),
|
|
1467
1559
|
office: textField().optional(),
|
|
@@ -1472,16 +1564,16 @@ var unifiedPjObject = zod.z.object({
|
|
|
1472
1564
|
type_doc: DocumentTypeEnum.optional(),
|
|
1473
1565
|
doc: textField().optional(),
|
|
1474
1566
|
issuing_body: textField().optional(),
|
|
1475
|
-
uf_issuing_body:
|
|
1567
|
+
uf_issuing_body: UfEnum.optional(),
|
|
1476
1568
|
doc_issue_date: issueDateSchema.optional(),
|
|
1477
1569
|
doc_expiration_date: dateDMYSchema.optional(),
|
|
1478
1570
|
monthly_income: currencySchema.optional(),
|
|
1479
1571
|
patrimony: currencySchema.optional(),
|
|
1480
1572
|
naturalness: textField().optional(),
|
|
1481
|
-
uf_naturalness:
|
|
1573
|
+
uf_naturalness: UfEnum.optional(),
|
|
1482
1574
|
pep_relationship: textField().optional(),
|
|
1483
1575
|
entry_date: issueDateSchema.optional(),
|
|
1484
|
-
doc_issuance_uf:
|
|
1576
|
+
doc_issuance_uf: UfEnum.optional()
|
|
1485
1577
|
}).strict()
|
|
1486
1578
|
).optional()
|
|
1487
1579
|
});
|