mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
b03e358a12
* 👕 Enable `consistent-type-imports` for nodes-base
* 👕 Apply to nodes-base
* ⏪ Undo unrelated changes
* 🚚 Move to `.eslintrc.js` in nodes-base
* ⏪ Revert "Enable `consistent-type-imports` for nodes-base"
This reverts commit 529ad72b05
.
* 👕 Fix severity
50 lines
872 B
TypeScript
50 lines
872 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const jobOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
description: 'Choose an operation',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['job'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get job details',
|
|
action: 'Get a job',
|
|
},
|
|
{
|
|
name: 'Report',
|
|
value: 'report',
|
|
description: 'Get job report',
|
|
action: 'Get a job report',
|
|
},
|
|
],
|
|
default: 'get',
|
|
},
|
|
];
|
|
|
|
export const jobFields: INodeProperties[] = [
|
|
{
|
|
displayName: 'Job ID',
|
|
name: 'jobId',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['job'],
|
|
operation: ['get', 'report'],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'ID of the job',
|
|
},
|
|
];
|