@pokash/n8n-nodes-optima-rest-api 1.12.1 → 1.13.0

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.
@@ -710,6 +710,13 @@ class OptimaRestApi {
710
710
  default: '',
711
711
  description: 'Part of the product name (case-insensitive)',
712
712
  },
713
+ {
714
+ displayName: 'Name Equals',
715
+ name: 'nazwaRowna',
716
+ type: 'string',
717
+ default: '',
718
+ description: 'Whole product name (exact match, case-insensitive) — e.g. matching an invoice line to a product',
719
+ },
713
720
  {
714
721
  displayName: 'Type',
715
722
  name: 'typ',
@@ -1314,7 +1321,7 @@ class OptimaRestApi {
1314
1321
  queryParams.append('Filter', String(options.filter));
1315
1322
  }
1316
1323
  // TNXP-791: jawne filtry
1317
- for (const pole of ['kod', 'ean', 'nazwa', 'typ', 'grupa', 'aktywny', 'zmienionyOd']) {
1324
+ for (const pole of ['kod', 'ean', 'nazwa', 'nazwaRowna', 'typ', 'grupa', 'aktywny', 'zmienionyOd']) {
1318
1325
  if (options[pole] !== undefined && options[pole] !== '') {
1319
1326
  queryParams.append(pole, String(options[pole]));
1320
1327
  }
@@ -1331,7 +1338,7 @@ class OptimaRestApi {
1331
1338
  : `${gatewayUrl}/api/product`;
1332
1339
  // TNXP-791: skonfigurowany filtr dokładny z pustą wartością (np. pusty akronim z wyrażenia) = brak wyników,
1333
1340
  // jak dawny surowy filtr Knt_Kod='' — bez tego węzeł pominąłby filtr i zwrócił całą listę.
1334
- const pustyFiltrDokladny = ['kod', 'ean', 'grupa'].some((pole) => { var _a; return pole in options && String((_a = options[pole]) !== null && _a !== void 0 ? _a : '').trim() === ''; });
1341
+ const pustyFiltrDokladny = ['kod', 'ean', 'nazwaRowna', 'grupa'].some((pole) => { var _a; return pole in options && String((_a = options[pole]) !== null && _a !== void 0 ? _a : '').trim() === ''; });
1335
1342
  const response = pustyFiltrDokladny
1336
1343
  ? { Success: true, Products: [], TotalCount: 0 }
1337
1344
  : await makeAuthenticatedRequest({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pokash/n8n-nodes-optima-rest-api",
3
- "version": "1.12.1",
3
+ "version": "1.13.0",
4
4
  "description": "n8n node for Comarch Optima REST API integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",