n8n-nodes-fluentcrm 0.1.1 → 0.2.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/README.md +30 -19
- package/dist/nodes/Fluentcrm/Fluentcrm.node.d.ts +6 -0
- package/dist/nodes/Fluentcrm/Fluentcrm.node.js +17 -1
- package/dist/nodes/Fluentcrm/Fluentcrm.node.js.map +1 -1
- package/dist/nodes/Fluentcrm/listSearch/index.d.ts +6 -0
- package/dist/nodes/Fluentcrm/listSearch/index.js +53 -6
- package/dist/nodes/Fluentcrm/listSearch/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/automation/index.d.ts +18 -0
- package/dist/nodes/Fluentcrm/resources/automation/index.js +610 -0
- package/dist/nodes/Fluentcrm/resources/automation/index.js.map +1 -0
- package/dist/nodes/Fluentcrm/resources/campaign/index.d.ts +39 -0
- package/dist/nodes/Fluentcrm/resources/campaign/index.js +831 -0
- package/dist/nodes/Fluentcrm/resources/campaign/index.js.map +1 -0
- package/dist/nodes/Fluentcrm/resources/company/index.js +4 -1
- package/dist/nodes/Fluentcrm/resources/company/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/contact/fields.js +2 -0
- package/dist/nodes/Fluentcrm/resources/contact/fields.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/contact/hooks.js +3 -24
- package/dist/nodes/Fluentcrm/resources/contact/hooks.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/contact/index.js +31 -8
- package/dist/nodes/Fluentcrm/resources/contact/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/customField/index.d.ts +30 -0
- package/dist/nodes/Fluentcrm/resources/customField/index.js +436 -0
- package/dist/nodes/Fluentcrm/resources/customField/index.js.map +1 -0
- package/dist/nodes/Fluentcrm/resources/segment/index.js +7 -4
- package/dist/nodes/Fluentcrm/resources/segment/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/sequence/index.d.ts +1 -0
- package/dist/nodes/Fluentcrm/resources/sequence/index.js +20 -1
- package/dist/nodes/Fluentcrm/resources/sequence/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/sequenceEmail/index.js +5 -1
- package/dist/nodes/Fluentcrm/resources/sequenceEmail/index.js.map +1 -1
- package/dist/nodes/Fluentcrm/resources/template/index.d.ts +17 -0
- package/dist/nodes/Fluentcrm/resources/template/index.js +367 -0
- package/dist/nodes/Fluentcrm/resources/template/index.js.map +1 -0
- package/dist/nodes/Fluentcrm/shared/descriptions.d.ts +3 -0
- package/dist/nodes/Fluentcrm/shared/descriptions.js +73 -2
- package/dist/nodes/Fluentcrm/shared/descriptions.js.map +1 -1
- package/dist/nodes/Fluentcrm/shared/notes.d.ts +2 -0
- package/dist/nodes/Fluentcrm/shared/notes.js +30 -0
- package/dist/nodes/Fluentcrm/shared/notes.js.map +1 -1
- package/dist/nodes/Fluentcrm/shared/routing.d.ts +2 -2
- package/dist/nodes/Fluentcrm/shared/routing.js +61 -20
- package/dist/nodes/Fluentcrm/shared/routing.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](#-license)
|
|
11
11
|
[](CHANGELOG.md)
|
|
12
12
|
[](#-compatibility)
|
|
13
|
-
[](https://fluentcrm.com/)
|
|
13
|
+
[](https://fluentcrm.com/)
|
|
14
14
|
[](https://docs.n8n.io/integrations/community-nodes/)
|
|
15
15
|
|
|
16
16
|
</div>
|
|
@@ -23,11 +23,15 @@
|
|
|
23
23
|
|
|
24
24
|
Drop the **FluentCRM** node into a workflow and pick a resource and an operation:
|
|
25
25
|
|
|
26
|
-
> _"Add everyone who fills in the Typeform to the Newsletter list."_ · _"Tag a contact `Customer` when Stripe takes a payment."_ · _"Start the onboarding sequence for new signups."_ · _"Post a Slack message when a contact unsubscribes."_
|
|
26
|
+
> _"Add everyone who fills in the Typeform to the Newsletter list."_ · _"Send the monthly newsletter to everyone tagged `Customer`."_ · _"Tag a contact `Customer` when Stripe takes a payment."_ · _"Start the onboarding sequence for new signups."_ · _"Post a Slack message when a contact unsubscribes."_
|
|
27
27
|
|
|
28
28
|
- **Contacts**: create, create or update by email, get, search, tag, add to lists, set custom fields, send a one-off email, track events.
|
|
29
29
|
- **Companies**: create, update, link contacts, bulk update category or type, keep notes.
|
|
30
30
|
- **Tags and lists**: full create, update, delete and bulk actions.
|
|
31
|
+
- **Automations**: create, publish and clone automations, save their steps from JSON, and see or manage the contacts in them.
|
|
32
|
+
- **Campaigns**: create and send email campaigns to lists and tags, schedule them, send a test, and read the stats.
|
|
33
|
+
- **Email templates**: create, copy and edit templates, and list the smart codes they can use.
|
|
34
|
+
- **Custom fields**: add, change, remove and regroup contact and company custom fields.
|
|
31
35
|
- **Email sequences and sequence emails** (FluentCRM Pro): build sequences, add or remove contacts, edit each email.
|
|
32
36
|
- **FluentCRM Trigger**: start a workflow when a contact is added or updated.
|
|
33
37
|
|
|
@@ -72,7 +76,7 @@ Form Trigger ──▶ FluentCRM · Contact · Create or Update ──▶ Fluent
|
|
|
72
76
|
## 🎯 Why this node?
|
|
73
77
|
|
|
74
78
|
- **🧩 Built for n8n, not wrapped.** Searchable dropdowns for contacts, tags, lists, companies, sequences and custom fields. Pick by list, by ID or by email.
|
|
75
|
-
- **✂️ Simplified output by default.** Get, Get Many, Create and Update return the fields you actually use;
|
|
79
|
+
- **✂️ Simplified output by default.** Get, Get Many, Create and Update return the fields you actually use; set **Output** to Raw for the full record, or Selected Fields to choose.
|
|
76
80
|
- **🛡️ Safe updates.** Update changes only the fields you set. Where FluentCRM requires a field on every update (titles, names, descriptions), the node reads the current value first, so nothing is wiped by accident.
|
|
77
81
|
- **🔁 Polling trigger that works on the free plugin.** No Pro licence and no webhook setup needed. The first check only records where to start, so old records don't flood the workflow.
|
|
78
82
|
- **🔐 WordPress application passwords.** No extra plugin, no API key add-on. Works with plain permalinks and with hosts that block PUT and DELETE.
|
|
@@ -89,7 +93,7 @@ Form Trigger ──▶ FluentCRM · Contact · Create or Update ──▶ Fluent
|
|
|
89
93
|
▼
|
|
90
94
|
┌──────────────────────────────────┐
|
|
91
95
|
│ FluentCRM node / Trigger │ resource + operation,
|
|
92
|
-
│ (declarative, n8n node-cli) │ dropdowns,
|
|
96
|
+
│ (declarative, n8n node-cli) │ dropdowns, output
|
|
93
97
|
└────────────────┬─────────────────┘
|
|
94
98
|
│ Basic auth: WordPress user + application password
|
|
95
99
|
▼
|
|
@@ -117,16 +121,20 @@ On a self-hosted n8n: **Settings > Community Nodes > Install**, then enter `n8n-
|
|
|
117
121
|
|
|
118
122
|
**FluentCRM node**
|
|
119
123
|
|
|
120
|
-
| Resource | Operations
|
|
121
|
-
| ------------------------------ |
|
|
122
|
-
| Contact | Create, Create or Update, Delete, Delete Many, Get (by ID or email), Get Many, Search, Update, Add Tags, Remove Tags, Add to Lists, Remove From Lists, Set Property, Send Double Opt-In, Send Email, Track Event
|
|
123
|
-
| Contact Note | Create, Bulk Delete, Delete, Get Many, Update
|
|
124
|
-
| Tag | Create, Bulk Create, Bulk Delete, Delete, Get, Get Many, Update
|
|
125
|
-
| List | Create, Bulk Create, Bulk Delete, Delete, Get, Get Many, Update
|
|
126
|
-
| Company | Create, Bulk Delete, Bulk Update (category or type), Delete, Get (by ID, name, email or phone), Get Many, Search, Update, Add Contacts, Remove Contacts, Set Property
|
|
127
|
-
| Company Note | Create, Bulk Delete, Delete, Get Many, Update
|
|
128
|
-
| Email Sequence (FluentCRM Pro) | Create, Delete, Duplicate, Get, Get Many, Update, Add Contacts, Remove Contacts, Get Contacts
|
|
129
|
-
| Sequence Email (FluentCRM Pro) | Create, Delete, Duplicate, Get, Get Many, Update (subject, body, preheader, wait time)
|
|
124
|
+
| Resource | Operations |
|
|
125
|
+
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
126
|
+
| Contact | Create, Create or Update, Delete, Delete Many, Get (by ID or email), Get Many, Search, Update, Add Tags, Remove Tags, Add to Lists, Remove From Lists, Set Property, Send Double Opt-In, Send Email, Track Event |
|
|
127
|
+
| Contact Note | Create, Bulk Delete, Delete, Get Many, Update |
|
|
128
|
+
| Tag | Create, Bulk Create, Bulk Delete, Delete, Get, Get Many, Update |
|
|
129
|
+
| List | Create, Bulk Create, Bulk Delete, Delete, Get, Get Many, Update |
|
|
130
|
+
| Company | Create, Bulk Delete, Bulk Update (category or type), Delete, Get (by ID, name, email or phone), Get Many, Search, Update, Add Contacts, Remove Contacts, Set Property |
|
|
131
|
+
| Company Note | Create, Bulk Delete, Delete, Get Many, Update |
|
|
132
|
+
| Email Sequence (FluentCRM Pro) | Create, Delete, Duplicate, Get, Get Many, Update, Add Contacts, Remove Contacts, Get Contacts |
|
|
133
|
+
| Sequence Email (FluentCRM Pro) | Create, Delete, Duplicate, Get, Get Many, Update (subject, body, preheader, wait time) |
|
|
134
|
+
| Custom Field | Create, Delete, Get Many, Rename Group, Update (for contacts or companies) |
|
|
135
|
+
| Template | Create, Bulk Delete, Delete, Duplicate, Get, Get Many, Get Smart Codes, Update |
|
|
136
|
+
| Campaign | Create, Create and Send, Bulk Delete, Delete, Duplicate, Estimate Recipients, Get, Get Emails, Get Many, Get Stats, Pause, Preview HTML, Resume, Schedule, Send Test, Set Recipients, Unschedule, Update |
|
|
137
|
+
| Automation | Create, Clone, Delete, Get, Get Many, Import, Save Steps, Set Status, Update Title, Change Trigger, Get Triggers, Get Report, Get Email Reports, Get Contacts, Get for Contact, Set Contact Status, Advance Contact, Remove Contacts |
|
|
130
138
|
|
|
131
139
|
**FluentCRM Trigger** (polling)
|
|
132
140
|
|
|
@@ -174,7 +182,7 @@ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
|
174
182
|
| | Version |
|
|
175
183
|
| ------------- | ------------------------------------------------- |
|
|
176
184
|
| n8n | 2.46.1 or later |
|
|
177
|
-
| FluentCRM | 3.2
|
|
185
|
+
| FluentCRM | 3.2.6 or later (tested on 3.3.5) |
|
|
178
186
|
| FluentCRM Pro | Needed only for Email Sequence and Sequence Email |
|
|
179
187
|
| n8n-workflow | Tested with 3.4.1 |
|
|
180
188
|
|
|
@@ -192,14 +200,17 @@ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
|
192
200
|
- **Track Event** needs event tracking turned on in **FluentCRM > Settings > Experimental Features**.
|
|
193
201
|
- **Set Property** changes one field (status, contact type, photo, company or SMS status) on several contacts at once.
|
|
194
202
|
- **Add Contacts** on an email sequence starts it for everyone in the lists and tags you pick, minus any you exclude. Contacts already in the sequence are skipped.
|
|
195
|
-
- **
|
|
203
|
+
- **Custom Field** Create, Update and Delete keep every other field. FluentCRM saves all custom fields at once, so the node reads the current fields first. Deleting a field removes its definition, not the values stored on records.
|
|
204
|
+
- **Create and Send** for a campaign creates it, sets its subject, body and recipients, and sends it now or schedules it. If a step fails, the message says which one, and the draft stays in FluentCRM. Schedule times are in the WordPress site's time zone.
|
|
205
|
+
- **Save Steps** for an automation takes the steps, trigger settings and status as JSON and replaces the current steps. Contacts enter an automation through its trigger; FluentCRM has no call to add one directly.
|
|
206
|
+
- Campaigns go only to subscribed contacts. **Set Recipients** fails if no subscribed contact matches the lists and tags.
|
|
207
|
+
- **Update** for a tag, list, company, email sequence, template or campaign changes only the fields you set. The node reads the current title or name first because FluentCRM requires it on every update.
|
|
196
208
|
|
|
197
209
|
---
|
|
198
210
|
|
|
199
211
|
## 🗺️ Roadmap
|
|
200
212
|
|
|
201
|
-
-
|
|
202
|
-
- 🧾 **Custom fields and reports**: manage custom field definitions and read FluentCRM's reports.
|
|
213
|
+
- 🧾 **Reports**: read FluentCRM's reports.
|
|
203
214
|
- 🪝 **Webhook trigger** for FluentCRM Pro, alongside the polling trigger.
|
|
204
215
|
- 👥 **More contact operations**: bulk actions and contact history.
|
|
205
216
|
- 🔎 **Dynamic segments, smart links, labels** and the rest of the FluentCRM REST API.
|
|
@@ -217,7 +228,7 @@ See [CHANGELOG.md](CHANGELOG.md) for what each release adds.
|
|
|
217
228
|
- **My site uses plain permalinks. Will it work?** Yes. Set **URL Style** to **Plain Permalinks** in the credential.
|
|
218
229
|
- **My host blocks PUT and DELETE.** Turn on **Send PUT, PATCH and DELETE as POST** in the credential.
|
|
219
230
|
- **Can I use it on n8n Cloud?** Once the node is verified by n8n. Until then, install it on a self-hosted n8n.
|
|
220
|
-
- **Can an AI agent use it?** Yes. Add the FluentCRM node as a tool on an n8n AI Agent.
|
|
231
|
+
- **Can an AI agent use it?** Yes. Add the FluentCRM node as a tool on an n8n AI Agent. Leave **Output** on Simplified, or pick Selected Fields, so the agent gets only the fields it needs instead of the whole record.
|
|
221
232
|
- **Where does my data go?** Straight from your n8n to your WordPress site. The node calls no other service.
|
|
222
233
|
|
|
223
234
|
---
|
|
@@ -9,6 +9,9 @@ export declare class Fluentcrm implements INodeType {
|
|
|
9
9
|
searchCompanies: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
10
10
|
searchSequences: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
11
11
|
searchSequenceEmails: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
12
|
+
searchAutomations: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
13
|
+
searchTemplates: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
14
|
+
searchCampaigns: (this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
12
15
|
};
|
|
13
16
|
loadOptions: {
|
|
14
17
|
getCompanyCategories(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
@@ -16,6 +19,9 @@ export declare class Fluentcrm implements INodeType {
|
|
|
16
19
|
getTags(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
17
20
|
getLists(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
18
21
|
getCompanies(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
22
|
+
getAutomationTriggers(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
23
|
+
getObjectCustomFields(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
24
|
+
getCustomFieldGroups(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
19
25
|
getCustomFields(this: import("n8n-workflow").ILoadOptionsFunctions): Promise<import("n8n-workflow").INodePropertyOptions[]>;
|
|
20
26
|
};
|
|
21
27
|
};
|
|
@@ -3,13 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Fluentcrm = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const listSearch_1 = require("./listSearch");
|
|
6
|
+
const automation_1 = require("./resources/automation");
|
|
7
|
+
const campaign_1 = require("./resources/campaign");
|
|
6
8
|
const company_1 = require("./resources/company");
|
|
7
9
|
const companyNote_1 = require("./resources/companyNote");
|
|
8
10
|
const contact_1 = require("./resources/contact");
|
|
9
11
|
const contactNote_1 = require("./resources/contactNote");
|
|
12
|
+
const customField_1 = require("./resources/customField");
|
|
10
13
|
const segment_1 = require("./resources/segment");
|
|
11
14
|
const sequence_1 = require("./resources/sequence");
|
|
12
15
|
const sequenceEmail_1 = require("./resources/sequenceEmail");
|
|
16
|
+
const template_1 = require("./resources/template");
|
|
13
17
|
class Fluentcrm {
|
|
14
18
|
constructor() {
|
|
15
19
|
this.description = {
|
|
@@ -19,7 +23,7 @@ class Fluentcrm {
|
|
|
19
23
|
group: ['transform'],
|
|
20
24
|
version: 1,
|
|
21
25
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
22
|
-
description: 'Manage contacts,
|
|
26
|
+
description: 'Manage contacts, companies, campaigns, automations and more in FluentCRM',
|
|
23
27
|
defaults: {
|
|
24
28
|
name: 'FluentCRM',
|
|
25
29
|
},
|
|
@@ -42,14 +46,18 @@ class Fluentcrm {
|
|
|
42
46
|
type: 'options',
|
|
43
47
|
noDataExpression: true,
|
|
44
48
|
options: [
|
|
49
|
+
{ name: 'Automation', value: 'automation' },
|
|
50
|
+
{ name: 'Campaign', value: 'campaign' },
|
|
45
51
|
{ name: 'Company', value: 'company' },
|
|
46
52
|
{ name: 'Company Note', value: 'companyNote' },
|
|
47
53
|
{ name: 'Contact', value: 'contact' },
|
|
48
54
|
{ name: 'Contact Note', value: 'contactNote' },
|
|
55
|
+
{ name: 'Custom Field', value: 'customField' },
|
|
49
56
|
{ name: 'Email Sequence', value: 'sequence' },
|
|
50
57
|
{ name: 'List', value: 'list' },
|
|
51
58
|
{ name: 'Sequence Email', value: 'sequenceEmail' },
|
|
52
59
|
{ name: 'Tag', value: 'tag' },
|
|
60
|
+
{ name: 'Template', value: 'template' },
|
|
53
61
|
],
|
|
54
62
|
default: 'contact',
|
|
55
63
|
},
|
|
@@ -69,6 +77,14 @@ class Fluentcrm {
|
|
|
69
77
|
...sequence_1.sequenceFields,
|
|
70
78
|
sequenceEmail_1.sequenceEmailOperations,
|
|
71
79
|
...sequenceEmail_1.sequenceEmailFields,
|
|
80
|
+
customField_1.customFieldOperations,
|
|
81
|
+
...customField_1.customFieldFields,
|
|
82
|
+
template_1.templateOperations,
|
|
83
|
+
...template_1.templateFields,
|
|
84
|
+
campaign_1.campaignOperations,
|
|
85
|
+
...campaign_1.campaignFields,
|
|
86
|
+
automation_1.automationOperations,
|
|
87
|
+
...automation_1.automationFields,
|
|
72
88
|
],
|
|
73
89
|
};
|
|
74
90
|
this.methods = { listSearch: listSearch_1.listSearch, loadOptions: listSearch_1.loadOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fluentcrm.node.js","sourceRoot":"","sources":["../../../nodes/Fluentcrm/Fluentcrm.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,6CAAuD;AACvD,iDAAkF;AAClF,yDAAmF;AACnF,iDAAkF;AAClF,yDAAmF;AACnF,iDAAgE;AAChE,mDAA0E;AAC1E,6DAAyF;
|
|
1
|
+
{"version":3,"file":"Fluentcrm.node.js","sourceRoot":"","sources":["../../../nodes/Fluentcrm/Fluentcrm.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,6CAAuD;AACvD,uDAAgF;AAChF,mDAA0E;AAC1E,iDAAkF;AAClF,yDAAmF;AACnF,iDAAkF;AAClF,yDAAmF;AACnF,yDAAmF;AACnF,iDAAgE;AAChE,mDAA0E;AAC1E,6DAAyF;AACzF,mDAA0E;AAE1E,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE,IAAI,EAAE,qCAAqC,EAAE;YAC9F,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,0EAA0E;YACvF,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,E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BAAiB;gBACpB,qBAAW,CAAC,UAAU;gBACtB,GAAG,qBAAW,CAAC,MAAM;gBACrB,sBAAY,CAAC,UAAU;gBACvB,GAAG,sBAAY,CAAC,MAAM;gBACtB,2BAAiB;gBACjB,GAAG,kCAAwB;gBAC3B,mCAAqB;gBACrB,GAAG,+BAAiB;gBACpB,6BAAkB;gBAClB,GAAG,yBAAc;gBACjB,uCAAuB;gBACvB,GAAG,mCAAmB;gBACtB,mCAAqB;gBACrB,GAAG,+BAAiB;gBACpB,6BAAkB;gBAClB,GAAG,yBAAc;gBACjB,6BAAkB;gBAClB,GAAG,yBAAc;gBACjB,iCAAoB;gBACpB,GAAG,6BAAgB;aACnB;SACD,CAAC;QAEF,YAAO,GAAG,EAAE,UAAU,EAAV,uBAAU,EAAE,WAAW,EAAX,wBAAW,EAAE,CAAC;IACvC,CAAC;CAAA;AA3ED,8BA2EC"}
|
|
@@ -7,6 +7,9 @@ export declare const listSearch: {
|
|
|
7
7
|
searchCompanies: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
8
8
|
searchSequences: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
9
9
|
searchSequenceEmails: typeof searchSequenceEmails;
|
|
10
|
+
searchAutomations: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
11
|
+
searchTemplates: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
12
|
+
searchCampaigns: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
10
13
|
};
|
|
11
14
|
export declare const loadOptions: {
|
|
12
15
|
getCompanyCategories(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
@@ -14,6 +17,9 @@ export declare const loadOptions: {
|
|
|
14
17
|
getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
15
18
|
getLists(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
16
19
|
getCompanies(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
20
|
+
getAutomationTriggers(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
21
|
+
getObjectCustomFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
22
|
+
getCustomFieldGroups(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
17
23
|
getCustomFields(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
18
24
|
};
|
|
19
25
|
export {};
|
|
@@ -6,18 +6,27 @@ const connection_1 = require("../shared/connection");
|
|
|
6
6
|
const company_1 = require("../resources/company");
|
|
7
7
|
const SEARCH_PAGE_SIZE = 50;
|
|
8
8
|
const companies = { module: company_1.COMPANIES_MODULE };
|
|
9
|
-
function
|
|
9
|
+
async function objectCustomFields() {
|
|
10
|
+
const company = this.getCurrentNodeParameter('object') === 'company';
|
|
11
|
+
const response = await transport_1.fluentApiRequest.call(this, 'GET', company ? '/companies/custom-fields' : '/custom-fields/contacts', {}, undefined, company ? companies : {});
|
|
12
|
+
const fields = (0, transport_1.getPath)(response, 'fields');
|
|
13
|
+
return Array.isArray(fields) ? fields : [];
|
|
14
|
+
}
|
|
15
|
+
function makeSearch(endpoint, dataPath, label, extraQs = {}, extras = {}, searchKey = 'search') {
|
|
10
16
|
return async function (filter, paginationToken) {
|
|
11
17
|
const page = paginationToken ? Number(paginationToken) : 1;
|
|
12
18
|
const qs = { ...extraQs, page, per_page: SEARCH_PAGE_SIZE };
|
|
13
19
|
if (filter)
|
|
14
|
-
qs
|
|
20
|
+
qs[searchKey] = filter;
|
|
15
21
|
const response = await transport_1.fluentApiRequest.call(this, 'GET', endpoint, qs, undefined, extras);
|
|
16
22
|
const list = (0, transport_1.recordsAt)(response, dataPath);
|
|
17
|
-
const results = list.map((record) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
const results = list.map((record) => {
|
|
24
|
+
var _a;
|
|
25
|
+
return ({
|
|
26
|
+
name: label(record),
|
|
27
|
+
value: String((_a = record.id) !== null && _a !== void 0 ? _a : record.ID),
|
|
28
|
+
});
|
|
29
|
+
});
|
|
21
30
|
const lastPage = (0, transport_1.getPath)(response, `${dataPath.split('.')[0]}.last_page`);
|
|
22
31
|
const more = lastPage !== undefined ? page < Number(lastPage) : list.length >= SEARCH_PAGE_SIZE;
|
|
23
32
|
return { results, paginationToken: more ? String(page + 1) : undefined };
|
|
@@ -51,6 +60,9 @@ exports.listSearch = {
|
|
|
51
60
|
pro: true,
|
|
52
61
|
}),
|
|
53
62
|
searchSequenceEmails,
|
|
63
|
+
searchAutomations: makeSearch('/funnels', 'funnels.data', (r) => String(r.title)),
|
|
64
|
+
searchTemplates: makeSearch('/templates', 'templates.data', (r) => String(r.post_title)),
|
|
65
|
+
searchCampaigns: makeSearch('/campaigns', 'campaigns.data', (r) => String(r.title), {}, {}, 'searchBy'),
|
|
54
66
|
};
|
|
55
67
|
async function allOptions(endpoint, dataPath, labelKey = 'title', extras = {}) {
|
|
56
68
|
const records = await transport_1.fluentApiRequestAllItems.call(this, endpoint, dataPath, { exclude_counts: 1 }, 0, extras);
|
|
@@ -87,6 +99,41 @@ exports.loadOptions = {
|
|
|
87
99
|
async getCompanies() {
|
|
88
100
|
return await allOptions.call(this, '/companies', 'companies.data', 'name', companies);
|
|
89
101
|
},
|
|
102
|
+
async getAutomationTriggers() {
|
|
103
|
+
var _a;
|
|
104
|
+
const response = await transport_1.fluentApiRequest.call(this, 'GET', '/funnels/triggers');
|
|
105
|
+
const triggers = (_a = (0, transport_1.getPath)(response, 'triggers')) !== null && _a !== void 0 ? _a : {};
|
|
106
|
+
return Object.entries(triggers)
|
|
107
|
+
.map(([value, trigger]) => {
|
|
108
|
+
var _a, _b, _c;
|
|
109
|
+
const t = (_a = trigger) !== null && _a !== void 0 ? _a : {};
|
|
110
|
+
return {
|
|
111
|
+
name: `${String((_b = t.category) !== null && _b !== void 0 ? _b : 'Other')}: ${String((_c = t.label) !== null && _c !== void 0 ? _c : value)}`,
|
|
112
|
+
value,
|
|
113
|
+
description: t.description ? String(t.description) : undefined,
|
|
114
|
+
};
|
|
115
|
+
})
|
|
116
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
117
|
+
},
|
|
118
|
+
async getObjectCustomFields() {
|
|
119
|
+
return (await objectCustomFields.call(this))
|
|
120
|
+
.filter((field) => field.slug)
|
|
121
|
+
.map((field) => {
|
|
122
|
+
var _a;
|
|
123
|
+
return ({
|
|
124
|
+
name: String((_a = field.label) !== null && _a !== void 0 ? _a : field.slug),
|
|
125
|
+
value: String(field.slug),
|
|
126
|
+
description: field.type ? `Type: ${String(field.type)}` : undefined,
|
|
127
|
+
});
|
|
128
|
+
})
|
|
129
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
130
|
+
},
|
|
131
|
+
async getCustomFieldGroups() {
|
|
132
|
+
const groups = new Set((await objectCustomFields.call(this)).map((field) => { var _a; return String((_a = field.group) !== null && _a !== void 0 ? _a : ''); }).filter(Boolean));
|
|
133
|
+
return Array.from(groups)
|
|
134
|
+
.sort((a, b) => a.localeCompare(b))
|
|
135
|
+
.map((group) => ({ name: group, value: group }));
|
|
136
|
+
},
|
|
90
137
|
async getCustomFields() {
|
|
91
138
|
const response = await transport_1.fluentApiRequest.call(this, 'GET', '/custom-fields/contacts');
|
|
92
139
|
const fields = (0, transport_1.getPath)(response, 'fields');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Fluentcrm/listSearch/index.ts"],"names":[],"mappings":";;;AAOA,mDAM6B;AAC7B,qDAAmD;AACnD,kDAAwD;AAExD,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAG5B,MAAM,SAAS,GAAkB,EAAE,MAAM,EAAE,0BAAgB,EAAE,CAAC;AAG9D,SAAS,UAAU,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1
|
+
import type { IDataObject, IExecuteSingleFunctions, IHttpRequestOptions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
type PreSendAction = (this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>;
|
|
3
|
+
export declare const automationLocator: INodeProperties;
|
|
4
|
+
export declare const AUTOMATION_SIMPLE_FIELDS: string[];
|
|
5
|
+
export declare const AUTOMATION_FIELDS: string[];
|
|
6
|
+
export declare const AUTOMATION_RUN_SIMPLE_FIELDS: string[];
|
|
7
|
+
export declare const AUTOMATION_RUN_FIELDS: string[];
|
|
8
|
+
export declare function jsonParameter(value: unknown, label: string): IDataObject;
|
|
9
|
+
export declare const saveStepsBody: PreSendAction;
|
|
10
|
+
export declare const importBody: PreSendAction;
|
|
11
|
+
export declare const removeContactsQuery: PreSendAction;
|
|
12
|
+
export declare function removedCount(this: IExecuteSingleFunctions): Promise<INodeExecutionData[]>;
|
|
13
|
+
export declare function triggerItems(this: IExecuteSingleFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|
|
14
|
+
export declare function contactProgress(this: IExecuteSingleFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|
|
15
|
+
export declare const advanceBody: PreSendAction;
|
|
16
|
+
export declare const automationOperations: INodeProperties;
|
|
17
|
+
export declare const automationFields: INodeProperties[];
|
|
18
|
+
export {};
|