n8n-nodes-mailchimp-cmdesign 0.1.1 → 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.
- package/dist/credentials/{MailchimpApi.credentials.d.ts → MailchimpCmApi.credentials.d.ts} +1 -1
- package/dist/credentials/{MailchimpApi.credentials.js → MailchimpCmApi.credentials.js} +3 -3
- package/dist/nodes/MailchimpCmNode/MailchimpCmNode.node.js +31 -0
- package/dist/nodes/MailchimpCmNode/subscriberInputs.d.ts +3 -0
- package/dist/nodes/MailchimpCmNode/subscriberInputs.js +61 -0
- package/package.json +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
class
|
3
|
+
exports.MailchimpCmApi = void 0;
|
4
|
+
class MailchimpCmApi {
|
5
5
|
constructor() {
|
6
6
|
this.name = 'mailchimpCmApi';
|
7
7
|
this.displayName = 'Mailchimp CM API';
|
@@ -30,4 +30,4 @@ class MailchimpApi {
|
|
30
30
|
];
|
31
31
|
}
|
32
32
|
}
|
33
|
-
exports.
|
33
|
+
exports.MailchimpCmApi = MailchimpCmApi;
|
@@ -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,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.
|
3
|
+
"version": "0.1.3",
|
4
4
|
"description": "n8n node to interact with Mailchimp API",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"n8n": {
|
16
16
|
"n8nNodesApiVersion": 1,
|
17
17
|
"credentials": [
|
18
|
-
"dist/credentials/
|
18
|
+
"dist/credentials/MailchimpCmApi.credentials.js"
|
19
19
|
],
|
20
20
|
"nodes": [
|
21
21
|
"dist/nodes/MailchimpCmNode/MailchimpCmNode.node.js"
|