n8n-nodes-linq 0.1.10 → 0.1.12
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.
- package/dist/nodes/Linq/Linq.node.js +15 -11
- package/package.json +1 -1
|
@@ -442,9 +442,13 @@ class Linq {
|
|
|
442
442
|
if (resource === 'chat') {
|
|
443
443
|
if (operation === 'getAll') {
|
|
444
444
|
const phoneNumber = this.getNodeParameter('phoneNumber', i, '');
|
|
445
|
-
const page = this.getNodeParameter('page', i
|
|
446
|
-
const perPage = this.getNodeParameter('perPage', i
|
|
447
|
-
const qs = {
|
|
445
|
+
const page = this.getNodeParameter('page', i);
|
|
446
|
+
const perPage = this.getNodeParameter('perPage', i);
|
|
447
|
+
const qs = {};
|
|
448
|
+
if (page && page !== 1)
|
|
449
|
+
qs.page = page;
|
|
450
|
+
if (perPage && perPage !== 25)
|
|
451
|
+
qs.per_page = perPage;
|
|
448
452
|
if (phoneNumber)
|
|
449
453
|
qs.phone_number = phoneNumber;
|
|
450
454
|
responseData = await this.helpers.request({
|
|
@@ -526,7 +530,7 @@ class Linq {
|
|
|
526
530
|
headers: {
|
|
527
531
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
528
532
|
'Content-Type': 'application/json',
|
|
529
|
-
'Accept': 'application/
|
|
533
|
+
'Accept': 'application/json'
|
|
530
534
|
},
|
|
531
535
|
json: true,
|
|
532
536
|
});
|
|
@@ -572,7 +576,7 @@ class Linq {
|
|
|
572
576
|
headers: {
|
|
573
577
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
574
578
|
'Content-Type': 'application/json',
|
|
575
|
-
'Accept': 'application/
|
|
579
|
+
'Accept': 'application/json'
|
|
576
580
|
},
|
|
577
581
|
body: body,
|
|
578
582
|
json: true,
|
|
@@ -602,7 +606,7 @@ class Linq {
|
|
|
602
606
|
headers: {
|
|
603
607
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
604
608
|
'Content-Type': 'application/json',
|
|
605
|
-
'Accept': 'application/
|
|
609
|
+
'Accept': 'application/json'
|
|
606
610
|
},
|
|
607
611
|
body: body,
|
|
608
612
|
json: true,
|
|
@@ -620,7 +624,7 @@ class Linq {
|
|
|
620
624
|
headers: {
|
|
621
625
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
622
626
|
'Content-Type': 'application/json',
|
|
623
|
-
'Accept': 'application/
|
|
627
|
+
'Accept': 'application/json'
|
|
624
628
|
},
|
|
625
629
|
body: body,
|
|
626
630
|
json: true,
|
|
@@ -663,7 +667,7 @@ class Linq {
|
|
|
663
667
|
headers: {
|
|
664
668
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
665
669
|
'Content-Type': 'application/json',
|
|
666
|
-
'Accept': 'application/
|
|
670
|
+
'Accept': 'application/json'
|
|
667
671
|
},
|
|
668
672
|
body: body,
|
|
669
673
|
json: true,
|
|
@@ -714,7 +718,7 @@ class Linq {
|
|
|
714
718
|
headers: {
|
|
715
719
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
716
720
|
'Content-Type': 'application/json',
|
|
717
|
-
'Accept': 'application/
|
|
721
|
+
'Accept': 'application/json'
|
|
718
722
|
},
|
|
719
723
|
body: body,
|
|
720
724
|
json: true,
|
|
@@ -742,7 +746,7 @@ class Linq {
|
|
|
742
746
|
headers: {
|
|
743
747
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
744
748
|
'Content-Type': 'application/json',
|
|
745
|
-
'Accept': 'application/
|
|
749
|
+
'Accept': 'application/json'
|
|
746
750
|
},
|
|
747
751
|
body: body,
|
|
748
752
|
json: true,
|
|
@@ -794,7 +798,7 @@ class Linq {
|
|
|
794
798
|
headers: {
|
|
795
799
|
'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
|
|
796
800
|
'Content-Type': 'application/json',
|
|
797
|
-
'Accept': 'application/
|
|
801
|
+
'Accept': 'application/json'
|
|
798
802
|
},
|
|
799
803
|
body: body,
|
|
800
804
|
json: true,
|