mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
58 lines
931 B
TypeScript
58 lines
931 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',
|
||
|
},
|
||
|
...create.description,
|
||
|
...get.description,
|
||
|
...getAll.description,
|
||
|
...update.description,
|
||
|
];
|