mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-31 15:37:26 -08:00
59 lines
835 B
TypeScript
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[];
|