55 lines
851 B
TypeScript
55 lines
851 B
TypeScript
import {
|
|
EmployeeProperties,
|
|
} from '../../Interfaces';
|
|
|
|
export const employeeGetDescription: EmployeeProperties = [
|
|
{
|
|
displayName: 'Employee ID',
|
|
name: 'employeeId',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'get',
|
|
],
|
|
resource: [
|
|
'employee',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
default: {},
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'get',
|
|
],
|
|
resource: [
|
|
'employee',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Fields',
|
|
name: 'fields',
|
|
type: 'multiOptions',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getEmployeeFields',
|
|
},
|
|
default: [
|
|
'all',
|
|
],
|
|
description: 'Set of fields to get from employee data',
|
|
},
|
|
],
|
|
},
|
|
];
|