2021-03-11 04:36:55 -08:00
import {
INodeProperties ,
} from 'n8n-workflow' ;
2021-12-03 00:44:16 -08:00
export const contactJourneyOperations : INodeProperties [ ] = [
2021-03-11 04:36:55 -08:00
{
displayName : 'Operation' ,
name : 'operation' ,
type : 'options' ,
2022-05-20 14:47:24 -07:00
noDataExpression : true ,
2021-03-11 04:36:55 -08:00
displayOptions : {
show : {
resource : [
'contactJourney' ,
] ,
} ,
} ,
options : [
{
name : 'Add' ,
value : 'add' ,
description : 'Add contact to list' ,
} ,
] ,
default : 'add' ,
} ,
2021-12-03 00:44:16 -08:00
] ;
2021-03-11 04:36:55 -08:00
2021-12-03 00:44:16 -08:00
export const contactJourneyFields : INodeProperties [ ] = [
2021-03-11 04:36:55 -08:00
/* -------------------------------------------------------------------------- */
/* contactJourney:add */
/* -------------------------------------------------------------------------- */
{
2022-06-03 10:23:49 -07:00
displayName : 'Trigger Name or ID' ,
2021-03-11 04:36:55 -08:00
name : 'triggerId' ,
required : true ,
typeOptions : {
loadOptionsMethod : 'getTriggers' ,
} ,
type : 'options' ,
displayOptions : {
show : {
operation : [
'add' ,
] ,
resource : [
'contactJourney' ,
] ,
} ,
} ,
default : '' ,
2022-06-03 10:23:49 -07:00
description : 'List ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.' ,
2021-03-11 04:36:55 -08:00
} ,
{
displayName : 'Contact ID' ,
name : 'contactId' ,
required : true ,
type : 'string' ,
displayOptions : {
show : {
operation : [
'add' ,
] ,
resource : [
'contactJourney' ,
] ,
} ,
} ,
default : '' ,
2022-05-06 14:01:25 -07:00
description : 'Can be ID or email' ,
2021-03-11 04:36:55 -08:00
} ,
2021-12-03 00:44:16 -08:00
] ;