@linkly-link-shortener/n8n-nodes-linkly 1.0.2 → 1.0.4
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 +4 -1
- package/dist/nodes/Linkly/Linkly.node.js +26 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Linkly Link Shortener node for [n8n](https://n8n.io/) - Create short links, QR codes, track clicks, and automate your URL management workflows.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## About Linkly
|
|
9
|
+
|
|
10
|
+
[Linkly](https://linklyhq.com) is a powerful link management platform that lets you create branded short links, track clicks in real-time, and optimize your marketing campaigns. Features include custom domains, UTM parameters, retargeting pixels, QR codes, and detailed analytics.
|
|
9
11
|
|
|
10
12
|
## Features
|
|
11
13
|
|
|
@@ -45,6 +47,7 @@ Manage your Linkly links:
|
|
|
45
47
|
| **Get** | Retrieve a specific link by ID |
|
|
46
48
|
| **Get Many** | List all links in your workspace |
|
|
47
49
|
| **Update** | Update an existing link by ID |
|
|
50
|
+
| **Delete** | Delete a link by ID |
|
|
48
51
|
|
|
49
52
|
#### Create Link Fields
|
|
50
53
|
|
|
@@ -72,6 +72,12 @@ class Linkly {
|
|
|
72
72
|
description: 'Update an existing link by ID',
|
|
73
73
|
action: 'Update a link',
|
|
74
74
|
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Delete',
|
|
77
|
+
value: 'delete',
|
|
78
|
+
description: 'Delete a link by ID',
|
|
79
|
+
action: 'Delete a link',
|
|
80
|
+
},
|
|
75
81
|
],
|
|
76
82
|
default: 'create',
|
|
77
83
|
},
|
|
@@ -158,6 +164,13 @@ class Linkly {
|
|
|
158
164
|
default: '',
|
|
159
165
|
description: 'When the link should expire',
|
|
160
166
|
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Expiry Click Limit',
|
|
169
|
+
name: 'expiry_clicks',
|
|
170
|
+
type: 'number',
|
|
171
|
+
default: 0,
|
|
172
|
+
description: 'Number of clicks after which the link expires (0 = no limit)',
|
|
173
|
+
},
|
|
161
174
|
{
|
|
162
175
|
displayName: 'Expiry Destination',
|
|
163
176
|
name: 'expiry_destination',
|
|
@@ -327,7 +340,7 @@ class Linkly {
|
|
|
327
340
|
displayOptions: {
|
|
328
341
|
show: {
|
|
329
342
|
resource: ['link'],
|
|
330
|
-
operation: ['get', 'update'],
|
|
343
|
+
operation: ['get', 'update', 'delete'],
|
|
331
344
|
},
|
|
332
345
|
},
|
|
333
346
|
typeOptions: {
|
|
@@ -412,6 +425,13 @@ class Linkly {
|
|
|
412
425
|
default: '',
|
|
413
426
|
description: 'When the link should expire',
|
|
414
427
|
},
|
|
428
|
+
{
|
|
429
|
+
displayName: 'Expiry Click Limit',
|
|
430
|
+
name: 'expiry_clicks',
|
|
431
|
+
type: 'number',
|
|
432
|
+
default: 0,
|
|
433
|
+
description: 'Number of clicks after which the link expires (0 = no limit)',
|
|
434
|
+
},
|
|
415
435
|
{
|
|
416
436
|
displayName: 'Expiry Destination',
|
|
417
437
|
name: 'expiry_destination',
|
|
@@ -615,6 +635,11 @@ class Linkly {
|
|
|
615
635
|
const updateFields = this.getNodeParameter('updateFields', i);
|
|
616
636
|
responseData = await GenericFunctions_1.linklyApiRequest.call(this, 'PUT', `/zapier/link/${linkId}`, (0, GenericFunctions_1.removeEmptyFields)(updateFields));
|
|
617
637
|
}
|
|
638
|
+
else if (operation === 'delete') {
|
|
639
|
+
const linkId = this.getNodeParameter('linkId', i);
|
|
640
|
+
await GenericFunctions_1.linklyApiRequest.call(this, 'DELETE', `/zapier/link/${linkId}`);
|
|
641
|
+
responseData = { success: true, deleted: linkId };
|
|
642
|
+
}
|
|
618
643
|
else {
|
|
619
644
|
throw new Error(`Unknown operation: ${operation}`);
|
|
620
645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkly-link-shortener/n8n-nodes-linkly",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Linkly Link Shortener for n8n - Create short links, track clicks, UTM parameters, retargeting pixels, and automate URL management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
29
|
-
"url": "https://github.com/
|
|
29
|
+
"url": "https://github.com/Linkly-HQ/n8n-nodes-linkly.git"
|
|
30
30
|
},
|
|
31
31
|
"main": "index.js",
|
|
32
32
|
"scripts": {
|