Files
Automata/packages/nodes-base/nodes/BambooHr/v1/actions/employee/update/description.ts
Michael Kret 0ecbb4a19d refactor: Format nodes-base package (A-F) (#3800)
* 🔨 prettier formated nodes - A

* 🔨 prettier formated nodes - B

*  prettier formated nodes - C

*  prettier formated nodes - D

*  prettier formated nodes - E-F

* 🎨 Adjust nodes-base formatting command (#3805)

* Format additional files in nodes A-F (#3811)

*  fixes

* 🎨 Add Mindee to ignored dirs

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2022-08-01 22:47:55 +02:00

63 lines
1.2 KiB
TypeScript

import { EmployeeProperties } from '../../Interfaces';
import { updateEmployeeSharedDescription } from './sharedDescription';
export const employeeUpdateDescription: EmployeeProperties = [
{
displayName: 'Employee ID',
name: 'employeeId',
type: 'string',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['employee'],
},
},
default: '',
},
{
displayName: 'Synced with Trax Payroll',
name: 'synced',
type: 'boolean',
required: true,
displayOptions: {
show: {
operation: ['update'],
resource: ['employee'],
},
},
default: false,
description:
'Whether the employee to create was added to a pay schedule synced with Trax Payroll',
},
...updateEmployeeSharedDescription(true),
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: ['update'],
resource: ['employee'],
},
},
options: [
...updateEmployeeSharedDescription(false),
{
displayName: 'Work Email',
name: 'workEmail',
type: 'string',
default: '',
},
{
displayName: 'Work Phone',
name: 'workPhone',
type: 'string',
default: '',
},
],
},
];