description:'Handle Affinity events via webhooks',
defaults:{
name:'Affinity Trigger',
color:'#3343df',
},
inputs:[],
outputs:['main'],
credentials:[
{
name:'affinityApi',
required: true,
},
],
webhooks:[
{
name:'default',
httpMethod:'POST',
responseMode:'onReceived',
path:'webhook',
},
],
properties:[
{
displayName:'Events',
name:'events',
type:'multiOptions',
options:[
{
name:'file.created',
value:'file.deleted',
},
{
name:'file.created',
value:'file.deleted',
},
{
name:'field_value.created',
value:'field_value.created',
},
{
name:'field_value.updated',
value:'field_value.updated',
},
{
name:'field_value.deleted',
value:'field_value.deleted',
},
{
name:'field.created',
value:'field.created',
},
{
name:'field.updated',
value:'field.updated',
},
{
name:'field.deleted',
value:'field.deleted',
},
{
name:'list.created',
value:'list.created',
},
{
name:'list.updated',
value:'list.updated',
},
{
name:'list.deleted',
value:'list.deleted',
},
{
name:'list_entry.created',
value:'list_entry.created',
},
{
name:'list_entry.updated',
value:'list_entry.updated',
},
{
name:'list_entry.deleted',
value:'list_entry.deleted',
},
{
name:'note.created',
value:'note.created',
},
{
name:'note.updated',
value:'note.updated',
},
{
name:'note.deleted',
value:'note.deleted',
},
{
name:'organization.created',
value:'organization.created',
},
{
name:'organization.updated',
value:'organization.updated',
},
{
name:'organization.deleted',
value:'organization.deleted',
},
{
name:'opportunity.created',
value:'opportunity.created',
},
{
name:'opportunity.updated',
value:'opportunity.updated',
},
{
name:'opportunity.deleted',
value:'organization.deleted',
},
{
name:'person.created',
value:'person.created',
},
{
name:'person.updated',
value:'person.updated',
},
{
name:'person.deleted',
value:'person.deleted',
},
],
default:[],
required: true,
description:'Webhook events that will be enabled for that endpoint.',
},
{
displayName:'Resolve Data',
name:'resolveData',
type:'boolean',
default:true,
description:'By default does the webhook-data only contain the ID of the object.<br />If this option gets activated it will resolve the data automatically.',