n8n-nodes-mailchimp-cmdesign 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.MailchimpCmNode = void 0;
7
+ const subscriberInputs_1 = __importDefault(require("./subscriberInputs"));
4
8
  class MailchimpCmNode {
5
9
  constructor() {
6
10
  this.description = {
@@ -48,6 +52,33 @@ class MailchimpCmNode {
48
52
  required: true,
49
53
  description: 'The Mailchimp List ID',
50
54
  },
55
+ {
56
+ displayName: 'Email',
57
+ name: 'email',
58
+ type: 'string',
59
+ displayOptions: {
60
+ show: {
61
+ action: ['createUpdateSubscriber'],
62
+ },
63
+ },
64
+ default: '',
65
+ placeholder: 'Subscriber Email',
66
+ required: true,
67
+ },
68
+ {
69
+ displayName: 'Create if Not Exists',
70
+ name: 'createIfNotExists',
71
+ type: 'boolean',
72
+ displayOptions: {
73
+ show: {
74
+ action: [
75
+ 'createUpdateSubscriber'
76
+ ],
77
+ },
78
+ },
79
+ default: false,
80
+ },
81
+ ...subscriberInputs_1.default
51
82
  ],
52
83
  };
53
84
  this.methods = {
@@ -0,0 +1,3 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ declare const subscriberInputs: INodeProperties[];
3
+ export default subscriberInputs;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const subscriberInputs = [
4
+ {
5
+ displayName: 'Field Mapping',
6
+ name: 'subscriberFieldMapping',
7
+ type: 'fixedCollection',
8
+ displayOptions: {
9
+ show: {
10
+ action: [
11
+ 'createSubscriber',
12
+ 'createUpdateSubscriber',
13
+ 'updateSubscriber',
14
+ 'createSubscribersInBulk',
15
+ ],
16
+ },
17
+ },
18
+ typeOptions: {
19
+ multipleValues: true,
20
+ },
21
+ placeholder: 'Add Field Mapping',
22
+ default: {},
23
+ options: [
24
+ {
25
+ name: 'subscriberFields',
26
+ displayName: 'Fields',
27
+ values: [
28
+ {
29
+ displayName: 'Incoming Data Key',
30
+ name: 'subscriberIncomingKey',
31
+ type: 'string',
32
+ default: '',
33
+ },
34
+ {
35
+ displayName: 'MailAir Field Name or ID',
36
+ name: 'mailAirField',
37
+ type: 'options',
38
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
39
+ typeOptions: {
40
+ loadOptionsMethod: 'getListFieldsWithTag',
41
+ loadOptionsDependsOn: ['listId'],
42
+ },
43
+ default: '',
44
+ },
45
+ ],
46
+ },
47
+ ],
48
+ },
49
+ {
50
+ displayName: 'Subscribers JSON Array',
51
+ name: 'subscribers',
52
+ type: 'json',
53
+ default: '[]',
54
+ displayOptions: {
55
+ show: {
56
+ action: ['createSubscribersInBulk'],
57
+ },
58
+ },
59
+ },
60
+ ];
61
+ exports.default = subscriberInputs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-mailchimp-cmdesign",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "n8n node to interact with Mailchimp API",
5
5
  "main": "index.js",
6
6
  "scripts": {