n8n-nodes-imobzi 0.2.2 → 0.3.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.
Files changed (41) hide show
  1. package/dist/nodes/Imobzi/Imobzi.node.js +410 -160
  2. package/dist/nodes/Imobzi/Imobzi.node.js.map +1 -1
  3. package/dist/package.json +2 -11
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +2 -11
  6. package/dist/nodes/ImobziAgenda/ImobziAgenda.node.d.ts +0 -5
  7. package/dist/nodes/ImobziAgenda/ImobziAgenda.node.js +0 -117
  8. package/dist/nodes/ImobziAgenda/ImobziAgenda.node.js.map +0 -1
  9. package/dist/nodes/ImobziAgenda/ImobziAgenda.node.json +0 -14
  10. package/dist/nodes/ImobziCamposPersonalizados/ImobziCamposPersonalizados.node.d.ts +0 -5
  11. package/dist/nodes/ImobziCamposPersonalizados/ImobziCamposPersonalizados.node.js +0 -109
  12. package/dist/nodes/ImobziCamposPersonalizados/ImobziCamposPersonalizados.node.js.map +0 -1
  13. package/dist/nodes/ImobziCamposPersonalizados/ImobziCamposPersonalizados.node.json +0 -14
  14. package/dist/nodes/ImobziContratos/ImobziContratos.node.d.ts +0 -5
  15. package/dist/nodes/ImobziContratos/ImobziContratos.node.js +0 -117
  16. package/dist/nodes/ImobziContratos/ImobziContratos.node.js.map +0 -1
  17. package/dist/nodes/ImobziContratos/ImobziContratos.node.json +0 -14
  18. package/dist/nodes/ImobziDocumentos/ImobziDocumentos.node.d.ts +0 -5
  19. package/dist/nodes/ImobziDocumentos/ImobziDocumentos.node.js +0 -108
  20. package/dist/nodes/ImobziDocumentos/ImobziDocumentos.node.js.map +0 -1
  21. package/dist/nodes/ImobziDocumentos/ImobziDocumentos.node.json +0 -14
  22. package/dist/nodes/ImobziFinanceiro/ImobziFinanceiro.node.d.ts +0 -5
  23. package/dist/nodes/ImobziFinanceiro/ImobziFinanceiro.node.js +0 -118
  24. package/dist/nodes/ImobziFinanceiro/ImobziFinanceiro.node.js.map +0 -1
  25. package/dist/nodes/ImobziFinanceiro/ImobziFinanceiro.node.json +0 -14
  26. package/dist/nodes/ImobziIntegracoes/ImobziIntegracoes.node.d.ts +0 -5
  27. package/dist/nodes/ImobziIntegracoes/ImobziIntegracoes.node.js +0 -107
  28. package/dist/nodes/ImobziIntegracoes/ImobziIntegracoes.node.js.map +0 -1
  29. package/dist/nodes/ImobziIntegracoes/ImobziIntegracoes.node.json +0 -14
  30. package/dist/nodes/ImobziLocacoes/ImobziLocacoes.node.d.ts +0 -5
  31. package/dist/nodes/ImobziLocacoes/ImobziLocacoes.node.js +0 -116
  32. package/dist/nodes/ImobziLocacoes/ImobziLocacoes.node.js.map +0 -1
  33. package/dist/nodes/ImobziLocacoes/ImobziLocacoes.node.json +0 -14
  34. package/dist/nodes/ImobziTarefas/ImobziTarefas.node.d.ts +0 -5
  35. package/dist/nodes/ImobziTarefas/ImobziTarefas.node.js +0 -117
  36. package/dist/nodes/ImobziTarefas/ImobziTarefas.node.js.map +0 -1
  37. package/dist/nodes/ImobziTarefas/ImobziTarefas.node.json +0 -14
  38. package/dist/nodes/ImobziUsuarios/ImobziUsuarios.node.d.ts +0 -5
  39. package/dist/nodes/ImobziUsuarios/ImobziUsuarios.node.js +0 -109
  40. package/dist/nodes/ImobziUsuarios/ImobziUsuarios.node.js.map +0 -1
  41. package/dist/nodes/ImobziUsuarios/ImobziUsuarios.node.json +0 -14
