n8n-nodes-cakemail 1.2.0 → 1.2.1

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.
@@ -1285,7 +1285,7 @@ class Cakemail {
1285
1285
  {
1286
1286
  displayName: 'Webhook ID',
1287
1287
  name: 'webhookId',
1288
- type: 'number',
1288
+ type: 'string',
1289
1289
  required: true,
1290
1290
  displayOptions: {
1291
1291
  show: {
@@ -1293,8 +1293,9 @@ class Cakemail {
1293
1293
  operation: ['get', 'update', 'archive', 'unarchive'],
1294
1294
  },
1295
1295
  },
1296
- default: 0,
1297
- description: 'The ID of the webhook',
1296
+ default: '',
1297
+ description: 'The ID of the webhook (e.g., X1qRXqz1upM9)',
1298
+ placeholder: 'X1qRXqz1upM9',
1298
1299
  },
1299
1300
  {
1300
1301
  displayName: 'Event',
@@ -1378,7 +1378,7 @@ export class Cakemail implements INodeType {
1378
1378
  {
1379
1379
  displayName: 'Webhook ID',
1380
1380
  name: 'webhookId',
1381
- type: 'number',
1381
+ type: 'string',
1382
1382
  required: true,
1383
1383
  displayOptions: {
1384
1384
  show: {
@@ -1386,8 +1386,9 @@ export class Cakemail implements INodeType {
1386
1386
  operation: ['get', 'update', 'archive', 'unarchive'],
1387
1387
  },
1388
1388
  },
1389
- default: 0,
1390
- description: 'The ID of the webhook',
1389
+ default: '',
1390
+ description: 'The ID of the webhook (e.g., X1qRXqz1upM9)',
1391
+ placeholder: 'X1qRXqz1upM9',
1391
1392
  },
1392
1393
 
1393
1394
  // Webhook event (for create)
@@ -2184,7 +2185,7 @@ export class Cakemail implements INodeType {
2184
2185
 
2185
2186
  return await client.webhooks.list(params);
2186
2187
  } else if (operation === 'get') {
2187
- const webhookId = this.getNodeParameter('webhookId', itemIndex) as number;
2188
+ const webhookId = this.getNodeParameter('webhookId', itemIndex) as string;
2188
2189
  return await client.webhooks.get(webhookId);
2189
2190
  } else if (operation === 'create') {
2190
2191
  const event = this.getNodeParameter('webhookEvent', itemIndex) as any;
@@ -2199,7 +2200,7 @@ export class Cakemail implements INodeType {
2199
2200
  rate_limit_period: rateLimitPeriod,
2200
2201
  });
2201
2202
  } else if (operation === 'update') {
2202
- const webhookId = this.getNodeParameter('webhookId', itemIndex) as number;
2203
+ const webhookId = this.getNodeParameter('webhookId', itemIndex) as string;
2203
2204
  const updateData: any = {};
2204
2205
 
2205
2206
  // Only include fields that are provided
@@ -2217,10 +2218,10 @@ export class Cakemail implements INodeType {
2217
2218
 
2218
2219
  return await client.webhooks.update(webhookId, updateData);
2219
2220
  } else if (operation === 'archive') {
2220
- const webhookId = this.getNodeParameter('webhookId', itemIndex) as number;
2221
+ const webhookId = this.getNodeParameter('webhookId', itemIndex) as string;
2221
2222
  return await client.webhooks.archive(webhookId);
2222
2223
  } else if (operation === 'unarchive') {
2223
- const webhookId = this.getNodeParameter('webhookId', itemIndex) as number;
2224
+ const webhookId = this.getNodeParameter('webhookId', itemIndex) as string;
2224
2225
  return await client.webhooks.unarchive(webhookId);
2225
2226
  }
2226
2227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-cakemail",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "n8n node for Cakemail - workflow-native email platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",