pull:初次提交
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import { NodeConnectionTypes, type INodeTypeDescription } from 'n8n-workflow';
|
||||
|
||||
import * as companyReport from './companyReport';
|
||||
import * as employee from './employee';
|
||||
import * as employeeDocument from './employeeDocument';
|
||||
import * as file from './file';
|
||||
|
||||
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: [NodeConnectionTypes.Main],
|
||||
name: 'bambooHr',
|
||||
outputs: [NodeConnectionTypes.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,
|
||||
};
|
||||
Reference in New Issue
Block a user