rapida-partner 1.4.1 → 1.5.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/package.json +1 -1
- package/src/examples/projects/movieBackoffice.ts +0 -6
- package/src/interfaces/form.interface.ts +1 -0
- package/src/schemas/form.ref.json +33 -5
- package/src/examples/components/forms/company.form.ts +0 -658
- package/src/examples/components/forms/customer.form.ts +0 -120
- package/src/examples/components/forms/person.form.ts +0 -479
- package/src/examples/modules/company.ts +0 -13
- package/src/examples/modules/customer.ts +0 -13
- package/src/examples/modules/person.ts +0 -13
|
@@ -1,658 +0,0 @@
|
|
|
1
|
-
import { COUNTRIES_FROM_EARTH } from "../../../constants/options/countriesFromEarth";
|
|
2
|
-
import { EDataType } from "../../../enums/form.enum";
|
|
3
|
-
import type { IForm } from "../../../interfaces/form.interface";
|
|
4
|
-
|
|
5
|
-
export const companyForm: IForm = {
|
|
6
|
-
title: "Gerenciamento de empresa",
|
|
7
|
-
userStory: `Como um usuário autorizado, eu quero usar o formulário de gerenciamento de empresas para criar e editar registros de empresas, incluindo dados principais como razão social, nome fantasia, CNPJ, nacionalidade, data de abertura, natureza legal e descrição. Eu também quero gerenciar informações de contato e redes sociais, como telefones e e-mails, e até dois endereços completos, para que eu possa manter um cadastro detalhado e atualizado das empresas. Além disso, quero poder associar sócios cadastrados no gerenciamento de pessoas à empresa, para manter um registro de quem são os responsáveis.`,
|
|
8
|
-
componentType: "form",
|
|
9
|
-
id: "companyForm",
|
|
10
|
-
contracts: [{
|
|
11
|
-
id: "companies",
|
|
12
|
-
endpoint: "/companies",
|
|
13
|
-
actions: ["create", "get", "getById", "update", "delete"],
|
|
14
|
-
request: {
|
|
15
|
-
entity: "Companies",
|
|
16
|
-
description: "Represents a company or business entity.",
|
|
17
|
-
fields: [
|
|
18
|
-
{ name: "_id", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, isPrimaryKey: true },
|
|
19
|
-
{ name: "country", dataType: EDataType.NVARCHAR, isRequired: true },
|
|
20
|
-
{ name: "cnpj", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
21
|
-
{ name: "name", dataType: EDataType.NVARCHAR, isRequired: true },
|
|
22
|
-
{ name: "businessName", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
23
|
-
{ name: "birthday", dataType: EDataType.DATE, isRequired: false },
|
|
24
|
-
{ name: "legalNature", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
25
|
-
{ name: "stateRegistration", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
26
|
-
{ name: "municipalRegistration", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
27
|
-
{ name: "description", dataType: EDataType.LONGTEXT, isRequired: false },
|
|
28
|
-
{ name: "logo", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
29
|
-
{ name: "partners", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: false, foreignKey: {
|
|
30
|
-
entity: "People",
|
|
31
|
-
connectionAttribute: "_id",
|
|
32
|
-
relationship: "many-to-many"
|
|
33
|
-
} },
|
|
34
|
-
{ name: "phoneOne", dataType: EDataType.NVARCHAR, isRequired: true },
|
|
35
|
-
{ name: "emailOne", dataType: EDataType.NVARCHAR, isRequired: true },
|
|
36
|
-
{ name: "addressOneZipCode", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
37
|
-
{ name: "addressOneStreet", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
38
|
-
{ name: "addressOneDistrict", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
39
|
-
{ name: "addressOneNumber", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
40
|
-
{ name: "addressOneComplement", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
41
|
-
{ name: "addressOneCity", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
42
|
-
{ name: "addressOneState", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
43
|
-
{ name: "addressOneLatitude", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
44
|
-
{ name: "addressOneLongitude", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
45
|
-
{ name: "addressTwoZipCode", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
46
|
-
{ name: "addressTwoStreet", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
47
|
-
{ name: "addressTwoDistrict", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
48
|
-
{ name: "addressTwoNumber", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
49
|
-
{ name: "addressTwoComplement", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
50
|
-
{ name: "addressTwoCity", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
51
|
-
{ name: "addressTwoState", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
52
|
-
{ name: "addressTwoLatitude", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
53
|
-
{ name: "addressTwoLongitude", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
54
|
-
{ name: "phoneTwo", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
55
|
-
{ name: "emailTwo", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
56
|
-
{ name: "siteOne", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
57
|
-
{ name: "siteTwo", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
58
|
-
{ name: "linkedin", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
59
|
-
{ name: "instagram", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
60
|
-
{ name: "facebook", dataType: EDataType.NVARCHAR, isRequired: false },
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
}],
|
|
64
|
-
guards: "isAuthorized",
|
|
65
|
-
elements: [
|
|
66
|
-
{
|
|
67
|
-
type: "tab",
|
|
68
|
-
id: "companyTab",
|
|
69
|
-
tabs: [
|
|
70
|
-
{
|
|
71
|
-
id: "companyMainDataTab",
|
|
72
|
-
title: "Dados principais",
|
|
73
|
-
elements: [
|
|
74
|
-
{
|
|
75
|
-
label: "Nacionalidade",
|
|
76
|
-
type: "select",
|
|
77
|
-
name: "country",
|
|
78
|
-
dataType: EDataType.TEXT,
|
|
79
|
-
options: COUNTRIES_FROM_EARTH.map(country => ({ label: country.brazilianPortugueseName, value: country.englishNameAsValue })),
|
|
80
|
-
isRequired: true,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: "CNPJ",
|
|
84
|
-
type: "input",
|
|
85
|
-
dataType: EDataType.TEXT,
|
|
86
|
-
name: "cnpj",
|
|
87
|
-
maskRegex: "^\\d{2}\\.\\d{3}\\.\\d{3}/\\d{4}-\\d{2}$",
|
|
88
|
-
isUnique: true,
|
|
89
|
-
conditions: [
|
|
90
|
-
{
|
|
91
|
-
type: "form",
|
|
92
|
-
elements: [
|
|
93
|
-
{
|
|
94
|
-
key: "country",
|
|
95
|
-
value: "brazilian",
|
|
96
|
-
comparisonOperator: "===",
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: "Razão social",
|
|
104
|
-
type: "input",
|
|
105
|
-
dataType: EDataType.TEXT,
|
|
106
|
-
name: "name",
|
|
107
|
-
isRequired: true,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: "Nome fantasia",
|
|
111
|
-
type: "input",
|
|
112
|
-
dataType: EDataType.TEXT,
|
|
113
|
-
name: "businessName",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
type: "input",
|
|
117
|
-
dataType: EDataType.DATE,
|
|
118
|
-
label: "Data de abertura",
|
|
119
|
-
name: "birthday",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
label: "Natureza legal",
|
|
123
|
-
type: "select",
|
|
124
|
-
dataType: EDataType.TEXT,
|
|
125
|
-
name: "legalNature",
|
|
126
|
-
options: [
|
|
127
|
-
{ label: "Empresa Pública", value: "201-1" },
|
|
128
|
-
{ label: "Sociedade de Economia Mista", value: "203-8" },
|
|
129
|
-
{ label: "Sociedade Anônima Aberta", value: "204-6" },
|
|
130
|
-
{ label: "Sociedade Anônima Fechada", value: "205-4" },
|
|
131
|
-
{ label: "Sociedade Empresária Limitada", value: "206-2" },
|
|
132
|
-
{
|
|
133
|
-
label: "Sociedade Empresária em Nome Coletivo",
|
|
134
|
-
value: "207-0",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
label: "Sociedade Empresária em Comandita Simples",
|
|
138
|
-
value: "208-9",
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
label: "Sociedade Empresária em Comandita por Ações",
|
|
142
|
-
value: "209-7",
|
|
143
|
-
},
|
|
144
|
-
{ label: "Sociedade em Conta de Participação", value: "212-7" },
|
|
145
|
-
{ label: "Empresário(Individual)", value: "213-5" },
|
|
146
|
-
{ label: "Cooperativa", value: "214-3" },
|
|
147
|
-
{ label: "Consórcio de Sociedades", value: "215-1" },
|
|
148
|
-
{ label: "Grupo de Sociedades", value: "216-0" },
|
|
149
|
-
{
|
|
150
|
-
label: "Estabelecimento, no Brasil, de Sociedade Estrangeira",
|
|
151
|
-
value: "217-8",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
label:
|
|
155
|
-
"Estabelecimento, no Brasil, de Empresa Binacional Argentino - Brasileira",
|
|
156
|
-
value: "219-4",
|
|
157
|
-
},
|
|
158
|
-
{ label: "Empresa Domiciliada no Exterior", value: "221-6" },
|
|
159
|
-
{ label: "Clube / Fundo de Investimento", value: "222-4" },
|
|
160
|
-
{ label: "Sociedade Simples Pura", value: "223-2" },
|
|
161
|
-
{ label: "Sociedade Simples Limitada", value: "224-0" },
|
|
162
|
-
{ label: "Sociedade Simples em Nome Coletivo", value: "225-9" },
|
|
163
|
-
{
|
|
164
|
-
label: "Sociedade Simples em Comandita Simples",
|
|
165
|
-
value: "226-7",
|
|
166
|
-
},
|
|
167
|
-
{ label: "Empresa Binacional", value: "227-5" },
|
|
168
|
-
{ label: "Consórcio de Empregadores", value: "228-3" },
|
|
169
|
-
{ label: "Consórcio Simples", value: "229-1" },
|
|
170
|
-
{
|
|
171
|
-
label:
|
|
172
|
-
"Empresa Individual de Responsabilidade Limitada(de Natureza Empresária)",
|
|
173
|
-
value: "230-5",
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
label:
|
|
177
|
-
"Empresa Individual de Responsabilidade Limitada(de Natureza Simples)",
|
|
178
|
-
value: "231-3",
|
|
179
|
-
},
|
|
180
|
-
{ label: "Sociedade Unipessoal de Advogados", value: "232-1" },
|
|
181
|
-
{ label: "Cooperativas de Consumo", value: "233-0" },
|
|
182
|
-
{
|
|
183
|
-
label: "Serviço Notarial e Registral(Cartório)",
|
|
184
|
-
value: "303-4",
|
|
185
|
-
},
|
|
186
|
-
{ label: "Fundação Privada", value: "306-9" },
|
|
187
|
-
{ label: "Serviço Social Autônomo", value: "307-7" },
|
|
188
|
-
{ label: "Condomínio Edilício", value: "308-5" },
|
|
189
|
-
{ label: "Comissão de Conciliação Prévia", value: "310-7" },
|
|
190
|
-
{ label: "Entidade de Mediação e Arbitragem", value: "311-5" },
|
|
191
|
-
{ label: "Entidade Sindical", value: "313-1" },
|
|
192
|
-
{
|
|
193
|
-
label:
|
|
194
|
-
"Estabelecimento, no Brasil, de Fundação ou Associação Estrangeiras",
|
|
195
|
-
value: "320-4",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
label: "Fundação ou Associação Domiciliada no Exterior",
|
|
199
|
-
value: "321-2",
|
|
200
|
-
},
|
|
201
|
-
{ label: "Organização Religiosa", value: "322-0" },
|
|
202
|
-
{ label: "Comunidade Indígena", value: "323-9" },
|
|
203
|
-
{ label: "Fundo Privado", value: "324-7" },
|
|
204
|
-
{
|
|
205
|
-
label: "Órgão de Direção Nacional de Partido Político",
|
|
206
|
-
value: "325-5",
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
label: "Órgão de Direção Regional de Partido Político",
|
|
210
|
-
value: "326-3",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
label: "Órgão de Direção Local de Partido Político",
|
|
214
|
-
value: "327-1",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
label: "Comitê Financeiro de Partido Político",
|
|
218
|
-
value: "328-0",
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
label: "Frente Plebiscitária ou Referendária",
|
|
222
|
-
value: "329-8",
|
|
223
|
-
},
|
|
224
|
-
{ label: "Organização Social(OS)", value: "330-1" },
|
|
225
|
-
{ label: "Demais Condomínios", value: "331-0" },
|
|
226
|
-
{ label: "Associação Privada", value: "399-9" },
|
|
227
|
-
{ label: "Empresa Individual Imobiliária", value: "401-4" },
|
|
228
|
-
{ label: "Segurado Especial", value: "402-2" },
|
|
229
|
-
{ label: "Contribuinte individual", value: "408-1" },
|
|
230
|
-
{ label: "Candidato a Cargo Político Eletivo", value: "409-0" },
|
|
231
|
-
{ label: "Leiloeiro", value: "411-1" },
|
|
232
|
-
{ label: "Produtor Rural(Pessoa Física)", value: "412-0" },
|
|
233
|
-
{ label: "Organização Internacional", value: "501-0" },
|
|
234
|
-
{
|
|
235
|
-
label: "Representação Diplomática Estrangeira",
|
|
236
|
-
value: "502-9",
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
label: "Outras Instituições Extraterritoriais",
|
|
240
|
-
value: "503-7",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: "Órgão Público do Poder Executivo Federal",
|
|
244
|
-
value: "101-5",
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
label:
|
|
248
|
-
"Órgão Público do Poder Executivo Estadual ou do Distrito Federal",
|
|
249
|
-
value: "102-3",
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
label: "Órgão Público do Poder Executivo Municipal",
|
|
253
|
-
value: "103-1",
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: "Órgão Público do Poder Legislativo Federal",
|
|
257
|
-
value: "104-0",
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
label:
|
|
261
|
-
"Órgão Público do Poder Legislativo Estadual ou do Distrito Federal",
|
|
262
|
-
value: "105-8",
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
label: "Órgão Público do Poder Legislativo Municipal",
|
|
266
|
-
value: "106-6",
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
label: "Órgão Público do Poder Judiciário Federal",
|
|
270
|
-
value: "107-4",
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
label: "Órgão Público do Poder Judiciário Estadual",
|
|
274
|
-
value: "108-2",
|
|
275
|
-
},
|
|
276
|
-
{ label: "Autarquia Federal", value: "110-4" },
|
|
277
|
-
{
|
|
278
|
-
label: "Autarquia Estadual ou do Distrito Federal",
|
|
279
|
-
value: "111-2",
|
|
280
|
-
},
|
|
281
|
-
{ label: "Autarquia Municipal", value: "112-0" },
|
|
282
|
-
{
|
|
283
|
-
label: "Fundação Pública de Direito Público Federal",
|
|
284
|
-
value: "113-9",
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
label:
|
|
288
|
-
"Fundação Pública de Direito Público Estadual ou do Distrito Federal",
|
|
289
|
-
value: "114-7",
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
label: "Fundação Pública de Direito Público Municipal",
|
|
293
|
-
value: "115-5",
|
|
294
|
-
},
|
|
295
|
-
{ label: "Órgão Público Autônomo Federal", value: "116-3" },
|
|
296
|
-
{
|
|
297
|
-
label:
|
|
298
|
-
"Órgão Público Autônomo Estadual ou do Distrito Federal",
|
|
299
|
-
value: "117-1",
|
|
300
|
-
},
|
|
301
|
-
{ label: "Órgão Público Autônomo Municipal", value: "118-0" },
|
|
302
|
-
{ label: "Comissão Polinacional", value: "119-8" },
|
|
303
|
-
{ label: "Fundo Público", value: "120-1" },
|
|
304
|
-
{
|
|
305
|
-
label:
|
|
306
|
-
"Consórcio Público de Direito Público(Associação Pública)",
|
|
307
|
-
value: "121-0",
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
label: "Consórcio Público de Direito Privado",
|
|
311
|
-
value: "122-8",
|
|
312
|
-
},
|
|
313
|
-
{ label: "Estado ou Distrito Federal", value: "123-6" },
|
|
314
|
-
{ label: "Município", value: "124-4" },
|
|
315
|
-
{
|
|
316
|
-
label: "Fundação Pública de Direito Privado Federal",
|
|
317
|
-
value: "125-2",
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
label:
|
|
321
|
-
"Fundação Pública de Direito Privado Estadual ou do Distrito Federal",
|
|
322
|
-
value: "126-0",
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
label: "Fundação Pública de Direito Privado Municipal",
|
|
326
|
-
value: "127-9",
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
conditions: [
|
|
330
|
-
{
|
|
331
|
-
type: "form",
|
|
332
|
-
elements: [
|
|
333
|
-
{
|
|
334
|
-
key: "country",
|
|
335
|
-
value: "brazilian",
|
|
336
|
-
comparisonOperator: "===",
|
|
337
|
-
}
|
|
338
|
-
]
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
},
|
|
342
|
-
// input - Inscrição estadual
|
|
343
|
-
{
|
|
344
|
-
label: "Inscrição estadual",
|
|
345
|
-
type: "input",
|
|
346
|
-
dataType: EDataType.TEXT,
|
|
347
|
-
name: "stateRegistration",
|
|
348
|
-
conditions: [
|
|
349
|
-
{
|
|
350
|
-
type: "form",
|
|
351
|
-
elements: [
|
|
352
|
-
{
|
|
353
|
-
key: "country",
|
|
354
|
-
value: "brazilian",
|
|
355
|
-
comparisonOperator: "===",
|
|
356
|
-
}
|
|
357
|
-
]
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
validators: ["onlyNumbers"]
|
|
361
|
-
},
|
|
362
|
-
// input - Inscrição municipal
|
|
363
|
-
{
|
|
364
|
-
type: "input",
|
|
365
|
-
label: "Inscrição municipal",
|
|
366
|
-
dataType: EDataType.TEXT,
|
|
367
|
-
name: "municipalRegistration",
|
|
368
|
-
conditions: [
|
|
369
|
-
{
|
|
370
|
-
type: "form",
|
|
371
|
-
elements: [
|
|
372
|
-
{
|
|
373
|
-
key: "country",
|
|
374
|
-
value: "brazilian",
|
|
375
|
-
comparisonOperator: "===",
|
|
376
|
-
}
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
],
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
type: "input",
|
|
383
|
-
dataType: EDataType.WYSIWYG,
|
|
384
|
-
label: "Descrição da empresa",
|
|
385
|
-
name: "description",
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
label: "Logo da empresa",
|
|
389
|
-
type: "file",
|
|
390
|
-
dataType: EDataType.TEXT,
|
|
391
|
-
name: "logo",
|
|
392
|
-
storageConfig: {
|
|
393
|
-
fileNameStrategy: "uuid",
|
|
394
|
-
path: "company/logos",
|
|
395
|
-
visibility: "public",
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
label: "Sócios",
|
|
400
|
-
type: "autocomplete",
|
|
401
|
-
dataType: EDataType.TEXT,
|
|
402
|
-
tooltip:
|
|
403
|
-
"O(s) sócio(s) deve(m) estar cadastrado(s) no gerenciamento de pessoas.",
|
|
404
|
-
name: "partners",
|
|
405
|
-
optionsApi: {
|
|
406
|
-
endpoint: "/people",
|
|
407
|
-
labelField: ["cpf", "name"],
|
|
408
|
-
valueField: "_id",
|
|
409
|
-
paramsToFilter: ["cpf", "name"],
|
|
410
|
-
paramType: "query",
|
|
411
|
-
relatedEntity: "People",
|
|
412
|
-
},
|
|
413
|
-
isMultiple: true,
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
label: "Telefone principal",
|
|
417
|
-
type: "input",
|
|
418
|
-
dataType: EDataType.TEXT,
|
|
419
|
-
name: "phoneOne",
|
|
420
|
-
maskRegex: "^\\(\\d{2}\\) \\d{4,5}-\\d{4}$",
|
|
421
|
-
isRequired: true,
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
label: "E-mail principal",
|
|
425
|
-
type: "input",
|
|
426
|
-
dataType: EDataType.EMAIL,
|
|
427
|
-
name: "emailOne",
|
|
428
|
-
isRequired: true,
|
|
429
|
-
},
|
|
430
|
-
],
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
id: "companyAddressTab",
|
|
434
|
-
title: "Endereços",
|
|
435
|
-
elements: [
|
|
436
|
-
{
|
|
437
|
-
type: "fieldset",
|
|
438
|
-
id: "addressOne",
|
|
439
|
-
title: "Endereço 1",
|
|
440
|
-
elements: [
|
|
441
|
-
{
|
|
442
|
-
label: "CEP",
|
|
443
|
-
type: "input",
|
|
444
|
-
dataType: EDataType.TEXT,
|
|
445
|
-
name: "addressOneZipCode",
|
|
446
|
-
apiRequest: {
|
|
447
|
-
endpoint: "https://brasilapi.com.br/api/cep/v1/",
|
|
448
|
-
paramType: "path",
|
|
449
|
-
formFieldsFilledByApiResponse: [
|
|
450
|
-
{
|
|
451
|
-
formFieldName: "addressOneStreet",
|
|
452
|
-
propertiesFromApiToFillFormField: ["street"],
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
formFieldName: "addressOneDistrict",
|
|
456
|
-
propertiesFromApiToFillFormField: ["neighborhood"],
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
formFieldName: "addressOneCity",
|
|
460
|
-
propertiesFromApiToFillFormField: ["city"],
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
formFieldName: "addressOneState",
|
|
464
|
-
propertiesFromApiToFillFormField: ["state"],
|
|
465
|
-
},
|
|
466
|
-
],
|
|
467
|
-
},
|
|
468
|
-
validators: ["cep"],
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
label: "Logradouro",
|
|
472
|
-
type: "input",
|
|
473
|
-
dataType: EDataType.TEXT,
|
|
474
|
-
name: "addressOneStreet",
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
label: "Bairro",
|
|
478
|
-
type: "input",
|
|
479
|
-
dataType: EDataType.TEXT,
|
|
480
|
-
name: "addressOneDistrict",
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
label: "Número",
|
|
484
|
-
type: "input",
|
|
485
|
-
dataType: EDataType.TEXT,
|
|
486
|
-
name: "addressOneNumber",
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
label: "Complemento",
|
|
490
|
-
type: "input",
|
|
491
|
-
dataType: EDataType.TEXT,
|
|
492
|
-
name: "addressOneComplement",
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
label: "Cidade",
|
|
496
|
-
type: "input",
|
|
497
|
-
dataType: EDataType.TEXT,
|
|
498
|
-
name: "addressOneCity",
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
label: "Estado",
|
|
502
|
-
type: "input",
|
|
503
|
-
dataType: EDataType.TEXT,
|
|
504
|
-
name: "addressOneState",
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
label: "Latitude",
|
|
508
|
-
type: "input",
|
|
509
|
-
dataType: EDataType.TEXT,
|
|
510
|
-
name: "addressOneLatitude",
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
label: "Longitude",
|
|
514
|
-
type: "input",
|
|
515
|
-
dataType: EDataType.TEXT,
|
|
516
|
-
name: "addressOneLongitude",
|
|
517
|
-
},
|
|
518
|
-
],
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
type: "fieldset",
|
|
522
|
-
id: "addressTwo",
|
|
523
|
-
title: "Endereço 2",
|
|
524
|
-
elements: [
|
|
525
|
-
{
|
|
526
|
-
label: "CEP",
|
|
527
|
-
type: "input",
|
|
528
|
-
dataType: EDataType.TEXT,
|
|
529
|
-
name: "addressTwoZipCode",
|
|
530
|
-
apiRequest: {
|
|
531
|
-
endpoint: "https://brasilapi.com.br/api/cep/v1/",
|
|
532
|
-
paramType: "path",
|
|
533
|
-
formFieldsFilledByApiResponse: [
|
|
534
|
-
{
|
|
535
|
-
formFieldName: "addressTwoStreet",
|
|
536
|
-
propertiesFromApiToFillFormField: ["street"],
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
formFieldName: "addressTwoDistrict",
|
|
540
|
-
propertiesFromApiToFillFormField: ["neighborhood"],
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
formFieldName: "addressTwoCity",
|
|
544
|
-
propertiesFromApiToFillFormField: ["city"],
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
formFieldName: "addressTwoState",
|
|
548
|
-
propertiesFromApiToFillFormField: ["state"],
|
|
549
|
-
},
|
|
550
|
-
],
|
|
551
|
-
},
|
|
552
|
-
validators: ["cep"],
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
label: "Logradouro",
|
|
556
|
-
type: "input",
|
|
557
|
-
dataType: EDataType.TEXT,
|
|
558
|
-
name: "addressTwoStreet",
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
label: "Bairro",
|
|
562
|
-
type: "input",
|
|
563
|
-
dataType: EDataType.TEXT,
|
|
564
|
-
name: "addressTwoDistrict",
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
label: "Número",
|
|
568
|
-
type: "input",
|
|
569
|
-
dataType: EDataType.TEXT,
|
|
570
|
-
name: "addressTwoNumber",
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
label: "Complemento",
|
|
574
|
-
type: "input",
|
|
575
|
-
dataType: EDataType.TEXT,
|
|
576
|
-
name: "addressTwoComplement",
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
label: "Cidade",
|
|
580
|
-
type: "input",
|
|
581
|
-
dataType: EDataType.TEXT,
|
|
582
|
-
name: "addressTwoCity",
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
label: "Estado",
|
|
586
|
-
type: "input",
|
|
587
|
-
dataType: EDataType.TEXT,
|
|
588
|
-
name: "addressTwoState",
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
label: "Latitude",
|
|
592
|
-
type: "input",
|
|
593
|
-
dataType: EDataType.TEXT,
|
|
594
|
-
name: "addressTwoLatitude",
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
label: "Longitude",
|
|
598
|
-
type: "input",
|
|
599
|
-
dataType: EDataType.TEXT,
|
|
600
|
-
name: "addressTwoLongitude",
|
|
601
|
-
},
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
],
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
id: "companyContactTab",
|
|
608
|
-
title: "Contatos e redes",
|
|
609
|
-
elements: [
|
|
610
|
-
{
|
|
611
|
-
label: "Telefone secundário",
|
|
612
|
-
type: "input",
|
|
613
|
-
dataType: EDataType.TEXT,
|
|
614
|
-
name: "phoneTwo",
|
|
615
|
-
validators: ["phone"],
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
label: "E-mail secundário",
|
|
619
|
-
type: "input",
|
|
620
|
-
dataType: EDataType.EMAIL,
|
|
621
|
-
name: "emailTwo",
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
label: "Site 1",
|
|
625
|
-
type: "input",
|
|
626
|
-
dataType: EDataType.TEXT,
|
|
627
|
-
name: "siteOne",
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
label: "Site 2",
|
|
631
|
-
type: "input",
|
|
632
|
-
dataType: EDataType.TEXT,
|
|
633
|
-
name: "siteTwo",
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
label: "Linkedin",
|
|
637
|
-
type: "input",
|
|
638
|
-
dataType: EDataType.TEXT,
|
|
639
|
-
name: "linkedin",
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
label: "Instagram",
|
|
643
|
-
type: "input",
|
|
644
|
-
dataType: EDataType.TEXT,
|
|
645
|
-
name: "instagram",
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
label: "Facebook",
|
|
649
|
-
type: "input",
|
|
650
|
-
dataType: EDataType.TEXT,
|
|
651
|
-
name: "facebook",
|
|
652
|
-
},
|
|
653
|
-
],
|
|
654
|
-
},
|
|
655
|
-
],
|
|
656
|
-
},
|
|
657
|
-
],
|
|
658
|
-
};
|