n8n-nodes-leadtime 0.1.0 → 0.1.7
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 +3 -495
- 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 +14 -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,499 +1,7 @@
|
|
|
1
1
|
# n8n-nodes-leadtime
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-

|
|
7
|
-

|
|
8
|
-

|
|
5
|
+
## Building
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 📦 Installation
|
|
15
|
-
|
|
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
|
-
```bash
|
|
26
|
-
cd ~/.n8n/custom
|
|
27
|
-
npm install n8n-nodes-leadtime
|
|
28
|
-
```
|
|
29
|
-
|
|
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>
|
|
64
|
-
|
|
65
|
-
**Project** - Full CRUD for projects
|
|
66
|
-
- Get Many, Get, Create, Update, Delete
|
|
67
|
-
- Get Categories, Statuses, Phases
|
|
68
|
-
|
|
69
|
-
**Project Sub-Resources:**
|
|
70
|
-
- Documentation (articles)
|
|
71
|
-
- Journal (entries)
|
|
72
|
-
- Uploads (files)
|
|
73
|
-
- Documents (project documents)
|
|
74
|
-
|
|
75
|
-
</details>
|
|
76
|
-
|
|
77
|
-
<details>
|
|
78
|
-
<summary><strong>Task Management</strong> (22 operations)</summary>
|
|
79
|
-
|
|
80
|
-
**Task** - Full CRUD with advanced features
|
|
81
|
-
- Get Many, Get, Create, Update, Delete
|
|
82
|
-
- Bulk Create, Bulk Update
|
|
83
|
-
- Get Custom Fields
|
|
84
|
-
|
|
85
|
-
**Task Comment** - Commenting system
|
|
86
|
-
- Get Many, Create, Update, Delete
|
|
87
|
-
- Status change & time booking in one call
|
|
88
|
-
|
|
89
|
-
**Task Subtask** - Subtask management
|
|
90
|
-
- Add, Remove
|
|
91
|
-
|
|
92
|
-
**Task Planning:**
|
|
93
|
-
- Stack (personal Kanban board)
|
|
94
|
-
- Pipeline (team planning view)
|
|
95
|
-
- Pipeline Items (CRUD)
|
|
96
|
-
|
|
97
|
-
**Task Product** - Product integration
|
|
98
|
-
- Import products to tasks
|
|
99
|
-
|
|
100
|
-
</details>
|
|
101
|
-
|
|
102
|
-
<details>
|
|
103
|
-
<summary><strong>Billing & Invoicing</strong> (19 operations)</summary>
|
|
104
|
-
|
|
105
|
-
**Invoice** - Complete invoice lifecycle
|
|
106
|
-
- Get (New/Paid/Canceled/Overdue)
|
|
107
|
-
- Mark as Paid/Unpaid/Sent
|
|
108
|
-
- Send via Email
|
|
109
|
-
- Get PDF/XML Download URL
|
|
110
|
-
- Invoice Settings
|
|
111
|
-
- Contact Management
|
|
112
|
-
|
|
113
|
-
**Potential Invoice** - Invoice drafts
|
|
114
|
-
- Get Many, Get, Update
|
|
115
|
-
|
|
116
|
-
</details>
|
|
117
|
-
|
|
118
|
-
### People & Organizations
|
|
119
|
-
|
|
120
|
-
<details>
|
|
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>
|
|
136
|
-
|
|
137
|
-
**Organization** - Customer/partner management
|
|
138
|
-
- Get Many, Get, Create, Update (Full/Partial), Delete
|
|
139
|
-
|
|
140
|
-
**Organization Member** - External contacts
|
|
141
|
-
- Get Many, Get, Create, Update, Delete
|
|
142
|
-
|
|
143
|
-
**Organization Member Journal** - Member journal
|
|
144
|
-
- Get Many, Get, Create, Update, Delete
|
|
145
|
-
|
|
146
|
-
</details>
|
|
147
|
-
|
|
148
|
-
### Time & Attendance
|
|
149
|
-
|
|
150
|
-
<details>
|
|
151
|
-
<summary><strong>Time Tracking</strong> (22 operations)</summary>
|
|
152
|
-
|
|
153
|
-
**Time Booking** - Log working hours
|
|
154
|
-
- Get Many, Create, Update, Delete
|
|
155
|
-
|
|
156
|
-
**Timetable** - Unified calendar view
|
|
157
|
-
- Get (employee schedule)
|
|
158
|
-
|
|
159
|
-
**Attendance** - Clock in/out
|
|
160
|
-
- Create/Update, Delete
|
|
161
|
-
|
|
162
|
-
**Vacation Management:**
|
|
163
|
-
- Request, Update, Cancel
|
|
164
|
-
- Approve, Decline
|
|
165
|
-
- Get (Pending/Upcoming/History)
|
|
166
|
-
- Stats & Compensation
|
|
167
|
-
|
|
168
|
-
**Sick Days:**
|
|
169
|
-
- Request, Update, Delete
|
|
170
|
-
- History
|
|
171
|
-
|
|
172
|
-
**Overtime:**
|
|
173
|
-
- Get Stats
|
|
174
|
-
- Get Compensation History
|
|
175
|
-
|
|
176
|
-
</details>
|
|
177
|
-
|
|
178
|
-
### Analytics & Insights
|
|
179
|
-
|
|
180
|
-
<details>
|
|
181
|
-
<summary><strong>Analytics</strong> (5 operations)</summary>
|
|
182
|
-
|
|
183
|
-
**Insight** - Business intelligence
|
|
184
|
-
- Project Chart (working hours analysis)
|
|
185
|
-
- Staff Chart (employee time analysis)
|
|
186
|
-
- Turnover Chart (revenue analysis & forecast)
|
|
187
|
-
- Goal Chart (employee goal progress)
|
|
188
|
-
- Workload Chart (open tasks analysis)
|
|
189
|
-
|
|
190
|
-
</details>
|
|
191
|
-
|
|
192
|
-
### Administration
|
|
193
|
-
|
|
194
|
-
<details>
|
|
195
|
-
<summary><strong>Settings & Configuration</strong> (29 operations)</summary>
|
|
196
|
-
|
|
197
|
-
**Workspace:**
|
|
198
|
-
- Details, Upload File
|
|
199
|
-
- List Users, Quick Search
|
|
200
|
-
- Product List, Manual Position Categories
|
|
201
|
-
|
|
202
|
-
**Product Management:**
|
|
203
|
-
- Product Catalog (CRUD with variants)
|
|
204
|
-
- Product Categories (Get/Delete)
|
|
205
|
-
|
|
206
|
-
**Settings:**
|
|
207
|
-
- Subscription Status
|
|
208
|
-
- Basic Settings (localization, attendance, sprints)
|
|
209
|
-
- Company Settings (master data)
|
|
210
|
-
- Permissions List
|
|
211
|
-
|
|
212
|
-
**Roles:**
|
|
213
|
-
- Get Many, Get (with permissions)
|
|
214
|
-
|
|
215
|
-
**VAT Rates:**
|
|
216
|
-
- Get Many
|
|
217
|
-
|
|
218
|
-
**Task Settings:**
|
|
219
|
-
- Custom Fields, Activities, Statuses, Types
|
|
220
|
-
|
|
221
|
-
**Project Settings:**
|
|
222
|
-
- Categories, Statuses, Phases
|
|
223
|
-
- Custom Fields
|
|
224
|
-
- Support Contingents
|
|
225
|
-
|
|
226
|
-
</details>
|
|
227
|
-
|
|
228
|
-
### Personal
|
|
229
|
-
|
|
230
|
-
<details>
|
|
231
|
-
<summary><strong>Personal Tools</strong> (13 operations)</summary>
|
|
232
|
-
|
|
233
|
-
**Account:**
|
|
234
|
-
- Get Info
|
|
235
|
-
- Get/Update Employee Data
|
|
236
|
-
|
|
237
|
-
**Journal:**
|
|
238
|
-
- Get Many, Create, Update (Full/Partial), Delete
|
|
239
|
-
|
|
240
|
-
**Notification:**
|
|
241
|
-
- Get Many (with unread filter)
|
|
242
|
-
|
|
243
|
-
</details>
|
|
244
|
-
|
|
245
|
-
### Sales
|
|
246
|
-
|
|
247
|
-
<details>
|
|
248
|
-
<summary><strong>Sales Tools</strong> (2 operations)</summary>
|
|
249
|
-
|
|
250
|
-
**Sales:**
|
|
251
|
-
- Get Estimates
|
|
252
|
-
- Get Opportunities
|
|
253
|
-
|
|
254
|
-
</details>
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## 💡 Usage Examples
|
|
259
|
-
|
|
260
|
-
### Create a Task with Time Tracking
|
|
261
|
-
|
|
262
|
-
```javascript
|
|
263
|
-
// n8n node configuration
|
|
264
|
-
{
|
|
265
|
-
"resource": "task",
|
|
266
|
-
"operation": "create",
|
|
267
|
-
"projectId": "{{ $json.projectId }}",
|
|
268
|
-
"title": "Implement new feature",
|
|
269
|
-
"typeId": "{{ $json.typeId }}",
|
|
270
|
-
"statusId": "{{ $json.statusId }}",
|
|
271
|
-
"priority": "High",
|
|
272
|
-
"estimatedTime": 8,
|
|
273
|
-
"assignedToId": "{{ $json.userId }}",
|
|
274
|
-
"description": "<p>Detailed task description</p>"
|
|
275
|
-
}
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
### Add Comment with Time Booking
|
|
279
|
-
|
|
280
|
-
```javascript
|
|
281
|
-
{
|
|
282
|
-
"resource": "taskComment",
|
|
283
|
-
"operation": "create",
|
|
284
|
-
"taskIdentifier": "{{ $json.taskId }}",
|
|
285
|
-
"comment": "Completed implementation",
|
|
286
|
-
"statusId": "{{ $json.doneStatusId }}",
|
|
287
|
-
"timeBookingHours": 2,
|
|
288
|
-
"timeBookingActivityId": "{{ $json.activityId }}"
|
|
289
|
-
}
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
### Get Invoice PDF
|
|
293
|
-
|
|
294
|
-
```javascript
|
|
295
|
-
{
|
|
296
|
-
"resource": "invoice",
|
|
297
|
-
"operation": "getFileUrl",
|
|
298
|
-
"invoiceId": "{{ $json.invoiceId }}",
|
|
299
|
-
"fileType": "pdf",
|
|
300
|
-
"documentType": "invoice"
|
|
301
|
-
}
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
### Upload File to Workspace
|
|
305
|
-
|
|
306
|
-
```javascript
|
|
307
|
-
{
|
|
308
|
-
"resource": "workspace",
|
|
309
|
-
"operation": "uploadFile",
|
|
310
|
-
"file": "{{ $binary.file }}"
|
|
311
|
-
}
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Get Project Analytics
|
|
315
|
-
|
|
316
|
-
```javascript
|
|
317
|
-
{
|
|
318
|
-
"resource": "insight",
|
|
319
|
-
"operation": "getProjectChart",
|
|
320
|
-
"projectIds": "{{ $json.projectIds }}",
|
|
321
|
-
"model": "timeSeries",
|
|
322
|
-
"period": "weeks",
|
|
323
|
-
"breakdown": "byUser",
|
|
324
|
-
"startDate": "2024-01-01",
|
|
325
|
-
"endDate": "2024-12-31"
|
|
326
|
-
}
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### Bulk Create Tasks
|
|
330
|
-
|
|
331
|
-
```javascript
|
|
332
|
-
{
|
|
333
|
-
"resource": "task",
|
|
334
|
-
"operation": "bulkCreate",
|
|
335
|
-
"tasksJson": JSON.stringify([
|
|
336
|
-
{
|
|
337
|
-
"title": "Task 1",
|
|
338
|
-
"projectId": "...",
|
|
339
|
-
"typeId": "...",
|
|
340
|
-
"statusId": "..."
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"title": "Task 2",
|
|
344
|
-
"projectId": "...",
|
|
345
|
-
"typeId": "...",
|
|
346
|
-
"statusId": "..."
|
|
347
|
-
}
|
|
348
|
-
])
|
|
349
|
-
}
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
---
|
|
353
|
-
|
|
354
|
-
## 🎨 Dynamic Dropdowns
|
|
355
|
-
|
|
356
|
-
The node provides **12 intelligent dropdown methods** that automatically populate with data from your Leadtime workspace:
|
|
357
|
-
|
|
358
|
-
| Dropdown | Purpose | Depends On |
|
|
359
|
-
|----------|---------|------------|
|
|
360
|
-
| `loadProjects` | Select projects | - |
|
|
361
|
-
| `loadEmployees` | Select employees | - |
|
|
362
|
-
| `loadTeams` | Select teams | - |
|
|
363
|
-
| `loadTaskStatuses` | Select task statuses | - |
|
|
364
|
-
| `loadTaskTypes` | Select task types | - |
|
|
365
|
-
| `loadActivities` | Select work activities | - |
|
|
366
|
-
| `loadProjectCategories` | Select project categories | - |
|
|
367
|
-
| `loadProjectStatuses` | Select project statuses | - |
|
|
368
|
-
| `loadProjectPhases` | Select project phases | - |
|
|
369
|
-
| `loadProjectTaskTypes` | Task types for project | Project |
|
|
370
|
-
| `loadTypeStatuses` | Statuses for task type | Task Type |
|
|
371
|
-
| `loadProjectUsers` | Team members | Project |
|
|
372
|
-
|
|
373
|
-
### Cascading Dropdowns Example
|
|
374
|
-
|
|
375
|
-
When creating a task, dropdowns cascade intelligently:
|
|
376
|
-
|
|
377
|
-
```
|
|
378
|
-
1. Select Project → loads project-specific task types
|
|
379
|
-
2. Select Task Type → loads allowed statuses for that type
|
|
380
|
-
3. Select Status → ready to assign
|
|
381
|
-
4. Select Assignee → loads only team members from selected project
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
---
|
|
385
|
-
|
|
386
|
-
## 🔧 Development
|
|
387
|
-
|
|
388
|
-
### Prerequisites
|
|
389
|
-
|
|
390
|
-
- Node.js >= 18
|
|
391
|
-
- n8n >= 1.0.0
|
|
392
|
-
- TypeScript >= 5.x
|
|
393
|
-
|
|
394
|
-
### Local Development
|
|
395
|
-
|
|
396
|
-
```bash
|
|
397
|
-
git clone https://github.com/LukasEbner/n8n-nodes-leadtime.git
|
|
398
|
-
cd n8n-nodes-leadtime
|
|
399
|
-
npm install
|
|
400
|
-
npm run build
|
|
401
|
-
|
|
402
|
-
# Link for local testing
|
|
403
|
-
npm link
|
|
404
|
-
cd ~/.n8n/custom
|
|
405
|
-
npm link n8n-nodes-leadtime
|
|
406
|
-
|
|
407
|
-
# Start n8n
|
|
408
|
-
n8n start
|
|
409
|
-
```
|
|
410
|
-
|
|
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
|
-
## 📖 Documentation
|
|
432
|
-
|
|
433
|
-
- **[Leadtime API Documentation](https://leadtime.app/api/public/docs)** - Official API reference
|
|
434
|
-
- **[n8n Community Nodes](https://docs.n8n.io/integrations/creating-nodes/)** - n8n developer docs
|
|
435
|
-
- **[CHANGELOG](./CHANGELOG.md)** - Version history
|
|
436
|
-
|
|
437
|
-
---
|
|
438
|
-
|
|
439
|
-
## 🐛 Known Limitations
|
|
440
|
-
|
|
441
|
-
- ⚠️ No webhook/trigger support (would require separate trigger node)
|
|
442
|
-
- ⚠️ Batch file upload not implemented (single file upload works)
|
|
443
|
-
- ⚠️ Some complex nested data structures require JSON input
|
|
444
|
-
|
|
445
|
-
---
|
|
446
|
-
|
|
447
|
-
## 🤝 Contributing
|
|
448
|
-
|
|
449
|
-
Contributions are welcome! Please:
|
|
450
|
-
|
|
451
|
-
1. Fork the repository
|
|
452
|
-
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
453
|
-
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
454
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
455
|
-
5. Open a Pull Request
|
|
456
|
-
|
|
457
|
-
### Coding Guidelines
|
|
458
|
-
|
|
459
|
-
- ✅ TypeScript strict mode
|
|
460
|
-
- ✅ Consistent error handling (try/catch with type guards)
|
|
461
|
-
- ✅ Use `i === 0` pattern for array responses to avoid duplicates
|
|
462
|
-
- ✅ Full URLs for all API calls
|
|
463
|
-
- ✅ Conditional fields with `displayOptions.show`
|
|
464
|
-
|
|
465
|
-
---
|
|
466
|
-
|
|
467
|
-
## 📝 License
|
|
468
|
-
|
|
469
|
-
MIT License - see [LICENSE](LICENSE) file
|
|
470
|
-
|
|
471
|
-
Copyright (c) 2024 Lukas Ebner / Leadtime Labs GmbH
|
|
472
|
-
|
|
473
|
-
---
|
|
474
|
-
|
|
475
|
-
## 👤 Author
|
|
476
|
-
|
|
477
|
-
**Lukas Ebner**
|
|
478
|
-
Leadtime Labs GmbH
|
|
479
|
-
[https://leadtime.de](https://leadtime.de)
|
|
480
|
-
|
|
481
|
-
---
|
|
482
|
-
|
|
483
|
-
## 📮 Support
|
|
484
|
-
|
|
485
|
-
- 🐛 [GitHub Issues](https://github.com/LukasEbner/n8n-nodes-leadtime/issues)
|
|
486
|
-
- 💬 [n8n Community Forum](https://community.n8n.io)
|
|
487
|
-
- 📧 Email: support@leadtime.de
|
|
488
|
-
- 📚 [Leadtime Help Center](https://help.leadtime.de)
|
|
489
|
-
|
|
490
|
-
---
|
|
491
|
-
|
|
492
|
-
## 🙏 Acknowledgments
|
|
493
|
-
|
|
494
|
-
- [n8n](https://n8n.io) - Workflow automation platform
|
|
495
|
-
- [Leadtime](https://leadtime.de) - ERP for digital service companies
|
|
496
|
-
|
|
497
|
-
---
|
|
498
|
-
|
|
499
|
-
**Made with ❤️ for the n8n Community**
|
|
7
|
+
Run `nx build n8n-nodes-leadtime` to build the library.
|
|
@@ -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"}
|