@@ -28,22 +28,19 @@ class Imobzi {
28
28
  type: 'options',
29
29
  noDataExpression: true,
30
30
  options: [
31
- {
32
- name: 'Lead',
33
- value: 'lead',
34
- },
35
- {
36
- name: 'Imóvel',
37
- value: 'property',
38
- },
39
- {
40
- name: 'Contato',
41
- value: 'contact',
42
- },
43
- {
44
- name: 'Conta',
45
- value: 'account',
46
- },
31
+ { name: 'Account', value: 'account' },
32
+ { name: 'Agenda', value: 'agenda' },
33
+ { name: 'Campo Personalizado', value: 'campoPersonalizado' },
34
+ { name: 'Contact', value: 'contact' },
35
+ { name: 'Contrato', value: 'contrato' },
36
+ { name: 'Documento', value: 'documento' },
37
+ { name: 'Financeiro', value: 'financeiro' },
38
+ { name: 'Imovel', value: 'property' },
39
+ { name: 'Integracao', value: 'integracao' },
40
+ { name: 'Lead', value: 'lead' },
41
+ { name: 'Locacao', value: 'locacao' },
42
+ { name: 'Tarefa', value: 'tarefa' },
43
+ { name: 'Usuario', value: 'usuario' },
47
44
  ],
48
45
  default: 'lead',
49
46
  },
@@ -52,134 +49,47 @@ class Imobzi {
52
49
  name: 'operation',
53
50
  type: 'options',
54
51
  noDataExpression: true,
55
- displayOptions: {
56
- show: {
57
- resource: ['lead'],
58
- },
59
- },
52
+ displayOptions: { show: { resource: ['contrato'] } },
60
53
  options: [
61
- {
62
- name: 'Create',
63
- value: 'create',
64
- description: 'Criar um novo lead',
65
- action: 'Create a new lead',
66
- },
67
- {
68
- name: 'Get',
69
- value: 'get',
70
- description: 'Obter um lead específico',
71
- action: 'Get a specific lead',
72
- },
73
- {
74
- name: 'Get Many',
75
- value: 'getAll',
76
- description: 'Listar todos os leads',
77
- action: 'Get many leads',
78
- },
79
- {
80
- name: 'Update',
81
- value: 'update',
82
- description: 'Atualizar um lead',
83
- action: 'Update a lead',
84
- },
54
+ { name: 'Create', value: 'create', description: 'Create new contract', action: 'Create new contract' },
55
+ { name: 'Get', value: 'get', description: 'Get contract by ID', action: 'Get contract by ID' },
56
+ { name: 'Get Many', value: 'getAll', description: 'Get many contracts', action: 'Get many contracts' },
57
+ { name: 'Update', value: 'update', description: 'Update contract', action: 'Update contract' },
85
58
  ],
86
59
  default: 'create',
87
60
  },
88
61
  {
89
- displayName: 'Operation',
90
- name: 'operation',
91
- type: 'options',
92
- noDataExpression: true,
93
- displayOptions: {
94
- show: {
95
- resource: ['property'],
96
- },
97
- },
98
- options: [
99
- {
100
- name: 'Create',
101
- value: 'create',
102
- description: 'Criar um novo imóvel',
103
- action: 'Create a new property',
104
- },
105
- {
106
- name: 'Get',
107
- value: 'get',
108
- description: 'Obter um imóvel específico',
109
- action: 'Get a specific property',
110
- },
111
- {
112
- name: 'Get Many',
113
- value: 'getAll',
114
- description: 'Listar todos os imóveis',
115
- action: 'Get many properties',
116
- },
117
- {
118
- name: 'Update',
119
- value: 'update',
120
- description: 'Atualizar um imóvel',
121
- action: 'Update a property',
122
- },
123
- ],
124
- default: 'create',
62
+ displayName: 'Contract ID',
63
+ name: 'contratoId',
64
+ type: 'string',
65
+ default: '',
66
+ required: true,
67
+ displayOptions: { show: { resource: ['contrato'], operation: ['get', 'update'] } },
125
68
  },
