@pokash/n8n-nodes-optima-rest-api 1.1.9 → 1.1.10

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.
@@ -431,10 +431,13 @@ class OptimaRestApi {
431
431
  // Extract customers array from response
432
432
  if (responseData.Customers && Array.isArray(responseData.Customers)) {
433
433
  const customers = responseData.Customers;
434
- // First, preserve original input with binary (passthrough)
434
+ // First, preserve binary from input (with metadata only in JSON)
435
435
  if (items[i].binary) {
436
436
  returnData.push({
437
- json: items[i].json,
437
+ json: {
438
+ _metadata: 'Binary passthrough from previous node',
439
+ _itemCount: customers.length
440
+ },
438
441
  binary: items[i].binary
439
442
  });
440
443
  }
@@ -572,10 +575,14 @@ class OptimaRestApi {
572
575
  // Extract dictionary array from response
573
576
  if (responseData[dictConfig.dataKey] && Array.isArray(responseData[dictConfig.dataKey])) {
574
577
  const dictItems = responseData[dictConfig.dataKey];
575
- // First, preserve original input with binary (passthrough)
578
+ // First, preserve binary from input (with metadata only in JSON)
576
579
  if (items[i].binary) {
577
580
  returnData.push({
578
- json: items[i].json,
581
+ json: {
582
+ _metadata: 'Binary passthrough from previous node',
583
+ _itemCount: dictItems.length,
584
+ _dictionaryType: operation
585
+ },
579
586
  binary: items[i].binary
580
587
  });
581
588
  }
@@ -627,10 +634,13 @@ class OptimaRestApi {
627
634
  json: true,
628
635
  });
629
636
  const products = response;
630
- // First, preserve original input with binary (passthrough)
637
+ // First, preserve binary from input (with metadata only in JSON)
631
638
  if (items[i].binary) {
632
639
  returnData.push({
633
- json: items[i].json,
640
+ json: {
641
+ _metadata: 'Binary passthrough from previous node',
642
+ _itemCount: products.length
643
+ },
634
644
  binary: items[i].binary
635
645
  });
636
646
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pokash/n8n-nodes-optima-rest-api",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "n8n node for Comarch Optima REST API integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",