n8n-nodes-linq 0.1.9 → 0.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.
@@ -451,7 +451,10 @@ class Linq {
451
451
  method: 'GET',
452
452
  url: 'https://api.linqapp.com/api/partner/v2/chats',
453
453
  qs,
454
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
454
+ headers: {
455
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
456
+ 'Accept': 'application/json'
457
+ },
455
458
  json: true,
456
459
  });
457
460
  }
@@ -460,7 +463,10 @@ class Linq {
460
463
  responseData = await this.helpers.request({
461
464
  method: 'GET',
462
465
  url: `https://api.linqapp.com/api/partner/v2/chats/${chatId}`,
463
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
466
+ headers: {
467
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
468
+ 'Accept': 'application/json'
469
+ },
464
470
  json: true,
465
471
  });
466
472
  }
@@ -475,7 +481,10 @@ class Linq {
475
481
  method: 'GET',
476
482
  url: 'https://api.linqapp.com/api/partner/v2/chats/find',
477
483
  qs,
478
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
484
+ headers: {
485
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
486
+ 'Accept': 'application/json'
487
+ },
479
488
  json: true,
480
489
  });
481
490
  }
@@ -503,7 +512,8 @@ class Linq {
503
512
  url: 'https://api.linqapp.com/api/partner/v2/chats',
504
513
  headers: {
505
514
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
506
- 'Content-Type': 'application/json'
515
+ 'Content-Type': 'application/json',
516
+ 'Accept': 'application/pdf'
507
517
  },
508
518
  body: body,
509
519
  json: true,
@@ -515,7 +525,8 @@ class Linq {
515
525
  url: 'https://api.linqapp.com/api/partner/v2/chats/share-contact',
516
526
  headers: {
517
527
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
518
- 'Content-Type': 'application/json'
528
+ 'Content-Type': 'application/json',
529
+ 'Accept': 'application/pdf'
519
530
  },
520
531
  json: true,
521
532
  });
@@ -529,7 +540,10 @@ class Linq {
529
540
  method: 'GET',
530
541
  url: `https://api.linqapp.com/api/partner/v2/chat_messages`,
531
542
  qs: { chat_id: chatId },
532
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
543
+ headers: {
544
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
545
+ 'Accept': 'application/json'
546
+ },
533
547
  json: true,
534
548
  });
535
549
  }
@@ -538,7 +552,10 @@ class Linq {
538
552
  responseData = await this.helpers.request({
539
553
  method: 'GET',
540
554
  url: `https://api.linqapp.com/api/partner/v2/chat_messages/${chatMessageId}`,
541
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
555
+ headers: {
556
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
557
+ 'Accept': 'application/json'
558
+ },
542
559
  json: true,
543
560
  });
544
561
  }
