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