n8n/packages/nodes-base/nodes/Reddit/ListingDescription.ts
2021-01-17 15:01:18 -03:00

59 lines
835 B
TypeScript

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[];