126
69
  {
127
- displayName: 'Operation',
128
- name: 'operation',
129
- type: 'options',
130
- noDataExpression: true,
131
- displayOptions: {
132
- show: {
133
- resource: ['contact'],
134
- },
135
- },
136
- options: [
137
- {
138
- name: 'Create',
139
- value: 'create',
140
- description: 'Criar um novo contato',
141
- action: 'Create a new contact',
142
- },
143
- {
144
- name: 'Get',
145
- value: 'get',
146
- description: 'Obter um contato específico',
147
- action: 'Get a specific contact',
148
- },
149
- {
150
- name: 'Get Many',
151
- value: 'getAll',
152
- description: 'Listar todos os contatos',
153
- action: 'Get many contacts',
154
- },
155
- {
156
- name: 'Update',
157
- value: 'update',
158
- description: 'Atualizar um contato',
159
- action: 'Update a contact',
160
- },
161
- ],
162
- default: 'create',
70
+ displayName: 'Client Name',
71
+ name: 'cliente',
72
+ type: 'string',
73
+ default: '',
74
+ required: true,
75
+ displayOptions: { show: { resource: ['contrato'], operation: ['create'] } },
76
+ description: 'Client name for the contract',
163
77
  },
164
78
  {
165
- displayName: 'Operation',
166
- name: 'operation',
167
- type: 'options',
168
- noDataExpression: true,
169
- displayOptions: {
170
- show: {
171
- resource: ['account'],
172
- },
173
- },
174
- options: [
175
- {
176
- name: 'Get',
177
- value: 'get',
178
- description: 'Obter informações da conta',
179
- action: 'Get account information',
180
- },
181
- ],
182
- default: 'get',
79
+ displayName: 'Value',
80
+ name: 'valor',
81
+ type: 'number',
82
+ default: 0,
83
+ displayOptions: { show: { resource: ['contrato'], operation: ['create'] } },
84
+ description: 'Contract value',
85
+ },
86
+ {
87
+ displayName: 'Start Date',
88
+ name: 'dataInicio',
89
+ type: 'string',
90
+ default: '',
91
+ displayOptions: { show: { resource: ['contrato'], operation: ['create'] } },
92
+ description: 'Contract start date',
183
93
  },
184
94
  {
185
95
  displayName: 'Lead ID',
@@ -193,10 +103,9 @@ class Imobzi {
193
103
  operation: ['get', 'update'],
194
104
  },
195
105
  },
196
- description: 'ID do lead',
197
106
  },
198
107
  {
199
- displayName: 'Nome',
108
+ displayName: 'Name',
200
109
  name: 'name',
201
110
  type: 'string',
202
111
  default: '',
@@ -207,7 +116,7 @@ class Imobzi {
207
116
  operation: ['create'],
208
117
  },
209
118
  },
210
- description: 'Nome do lead',
119
+ description: 'Lead name',
211
120
  },
212
121
  {
213
122
  displayName: 'Email',
@@ -221,10 +130,10 @@ class Imobzi {
221
130
  operation: ['create'],
222
131
  },
223
132
  },
224
- description: 'Email do lead',
133
+ description: 'Lead email',
225
134
  },
226
135
  {
227
- displayName: 'Telefone',
136
+ displayName: 'Phone',
228
137
  name: 'phone',
229
138
  type: 'string',
230
139
  default: '',
@@ -234,10 +143,10 @@ class Imobzi {
234
143
  operation: ['create'],
235
144
  },
236
145
  },
237
- description: 'Telefone do lead',
146
+ description: 'Lead phone',
238
147
  },
239
148
  {
240
- displayName: 'Imóvel ID',
149
+ displayName: 'Property ID',
241
150
  name: 'propertyId',
242
151
  type: 'string',
243
152
  default: '',
@@ -248,10 +157,9 @@ class Imobzi {
248
157
  operation: ['get', 'update'],
249
158
  },
250
159
  },
251
- description: 'ID do imóvel',
252
160
  },
253
161
  {
254
- displayName: 'Título',
162
+ displayName: 'Title',
255
163
  name: 'title',
256
164
  type: 'string',
257
165
  default: '',
@@ -262,27 +170,27 @@ class Imobzi {
262
170
  operation: ['create'],
263
171
  },
264
172
  },
