n8n/packages/nodes-base/nodes/Reddit/ListingDescription.ts

59 lines
835 B
TypeScript
Raw Normal View History

2021-01-17 10:01:18 -08:00
import {
INodeProperties,
} from 'n8n-workflow';
export const listingOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
default: 'get',
description: 'Operation to perform',
options: [
{
name: 'Get',
value: 'get',
},
],
displayOptions: {
show: {
resource: [
'listing',
],
},
},
},
] as INodeProperties[];
export const listingFields = [
{
displayName: 'Type',
name: 'type',
type: 'options',
required: true,
default: 'trending',
description: 'Type of listing to retrieve',
options: [
{
name: 'Trending',
value: 'trending',
},
{
name: 'Best',
value: 'best',
},
],
displayOptions: {
show: {
resource: [
'listing',
],
operation: [
'get',
],
},
},
},
] as INodeProperties[];