* 🔨 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>
69 lines
1.4 KiB
TypeScript
69 lines
1.4 KiB
TypeScript
import { EmployeeDocumentProperties } from '../../Interfaces';
|
|
|
|
export const employeeDocumentUploadDescription: EmployeeDocumentProperties = [
|
|
{
|
|
displayName: 'Employee ID',
|
|
name: 'employeeId',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['upload'],
|
|
resource: ['employeeDocument'],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'ID of the employee',
|
|
},
|
|
{
|
|
displayName: 'Employee Document Category ID',
|
|
name: 'categoryId',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['upload'],
|
|
resource: ['employeeDocument'],
|
|
},
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Input Data Field Name',
|
|
name: 'binaryPropertyName',
|
|
type: 'string',
|
|
default: 'data',
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['upload'],
|
|
resource: ['employeeDocument'],
|
|
},
|
|
},
|
|
required: true,
|
|
description:
|
|
'The name of the input field containing the binary file data to be uploaded. Supported file types: PNG, JPEG.',
|
|
},
|
|
{
|
|
displayName: 'Options',
|
|
name: 'options',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
operation: ['upload'],
|
|
resource: ['employeeDocument'],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'Share with Employee',
|
|
name: 'share',
|
|
type: 'boolean',
|
|
default: true,
|
|
description: 'Whether this file is shared or not',
|
|
},
|
|
],
|
|
},
|
|
];
|