@@ -554,7 +571,8 @@ class Linq {
554
571
  url: 'https://api.linqapp.com/api/partner/v2/chat_messages',
555
572
  headers: {
556
573
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
557
- 'Content-Type': 'application/json'
574
+ 'Content-Type': 'application/json',
575
+ 'Accept': 'application/pdf'
558
576
  },
559
577
  body: body,
560
578
  json: true,
@@ -565,7 +583,10 @@ class Linq {
565
583
  responseData = await this.helpers.request({
566
584
  method: 'DELETE',
567
585
  url: `https://api.linqapp.com/api/partner/v2/chat_messages/${chatMessageId}`,
568
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
586
+ headers: {
587
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
588
+ 'Accept': 'application/json'
589
+ },
569
590
  json: true,
570
591
  });
571
592
  }
@@ -580,7 +601,8 @@ class Linq {
580
601
  url: `https://api.linqapp.com/api/partner/v2/chat_messages/${chatMessageId}/edit`,
581
602
  headers: {
582
603
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
583
- 'Content-Type': 'application/json'
604
+ 'Content-Type': 'application/json',
605
+ 'Accept': 'application/pdf'
584
606
  },
585
607
  body: body,
586
608
  json: true,
@@ -597,7 +619,8 @@ class Linq {
597
619
  url: `https://api.linqapp.com/api/partner/v2/chat_messages/${chatMessageId}/react`,
598
620
  headers: {
599
621
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
600
- 'Content-Type': 'application/json'
622
+ 'Content-Type': 'application/json',
623
+ 'Accept': 'application/pdf'
601
624
  },
602
625
  body: body,
603
626
  json: true,
@@ -608,7 +631,10 @@ class Linq {
608
631
  responseData = await this.helpers.request({
609
632
  method: 'GET',
610
633
  url: `https://api.linqapp.com/api/partner/v2/chat_messages/${chatMessageId}/reaction`,
611
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
634
+ headers: {
635
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
636
+ 'Accept': 'application/json'
637
+ },
612
638
  json: true,
613
639
  });
614
640
  }
@@ -619,7 +645,10 @@ class Linq {
619
645
  responseData = await this.helpers.request({
620
646
  method: 'GET',
621
647
  url: 'https://api.linqapp.com/api/partner/v2/phone_numbers',
622
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
648
+ headers: {
649
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
650
+ 'Accept': 'application/json'
651
+ },
623
652
  json: true,
624
653
  });
625
654
  }
@@ -633,7 +662,8 @@ class Linq {
633
662
  url: 'https://api.linqapp.com/api/partner/v2/i_message_availability/check',
634
663
  headers: {
635
664
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
636
- 'Content-Type': 'application/json'
665
+ 'Content-Type': 'application/json',
666
+ 'Accept': 'application/pdf'
637
667
  },
638
668
  body: body,
639
669
  json: true,
@@ -646,7 +676,10 @@ class Linq {
646
676
  responseData = await this.helpers.request({
647
677
  method: 'GET',
648
678
  url: 'https://api.linqapp.com/api/partner/v2/webhook_subscriptions',
649
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
679
+ headers: {
680
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
681
+ 'Accept': 'application/json'
682
+ },
650
683
  json: true,
651
684
  });
652
685
  }
@@ -655,7 +688,10 @@ class Linq {
655
688
  responseData = await this.helpers.request({
656
689
  method: 'GET',
657
690
  url: `https://api.linqapp.com/api/partner/v2/webhook_subscriptions/${webhookSubscriptionId}`,
658
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
691
+ headers: {
692
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
693
+ 'Accept': 'application/json'
694
+ },
659
695
  json: true,
660
696
  });
661
697
  }
@@ -677,7 +713,8 @@ class Linq {
677
713
  url: 'https://api.linqapp.com/api/partner/v2/webhook_subscriptions',
678
714
  headers: {
679
715
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
680
- 'Content-Type': 'application/json'
716
+ 'Content-Type': 'application/json',
717
+ 'Accept': 'application/pdf'
681
718
  },
682
719
  body: body,
683
720
  json: true,
@@ -704,7 +741,8 @@ class Linq {
704
741
  url: `https://api.linqapp.com/api/partner/v2/webhook_subscriptions/${webhookSubscriptionId}`,
705
742
  headers: {
706
743
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
707
- 'Content-Type': 'application/json'
744
+ 'Content-Type': 'application/json',
745
+ 'Accept': 'application/pdf'
708
746
  },
709
747
  body: body,
710
748
  json: true,
@@ -715,7 +753,10 @@ class Linq {
715
753
  responseData = await this.helpers.request({
716
754
  method: 'DELETE',
717
755
  url: `https://api.linqapp.com/api/partner/v2/webhook_subscriptions/${webhookSubscriptionId}`,
718
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
756
+ headers: {
757
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
758
+ 'Accept': 'application/json'
759
+ },
719
760
  json: true,
720
761
  });
721
762
  }
@@ -752,7 +793,8 @@ class Linq {
752
793
  url: 'https://api.linqapp.com/api/partner/v2/contacts',
753
794
  headers: {
754
795
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
755
- 'Content-Type': 'application/json'
796
+ 'Content-Type': 'application/json',
797
+ 'Accept': 'application/pdf'
756
798
  },
757
799
  body: body,
758
800
  json: true,
@@ -763,7 +805,10 @@ class Linq {
763
805
  responseData = await this.helpers.request({
764
806
  method: 'GET',
765
807
  url: `https://api.linqapp.com/api/partner/v2/contacts/${contactId}`,
766
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
808
+ headers: {
809
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
810
+ 'Accept': 'application/json'
811
+ },
767
812
  json: true,
768
813
  });
769
814
  }
@@ -798,7 +843,8 @@ class Linq {
798
843
  url: `https://api.linqapp.com/api/partner/v2/contacts/${contactId}`,
799
844
  headers: {
800
845
  'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
801
- 'Content-Type': 'application/json'
846
+ 'Content-Type': 'application/json',
847
+ 'Accept': 'application/json'
802
848
  },
803
849
  body: body,
804
850
  json: true,
@@ -809,7 +855,10 @@ class Linq {
809
855
  responseData = await this.helpers.request({
810
856
  method: 'DELETE',
811
857
  url: `https://api.linqapp.com/api/partner/v2/contacts/${contactId}`,
812
- headers: { 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken },
858
+ headers: {
859
+ 'X-LINQ-INTEGRATION-TOKEN': credentials.integrationToken,
860
+ 'Accept': 'application/json'
861
+ },
813
862
  json: true,
814
863
  });
815
864
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-linq",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Linq API integration for n8n",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",