2022-01-07 09:19:24 -08:00
|
|
|
import * as getAll from './getAll';
|
|
|
|
import * as create from './create';
|
|
|
|
import * as get from './get';
|
|
|
|
import * as update from './update';
|
|
|
|
import * as del from './del';
|
|
|
|
|
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
|
2022-08-17 08:50:24 -07:00
|
|
|
export { getAll, create, del as delete, update, get };
|
2022-01-07 09:19:24 -08:00
|
|
|
|
|
|
|
export const descriptions = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2022-01-07 09:19:24 -08:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['contact'],
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create new contact',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create a contact',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Delete',
|
|
|
|
value: 'delete',
|
|
|
|
description: 'Delete contact',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Delete a contact',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Retrieve contact',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get a contact',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
2022-09-07 07:51:14 -07:00
|
|
|
name: 'Get Many',
|
2022-01-07 09:19:24 -08:00
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
description: 'Retrieve many contacts',
|
2022-09-08 08:10:13 -07:00
|
|
|
action: 'Get many contacts',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Update',
|
|
|
|
value: 'update',
|
|
|
|
description: 'Update contact',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Update a contact',
|
2022-01-07 09:19:24 -08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'getAll',
|
|
|
|
},
|
|
|
|
...getAll.description,
|
|
|
|
...create.description,
|
|
|
|
...get.description,
|
|
|
|
...update.description,
|
|
|
|
...del.description,
|
|
|
|
] as INodeProperties[];
|