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

81 lines
1.4 KiB
TypeScript
Raw Normal View History

import {
INodeProperties,
} from 'n8n-workflow';
export const myAccountOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'myAccount',
],
},
},
options: [
{
name: 'Get',
value: 'get',
},
],
default: 'get',
description: 'Operation to perform',
},
] as INodeProperties[];
export const myAccountFields = [
{
displayName: 'Details',
name: 'details',
type: 'options',
required: true,
default: 'identity',
description: 'Details of my account to retrieve',
options: [
{
name: 'Identity',
value: 'identity',
description: 'Return the identity of the logged-in user',
},
{
name: 'Blocked users',
value: 'blockedUsers',
description: 'Return the blocked users of the logged-in user',
},
{
name: 'Friends',
value: 'friends',
description: 'Return the friends of the logged-in user',
},
{
name: 'Karma',
value: 'karma',
description: 'Return the subreddit karma for the logged-in user',
},
{
name: 'preferences',
value: 'prefs',
description: 'Return the settings preferences of the logged-in user',
},
{
name: 'Trophies',
value: 'trophies',
description: 'Return the trophies of the logged-in user',
},
],
displayOptions: {
show: {
resource: [
'myAccount',
],
operation: [
'get',
],
},
},
},
2021-01-17 12:18:17 -08:00
] as INodeProperties[];