mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Add user resource description stub
This commit is contained in:
parent
9534766c65
commit
4f9f4e2193
|
@ -18,28 +18,42 @@ export const userOperations = [
|
||||||
{
|
{
|
||||||
name: 'Get Current User',
|
name: 'Get Current User',
|
||||||
value: 'getCurrentUser',
|
value: 'getCurrentUser',
|
||||||
description: 'Returns the user object of the requester\'s account.',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get Current User Guilds',
|
name: 'Get Current User Guilds',
|
||||||
value: 'getCurrentUserGuilds',
|
value: 'getCurrentUserGuilds',
|
||||||
description: 'Returns a list of partial guild objects the current user is a member of.',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Get User Connections',
|
name: 'Get',
|
||||||
value: 'getUserConnections',
|
value: 'get',
|
||||||
description: 'Returns a list of connection objects.',
|
},
|
||||||
|
{
|
||||||
|
name: 'Update Current User',
|
||||||
|
value: 'updateCurrentUser',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'getCurrentUser',
|
default: 'getCurrentUser',
|
||||||
description: 'The operation to perform.',
|
description: 'Operation to perform',
|
||||||
},
|
},
|
||||||
] as INodeProperties[];
|
] as INodeProperties[];
|
||||||
|
|
||||||
export const userFields = [
|
export const userFields = [
|
||||||
|
{
|
||||||
/* -------------------------------------------------------------------------- */
|
displayName: 'userId',
|
||||||
/* user:getUser */
|
name: 'userId',
|
||||||
/* -------------------------------------------------------------------------- */
|
description: '',
|
||||||
|
type: 'string',
|
||||||
] as INodeProperties[];
|
required: true,
|
||||||
|
default: '',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
resource: [
|
||||||
|
'user',
|
||||||
|
],
|
||||||
|
operation: [
|
||||||
|
'get',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
] as INodeProperties[];
|
Loading…
Reference in a new issue