mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Improvements
This commit is contained in:
parent
833001a9e4
commit
b3a8587106
|
@ -6,7 +6,7 @@ import {
|
|||
|
||||
export class ConvertKitApi implements ICredentialType {
|
||||
name = 'convertKitApi';
|
||||
displayName = 'ConvertKit Api';
|
||||
displayName = 'ConvertKit API';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'API Secret',
|
||||
|
|
|
@ -297,6 +297,8 @@ export class ConvertKitTrigger implements INodeType {
|
|||
},
|
||||
};
|
||||
|
||||
console.log(event);
|
||||
|
||||
if (event === 'subscriber.form_subscribe') {
|
||||
//@ts-ignore
|
||||
body.event['form_id'] = this.getNodeParameter('formId', 0);
|
||||
|
@ -317,7 +319,7 @@ export class ConvertKitTrigger implements INodeType {
|
|||
body.event['product_id'] = this.getNodeParameter('productId', 0);
|
||||
}
|
||||
|
||||
if (event === 'subscriber.tag_add' || event === 'subscriber.tag_remove"') {
|
||||
if (event === 'subscriber.tag_add' || event === 'subscriber.tag_remove') {
|
||||
//@ts-ignore
|
||||
body.event['tag_id'] = this.getNodeParameter('tagId', 0);
|
||||
}
|
||||
|
|
|
@ -37,24 +37,6 @@ export const formOperations = [
|
|||
] as INodeProperties[];
|
||||
|
||||
export const formFields = [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'form',
|
||||
],
|
||||
operation: [
|
||||
'addSubscriber',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: `The subscriber's email address.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Form ID',
|
||||
name: 'id',
|
||||
|
@ -77,6 +59,24 @@ export const formFields = [
|
|||
default: '',
|
||||
description: 'Form ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'form',
|
||||
],
|
||||
operation: [
|
||||
'addSubscriber',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: `The subscriber's email address.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
name: 'additionalFields',
|
||||
|
|
|
@ -37,24 +37,6 @@ export const sequenceOperations = [
|
|||
] as INodeProperties[];
|
||||
|
||||
export const sequenceFields = [
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'sequence',
|
||||
],
|
||||
operation: [
|
||||
'addSubscriber',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: `The subscriber's email address.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Sequence ID',
|
||||
name: 'id',
|
||||
|
@ -77,6 +59,24 @@ export const sequenceFields = [
|
|||
default: '',
|
||||
description: 'Sequence ID.',
|
||||
},
|
||||
{
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'sequence',
|
||||
],
|
||||
operation: [
|
||||
'addSubscriber',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: `The subscriber's email address.`,
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
|
|
Loading…
Reference in a new issue