@linkly-link-shortener/n8n-nodes-linkly 1.0.2 → 1.0.3

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 CHANGED
@@ -45,6 +45,7 @@ Manage your Linkly links:
45
45
  | **Get** | Retrieve a specific link by ID |
46
46
  | **Get Many** | List all links in your workspace |
47
47
  | **Update** | Update an existing link by ID |
48
+ | **Delete** | Delete a link by ID |
48
49
 
49
50
  #### Create Link Fields
50
51
 
@@ -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
  },
@@ -327,7 +333,7 @@ class Linkly {
327
333
  displayOptions: {
328
334
  show: {
329
335
  resource: ['link'],
330
- operation: ['get', 'update'],
336
+ operation: ['get', 'update', 'delete'],
331
337
  },
332
338
  },
333
339
  typeOptions: {
@@ -615,6 +621,11 @@ class Linkly {
615
621
  const updateFields = this.getNodeParameter('updateFields', i);
616
622
  responseData = await GenericFunctions_1.linklyApiRequest.call(this, 'PUT', `/zapier/link/${linkId}`, (0, GenericFunctions_1.removeEmptyFields)(updateFields));
617
623
  }
624
+ else if (operation === 'delete') {
625
+ const linkId = this.getNodeParameter('linkId', i);
626
+ await GenericFunctions_1.linklyApiRequest.call(this, 'DELETE', `/zapier/link/${linkId}`);
627
+ responseData = { success: true, deleted: linkId };
628
+ }
618
629
  else {
619
630
  throw new Error(`Unknown operation: ${operation}`);
620
631
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkly-link-shortener/n8n-nodes-linkly",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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",