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';
|
|
|
|
|
|
|
|
export {
|
|
|
|
getAll,
|
|
|
|
create,
|
|
|
|
del as delete,
|
|
|
|
update,
|
|
|
|
get,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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: {
|
|
|
|
resource: [
|
|
|
|
'contact',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create new contact',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Delete',
|
|
|
|
value: 'delete',
|
|
|
|
description: 'Delete contact',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Retrieve contact',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
|
|
|
description: 'Retrieve all contacts',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Update',
|
|
|
|
value: 'update',
|
|
|
|
description: 'Update contact',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'getAll',
|
|
|
|
},
|
|
|
|
...getAll.description,
|
|
|
|
...create.description,
|
|
|
|
...get.description,
|
|
|
|
...update.description,
|
|
|
|
...del.description,
|
|
|
|
] as INodeProperties[];
|