n8n-nodes-didar-crm 0.0.16 → 0.0.17
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 +97 -53
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,35 +1,60 @@
|
|
|
1
1
|
# n8n-nodes-didar-crm
|
|
2
2
|
|
|
3
|
-
Custom **n8n nodes** for integrating with **Didar CRM**.
|
|
3
|
+
Custom **n8n nodes** for integrating with **Didar CRM**.
|
|
4
4
|
This package provides actions and triggers to automate workflows with your Didar CRM account.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
## ✨ Features
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
### Trigger
|
|
11
|
+
- **Didar CRM Trigger** → receive webhook events for entity changes, updates, deletions.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
### Deal
|
|
14
|
+
- Create a deal
|
|
15
|
+
- Update a deal (by Id)
|
|
16
|
+
- Get deal details (by Id)
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
### Person (Contact)
|
|
19
|
+
- Create a person
|
|
20
|
+
- Update a person (by Id)
|
|
21
|
+
- Get person details (by Id)
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
### Company
|
|
24
|
+
- Create a company
|
|
25
|
+
- Update a company (by Id)
|
|
26
|
+
- Get company details (by Id)
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
### Activity
|
|
29
|
+
- Create an activity
|
|
30
|
+
- Update an activity (by Id)
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
### Note
|
|
33
|
+
- Create a note
|
|
34
|
+
- Update a note (by Id)
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
### Case (Card)
|
|
37
|
+
- Create a case
|
|
38
|
+
- Update a case (by Id)
|
|
27
39
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
### Product
|
|
41
|
+
- Create a product
|
|
42
|
+
- Update a product (by Id)
|
|
43
|
+
- Get products by list of codes
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 🧩 Common Features
|
|
48
|
+
|
|
49
|
+
- Dropdown selectors for Pipelines, Owners (Users), Activity Types, Product Categories, etc.
|
|
50
|
+
- Manual ID input option for each dropdown field
|
|
51
|
+
- Additional fields for advanced properties:
|
|
52
|
+
- Visibility Type
|
|
53
|
+
- Custom Fields (JSON)
|
|
54
|
+
- Multi-value lists (phones, emails, websites, addresses, bank accounts, labels, users)
|
|
55
|
+
- Correct handling of defaults (zero GUIDs, booleans, etc.)
|
|
56
|
+
- Webhook trigger enforces **POST** requests only
|
|
57
|
+
- Consistent **Owner selection mechanism** (select from list or manual ID) across all resources
|
|
33
58
|
|
|
34
59
|
---
|
|
35
60
|
|
|
@@ -39,41 +64,61 @@ This package provides actions and triggers to automate workflows with your Didar
|
|
|
39
64
|
npm install n8n-nodes-didar-crm
|
|
40
65
|
```
|
|
41
66
|
|
|
42
|
-
|
|
67
|
+
Place the module inside your n8n custom directory (usually `~/.n8n/custom/`) and restart n8n.
|
|
43
68
|
|
|
44
69
|
---
|
|
45
70
|
|
|
46
71
|
## ⚡ Usage
|
|
47
72
|
|
|
48
73
|
### 1. Trigger node
|
|
49
|
-
|
|
50
74
|
Add the **Didar CRM Trigger** node to your workflow.
|
|
75
|
+
- Exposes a webhook URL in n8n
|
|
76
|
+
- Accepts **POST** requests only
|
|
77
|
+
- Returns structured payload:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"data": { ... },
|
|
82
|
+
"changes": [ ... ],
|
|
83
|
+
"meta": { ... },
|
|
84
|
+
"raw": { ... },
|
|
85
|
+
"receivedAt": "timestamp"
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### 2. Resource operations
|
|
90
|
+
|
|
91
|
+
#### Deal
|
|
92
|
+
- **Create** → required fields: `Title`, `OwnerId`, `PipelineId`, `PipelineStageId`
|
|
93
|
+
- **Update** → same as create + `Id`
|
|
94
|
+
- **Get** → requires `Id`
|
|
51
95
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
96
|
+
#### Person (Contact)
|
|
97
|
+
- **Create** → required fields: `LastName`, `OwnerId`
|
|
98
|
+
- **Update** → same as create + `Id`
|
|
99
|
+
- **Get** → requires `Id`
|
|
55
100
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"meta": { ... },
|
|
61
|
-
"raw": { ... },
|
|
62
|
-
"receivedAt": "timestamp"
|
|
63
|
-
}
|
|
64
|
-
```
|
|
101
|
+
#### Company
|
|
102
|
+
- **Create** → required fields: `Name`, `OwnerId`
|
|
103
|
+
- **Update** → same as create + `Id`
|
|
104
|
+
- **Get** → requires `Id`
|
|
65
105
|
|
|
66
|
-
|
|
106
|
+
#### Activity
|
|
107
|
+
- **Create Activity** → required fields: `Title`, `OwnerId`, `ActivityTypeId`
|
|
108
|
+
- **Update Activity** → same as create + `Id`
|
|
67
109
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
110
|
+
#### Note
|
|
111
|
+
- **Create Note** → required fields: `ResultNote`, `OwnerId`
|
|
112
|
+
- **Update Note** → same as create + `Id`
|
|
71
113
|
|
|
72
|
-
|
|
114
|
+
#### Case (Card)
|
|
115
|
+
- **Create Case** → required fields: `Title`, `OwnerId`, `PipelineStageId`, `Status`
|
|
116
|
+
- **Update Case** → same as create + `Id`
|
|
73
117
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
118
|
+
#### Product
|
|
119
|
+
- **Create Product** → required fields: `Title`
|
|
120
|
+
- **Update Product** → same as create + `Id`
|
|
121
|
+
- **Get Products by Codes** → required field: `Code[]` (one or more codes)
|
|
77
122
|
|
|
78
123
|
---
|
|
79
124
|
|
|
@@ -81,8 +126,8 @@ Add the **Didar CRM Trigger** node to your workflow.
|
|
|
81
126
|
|
|
82
127
|
A new credential type **Didar API** is provided.
|
|
83
128
|
|
|
84
|
-
|
|
85
|
-
|
|
129
|
+
- Set your **API Key** and (if required) authentication cookies.
|
|
130
|
+
- Shared across all nodes.
|
|
86
131
|
|
|
87
132
|
---
|
|
88
133
|
|
|
@@ -94,19 +139,18 @@ n8n-nodes-didar-crm/
|
|
|
94
139
|
│── README.md
|
|
95
140
|
│── LICENSE
|
|
96
141
|
│── nodes/
|
|
97
|
-
│ ├── DidarCrm.node.ts # Main entry for
|
|
142
|
+
│ ├── DidarCrm.node.ts # Main entry for resources & operations
|
|
98
143
|
│ ├── DidarCrmTrigger.node.ts # Trigger node
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
│
|
|
102
|
-
│
|
|
103
|
-
│
|
|
104
|
-
│
|
|
105
|
-
│
|
|
106
|
-
│ └── get.operation.ts
|
|
144
|
+
│ ├── deal/ # Deal operations
|
|
145
|
+
│ ├── person/ # Person operations
|
|
146
|
+
│ ├── company/ # Company operations
|
|
147
|
+
│ ├── activity/ # Activity operations
|
|
148
|
+
│ ├── note/ # Note operations
|
|
149
|
+
│ ├── case/ # Case operations
|
|
150
|
+
│ └── product/ # Product operations
|
|
107
151
|
│── lib/
|
|
108
|
-
|
|
109
|
-
|
|
152
|
+
│ ├── http.ts # Request helper
|
|
153
|
+
│ └── loadOptions.ts # Dropdown population
|
|
110
154
|
```
|
|
111
155
|
|
|
112
156
|
---
|
|
@@ -124,7 +168,7 @@ n8n-nodes-didar-crm/
|
|
|
124
168
|
```bash
|
|
125
169
|
npm run build
|
|
126
170
|
```
|
|
127
|
-
4. Link into your n8n custom directory and restart
|
|
171
|
+
4. Link into your n8n custom directory and restart:
|
|
128
172
|
|
|
129
173
|
```bash
|
|
130
174
|
npm link
|