n8n-nodes-leadtime 0.1.0 → 0.1.9
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 +124 -256
- package/credentials/LeadtimeApi.credentials.d.ts.map +1 -0
- package/credentials/LeadtimeApi.credentials.js +41 -0
- package/credentials/LeadtimeApi.credentials.js.map +1 -0
- package/nodes/Leadtime/Leadtime.node.d.ts.map +1 -0
- package/nodes/Leadtime/Leadtime.node.js +13501 -0
- package/nodes/Leadtime/Leadtime.node.js.map +1 -0
- package/package.json +15 -34
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +11 -0
- package/src/index.js.map +1 -0
- package/dist/.tsbuildinfo +0 -1
- package/dist/credentials/LeadtimeApi.credentials.d.ts.map +0 -1
- package/dist/credentials/LeadtimeApi.credentials.js +0 -39
- package/dist/nodes/Leadtime/Leadtime.node.d.ts.map +0 -1
- package/dist/nodes/Leadtime/Leadtime.node.js +0 -13475
- /package/{dist/credentials → credentials}/LeadtimeApi.credentials.d.ts +0 -0
- /package/{dist/nodes → nodes}/Leadtime/Leadtime.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/Leadtime/leadtime.svg +0 -0
package/README.md
CHANGED
|
@@ -1,266 +1,170 @@
|
|
|
1
1
|
# n8n-nodes-leadtime
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
9
|
-
|
|
10
|
-
**Leadtime** is an ERP system designed specifically for digital service companies (IT agencies, SaaS companies, consulting firms) in the DACH region. This n8n community node provides comprehensive access to Leadtime's Public API for workflow automation.
|
|
11
|
-
|
|
12
|
-
---
|
|
3
|
+
n8n community node for Leadtime ERP - Project management, time tracking, billing, and more for digital service companies.
|
|
13
4
|
|
|
14
5
|
## 📦 Installation
|
|
15
6
|
|
|
16
|
-
### In n8n
|
|
17
|
-
|
|
18
|
-
1. Go to **Settings → Community Nodes**
|
|
19
|
-
2. Click **Install a community node**
|
|
20
|
-
3. Enter package name: `n8n-nodes-leadtime`
|
|
21
|
-
4. Install and restart n8n
|
|
22
|
-
|
|
23
|
-
### Manual Installation
|
|
24
|
-
|
|
25
7
|
```bash
|
|
26
|
-
cd ~/.n8n/custom
|
|
27
8
|
npm install n8n-nodes-leadtime
|
|
28
9
|
```
|
|
29
10
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
## 🔐 Credentials Setup
|
|
33
|
-
|
|
34
|
-
1. In n8n, create a new **Leadtime API** credential
|
|
35
|
-
2. Enter your **Personal Access Token**
|
|
36
|
-
- Create one in: Leadtime → Settings → API → Personal Access Tokens
|
|
37
|
-
3. Test the connection (performs a test request to `/workspace/quick-search`)
|
|
38
|
-
|
|
39
|
-
**Required Scopes:**
|
|
40
|
-
- `api:read` - for read operations
|
|
41
|
-
- `api:write` - for create/update/delete operations
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## 🚀 Features
|
|
46
|
-
|
|
47
|
-
- ✅ **159 Operations** across 39 resources
|
|
48
|
-
- ✅ **12 Dynamic Dropdowns** (Projects, Tasks, Employees, Teams, etc.)
|
|
49
|
-
- ✅ **Cascading Dropdowns** (Project → Type → Status → Assignee)
|
|
50
|
-
- ✅ **File Upload** Support (multipart/form-data)
|
|
51
|
-
- ✅ **Pagination** with returnAll option
|
|
52
|
-
- ✅ **Advanced Filtering** (JSON-based filters)
|
|
53
|
-
- ✅ **Bulk Operations** (Create/Update multiple tasks)
|
|
54
|
-
- ✅ **~95% API Coverage** of Leadtime Public API
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## 📚 Supported Resources
|
|
59
|
-
|
|
60
|
-
### Core Business Operations
|
|
61
|
-
|
|
62
|
-
<details>
|
|
63
|
-
<summary><strong>Project Management</strong> (26 operations)</summary>
|
|
11
|
+
After installation, restart n8n. The node will appear in the node palette under **Leadtime**.
|
|
64
12
|
|
|
65
|
-
|
|
66
|
-
- Get Many, Get, Create, Update, Delete
|
|
67
|
-
- Get Categories, Statuses, Phases
|
|
13
|
+
## 🔑 Authentication
|
|
68
14
|
|
|
69
|
-
|
|
70
|
-
- Documentation (articles)
|
|
71
|
-
- Journal (entries)
|
|
72
|
-
- Uploads (files)
|
|
73
|
-
- Documents (project documents)
|
|
15
|
+
The node uses API key authentication. To get your API key:
|
|
74
16
|
|
|
75
|
-
|
|
17
|
+
1. Log in to your Leadtime workspace
|
|
18
|
+
2. Go to **Settings** → **API Keys**
|
|
19
|
+
3. Create a new API key
|
|
20
|
+
4. Copy the key and paste it into the node credentials
|
|
76
21
|
|
|
77
|
-
|
|
78
|
-
<summary><strong>Task Management</strong> (22 operations)</summary>
|
|
22
|
+
## 🎯 Features
|
|
79
23
|
|
|
80
|
-
|
|
81
|
-
- Get Many, Get, Create, Update, Delete
|
|
82
|
-
- Bulk Create, Bulk Update
|
|
83
|
-
- Get Custom Fields
|
|
24
|
+
### Comprehensive API Coverage
|
|
84
25
|
|
|
85
|
-
**
|
|
86
|
-
- Get Many, Create, Update, Delete
|
|
87
|
-
- Status change & time booking in one call
|
|
26
|
+
The node provides access to **200+ operations** across all Leadtime ERP modules:
|
|
88
27
|
|
|
89
|
-
|
|
90
|
-
- Add, Remove
|
|
28
|
+
### Project Management
|
|
91
29
|
|
|
92
|
-
**
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
30
|
+
**Project** (12 operations)
|
|
31
|
+
* Get Many, Get, Create, Update (Full/Partial), Delete
|
|
32
|
+
* Upload File, Get File URL
|
|
33
|
+
* Get Team Members, Get Statistics
|
|
96
34
|
|
|
97
|
-
**Task
|
|
98
|
-
|
|
35
|
+
**Task** (18 operations)
|
|
36
|
+
* Get Many (with filters), Get, Create, Update (Full/Partial), Delete
|
|
37
|
+
* Bulk Create, Bulk Update, Bulk Delete
|
|
38
|
+
* Add Comment, Get Comments
|
|
39
|
+
* Get File URL, Upload File
|
|
40
|
+
* Get Time Bookings, Get Statistics
|
|
99
41
|
|
|
100
|
-
|
|
42
|
+
**Task Comment** (4 operations)
|
|
43
|
+
* Get Many, Get, Create, Update, Delete
|
|
101
44
|
|
|
102
|
-
|
|
103
|
-
|
|
45
|
+
**Task Template** (5 operations)
|
|
46
|
+
* Get Many, Get, Create, Update, Delete
|
|
104
47
|
|
|
105
|
-
**
|
|
106
|
-
|
|
107
|
-
- Mark as Paid/Unpaid/Sent
|
|
108
|
-
- Send via Email
|
|
109
|
-
- Get PDF/XML Download URL
|
|
110
|
-
- Invoice Settings
|
|
111
|
-
- Contact Management
|
|
48
|
+
**Sprint** (6 operations)
|
|
49
|
+
* Get Many, Get, Create, Update, Delete
|
|
112
50
|
|
|
113
|
-
**
|
|
114
|
-
|
|
51
|
+
**Project Template** (5 operations)
|
|
52
|
+
* Get Many, Get, Create, Update, Delete
|
|
115
53
|
|
|
116
|
-
|
|
54
|
+
### CRM & Contacts
|
|
117
55
|
|
|
118
|
-
|
|
56
|
+
**Contact** (1 operation)
|
|
57
|
+
* Get Many (with filters)
|
|
119
58
|
|
|
120
|
-
|
|
121
|
-
<summary><strong>Employees & Teams</strong> (15 operations)</summary>
|
|
122
|
-
|
|
123
|
-
**Employee** - Employee management
|
|
124
|
-
- Get Many, Get, Create, Update, Delete
|
|
125
|
-
|
|
126
|
-
**Team** - Team management
|
|
127
|
-
- Get Many, Get, Create, Delete
|
|
128
|
-
|
|
129
|
-
**Contact** - Contact management
|
|
130
|
-
- Get Many (with filters)
|
|
131
|
-
|
|
132
|
-
</details>
|
|
133
|
-
|
|
134
|
-
<details>
|
|
135
|
-
<summary><strong>Organizations</strong> (16 operations)</summary>
|
|
59
|
+
**Organizations** (16 operations)
|
|
136
60
|
|
|
137
61
|
**Organization** - Customer/partner management
|
|
138
|
-
|
|
62
|
+
* Get Many, Get, Create, Update (Full/Partial), Delete
|
|
139
63
|
|
|
140
64
|
**Organization Member** - External contacts
|
|
141
|
-
|
|
65
|
+
* Get Many, Get, Create, Update, Delete
|
|
142
66
|
|
|
143
67
|
**Organization Member Journal** - Member journal
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
</details>
|
|
68
|
+
* Get Many, Get, Create, Update, Delete
|
|
147
69
|
|
|
148
70
|
### Time & Attendance
|
|
149
71
|
|
|
150
|
-
|
|
151
|
-
<summary><strong>Time Tracking</strong> (22 operations)</summary>
|
|
72
|
+
**Time Tracking** (22 operations)
|
|
152
73
|
|
|
153
74
|
**Time Booking** - Log working hours
|
|
154
|
-
|
|
75
|
+
* Get Many, Create, Update, Delete
|
|
155
76
|
|
|
156
77
|
**Timetable** - Unified calendar view
|
|
157
|
-
|
|
78
|
+
* Get (employee schedule)
|
|
158
79
|
|
|
159
80
|
**Attendance** - Clock in/out
|
|
160
|
-
|
|
81
|
+
* Create/Update, Delete
|
|
161
82
|
|
|
162
83
|
**Vacation Management:**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
84
|
+
* Request, Update, Cancel
|
|
85
|
+
* Approve, Decline
|
|
86
|
+
* Get (Pending/Upcoming/History)
|
|
87
|
+
* Stats & Compensation
|
|
167
88
|
|
|
168
89
|
**Sick Days:**
|
|
169
|
-
|
|
170
|
-
|
|
90
|
+
* Request, Update, Delete
|
|
91
|
+
* History
|
|
171
92
|
|
|
172
93
|
**Overtime:**
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
</details>
|
|
94
|
+
* Get Stats
|
|
95
|
+
* Get Compensation History
|
|
177
96
|
|
|
178
97
|
### Analytics & Insights
|
|
179
98
|
|
|
180
|
-
|
|
181
|
-
<summary><strong>Analytics</strong> (5 operations)</summary>
|
|
99
|
+
**Analytics** (5 operations)
|
|
182
100
|
|
|
183
101
|
**Insight** - Business intelligence
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
</details>
|
|
102
|
+
* Project Chart (working hours analysis)
|
|
103
|
+
* Staff Chart (employee time analysis)
|
|
104
|
+
* Turnover Chart (revenue analysis & forecast)
|
|
105
|
+
* Goal Chart (employee goal progress)
|
|
106
|
+
* Workload Chart (open tasks analysis)
|
|
191
107
|
|
|
192
108
|
### Administration
|
|
193
109
|
|
|
194
|
-
|
|
195
|
-
<summary><strong>Settings & Configuration</strong> (29 operations)</summary>
|
|
110
|
+
**Settings & Configuration** (29 operations)
|
|
196
111
|
|
|
197
112
|
**Workspace:**
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
113
|
+
* Details, Upload File
|
|
114
|
+
* List Users, Quick Search
|
|
115
|
+
* Product List, Manual Position Categories
|
|
201
116
|
|
|
202
117
|
**Product Management:**
|
|
203
|
-
|
|
204
|
-
|
|
118
|
+
* Product Catalog (CRUD with variants)
|
|
119
|
+
* Product Categories (Get/Delete)
|
|
205
120
|
|
|
206
121
|
**Settings:**
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
122
|
+
* Subscription Status
|
|
123
|
+
* Basic Settings (localization, attendance, sprints)
|
|
124
|
+
* Company Settings (master data)
|
|
125
|
+
* Permissions List
|
|
211
126
|
|
|
212
127
|
**Roles:**
|
|
213
|
-
|
|
128
|
+
* Get Many, Get (with permissions)
|
|
214
129
|
|
|
215
130
|
**VAT Rates:**
|
|
216
|
-
|
|
131
|
+
* Get Many
|
|
217
132
|
|
|
218
133
|
**Task Settings:**
|
|
219
|
-
|
|
134
|
+
* Custom Fields, Activities, Statuses, Types
|
|
220
135
|
|
|
221
136
|
**Project Settings:**
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</details>
|
|
137
|
+
* Categories, Statuses, Phases
|
|
138
|
+
* Custom Fields
|
|
139
|
+
* Support Contingents
|
|
227
140
|
|
|
228
141
|
### Personal
|
|
229
142
|
|
|
230
|
-
|
|
231
|
-
<summary><strong>Personal Tools</strong> (13 operations)</summary>
|
|
143
|
+
**Personal Tools** (13 operations)
|
|
232
144
|
|
|
233
145
|
**Account:**
|
|
234
|
-
|
|
235
|
-
|
|
146
|
+
* Get Info
|
|
147
|
+
* Get/Update Employee Data
|
|
236
148
|
|
|
237
149
|
**Journal:**
|
|
238
|
-
|
|
150
|
+
* Get Many, Create, Update (Full/Partial), Delete
|
|
239
151
|
|
|
240
152
|
**Notification:**
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
</details>
|
|
153
|
+
* Get Many (with unread filter)
|
|
244
154
|
|
|
245
155
|
### Sales
|
|
246
156
|
|
|
247
|
-
|
|
248
|
-
<summary><strong>Sales Tools</strong> (2 operations)</summary>
|
|
157
|
+
**Sales Tools** (2 operations)
|
|
249
158
|
|
|
250
159
|
**Sales:**
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
</details>
|
|
255
|
-
|
|
256
|
-
---
|
|
160
|
+
* Get Estimates
|
|
161
|
+
* Get Opportunities
|
|
257
162
|
|
|
258
163
|
## 💡 Usage Examples
|
|
259
164
|
|
|
260
165
|
### Create a Task with Time Tracking
|
|
261
166
|
|
|
262
|
-
```
|
|
263
|
-
// n8n node configuration
|
|
167
|
+
```json
|
|
264
168
|
{
|
|
265
169
|
"resource": "task",
|
|
266
170
|
"operation": "create",
|
|
@@ -277,7 +181,7 @@ npm install n8n-nodes-leadtime
|
|
|
277
181
|
|
|
278
182
|
### Add Comment with Time Booking
|
|
279
183
|
|
|
280
|
-
```
|
|
184
|
+
```json
|
|
281
185
|
{
|
|
282
186
|
"resource": "taskComment",
|
|
283
187
|
"operation": "create",
|
|
@@ -291,7 +195,7 @@ npm install n8n-nodes-leadtime
|
|
|
291
195
|
|
|
292
196
|
### Get Invoice PDF
|
|
293
197
|
|
|
294
|
-
```
|
|
198
|
+
```json
|
|
295
199
|
{
|
|
296
200
|
"resource": "invoice",
|
|
297
201
|
"operation": "getFileUrl",
|
|
@@ -303,7 +207,7 @@ npm install n8n-nodes-leadtime
|
|
|
303
207
|
|
|
304
208
|
### Upload File to Workspace
|
|
305
209
|
|
|
306
|
-
```
|
|
210
|
+
```json
|
|
307
211
|
{
|
|
308
212
|
"resource": "workspace",
|
|
309
213
|
"operation": "uploadFile",
|
|
@@ -313,7 +217,7 @@ npm install n8n-nodes-leadtime
|
|
|
313
217
|
|
|
314
218
|
### Get Project Analytics
|
|
315
219
|
|
|
316
|
-
```
|
|
220
|
+
```json
|
|
317
221
|
{
|
|
318
222
|
"resource": "insight",
|
|
319
223
|
"operation": "getProjectChart",
|
|
@@ -328,7 +232,7 @@ npm install n8n-nodes-leadtime
|
|
|
328
232
|
|
|
329
233
|
### Bulk Create Tasks
|
|
330
234
|
|
|
331
|
-
```
|
|
235
|
+
```json
|
|
332
236
|
{
|
|
333
237
|
"resource": "task",
|
|
334
238
|
"operation": "bulkCreate",
|
|
@@ -349,26 +253,24 @@ npm install n8n-nodes-leadtime
|
|
|
349
253
|
}
|
|
350
254
|
```
|
|
351
255
|
|
|
352
|
-
---
|
|
353
|
-
|
|
354
256
|
## 🎨 Dynamic Dropdowns
|
|
355
257
|
|
|
356
258
|
The node provides **12 intelligent dropdown methods** that automatically populate with data from your Leadtime workspace:
|
|
357
259
|
|
|
358
|
-
| Dropdown
|
|
359
|
-
|
|
360
|
-
|
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
|
|
|
364
|
-
|
|
|
365
|
-
|
|
|
366
|
-
|
|
|
367
|
-
|
|
|
368
|
-
|
|
|
369
|
-
|
|
|
370
|
-
|
|
|
371
|
-
|
|
|
260
|
+
| Dropdown | Purpose | Depends On |
|
|
261
|
+
| --------------------- | ------------------------- | ---------- |
|
|
262
|
+
| loadProjects | Select projects | - |
|
|
263
|
+
| loadEmployees | Select employees | - |
|
|
264
|
+
| loadTeams | Select teams | - |
|
|
265
|
+
| loadTaskStatuses | Select task statuses | - |
|
|
266
|
+
| loadTaskTypes | Select task types | - |
|
|
267
|
+
| loadActivities | Select work activities | - |
|
|
268
|
+
| loadProjectCategories | Select project categories | - |
|
|
269
|
+
| loadProjectStatuses | Select project statuses | - |
|
|
270
|
+
| loadProjectPhases | Select project phases | - |
|
|
271
|
+
| loadProjectTaskTypes | Task types for project | Project |
|
|
272
|
+
| loadTypeStatuses | Statuses for task type | Task Type |
|
|
273
|
+
| loadProjectUsers | Team members | Project |
|
|
372
274
|
|
|
373
275
|
### Cascading Dropdowns Example
|
|
374
276
|
|
|
@@ -381,25 +283,24 @@ When creating a task, dropdowns cascade intelligently:
|
|
|
381
283
|
4. Select Assignee → loads only team members from selected project
|
|
382
284
|
```
|
|
383
285
|
|
|
384
|
-
---
|
|
385
|
-
|
|
386
286
|
## 🔧 Development
|
|
387
287
|
|
|
388
288
|
### Prerequisites
|
|
389
289
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
290
|
+
* Node.js >= 18
|
|
291
|
+
* n8n >= 1.0.0
|
|
292
|
+
* TypeScript >= 5.x
|
|
393
293
|
|
|
394
294
|
### Local Development
|
|
395
295
|
|
|
396
296
|
```bash
|
|
397
|
-
git clone https://github.com/
|
|
398
|
-
cd
|
|
297
|
+
git clone https://github.com/workcio/workc.git
|
|
298
|
+
cd workc
|
|
399
299
|
npm install
|
|
400
|
-
|
|
300
|
+
nx build n8n-nodes-leadtime
|
|
401
301
|
|
|
402
302
|
# Link for local testing
|
|
303
|
+
cd dist/libs/integrations/n8n-nodes-leadtime
|
|
403
304
|
npm link
|
|
404
305
|
cd ~/.n8n/custom
|
|
405
306
|
npm link n8n-nodes-leadtime
|
|
@@ -408,41 +309,16 @@ npm link n8n-nodes-leadtime
|
|
|
408
309
|
n8n start
|
|
409
310
|
```
|
|
410
311
|
|
|
411
|
-
### Project Structure
|
|
412
|
-
|
|
413
|
-
```
|
|
414
|
-
n8n-nodes-leadtime/
|
|
415
|
-
├── credentials/
|
|
416
|
-
│ └── LeadtimeApi.credentials.ts # API authentication
|
|
417
|
-
├── nodes/
|
|
418
|
-
│ └── Leadtime/
|
|
419
|
-
│ ├── Leadtime.node.ts # Main node (14,785 lines)
|
|
420
|
-
│ └── leadtime.svg # Icon
|
|
421
|
-
├── dist/ # Compiled output
|
|
422
|
-
├── package.json
|
|
423
|
-
├── tsconfig.json
|
|
424
|
-
├── LICENSE
|
|
425
|
-
├── README.md
|
|
426
|
-
└── CHANGELOG.md
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
---
|
|
430
|
-
|
|
431
312
|
## 📖 Documentation
|
|
432
313
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
- **[CHANGELOG](./CHANGELOG.md)** - Version history
|
|
436
|
-
|
|
437
|
-
---
|
|
314
|
+
* **Leadtime API Documentation** - Official API reference
|
|
315
|
+
* **n8n Community Nodes** - n8n developer docs
|
|
438
316
|
|
|
439
317
|
## 🐛 Known Limitations
|
|
440
318
|
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
---
|
|
319
|
+
* ⚠️ No webhook/trigger support (would require separate trigger node)
|
|
320
|
+
* ⚠️ Batch file upload not implemented (single file upload works)
|
|
321
|
+
* ⚠️ Some complex nested data structures require JSON input
|
|
446
322
|
|
|
447
323
|
## 🤝 Contributing
|
|
448
324
|
|
|
@@ -456,43 +332,35 @@ Contributions are welcome! Please:
|
|
|
456
332
|
|
|
457
333
|
### Coding Guidelines
|
|
458
334
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
---
|
|
335
|
+
* ✅ TypeScript strict mode
|
|
336
|
+
* ✅ Consistent error handling (try/catch with type guards)
|
|
337
|
+
* ✅ Use `i === 0` pattern for array responses to avoid duplicates
|
|
338
|
+
* ✅ Full URLs for all API calls
|
|
339
|
+
* ✅ Conditional fields with `displayOptions.show`
|
|
466
340
|
|
|
467
341
|
## 📝 License
|
|
468
342
|
|
|
469
|
-
MIT License - see
|
|
343
|
+
MIT License - see LICENSE file
|
|
470
344
|
|
|
471
345
|
Copyright (c) 2024 Lukas Ebner / Leadtime Labs GmbH
|
|
472
346
|
|
|
473
|
-
---
|
|
474
|
-
|
|
475
347
|
## 👤 Author
|
|
476
348
|
|
|
477
349
|
**Lukas Ebner**
|
|
478
350
|
Leadtime Labs GmbH
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
---
|
|
351
|
+
<https://leadtime.de>
|
|
482
352
|
|
|
483
353
|
## 📮 Support
|
|
484
354
|
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
---
|
|
355
|
+
* 🐛 GitHub Issues
|
|
356
|
+
* 💬 n8n Community Forum
|
|
357
|
+
* 📧 Email: support@leadtime.de
|
|
358
|
+
* 📚 Leadtime Help Center
|
|
491
359
|
|
|
492
360
|
## 🙏 Acknowledgments
|
|
493
361
|
|
|
494
|
-
|
|
495
|
-
|
|
362
|
+
* n8n - Workflow automation platform
|
|
363
|
+
* Leadtime - ERP for digital service companies
|
|
496
364
|
|
|
497
365
|
---
|
|
498
366
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadtimeApi.credentials.d.ts","sourceRoot":"","sources":["../../../../../libs/integrations/n8n-nodes-leadtime/credentials/LeadtimeApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,WAAY,YAAW,eAAe;IAClD,IAAI,SAAiB;IACrB,WAAW,SAAkB;IAC7B,gBAAgB,SAA0C;IAC1D,UAAU,EAAE,eAAe,EAAE,CAU3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAS1B;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadtimeApi = void 0;
|
|
4
|
+
class LeadtimeApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'leadtimeApi';
|
|
7
|
+
this.displayName = 'Leadtime API';
|
|
8
|
+
this.documentationUrl = 'https://leadtime.app/api/public/docs';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Personal Access Token',
|
|
12
|
+
name: 'accessToken',
|
|
13
|
+
type: 'string',
|
|
14
|
+
typeOptions: { password: true },
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Your Leadtime Personal Access Token. Create one in Leadtime → Settings → API → Personal Access Tokens. Requires at least api:read scope.',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
this.authenticate = {
|
|
21
|
+
type: 'generic',
|
|
22
|
+
properties: {
|
|
23
|
+
headers: {
|
|
24
|
+
Authorization: '=Bearer {{$credentials.accessToken}}',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
this.test = {
|
|
29
|
+
request: {
|
|
30
|
+
baseURL: 'https://leadtime.app/api/public',
|
|
31
|
+
url: '/workspace/quick-search',
|
|
32
|
+
method: 'GET',
|
|
33
|
+
qs: {
|
|
34
|
+
term: 'test',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.LeadtimeApi = LeadtimeApi;
|
|
41
|
+
//# sourceMappingURL=LeadtimeApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadtimeApi.credentials.js","sourceRoot":"","sources":["../../../../../libs/integrations/n8n-nodes-leadtime/credentials/LeadtimeApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,sCAAsC,CAAC;QAC1D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,0IAA0I;aACvJ;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,sCAAsC;iBACrD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,iCAAiC;gBAC1C,GAAG,EAAE,yBAAyB;gBAC9B,MAAM,EAAE,KAAK;gBACb,EAAE,EAAE;oBACH,IAAI,EAAE,MAAM;iBACZ;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAnCD,kCAmCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Leadtime.node.d.ts","sourceRoot":"","sources":["../../../../../../libs/integrations/n8n-nodes-leadtime/nodes/Leadtime/Leadtime.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AAEtB,qBAAa,QAAS,YAAW,SAAS;IACzC,WAAW,EAAE,oBAAoB,CAw/RhC;IAED,OAAO;;+BAGoB,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;mCA4BnD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;gCA2B1D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;gCA2BvD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;4BA2B5D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;uCAwB5C,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;mCAyD1D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;wCA2DnD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;sCAyB1D,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;oCAyBzD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;iCAyBzD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;mCA4BrD,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MA6JnF;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAw7JvE"}
|