@connectorx/n8n-nodes-cortex 0.1.28 → 0.1.30

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.
@@ -263,6 +263,19 @@ class Cortex {
263
263
  },
264
264
  },
265
265
  },
266
+ {
267
+ displayName: 'Simulation Mode',
268
+ name: 'simulation',
269
+ type: 'boolean',
270
+ displayOptions: {
271
+ show: {
272
+ resource: ['message'],
273
+ operation: ['send'],
274
+ },
275
+ },
276
+ default: false,
277
+ description: 'If true, the message will be recorded in the database as READ but NOT sent to Meta API (WhatsApp/Instagram). Useful for testing flows internally.',
278
+ },
266
279
  {
267
280
  displayName: 'Sender ID',
268
281
  name: 'sender_id',
@@ -709,6 +722,9 @@ class Cortex {
709
722
  body.reply_to_message_id = replyTo;
710
723
  if (msgType === 'reaction' && reactTo)
711
724
  body.react_to_message_id = reactTo;
725
+ const simulation = this.getNodeParameter('simulation', i, false);
726
+ if (simulation)
727
+ body.simulation = true;
712
728
  options.body = body;
713
729
  }
714
730
  else if (operation === 'sendTyping') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectorx/n8n-nodes-cortex",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "description": "n8n nodes for Cortex API",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"