mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Fix Mailchimp Node: added missing status_if_new parameter
This commit is contained in:
parent
be2dcffc94
commit
3ccfe207d1
|
@ -35,6 +35,7 @@ interface ICreateMemberBody {
|
||||||
email_address: string;
|
email_address: string;
|
||||||
email_type?: string;
|
email_type?: string;
|
||||||
status?: Status;
|
status?: Status;
|
||||||
|
status_if_new?: Status;
|
||||||
language?: string;
|
language?: string;
|
||||||
vip?: boolean;
|
vip?: boolean;
|
||||||
location?: ILocation;
|
location?: ILocation;
|
||||||
|
@ -1127,6 +1128,35 @@ export class Mailchimp implements INodeType {
|
||||||
default: '',
|
default: '',
|
||||||
description: "Subscriber's current status",
|
description: "Subscriber's current status",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Status If New',
|
||||||
|
name: 'status_if_new',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Cleaned',
|
||||||
|
value: 'cleaned',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Pending',
|
||||||
|
value: 'pending',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Subscribed',
|
||||||
|
value: 'subscribed',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Transactional',
|
||||||
|
value: 'transactional',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Unsubscribed',
|
||||||
|
value: 'unsubscribed',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
default: '',
|
||||||
|
description: "This status is required only if the email address is not already present on the list",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Vip',
|
displayName: 'Vip',
|
||||||
name: 'vip',
|
name: 'vip',
|
||||||
|
@ -1929,6 +1959,9 @@ export class Mailchimp implements INodeType {
|
||||||
if (updateFields.ipOptIn) {
|
if (updateFields.ipOptIn) {
|
||||||
body.ip_opt = updateFields.ipOptIn as string;
|
body.ip_opt = updateFields.ipOptIn as string;
|
||||||
}
|
}
|
||||||
|
if (updateFields.status_if_new) {
|
||||||
|
body.status_if_new = updateFields.status_if_new as Status;
|
||||||
|
}
|
||||||
if (updateFields.timestampOpt) {
|
if (updateFields.timestampOpt) {
|
||||||
body.timestamp_opt = moment(updateFields.timestampOpt as string).format(
|
body.timestamp_opt = moment(updateFields.timestampOpt as string).format(
|
||||||
'YYYY-MM-DD HH:MM:SS',
|
'YYYY-MM-DD HH:MM:SS',
|
||||||
|
|
Loading…
Reference in a new issue