2022-08-17 08:50:24 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2021-09-18 13:45:57 -07:00
|
|
|
|
|
|
|
export const warninglistOperations: INodeProperties[] = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['warninglist'],
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
noDataExpression: true,
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get a warninglist',
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Get All',
|
|
|
|
value: 'getAll',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get all warninglists',
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const warninglistFields: INodeProperties[] = [
|
|
|
|
// ----------------------------------------
|
|
|
|
// warninglist: get
|
|
|
|
// ----------------------------------------
|
|
|
|
{
|
|
|
|
displayName: 'Warninglist ID',
|
|
|
|
name: 'warninglistId',
|
|
|
|
description: 'Numeric ID of the warninglist',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['warninglist'],
|
|
|
|
operation: ['get'],
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
// warninglist: getAll
|
|
|
|
// ----------------------------------------
|
|
|
|
{
|
|
|
|
displayName: 'Return All',
|
|
|
|
name: 'returnAll',
|
|
|
|
type: 'boolean',
|
|
|
|
default: false,
|
|
|
|
description: 'Whether to return all results or only up to a given limit',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['warninglist'],
|
|
|
|
operation: ['getAll'],
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Limit',
|
|
|
|
name: 'limit',
|
|
|
|
type: 'number',
|
|
|
|
default: 50,
|
|
|
|
description: 'Max number of results to return',
|
|
|
|
typeOptions: {
|
|
|
|
minValue: 1,
|
|
|
|
},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['warninglist'],
|
|
|
|
operation: ['getAll'],
|
|
|
|
returnAll: [false],
|
2021-09-18 13:45:57 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|