Files
n8n/packages/nodes-base/nodes/BambooHr/v1/actions/employee/create/description.ts
T
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

76 lines
1.5 KiB
TypeScript

import { createEmployeeSharedDescription } from './shareDescription';
import type { EmployeeProperties } from '../../Interfaces';
export const employeeCreateDescription: EmployeeProperties = [
{
displayName: 'Synced with Trax Payroll',
name: 'synced',
type: 'boolean',
required: true,
displayOptions: {
show: {
operation: ['create'],
resource: ['employee'],
},
},
default: false,
description:
'Whether the employee to create was added to a pay schedule synced with Trax Payroll',
},
{
displayName: 'First Name',
name: 'firstName',
type: 'string',
required: true,
displayOptions: {
show: {
operation: ['create'],
resource: ['employee'],
},
},
default: '',
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
required: true,
displayOptions: {
show: {
operation: ['create'],
resource: ['employee'],
},
},
default: '',
},
...(createEmployeeSharedDescription(true) as EmployeeProperties),
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['create'],
resource: ['employee'],
},
},
options: [
...createEmployeeSharedDescription(false),
{
displayName: 'Work Email',
name: 'workEmail',
type: 'string',
default: '',
},
{
displayName: 'Work Phone',
name: 'workPhone',
type: 'string',
default: '',
},
],
},
];