2020-04-23 21:38:19 -07:00
|
|
|
import {
|
|
|
|
INodeProperties,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export const userOperations = [
|
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'user',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Get a user',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
description: 'The operation to perform.',
|
|
|
|
},
|
|
|
|
] as INodeProperties[];
|
|
|
|
|
|
|
|
export const userFields = [
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* user:get */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
|
|
|
displayName: 'User ID',
|
|
|
|
name: 'userId',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
|
|
|
resource: [
|
|
|
|
'user',
|
|
|
|
],
|
|
|
|
operation: [
|
|
|
|
'get',
|
2020-10-22 06:46:03 -07:00
|
|
|
],
|
2020-04-23 21:38:19 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
description: 'Unique identifier for the user.',
|
|
|
|
},
|
|
|
|
] as INodeProperties[];
|