n8n/packages/nodes-base/nodes/BambooHr/v1/actions/versionDescription.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base

* 👕 Apply to nodes-base

*  Undo unrelated changes

* 🚚 Move to `.eslintrc.js` in nodes-base

*  Revert "Enable `consistent-type-imports` for nodes-base"

This reverts commit 529ad72b05.

* 👕 Fix severity
2023-01-27 12:22:44 +01:00

62 lines
1.4 KiB
TypeScript

/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import type { INodeTypeDescription } from 'n8n-workflow';
import * as file from './file';
import * as employee from './employee';
import * as employeeDocument from './employeeDocument';
import * as companyReport from './companyReport';
export const versionDescription: INodeTypeDescription = {
credentials: [
{
name: 'bambooHrApi',
required: true,
testedBy: 'bambooHrApiCredentialTest',
},
],
defaults: {
name: 'BambooHR',
},
description: 'Consume BambooHR API',
displayName: 'BambooHR',
group: ['transform'],
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
icon: 'file:bambooHr.png',
inputs: ['main'],
name: 'bambooHr',
outputs: ['main'],
properties: [
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Company Report',
value: 'companyReport',
},
{
name: 'Employee',
value: 'employee',
},
{
name: 'Employee Document',
value: 'employeeDocument',
},
{
name: 'File',
value: 'file',
},
],
default: 'employee',
},
...employee.descriptions,
...employeeDocument.descriptions,
...file.descriptions,
...companyReport.descriptions,
],
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
version: 1,
};