2021-02-04 00:37:03 -08:00
|
|
|
import {
|
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const profileOperations: INodeProperties[] = [
|
2021-02-04 00:37:03 -08:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'profile',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
description: 'Operation to perform',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2021-02-04 00:37:03 -08:00
|
|
|
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const profileFields: INodeProperties[] = [
|
2021-02-04 00:37:03 -08:00
|
|
|
{
|
|
|
|
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: [
|
|
|
|
'profile',
|
|
|
|
],
|
|
|
|
operation: [
|
|
|
|
'get',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|