n8n-nodes-base 1.72.0 → 1.73.0
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/build.tsbuildinfo +1 -1
- package/dist/credentials/ElasticsearchApi.credentials.js +1 -1
- package/dist/credentials/ElasticsearchApi.credentials.js.map +1 -1
- package/dist/credentials/LinearOAuth2Api.credentials.js +8 -2
- package/dist/credentials/LinearOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MailerLiteApi.credentials.d.ts +3 -1
- package/dist/credentials/MailerLiteApi.credentials.js +26 -0
- package/dist/credentials/MailerLiteApi.credentials.js.map +1 -1
- package/dist/credentials/OpenAiApi.credentials.js +9 -2
- package/dist/credentials/OpenAiApi.credentials.js.map +1 -1
- package/dist/credentials/Redis.credentials.js +7 -0
- package/dist/credentials/Redis.credentials.js.map +1 -1
- package/dist/credentials/SolarWindsIpamApi.credentials.d.ts +18 -0
- package/dist/credentials/SolarWindsIpamApi.credentials.js +78 -0
- package/dist/credentials/SolarWindsIpamApi.credentials.js.map +1 -0
- package/dist/credentials/SolarWindsObservabilityApi.credentials.d.ts +18 -0
- package/dist/credentials/SolarWindsObservabilityApi.credentials.js +64 -0
- package/dist/credentials/SolarWindsObservabilityApi.credentials.js.map +1 -0
- package/dist/credentials/icons/SolarWindsIpam.svg +71 -0
- package/dist/credentials/icons/SolarWindsObservability.svg +240 -0
- package/dist/known/credentials.json +8 -0
- package/dist/methods/defined.json +2 -1
- package/dist/methods/referenced.json +1 -0
- package/dist/nodes/Affinity/GenericFunctions.js.map +1 -1
- package/dist/nodes/Automizy/GenericFunctions.js.map +1 -1
- package/dist/nodes/BambooHr/v1/transport/index.js.map +1 -1
- package/dist/nodes/Box/GenericFunctions.js.map +1 -1
- package/dist/nodes/Cisco/Webex/GenericFunctions.js.map +1 -1
- package/dist/nodes/ClickUp/GenericFunctions.js.map +1 -1
- package/dist/nodes/Coda/GenericFunctions.js.map +1 -1
- package/dist/nodes/CoinGecko/GenericFunctions.js.map +1 -1
- package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js +2 -2
- package/dist/nodes/Elastic/Elasticsearch/Elasticsearch.node.js.map +1 -1
- package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js +2 -2
- package/dist/nodes/Elastic/Elasticsearch/GenericFunctions.js.map +1 -1
- package/dist/nodes/ExecutionData/test/ExecutionData.workflow.json +112 -0
- package/dist/nodes/Facebook/FacebookGraphApi.node.js +4 -0
- package/dist/nodes/Facebook/FacebookGraphApi.node.js.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.js +1 -1
- package/dist/nodes/Files/ExtractFromFile/ExtractFromFile.node.js.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js.map +1 -1
- package/dist/nodes/Files/ExtractFromFile/test/workflow.non_utf8_encoding.json +98 -0
- package/dist/nodes/Flow/GenericFunctions.js.map +1 -1
- package/dist/nodes/Form/Form.node.d.ts +2 -1
- package/dist/nodes/Form/Form.node.js +9 -6
- package/dist/nodes/Form/Form.node.js.map +1 -1
- package/dist/nodes/Form/interfaces.d.ts +1 -0
- package/dist/nodes/Form/interfaces.js.map +1 -1
- package/dist/nodes/Form/utils.d.ts +2 -1
- package/dist/nodes/Form/utils.js +2 -1
- package/dist/nodes/Form/utils.js.map +1 -1
- package/dist/nodes/Formstack/FormstackTrigger.node.js.map +1 -1
- package/dist/nodes/Freshdesk/Freshdesk.node.js.map +1 -1
- package/dist/nodes/GetResponse/GenericFunctions.js.map +1 -1
- package/dist/nodes/Git/Git.node.js.map +1 -1
- package/dist/nodes/Github/Github.node.js +4 -4
- package/dist/nodes/Github/Github.node.js.map +1 -1
- package/dist/nodes/Google/Calendar/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/CloudNaturalLanguage/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Contacts/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Firebase/CloudFirestore/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/GSuiteAdmin/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/Gmail.node.json +1 -1
- package/dist/nodes/Google/Gmail/test/v2/drafts.workflow.json +386 -0
- package/dist/nodes/Google/Gmail/test/v2/fixtures/labels.json +14 -0
- package/dist/nodes/Google/Gmail/test/v2/fixtures/messages.json +240 -0
- package/dist/nodes/Google/Gmail/test/v2/labels.workflow.json +163 -0
- package/dist/nodes/Google/Gmail/test/v2/messages.workflow.json +1151 -0
- package/dist/nodes/Google/Gmail/test/v2/threads.workflow.json +1174 -0
- package/dist/nodes/Google/Gmail/v2/GmailV2.node.d.ts +5 -4
- package/dist/nodes/Google/Gmail/v2/GmailV2.node.js +16 -48
- package/dist/nodes/Google/Gmail/v2/GmailV2.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/v2/MessageDescription.js +2 -2
- package/dist/nodes/Google/Gmail/v2/MessageDescription.js.map +1 -1
- package/dist/nodes/Google/Gmail/v2/loadOptions.d.ts +4 -0
- package/dist/nodes/Google/Gmail/v2/loadOptions.js +50 -0
- package/dist/nodes/Google/Gmail/v2/loadOptions.js.map +1 -0
- package/dist/nodes/Google/Task/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/YouTube/GenericFunctions.js.map +1 -1
- package/dist/nodes/Gotify/GenericFunctions.js.map +1 -1
- package/dist/nodes/HelpScout/GenericFunctions.js.map +1 -1
- package/dist/nodes/HomeAssistant/HomeAssistant.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
- package/dist/nodes/Hubspot/HubspotTrigger.node.js.map +1 -1
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/InvoiceNinja/BankTransactionDescription.js +10 -0
- package/dist/nodes/InvoiceNinja/BankTransactionDescription.js.map +1 -1
- package/dist/nodes/InvoiceNinja/BankTransactionInterface.d.ts +5 -1
- package/dist/nodes/InvoiceNinja/InvoiceNinja.node.d.ts +1 -0
- package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js +27 -3
- package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js.map +1 -1
- package/dist/nodes/Keap/GenericFunctions.js.map +1 -1
- package/dist/nodes/Linear/GenericFunctions.js +17 -4
- package/dist/nodes/Linear/GenericFunctions.js.map +1 -1
- package/dist/nodes/Linear/LinearTrigger.node.js +6 -0
- package/dist/nodes/Linear/LinearTrigger.node.js.map +1 -1
- package/dist/nodes/Magento/GenericFunctions.js.map +1 -1
- package/dist/nodes/MailerLite/GenericFunctions.d.ts +2 -1
- package/dist/nodes/MailerLite/GenericFunctions.js +43 -11
- package/dist/nodes/MailerLite/GenericFunctions.js.map +1 -1
- package/dist/nodes/MailerLite/MailerLite.node.d.ts +3 -9
- package/dist/nodes/MailerLite/MailerLite.node.js +12 -132
- package/dist/nodes/MailerLite/MailerLite.node.js.map +1 -1
- package/dist/nodes/MailerLite/MailerLite.svg +33 -0
- package/dist/nodes/MailerLite/MailerLiteTrigger.node.d.ts +3 -11
- package/dist/nodes/MailerLite/MailerLiteTrigger.node.js +11 -145
- package/dist/nodes/MailerLite/MailerLiteTrigger.node.js.map +1 -1
- package/dist/nodes/MailerLite/tests/apiResponses.d.ts +237 -0
- package/dist/nodes/MailerLite/tests/apiResponses.js +414 -0
- package/dist/nodes/MailerLite/tests/apiResponses.js.map +1 -0
- package/dist/nodes/MailerLite/tests/v1/MailerLite.v1.workflow.json +460 -0
- package/dist/nodes/MailerLite/tests/v2/MailerLite.v2.workflow.json +370 -0
- package/dist/nodes/MailerLite/v1/MailerLiteTriggerV1.node.d.ts +13 -0
- package/dist/nodes/MailerLite/v1/MailerLiteTriggerV1.node.js +159 -0
- package/dist/nodes/MailerLite/v1/MailerLiteTriggerV1.node.js.map +1 -0
- package/dist/nodes/MailerLite/v1/MailerLiteV1.node.d.ts +12 -0
- package/dist/nodes/MailerLite/v1/MailerLiteV1.node.js +136 -0
- package/dist/nodes/MailerLite/v1/MailerLiteV1.node.js.map +1 -0
- package/dist/nodes/MailerLite/v1/SubscriberDescription.js.map +1 -0
- package/dist/nodes/MailerLite/v2/MailerLite.Interface.d.ts +33 -0
- package/dist/nodes/MailerLite/v2/MailerLite.Interface.js +3 -0
- package/dist/nodes/MailerLite/v2/MailerLite.Interface.js.map +1 -0
- package/dist/nodes/MailerLite/v2/MailerLiteTriggerV2.node.d.ts +13 -0
- package/dist/nodes/MailerLite/v2/MailerLiteTriggerV2.node.js +154 -0
- package/dist/nodes/MailerLite/v2/MailerLiteTriggerV2.node.js.map +1 -0
- package/dist/nodes/MailerLite/v2/MailerLiteV2.node.d.ts +12 -0
- package/dist/nodes/MailerLite/v2/MailerLiteV2.node.js +141 -0
- package/dist/nodes/MailerLite/v2/MailerLiteV2.node.js.map +1 -0
- package/dist/nodes/MailerLite/v2/SubscriberDescription.d.ts +3 -0
- package/dist/nodes/MailerLite/v2/SubscriberDescription.js +286 -0
- package/dist/nodes/MailerLite/v2/SubscriberDescription.js.map +1 -0
- package/dist/nodes/Mailgun/Mailgun.node.js.map +1 -1
- package/dist/nodes/Mandrill/Mandrill.node.js.map +1 -1
- package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
- package/dist/nodes/Mautic/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Dynamics/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/OneDrive/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/transport/index.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/GenericFunctions.js.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.js +3 -1
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
- package/dist/nodes/Notion/test/node/v2/block/append.workflow.json +535 -0
- package/dist/nodes/Notion/test/node/v2/block/getAll.workflow.json +188 -0
- package/dist/nodes/Notion/test/node/v2/database/get.workflow.json +90 -0
- package/dist/nodes/Notion/test/node/v2/database/getAll.workflow.json +99 -0
- package/dist/nodes/Notion/test/node/v2/database/search.workflow.json +265 -0
- package/dist/nodes/Notion/test/node/v2/databasePage/create.workflow.json +116 -0
- package/dist/nodes/Notion/test/node/v2/databasePage/get.workflow.json +91 -0
- package/dist/nodes/Notion/test/node/v2/databasePage/getAll.workflow.json +114 -0
- package/dist/nodes/Notion/test/node/v2/databasePage/update.workflow.json +100 -0
- package/dist/nodes/Notion/test/node/v2/page/archive.workflow.json +90 -0
- package/dist/nodes/Notion/test/node/v2/page/create.workflow.json +111 -0
- package/dist/nodes/Notion/test/node/v2/page/search.workflow.json +97 -0
- package/dist/nodes/Notion/test/node/v2/user/get.workflow.json +88 -0
- package/dist/nodes/Notion/test/node/v2/user/getAll.workflow.json +104 -0
- package/dist/nodes/Onfleet/Onfleet.js.map +1 -1
- package/dist/nodes/OpenAi/OpenAi.node.js +1 -1
- package/dist/nodes/OpenAi/OpenAi.node.js.map +1 -1
- package/dist/nodes/PhilipsHue/test/apiResponses.d.ts +115 -0
- package/dist/nodes/PhilipsHue/test/apiResponses.js +109 -0
- package/dist/nodes/PhilipsHue/test/apiResponses.js.map +1 -0
- package/dist/nodes/PhilipsHue/test/workflow.json +227 -0
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +2 -0
- package/dist/nodes/RabbitMQ/RabbitMQ.node.js.map +1 -1
- package/dist/nodes/Redis/Redis.node.js.map +1 -1
- package/dist/nodes/Redis/RedisTrigger.node.js.map +1 -1
- package/dist/nodes/Redis/types.d.ts +10 -0
- package/dist/nodes/Redis/types.js +3 -0
- package/dist/nodes/Redis/types.js.map +1 -0
- package/dist/nodes/Redis/utils.d.ts +5 -6
- package/dist/nodes/Redis/utils.js +3 -3
- package/dist/nodes/Redis/utils.js.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.js.map +1 -1
- package/dist/nodes/Slack/Slack.node.json +1 -0
- package/dist/nodes/Slack/V2/FileDescription.js +2 -2
- package/dist/nodes/Slack/V2/FileDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js +2 -2
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/V2/SlackV2.node.js +9 -0
- package/dist/nodes/Slack/V2/SlackV2.node.js.map +1 -1
- package/dist/nodes/Slack/test/v2/node/channel/archive.workflow.json +89 -0
- package/dist/nodes/Slack/test/v2/node/channel/create.workflow.json +119 -0
- package/dist/nodes/Slack/test/v2/node/channel/get.workflow.json +127 -0
- package/dist/nodes/Slack/test/v2/node/channel/getAll.workflow.json +181 -0
- package/dist/nodes/Slack/test/v2/node/channel/history.workflow.json +254 -0
- package/dist/nodes/Slack/test/v2/node/file/upload.workflow.json +147 -0
- package/dist/nodes/Slack/test/v2/node/message/delete.workflow.json +92 -0
- package/dist/nodes/Slack/test/v2/node/message/getPermalink.workflow.json +91 -0
- package/dist/nodes/Slack/test/v2/node/message/post.workflow.json +143 -0
- package/dist/nodes/Slack/test/v2/node/message/search.workflow.json +262 -0
- package/dist/nodes/Slack/test/v2/node/message/update.workflow.json +142 -0
- package/dist/nodes/Slack/test/v2/node/user/updateProfile.workflow.json +106 -0
- package/dist/nodes/UProc/ToolDescription.js +1 -3
- package/dist/nodes/UProc/ToolDescription.js.map +1 -1
- package/dist/types/credentials.json +6 -4
- package/dist/types/nodes.json +14 -12
- package/dist/utils/sendAndWait/email-templates.js +1 -1
- package/dist/utils/sendAndWait/email-templates.js.map +1 -1
- package/dist/utils/sendAndWait/utils.d.ts +20 -2
- package/dist/utils/sendAndWait/utils.js +197 -11
- package/dist/utils/sendAndWait/utils.js.map +1 -1
- package/package.json +6 -4
- package/dist/nodes/MailerLite/SubscriberDescription.js.map +0 -1
- package/dist/nodes/MailerLite/mailerLite.png +0 -0
- /package/dist/nodes/MailerLite/{SubscriberDescription.d.ts → v1/SubscriberDescription.d.ts} +0 -0
- /package/dist/nodes/MailerLite/{SubscriberDescription.js → v1/SubscriberDescription.js} +0 -0
|
@@ -1,145 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MailerLite = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const MailerLiteV1_node_1 = require("./v1/MailerLiteV1.node");
|
|
6
|
+
const MailerLiteV2_node_1 = require("./v2/MailerLiteV2.node");
|
|
7
|
+
class MailerLite extends n8n_workflow_1.VersionedNodeType {
|
|
7
8
|
constructor() {
|
|
8
|
-
|
|
9
|
+
const baseDescription = {
|
|
9
10
|
displayName: 'MailerLite',
|
|
10
11
|
name: 'mailerLite',
|
|
11
|
-
icon: 'file:
|
|
12
|
+
icon: 'file:MailerLite.svg',
|
|
12
13
|
group: ['input'],
|
|
13
|
-
version: 1,
|
|
14
14
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
15
|
-
description: 'Consume
|
|
16
|
-
|
|
17
|
-
name: 'MailerLite',
|
|
18
|
-
},
|
|
19
|
-
inputs: ["main"],
|
|
20
|
-
outputs: ["main"],
|
|
21
|
-
credentials: [
|
|
22
|
-
{
|
|
23
|
-
name: 'mailerLiteApi',
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
properties: [
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Resource',
|
|
30
|
-
name: 'resource',
|
|
31
|
-
type: 'options',
|
|
32
|
-
noDataExpression: true,
|
|
33
|
-
options: [
|
|
34
|
-
{
|
|
35
|
-
name: 'Subscriber',
|
|
36
|
-
value: 'subscriber',
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
default: 'subscriber',
|
|
40
|
-
},
|
|
41
|
-
...SubscriberDescription_1.subscriberOperations,
|
|
42
|
-
...SubscriberDescription_1.subscriberFields,
|
|
43
|
-
],
|
|
15
|
+
description: 'Consume MailerLite API',
|
|
16
|
+
defaultVersion: 2,
|
|
44
17
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const returnData = [];
|
|
49
|
-
const fields = await GenericFunctions_1.mailerliteApiRequest.call(this, 'GET', '/fields');
|
|
50
|
-
for (const field of fields) {
|
|
51
|
-
returnData.push({
|
|
52
|
-
name: field.key,
|
|
53
|
-
value: field.key,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return returnData;
|
|
57
|
-
},
|
|
58
|
-
},
|
|
18
|
+
const nodeVersions = {
|
|
19
|
+
1: new MailerLiteV1_node_1.MailerLiteV1(baseDescription),
|
|
20
|
+
2: new MailerLiteV2_node_1.MailerLiteV2(baseDescription),
|
|
59
21
|
};
|
|
60
|
-
|
|
61
|
-
async execute() {
|
|
62
|
-
const items = this.getInputData();
|
|
63
|
-
const returnData = [];
|
|
64
|
-
const length = items.length;
|
|
65
|
-
const qs = {};
|
|
66
|
-
let responseData;
|
|
67
|
-
const resource = this.getNodeParameter('resource', 0);
|
|
68
|
-
const operation = this.getNodeParameter('operation', 0);
|
|
69
|
-
for (let i = 0; i < length; i++) {
|
|
70
|
-
try {
|
|
71
|
-
if (resource === 'subscriber') {
|
|
72
|
-
if (operation === 'create') {
|
|
73
|
-
const email = this.getNodeParameter('email', i);
|
|
74
|
-
const additionalFields = this.getNodeParameter('additionalFields', i);
|
|
75
|
-
const body = {
|
|
76
|
-
email,
|
|
77
|
-
fields: [],
|
|
78
|
-
};
|
|
79
|
-
Object.assign(body, additionalFields);
|
|
80
|
-
if (additionalFields.customFieldsUi) {
|
|
81
|
-
const customFieldsValues = additionalFields.customFieldsUi
|
|
82
|
-
.customFieldsValues;
|
|
83
|
-
if (customFieldsValues) {
|
|
84
|
-
const fields = {};
|
|
85
|
-
for (const customFieldValue of customFieldsValues) {
|
|
86
|
-
fields[customFieldValue.fieldId] = customFieldValue.value;
|
|
87
|
-
}
|
|
88
|
-
body.fields = fields;
|
|
89
|
-
delete body.customFieldsUi;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
responseData = await GenericFunctions_1.mailerliteApiRequest.call(this, 'POST', '/subscribers', body);
|
|
93
|
-
}
|
|
94
|
-
if (operation === 'get') {
|
|
95
|
-
const subscriberId = this.getNodeParameter('subscriberId', i);
|
|
96
|
-
responseData = await GenericFunctions_1.mailerliteApiRequest.call(this, 'GET', `/subscribers/${subscriberId}`);
|
|
97
|
-
}
|
|
98
|
-
if (operation === 'getAll') {
|
|
99
|
-
const returnAll = this.getNodeParameter('returnAll', i);
|
|
100
|
-
const filters = this.getNodeParameter('filters', i);
|
|
101
|
-
Object.assign(qs, filters);
|
|
102
|
-
if (returnAll) {
|
|
103
|
-
responseData = await GenericFunctions_1.mailerliteApiRequestAllItems.call(this, 'GET', '/subscribers', {}, qs);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
qs.limit = this.getNodeParameter('limit', i);
|
|
107
|
-
responseData = await GenericFunctions_1.mailerliteApiRequest.call(this, 'GET', '/subscribers', {}, qs);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (operation === 'update') {
|
|
111
|
-
const subscriberId = this.getNodeParameter('subscriberId', i);
|
|
112
|
-
const updateFields = this.getNodeParameter('updateFields', i);
|
|
113
|
-
const body = {};
|
|
114
|
-
Object.assign(body, updateFields);
|
|
115
|
-
if (updateFields.customFieldsUi) {
|
|
116
|
-
const customFieldsValues = updateFields.customFieldsUi
|
|
117
|
-
.customFieldsValues;
|
|
118
|
-
if (customFieldsValues) {
|
|
119
|
-
const fields = {};
|
|
120
|
-
for (const customFieldValue of customFieldsValues) {
|
|
121
|
-
fields[customFieldValue.fieldId] = customFieldValue.value;
|
|
122
|
-
}
|
|
123
|
-
body.fields = fields;
|
|
124
|
-
delete body.customFieldsUi;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
responseData = await GenericFunctions_1.mailerliteApiRequest.call(this, 'PUT', `/subscribers/${subscriberId}`, body);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
catch (error) {
|
|
132
|
-
if (this.continueOnFail()) {
|
|
133
|
-
const executionErrorData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ error: error.message }), { itemData: { item: i } });
|
|
134
|
-
returnData.push(...executionErrorData);
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
throw error;
|
|
138
|
-
}
|
|
139
|
-
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
140
|
-
returnData.push(...executionData);
|
|
141
|
-
}
|
|
142
|
-
return [returnData];
|
|
22
|
+
super(nodeVersions, baseDescription);
|
|
143
23
|
}
|
|
144
24
|
}
|
|
145
25
|
exports.MailerLite = MailerLite;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailerLite.node.js","sourceRoot":"","sources":["../../../nodes/MailerLite/MailerLite.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MailerLite.node.js","sourceRoot":"","sources":["../../../nodes/MailerLite/MailerLite.node.ts"],"names":[],"mappings":";;;AACA,+CAAiD;AAEjD,8DAAsD;AACtD,8DAAsD;AAEtD,MAAa,UAAW,SAAQ,gCAAiB;IAChD;QACC,MAAM,eAAe,GAA6B;YACjD,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,wBAAwB;YACrC,cAAc,EAAE,CAAC;SACjB,CAAC;QAEF,MAAM,YAAY,GAAuC;YACxD,CAAC,EAAE,IAAI,gCAAY,CAAC,eAAe,CAAC;YACpC,CAAC,EAAE,IAAI,gCAAY,CAAC,eAAe,CAAC;SACpC,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IACtC,CAAC;CACD;AAnBD,gCAmBC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<svg version="1.1" id="Layer_1" xmlns:x="ns_extend;" xmlns:i="ns_ai;" xmlns:graph="ns_graphs;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 62.8 50.2" style="enable-background:new 0 0 62.8 50.2;" xml:space="preserve">
|
|
2
|
+
<style type="text/css">
|
|
3
|
+
.st0{fill:#09C269;}
|
|
4
|
+
.st1{fill:#FFFFFF;}
|
|
5
|
+
</style>
|
|
6
|
+
<metadata>
|
|
7
|
+
<sfw xmlns="ns_sfw;">
|
|
8
|
+
<slices>
|
|
9
|
+
</slices>
|
|
10
|
+
<sliceSourceBounds bottomLeftOrigin="true" height="50.2" width="62.8" x="236.9" y="-225.3">
|
|
11
|
+
</sliceSourceBounds>
|
|
12
|
+
</sfw>
|
|
13
|
+
</metadata>
|
|
14
|
+
<g id="mailerlite-light">
|
|
15
|
+
<g>
|
|
16
|
+
<g id="lite" transform="translate(137.000000, 0.000000)">
|
|
17
|
+
<path id="Shape-path" class="st0" d="M-81.2,0h-48.9c-3.8,0-6.9,3.1-6.9,6.8v22.8v4.5v16.2l9.5-9.3h46.4c3.8,0,6.9-3.1,6.9-6.8
|
|
18
|
+
V6.8C-74.3,3.1-77.4,0-81.2,0z">
|
|
19
|
+
</path>
|
|
20
|
+
<path id="Shape-path-3" class="st1" d="M-90.2,15.8c5.2,0,7.6,4.1,7.6,8c0,1-0.8,1.8-1.8,1.8H-94c0.5,2.3,2.1,3.6,4.7,3.6
|
|
21
|
+
c1.9,0,2.9-0.4,3.9-0.9c0.2-0.1,0.5-0.2,0.7-0.2c0.9,0,1.7,0.7,1.7,1.6c0,0.6-0.4,1.1-1,1.5c-1.3,0.7-2.7,1.4-5.5,1.4
|
|
22
|
+
c-5.2,0-8.3-3.1-8.3-8.4C-97.9,18.1-93.7,15.8-90.2,15.8z M-105.5,13.2c0.6,0,1,0.5,1,1v1.9h2.9c0.9,0,1.7,0.7,1.7,1.6
|
|
23
|
+
c0,0.9-0.7,1.6-1.7,1.6h-2.9V28c0,1.2,0.6,1.3,1.5,1.3c0.5,0,0.8-0.1,1.1-0.1c0.2,0,0.5-0.1,0.7-0.1c0.7,0,1.6,0.6,1.6,1.5
|
|
24
|
+
c0,0.6-0.4,1.1-1,1.4c-0.9,0.4-1.7,0.6-2.7,0.6c-3.2,0-4.9-1.5-4.9-4.4v-8.8h-1.7c-0.6,0-1-0.5-1-1c0-0.3,0.1-0.6,0.4-0.9l4-4
|
|
25
|
+
C-106.3,13.5-106,13.2-105.5,13.2z M-124.2,9.4c1,0,1.8,0.8,1.8,1.8v19.4c0,1-0.8,1.8-1.8,1.8s-1.8-0.8-1.8-1.8V11.2
|
|
26
|
+
C-126,10.2-125.2,9.4-124.2,9.4z M-115.6,16c1,0,1.8,0.8,1.8,1.8v12.8c0,1-0.8,1.8-1.8,1.8c-1,0-1.8-0.8-1.8-1.8V17.8
|
|
27
|
+
C-117.4,16.8-116.6,16-115.6,16z M-90.1,19.1c-1.7,0-3.6,1-3.9,3.5h7.9C-86.6,20.1-88.4,19.1-90.1,19.1z M-115.5,9.9
|
|
28
|
+
c1.1,0,2,0.9,2,2V12c0,1.1-0.9,2-2,2h-0.2c-1.1,0-2-0.9-2-2v-0.1c0-1.1,0.9-2,2-2H-115.5z">
|
|
29
|
+
</path>
|
|
30
|
+
</g>
|
|
31
|
+
</g>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare class MailerLiteTrigger
|
|
3
|
-
|
|
4
|
-
webhookMethods: {
|
|
5
|
-
default: {
|
|
6
|
-
checkExists(this: IHookFunctions): Promise<boolean>;
|
|
7
|
-
create(this: IHookFunctions): Promise<boolean>;
|
|
8
|
-
delete(this: IHookFunctions): Promise<boolean>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
1
|
+
import { VersionedNodeType } from 'n8n-workflow';
|
|
2
|
+
export declare class MailerLiteTrigger extends VersionedNodeType {
|
|
3
|
+
constructor();
|
|
12
4
|
}
|
|
@@ -1,158 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MailerLiteTrigger = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const MailerLiteTriggerV1_node_1 = require("./v1/MailerLiteTriggerV1.node");
|
|
6
|
+
const MailerLiteTriggerV2_node_1 = require("./v2/MailerLiteTriggerV2.node");
|
|
7
|
+
class MailerLiteTrigger extends n8n_workflow_1.VersionedNodeType {
|
|
6
8
|
constructor() {
|
|
7
|
-
|
|
9
|
+
const baseDescription = {
|
|
8
10
|
displayName: 'MailerLite Trigger',
|
|
9
11
|
name: 'mailerLiteTrigger',
|
|
10
|
-
icon: 'file:
|
|
12
|
+
icon: 'file:MailerLite.svg',
|
|
11
13
|
group: ['trigger'],
|
|
12
|
-
version: 1,
|
|
13
14
|
description: 'Starts the workflow when MailerLite events occur',
|
|
14
|
-
|
|
15
|
-
name: 'MailerLite Trigger',
|
|
16
|
-
},
|
|
17
|
-
inputs: [],
|
|
18
|
-
outputs: ["main"],
|
|
19
|
-
credentials: [
|
|
20
|
-
{
|
|
21
|
-
name: 'mailerLiteApi',
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
webhooks: [
|
|
26
|
-
{
|
|
27
|
-
name: 'default',
|
|
28
|
-
httpMethod: 'POST',
|
|
29
|
-
responseMode: 'onReceived',
|
|
30
|
-
path: 'webhook',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
properties: [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Event',
|
|
36
|
-
name: 'event',
|
|
37
|
-
type: 'options',
|
|
38
|
-
options: [
|
|
39
|
-
{
|
|
40
|
-
name: 'Campaign Sent',
|
|
41
|
-
value: 'campaign.sent',
|
|
42
|
-
description: 'Fired when campaign is sent',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: 'Subscriber Added Throught Webform',
|
|
46
|
-
value: 'subscriber.added_through_webform',
|
|
47
|
-
description: 'Fired when a subscriber is added though a form',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'Subscriber Added to Group',
|
|
51
|
-
value: 'subscriber.add_to_group',
|
|
52
|
-
description: 'Fired when a subscriber is added to a group',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'Subscriber Autonomation Completed',
|
|
56
|
-
value: 'subscriber.automation_complete',
|
|
57
|
-
description: 'Fired when subscriber finishes automation',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'Subscriber Autonomation Triggered',
|
|
61
|
-
value: 'subscriber.automation_triggered',
|
|
62
|
-
description: 'Fired when subscriber starts automation',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'Subscriber Bounced',
|
|
66
|
-
value: 'subscriber.bounced',
|
|
67
|
-
description: 'Fired when an email address bounces',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'Subscriber Complained',
|
|
71
|
-
value: 'subscriber.complaint',
|
|
72
|
-
description: 'Fired when subscriber marks a campaign as a spam',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'Subscriber Created',
|
|
76
|
-
value: 'subscriber.create',
|
|
77
|
-
description: 'Fired when a new subscriber is added to an account',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'Subscriber Removed From Group',
|
|
81
|
-
value: 'subscriber.remove_from_group',
|
|
82
|
-
description: 'Fired when a subscriber is removed from a group',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'Subscriber Unsubscribe',
|
|
86
|
-
value: 'subscriber.unsubscribe',
|
|
87
|
-
description: 'Fired when a subscriber becomes unsubscribed',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'Subscriber Updated',
|
|
91
|
-
value: 'subscriber.update',
|
|
92
|
-
description: "Fired when any of the subscriber's custom fields are updated",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
required: true,
|
|
96
|
-
default: [],
|
|
97
|
-
description: 'The events to listen to',
|
|
98
|
-
},
|
|
99
|
-
],
|
|
15
|
+
defaultVersion: 2,
|
|
100
16
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
105
|
-
const webhookData = this.getWorkflowStaticData('node');
|
|
106
|
-
const event = this.getNodeParameter('event');
|
|
107
|
-
const endpoint = '/webhooks';
|
|
108
|
-
const { webhooks } = await GenericFunctions_1.mailerliteApiRequest.call(this, 'GET', endpoint, {});
|
|
109
|
-
for (const webhook of webhooks) {
|
|
110
|
-
if (webhook.url === webhookUrl && webhook.event === event) {
|
|
111
|
-
webhookData.webhookId = webhook.id;
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return false;
|
|
116
|
-
},
|
|
117
|
-
async create() {
|
|
118
|
-
const webhookData = this.getWorkflowStaticData('node');
|
|
119
|
-
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
120
|
-
const event = this.getNodeParameter('event');
|
|
121
|
-
const endpoint = '/webhooks';
|
|
122
|
-
const body = {
|
|
123
|
-
url: webhookUrl,
|
|
124
|
-
event,
|
|
125
|
-
};
|
|
126
|
-
const responseData = await GenericFunctions_1.mailerliteApiRequest.call(this, 'POST', endpoint, body);
|
|
127
|
-
if (responseData.id === undefined) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
webhookData.webhookId = responseData.id;
|
|
131
|
-
return true;
|
|
132
|
-
},
|
|
133
|
-
async delete() {
|
|
134
|
-
const webhookData = this.getWorkflowStaticData('node');
|
|
135
|
-
if (webhookData.webhookId !== undefined) {
|
|
136
|
-
const endpoint = `/webhooks/${webhookData.webhookId}`;
|
|
137
|
-
try {
|
|
138
|
-
await GenericFunctions_1.mailerliteApiRequest.call(this, 'DELETE', endpoint);
|
|
139
|
-
}
|
|
140
|
-
catch (error) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
delete webhookData.webhookId;
|
|
144
|
-
}
|
|
145
|
-
return true;
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
async webhook() {
|
|
151
|
-
const body = this.getBodyData();
|
|
152
|
-
const events = body.events;
|
|
153
|
-
return {
|
|
154
|
-
workflowData: [this.helpers.returnJsonArray(events)],
|
|
17
|
+
const nodeVersions = {
|
|
18
|
+
1: new MailerLiteTriggerV1_node_1.MailerLiteTriggerV1(baseDescription),
|
|
19
|
+
2: new MailerLiteTriggerV2_node_1.MailerLiteTriggerV2(baseDescription),
|
|
155
20
|
};
|
|
21
|
+
super(nodeVersions, baseDescription);
|
|
156
22
|
}
|
|
157
23
|
}
|
|
158
24
|
exports.MailerLiteTrigger = MailerLiteTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MailerLiteTrigger.node.js","sourceRoot":"","sources":["../../../nodes/MailerLite/MailerLiteTrigger.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MailerLiteTrigger.node.js","sourceRoot":"","sources":["../../../nodes/MailerLite/MailerLiteTrigger.node.ts"],"names":[],"mappings":";;;AACA,+CAAiD;AAEjD,4EAAoE;AACpE,4EAAoE;AAEpE,MAAa,iBAAkB,SAAQ,gCAAiB;IACvD;QACC,MAAM,eAAe,GAA6B;YACjD,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,WAAW,EAAE,kDAAkD;YAC/D,cAAc,EAAE,CAAC;SACjB,CAAC;QAEF,MAAM,YAAY,GAAuC;YACxD,CAAC,EAAE,IAAI,8CAAmB,CAAC,eAAe,CAAC;YAC3C,CAAC,EAAE,IAAI,8CAAmB,CAAC,eAAe,CAAC;SAC3C,CAAC;QAEF,KAAK,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IACtC,CAAC;CACD;AAlBD,8CAkBC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
export declare const getUpdateSubscriberResponseClassic: {
|
|
2
|
+
id: number;
|
|
3
|
+
email: string;
|
|
4
|
+
sent: number;
|
|
5
|
+
opened: number;
|
|
6
|
+
clicked: number;
|
|
7
|
+
type: string;
|
|
8
|
+
fields: {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
date_subscribe: null;
|
|
14
|
+
date_unsubscribe: string;
|
|
15
|
+
date_created: string;
|
|
16
|
+
date_updated: null;
|
|
17
|
+
};
|
|
18
|
+
export declare const getSubscriberResponseClassic: {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
email: string;
|
|
22
|
+
sent: number;
|
|
23
|
+
opened: number;
|
|
24
|
+
clicked: number;
|
|
25
|
+
type: string;
|
|
26
|
+
signup_ip: string;
|
|
27
|
+
signup_timestamp: string;
|
|
28
|
+
confirmation_ip: string;
|
|
29
|
+
confirmation_timestamp: string;
|
|
30
|
+
fields: {
|
|
31
|
+
key: string;
|
|
32
|
+
value: string;
|
|
33
|
+
type: string;
|
|
34
|
+
}[];
|
|
35
|
+
date_subscribe: null;
|
|
36
|
+
date_unsubscribe: null;
|
|
37
|
+
date_created: string;
|
|
38
|
+
date_updated: null;
|
|
39
|
+
};
|
|
40
|
+
export declare const getCreateResponseClassic: {
|
|
41
|
+
id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
sent: number;
|
|
45
|
+
opened: number;
|
|
46
|
+
clicked: number;
|
|
47
|
+
type: string;
|
|
48
|
+
fields: {
|
|
49
|
+
key: string;
|
|
50
|
+
value: string;
|
|
51
|
+
type: string;
|
|
52
|
+
}[];
|
|
53
|
+
date_subscribe: null;
|
|
54
|
+
date_unsubscribe: null;
|
|
55
|
+
date_created: string;
|
|
56
|
+
date_updated: string;
|
|
57
|
+
};
|
|
58
|
+
export declare const getAllSubscribersResponseClassic: {
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
email: string;
|
|
62
|
+
sent: number;
|
|
63
|
+
opened: number;
|
|
64
|
+
clicked: number;
|
|
65
|
+
type: string;
|
|
66
|
+
fields: {
|
|
67
|
+
key: string;
|
|
68
|
+
value: string;
|
|
69
|
+
type: string;
|
|
70
|
+
}[];
|
|
71
|
+
date_subscribe: null;
|
|
72
|
+
date_unsubscribe: null;
|
|
73
|
+
date_created: string;
|
|
74
|
+
date_updated: null;
|
|
75
|
+
}[];
|
|
76
|
+
export declare const getUpdateSubscriberResponseV2: {
|
|
77
|
+
data: {
|
|
78
|
+
id: string;
|
|
79
|
+
email: string;
|
|
80
|
+
status: string;
|
|
81
|
+
source: string;
|
|
82
|
+
sent: number;
|
|
83
|
+
opens_count: number;
|
|
84
|
+
clicks_count: number;
|
|
85
|
+
open_rate: number;
|
|
86
|
+
click_rate: number;
|
|
87
|
+
ip_address: null;
|
|
88
|
+
subscribed_at: string;
|
|
89
|
+
unsubscribed_at: null;
|
|
90
|
+
created_at: string;
|
|
91
|
+
updated_at: string;
|
|
92
|
+
fields: {
|
|
93
|
+
name: null;
|
|
94
|
+
last_name: null;
|
|
95
|
+
company: null;
|
|
96
|
+
country: null;
|
|
97
|
+
city: null;
|
|
98
|
+
phone: null;
|
|
99
|
+
state: null;
|
|
100
|
+
z_i_p: null;
|
|
101
|
+
};
|
|
102
|
+
groups: never[];
|
|
103
|
+
opted_in_at: null;
|
|
104
|
+
optin_ip: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export declare const getCreateResponseV2: {
|
|
108
|
+
data: {
|
|
109
|
+
id: string;
|
|
110
|
+
email: string;
|
|
111
|
+
status: string;
|
|
112
|
+
source: string;
|
|
113
|
+
sent: number;
|
|
114
|
+
opens_count: number;
|
|
115
|
+
clicks_count: number;
|
|
116
|
+
open_rate: number;
|
|
117
|
+
click_rate: number;
|
|
118
|
+
ip_address: null;
|
|
119
|
+
subscribed_at: string;
|
|
120
|
+
unsubscribed_at: null;
|
|
121
|
+
created_at: string;
|
|
122
|
+
updated_at: string;
|
|
123
|
+
fields: {
|
|
124
|
+
name: null;
|
|
125
|
+
last_name: null;
|
|
126
|
+
company: null;
|
|
127
|
+
country: null;
|
|
128
|
+
city: null;
|
|
129
|
+
phone: null;
|
|
130
|
+
state: null;
|
|
131
|
+
z_i_p: null;
|
|
132
|
+
};
|
|
133
|
+
groups: never[];
|
|
134
|
+
opted_in_at: null;
|
|
135
|
+
optin_ip: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export declare const getSubscriberResponseV2: {
|
|
139
|
+
data: {
|
|
140
|
+
id: string;
|
|
141
|
+
email: string;
|
|
142
|
+
status: string;
|
|
143
|
+
source: string;
|
|
144
|
+
sent: number;
|
|
145
|
+
opens_count: number;
|
|
146
|
+
clicks_count: number;
|
|
147
|
+
open_rate: number;
|
|
148
|
+
click_rate: number;
|
|
149
|
+
ip_address: null;
|
|
150
|
+
subscribed_at: string;
|
|
151
|
+
unsubscribed_at: null;
|
|
152
|
+
created_at: string;
|
|
153
|
+
updated_at: string;
|
|
154
|
+
fields: {
|
|
155
|
+
name: null;
|
|
156
|
+
last_name: null;
|
|
157
|
+
company: null;
|
|
158
|
+
country: null;
|
|
159
|
+
city: null;
|
|
160
|
+
phone: null;
|
|
161
|
+
state: null;
|
|
162
|
+
z_i_p: null;
|
|
163
|
+
};
|
|
164
|
+
groups: never[];
|
|
165
|
+
opted_in_at: null;
|
|
166
|
+
optin_ip: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
export declare const getAllSubscribersResponseV2: {
|
|
170
|
+
data: ({
|
|
171
|
+
id: string;
|
|
172
|
+
email: string;
|
|
173
|
+
status: string;
|
|
174
|
+
source: string;
|
|
175
|
+
sent: number;
|
|
176
|
+
opens_count: number;
|
|
177
|
+
clicks_count: number;
|
|
178
|
+
open_rate: number;
|
|
179
|
+
click_rate: number;
|
|
180
|
+
ip_address: null;
|
|
181
|
+
subscribed_at: string;
|
|
182
|
+
unsubscribed_at: null;
|
|
183
|
+
created_at: string;
|
|
184
|
+
updated_at: string;
|
|
185
|
+
fields: {
|
|
186
|
+
name: null;
|
|
187
|
+
last_name: null;
|
|
188
|
+
company: null;
|
|
189
|
+
country: null;
|
|
190
|
+
city: null;
|
|
191
|
+
phone: null;
|
|
192
|
+
state: null;
|
|
193
|
+
z_i_p: null;
|
|
194
|
+
};
|
|
195
|
+
opted_in_at: null;
|
|
196
|
+
optin_ip: string;
|
|
197
|
+
} | {
|
|
198
|
+
id: string;
|
|
199
|
+
email: string;
|
|
200
|
+
status: string;
|
|
201
|
+
source: string;
|
|
202
|
+
sent: number;
|
|
203
|
+
opens_count: number;
|
|
204
|
+
clicks_count: number;
|
|
205
|
+
open_rate: number;
|
|
206
|
+
click_rate: number;
|
|
207
|
+
ip_address: null;
|
|
208
|
+
subscribed_at: null;
|
|
209
|
+
unsubscribed_at: null;
|
|
210
|
+
created_at: string;
|
|
211
|
+
updated_at: string;
|
|
212
|
+
fields: {
|
|
213
|
+
name: string;
|
|
214
|
+
last_name: string;
|
|
215
|
+
company: null;
|
|
216
|
+
country: null;
|
|
217
|
+
city: null;
|
|
218
|
+
phone: null;
|
|
219
|
+
state: null;
|
|
220
|
+
z_i_p: null;
|
|
221
|
+
};
|
|
222
|
+
opted_in_at: null;
|
|
223
|
+
optin_ip: null;
|
|
224
|
+
})[];
|
|
225
|
+
links: {
|
|
226
|
+
first: null;
|
|
227
|
+
last: null;
|
|
228
|
+
prev: null;
|
|
229
|
+
next: null;
|
|
230
|
+
};
|
|
231
|
+
meta: {
|
|
232
|
+
path: string;
|
|
233
|
+
per_page: number;
|
|
234
|
+
next_cursor: null;
|
|
235
|
+
prev_cursor: null;
|
|
236
|
+
};
|
|
237
|
+
};
|