mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
import { updateEmployeeSharedDescription } from './sharedDescription';
|
|
import type { EmployeeProperties } from '../../Interfaces';
|
|
|
|
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) as EmployeeProperties),
|
|
{
|
|
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: '',
|
|
},
|
|
],
|
|
},
|
|
];
|