n8n/packages/nodes-base/nodes/Cortex/JobDescription.ts
Iván Ovejero b03e358a12
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 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
2023-01-27 12:22:44 +01:00

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',
},
];