2021-03-10 14:51:05 -08:00
import {
INodeProperties ,
} from 'n8n-workflow' ;
2021-12-03 00:44:16 -08:00
export const profileOperations : INodeProperties [ ] = [
2021-03-10 14:51:05 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2021-03-10 14:51:05 -08:00
default : 'get' ,
options : [
{
name : 'Get' ,
value : 'get' ,
} ,
{
name : 'Get All' ,
value : 'getAll' ,
} ,
] ,
displayOptions : {
show : {
resource : [
'profile' ,
] ,
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2021-03-10 14:51:05 -08:00
2021-12-03 00:44:16 -08:00
export const profileFields : INodeProperties [ ] = [
2021-03-10 14:51:05 -08:00
// ----------------------------------
// profile: get
// ----------------------------------
{
2022-06-03 10:23:49 -07:00
displayName : 'Profile Name or ID' ,
2021-03-10 14:51:05 -08:00
name : 'profileId' ,
type : 'options' ,
required : true ,
default : [ ] ,
typeOptions : {
loadOptionsMethod : 'getProfiles' ,
} ,
2022-06-03 10:23:49 -07:00
description : 'ID of the user profile to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.' ,
2021-03-10 14:51:05 -08:00
displayOptions : {
show : {
resource : [
'profile' ,
] ,
operation : [
'get' ,
] ,
} ,
} ,
} ,
2021-12-03 00:44:16 -08:00
] ;