265
- description: 'Título do imóvel',
173
+ description: 'Property title',
266
174
  },
267
175
  {
268
- displayName: 'Tipo',
176
+ displayName: 'Type',
269
177
  name: 'type',
270
178
  type: 'options',
271
179
  options: [
272
180
  {
273
- name: 'Casa',
181
+ name: 'House',
274
182
  value: 'house',
275
183
  },
276
184
  {
277
- name: 'Apartamento',
185
+ name: 'Apartment',
278
186
  value: 'apartment',
279
187
  },
280
188
  {
281
- name: 'Comercial',
189
+ name: 'Commercial',
282
190
  value: 'commercial',
283
191
  },
284
192
  {
285
- name: 'Terreno',
193
+ name: 'Land',
286
194
  value: 'land',
287
195
  },
288
196
  ],
@@ -293,10 +201,10 @@ class Imobzi {
293
201
  operation: ['create'],
294
202
  },
295
203
  },
296
- description: 'Tipo do imóvel',
204
+ description: 'Property type',
297
205
  },
298
206
  {
299
- displayName: 'Preço',
207
+ displayName: 'Price',
300
208
  name: 'price',
301
209
  type: 'number',
302
210
  default: 0,
@@ -306,10 +214,10 @@ class Imobzi {
306
214
  operation: ['create'],
307
215
  },
308
216
  },
309
- description: 'Preço do imóvel',
217
+ description: 'Property price',
310
218
  },
311
219
  {
312
- displayName: 'Contato ID',
220
+ displayName: 'Contact ID',
313
221
  name: 'contactId',
314
222
  type: 'string',
315
223
  default: '',
@@ -320,10 +228,9 @@ class Imobzi {
320
228
  operation: ['get', 'update'],
321
229
  },
322
230
  },
323
- description: 'ID do contato',
324
231
  },
325
232
  {
326
- displayName: 'Nome',
233
+ displayName: 'Name',
327
234
  name: 'contactName',
328
235
  type: 'string',
329
236
  default: '',
@@ -334,7 +241,7 @@ class Imobzi {
334
241
  operation: ['create'],
335
242
  },
336
243
  },
337
- description: 'Nome do contato',
244
+ description: 'Contact name',
338
245
  },
339
246
  {
340
247
  displayName: 'Email',
@@ -347,10 +254,10 @@ class Imobzi {
347
254
  operation: ['create'],
348
255
  },
349
256
  },
350
- description: 'Email do contato',
257
+ description: 'Contact email',
351
258
  },
352
259
  {
353
- displayName: 'Telefone',
260
+ displayName: 'Phone',
354
261
  name: 'contactPhone',
355
262
  type: 'string',
356
263
  default: '',
@@ -360,7 +267,350 @@ class Imobzi {
360
267
  operation: ['create'],
361
268
  },
362
269
  },
