n8n-nodes-corteksa 0.0.0-stage → 0.1.1
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/LICENSE.md +21 -0
- package/README.md +170 -2
- package/dist/credentials/CorteksaApi.credentials.d.ts +10 -0
- package/dist/credentials/CorteksaApi.credentials.js +48 -0
- package/dist/credentials/CorteksaApi.credentials.js.map +1 -0
- package/dist/icons/corteksa.dark.svg +4 -0
- package/dist/icons/corteksa.svg +4 -0
- package/dist/nodes/Corteksa/Corteksa.node.d.ts +57 -0
- package/dist/nodes/Corteksa/Corteksa.node.js +138 -0
- package/dist/nodes/Corteksa/Corteksa.node.js.map +1 -0
- package/dist/nodes/Corteksa/Corteksa.node.json +18 -0
- package/dist/nodes/Corteksa/listSearch/searchConversations.d.ts +3 -0
- package/dist/nodes/Corteksa/listSearch/searchConversations.js +20 -0
- package/dist/nodes/Corteksa/listSearch/searchConversations.js.map +1 -0
- package/dist/nodes/Corteksa/listSearch/searchMessageTemplates.d.ts +2 -0
- package/dist/nodes/Corteksa/listSearch/searchMessageTemplates.js +23 -0
- package/dist/nodes/Corteksa/listSearch/searchMessageTemplates.js.map +1 -0
- package/dist/nodes/Corteksa/listSearch/searchRecords.d.ts +4 -0
- package/dist/nodes/Corteksa/listSearch/searchRecords.js +38 -0
- package/dist/nodes/Corteksa/listSearch/searchRecords.js.map +1 -0
- package/dist/nodes/Corteksa/listSearch/searchUnits.d.ts +2 -0
- package/dist/nodes/Corteksa/listSearch/searchUnits.js +16 -0
- package/dist/nodes/Corteksa/listSearch/searchUnits.js.map +1 -0
- package/dist/nodes/Corteksa/listSearch/searchWorkflows.d.ts +2 -0
- package/dist/nodes/Corteksa/listSearch/searchWorkflows.js +9 -0
- package/dist/nodes/Corteksa/listSearch/searchWorkflows.js.map +1 -0
- package/dist/nodes/Corteksa/loadOptions/fields.d.ts +10 -0
- package/dist/nodes/Corteksa/loadOptions/fields.js +98 -0
- package/dist/nodes/Corteksa/loadOptions/fields.js.map +1 -0
- package/dist/nodes/Corteksa/loadOptions/lists.d.ts +12 -0
- package/dist/nodes/Corteksa/loadOptions/lists.js +108 -0
- package/dist/nodes/Corteksa/loadOptions/lists.js.map +1 -0
- package/dist/nodes/Corteksa/resourceMapping/getFields.d.ts +5 -0
- package/dist/nodes/Corteksa/resourceMapping/getFields.js +29 -0
- package/dist/nodes/Corteksa/resourceMapping/getFields.js.map +1 -0
- package/dist/nodes/Corteksa/resources/approval/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/approval/index.js +111 -0
- package/dist/nodes/Corteksa/resources/approval/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/comment/fields.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/comment/fields.js +92 -0
- package/dist/nodes/Corteksa/resources/comment/fields.js.map +1 -0
- package/dist/nodes/Corteksa/resources/comment/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/comment/index.js +73 -0
- package/dist/nodes/Corteksa/resources/comment/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/conversation/get.d.ts +7 -0
- package/dist/nodes/Corteksa/resources/conversation/get.js +76 -0
- package/dist/nodes/Corteksa/resources/conversation/get.js.map +1 -0
- package/dist/nodes/Corteksa/resources/conversation/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/conversation/index.js +147 -0
- package/dist/nodes/Corteksa/resources/conversation/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/conversation/manage.d.ts +8 -0
- package/dist/nodes/Corteksa/resources/conversation/manage.js +165 -0
- package/dist/nodes/Corteksa/resources/conversation/manage.js.map +1 -0
- package/dist/nodes/Corteksa/resources/conversation/send.d.ts +8 -0
- package/dist/nodes/Corteksa/resources/conversation/send.js +233 -0
- package/dist/nodes/Corteksa/resources/conversation/send.js.map +1 -0
- package/dist/nodes/Corteksa/resources/document/index.d.ts +4 -0
- package/dist/nodes/Corteksa/resources/document/index.js +148 -0
- package/dist/nodes/Corteksa/resources/document/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/documentTemplate/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/documentTemplate/index.js +70 -0
- package/dist/nodes/Corteksa/resources/documentTemplate/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/draft.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/email/draft.js +99 -0
- package/dist/nodes/Corteksa/resources/email/draft.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/fields.d.ts +10 -0
- package/dist/nodes/Corteksa/resources/email/fields.js +49 -0
- package/dist/nodes/Corteksa/resources/email/fields.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/email/index.js +87 -0
- package/dist/nodes/Corteksa/resources/email/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/link.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/email/link.js +63 -0
- package/dist/nodes/Corteksa/resources/email/link.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/reply.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/email/reply.js +79 -0
- package/dist/nodes/Corteksa/resources/email/reply.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/send.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/email/send.js +116 -0
- package/dist/nodes/Corteksa/resources/email/send.js.map +1 -0
- package/dist/nodes/Corteksa/resources/email/threads.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/email/threads.js +53 -0
- package/dist/nodes/Corteksa/resources/email/threads.js.map +1 -0
- package/dist/nodes/Corteksa/resources/member/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/member/index.js +77 -0
- package/dist/nodes/Corteksa/resources/member/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/assign.d.ts +7 -0
- package/dist/nodes/Corteksa/resources/record/assign.js +82 -0
- package/dist/nodes/Corteksa/resources/record/assign.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/attachFile.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/record/attachFile.js +57 -0
- package/dist/nodes/Corteksa/resources/record/attachFile.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/create.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/record/create.js +77 -0
- package/dist/nodes/Corteksa/resources/record/create.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/delete.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/record/delete.js +12 -0
- package/dist/nodes/Corteksa/resources/record/delete.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/distribute.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/record/distribute.js +72 -0
- package/dist/nodes/Corteksa/resources/record/distribute.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/get.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/record/get.js +10 -0
- package/dist/nodes/Corteksa/resources/record/get.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/getAll.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/record/getAll.js +125 -0
- package/dist/nodes/Corteksa/resources/record/getAll.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/record/index.js +228 -0
- package/dist/nodes/Corteksa/resources/record/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/link.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/record/link.js +91 -0
- package/dist/nodes/Corteksa/resources/record/link.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/merge.d.ts +4 -0
- package/dist/nodes/Corteksa/resources/record/merge.js +43 -0
- package/dist/nodes/Corteksa/resources/record/merge.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/move.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/record/move.js +152 -0
- package/dist/nodes/Corteksa/resources/record/move.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/search.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/record/search.js +22 -0
- package/dist/nodes/Corteksa/resources/record/search.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/tags.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/record/tags.js +53 -0
- package/dist/nodes/Corteksa/resources/record/tags.js.map +1 -0
- package/dist/nodes/Corteksa/resources/record/update.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/record/update.js +63 -0
- package/dist/nodes/Corteksa/resources/record/update.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/create.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/task/create.js +77 -0
- package/dist/nodes/Corteksa/resources/task/create.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/get.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/task/get.js +17 -0
- package/dist/nodes/Corteksa/resources/task/get.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/getAll.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/task/getAll.js +85 -0
- package/dist/nodes/Corteksa/resources/task/getAll.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/task/index.js +106 -0
- package/dist/nodes/Corteksa/resources/task/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/shared.d.ts +6 -0
- package/dist/nodes/Corteksa/resources/task/shared.js +30 -0
- package/dist/nodes/Corteksa/resources/task/shared.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/status.d.ts +5 -0
- package/dist/nodes/Corteksa/resources/task/status.js +41 -0
- package/dist/nodes/Corteksa/resources/task/status.js.map +1 -0
- package/dist/nodes/Corteksa/resources/task/update.d.ts +3 -0
- package/dist/nodes/Corteksa/resources/task/update.js +61 -0
- package/dist/nodes/Corteksa/resources/task/update.js.map +1 -0
- package/dist/nodes/Corteksa/resources/team/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/team/index.js +66 -0
- package/dist/nodes/Corteksa/resources/team/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/workflow/index.d.ts +2 -0
- package/dist/nodes/Corteksa/resources/workflow/index.js +120 -0
- package/dist/nodes/Corteksa/resources/workflow/index.js.map +1 -0
- package/dist/nodes/Corteksa/resources/workflow/run.d.ts +6 -0
- package/dist/nodes/Corteksa/resources/workflow/run.js +109 -0
- package/dist/nodes/Corteksa/resources/workflow/run.js.map +1 -0
- package/dist/nodes/Corteksa/shared/descriptions.d.ts +13 -0
- package/dist/nodes/Corteksa/shared/descriptions.js +100 -0
- package/dist/nodes/Corteksa/shared/descriptions.js.map +1 -0
- package/dist/nodes/Corteksa/shared/fields.d.ts +10 -0
- package/dist/nodes/Corteksa/shared/fields.js +210 -0
- package/dist/nodes/Corteksa/shared/fields.js.map +1 -0
- package/dist/nodes/Corteksa/shared/output.d.ts +16 -0
- package/dist/nodes/Corteksa/shared/output.js +139 -0
- package/dist/nodes/Corteksa/shared/output.js.map +1 -0
- package/dist/nodes/Corteksa/shared/parameters.d.ts +8 -0
- package/dist/nodes/Corteksa/shared/parameters.js +42 -0
- package/dist/nodes/Corteksa/shared/parameters.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/CorteksaTrigger.node.d.ts +29 -0
- package/dist/nodes/CorteksaTrigger/CorteksaTrigger.node.js +112 -0
- package/dist/nodes/CorteksaTrigger/CorteksaTrigger.node.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/CorteksaTrigger.node.json +18 -0
- package/dist/nodes/CorteksaTrigger/description.d.ts +2 -0
- package/dist/nodes/CorteksaTrigger/description.js +162 -0
- package/dist/nodes/CorteksaTrigger/description.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/events.d.ts +7 -0
- package/dist/nodes/CorteksaTrigger/events.js +113 -0
- package/dist/nodes/CorteksaTrigger/events.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/filters.d.ts +3 -0
- package/dist/nodes/CorteksaTrigger/filters.js +58 -0
- package/dist/nodes/CorteksaTrigger/filters.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/loadOptions.d.ts +6 -0
- package/dist/nodes/CorteksaTrigger/loadOptions.js +41 -0
- package/dist/nodes/CorteksaTrigger/loadOptions.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/output.d.ts +10 -0
- package/dist/nodes/CorteksaTrigger/output.js +343 -0
- package/dist/nodes/CorteksaTrigger/output.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/signature.d.ts +10 -0
- package/dist/nodes/CorteksaTrigger/signature.js +37 -0
- package/dist/nodes/CorteksaTrigger/signature.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/subscription.d.ts +6 -0
- package/dist/nodes/CorteksaTrigger/subscription.js +110 -0
- package/dist/nodes/CorteksaTrigger/subscription.js.map +1 -0
- package/dist/nodes/CorteksaTrigger/types.d.ts +8 -0
- package/dist/nodes/CorteksaTrigger/types.js +3 -0
- package/dist/nodes/CorteksaTrigger/types.js.map +1 -0
- package/dist/nodes/shared/listSearch.d.ts +8 -0
- package/dist/nodes/shared/listSearch.js +62 -0
- package/dist/nodes/shared/listSearch.js.map +1 -0
- package/dist/nodes/shared/loadOptions.d.ts +7 -0
- package/dist/nodes/shared/loadOptions.js +64 -0
- package/dist/nodes/shared/loadOptions.js.map +1 -0
- package/dist/nodes/shared/records.d.ts +18 -0
- package/dist/nodes/shared/records.js +49 -0
- package/dist/nodes/shared/records.js.map +1 -0
- package/dist/nodes/shared/transport.d.ts +17 -0
- package/dist/nodes/shared/transport.js +138 -0
- package/dist/nodes/shared/transport.js.map +1 -0
- package/dist/nodes/shared/types.d.ts +28 -0
- package/dist/nodes/shared/types.js +3 -0
- package/dist/nodes/shared/types.js.map +1 -0
- package/dist/nodes/shared/values.d.ts +14 -0
- package/dist/nodes/shared/values.js +63 -0
- package/dist/nodes/shared/values.js.map +1 -0
- package/dist/package.json +55 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +54 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Corteksa
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,171 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n8n-nodes-corteksa
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This is an n8n community node package for [Corteksa](https://corteksa.com), the CRM for sales and support teams. It lets
|
|
4
|
+
your n8n workflows work with Corteksa records, tasks, comments, WhatsApp conversations, email, workflows, approvals
|
|
5
|
+
and documents.
|
|
6
|
+
|
|
7
|
+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.
|
|
8
|
+
|
|
9
|
+
[Installation](#installation) ·
|
|
10
|
+
[Credentials](#credentials) ·
|
|
11
|
+
[Operations](#operations) ·
|
|
12
|
+
[Trigger events](#trigger-events) ·
|
|
13
|
+
[Compatibility](#compatibility) ·
|
|
14
|
+
[Usage](#usage) ·
|
|
15
|
+
[Resources](#resources)
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
Corteksa is a verified community node. Installing it takes the instance owner or an admin, and n8n 2.46.1 or later
|
|
20
|
+
(see [Compatibility](#compatibility)).
|
|
21
|
+
|
|
22
|
+
**n8n Cloud.** Turn on **Verified community nodes** in the Admin Panel (Manage) and restart the instance. Then search
|
|
23
|
+
for "Corteksa" in the nodes panel and add it.
|
|
24
|
+
|
|
25
|
+
**Self-hosted.** Verified nodes appear in the nodes panel when both of these are on (both default to `true`):
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
N8N_COMMUNITY_PACKAGES_ENABLED=true
|
|
29
|
+
N8N_VERIFIED_PACKAGES_ENABLED=true
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Restart n8n after changing them. If "Corteksa" still does not appear in search, install it by name: **Settings →
|
|
33
|
+
Community nodes → Install**, enter `n8n-nodes-corteksa`. In queue mode, install it on the main instance and on every
|
|
34
|
+
worker. The n8n [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) covers the npm
|
|
35
|
+
and Docker routes.
|
|
36
|
+
|
|
37
|
+
The package adds two nodes:
|
|
38
|
+
|
|
39
|
+
- **Corteksa**: the actions below.
|
|
40
|
+
- **Corteksa Trigger**: starts a workflow when something happens in Corteksa, see [Trigger events](#trigger-events).
|
|
41
|
+
|
|
42
|
+
## Credentials
|
|
43
|
+
|
|
44
|
+
The nodes sign in with a Corteksa API key.
|
|
45
|
+
|
|
46
|
+
1. In Corteksa, open **Settings > Developers > API keys** and click **New key**.
|
|
47
|
+
2. Give the key access to the units your workflows use (for example Read, Write and Delete on Leads), and tick
|
|
48
|
+
**Send** if your workflows send WhatsApp messages or emails. The key starts with `crtk_live_`. Copy it: Corteksa
|
|
49
|
+
shows it only once.
|
|
50
|
+
3. In n8n, create a **Corteksa API** credential:
|
|
51
|
+
- **API Key**: the key you copied.
|
|
52
|
+
- **Workspace**: keep `app` if you sign in at `app.corteksa.com`. If you sign in at your own address, such as
|
|
53
|
+
`acme.corteksa.com`, enter only its first part: `acme`.
|
|
54
|
+
|
|
55
|
+
n8n checks the credential by reading `GET /v1/me` with it.
|
|
56
|
+
|
|
57
|
+
Each API key can make 120 requests a minute. Past that, Corteksa answers with a rate limit message that says how long
|
|
58
|
+
to wait; turn on **Retry On Fail** in the node settings for large batches.
|
|
59
|
+
|
|
60
|
+
### Calling other endpoints with the HTTP Request node
|
|
61
|
+
|
|
62
|
+
For an endpoint this node does not cover, use the **HTTP Request** node with **Authentication** set to
|
|
63
|
+
**Predefined Credential Type** and **Corteksa API**. The credential adds the `Authorization` header; the URL is
|
|
64
|
+
`https://<workspace>.corteksa.info/api/` followed by the path from the
|
|
65
|
+
[API reference](https://docs.corteksa.com/api-reference/overview), such as `https://app.corteksa.info/api/v1/me`.
|
|
66
|
+
|
|
67
|
+
## Operations
|
|
68
|
+
|
|
69
|
+
In Corteksa, a **unit** is a kind of record, such as Leads, Deals or Suppliers, and its **fields** are the columns of
|
|
70
|
+
those records. Every operation that takes a unit lists the units the API key can read.
|
|
71
|
+
|
|
72
|
+
| Resource | Operations |
|
|
73
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| Record | Create, Get, Get Many (filter by a field value or an assignee, sort), Search (full text), Update, Delete, Assign, Unassign, Distribute (lead distribution scenario or rule), Add Tags, Remove Tags, Link, Unlink, Move (to another unit), Merge (duplicates), Attach File |
|
|
75
|
+
| Task | Create (optionally about a record), Get, Get Many, Update, Complete, Reopen, Delete |
|
|
76
|
+
| Comment | Create, Reply, Update, Delete, Get Many |
|
|
77
|
+
| Conversation | Send Message, Send WhatsApp Message (to a record), Send WhatsApp Template (to a record), Send WhatsApp Poll, Get, Get Many (by phone number or record), Update (answered, archived, starred, pinned, read), Assign, Add Tags, Remove Tags |
|
|
78
|
+
| Email | Send (to a record), Reply, Create Draft, Link to Record, Get Many Threads (of a record) |
|
|
79
|
+
| Workflow | Run (workflows with an API or webhook trigger), Retry Run, Get Many |
|
|
80
|
+
| Approval | Approve, Reject, Get Many |
|
|
81
|
+
| Member | Get Many |
|
|
82
|
+
| Team | Get Many |
|
|
83
|
+
| Document | Generate (a PDF from a document template, optionally saved to a file field of the record) |
|
|
84
|
+
| Document Template | Get Many |
|
|
85
|
+
|
|
86
|
+
Create and Update take the unit's own fields through a field mapper that loads the fields of the chosen unit.
|
|
87
|
+
Multi-select and tag fields take option labels or IDs separated by commas; relation fields take record IDs.
|
|
88
|
+
|
|
89
|
+
Operations that return records, tasks, comments, conversations, email threads or workflows have a **Simplify**
|
|
90
|
+
option, on by default, that returns the ten most used values. Turn it off for the full Corteksa response, where
|
|
91
|
+
record values are keyed by field ID.
|
|
92
|
+
|
|
93
|
+
The node can be used as a tool by the n8n AI Agent.
|
|
94
|
+
|
|
95
|
+
## Trigger events
|
|
96
|
+
|
|
97
|
+
The **Corteksa Trigger** node watches one event. When you activate the workflow, the node subscribes to that event in
|
|
98
|
+
Corteksa with the node's webhook URL; when you deactivate it, the node deletes the subscription. Changes made with the
|
|
99
|
+
same API key, for example by a Corteksa node in another workflow, also start it.
|
|
100
|
+
|
|
101
|
+
| Event | Starts the workflow when | Filters |
|
|
102
|
+
| ---------------------- | --------------------------------------------------------- | ------------------------------------------------ |
|
|
103
|
+
| Approval Requested | a workflow run pauses for an approval | Workflow |
|
|
104
|
+
| Comment Created | someone comments on a record of the chosen unit | Object (required) |
|
|
105
|
+
| Conversation Assigned | a conversation is given to a member | Assigned To |
|
|
106
|
+
| Email Received | a connected mailbox receives an email | Mailbox |
|
|
107
|
+
| Email Sent | an email is sent from a connected mailbox | Mailbox |
|
|
108
|
+
| Message Received | a WhatsApp, Instagram, Facebook or TikTok message arrives | Channel Type, Channel |
|
|
109
|
+
| Message Sent | a WhatsApp, Instagram, Facebook or TikTok message is sent | Channel Type, Channel |
|
|
110
|
+
| Notification Created | the member who created the API key gets a notification | Notification Kind |
|
|
111
|
+
| Record Created | a record is created in the chosen unit | Object (required) |
|
|
112
|
+
| Record Deleted | a record of the chosen unit is deleted | Object (required) |
|
|
113
|
+
| Record Stage Changed | a record of the chosen unit moves to another stage | Object (required), Stage Field, New Stages |
|
|
114
|
+
| Record Updated | a record of the chosen unit changes | Object (required), Watched Fields (or Assignees) |
|
|
115
|
+
| Task Completed | a task is marked as done | |
|
|
116
|
+
| Task Created | a task is created | |
|
|
117
|
+
| Workflow Run Completed | a workflow run finishes successfully | Workflow |
|
|
118
|
+
| Workflow Run Failed | a workflow run fails | Workflow |
|
|
119
|
+
|
|
120
|
+
**Object** is the unit to watch. Corteksa narrows a subscription by unit only, so the node applies every other filter
|
|
121
|
+
itself: a delivery that does not match is acknowledged and does not start the workflow. Leave a filter empty to accept
|
|
122
|
+
every delivery of the event. **New Stages** are stage IDs, so a filter survives a rename of the stage.
|
|
123
|
+
|
|
124
|
+
Every delivery is signature-verified. Corteksa signs each one with the
|
|
125
|
+
[Standard Webhooks](https://www.standardwebhooks.com/) scheme, using the signing secret it returns when the node
|
|
126
|
+
subscribes. A delivery with a missing or wrong signature, or a timestamp more than five minutes old, is answered with
|
|
127
|
+
`401` and does not start the workflow. **Send test event** in Corteksa reaches the node but does not start the
|
|
128
|
+
workflow either.
|
|
129
|
+
|
|
130
|
+
**Simplify**, on by default, returns one flat item per event:
|
|
131
|
+
|
|
132
|
+
- Record Created, Updated and Stage Changed and the task events read the record again, so the item holds its current
|
|
133
|
+
values: ID, name, link, owner, assignees, creator, linked record, and every field value keyed by field ID. A record
|
|
134
|
+
deleted since the event comes back with empty values.
|
|
135
|
+
- Comment Created returns the comment, whether it is a reply, its author, and the name and link of the record.
|
|
136
|
+
- Record Updated adds the changed fields, with their old and new values, and the previous assignees. Record Stage
|
|
137
|
+
Changed adds the new and previous stage. Task events add the title, description, status, priority, type and dates.
|
|
138
|
+
- Record Deleted returns the record as Corteksa stored it when it was deleted.
|
|
139
|
+
- Message, email, conversation, notification, approval and workflow run events return the event's own values, such as
|
|
140
|
+
the message text, the sender, the conversation and the linked record.
|
|
141
|
+
|
|
142
|
+
Turn Simplify off for the full Corteksa event. For record, task and comment events, the current record is added to it
|
|
143
|
+
under `record`.
|
|
144
|
+
|
|
145
|
+
## Compatibility
|
|
146
|
+
|
|
147
|
+
- Requires n8n 2.46.1 or later.
|
|
148
|
+
- Tested with n8n 2.48.4 against the production Corteksa API.
|
|
149
|
+
|
|
150
|
+
## Usage
|
|
151
|
+
|
|
152
|
+
- IDs in Corteksa are short strings (for example `98379c221ffe`), shown as "ID" in this node. Every list in the node
|
|
153
|
+
also accepts an ID or an expression, so you can map IDs from a Corteksa Trigger or a previous step.
|
|
154
|
+
- Delete operations return `{ "deleted": true }`.
|
|
155
|
+
- Sending WhatsApp messages and emails needs the **Send** access on the API key, and a connected WhatsApp number or
|
|
156
|
+
mailbox in Corteksa.
|
|
157
|
+
- Corteksa answers refusals with a message and a code, such as `DISTRIBUTION_RECORD_ALREADY_OWNED`. The node shows
|
|
158
|
+
both, with what to change.
|
|
159
|
+
|
|
160
|
+
## Resources
|
|
161
|
+
|
|
162
|
+
- [Corteksa API reference](https://docs.corteksa.com/api-reference/overview)
|
|
163
|
+
- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
|
|
164
|
+
|
|
165
|
+
## Version history
|
|
166
|
+
|
|
167
|
+
See [CHANGELOG.md](CHANGELOG.md).
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
[MIT](LICENSE.md)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class CorteksaApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CorteksaApi = void 0;
|
|
4
|
+
class CorteksaApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'corteksaApi';
|
|
7
|
+
this.displayName = 'Corteksa API';
|
|
8
|
+
this.icon = { light: 'file:../icons/corteksa.svg', dark: 'file:../icons/corteksa.dark.svg' };
|
|
9
|
+
this.documentationUrl = 'https://docs.corteksa.com/api-reference/overview';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'API Key',
|
|
13
|
+
name: 'apiKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: { password: true },
|
|
16
|
+
required: true,
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'In Corteksa, go to Settings > Developers > API keys, click New key, give it access to the units your workflows use, and paste the key here. It starts with crtk_live_.',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Workspace',
|
|
22
|
+
name: 'workspace',
|
|
23
|
+
type: 'string',
|
|
24
|
+
required: true,
|
|
25
|
+
default: 'app',
|
|
26
|
+
placeholder: 'e.g. acme',
|
|
27
|
+
description: 'Keep "app" if you sign in at app.corteksa.com. If you sign in at your own address, such as acme.corteksa.com, enter only its first part: acme.',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
this.authenticate = {
|
|
31
|
+
type: 'generic',
|
|
32
|
+
properties: {
|
|
33
|
+
headers: {
|
|
34
|
+
Authorization: '=Bearer {{$credentials.apiKey.trim()}}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
this.test = {
|
|
39
|
+
request: {
|
|
40
|
+
baseURL: '={{ "https://" + ((String($credentials.workspace || "app").trim().toLowerCase().replace(/^[a-z]+:\\/\\//, "").split(/[\\/?#:.]/)[0]) || "app") + ".corteksa.info/api" }}',
|
|
41
|
+
url: '/v1/me',
|
|
42
|
+
method: 'GET',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CorteksaApi = CorteksaApi;
|
|
48
|
+
//# sourceMappingURL=CorteksaApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorteksaApi.credentials.js","sourceRoot":"","sources":["../../credentials/CorteksaApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAE7B,SAAI,GAAS,EAAE,KAAK,EAAE,4BAA4B,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC;QAE9F,qBAAgB,GAAG,kDAAkD,CAAC;QAEtE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,wKAAwK;aACzK;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,WAAW;gBACxB,WAAW,EACV,gJAAgJ;aACjJ;SACD,CAAC;QAGF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,wCAAwC;iBACvD;aACD;SACD,CAAC;QAGF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EACN,0KAA0K;gBAC3K,GAAG,EAAE,QAAQ;gBACb,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAnDD,kCAmDC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-61 0 328 328" fill="none">
|
|
2
|
+
<path d="M105.58 226.78H0v-71.65C0 69.39 70.01 0 155.83 0v50.21c-58.16 0-105.58 46.82-105.58 104.92v21.44h55.33v50.21z" fill="#A58BFF"/>
|
|
3
|
+
<path d="M206.08 327.75H50.81v-50.21h105.02V176.63h50.25v151.12z" fill="#A58BFF"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-61 0 328 328" fill="none">
|
|
2
|
+
<path d="M105.58 226.78H0v-71.65C0 69.39 70.01 0 155.83 0v50.21c-58.16 0-105.58 46.82-105.58 104.92v21.44h55.33v50.21z" fill="#825FFF"/>
|
|
3
|
+
<path d="M206.08 327.75H50.81v-50.21h105.02V176.63h50.25v151.12z" fill="#825FFF"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
import { searchUnits } from './listSearch/searchUnits';
|
|
3
|
+
import { searchLinkedRecords, searchRecords, searchTasks } from './listSearch/searchRecords';
|
|
4
|
+
import { searchMembers, searchWorkflows } from '../shared/listSearch';
|
|
5
|
+
import { getMailboxes, getUnits } from '../shared/loadOptions';
|
|
6
|
+
import { searchStartableWorkflows } from './listSearch/searchWorkflows';
|
|
7
|
+
import { searchConversations } from './listSearch/searchConversations';
|
|
8
|
+
import { searchMessageTemplates } from './listSearch/searchMessageTemplates';
|
|
9
|
+
import { getDocumentFileFields, getEmailFields, getFileFields, getPhoneFields, getRelatedRecords, getRelations, getRequiredTargetFields, getSearchFields, getTags } from './loadOptions/fields';
|
|
10
|
+
import { getApprovals, getChatTags, getComments, getDistributions, getDocumentTemplates, getDuplicates, getEmailTemplates, getEmailThreads, getMembers, getTemplateVariables, getWhatsAppChannels } from './loadOptions/lists';
|
|
11
|
+
import { getRecordCreateFields, getRecordUpdateFields, getTaskCreateFields, getTaskUpdateFields } from './resourceMapping/getFields';
|
|
12
|
+
export declare class Corteksa implements INodeType {
|
|
13
|
+
description: INodeTypeDescription;
|
|
14
|
+
methods: {
|
|
15
|
+
listSearch: {
|
|
16
|
+
searchConversations: typeof searchConversations;
|
|
17
|
+
searchLinkedRecords: typeof searchLinkedRecords;
|
|
18
|
+
searchMembers: typeof searchMembers;
|
|
19
|
+
searchMessageTemplates: typeof searchMessageTemplates;
|
|
20
|
+
searchRecords: typeof searchRecords;
|
|
21
|
+
searchStartableWorkflows: typeof searchStartableWorkflows;
|
|
22
|
+
searchTasks: typeof searchTasks;
|
|
23
|
+
searchUnits: typeof searchUnits;
|
|
24
|
+
searchWorkflows: typeof searchWorkflows;
|
|
25
|
+
};
|
|
26
|
+
loadOptions: {
|
|
27
|
+
getApprovals: typeof getApprovals;
|
|
28
|
+
getChatTags: typeof getChatTags;
|
|
29
|
+
getComments: typeof getComments;
|
|
30
|
+
getDistributions: typeof getDistributions;
|
|
31
|
+
getDocumentFileFields: typeof getDocumentFileFields;
|
|
32
|
+
getDocumentTemplates: typeof getDocumentTemplates;
|
|
33
|
+
getDuplicates: typeof getDuplicates;
|
|
34
|
+
getEmailFields: typeof getEmailFields;
|
|
35
|
+
getEmailTemplates: typeof getEmailTemplates;
|
|
36
|
+
getEmailThreads: typeof getEmailThreads;
|
|
37
|
+
getFileFields: typeof getFileFields;
|
|
38
|
+
getMailboxes: typeof getMailboxes;
|
|
39
|
+
getMembers: typeof getMembers;
|
|
40
|
+
getPhoneFields: typeof getPhoneFields;
|
|
41
|
+
getRelatedRecords: typeof getRelatedRecords;
|
|
42
|
+
getRelations: typeof getRelations;
|
|
43
|
+
getRequiredTargetFields: typeof getRequiredTargetFields;
|
|
44
|
+
getSearchFields: typeof getSearchFields;
|
|
45
|
+
getTags: typeof getTags;
|
|
46
|
+
getTemplateVariables: typeof getTemplateVariables;
|
|
47
|
+
getUnits: typeof getUnits;
|
|
48
|
+
getWhatsAppChannels: typeof getWhatsAppChannels;
|
|
49
|
+
};
|
|
50
|
+
resourceMapping: {
|
|
51
|
+
getRecordCreateFields: typeof getRecordCreateFields;
|
|
52
|
+
getRecordUpdateFields: typeof getRecordUpdateFields;
|
|
53
|
+
getTaskCreateFields: typeof getTaskCreateFields;
|
|
54
|
+
getTaskUpdateFields: typeof getTaskUpdateFields;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Corteksa = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const approval_1 = require("./resources/approval");
|
|
6
|
+
const comment_1 = require("./resources/comment");
|
|
7
|
+
const conversation_1 = require("./resources/conversation");
|
|
8
|
+
const document_1 = require("./resources/document");
|
|
9
|
+
const documentTemplate_1 = require("./resources/documentTemplate");
|
|
10
|
+
const email_1 = require("./resources/email");
|
|
11
|
+
const member_1 = require("./resources/member");
|
|
12
|
+
const record_1 = require("./resources/record");
|
|
13
|
+
const task_1 = require("./resources/task");
|
|
14
|
+
const team_1 = require("./resources/team");
|
|
15
|
+
const workflow_1 = require("./resources/workflow");
|
|
16
|
+
const transport_1 = require("../shared/transport");
|
|
17
|
+
const searchUnits_1 = require("./listSearch/searchUnits");
|
|
18
|
+
const searchRecords_1 = require("./listSearch/searchRecords");
|
|
19
|
+
const listSearch_1 = require("../shared/listSearch");
|
|
20
|
+
const loadOptions_1 = require("../shared/loadOptions");
|
|
21
|
+
const searchWorkflows_1 = require("./listSearch/searchWorkflows");
|
|
22
|
+
const searchConversations_1 = require("./listSearch/searchConversations");
|
|
23
|
+
const searchMessageTemplates_1 = require("./listSearch/searchMessageTemplates");
|
|
24
|
+
const fields_1 = require("./loadOptions/fields");
|
|
25
|
+
const lists_1 = require("./loadOptions/lists");
|
|
26
|
+
const getFields_1 = require("./resourceMapping/getFields");
|
|
27
|
+
class Corteksa {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.description = {
|
|
30
|
+
displayName: 'Corteksa',
|
|
31
|
+
name: 'corteksa',
|
|
32
|
+
icon: { light: 'file:../../icons/corteksa.svg', dark: 'file:../../icons/corteksa.dark.svg' },
|
|
33
|
+
group: ['transform'],
|
|
34
|
+
version: 1,
|
|
35
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
36
|
+
description: 'Work with records, tasks, WhatsApp, email and workflows in Corteksa CRM',
|
|
37
|
+
defaults: {
|
|
38
|
+
name: 'Corteksa',
|
|
39
|
+
},
|
|
40
|
+
usableAsTool: true,
|
|
41
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
42
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
43
|
+
credentials: [
|
|
44
|
+
{
|
|
45
|
+
name: 'corteksaApi',
|
|
46
|
+
required: true,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
requestDefaults: {
|
|
50
|
+
baseURL: transport_1.API_BASE_URL,
|
|
51
|
+
headers: {
|
|
52
|
+
Accept: 'application/json',
|
|
53
|
+
'Accept-Language': 'en',
|
|
54
|
+
'Content-Type': 'application/json',
|
|
55
|
+
},
|
|
56
|
+
ignoreHttpStatusErrors: true,
|
|
57
|
+
},
|
|
58
|
+
properties: [
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Resource',
|
|
61
|
+
name: 'resource',
|
|
62
|
+
type: 'options',
|
|
63
|
+
noDataExpression: true,
|
|
64
|
+
options: [
|
|
65
|
+
{ name: 'Approval', value: 'approval' },
|
|
66
|
+
{ name: 'Comment', value: 'comment' },
|
|
67
|
+
{ name: 'Conversation', value: 'conversation' },
|
|
68
|
+
{ name: 'Document', value: 'document' },
|
|
69
|
+
{ name: 'Document Template', value: 'documentTemplate' },
|
|
70
|
+
{ name: 'Email', value: 'email' },
|
|
71
|
+
{ name: 'Member', value: 'member' },
|
|
72
|
+
{ name: 'Record', value: 'record' },
|
|
73
|
+
{ name: 'Task', value: 'task' },
|
|
74
|
+
{ name: 'Team', value: 'team' },
|
|
75
|
+
{ name: 'Workflow', value: 'workflow' },
|
|
76
|
+
],
|
|
77
|
+
default: 'record',
|
|
78
|
+
},
|
|
79
|
+
...approval_1.approvalDescription,
|
|
80
|
+
...comment_1.commentDescription,
|
|
81
|
+
...conversation_1.conversationDescription,
|
|
82
|
+
...document_1.documentDescription,
|
|
83
|
+
...documentTemplate_1.documentTemplateDescription,
|
|
84
|
+
...email_1.emailDescription,
|
|
85
|
+
...member_1.memberDescription,
|
|
86
|
+
...record_1.recordDescription,
|
|
87
|
+
...task_1.taskDescription,
|
|
88
|
+
...team_1.teamDescription,
|
|
89
|
+
...workflow_1.workflowDescription,
|
|
90
|
+
],
|
|
91
|
+
};
|
|
92
|
+
this.methods = {
|
|
93
|
+
listSearch: {
|
|
94
|
+
searchConversations: searchConversations_1.searchConversations,
|
|
95
|
+
searchLinkedRecords: searchRecords_1.searchLinkedRecords,
|
|
96
|
+
searchMembers: listSearch_1.searchMembers,
|
|
97
|
+
searchMessageTemplates: searchMessageTemplates_1.searchMessageTemplates,
|
|
98
|
+
searchRecords: searchRecords_1.searchRecords,
|
|
99
|
+
searchStartableWorkflows: searchWorkflows_1.searchStartableWorkflows,
|
|
100
|
+
searchTasks: searchRecords_1.searchTasks,
|
|
101
|
+
searchUnits: searchUnits_1.searchUnits,
|
|
102
|
+
searchWorkflows: listSearch_1.searchWorkflows,
|
|
103
|
+
},
|
|
104
|
+
loadOptions: {
|
|
105
|
+
getApprovals: lists_1.getApprovals,
|
|
106
|
+
getChatTags: lists_1.getChatTags,
|
|
107
|
+
getComments: lists_1.getComments,
|
|
108
|
+
getDistributions: lists_1.getDistributions,
|
|
109
|
+
getDocumentFileFields: fields_1.getDocumentFileFields,
|
|
110
|
+
getDocumentTemplates: lists_1.getDocumentTemplates,
|
|
111
|
+
getDuplicates: lists_1.getDuplicates,
|
|
112
|
+
getEmailFields: fields_1.getEmailFields,
|
|
113
|
+
getEmailTemplates: lists_1.getEmailTemplates,
|
|
114
|
+
getEmailThreads: lists_1.getEmailThreads,
|
|
115
|
+
getFileFields: fields_1.getFileFields,
|
|
116
|
+
getMailboxes: loadOptions_1.getMailboxes,
|
|
117
|
+
getMembers: lists_1.getMembers,
|
|
118
|
+
getPhoneFields: fields_1.getPhoneFields,
|
|
119
|
+
getRelatedRecords: fields_1.getRelatedRecords,
|
|
120
|
+
getRelations: fields_1.getRelations,
|
|
121
|
+
getRequiredTargetFields: fields_1.getRequiredTargetFields,
|
|
122
|
+
getSearchFields: fields_1.getSearchFields,
|
|
123
|
+
getTags: fields_1.getTags,
|
|
124
|
+
getTemplateVariables: lists_1.getTemplateVariables,
|
|
125
|
+
getUnits: loadOptions_1.getUnits,
|
|
126
|
+
getWhatsAppChannels: lists_1.getWhatsAppChannels,
|
|
127
|
+
},
|
|
128
|
+
resourceMapping: {
|
|
129
|
+
getRecordCreateFields: getFields_1.getRecordCreateFields,
|
|
130
|
+
getRecordUpdateFields: getFields_1.getRecordUpdateFields,
|
|
131
|
+
getTaskCreateFields: getFields_1.getTaskCreateFields,
|
|
132
|
+
getTaskUpdateFields: getFields_1.getTaskUpdateFields,
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.Corteksa = Corteksa;
|
|
138
|
+
//# sourceMappingURL=Corteksa.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Corteksa.node.js","sourceRoot":"","sources":["../../../nodes/Corteksa/Corteksa.node.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-corteksa.corteksa",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Sales", "Communication"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://github.com/DevAbdelrahmanSayedCorteksa/n8n-nodes-corteksa?tab=readme-ov-file#credentials"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/DevAbdelrahmanSayedCorteksa/n8n-nodes-corteksa?tab=readme-ov-file"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare const CHATS_PAGE_SIZE = 50;
|
|
3
|
+
export declare function searchConversations(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHATS_PAGE_SIZE = void 0;
|
|
4
|
+
exports.searchConversations = searchConversations;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const values_1 = require("../../shared/values");
|
|
7
|
+
const listSearch_1 = require("../../shared/listSearch");
|
|
8
|
+
exports.CHATS_PAGE_SIZE = 50;
|
|
9
|
+
async function searchConversations(filter, paginationToken) {
|
|
10
|
+
return await listSearch_1.searchByPage.call(this, (0, n8n_workflow_1.requestPath) `/v1/messaging/chats/all`, { search: (0, listSearch_1.searchTerm)(filter) }, paginationToken, (chat) => {
|
|
11
|
+
const slug = (0, values_1.asText)(chat.slug);
|
|
12
|
+
if (!slug) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
const contact = (0, values_1.asText)(chat.name) || (0, values_1.asText)(chat.phone) || slug;
|
|
16
|
+
const channel = (0, values_1.asText)(chat.session_display_name);
|
|
17
|
+
return { name: channel ? `${contact} · ${channel}` : contact, value: slug };
|
|
18
|
+
}, exports.CHATS_PAGE_SIZE);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=searchConversations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchConversations.js","sourceRoot":"","sources":["../../../../nodes/Corteksa/listSearch/searchConversations.ts"],"names":[],"mappings":";;;AAOA,kDAqBC;AA3BD,+CAA2C;AAC3C,gDAA6C;AAC7C,wDAAmE;AAEtD,QAAA,eAAe,GAAG,EAAE,CAAC;AAE3B,KAAK,UAAU,mBAAmB,CAExC,MAAe,EACf,eAAwB;IAExB,OAAO,MAAM,yBAAY,CAAC,IAAI,CAC7B,IAAI,EACJ,IAAA,0BAAW,EAAA,yBAAyB,EACpC,EAAE,MAAM,EAAE,IAAA,uBAAU,EAAC,MAAM,CAAC,EAAE,EAC9B,eAAe,EACf,CAAC,IAAI,EAAE,EAAE;QACR,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,IAAI,EAAE,CAAC;YACX,OAAO,SAAS,CAAC;QAClB,CAAC;QACD,MAAM,OAAO,GAAG,IAAA,eAAM,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAA,eAAM,EAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;QAChE,MAAM,OAAO,GAAG,IAAA,eAAM,EAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAClD,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,MAAM,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC7E,CAAC,EACD,uBAAe,CACf,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchMessageTemplates = searchMessageTemplates;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const values_1 = require("../../shared/values");
|
|
6
|
+
const listSearch_1 = require("../../shared/listSearch");
|
|
7
|
+
async function searchMessageTemplates(filter, paginationToken) {
|
|
8
|
+
var _a;
|
|
9
|
+
const channel = (0, listSearch_1.textParameter)(this, 'channel');
|
|
10
|
+
const term = (_a = filter === null || filter === void 0 ? void 0 : filter.trim().toLowerCase()) !== null && _a !== void 0 ? _a : '';
|
|
11
|
+
return await listSearch_1.searchByPage.call(this, (0, n8n_workflow_1.requestPath) `/v2/templates`, { status: 'ACTIVE', is_active: true }, paginationToken, (template) => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const slug = (0, values_1.asText)(template.slug);
|
|
14
|
+
const name = (_b = (_a = (0, values_1.asText)(template.name)) !== null && _a !== void 0 ? _a : slug) !== null && _b !== void 0 ? _b : '';
|
|
15
|
+
const sendable = !channel || template.type === 'GENERAL' || ((_c = (0, values_1.asObject)(template.session)) === null || _c === void 0 ? void 0 : _c.slug) === channel;
|
|
16
|
+
if (!slug || !sendable || !name.toLowerCase().includes(term)) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
const language = (0, values_1.asText)(template.language);
|
|
20
|
+
return { name: language ? `${name} (${language})` : name, value: slug };
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=searchMessageTemplates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchMessageTemplates.js","sourceRoot":"","sources":["../../../../nodes/Corteksa/listSearch/searchMessageTemplates.ts"],"names":[],"mappings":";;AAMA,wDAwBC;AA7BD,+CAA2C;AAC3C,gDAAuD;AACvD,wDAAsE;AAG/D,KAAK,UAAU,sBAAsB,CAE3C,MAAe,EACf,eAAwB;;IAExB,MAAM,OAAO,GAAG,IAAA,0BAAa,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,GAAG,WAAW,EAAE,mCAAI,EAAE,CAAC;IAChD,OAAO,MAAM,yBAAY,CAAC,IAAI,CAC7B,IAAI,EACJ,IAAA,0BAAW,EAAA,eAAe,EAC1B,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,EACrC,eAAe,EACf,CAAC,QAAQ,EAAE,EAAE;;QACZ,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,IAAI,GAAG,MAAA,MAAA,IAAA,eAAM,EAAC,QAAQ,CAAC,IAAI,CAAC,mCAAI,IAAI,mCAAI,EAAE,CAAC;QACjD,MAAM,QAAQ,GACb,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,CAAA,MAAA,IAAA,iBAAQ,EAAC,QAAQ,CAAC,OAAO,CAAC,0CAAE,IAAI,MAAK,OAAO,CAAC;QACzF,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9D,OAAO,SAAS,CAAC;QAClB,CAAC;QACD,MAAM,QAAQ,GAAG,IAAA,eAAM,EAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC3C,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,QAAQ,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACzE,CAAC,CACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare function searchRecords(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
3
|
+
export declare function searchLinkedRecords(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
4
|
+
export declare function searchTasks(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchRecords = searchRecords;
|
|
4
|
+
exports.searchLinkedRecords = searchLinkedRecords;
|
|
5
|
+
exports.searchTasks = searchTasks;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
const transport_1 = require("../../shared/transport");
|
|
8
|
+
const values_1 = require("../../shared/values");
|
|
9
|
+
const listSearch_1 = require("../../shared/listSearch");
|
|
10
|
+
async function searchRecordsOf(context, unitParameter, filter, paginationToken) {
|
|
11
|
+
const unit = (0, listSearch_1.textParameter)(context, unitParameter);
|
|
12
|
+
if (!unit) {
|
|
13
|
+
return { results: [] };
|
|
14
|
+
}
|
|
15
|
+
const workspace = await transport_1.workspaceOf.call(context);
|
|
16
|
+
return await listSearch_1.searchByPage.call(context, (0, n8n_workflow_1.requestPath) `/v1/object/data/${unit}/lookup`, { search: (0, listSearch_1.searchTerm)(filter) }, paginationToken, (row) => {
|
|
17
|
+
const slug = (0, values_1.asText)(row.slug);
|
|
18
|
+
return slug
|
|
19
|
+
? { name: (0, values_1.asText)(row.name) || slug, value: slug, url: (0, transport_1.recordUrl)(workspace, unit, slug) }
|
|
20
|
+
: undefined;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async function searchRecords(filter, paginationToken) {
|
|
24
|
+
return await searchRecordsOf(this, 'unit', filter, paginationToken);
|
|
25
|
+
}
|
|
26
|
+
async function searchLinkedRecords(filter, paginationToken) {
|
|
27
|
+
return await searchRecordsOf(this, 'linkedUnit', filter, paginationToken);
|
|
28
|
+
}
|
|
29
|
+
async function searchTasks(filter, paginationToken) {
|
|
30
|
+
const workspace = await transport_1.workspaceOf.call(this);
|
|
31
|
+
return await listSearch_1.searchByPage.call(this, (0, n8n_workflow_1.requestPath) `/v1/object/data/task/lookup`, { search: (0, listSearch_1.searchTerm)(filter) }, paginationToken, (row) => {
|
|
32
|
+
const slug = (0, values_1.asText)(row.slug);
|
|
33
|
+
return slug
|
|
34
|
+
? { name: (0, values_1.asText)(row.name) || slug, value: slug, url: (0, transport_1.recordUrl)(workspace, 'task', slug) }
|
|
35
|
+
: undefined;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=searchRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchRecords.js","sourceRoot":"","sources":["../../../../nodes/Corteksa/listSearch/searchRecords.ts"],"names":[],"mappings":";;AA+BA,sCAMC;AAED,kDAMC;AAED,kCAkBC;AAhED,+CAA2C;AAC3C,sDAAgE;AAChE,gDAA6C;AAC7C,wDAAkF;AAElF,KAAK,UAAU,eAAe,CAC7B,OAA8B,EAC9B,aAAqB,EACrB,MAA0B,EAC1B,eAAmC;IAEnC,MAAM,IAAI,GAAG,IAAA,0BAAa,EAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IACnD,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACxB,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,uBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClD,OAAO,MAAM,yBAAY,CAAC,IAAI,CAC7B,OAAO,EACP,IAAA,0BAAW,EAAA,mBAAmB,IAAI,SAAS,EAC3C,EAAE,MAAM,EAAE,IAAA,uBAAU,EAAC,MAAM,CAAC,EAAE,EAC9B,eAAe,EACf,CAAC,GAAG,EAAE,EAAE;QACP,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI;YACV,CAAC,CAAC,EAAE,IAAI,EAAE,IAAA,eAAM,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAA,qBAAS,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;YACxF,CAAC,CAAC,SAAS,CAAC;IACd,CAAC,CACD,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,aAAa,CAElC,MAAe,EACf,eAAwB;IAExB,OAAO,MAAM,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AACrE,CAAC;AAEM,KAAK,UAAU,mBAAmB,CAExC,MAAe,EACf,eAAwB;IAExB,OAAO,MAAM,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AAC3E,CAAC;AAEM,KAAK,UAAU,WAAW,CAEhC,MAAe,EACf,eAAwB;IAExB,MAAM,SAAS,GAAG,MAAM,uBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,MAAM,yBAAY,CAAC,IAAI,CAC7B,IAAI,EACJ,IAAA,0BAAW,EAAA,6BAA6B,EACxC,EAAE,MAAM,EAAE,IAAA,uBAAU,EAAC,MAAM,CAAC,EAAE,EAC9B,eAAe,EACf,CAAC,GAAG,EAAE,EAAE;QACP,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI;YACV,CAAC,CAAC,EAAE,IAAI,EAAE,IAAA,eAAM,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAA,qBAAS,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;YAC1F,CAAC,CAAC,SAAS,CAAC;IACd,CAAC,CACD,CAAC;AACH,CAAC"}
|