2022-08-17 08:50:24 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2020-04-23 21:38:19 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const userOperations: INodeProperties[] = [
|
2020-04-23 21:38:19 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-04-23 21:38:19 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['user'],
|
2020-04-23 21:38:19 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Get',
|
|
|
|
value: 'get',
|
|
|
|
description: 'Get a user',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Get a user',
|
2020-04-23 21:38:19 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'get',
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2020-04-23 21:38:19 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const userFields: INodeProperties[] = [
|
2022-08-17 08:50:24 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
/* user:get */
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-04-23 21:38:19 -07:00
|
|
|
{
|
|
|
|
displayName: 'User ID',
|
|
|
|
name: 'userId',
|
|
|
|
type: 'string',
|
|
|
|
required: true,
|
|
|
|
default: '',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['user'],
|
|
|
|
operation: ['get'],
|
2020-04-23 21:38:19 -07:00
|
|
|
},
|
|
|
|
},
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Unique identifier for the user',
|
2020-04-23 21:38:19 -07:00
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|