363
- description: 'Telefone do contato',
270
+ description: 'Contact phone',
271
+ },
272
+ {
273
+ displayName: 'Operation',
274
+ name: 'operation',
275
+ type: 'options',
276
+ noDataExpression: true,
277
+ displayOptions: { show: { resource: ['financeiro'] } },
278
+ options: [
279
+ { name: 'Create', value: 'create', description: 'Create new entry', action: 'Create new entry' },
280
+ { name: 'Get', value: 'get', description: 'Get entry by ID', action: 'Get entry by ID' },
281
+ { name: 'Get Many', value: 'getAll', description: 'Get many entries', action: 'Get many entries' },
282
+ { name: 'Update', value: 'update', description: 'Update entry', action: 'Update entry' },
283
+ ],
284
+ default: 'create',
285
+ },
286
+ {
287
+ displayName: 'Entry ID',
288
+ name: 'lancamentoId',
289
+ type: 'string',
290
+ default: '',
291
+ required: true,
292
+ displayOptions: { show: { resource: ['financeiro'], operation: ['get', 'update'] } },
293
+ description: 'Financial entry ID',
294
+ },
295
+ {
296
+ displayName: 'Description',
297
+ name: 'descricao',
298
+ type: 'string',
299
+ default: '',
300
+ required: true,
301
+ displayOptions: { show: { resource: ['financeiro'], operation: ['create'] } },
302
+ description: 'Entry description',
303
+ },
304
+ {
305
+ displayName: 'Value',
306
+ name: 'valor',
307
+ type: 'number',
308
+ default: 0,
309
+ displayOptions: { show: { resource: ['financeiro'], operation: ['create'] } },
310
+ description: 'Entry value',
311
+ },
312
+ {
313
+ displayName: 'Date',
314
+ name: 'data',
315
+ type: 'string',
316
+ default: '',
317
+ displayOptions: { show: { resource: ['financeiro'], operation: ['create'] } },
318
+ description: 'Entry date',
319
+ },
320
+ {
321
+ displayName: 'Operation',
322
+ name: 'operation',
323
+ type: 'options',
324
+ noDataExpression: true,
325
+ displayOptions: { show: { resource: ['locacao'] } },
326
+ options: [
327
+ { name: 'Create', value: 'create', description: 'Create new rental', action: 'Create new rental' },
328
+ { name: 'Get', value: 'get', description: 'Get rental by ID', action: 'Get rental by ID' },
329
+ { name: 'Get Many', value: 'getAll', description: 'Get many rentals', action: 'Get many rentals' },
330
+ { name: 'Update', value: 'update', description: 'Update rental', action: 'Update rental' },
331
+ ],
332
+ default: 'create',
333
+ },
334
+ {
335
+ displayName: 'Rental ID',
336
+ name: 'locacaoId',
337
+ type: 'string',
338
+ default: '',
339
+ required: true,
340
+ displayOptions: { show: { resource: ['locacao'], operation: ['get', 'update'] } },
341
+ },
342
+ {
343
+ displayName: 'Tenant Name',
344
+ name: 'inquilino',
345
+ type: 'string',
346
+ default: '',
347
+ required: true,
348
+ displayOptions: { show: { resource: ['locacao'], operation: ['create'] } },
349
+ },
350
+ {
351
+ displayName: 'Property',
352
+ name: 'imovel',
353
+ type: 'string',
354
+ default: '',
355
+ displayOptions: { show: { resource: ['locacao'], operation: ['create'] } },
356
+ description: 'Rented property ID',
357
+ },
358
+ {
359
+ displayName: 'Start Date',
360
+ name: 'dataInicio',
361
+ type: 'string',
362
+ default: '',
363
+ displayOptions: { show: { resource: ['locacao'], operation: ['create'] } },
364
+ description: 'Rental start date',
365
+ },
366
+ {
367
+ displayName: 'Operation',
368
+ name: 'operation',
369
+ type: 'options',
370
+ noDataExpression: true,
371
+ displayOptions: { show: { resource: ['documento'] } },
372
+ options: [
373
+ { name: 'Create', value: 'create', description: 'Upload document', action: 'Upload document' },
374
+ { name: 'Get', value: 'get', description: 'Get document by ID', action: 'Get document by ID' },
375
+ { name: 'Get Many', value: 'getAll', description: 'Get many documents', action: 'Get many documents' },
376
+ { name: 'Update', value: 'update', description: 'Update document', action: 'Update document' },
377
+ ],
378
+ default: 'create',
379
+ },
380
+ {
381
+ displayName: 'Document ID',
382
+ name: 'documentoId',
383
+ type: 'string',
384
+ default: '',
385
+ required: true,
386
+ displayOptions: { show: { resource: ['documento'], operation: ['get', 'update'] } },
387
+ },
388
+ {
389
+ displayName: 'File Name',
390
+ name: 'nomeArquivo',
391
+ type: 'string',
392
+ default: '',
393
+ required: true,
394
+ displayOptions: { show: { resource: ['documento'], operation: ['create'] } },
395
+ description: 'Name of the file to upload',
396
+ },
397
+ {
398
+ displayName: 'Content (Base64)',
399
+ name: 'conteudo',
400
+ type: 'string',
401
+ default: '',
402
+ displayOptions: { show: { resource: ['documento'], operation: ['create'] } },
403
+ description: 'File content in base64',
404
+ },
405
+ {
406
+ displayName: 'Operation',
407
+ name: 'operation',
408
+ type: 'options',
409
+ noDataExpression: true,
410
+ displayOptions: { show: { resource: ['tarefa'] } },
411
+ options: [
412
+ { name: 'Create', value: 'create', description: 'Create new task', action: 'Create new task' },
413
+ { name: 'Get', value: 'get', description: 'Get task by ID', action: 'Get task by ID' },
414
+ { name: 'Get Many', value: 'getAll', description: 'Get many tasks', action: 'Get many tasks' },
415
+ { name: 'Update', value: 'update', description: 'Update task', action: 'Update task' },
416
+ ],
417
+ default: 'create',
418
+ },
419
+ {
420
+ displayName: 'Task ID',
421
+ name: 'tarefaId',
422
+ type: 'string',
423
+ default: '',
424
+ required: true,
425
+ displayOptions: { show: { resource: ['tarefa'], operation: ['get', 'update'] } },
426
+ },
427
+ {
428
+ displayName: 'Title',
429
+ name: 'titulo',
430
+ type: 'string',
431
+ default: '',
432
+ required: true,
433
+ displayOptions: { show: { resource: ['tarefa'], operation: ['create'] } },
434
+ description: 'Task title',
435
+ },
436
+ {
437
+ displayName: 'Description',
438
+ name: 'descricao',
439
+ type: 'string',
440
+ default: '',
441
+ displayOptions: { show: { resource: ['tarefa'], operation: ['create'] } },
442
+ description: 'Task description',
443
+ },
444
+ {
445
+ displayName: 'Due Date',
446
+ name: 'dataVencimento',
447
+ type: 'string',
448
+ default: '',
449
+ displayOptions: { show: { resource: ['tarefa'], operation: ['create'] } },
450
+ description: 'Task due date',
451
+ },
452
+ {
453
+ displayName: 'Operation',
454
+ name: 'operation',
455
+ type: 'options',
456
+ noDataExpression: true,
457
+ displayOptions: { show: { resource: ['agenda'] } },
458
+ options: [
459
+ { name: 'Create', value: 'create', description: 'Create new event', action: 'Create new event' },
460
+ { name: 'Get', value: 'get', description: 'Get event by ID', action: 'Get event by ID' },
461
+ { name: 'Get Many', value: 'getAll', description: 'Get many events', action: 'Get many events' },
462
+ { name: 'Update', value: 'update', description: 'Update event', action: 'Update event' },
463
+ ],
464
+ default: 'create',
465
+ },
466
+ {
467
+ displayName: 'Event ID',
468
+ name: 'eventoId',
469
+ type: 'string',
470
+ default: '',
471
+ required: true,
472
+ displayOptions: { show: { resource: ['agenda'], operation: ['get', 'update'] } },
473
+ },
474
+ {
475
+ displayName: 'Title',
476
+ name: 'titulo',
477
+ type: 'string',
478
+ default: '',
479
+ required: true,
480
+ displayOptions: { show: { resource: ['agenda'], operation: ['create'] } },
481
+ description: 'Event title',
482
+ },
483
+ {
484
+ displayName: 'Date',
485
+ name: 'data',
486
+ type: 'string',
487
+ default: '',
488
+ displayOptions: { show: { resource: ['agenda'], operation: ['create'] } },
489
+ description: 'Event date',
490
+ },
491
+ {
492
+ displayName: 'Description',
493
+ name: 'descricao',
494
+ type: 'string',
495
+ default: '',
496
+ displayOptions: { show: { resource: ['agenda'], operation: ['create'] } },
497
+ description: 'Event description',
498
+ },
499
+ {
500
+ displayName: 'Operation',
501
+ name: 'operation',
502
+ type: 'options',
503
+ noDataExpression: true,
504
+ displayOptions: { show: { resource: ['integracao'] } },
505
+ options: [
506
+ { name: 'Create', value: 'create', description: 'Create new integration', action: 'Create new integration' },
507
+ { name: 'Get', value: 'get', description: 'Get integration by ID', action: 'Get integration by ID' },
508
+ { name: 'Get Many', value: 'getAll', description: 'Get many integrations', action: 'Get many integrations' },
509
+ { name: 'Update', value: 'update', description: 'Update integration', action: 'Update integration' },
510
+ ],
511
+ default: 'create',
512
+ },
513
+ {
514
+ displayName: 'Integration ID',
515
+ name: 'integracaoId',
516
+ type: 'string',
517
+ default: '',
518
+ required: true,
519
+ displayOptions: { show: { resource: ['integracao'], operation: ['get', 'update'] } },
520
+ },
521
+ {
522
+ displayName: 'Integration Name',
523
+ name: 'nome',
524
+ type: 'string',
525
+ default: '',
526
+ required: true,
527
+ displayOptions: { show: { resource: ['integracao'], operation: ['create'] } },
528
+ },
529
+ {
530
+ displayName: 'Type',
531
+ name: 'tipo',
532
+ type: 'string',
533
+ default: '',
534
+ displayOptions: { show: { resource: ['integracao'], operation: ['create'] } },
535
+ description: 'Integration type',
536
+ },
537
+ {
538
+ displayName: 'Operation',
539
+ name: 'operation',
540
+ type: 'options',
541
+ noDataExpression: true,
542
+ displayOptions: { show: { resource: ['usuario'] } },
543
+ options: [
544
+ { name: 'Create', value: 'create', description: 'Create new user/agent', action: 'Create new user agent' },
545
+ { name: 'Get', value: 'get', description: 'Get user/agent by ID', action: 'Get user agent by id' },
546
+ { name: 'Get Many', value: 'getAll', description: 'Get many users/agents', action: 'Get many users agents' },
547
+ { name: 'Update', value: 'update', description: 'Update user/agent', action: 'Update user agent' },
548
+ ],
549
+ default: 'create',
550
+ },
551
+ {
552
+ displayName: 'User/Agent ID',
553
+ name: 'usuarioId',
554
+ type: 'string',
555
+ default: '',
556
+ required: true,
557
+ displayOptions: { show: { resource: ['usuario'], operation: ['get', 'update'] } },
558
+ },
559
+ {
560
+ displayName: 'Name',
561
+ name: 'nome',
562
+ type: 'string',
563
+ default: '',
564
+ required: true,
565
+ displayOptions: { show: { resource: ['usuario'], operation: ['create'] } },
566
+ description: 'User/Agent name',
567
+ },
568
+ {
569
+ displayName: 'Email',
570
+ name: 'email',
571
+ type: 'string',
572
+ placeholder: 'name@email.com',
573
+ default: '',
574
+ displayOptions: { show: { resource: ['usuario'], operation: ['create'] } },
575
+ description: 'User/Agent email',
576
+ },
577
+ {
578
+ displayName: 'Operation',
579
+ name: 'operation',
580
+ type: 'options',
581
+ noDataExpression: true,
582
+ displayOptions: { show: { resource: ['campoPersonalizado'] } },
583
+ options: [
584
+ { name: 'Create', value: 'create', description: 'Create new custom field', action: 'Create new custom field' },
585
+ { name: 'Get', value: 'get', description: 'Get custom field by ID', action: 'Get custom field by ID' },
586
+ { name: 'Get Many', value: 'getAll', description: 'Get many custom fields', action: 'Get many custom fields' },
587
+ { name: 'Update', value: 'update', description: 'Update custom field', action: 'Update custom field' },
588
+ ],
589
+ default: 'create',
590
+ },
591
+ {
592
+ displayName: 'Custom Field ID',
593
+ name: 'campoId',
594
+ type: 'string',
595
+ default: '',
596
+ required: true,
597
+ displayOptions: { show: { resource: ['campoPersonalizado'], operation: ['get', 'update'] } },
598
+ },
599
+ {
600
+ displayName: 'Custom Field Name',
601
+ name: 'nome',
602
+ type: 'string',
603
+ default: '',
604
+ required: true,
605
+ displayOptions: { show: { resource: ['campoPersonalizado'], operation: ['create'] } },
606
+ },
607
+ {
608
+ displayName: 'Type',
609
+ name: 'tipo',
610
+ type: 'string',
611
+ default: '',
612
+ displayOptions: { show: { resource: ['campoPersonalizado'], operation: ['create'] } },
613
+ description: 'Custom field type',
364
614
  },
365
615
  ],
366
616
  };