@pokash/n8n-nodes-optima-rest-api 1.9.0 → 1.11.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.
@@ -444,6 +444,19 @@ class OptimaRestApi {
444
444
  },
445
445
  description: 'Numer KSeF dokumentu. Puste = bez zmian.',
446
446
  },
447
+ {
448
+ displayName: 'Numer Sesji',
449
+ name: 'numerSesji',
450
+ type: 'string',
451
+ default: '',
452
+ displayOptions: {
453
+ show: {
454
+ resource: ['document'],
455
+ operation: ['updateKSeF'],
456
+ },
457
+ },
458
+ description: 'Numer referencyjny sesji KSeF. Puste = bez zmian.',
459
+ },
447
460
  {
448
461
  displayName: 'Data Przyjęcia',
449
462
  name: 'dataPrzyjecia',
@@ -512,6 +525,60 @@ class OptimaRestApi {
512
525
  },
513
526
  description: 'Link weryfikacyjny KSeF (QR). Puste = bez zmian.',
514
527
  },
528
+ {
529
+ displayName: 'Operator Wysyłający',
530
+ name: 'operatorWysylajacy',
531
+ type: 'string',
532
+ default: '',
533
+ displayOptions: {
534
+ show: {
535
+ resource: ['document'],
536
+ operation: ['updateKSeF'],
537
+ },
538
+ },
539
+ description: 'Operator wysyłający (nazwisko). Puste = bez zmian.',
540
+ },
541
+ {
542
+ displayName: 'Operator Odbierający',
543
+ name: 'operatorOdbierajacy',
544
+ type: 'string',
545
+ default: '',
546
+ displayOptions: {
547
+ show: {
548
+ resource: ['document'],
549
+ operation: ['updateKSeF'],
550
+ },
551
+ },
552
+ description: 'Operator odbierający UPO (nazwisko). Puste = bez zmian.',
553
+ },
554
+ {
555
+ displayName: 'Data Wysłania',
556
+ name: 'dataWyslania',
557
+ type: 'string',
558
+ default: '',
559
+ placeholder: '2026-07-31',
560
+ displayOptions: {
561
+ show: {
562
+ resource: ['document'],
563
+ operation: ['updateKSeF'],
564
+ },
565
+ },
566
+ description: 'Data wysłania do KSeF (yyyy-MM-dd). Puste = bez zmian.',
567
+ },
568
+ {
569
+ displayName: 'Data Odebrania',
570
+ name: 'dataOdebrania',
571
+ type: 'string',
572
+ default: '',
573
+ placeholder: '2026-07-31',
574
+ displayOptions: {
575
+ show: {
576
+ resource: ['document'],
577
+ operation: ['updateKSeF'],
578
+ },
579
+ },
580
+ description: 'Data odebrania UPO (yyyy-MM-dd). Puste = bez zmian.',
581
+ },
515
582
  // Product Operations
516
583
  {
517
584
  displayName: 'Operation',
@@ -955,10 +1022,15 @@ class OptimaRestApi {
955
1022
  const numerObcy = this.getNodeParameter('numerObcy', i, '');
956
1023
  const nip = this.getNodeParameter('nip', i, '');
957
1024
  const nrKsef = this.getNodeParameter('nrKsef', i, '');
1025
+ const numerSesji = this.getNodeParameter('numerSesji', i, '');
958
1026
  const dataPrzyjecia = this.getNodeParameter('dataPrzyjecia', i, '');
959
1027
  const formaPlatnosci = this.getNodeParameter('formaPlatnosci', i, '');
960
1028
  const srodowisko = this.getNodeParameter('srodowisko', i, '');
961
1029
  const linkWeryfikacyjny = this.getNodeParameter('linkWeryfikacyjny', i, '');
1030
+ const operatorWysylajacy = this.getNodeParameter('operatorWysylajacy', i, '');
1031
+ const operatorOdbierajacy = this.getNodeParameter('operatorOdbierajacy', i, '');
1032
+ const dataWyslania = this.getNodeParameter('dataWyslania', i, '');
1033
+ const dataOdebrania = this.getNodeParameter('dataOdebrania', i, '');
962
1034
  const body = {};
963
1035
  if (numerPelny)
964
1036
  body.NumerPelny = numerPelny;
@@ -968,6 +1040,8 @@ class OptimaRestApi {
968
1040
  body.Nip = nip;
969
1041
  if (nrKsef)
970
1042
  body.NrKsef = nrKsef;
1043
+ if (numerSesji)
1044
+ body.NumerSesji = numerSesji;
971
1045
  if (dataPrzyjecia)
972
1046
  body.DataPrzyjecia = dataPrzyjecia;
973
1047
  if (formaPlatnosci)
@@ -976,6 +1050,14 @@ class OptimaRestApi {
976
1050
  body.Srodowisko = srodowisko;
977
1051
  if (linkWeryfikacyjny)
978
1052
  body.LinkWeryfikacyjny = linkWeryfikacyjny;
1053
+ if (operatorWysylajacy)
1054
+ body.OperatorWysylajacy = operatorWysylajacy;
1055
+ if (operatorOdbierajacy)
1056
+ body.OperatorOdbierajacy = operatorOdbierajacy;
1057
+ if (dataWyslania)
1058
+ body.DataWyslania = dataWyslania;
1059
+ if (dataOdebrania)
1060
+ body.DataOdebrania = dataOdebrania;
979
1061
  const response = await makeAuthenticatedRequest({
980
1062
  method: 'PUT',
981
1063
  url: `${gatewayUrl}/api/Documents/KSeF`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pokash/n8n-nodes-optima-rest-api",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "n8n node for Comarch Optima REST API integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",