mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 10:04:08 -08:00
59 lines
950 B
TypeScript
59 lines
950 B
TypeScript
import * as create from './create';
|
|
import * as get from './get';
|
|
import * as getAll from './getAll';
|
|
import * as update from './update';
|
|
|
|
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export {
|
|
create,
|
|
get,
|
|
getAll,
|
|
update
|
|
};
|
|
|
|
export const descriptions: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'employee',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create an employee',
|
|
},
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get an employee',
|
|
},
|
|
{
|
|
name: 'Get All',
|
|
value: 'getAll',
|
|
description: 'Get all employees',
|
|
},
|
|
{
|
|
name: 'Update',
|
|
value: 'update',
|
|
description: 'Update an employee',
|
|
},
|
|
],
|
|
default: 'create',
|
|
description: '',
|
|
},
|
|
...create.description,
|
|
...get.description,
|
|
...getAll.description,
|
|
...update.description,
|
|
];
|