mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
* ✏️ Alphabetize rules * 🔖 Update version * ⚡ Update lintfix command * ⚡ Run baseline lintfix * 📦 Update package-lock.json * 👕 Apply `node-param-description-untrimmed` (#3200) * Removing unneeded backticks (#3249) * 👕 Apply node-param-description-wrong-for-return-all (#3253) * 👕 Apply node-param-description-missing-limit (#3252) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-excess-final-period (#3250) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-unencoded-angle-brackets (#3256) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-url-missing-protocol (#3258) * 👕 Apply `node-param-description-miscased-id` (#3254) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-limit (#3257) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261) * 👕 Apply rule * ⚡ Restore lintfix script * ⚡ Restore lintfix script Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
133 lines
2.2 KiB
TypeScript
133 lines
2.2 KiB
TypeScript
import {
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export const profileOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'profile',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
},
|
|
],
|
|
default: 'get',
|
|
description: 'Operation to perform',
|
|
},
|
|
];
|
|
|
|
|
|
export const profileFields: INodeProperties[] = [
|
|
{
|
|
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: 'Saved',
|
|
value: 'saved',
|
|
description: 'Return the saved posts for the user',
|
|
},
|
|
{
|
|
name: 'Trophies',
|
|
value: 'trophies',
|
|
description: 'Return the trophies of the logged-in user',
|
|
},
|
|
],
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'profile',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Return All',
|
|
name: 'returnAll',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Whether to return all results or only up to a given limit',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'profile',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
details: [
|
|
'saved',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Limit',
|
|
name: 'limit',
|
|
type: 'number',
|
|
default: 100,
|
|
description: 'Max number of results to return',
|
|
typeOptions: {
|
|
minValue: 1,
|
|
maxValue: 100,
|
|
},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'profile',
|
|
],
|
|
operation: [
|
|
'get',
|
|
],
|
|
details: [
|
|
'saved',
|
|
],
|
|
returnAll: [
|
|
false,
|
|
],
|
|
},
|
|
},
|
|
},
|
|
];
|