@parra/parra-js-sdk 0.3.511 → 0.3.514

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/ParraAPI.js CHANGED
@@ -542,25 +542,25 @@ var ParraAPI = /** @class */ (function () {
542
542
  this.options = options;
543
543
  this.getAppInfo = function (tenant_id, application_id, query, options) {
544
544
  if (options === void 0) { options = {}; }
545
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), __assign({ method: "get", query: query }, options));
545
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), method: "get", query: query }, options));
546
546
  };
547
547
  this.checkAuthorization = function (body, options) {
548
548
  if (options === void 0) { options = {}; }
549
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/authorization/check"), __assign({ method: "post", body: JSON.stringify(body), headers: {
549
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/authorization/check"), method: "post", body: JSON.stringify(body), headers: {
550
550
  "content-type": "application/json",
551
551
  } }, options));
552
552
  };
553
553
  this.getUserInfo = function (options) {
554
554
  if (options === void 0) { options = {}; }
555
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/user-info"), __assign({ method: "get" }, options));
555
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/user-info"), method: "get" }, options));
556
556
  };
557
557
  this.getParraAuthToken = function (options) {
558
558
  if (options === void 0) { options = {}; }
559
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/parra/auth/token"), __assign({ method: "post" }, options));
559
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/parra/auth/token"), method: "post" }, options));
560
560
  };
561
561
  this.listImageAssetsForTenantById = function (tenant_id, query, options) {
562
562
  if (options === void 0) { options = {}; }
563
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), __assign({ method: "get", query: query }, options));
563
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), method: "get", query: query }, options));
564
564
  };
565
565
  this.uploadImageAssetForTenantById = function (tenant_id, body, options) {
566
566
  if (options === void 0) { options = {}; }
@@ -569,7 +569,7 @@ var ParraAPI = /** @class */ (function () {
569
569
  var key = _a[0], value = _a[1];
570
570
  formData.append(key, value);
571
571
  });
572
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), __assign({ method: "post", body: formData, headers: {} }, options));
572
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), method: "post", body: formData, headers: {} }, options));
573
573
  };
574
574
  this.uploadAvatarForUser = function (body, options) {
575
575
  if (options === void 0) { options = {}; }
@@ -578,7 +578,7 @@ var ParraAPI = /** @class */ (function () {
578
578
  var key = _a[0], value = _a[1];
579
579
  formData.append(key, value);
580
580
  });
581
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/avatar"), __assign({ method: "post", body: formData, headers: {} }, options));
581
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/avatar"), method: "post", body: formData, headers: {} }, options));
582
582
  };
583
583
  this.uploadAvatarForTenantUser = function (tenant_id, body, options) {
584
584
  if (options === void 0) { options = {}; }
@@ -587,7 +587,7 @@ var ParraAPI = /** @class */ (function () {
587
587
  var key = _a[0], value = _a[1];
588
588
  formData.append(key, value);
589
589
  });
590
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/avatar"), __assign({ method: "post", body: formData, headers: {} }, options));
590
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/avatar"), method: "post", body: formData, headers: {} }, options));
591
591
  };
592
592
  this.uploadIconForTenantApplication = function (tenant_id, application_id, body, options) {
593
593
  if (options === void 0) { options = {}; }
@@ -596,7 +596,7 @@ var ParraAPI = /** @class */ (function () {
596
596
  var key = _a[0], value = _a[1];
597
597
  formData.append(key, value);
598
598
  });
599
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/icon"), __assign({ method: "post", body: formData, headers: {} }, options));
599
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/icon"), method: "post", body: formData, headers: {} }, options));
600
600
  };
601
601
  this.uploadHeaderForTenantRelease = function (tenant_id, release_id, body, options) {
602
602
  if (options === void 0) { options = {}; }
@@ -605,7 +605,7 @@ var ParraAPI = /** @class */ (function () {
605
605
  var key = _a[0], value = _a[1];
606
606
  formData.append(key, value);
607
607
  });
608
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/header"), __assign({ method: "post", body: formData, headers: {} }, options));
608
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/header"), method: "post", body: formData, headers: {} }, options));
609
609
  };
610
610
  this.uploadAttachmentForTicketById = function (tenant_id, ticket_id, body, options) {
611
611
  if (options === void 0) { options = {}; }
@@ -614,7 +614,7 @@ var ParraAPI = /** @class */ (function () {
614
614
  var key = _a[0], value = _a[1];
615
615
  formData.append(key, value);
616
616
  });
617
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments"), __assign({ method: "post", body: formData, headers: {} }, options));
617
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments"), method: "post", body: formData, headers: {} }, options));
618
618
  };
619
619
  this.createContentCard = function (tenant_id, body, options) {
620
620
  if (options === void 0) { options = {}; }
@@ -623,11 +623,11 @@ var ParraAPI = /** @class */ (function () {
623
623
  var key = _a[0], value = _a[1];
624
624
  formData.append(key, value);
625
625
  });
626
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "post", body: formData, headers: {} }, options));
626
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), method: "post", body: formData, headers: {} }, options));
627
627
  };
628
628
  this.paginateContentCards = function (tenant_id, query, options) {
629
629
  if (options === void 0) { options = {}; }
630
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), __assign({ method: "get", query: query }, options));
630
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards"), method: "get", query: query }, options));
631
631
  };
632
632
  this.updateBackgroundImageForContentCardById = function (tenant_id, content_card_id, body, options) {
633
633
  if (options === void 0) { options = {}; }
@@ -636,7 +636,7 @@ var ParraAPI = /** @class */ (function () {
636
636
  var key = _a[0], value = _a[1];
637
637
  formData.append(key, value);
638
638
  });
639
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id, "/background/image"), __assign({ method: "post", body: formData, headers: {} }, options));
639
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id, "/background/image"), method: "post", body: formData, headers: {} }, options));
640
640
  };
641
641
  this.uploadAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, body, options) {
642
642
  if (options === void 0) { options = {}; }
@@ -645,7 +645,7 @@ var ParraAPI = /** @class */ (function () {
645
645
  var key = _a[0], value = _a[1];
646
646
  formData.append(key, value);
647
647
  });
648
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments"), __assign({ method: "post", body: formData, headers: {} }, options));
648
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments"), method: "post", body: formData, headers: {} }, options));
649
649
  };
650
650
  this.uploadLogoForTenantById = function (tenant_id, body, options) {
651
651
  if (options === void 0) { options = {}; }
@@ -654,1921 +654,1921 @@ var ParraAPI = /** @class */ (function () {
654
654
  var key = _a[0], value = _a[1];
655
655
  formData.append(key, value);
656
656
  });
657
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/logo"), __assign({ method: "post", body: formData, headers: {} }, options));
657
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/logo"), method: "post", body: formData, headers: {} }, options));
658
658
  };
659
659
  this.listFeaturedApplications = function (options) {
660
660
  if (options === void 0) { options = {}; }
661
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/applications/featured"), __assign({ method: "get" }, options));
661
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/applications/featured"), method: "get" }, options));
662
662
  };
663
663
  this.getLinkByDomainAndKey = function (link_domain, link_key, options) {
664
664
  if (options === void 0) { options = {}; }
665
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/links/domains/").concat(link_domain, "/keys/").concat(link_key), __assign({ method: "get" }, options));
665
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/links/domains/").concat(link_domain, "/keys/").concat(link_key), method: "get" }, options));
666
666
  };
667
667
  this.createCheckoutSession = function (body, options) {
668
668
  if (options === void 0) { options = {}; }
669
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/checkout/sessions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
669
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
670
670
  "content-type": "application/json",
671
671
  } }, options));
672
672
  };
673
673
  this.getPlansForTenantById = function (tenant_id, options) {
674
674
  if (options === void 0) { options = {}; }
675
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), __assign({ method: "post" }, options));
675
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), method: "post" }, options));
676
676
  };
677
677
  this.createBillingPortalSession = function (tenant_id, options) {
678
678
  if (options === void 0) { options = {}; }
679
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), __assign({ method: "post" }, options));
679
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), method: "post" }, options));
680
680
  };
681
681
  this.createSubscriberForEmailAudienceById = function (email_audience_id, body, options) {
682
682
  if (options === void 0) { options = {}; }
683
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/email/audiences/").concat(email_audience_id, "/subscribers"), __assign({ method: "post", body: JSON.stringify(body), headers: {
683
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/email/audiences/").concat(email_audience_id, "/subscribers"), method: "post", body: JSON.stringify(body), headers: {
684
684
  "content-type": "application/json",
685
685
  }, raw: true }, options));
686
686
  };
687
687
  this.createDesignSystem = function (tenant_id, body, options) {
688
688
  if (options === void 0) { options = {}; }
689
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems"), __assign({ method: "post", body: JSON.stringify(body), headers: {
689
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems"), method: "post", body: JSON.stringify(body), headers: {
690
690
  "content-type": "application/json",
691
691
  } }, options));
692
692
  };
693
693
  this.listDesignSystems = function (tenant_id, options) {
694
694
  if (options === void 0) { options = {}; }
695
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems"), __assign({ method: "get" }, options));
695
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems"), method: "get" }, options));
696
696
  };
697
697
  this.getDesignSystemJson = function (tenant_id, design_system_id, options) {
698
698
  if (options === void 0) { options = {}; }
699
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/json"), __assign({ method: "get" }, options));
699
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/json"), method: "get" }, options));
700
700
  };
701
701
  this.getDesignSystemById = function (tenant_id, design_system_id, options) {
702
702
  if (options === void 0) { options = {}; }
703
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), __assign({ method: "get" }, options));
703
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), method: "get" }, options));
704
704
  };
705
705
  this.updateDesignSystemById = function (tenant_id, design_system_id, body, options) {
706
706
  if (options === void 0) { options = {}; }
707
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
707
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), method: "put", body: JSON.stringify(body), headers: {
708
708
  "content-type": "application/json",
709
709
  } }, options));
710
710
  };
711
711
  this.deleteDesignSystemById = function (tenant_id, design_system_id, options) {
712
712
  if (options === void 0) { options = {}; }
713
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), __assign({ method: "delete" }, options));
713
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id), method: "delete" }, options));
714
714
  };
715
715
  this.createTokenForDesignSystem = function (tenant_id, design_system_id, body, options) {
716
716
  if (options === void 0) { options = {}; }
717
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens"), __assign({ method: "post", body: JSON.stringify(body), headers: {
717
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-systems/").concat(design_system_id, "/tokens"), method: "post", body: JSON.stringify(body), headers: {
718
718
  "content-type": "application/json",
719
719
  } }, options));
720
720
  };
721
721
  this.getDesignTokenById = function (tenant_id, design_token_id, options) {
722
722
  if (options === void 0) { options = {}; }
723
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), __assign({ method: "get" }, options));
723
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "get" }, options));
724
724
  };
725
725
  this.updateDesignTokenById = function (tenant_id, design_token_id, body, options) {
726
726
  if (options === void 0) { options = {}; }
727
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
727
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "put", body: JSON.stringify(body), headers: {
728
728
  "content-type": "application/json",
729
729
  } }, options));
730
730
  };
731
731
  this.deleteDesignTokenById = function (tenant_id, design_token_id, options) {
732
732
  if (options === void 0) { options = {}; }
733
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), __assign({ method: "delete" }, options));
733
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/design-tokens/").concat(design_token_id), method: "delete" }, options));
734
734
  };
735
735
  this.createShareAsset = function (tenant_id, body, options) {
736
736
  if (options === void 0) { options = {}; }
737
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets"), __assign({ method: "post", body: JSON.stringify(body), headers: {
737
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets"), method: "post", body: JSON.stringify(body), headers: {
738
738
  "content-type": "application/json",
739
739
  } }, options));
740
740
  };
741
741
  this.listShareAssets = function (tenant_id, query, options) {
742
742
  if (options === void 0) { options = {}; }
743
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets"), __assign({ method: "get", query: query }, options));
743
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets"), method: "get", query: query }, options));
744
744
  };
745
745
  this.getShareAssetById = function (tenant_id, share_asset_id, options) {
746
746
  if (options === void 0) { options = {}; }
747
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), __assign({ method: "get" }, options));
747
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), method: "get" }, options));
748
748
  };
749
749
  this.updateShareAssetById = function (tenant_id, share_asset_id, body, options) {
750
750
  if (options === void 0) { options = {}; }
751
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
751
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), method: "put", body: JSON.stringify(body), headers: {
752
752
  "content-type": "application/json",
753
753
  } }, options));
754
754
  };
755
755
  this.deleteShareAssetById = function (tenant_id, share_asset_id, options) {
756
756
  if (options === void 0) { options = {}; }
757
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), __assign({ method: "delete" }, options));
757
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/brand/share-assets/").concat(share_asset_id), method: "delete" }, options));
758
758
  };
759
759
  this.updateAppleInAppPurchase = function (tenant_id, billing_source_id, apple_in_app_purchase_id, body, options) {
760
760
  if (options === void 0) { options = {}; }
761
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/in-app-purchases/").concat(apple_in_app_purchase_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
761
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/in-app-purchases/").concat(apple_in_app_purchase_id), method: "put", body: JSON.stringify(body), headers: {
762
762
  "content-type": "application/json",
763
763
  } }, options));
764
764
  };
765
765
  this.updateAppleSubscription = function (tenant_id, billing_source_id, apple_subscription_id, body, options) {
766
766
  if (options === void 0) { options = {}; }
767
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/subscriptions/").concat(apple_subscription_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
767
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/subscriptions/").concat(apple_subscription_id), method: "put", body: JSON.stringify(body), headers: {
768
768
  "content-type": "application/json",
769
769
  } }, options));
770
770
  };
771
771
  this.getAppPaywall = function (tenant_id, application_id, query, options) {
772
772
  if (options === void 0) { options = {}; }
773
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/paywall"), __assign({ method: "get", query: query }, options));
773
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/paywall"), method: "get", query: query }, options));
774
774
  };
775
775
  this.createPurchaseForTenantApplication = function (tenant_id, application_id, body, options) {
776
776
  if (options === void 0) { options = {}; }
777
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/purchases"), __assign({ method: "post", body: JSON.stringify(body), headers: {
777
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/purchases"), method: "post", body: JSON.stringify(body), headers: {
778
778
  "content-type": "application/json",
779
779
  } }, options));
780
780
  };
781
781
  this.createEntitlementForTenantUserById = function (tenant_id, user_id, body, options) {
782
782
  if (options === void 0) { options = {}; }
783
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), __assign({ method: "post", body: JSON.stringify(body), headers: {
783
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), method: "post", body: JSON.stringify(body), headers: {
784
784
  "content-type": "application/json",
785
785
  }, raw: true }, options));
786
786
  };
787
787
  this.listEntitlementsForTenantUserById = function (tenant_id, user_id, options) {
788
788
  if (options === void 0) { options = {}; }
789
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), __assign({ method: "get" }, options));
789
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements"), method: "get" }, options));
790
790
  };
791
791
  this.consumeEntitlementForTenantUserById = function (tenant_id, user_id, entitlement_id_or_key, body, options) {
792
792
  if (options === void 0) { options = {}; }
793
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements/").concat(entitlement_id_or_key, "/consume"), __assign({ method: "post", body: JSON.stringify(body), headers: {
793
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/entitlements/").concat(entitlement_id_or_key, "/consume"), method: "post", body: JSON.stringify(body), headers: {
794
794
  "content-type": "application/json",
795
795
  } }, options));
796
796
  };
797
797
  this.listPurchasesForTenantUser = function (tenant_id, user_id, options) {
798
798
  if (options === void 0) { options = {}; }
799
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/purchases"), __assign({ method: "get" }, options));
799
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/purchases"), method: "get" }, options));
800
800
  };
801
801
  this.createBillingSource = function (tenant_id, body, options) {
802
802
  if (options === void 0) { options = {}; }
803
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), __assign({ method: "post", body: JSON.stringify(body), headers: {
803
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), method: "post", body: JSON.stringify(body), headers: {
804
804
  "content-type": "application/json",
805
805
  } }, options));
806
806
  };
807
807
  this.listBillingSources = function (tenant_id, options) {
808
808
  if (options === void 0) { options = {}; }
809
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), __assign({ method: "get" }, options));
809
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources"), method: "get" }, options));
810
810
  };
811
811
  this.getBillingSourceById = function (tenant_id, billing_source_id, options) {
812
812
  if (options === void 0) { options = {}; }
813
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), __assign({ method: "get" }, options));
813
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), method: "get" }, options));
814
814
  };
815
815
  this.updateBillingSourceById = function (tenant_id, billing_source_id, body, options) {
816
816
  if (options === void 0) { options = {}; }
817
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
817
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), method: "put", body: JSON.stringify(body), headers: {
818
818
  "content-type": "application/json",
819
819
  } }, options));
820
820
  };
821
821
  this.deleteBillingSourceById = function (tenant_id, billing_source_id, options) {
822
822
  if (options === void 0) { options = {}; }
823
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), __assign({ method: "delete" }, options));
823
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id), method: "delete" }, options));
824
824
  };
825
825
  this.setupAppStoreServerNotificationsForAppleBillingSource = function (tenant_id, billing_source_id, options) {
826
826
  if (options === void 0) { options = {}; }
827
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/setup"), __assign({ method: "post" }, options));
827
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/setup"), method: "post" }, options));
828
828
  };
829
829
  this.syncAppStoreForAppleBillingSource = function (tenant_id, billing_source_id, options) {
830
830
  if (options === void 0) { options = {}; }
831
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store/sync"), __assign({ method: "post" }, options));
831
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store/sync"), method: "post" }, options));
832
832
  };
833
833
  this.testAppStoreServerNotificationsForAppleBillingSource = function (tenant_id, billing_source_id, options) {
834
834
  if (options === void 0) { options = {}; }
835
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/test"), __assign({ method: "post" }, options));
835
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/test"), method: "post" }, options));
836
836
  };
837
837
  this.createEntitlement = function (tenant_id, body, options) {
838
838
  if (options === void 0) { options = {}; }
839
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements"), __assign({ method: "post", body: JSON.stringify(body), headers: {
839
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements"), method: "post", body: JSON.stringify(body), headers: {
840
840
  "content-type": "application/json",
841
841
  } }, options));
842
842
  };
843
843
  this.listEntitlements = function (tenant_id, options) {
844
844
  if (options === void 0) { options = {}; }
845
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements"), __assign({ method: "get" }, options));
845
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements"), method: "get" }, options));
846
846
  };
847
847
  this.getEntitlementById = function (tenant_id, entitlement_id, options) {
848
848
  if (options === void 0) { options = {}; }
849
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), __assign({ method: "get" }, options));
849
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), method: "get" }, options));
850
850
  };
851
851
  this.updateEntitlementById = function (tenant_id, entitlement_id, body, options) {
852
852
  if (options === void 0) { options = {}; }
853
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
853
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), method: "put", body: JSON.stringify(body), headers: {
854
854
  "content-type": "application/json",
855
855
  } }, options));
856
856
  };
857
857
  this.deleteEntitlementById = function (tenant_id, entitlement_id, options) {
858
858
  if (options === void 0) { options = {}; }
859
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), __assign({ method: "delete" }, options));
859
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/entitlements/").concat(entitlement_id), method: "delete" }, options));
860
860
  };
861
861
  this.createProduct = function (tenant_id, body, options) {
862
862
  if (options === void 0) { options = {}; }
863
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), __assign({ method: "post", body: JSON.stringify(body), headers: {
863
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), method: "post", body: JSON.stringify(body), headers: {
864
864
  "content-type": "application/json",
865
865
  } }, options));
866
866
  };
867
867
  this.listProducts = function (tenant_id, options) {
868
868
  if (options === void 0) { options = {}; }
869
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), __assign({ method: "get" }, options));
869
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products"), method: "get" }, options));
870
870
  };
871
871
  this.getProductById = function (tenant_id, product_id, options) {
872
872
  if (options === void 0) { options = {}; }
873
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), __assign({ method: "get" }, options));
873
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), method: "get" }, options));
874
874
  };
875
875
  this.updateProductById = function (tenant_id, product_id, body, options) {
876
876
  if (options === void 0) { options = {}; }
877
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
877
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), method: "put", body: JSON.stringify(body), headers: {
878
878
  "content-type": "application/json",
879
879
  } }, options));
880
880
  };
881
881
  this.deleteProductById = function (tenant_id, product_id, options) {
882
882
  if (options === void 0) { options = {}; }
883
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), __assign({ method: "delete" }, options));
883
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id), method: "delete" }, options));
884
884
  };
885
885
  this.addEntitlementToProduct = function (tenant_id, product_id, body, options) {
886
886
  if (options === void 0) { options = {}; }
887
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements"), __assign({ method: "post", body: JSON.stringify(body), headers: {
887
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements"), method: "post", body: JSON.stringify(body), headers: {
888
888
  "content-type": "application/json",
889
889
  } }, options));
890
890
  };
891
891
  this.updateProductEntitlement = function (tenant_id, product_id, product_entitlement_id, body, options) {
892
892
  if (options === void 0) { options = {}; }
893
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
893
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), method: "put", body: JSON.stringify(body), headers: {
894
894
  "content-type": "application/json",
895
895
  } }, options));
896
896
  };
897
897
  this.deleteProductEntitlement = function (tenant_id, product_id, product_entitlement_id, options) {
898
898
  if (options === void 0) { options = {}; }
899
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), __assign({ method: "delete" }, options));
899
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/products/").concat(product_id, "/entitlements/").concat(product_entitlement_id), method: "delete" }, options));
900
900
  };
901
901
  this.createOffering = function (tenant_id, body, options) {
902
902
  if (options === void 0) { options = {}; }
903
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings"), __assign({ method: "post", body: JSON.stringify(body), headers: {
903
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings"), method: "post", body: JSON.stringify(body), headers: {
904
904
  "content-type": "application/json",
905
905
  } }, options));
906
906
  };
907
907
  this.listOfferings = function (tenant_id, options) {
908
908
  if (options === void 0) { options = {}; }
909
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings"), __assign({ method: "get" }, options));
909
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings"), method: "get" }, options));
910
910
  };
911
911
  this.updateOfferingById = function (tenant_id, offering_id, body, options) {
912
912
  if (options === void 0) { options = {}; }
913
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings/").concat(offering_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
913
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings/").concat(offering_id), method: "put", body: JSON.stringify(body), headers: {
914
914
  "content-type": "application/json",
915
915
  } }, options));
916
916
  };
917
917
  this.deleteOfferingById = function (tenant_id, offering_id, options) {
918
918
  if (options === void 0) { options = {}; }
919
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings/").concat(offering_id), __assign({ method: "delete" }, options));
919
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/offerings/").concat(offering_id), method: "delete" }, options));
920
920
  };
921
921
  this.createPaywall = function (tenant_id, body, options) {
922
922
  if (options === void 0) { options = {}; }
923
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls"), __assign({ method: "post", body: JSON.stringify(body), headers: {
923
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls"), method: "post", body: JSON.stringify(body), headers: {
924
924
  "content-type": "application/json",
925
925
  } }, options));
926
926
  };
927
927
  this.listPaywalls = function (tenant_id, options) {
928
928
  if (options === void 0) { options = {}; }
929
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls"), __assign({ method: "get" }, options));
929
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls"), method: "get" }, options));
930
930
  };
931
931
  this.getPaywallById = function (tenant_id, paywall_id, options) {
932
932
  if (options === void 0) { options = {}; }
933
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), __assign({ method: "get" }, options));
933
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), method: "get" }, options));
934
934
  };
935
935
  this.updatePaywallById = function (tenant_id, paywall_id, body, options) {
936
936
  if (options === void 0) { options = {}; }
937
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
937
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), method: "put", body: JSON.stringify(body), headers: {
938
938
  "content-type": "application/json",
939
939
  } }, options));
940
940
  };
941
941
  this.deletePaywallById = function (tenant_id, paywall_id, options) {
942
942
  if (options === void 0) { options = {}; }
943
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), __assign({ method: "delete" }, options));
943
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/paywalls/").concat(paywall_id), method: "delete" }, options));
944
944
  };
945
945
  this.createChatChannel = function (tenant_id, body, options) {
946
946
  if (options === void 0) { options = {}; }
947
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), __assign({ method: "post", body: JSON.stringify(body), headers: {
947
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), method: "post", body: JSON.stringify(body), headers: {
948
948
  "content-type": "application/json",
949
949
  } }, options));
950
950
  };
951
951
  this.listChatChannels = function (tenant_id, query, options) {
952
952
  if (options === void 0) { options = {}; }
953
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), __assign({ method: "get", query: query }, options));
953
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels"), method: "get", query: query }, options));
954
954
  };
955
955
  this.getChatChannel = function (tenant_id, channel_id, query, options) {
956
956
  if (options === void 0) { options = {}; }
957
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "get", query: query }, options));
957
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), method: "get", query: query }, options));
958
958
  };
959
959
  this.deleteChatChannel = function (tenant_id, channel_id, options) {
960
960
  if (options === void 0) { options = {}; }
961
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), __assign({ method: "delete" }, options));
961
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id), method: "delete" }, options));
962
962
  };
963
963
  this.addMemberToChatChannel = function (tenant_id, channel_id, body, options) {
964
964
  if (options === void 0) { options = {}; }
965
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/members"), __assign({ method: "post", body: JSON.stringify(body), headers: {
965
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/members"), method: "post", body: JSON.stringify(body), headers: {
966
966
  "content-type": "application/json",
967
967
  } }, options));
968
968
  };
969
969
  this.listMembersForChatChannel = function (tenant_id, channel_id, options) {
970
970
  if (options === void 0) { options = {}; }
971
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/members"), __assign({ method: "get" }, options));
971
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/members"), method: "get" }, options));
972
972
  };
973
973
  this.lockChatChannel = function (tenant_id, channel_id, options) {
974
974
  if (options === void 0) { options = {}; }
975
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/lock"), __assign({ method: "post" }, options));
975
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/lock"), method: "post" }, options));
976
976
  };
977
977
  this.unlockChatChannel = function (tenant_id, channel_id, options) {
978
978
  if (options === void 0) { options = {}; }
979
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/unlock"), __assign({ method: "post" }, options));
979
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/unlock"), method: "post" }, options));
980
980
  };
981
981
  this.leaveChatChannel = function (tenant_id, channel_id, options) {
982
982
  if (options === void 0) { options = {}; }
983
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/leave"), __assign({ method: "post" }, options));
983
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/leave"), method: "post" }, options));
984
984
  };
985
985
  this.paginateMessagesForChatChannel = function (tenant_id, channel_id, query, options) {
986
986
  if (options === void 0) { options = {}; }
987
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), __assign({ method: "get", query: query }, options));
987
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), method: "get", query: query }, options));
988
988
  };
989
989
  this.createMessageForChatChannel = function (tenant_id, channel_id, body, options) {
990
990
  if (options === void 0) { options = {}; }
991
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), __assign({ method: "post", body: JSON.stringify(body), headers: {
991
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/channels/").concat(channel_id, "/messages"), method: "post", body: JSON.stringify(body), headers: {
992
992
  "content-type": "application/json",
993
993
  } }, options));
994
994
  };
995
995
  this.deleteChatMessage = function (tenant_id, message_id, options) {
996
996
  if (options === void 0) { options = {}; }
997
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id), __assign({ method: "delete" }, options));
997
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id), method: "delete" }, options));
998
998
  };
999
999
  this.flagChatMessage = function (tenant_id, message_id, body, options) {
1000
1000
  if (options === void 0) { options = {}; }
1001
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/flag"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1001
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/flag"), method: "post", body: JSON.stringify(body), headers: {
1002
1002
  "content-type": "application/json",
1003
1003
  }, raw: true }, options));
1004
1004
  };
1005
1005
  this.addReactionToChatMessage = function (tenant_id, message_id, body, options) {
1006
1006
  if (options === void 0) { options = {}; }
1007
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1007
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions"), method: "post", body: JSON.stringify(body), headers: {
1008
1008
  "content-type": "application/json",
1009
1009
  } }, options));
1010
1010
  };
1011
1011
  this.removeReactionFromChatMessage = function (tenant_id, message_id, reaction_id, options) {
1012
1012
  if (options === void 0) { options = {}; }
1013
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions/").concat(reaction_id), __assign({ method: "delete" }, options));
1013
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/chat/messages/").concat(message_id, "/reactions/").concat(reaction_id), method: "delete" }, options));
1014
1014
  };
1015
1015
  this.createCourse = function (tenant_id, body, options) {
1016
1016
  if (options === void 0) { options = {}; }
1017
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1017
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses"), method: "post", body: JSON.stringify(body), headers: {
1018
1018
  "content-type": "application/json",
1019
1019
  } }, options));
1020
1020
  };
1021
1021
  this.listCourses = function (tenant_id, options) {
1022
1022
  if (options === void 0) { options = {}; }
1023
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses"), __assign({ method: "get" }, options));
1023
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses"), method: "get" }, options));
1024
1024
  };
1025
1025
  this.createCheckoutSessionForCourse = function (tenant_id, course_id, body, options) {
1026
1026
  if (options === void 0) { options = {}; }
1027
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/checkout/sessions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1027
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/checkout/sessions"), method: "post", body: JSON.stringify(body), headers: {
1028
1028
  "content-type": "application/json",
1029
1029
  } }, options));
1030
1030
  };
1031
1031
  this.getCourseById = function (tenant_id, course_id, query, options) {
1032
1032
  if (options === void 0) { options = {}; }
1033
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), __assign({ method: "get", query: query }, options));
1033
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), method: "get", query: query }, options));
1034
1034
  };
1035
1035
  this.updateCourseById = function (tenant_id, course_id, body, options) {
1036
1036
  if (options === void 0) { options = {}; }
1037
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1037
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), method: "put", body: JSON.stringify(body), headers: {
1038
1038
  "content-type": "application/json",
1039
1039
  } }, options));
1040
1040
  };
1041
1041
  this.deleteCourseById = function (tenant_id, course_id, options) {
1042
1042
  if (options === void 0) { options = {}; }
1043
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), __assign({ method: "delete" }, options));
1043
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id), method: "delete" }, options));
1044
1044
  };
1045
1045
  this.getAppCourseById = function (tenant_id, course_id, query, options) {
1046
1046
  if (options === void 0) { options = {}; }
1047
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/courses/").concat(course_id), __assign({ method: "get", query: query }, options));
1047
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/courses/").concat(course_id), method: "get", query: query }, options));
1048
1048
  };
1049
1049
  this.enrollInCourse = function (tenant_id, course_id, options) {
1050
1050
  if (options === void 0) { options = {}; }
1051
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/enroll"), __assign({ method: "post" }, options));
1051
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/enroll"), method: "post" }, options));
1052
1052
  };
1053
1053
  this.createModuleForCourse = function (tenant_id, course_id, body, options) {
1054
1054
  if (options === void 0) { options = {}; }
1055
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1055
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules"), method: "post", body: JSON.stringify(body), headers: {
1056
1056
  "content-type": "application/json",
1057
1057
  } }, options));
1058
1058
  };
1059
1059
  this.updateModuleForCourseById = function (tenant_id, course_id, course_module_id, body, options) {
1060
1060
  if (options === void 0) { options = {}; }
1061
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1061
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id), method: "put", body: JSON.stringify(body), headers: {
1062
1062
  "content-type": "application/json",
1063
1063
  } }, options));
1064
1064
  };
1065
1065
  this.deleteModuleForCourseById = function (tenant_id, course_id, course_module_id, options) {
1066
1066
  if (options === void 0) { options = {}; }
1067
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id), __assign({ method: "delete" }, options));
1067
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id), method: "delete" }, options));
1068
1068
  };
1069
1069
  this.createLessonForModule = function (tenant_id, course_id, course_module_id, body, options) {
1070
1070
  if (options === void 0) { options = {}; }
1071
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id, "/lessons"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1071
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/modules/").concat(course_module_id, "/lessons"), method: "post", body: JSON.stringify(body), headers: {
1072
1072
  "content-type": "application/json",
1073
1073
  } }, options));
1074
1074
  };
1075
1075
  this.updateLessonForCourseById = function (tenant_id, course_id, lesson_id, body, options) {
1076
1076
  if (options === void 0) { options = {}; }
1077
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1077
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id), method: "put", body: JSON.stringify(body), headers: {
1078
1078
  "content-type": "application/json",
1079
1079
  } }, options));
1080
1080
  };
1081
1081
  this.deleteLessonForCourseById = function (tenant_id, course_id, lesson_id, options) {
1082
1082
  if (options === void 0) { options = {}; }
1083
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id), __assign({ method: "delete" }, options));
1083
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id), method: "delete" }, options));
1084
1084
  };
1085
1085
  this.createSectionForLesson = function (tenant_id, course_id, lesson_id, body, options) {
1086
1086
  if (options === void 0) { options = {}; }
1087
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1087
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections"), method: "post", body: JSON.stringify(body), headers: {
1088
1088
  "content-type": "application/json",
1089
1089
  } }, options));
1090
1090
  };
1091
1091
  this.updateSectionForLesson = function (tenant_id, course_id, lesson_id, lesson_section_id, body, options) {
1092
1092
  if (options === void 0) { options = {}; }
1093
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections/").concat(lesson_section_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1093
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections/").concat(lesson_section_id), method: "put", body: JSON.stringify(body), headers: {
1094
1094
  "content-type": "application/json",
1095
1095
  } }, options));
1096
1096
  };
1097
1097
  this.deleteSectionForLesson = function (tenant_id, course_id, lesson_id, lesson_section_id, options) {
1098
1098
  if (options === void 0) { options = {}; }
1099
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections/").concat(lesson_section_id), __assign({ method: "delete" }, options));
1099
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/courses/").concat(course_id, "/lessons/").concat(lesson_id, "/sections/").concat(lesson_section_id), method: "delete" }, options));
1100
1100
  };
1101
1101
  this.reportCourseLessonProgress = function (tenant_id, lesson_id, body, options) {
1102
1102
  if (options === void 0) { options = {}; }
1103
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/lessons/").concat(lesson_id, "/progress"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1103
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/lessons/").concat(lesson_id, "/progress"), method: "post", body: JSON.stringify(body), headers: {
1104
1104
  "content-type": "application/json",
1105
1105
  }, raw: true }, options));
1106
1106
  };
1107
1107
  this.listAppFaqs = function (tenant_id, application_id, query, options) {
1108
1108
  if (options === void 0) { options = {}; }
1109
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/faqs"), __assign({ method: "get", query: query }, options));
1109
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/faqs"), method: "get", query: query }, options));
1110
1110
  };
1111
1111
  this.createFaqView = function (tenant_id, body, options) {
1112
1112
  if (options === void 0) { options = {}; }
1113
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1113
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views"), method: "post", body: JSON.stringify(body), headers: {
1114
1114
  "content-type": "application/json",
1115
1115
  } }, options));
1116
1116
  };
1117
1117
  this.listFaqViews = function (tenant_id, options) {
1118
1118
  if (options === void 0) { options = {}; }
1119
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views"), __assign({ method: "get" }, options));
1119
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views"), method: "get" }, options));
1120
1120
  };
1121
1121
  this.getFaqViewById = function (tenant_id, faq_view_id, options) {
1122
1122
  if (options === void 0) { options = {}; }
1123
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), __assign({ method: "get" }, options));
1123
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), method: "get" }, options));
1124
1124
  };
1125
1125
  this.updateFaqViewById = function (tenant_id, faq_view_id, body, options) {
1126
1126
  if (options === void 0) { options = {}; }
1127
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1127
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), method: "put", body: JSON.stringify(body), headers: {
1128
1128
  "content-type": "application/json",
1129
1129
  } }, options));
1130
1130
  };
1131
1131
  this.deleteFaqViewById = function (tenant_id, faq_view_id, options) {
1132
1132
  if (options === void 0) { options = {}; }
1133
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), __assign({ method: "delete" }, options));
1133
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id), method: "delete" }, options));
1134
1134
  };
1135
1135
  this.createFaq = function (tenant_id, body, options) {
1136
1136
  if (options === void 0) { options = {}; }
1137
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1137
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs"), method: "post", body: JSON.stringify(body), headers: {
1138
1138
  "content-type": "application/json",
1139
1139
  } }, options));
1140
1140
  };
1141
1141
  this.listFaqs = function (tenant_id, options) {
1142
1142
  if (options === void 0) { options = {}; }
1143
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs"), __assign({ method: "get" }, options));
1143
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs"), method: "get" }, options));
1144
1144
  };
1145
1145
  this.getFaqById = function (tenant_id, faq_id, options) {
1146
1146
  if (options === void 0) { options = {}; }
1147
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), __assign({ method: "get" }, options));
1147
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), method: "get" }, options));
1148
1148
  };
1149
1149
  this.updateFaqById = function (tenant_id, faq_id, body, options) {
1150
1150
  if (options === void 0) { options = {}; }
1151
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1151
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), method: "put", body: JSON.stringify(body), headers: {
1152
1152
  "content-type": "application/json",
1153
1153
  } }, options));
1154
1154
  };
1155
1155
  this.deleteFaqById = function (tenant_id, faq_id, options) {
1156
1156
  if (options === void 0) { options = {}; }
1157
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), __assign({ method: "delete" }, options));
1157
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/").concat(faq_id), method: "delete" }, options));
1158
1158
  };
1159
1159
  this.createFaqSection = function (tenant_id, faq_view_id, body, options) {
1160
1160
  if (options === void 0) { options = {}; }
1161
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1161
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections"), method: "post", body: JSON.stringify(body), headers: {
1162
1162
  "content-type": "application/json",
1163
1163
  } }, options));
1164
1164
  };
1165
1165
  this.listFaqSections = function (tenant_id, faq_view_id, options) {
1166
1166
  if (options === void 0) { options = {}; }
1167
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections"), __assign({ method: "get" }, options));
1167
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections"), method: "get" }, options));
1168
1168
  };
1169
1169
  this.getFaqSectionById = function (tenant_id, faq_view_id, faq_section_id, options) {
1170
1170
  if (options === void 0) { options = {}; }
1171
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), __assign({ method: "get" }, options));
1171
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), method: "get" }, options));
1172
1172
  };
1173
1173
  this.updateFaqSectionById = function (tenant_id, faq_view_id, faq_section_id, body, options) {
1174
1174
  if (options === void 0) { options = {}; }
1175
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1175
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), method: "put", body: JSON.stringify(body), headers: {
1176
1176
  "content-type": "application/json",
1177
1177
  } }, options));
1178
1178
  };
1179
1179
  this.deleteFaqSectionById = function (tenant_id, faq_view_id, faq_section_id, options) {
1180
1180
  if (options === void 0) { options = {}; }
1181
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), __assign({ method: "delete" }, options));
1181
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), method: "delete" }, options));
1182
1182
  };
1183
1183
  this.addFaqToSection = function (tenant_id, faq_view_id, faq_section_id, body, options) {
1184
1184
  if (options === void 0) { options = {}; }
1185
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1185
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items"), method: "post", body: JSON.stringify(body), headers: {
1186
1186
  "content-type": "application/json",
1187
1187
  } }, options));
1188
1188
  };
1189
1189
  this.removeFaqFromSection = function (tenant_id, faq_view_id, faq_section_id, faq_section_item_id, options) {
1190
1190
  if (options === void 0) { options = {}; }
1191
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items/").concat(faq_section_item_id), __assign({ method: "delete" }, options));
1191
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items/").concat(faq_section_item_id), method: "delete" }, options));
1192
1192
  };
1193
1193
  this.getContentCardById = function (tenant_id, content_card_id, options) {
1194
1194
  if (options === void 0) { options = {}; }
1195
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "get" }, options));
1195
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), method: "get" }, options));
1196
1196
  };
1197
1197
  this.updateContentCardById = function (tenant_id, content_card_id, body, options) {
1198
1198
  if (options === void 0) { options = {}; }
1199
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1199
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), method: "put", body: JSON.stringify(body), headers: {
1200
1200
  "content-type": "application/json",
1201
1201
  } }, options));
1202
1202
  };
1203
1203
  this.deleteContentCardById = function (tenant_id, content_card_id, options) {
1204
1204
  if (options === void 0) { options = {}; }
1205
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), __assign({ method: "delete" }, options));
1205
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/content-cards/").concat(content_card_id), method: "delete" }, options));
1206
1206
  };
1207
1207
  this.paginateCreatorUpdateSendersForTenant = function (tenant_id, query, options) {
1208
1208
  if (options === void 0) { options = {}; }
1209
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), __assign({ method: "get", query: query }, options));
1209
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), method: "get", query: query }, options));
1210
1210
  };
1211
1211
  this.createCreatorUpdateSenderForTenant = function (tenant_id, body, options) {
1212
1212
  if (options === void 0) { options = {}; }
1213
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1213
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders"), method: "post", body: JSON.stringify(body), headers: {
1214
1214
  "content-type": "application/json",
1215
1215
  } }, options));
1216
1216
  };
1217
1217
  this.updateCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, body, options) {
1218
1218
  if (options === void 0) { options = {}; }
1219
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1219
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), method: "put", body: JSON.stringify(body), headers: {
1220
1220
  "content-type": "application/json",
1221
1221
  } }, options));
1222
1222
  };
1223
1223
  this.deleteCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, options) {
1224
1224
  if (options === void 0) { options = {}; }
1225
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), __assign({ method: "delete" }, options));
1225
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), method: "delete" }, options));
1226
1226
  };
1227
1227
  this.createCreatorUpdateTemplateForTenant = function (tenant_id, body, options) {
1228
1228
  if (options === void 0) { options = {}; }
1229
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1229
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), method: "post", body: JSON.stringify(body), headers: {
1230
1230
  "content-type": "application/json",
1231
1231
  } }, options));
1232
1232
  };
1233
1233
  this.paginateCreatorUpdateTemplatesForTenant = function (tenant_id, query, options) {
1234
1234
  if (options === void 0) { options = {}; }
1235
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), __assign({ method: "get", query: query }, options));
1235
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates"), method: "get", query: query }, options));
1236
1236
  };
1237
1237
  this.updateCreatorUpdateTemplateById = function (tenant_id, creator_update_template_id, body, options) {
1238
1238
  if (options === void 0) { options = {}; }
1239
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1239
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), method: "put", body: JSON.stringify(body), headers: {
1240
1240
  "content-type": "application/json",
1241
1241
  } }, options));
1242
1242
  };
1243
1243
  this.deleteCreatorUpdateTemplateById = function (tenant_id, creator_update_template_id, options) {
1244
1244
  if (options === void 0) { options = {}; }
1245
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), __assign({ method: "delete" }, options));
1245
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/templates/").concat(creator_update_template_id), method: "delete" }, options));
1246
1246
  };
1247
1247
  this.createCreatorUpdateForTenant = function (tenant_id, body, options) {
1248
1248
  if (options === void 0) { options = {}; }
1249
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1249
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), method: "post", body: JSON.stringify(body), headers: {
1250
1250
  "content-type": "application/json",
1251
1251
  } }, options));
1252
1252
  };
1253
1253
  this.paginateCreatorUpdatesForTenant = function (tenant_id, query, options) {
1254
1254
  if (options === void 0) { options = {}; }
1255
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "get", query: query }, options));
1255
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), method: "get", query: query }, options));
1256
1256
  };
1257
1257
  this.getCreatorUpdate = function (tenant_id, creator_update_id, options) {
1258
1258
  if (options === void 0) { options = {}; }
1259
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), __assign({ method: "get" }, options));
1259
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), method: "get" }, options));
1260
1260
  };
1261
1261
  this.updateCreatorUpdate = function (tenant_id, creator_update_id, body, options) {
1262
1262
  if (options === void 0) { options = {}; }
1263
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1263
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), method: "put", body: JSON.stringify(body), headers: {
1264
1264
  "content-type": "application/json",
1265
1265
  } }, options));
1266
1266
  };
1267
1267
  this.deleteCreatorUpdate = function (tenant_id, creator_update_id, options) {
1268
1268
  if (options === void 0) { options = {}; }
1269
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), __assign({ method: "delete" }, options));
1269
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id), method: "delete" }, options));
1270
1270
  };
1271
1271
  this.calculateGiveawayWinnerForCreatorUpdate = function (tenant_id, creator_update_id, body, options) {
1272
1272
  if (options === void 0) { options = {}; }
1273
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/giveaway/winner"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1273
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/giveaway/winner"), method: "post", body: JSON.stringify(body), headers: {
1274
1274
  "content-type": "application/json",
1275
1275
  } }, options));
1276
1276
  };
1277
1277
  this.sendCreatorUpdateForTenant = function (tenant_id, creator_update_id, options) {
1278
1278
  if (options === void 0) { options = {}; }
1279
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/send"), __assign({ method: "post" }, options));
1279
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/send"), method: "post" }, options));
1280
1280
  };
1281
1281
  this.scheduleCreatorUpdateForTenant = function (tenant_id, creator_update_id, body, options) {
1282
1282
  if (options === void 0) { options = {}; }
1283
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/schedule"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1283
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/schedule"), method: "post", body: JSON.stringify(body), headers: {
1284
1284
  "content-type": "application/json",
1285
1285
  } }, options));
1286
1286
  };
1287
1287
  this.deleteAttachmentForCreatorUpdateById = function (tenant_id, creator_update_id, creator_update_attachment_id, options) {
1288
1288
  if (options === void 0) { options = {}; }
1289
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), __assign({ method: "delete" }, options));
1289
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/").concat(creator_update_id, "/attachments/").concat(creator_update_attachment_id), method: "delete" }, options));
1290
1290
  };
1291
1291
  this.listSocialAccountsForTenant = function (tenant_id, query, options) {
1292
1292
  if (options === void 0) { options = {}; }
1293
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), __assign({ method: "get", query: query }, options));
1293
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/social/accounts"), method: "get", query: query }, options));
1294
1294
  };
1295
1295
  this.paginateFeedsForTenant = function (tenant_id, query, options) {
1296
1296
  if (options === void 0) { options = {}; }
1297
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), __assign({ method: "get", query: query }, options));
1297
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), method: "get", query: query }, options));
1298
1298
  };
1299
1299
  this.createFeedForTenant = function (tenant_id, body, options) {
1300
1300
  if (options === void 0) { options = {}; }
1301
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1301
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds"), method: "post", body: JSON.stringify(body), headers: {
1302
1302
  "content-type": "application/json",
1303
1303
  } }, options));
1304
1304
  };
1305
1305
  this.paginateItemsForAppFeed = function (tenant_id, application_id, feed_id_or_slug, query, options) {
1306
1306
  if (options === void 0) { options = {}; }
1307
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
1307
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/feeds/").concat(feed_id_or_slug, "/items"), method: "get", query: query }, options));
1308
1308
  };
1309
1309
  this.getFeedById = function (tenant_id, feed_id_or_slug, options) {
1310
1310
  if (options === void 0) { options = {}; }
1311
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), __assign({ method: "get" }, options));
1311
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), method: "get" }, options));
1312
1312
  };
1313
1313
  this.updateFeedById = function (tenant_id, feed_id_or_slug, body, options) {
1314
1314
  if (options === void 0) { options = {}; }
1315
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), __assign({ method: "put", body: JSON.stringify(body), headers: {
1315
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), method: "put", body: JSON.stringify(body), headers: {
1316
1316
  "content-type": "application/json",
1317
1317
  } }, options));
1318
1318
  };
1319
1319
  this.deleteFeedById = function (tenant_id, feed_id_or_slug, options) {
1320
1320
  if (options === void 0) { options = {}; }
1321
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), __assign({ method: "delete" }, options));
1321
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug), method: "delete" }, options));
1322
1322
  };
1323
1323
  this.paginateItemsForFeed = function (tenant_id, feed_id_or_slug, query, options) {
1324
1324
  if (options === void 0) { options = {}; }
1325
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items"), __assign({ method: "get", query: query }, options));
1325
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items"), method: "get", query: query }, options));
1326
1326
  };
1327
1327
  this.updateFeedItem = function (tenant_id, feed_id_or_slug, feed_item_id, body, options) {
1328
1328
  if (options === void 0) { options = {}; }
1329
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1329
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), method: "put", body: JSON.stringify(body), headers: {
1330
1330
  "content-type": "application/json",
1331
1331
  } }, options));
1332
1332
  };
1333
1333
  this.deleteFeedItem = function (tenant_id, feed_id_or_slug, feed_item_id, options) {
1334
1334
  if (options === void 0) { options = {}; }
1335
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), __assign({ method: "delete" }, options));
1335
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feeds/").concat(feed_id_or_slug, "/items/").concat(feed_item_id), method: "delete" }, options));
1336
1336
  };
1337
1337
  this.getFeedItem = function (tenant_id, feed_item_id, options) {
1338
1338
  if (options === void 0) { options = {}; }
1339
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id), __assign({ method: "get" }, options));
1339
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id), method: "get" }, options));
1340
1340
  };
1341
1341
  this.addCommentToFeedItem = function (tenant_id, feed_item_id, body, options) {
1342
1342
  if (options === void 0) { options = {}; }
1343
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1343
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), method: "post", body: JSON.stringify(body), headers: {
1344
1344
  "content-type": "application/json",
1345
1345
  } }, options));
1346
1346
  };
1347
1347
  this.paginateCommentsForFeedItem = function (tenant_id, feed_item_id, query, options) {
1348
1348
  if (options === void 0) { options = {}; }
1349
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), __assign({ method: "get", query: query }, options));
1349
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), method: "get", query: query }, options));
1350
1350
  };
1351
1351
  this.updateCommentForFeedItem = function (tenant_id, comment_id, body, options) {
1352
1352
  if (options === void 0) { options = {}; }
1353
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1353
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id), method: "put", body: JSON.stringify(body), headers: {
1354
1354
  "content-type": "application/json",
1355
1355
  } }, options));
1356
1356
  };
1357
1357
  this.removeCommentFromFeedItem = function (tenant_id, comment_id, options) {
1358
1358
  if (options === void 0) { options = {}; }
1359
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id), __assign({ method: "delete" }, options));
1359
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id), method: "delete" }, options));
1360
1360
  };
1361
1361
  this.flagComment = function (tenant_id, comment_id, body, options) {
1362
1362
  if (options === void 0) { options = {}; }
1363
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/flag"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1363
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/flag"), method: "post", body: JSON.stringify(body), headers: {
1364
1364
  "content-type": "application/json",
1365
1365
  }, raw: true }, options));
1366
1366
  };
1367
1367
  this.paginateCommentReviewsForTenant = function (tenant_id, query, options) {
1368
1368
  if (options === void 0) { options = {}; }
1369
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews"), __assign({ method: "get", query: query }, options));
1369
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews"), method: "get", query: query }, options));
1370
1370
  };
1371
1371
  this.submitCommentReview = function (tenant_id, comment_review_id, body, options) {
1372
1372
  if (options === void 0) { options = {}; }
1373
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews/").concat(comment_review_id, "/review"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1373
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/reviews/").concat(comment_review_id, "/review"), method: "post", body: JSON.stringify(body), headers: {
1374
1374
  "content-type": "application/json",
1375
1375
  } }, options));
1376
1376
  };
1377
1377
  this.addReactionToComment = function (tenant_id, comment_id, body, options) {
1378
1378
  if (options === void 0) { options = {}; }
1379
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1379
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions"), method: "post", body: JSON.stringify(body), headers: {
1380
1380
  "content-type": "application/json",
1381
1381
  } }, options));
1382
1382
  };
1383
1383
  this.removeReactionFromComment = function (tenant_id, comment_id, reaction_id, options) {
1384
1384
  if (options === void 0) { options = {}; }
1385
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions/").concat(reaction_id), __assign({ method: "delete" }, options));
1385
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/comments/").concat(comment_id, "/reactions/").concat(reaction_id), method: "delete" }, options));
1386
1386
  };
1387
1387
  this.addReactionToFeedItem = function (tenant_id, feed_item_id, body, options) {
1388
1388
  if (options === void 0) { options = {}; }
1389
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/reactions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1389
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/reactions"), method: "post", body: JSON.stringify(body), headers: {
1390
1390
  "content-type": "application/json",
1391
1391
  } }, options));
1392
1392
  };
1393
1393
  this.removeReactionFromFeedItem = function (tenant_id, feed_item_id, reaction_id, options) {
1394
1394
  if (options === void 0) { options = {}; }
1395
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/reactions/").concat(reaction_id), __assign({ method: "delete" }, options));
1395
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/reactions/").concat(reaction_id), method: "delete" }, options));
1396
1396
  };
1397
1397
  this.paginateFeedbackFormResponsesForTenantUser = function (tenant_id, user_id, query, options) {
1398
1398
  if (options === void 0) { options = {}; }
1399
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/feedback/form/responses"), __assign({ method: "get", query: query }, options));
1399
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/feedback/form/responses"), method: "get", query: query }, options));
1400
1400
  };
1401
1401
  this.getFormById = function (feedback_form_id, options) {
1402
1402
  if (options === void 0) { options = {}; }
1403
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), __assign({ method: "get" }, options));
1403
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), method: "get" }, options));
1404
1404
  };
1405
1405
  this.submitFormById = function (feedback_form_id, body, options) {
1406
1406
  if (options === void 0) { options = {}; }
1407
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id, "/submit"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1407
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id, "/submit"), method: "post", body: JSON.stringify(body), headers: {
1408
1408
  "content-type": "application/json",
1409
1409
  }, raw: true }, options));
1410
1410
  };
1411
1411
  this.createQuestion = function (tenant_id, body, options) {
1412
1412
  if (options === void 0) { options = {}; }
1413
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/questions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1413
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/questions"), method: "post", body: JSON.stringify(body), headers: {
1414
1414
  "content-type": "application/json",
1415
1415
  } }, options));
1416
1416
  };
1417
1417
  this.paginateQuestions = function (tenant_id, query, options) {
1418
1418
  if (options === void 0) { options = {}; }
1419
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/questions"), __assign({ method: "get", query: query }, options));
1419
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/questions"), method: "get", query: query }, options));
1420
1420
  };
1421
1421
  this.getQuestionById = function (question_id, query, options) {
1422
1422
  if (options === void 0) { options = {}; }
1423
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "get", query: query }, options));
1423
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), method: "get", query: query }, options));
1424
1424
  };
1425
1425
  this.updateQuestionById = function (question_id, body, options) {
1426
1426
  if (options === void 0) { options = {}; }
1427
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1427
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), method: "put", body: JSON.stringify(body), headers: {
1428
1428
  "content-type": "application/json",
1429
1429
  } }, options));
1430
1430
  };
1431
1431
  this.deleteQuestionById = function (question_id, options) {
1432
1432
  if (options === void 0) { options = {}; }
1433
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "delete" }, options));
1433
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), method: "delete" }, options));
1434
1434
  };
1435
1435
  this.paginateAnswersForQuestionById = function (question_id, query, options) {
1436
1436
  if (options === void 0) { options = {}; }
1437
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answers"), __assign({ method: "get", query: query }, options));
1437
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answers"), method: "get", query: query }, options));
1438
1438
  };
1439
1439
  this.answerQuestionById = function (question_id, body, options) {
1440
1440
  if (options === void 0) { options = {}; }
1441
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answer"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1441
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answer"), method: "put", body: JSON.stringify(body), headers: {
1442
1442
  "content-type": "application/json",
1443
1443
  }, raw: true }, options));
1444
1444
  };
1445
1445
  this.bulkAnswerQuestions = function (body, options) {
1446
1446
  if (options === void 0) { options = {}; }
1447
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/bulk/questions/answer"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1447
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/bulk/questions/answer"), method: "post", body: JSON.stringify(body), headers: {
1448
1448
  "content-type": "application/json",
1449
1449
  }, raw: true }, options));
1450
1450
  };
1451
1451
  this.getCardsForTenantById = function (tenant_id, query, options) {
1452
1452
  if (options === void 0) { options = {}; }
1453
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/cards"), __assign({ method: "get", query: query }, options));
1453
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/cards"), method: "get", query: query }, options));
1454
1454
  };
1455
1455
  this.paginateFeedbackFormsForTenantById = function (tenant_id, query, options) {
1456
1456
  if (options === void 0) { options = {}; }
1457
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), __assign({ method: "get", query: query }, options));
1457
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), method: "get", query: query }, options));
1458
1458
  };
1459
1459
  this.createFeedbackFormForTenantById = function (tenant_id, body, options) {
1460
1460
  if (options === void 0) { options = {}; }
1461
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1461
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), method: "post", body: JSON.stringify(body), headers: {
1462
1462
  "content-type": "application/json",
1463
1463
  } }, options));
1464
1464
  };
1465
1465
  this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query, options) {
1466
1466
  if (options === void 0) { options = {}; }
1467
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "get", query: query }, options));
1467
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), method: "get", query: query }, options));
1468
1468
  };
1469
1469
  this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body, options) {
1470
1470
  if (options === void 0) { options = {}; }
1471
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1471
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), method: "put", body: JSON.stringify(body), headers: {
1472
1472
  "content-type": "application/json",
1473
1473
  } }, options));
1474
1474
  };
1475
1475
  this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id, options) {
1476
1476
  if (options === void 0) { options = {}; }
1477
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "delete" }, options));
1477
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), method: "delete" }, options));
1478
1478
  };
1479
1479
  this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query, options) {
1480
1480
  if (options === void 0) { options = {}; }
1481
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), __assign({ method: "get", query: query }, options));
1481
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), method: "get", query: query }, options));
1482
1482
  };
1483
1483
  this.deleteFeedbackFormResponseById = function (tenant_id, feedback_form_id, feedback_form_response_id, options) {
1484
1484
  if (options === void 0) { options = {}; }
1485
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses/").concat(feedback_form_response_id), __assign({ method: "delete" }, options));
1485
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses/").concat(feedback_form_response_id), method: "delete" }, options));
1486
1486
  };
1487
1487
  this.createAnalyticEventTypeForTenantById = function (tenant_id, body, options) {
1488
1488
  if (options === void 0) { options = {}; }
1489
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1489
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), method: "post", body: JSON.stringify(body), headers: {
1490
1490
  "content-type": "application/json",
1491
1491
  } }, options));
1492
1492
  };
1493
1493
  this.paginateAnalyticEventTypesForTenantById = function (tenant_id, query, options) {
1494
1494
  if (options === void 0) { options = {}; }
1495
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), __assign({ method: "get", query: query }, options));
1495
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), method: "get", query: query }, options));
1496
1496
  };
1497
1497
  this.createAppArea = function (tenant_id, body, options) {
1498
1498
  if (options === void 0) { options = {}; }
1499
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1499
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), method: "post", body: JSON.stringify(body), headers: {
1500
1500
  "content-type": "application/json",
1501
1501
  } }, options));
1502
1502
  };
1503
1503
  this.listAppAreas = function (tenant_id, options) {
1504
1504
  if (options === void 0) { options = {}; }
1505
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), __assign({ method: "get" }, options));
1505
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), method: "get" }, options));
1506
1506
  };
1507
1507
  this.getAppAreaById = function (tenant_id, app_area_id, options) {
1508
1508
  if (options === void 0) { options = {}; }
1509
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "get" }, options));
1509
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), method: "get" }, options));
1510
1510
  };
1511
1511
  this.updateAppAreaById = function (tenant_id, app_area_id, body, options) {
1512
1512
  if (options === void 0) { options = {}; }
1513
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1513
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), method: "put", body: JSON.stringify(body), headers: {
1514
1514
  "content-type": "application/json",
1515
1515
  } }, options));
1516
1516
  };
1517
1517
  this.deleteAppAreaById = function (tenant_id, app_area_id, options) {
1518
1518
  if (options === void 0) { options = {}; }
1519
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "delete" }, options));
1519
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), method: "delete" }, options));
1520
1520
  };
1521
1521
  this.createCampaign = function (tenant_id, body, options) {
1522
1522
  if (options === void 0) { options = {}; }
1523
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1523
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), method: "post", body: JSON.stringify(body), headers: {
1524
1524
  "content-type": "application/json",
1525
1525
  } }, options));
1526
1526
  };
1527
1527
  this.paginateCampaignsForTenantById = function (tenant_id, query, options) {
1528
1528
  if (options === void 0) { options = {}; }
1529
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), __assign({ method: "get", query: query }, options));
1529
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), method: "get", query: query }, options));
1530
1530
  };
1531
1531
  this.getCampaignById = function (tenant_id, campaign_id, query, options) {
1532
1532
  if (options === void 0) { options = {}; }
1533
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "get", query: query }, options));
1533
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), method: "get", query: query }, options));
1534
1534
  };
1535
1535
  this.updateCampaignById = function (tenant_id, campaign_id, body, options) {
1536
1536
  if (options === void 0) { options = {}; }
1537
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1537
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), method: "put", body: JSON.stringify(body), headers: {
1538
1538
  "content-type": "application/json",
1539
1539
  } }, options));
1540
1540
  };
1541
1541
  this.deleteCampaignById = function (tenant_id, campaign_id, options) {
1542
1542
  if (options === void 0) { options = {}; }
1543
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "delete" }, options));
1543
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), method: "delete" }, options));
1544
1544
  };
1545
1545
  this.closeCampaignById = function (tenant_id, campaign_id, options) {
1546
1546
  if (options === void 0) { options = {}; }
1547
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/close"), __assign({ method: "post" }, options));
1547
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/close"), method: "post" }, options));
1548
1548
  };
1549
1549
  this.publishCampaignById = function (tenant_id, campaign_id, body, options) {
1550
1550
  if (options === void 0) { options = {}; }
1551
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/publish"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1551
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/publish"), method: "post", body: JSON.stringify(body), headers: {
1552
1552
  "content-type": "application/json",
1553
1553
  } }, options));
1554
1554
  };
1555
1555
  this.paginateTemplatesForTenantById = function (tenant_id, query, options) {
1556
1556
  if (options === void 0) { options = {}; }
1557
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates"), __assign({ method: "get", query: query }, options));
1557
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates"), method: "get", query: query }, options));
1558
1558
  };
1559
1559
  this.cloneTemplateForTenantById = function (tenant_id, template_id, options) {
1560
1560
  if (options === void 0) { options = {}; }
1561
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates/").concat(template_id, "/clone"), __assign({ method: "post" }, options));
1561
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates/").concat(template_id, "/clone"), method: "post" }, options));
1562
1562
  };
1563
1563
  this.paginateTemplateTags = function (query, options) {
1564
1564
  if (options === void 0) { options = {}; }
1565
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/templates/tags"), __assign({ method: "get", query: query }, options));
1565
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/templates/tags"), method: "get", query: query }, options));
1566
1566
  };
1567
1567
  this.createBoardForTenantById = function (tenant_id, body, options) {
1568
1568
  if (options === void 0) { options = {}; }
1569
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1569
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), method: "post", body: JSON.stringify(body), headers: {
1570
1570
  "content-type": "application/json",
1571
1571
  } }, options));
1572
1572
  };
1573
1573
  this.listBoardsForTenantById = function (tenant_id, query, options) {
1574
1574
  if (options === void 0) { options = {}; }
1575
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "get", query: query }, options));
1575
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), method: "get", query: query }, options));
1576
1576
  };
1577
1577
  this.createTicketForBoard = function (tenant_id, board_id, body, options) {
1578
1578
  if (options === void 0) { options = {}; }
1579
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1579
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), method: "post", body: JSON.stringify(body), headers: {
1580
1580
  "content-type": "application/json",
1581
1581
  } }, options));
1582
1582
  };
1583
1583
  this.paginateTicketsForBoard = function (tenant_id, board_id, query, options) {
1584
1584
  if (options === void 0) { options = {}; }
1585
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), __assign({ method: "get", query: query }, options));
1585
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), method: "get", query: query }, options));
1586
1586
  };
1587
1587
  this.createBoardComponent = function (tenant_id, board_id, body, options) {
1588
1588
  if (options === void 0) { options = {}; }
1589
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1589
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components"), method: "post", body: JSON.stringify(body), headers: {
1590
1590
  "content-type": "application/json",
1591
1591
  } }, options));
1592
1592
  };
1593
1593
  this.listBoardComponents = function (tenant_id, board_id, options) {
1594
1594
  if (options === void 0) { options = {}; }
1595
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components"), __assign({ method: "get" }, options));
1595
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components"), method: "get" }, options));
1596
1596
  };
1597
1597
  this.getBoardComponentById = function (tenant_id, board_id, board_component_id, options) {
1598
1598
  if (options === void 0) { options = {}; }
1599
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), __assign({ method: "get" }, options));
1599
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), method: "get" }, options));
1600
1600
  };
1601
1601
  this.updateBoardComponentById = function (tenant_id, board_id, board_component_id, body, options) {
1602
1602
  if (options === void 0) { options = {}; }
1603
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1603
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), method: "put", body: JSON.stringify(body), headers: {
1604
1604
  "content-type": "application/json",
1605
1605
  } }, options));
1606
1606
  };
1607
1607
  this.deleteBoardComponentById = function (tenant_id, board_id, board_component_id, options) {
1608
1608
  if (options === void 0) { options = {}; }
1609
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), __assign({ method: "delete" }, options));
1609
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/components/").concat(board_component_id), method: "delete" }, options));
1610
1610
  };
1611
1611
  this.createUserNoteForBoard = function (tenant_id, board_id, body, options) {
1612
1612
  if (options === void 0) { options = {}; }
1613
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1613
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), method: "post", body: JSON.stringify(body), headers: {
1614
1614
  "content-type": "application/json",
1615
1615
  } }, options));
1616
1616
  };
1617
1617
  this.paginateUserNotesForBoard = function (tenant_id, board_id, query, options) {
1618
1618
  if (options === void 0) { options = {}; }
1619
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), __assign({ method: "get", query: query }, options));
1619
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), method: "get", query: query }, options));
1620
1620
  };
1621
1621
  this.generateUserNoteMetricsForBoard = function (tenant_id, board_id, options) {
1622
1622
  if (options === void 0) { options = {}; }
1623
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes/metrics"), __assign({ method: "post" }, options));
1623
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes/metrics"), method: "post" }, options));
1624
1624
  };
1625
1625
  this.deleteUserNoteById = function (tenant_id, user_note_id, options) {
1626
1626
  if (options === void 0) { options = {}; }
1627
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), __assign({ method: "delete" }, options));
1627
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), method: "delete" }, options));
1628
1628
  };
1629
1629
  this.linkUserNoteToTicket = function (tenant_id, user_note_id, body, options) {
1630
1630
  if (options === void 0) { options = {}; }
1631
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1631
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), method: "post", body: JSON.stringify(body), headers: {
1632
1632
  "content-type": "application/json",
1633
1633
  }, raw: true }, options));
1634
1634
  };
1635
1635
  this.bulkUpdateTickets = function (tenant_id, body, options) {
1636
1636
  if (options === void 0) { options = {}; }
1637
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/bulk/tickets"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1637
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/bulk/tickets"), method: "put", body: JSON.stringify(body), headers: {
1638
1638
  "content-type": "application/json",
1639
1639
  }, raw: true }, options));
1640
1640
  };
1641
1641
  this.getTicketById = function (tenant_id, ticket_id, options) {
1642
1642
  if (options === void 0) { options = {}; }
1643
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "get" }, options));
1643
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), method: "get" }, options));
1644
1644
  };
1645
1645
  this.updateTicketById = function (tenant_id, ticket_id, body, options) {
1646
1646
  if (options === void 0) { options = {}; }
1647
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1647
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), method: "put", body: JSON.stringify(body), headers: {
1648
1648
  "content-type": "application/json",
1649
1649
  } }, options));
1650
1650
  };
1651
1651
  this.deleteTicketById = function (tenant_id, ticket_id, options) {
1652
1652
  if (options === void 0) { options = {}; }
1653
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "delete" }, options));
1653
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), method: "delete" }, options));
1654
1654
  };
1655
1655
  this.createTicketAssignment = function (tenant_id, ticket_id, body, options) {
1656
1656
  if (options === void 0) { options = {}; }
1657
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1657
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments"), method: "post", body: JSON.stringify(body), headers: {
1658
1658
  "content-type": "application/json",
1659
1659
  } }, options));
1660
1660
  };
1661
1661
  this.listTicketAssignments = function (tenant_id, ticket_id, options) {
1662
1662
  if (options === void 0) { options = {}; }
1663
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments"), __assign({ method: "get" }, options));
1663
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments"), method: "get" }, options));
1664
1664
  };
1665
1665
  this.getTicketAssignmentById = function (tenant_id, ticket_id, ticket_assignment_id, options) {
1666
1666
  if (options === void 0) { options = {}; }
1667
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), __assign({ method: "get" }, options));
1667
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), method: "get" }, options));
1668
1668
  };
1669
1669
  this.updateTicketAssignmentById = function (tenant_id, ticket_id, ticket_assignment_id, body, options) {
1670
1670
  if (options === void 0) { options = {}; }
1671
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1671
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), method: "put", body: JSON.stringify(body), headers: {
1672
1672
  "content-type": "application/json",
1673
1673
  } }, options));
1674
1674
  };
1675
1675
  this.deleteTicketAssignmentById = function (tenant_id, ticket_id, ticket_assignment_id, options) {
1676
1676
  if (options === void 0) { options = {}; }
1677
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), __assign({ method: "delete" }, options));
1677
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/assignments/").concat(ticket_assignment_id), method: "delete" }, options));
1678
1678
  };
1679
1679
  this.deleteAttachmentForTicketById = function (tenant_id, ticket_id, ticket_attachment_id, options) {
1680
1680
  if (options === void 0) { options = {}; }
1681
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments/").concat(ticket_attachment_id), __assign({ method: "delete" }, options));
1681
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments/").concat(ticket_attachment_id), method: "delete" }, options));
1682
1682
  };
1683
1683
  this.updateTicketLinkById = function (tenant_id, ticket_id, ticket_link_id, body, options) {
1684
1684
  if (options === void 0) { options = {}; }
1685
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1685
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), method: "put", body: JSON.stringify(body), headers: {
1686
1686
  "content-type": "application/json",
1687
1687
  } }, options));
1688
1688
  };
1689
1689
  this.deleteTicketLink = function (tenant_id, ticket_id, ticket_link_id, options) {
1690
1690
  if (options === void 0) { options = {}; }
1691
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), __assign({ method: "delete" }, options));
1691
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links/").concat(ticket_link_id), method: "delete" }, options));
1692
1692
  };
1693
1693
  this.createLinkForTicket = function (tenant_id, ticket_id, body, options) {
1694
1694
  if (options === void 0) { options = {}; }
1695
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1695
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/links"), method: "post", body: JSON.stringify(body), headers: {
1696
1696
  "content-type": "application/json",
1697
1697
  } }, options));
1698
1698
  };
1699
1699
  this.createTicketChecklistItem = function (tenant_id, ticket_id, body, options) {
1700
1700
  if (options === void 0) { options = {}; }
1701
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1701
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), method: "post", body: JSON.stringify(body), headers: {
1702
1702
  "content-type": "application/json",
1703
1703
  } }, options));
1704
1704
  };
1705
1705
  this.bulkUpdateTicketChecklistItems = function (tenant_id, ticket_id, body, options) {
1706
1706
  if (options === void 0) { options = {}; }
1707
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1707
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), method: "put", body: JSON.stringify(body), headers: {
1708
1708
  "content-type": "application/json",
1709
1709
  } }, options));
1710
1710
  };
1711
1711
  this.listTicketChecklistItems = function (tenant_id, ticket_id, options) {
1712
1712
  if (options === void 0) { options = {}; }
1713
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), __assign({ method: "get" }, options));
1713
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items"), method: "get" }, options));
1714
1714
  };
1715
1715
  this.updateTicketChecklistItemById = function (tenant_id, ticket_id, ticket_checklist_item_id, body, options) {
1716
1716
  if (options === void 0) { options = {}; }
1717
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items/").concat(ticket_checklist_item_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1717
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items/").concat(ticket_checklist_item_id), method: "put", body: JSON.stringify(body), headers: {
1718
1718
  "content-type": "application/json",
1719
1719
  } }, options));
1720
1720
  };
1721
1721
  this.deleteTicketChecklistItemById = function (tenant_id, ticket_id, ticket_checklist_item_id, options) {
1722
1722
  if (options === void 0) { options = {}; }
1723
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items/").concat(ticket_checklist_item_id), __assign({ method: "delete" }, options));
1723
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/checklist/items/").concat(ticket_checklist_item_id), method: "delete" }, options));
1724
1724
  };
1725
1725
  this.voteForTicketById = function (tenant_id, ticket_id, options) {
1726
1726
  if (options === void 0) { options = {}; }
1727
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), __assign({ method: "post" }, options));
1727
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), method: "post" }, options));
1728
1728
  };
1729
1729
  this.removeVoteForTicketById = function (tenant_id, ticket_id, options) {
1730
1730
  if (options === void 0) { options = {}; }
1731
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), __assign({ method: "delete" }, options));
1731
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), method: "delete" }, options));
1732
1732
  };
1733
1733
  this.generateNextReleaseVersionInfoForTenantById = function (tenant_id, body, options) {
1734
1734
  if (options === void 0) { options = {}; }
1735
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1735
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), method: "post", body: JSON.stringify(body), headers: {
1736
1736
  "content-type": "application/json",
1737
1737
  } }, options));
1738
1738
  };
1739
1739
  this.createReleaseForTenantById = function (tenant_id, body, options) {
1740
1740
  if (options === void 0) { options = {}; }
1741
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1741
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), method: "post", body: JSON.stringify(body), headers: {
1742
1742
  "content-type": "application/json",
1743
1743
  } }, options));
1744
1744
  };
1745
1745
  this.paginateReleasesForTenantById = function (tenant_id, query, options) {
1746
1746
  if (options === void 0) { options = {}; }
1747
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), __assign({ method: "get", query: query }, options));
1747
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), method: "get", query: query }, options));
1748
1748
  };
1749
1749
  this.getReleaseForTenantById = function (tenant_id, release_id, options) {
1750
1750
  if (options === void 0) { options = {}; }
1751
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "get" }, options));
1751
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), method: "get" }, options));
1752
1752
  };
1753
1753
  this.updateReleaseForTenantById = function (tenant_id, release_id, body, options) {
1754
1754
  if (options === void 0) { options = {}; }
1755
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1755
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), method: "put", body: JSON.stringify(body), headers: {
1756
1756
  "content-type": "application/json",
1757
1757
  } }, options));
1758
1758
  };
1759
1759
  this.deleteReleaseForTenantById = function (tenant_id, release_id, options) {
1760
1760
  if (options === void 0) { options = {}; }
1761
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "delete" }, options));
1761
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), method: "delete" }, options));
1762
1762
  };
1763
1763
  this.cutReleaseForTenantById = function (tenant_id, release_id, options) {
1764
1764
  if (options === void 0) { options = {}; }
1765
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/release"), __assign({ method: "post" }, options));
1765
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/release"), method: "post" }, options));
1766
1766
  };
1767
1767
  this.createReleaseItemForReleaseById = function (tenant_id, release_id, body, options) {
1768
1768
  if (options === void 0) { options = {}; }
1769
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1769
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/items"), method: "post", body: JSON.stringify(body), headers: {
1770
1770
  "content-type": "application/json",
1771
1771
  } }, options));
1772
1772
  };
1773
1773
  this.paginateTicketsForApplication = function (tenant_id, application_id, query, options) {
1774
1774
  if (options === void 0) { options = {}; }
1775
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), __assign({ method: "get", query: query }, options));
1775
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), method: "get", query: query }, options));
1776
1776
  };
1777
1777
  this.getRoadmapForTenantApplication = function (tenant_id, application_id, options) {
1778
1778
  if (options === void 0) { options = {}; }
1779
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/roadmap"), __assign({ method: "get" }, options));
1779
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/roadmap"), method: "get" }, options));
1780
1780
  };
1781
1781
  this.paginateReleasesForTenantApplication = function (tenant_id, application_id, query, options) {
1782
1782
  if (options === void 0) { options = {}; }
1783
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), __assign({ method: "get", query: query }, options));
1783
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), method: "get", query: query }, options));
1784
1784
  };
1785
1785
  this.getReleaseForTenantApplication = function (tenant_id, application_id, release_id, options) {
1786
1786
  if (options === void 0) { options = {}; }
1787
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), __assign({ method: "get" }, options));
1787
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), method: "get" }, options));
1788
1788
  };
1789
1789
  this.createVersionForTenantApplication = function (tenant_id, application_id, body, options) {
1790
1790
  if (options === void 0) { options = {}; }
1791
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1791
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), method: "post", body: JSON.stringify(body), headers: {
1792
1792
  "content-type": "application/json",
1793
1793
  } }, options));
1794
1794
  };
1795
1795
  this.listVersionsForTenantApplication = function (tenant_id, application_id, options) {
1796
1796
  if (options === void 0) { options = {}; }
1797
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), __assign({ method: "get" }, options));
1797
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), method: "get" }, options));
1798
1798
  };
1799
1799
  this.getTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, options) {
1800
1800
  if (options === void 0) { options = {}; }
1801
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "get" }, options));
1801
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), method: "get" }, options));
1802
1802
  };
1803
1803
  this.updateTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, body, options) {
1804
1804
  if (options === void 0) { options = {}; }
1805
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1805
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), method: "put", body: JSON.stringify(body), headers: {
1806
1806
  "content-type": "application/json",
1807
1807
  } }, options));
1808
1808
  };
1809
1809
  this.deleteTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, options) {
1810
1810
  if (options === void 0) { options = {}; }
1811
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "delete" }, options));
1811
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), method: "delete" }, options));
1812
1812
  };
1813
1813
  this.getInboxItemsForTenantUser = function (tenant_id, user_id, query, options) {
1814
1814
  if (options === void 0) { options = {}; }
1815
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items"), __assign({ method: "get", query: query }, options));
1815
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items"), method: "get", query: query }, options));
1816
1816
  };
1817
1817
  this.readInboxItemsForTenantUser = function (tenant_id, user_id, body, options) {
1818
1818
  if (options === void 0) { options = {}; }
1819
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items/read"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1819
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items/read"), method: "post", body: JSON.stringify(body), headers: {
1820
1820
  "content-type": "application/json",
1821
1821
  }, raw: true }, options));
1822
1822
  };
1823
1823
  this.createNotificationTemplate = function (tenant_id, body, options) {
1824
1824
  if (options === void 0) { options = {}; }
1825
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1825
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), method: "post", body: JSON.stringify(body), headers: {
1826
1826
  "content-type": "application/json",
1827
1827
  } }, options));
1828
1828
  };
1829
1829
  this.paginateNotificationTemplatesForTenantById = function (tenant_id, query, options) {
1830
1830
  if (options === void 0) { options = {}; }
1831
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), __assign({ method: "get", query: query }, options));
1831
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), method: "get", query: query }, options));
1832
1832
  };
1833
1833
  this.getNotificationTemplateById = function (tenant_id, notification_template_id, query, options) {
1834
1834
  if (options === void 0) { options = {}; }
1835
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "get", query: query }, options));
1835
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), method: "get", query: query }, options));
1836
1836
  };
1837
1837
  this.updateNotificationTemplateById = function (tenant_id, notification_template_id, body, options) {
1838
1838
  if (options === void 0) { options = {}; }
1839
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1839
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), method: "put", body: JSON.stringify(body), headers: {
1840
1840
  "content-type": "application/json",
1841
1841
  } }, options));
1842
1842
  };
1843
1843
  this.deleteNotificationTemplateById = function (tenant_id, notification_template_id, options) {
1844
1844
  if (options === void 0) { options = {}; }
1845
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "delete" }, options));
1845
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), method: "delete" }, options));
1846
1846
  };
1847
1847
  this.createChannelForNotificationTemplate = function (tenant_id, notification_template_id, body, options) {
1848
1848
  if (options === void 0) { options = {}; }
1849
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1849
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels"), method: "post", body: JSON.stringify(body), headers: {
1850
1850
  "content-type": "application/json",
1851
1851
  } }, options));
1852
1852
  };
1853
1853
  this.updateChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, body, options) {
1854
1854
  if (options === void 0) { options = {}; }
1855
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1855
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), method: "put", body: JSON.stringify(body), headers: {
1856
1856
  "content-type": "application/json",
1857
1857
  } }, options));
1858
1858
  };
1859
1859
  this.deleteChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, options) {
1860
1860
  if (options === void 0) { options = {}; }
1861
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), __assign({ method: "delete" }, options));
1861
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), method: "delete" }, options));
1862
1862
  };
1863
1863
  this.createNotificationTopic = function (tenant_id, body, options) {
1864
1864
  if (options === void 0) { options = {}; }
1865
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1865
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics"), method: "post", body: JSON.stringify(body), headers: {
1866
1866
  "content-type": "application/json",
1867
1867
  } }, options));
1868
1868
  };
1869
1869
  this.listNotificationTopics = function (tenant_id, options) {
1870
1870
  if (options === void 0) { options = {}; }
1871
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics"), __assign({ method: "get" }, options));
1871
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics"), method: "get" }, options));
1872
1872
  };
1873
1873
  this.updateNotificationTopicById = function (tenant_id, notification_topic_id, body, options) {
1874
1874
  if (options === void 0) { options = {}; }
1875
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1875
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "put", body: JSON.stringify(body), headers: {
1876
1876
  "content-type": "application/json",
1877
1877
  } }, options));
1878
1878
  };
1879
1879
  this.deleteNotificationTopicById = function (tenant_id, notification_topic_id, options) {
1880
1880
  if (options === void 0) { options = {}; }
1881
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), __assign({ method: "delete" }, options));
1881
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/topics/").concat(notification_topic_id), method: "delete" }, options));
1882
1882
  };
1883
1883
  this.listSchemas = function (tenant_id, options) {
1884
1884
  if (options === void 0) { options = {}; }
1885
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas"), __assign({ method: "get" }, options));
1885
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas"), method: "get" }, options));
1886
1886
  };
1887
1887
  this.getSchemaById = function (tenant_id, schema_id, options) {
1888
1888
  if (options === void 0) { options = {}; }
1889
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas/").concat(schema_id), __assign({ method: "get" }, options));
1889
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/schemas/").concat(schema_id), method: "get" }, options));
1890
1890
  };
1891
1891
  this.createSettingsViewForTenant = function (tenant_id, body, options) {
1892
1892
  if (options === void 0) { options = {}; }
1893
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1893
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views"), method: "post", body: JSON.stringify(body), headers: {
1894
1894
  "content-type": "application/json",
1895
1895
  } }, options));
1896
1896
  };
1897
1897
  this.listSettingsViewsForTenant = function (tenant_id, query, options) {
1898
1898
  if (options === void 0) { options = {}; }
1899
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views"), __assign({ method: "get", query: query }, options));
1899
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views"), method: "get", query: query }, options));
1900
1900
  };
1901
1901
  this.updateSettingsViewForTenant = function (tenant_id, settings_view_id, body, options) {
1902
1902
  if (options === void 0) { options = {}; }
1903
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1903
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), method: "put", body: JSON.stringify(body), headers: {
1904
1904
  "content-type": "application/json",
1905
1905
  } }, options));
1906
1906
  };
1907
1907
  this.deleteSettingsViewForTenant = function (tenant_id, settings_view_id, options) {
1908
1908
  if (options === void 0) { options = {}; }
1909
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), __assign({ method: "delete" }, options));
1909
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id), method: "delete" }, options));
1910
1910
  };
1911
1911
  this.updateSettingsItemValueForTenantUser = function (tenant_id, user_id, settings_item_id_or_key, body, options) {
1912
1912
  if (options === void 0) { options = {}; }
1913
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/items/").concat(settings_item_id_or_key, "/value"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1913
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/items/").concat(settings_item_id_or_key, "/value"), method: "put", body: JSON.stringify(body), headers: {
1914
1914
  "content-type": "application/json",
1915
1915
  } }, options));
1916
1916
  };
1917
1917
  this.listSettingsViewsForTenantUser = function (tenant_id, user_id, options) {
1918
1918
  if (options === void 0) { options = {}; }
1919
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views"), __assign({ method: "get" }, options));
1919
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views"), method: "get" }, options));
1920
1920
  };
1921
1921
  this.getSettingsViewForTenantUser = function (tenant_id, user_id, settings_view_id, options) {
1922
1922
  if (options === void 0) { options = {}; }
1923
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views/").concat(settings_view_id), __assign({ method: "get" }, options));
1923
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/settings/views/").concat(settings_view_id), method: "get" }, options));
1924
1924
  };
1925
1925
  this.createSettingsGroupForSettingsView = function (tenant_id, settings_view_id, body, options) {
1926
1926
  if (options === void 0) { options = {}; }
1927
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1927
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups"), method: "post", body: JSON.stringify(body), headers: {
1928
1928
  "content-type": "application/json",
1929
1929
  } }, options));
1930
1930
  };
1931
1931
  this.updateSettingsGroupForSettingsView = function (tenant_id, settings_view_id, settings_group_id, body, options) {
1932
1932
  if (options === void 0) { options = {}; }
1933
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1933
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id), method: "put", body: JSON.stringify(body), headers: {
1934
1934
  "content-type": "application/json",
1935
1935
  } }, options));
1936
1936
  };
1937
1937
  this.deleteSettingsGroupForSettingsView = function (tenant_id, settings_view_id, settings_group_id, options) {
1938
1938
  if (options === void 0) { options = {}; }
1939
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id), __assign({ method: "delete" }, options));
1939
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id), method: "delete" }, options));
1940
1940
  };
1941
1941
  this.createSettingsItemForSettingsGroup = function (tenant_id, settings_view_id, settings_group_id, body, options) {
1942
1942
  if (options === void 0) { options = {}; }
1943
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1943
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items"), method: "post", body: JSON.stringify(body), headers: {
1944
1944
  "content-type": "application/json",
1945
1945
  } }, options));
1946
1946
  };
1947
1947
  this.updateSettingsItemForSettingsGroup = function (tenant_id, settings_view_id, settings_group_id, settings_item_id, body, options) {
1948
1948
  if (options === void 0) { options = {}; }
1949
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items/").concat(settings_item_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1949
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items/").concat(settings_item_id), method: "put", body: JSON.stringify(body), headers: {
1950
1950
  "content-type": "application/json",
1951
1951
  } }, options));
1952
1952
  };
1953
1953
  this.deleteSettingsItemForSettingsGroup = function (tenant_id, settings_view_id, settings_group_id, settings_item_id, options) {
1954
1954
  if (options === void 0) { options = {}; }
1955
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items/").concat(settings_item_id), __assign({ method: "delete" }, options));
1955
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/settings/views/").concat(settings_view_id, "/groups/").concat(settings_group_id, "/items/").concat(settings_item_id), method: "delete" }, options));
1956
1956
  };
1957
1957
  this.createExternalDomainForTenantById = function (tenant_id, body, options) {
1958
1958
  if (options === void 0) { options = {}; }
1959
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1959
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external"), method: "post", body: JSON.stringify(body), headers: {
1960
1960
  "content-type": "application/json",
1961
1961
  } }, options));
1962
1962
  };
1963
1963
  this.getExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
1964
1964
  if (options === void 0) { options = {}; }
1965
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "get" }, options));
1965
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), method: "get" }, options));
1966
1966
  };
1967
1967
  this.updateExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, body, options) {
1968
1968
  if (options === void 0) { options = {}; }
1969
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1969
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), method: "put", body: JSON.stringify(body), headers: {
1970
1970
  "content-type": "application/json",
1971
1971
  } }, options));
1972
1972
  };
1973
1973
  this.deleteExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
1974
1974
  if (options === void 0) { options = {}; }
1975
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), __assign({ method: "delete" }, options));
1975
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id), method: "delete" }, options));
1976
1976
  };
1977
1977
  this.checkExternalDomainByIdForTenantById = function (tenant_id, external_domain_id, options) {
1978
1978
  if (options === void 0) { options = {}; }
1979
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id, "/check"), __assign({ method: "post" }, options));
1979
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/domains/external/").concat(external_domain_id, "/check"), method: "post" }, options));
1980
1980
  };
1981
1981
  this.checkSubdomainAvailability = function (body, options) {
1982
1982
  if (options === void 0) { options = {}; }
1983
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1983
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/subdomains/availability"), method: "post", body: JSON.stringify(body), headers: {
1984
1984
  "content-type": "application/json",
1985
1985
  } }, options));
1986
1986
  };
1987
1987
  this.paginateLinksForTenantById = function (tenant_id, query, options) {
1988
1988
  if (options === void 0) { options = {}; }
1989
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), __assign({ method: "get", query: query }, options));
1989
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), method: "get", query: query }, options));
1990
1990
  };
1991
1991
  this.createLinkForTenantById = function (tenant_id, body, options) {
1992
1992
  if (options === void 0) { options = {}; }
1993
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1993
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links"), method: "post", body: JSON.stringify(body), headers: {
1994
1994
  "content-type": "application/json",
1995
1995
  } }, options));
1996
1996
  };
1997
1997
  this.updateLinkByIdForTenantById = function (tenant_id, link_id, body, options) {
1998
1998
  if (options === void 0) { options = {}; }
1999
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1999
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id), method: "put", body: JSON.stringify(body), headers: {
2000
2000
  "content-type": "application/json",
2001
2001
  } }, options));
2002
2002
  };
2003
2003
  this.deleteLinkByIdForTenantById = function (tenant_id, link_id, options) {
2004
2004
  if (options === void 0) { options = {}; }
2005
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id), __assign({ method: "delete" }, options));
2005
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id), method: "delete" }, options));
2006
2006
  };
2007
2007
  this.recordClickForLink = function (tenant_id, link_id, body, options) {
2008
2008
  if (options === void 0) { options = {}; }
2009
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id, "/clicks"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2009
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/links/").concat(link_id, "/clicks"), method: "post", body: JSON.stringify(body), headers: {
2010
2010
  "content-type": "application/json",
2011
2011
  }, raw: true }, options));
2012
2012
  };
2013
2013
  this.loginUserForTenant = function (tenant_id, body, options) {
2014
2014
  if (options === void 0) { options = {}; }
2015
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/login"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2015
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/login"), method: "post", body: JSON.stringify(body), headers: {
2016
2016
  "content-type": "application/json",
2017
2017
  } }, options));
2018
2018
  };
2019
2019
  this.getTenantUserInfo = function (tenant_id, options) {
2020
2020
  if (options === void 0) { options = {}; }
2021
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/user-info"), __assign({ method: "get" }, options));
2021
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/user-info"), method: "get" }, options));
2022
2022
  };
2023
2023
  this.logoutUserForTenant = function (tenant_id, options) {
2024
2024
  if (options === void 0) { options = {}; }
2025
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/logout"), __assign({ method: "post" }, options));
2025
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/logout"), method: "post" }, options));
2026
2026
  };
2027
2027
  this.getAuthDatabaseConnectionForTenant = function (tenant_id, options) {
2028
2028
  if (options === void 0) { options = {}; }
2029
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/database/connection"), __assign({ method: "get" }, options));
2029
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/database/connection"), method: "get" }, options));
2030
2030
  };
2031
2031
  this.updateAuthDatabaseConnectionForTenant = function (tenant_id, body, options) {
2032
2032
  if (options === void 0) { options = {}; }
2033
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/database/connection"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2033
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/database/connection"), method: "put", body: JSON.stringify(body), headers: {
2034
2034
  "content-type": "application/json",
2035
2035
  } }, options));
2036
2036
  };
2037
2037
  this.listSsoConnectionsForTenant = function (tenant_id, options) {
2038
2038
  if (options === void 0) { options = {}; }
2039
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), __assign({ method: "get" }, options));
2039
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), method: "get" }, options));
2040
2040
  };
2041
2041
  this.createSsoConnectionForTenant = function (tenant_id, body, options) {
2042
2042
  if (options === void 0) { options = {}; }
2043
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2043
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections"), method: "post", body: JSON.stringify(body), headers: {
2044
2044
  "content-type": "application/json",
2045
2045
  } }, options));
2046
2046
  };
2047
2047
  this.updateSsoConnectionForTenant = function (tenant_id, sso_connection_id, body, options) {
2048
2048
  if (options === void 0) { options = {}; }
2049
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections/").concat(sso_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2049
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections/").concat(sso_connection_id), method: "put", body: JSON.stringify(body), headers: {
2050
2050
  "content-type": "application/json",
2051
2051
  } }, options));
2052
2052
  };
2053
2053
  this.deleteSsoConnectionForTenant = function (tenant_id, sso_connection_id, options) {
2054
2054
  if (options === void 0) { options = {}; }
2055
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections/").concat(sso_connection_id), __assign({ method: "delete" }, options));
2055
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/sso/connections/").concat(sso_connection_id), method: "delete" }, options));
2056
2056
  };
2057
2057
  this.createPasswordlessSmsConnectionForTenant = function (tenant_id, body, options) {
2058
2058
  if (options === void 0) { options = {}; }
2059
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/sms"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2059
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/sms"), method: "post", body: JSON.stringify(body), headers: {
2060
2060
  "content-type": "application/json",
2061
2061
  } }, options));
2062
2062
  };
2063
2063
  this.listPasswordlessConnectionsForTenant = function (tenant_id, options) {
2064
2064
  if (options === void 0) { options = {}; }
2065
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections"), __assign({ method: "get" }, options));
2065
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections"), method: "get" }, options));
2066
2066
  };
2067
2067
  this.updatePasswordlessConnectionForTenant = function (tenant_id, passwordless_connection_id, body, options) {
2068
2068
  if (options === void 0) { options = {}; }
2069
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/").concat(passwordless_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2069
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/").concat(passwordless_connection_id), method: "put", body: JSON.stringify(body), headers: {
2070
2070
  "content-type": "application/json",
2071
2071
  } }, options));
2072
2072
  };
2073
2073
  this.deletePasswordlessConnectionForTenant = function (tenant_id, passwordless_connection_id, options) {
2074
2074
  if (options === void 0) { options = {}; }
2075
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/").concat(passwordless_connection_id), __assign({ method: "delete" }, options));
2075
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/passwordless/connections/").concat(passwordless_connection_id), method: "delete" }, options));
2076
2076
  };
2077
2077
  this.webauthnRegistrationChallenge = function (tenant_id, body, options) {
2078
2078
  if (options === void 0) { options = {}; }
2079
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/register/challenge"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2079
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/register/challenge"), method: "post", body: JSON.stringify(body), headers: {
2080
2080
  "content-type": "application/json",
2081
2081
  } }, options));
2082
2082
  };
2083
2083
  this.webauthnAuthenticationChallenge = function (tenant_id, body, options) {
2084
2084
  if (options === void 0) { options = {}; }
2085
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/authenticate/challenge"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2085
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/authenticate/challenge"), method: "post", body: JSON.stringify(body), headers: {
2086
2086
  "content-type": "application/json",
2087
2087
  } }, options));
2088
2088
  };
2089
2089
  this.webauthnRegister = function (tenant_id, body, options) {
2090
2090
  if (options === void 0) { options = {}; }
2091
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/register"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2091
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/register"), method: "post", body: JSON.stringify(body), headers: {
2092
2092
  "content-type": "application/json",
2093
2093
  } }, options));
2094
2094
  };
2095
2095
  this.webauthnAuthenticate = function (tenant_id, body, options) {
2096
2096
  if (options === void 0) { options = {}; }
2097
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/authenticate"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2097
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/webauthn/authenticate"), method: "post", body: JSON.stringify(body), headers: {
2098
2098
  "content-type": "application/json",
2099
2099
  } }, options));
2100
2100
  };
2101
2101
  this.getClientForTenantApplication = function (tenant_id, application_id, options) {
2102
2102
  if (options === void 0) { options = {}; }
2103
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "get" }, options));
2103
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), method: "get" }, options));
2104
2104
  };
2105
2105
  this.createClientForTenantApplication = function (tenant_id, application_id, options) {
2106
2106
  if (options === void 0) { options = {}; }
2107
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "post" }, options));
2107
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), method: "post" }, options));
2108
2108
  };
2109
2109
  this.updateClientForTenantApplication = function (tenant_id, application_id, body, options) {
2110
2110
  if (options === void 0) { options = {}; }
2111
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2111
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), method: "put", body: JSON.stringify(body), headers: {
2112
2112
  "content-type": "application/json",
2113
2113
  } }, options));
2114
2114
  };
2115
2115
  this.deleteClientForTenantApplication = function (tenant_id, application_id, options) {
2116
2116
  if (options === void 0) { options = {}; }
2117
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "delete" }, options));
2117
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), method: "delete" }, options));
2118
2118
  };
2119
2119
  this.listAppStoreConnectAppsForTenantById = function (tenant_id, options) {
2120
2120
  if (options === void 0) { options = {}; }
2121
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps"), __assign({ method: "get" }, options));
2121
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps"), method: "get" }, options));
2122
2122
  };
2123
2123
  this.importAppStoreConnectAppForTenantById = function (tenant_id, app_store_connect_app_id, options) {
2124
2124
  if (options === void 0) { options = {}; }
2125
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps/").concat(app_store_connect_app_id, "/import"), __assign({ method: "post" }, options));
2125
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps/").concat(app_store_connect_app_id, "/import"), method: "post" }, options));
2126
2126
  };
2127
2127
  this.listDashboardChecklistItemsForTenantById = function (tenant_id, query, options) {
2128
2128
  if (options === void 0) { options = {}; }
2129
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items"), __assign({ method: "get", query: query }, options));
2129
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items"), method: "get", query: query }, options));
2130
2130
  };
2131
2131
  this.deleteDashboardChecklistItemForTenantById = function (tenant_id, dashboard_checklist_item_id, options) {
2132
2132
  if (options === void 0) { options = {}; }
2133
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items/").concat(dashboard_checklist_item_id), __assign({ method: "delete" }, options));
2133
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/dashboard/checklist/items/").concat(dashboard_checklist_item_id), method: "delete" }, options));
2134
2134
  };
2135
2135
  this.createApplicationForTenantById = function (tenant_id, body, options) {
2136
2136
  if (options === void 0) { options = {}; }
2137
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2137
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), method: "post", body: JSON.stringify(body), headers: {
2138
2138
  "content-type": "application/json",
2139
2139
  } }, options));
2140
2140
  };
2141
2141
  this.paginateApplicationsForTenantById = function (tenant_id, query, options) {
2142
2142
  if (options === void 0) { options = {}; }
2143
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __assign({ method: "get", query: query }, options));
2143
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), method: "get", query: query }, options));
2144
2144
  };
2145
2145
  this.getApplicationByIdForTenantById = function (tenant_id, application_id, options) {
2146
2146
  if (options === void 0) { options = {}; }
2147
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "get" }, options));
2147
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), method: "get" }, options));
2148
2148
  };
2149
2149
  this.updateApplicationByIdForTenantById = function (tenant_id, application_id, body, options) {
2150
2150
  if (options === void 0) { options = {}; }
2151
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2151
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), method: "put", body: JSON.stringify(body), headers: {
2152
2152
  "content-type": "application/json",
2153
2153
  } }, options));
2154
2154
  };
2155
2155
  this.deleteApplicationByIdForTenantById = function (tenant_id, application_id, options) {
2156
2156
  if (options === void 0) { options = {}; }
2157
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "delete" }, options));
2157
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), method: "delete" }, options));
2158
2158
  };
2159
2159
  this.linkAppStoreConnectAppForApplication = function (tenant_id, application_id, body, options) {
2160
2160
  if (options === void 0) { options = {}; }
2161
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-store-connect/link"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2161
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-store-connect/link"), method: "post", body: JSON.stringify(body), headers: {
2162
2162
  "content-type": "application/json",
2163
2163
  } }, options));
2164
2164
  };
2165
2165
  this.getTenantForApiKeyById = function (api_key_id, options) {
2166
2166
  if (options === void 0) { options = {}; }
2167
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/tenant"), __assign({ method: "get" }, options));
2167
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/tenant"), method: "get" }, options));
2168
2168
  };
2169
2169
  this.acceptInvitationByCode = function (invitation_code, options) {
2170
2170
  if (options === void 0) { options = {}; }
2171
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/invitations/").concat(invitation_code, "/accept"), __assign({ method: "post" }, options));
2171
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/invitations/").concat(invitation_code, "/accept"), method: "post" }, options));
2172
2172
  };
2173
2173
  this.deleteApiKeyForTenantById = function (tenant_id, api_key_id, options) {
2174
2174
  if (options === void 0) { options = {}; }
2175
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys/").concat(api_key_id), __assign({ method: "delete" }, options));
2175
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys/").concat(api_key_id), method: "delete" }, options));
2176
2176
  };
2177
2177
  this.createApiKeyForTenantById = function (tenant_id, body, options) {
2178
2178
  if (options === void 0) { options = {}; }
2179
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2179
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), method: "post", body: JSON.stringify(body), headers: {
2180
2180
  "content-type": "application/json",
2181
2181
  } }, options));
2182
2182
  };
2183
2183
  this.getApiKeysForTenantById = function (tenant_id, options) {
2184
2184
  if (options === void 0) { options = {}; }
2185
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), __assign({ method: "get" }, options));
2185
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), method: "get" }, options));
2186
2186
  };
2187
2187
  this.listConnectedAppsForTenantById = function (tenant_id, query, options) {
2188
2188
  if (options === void 0) { options = {}; }
2189
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps"), __assign({ method: "get", query: query }, options));
2189
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps"), method: "get", query: query }, options));
2190
2190
  };
2191
2191
  this.getConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, options) {
2192
2192
  if (options === void 0) { options = {}; }
2193
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), __assign({ method: "get" }, options));
2193
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), method: "get" }, options));
2194
2194
  };
2195
2195
  this.updateConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, body, options) {
2196
2196
  if (options === void 0) { options = {}; }
2197
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2197
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), method: "put", body: JSON.stringify(body), headers: {
2198
2198
  "content-type": "application/json",
2199
2199
  } }, options));
2200
2200
  };
2201
2201
  this.deleteConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, options) {
2202
2202
  if (options === void 0) { options = {}; }
2203
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), __assign({ method: "delete" }, options));
2203
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), method: "delete" }, options));
2204
2204
  };
2205
2205
  this.createConnectionForConnectedApp = function (tenant_id, connected_app_id, body, options) {
2206
2206
  if (options === void 0) { options = {}; }
2207
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2207
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), method: "post", body: JSON.stringify(body), headers: {
2208
2208
  "content-type": "application/json",
2209
2209
  } }, options));
2210
2210
  };
2211
2211
  this.listIntegrationsForTenantById = function (tenant_id, query, options) {
2212
2212
  if (options === void 0) { options = {}; }
2213
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations"), __assign({ method: "get", query: query }, options));
2213
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations"), method: "get", query: query }, options));
2214
2214
  };
2215
2215
  this.updateIntegrationConnectionById = function (tenant_id, integration_connection_id, body, options) {
2216
2216
  if (options === void 0) { options = {}; }
2217
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2217
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), method: "put", body: JSON.stringify(body), headers: {
2218
2218
  "content-type": "application/json",
2219
2219
  } }, options));
2220
2220
  };
2221
2221
  this.deleteIntegrationConnectionById = function (tenant_id, integration_connection_id, options) {
2222
2222
  if (options === void 0) { options = {}; }
2223
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), __assign({ method: "delete" }, options));
2223
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), method: "delete" }, options));
2224
2224
  };
2225
2225
  this.updateDataForIntegrationConnectionById = function (tenant_id, integration_connection_id, body, options) {
2226
2226
  if (options === void 0) { options = {}; }
2227
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id, "/data"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2227
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id, "/data"), method: "put", body: JSON.stringify(body), headers: {
2228
2228
  "content-type": "application/json",
2229
2229
  } }, options));
2230
2230
  };
2231
2231
  this.createConnectionForIntegration = function (tenant_id, integration_id, body, options) {
2232
2232
  if (options === void 0) { options = {}; }
2233
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/").concat(integration_id, "/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2233
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/").concat(integration_id, "/connections"), method: "post", body: JSON.stringify(body), headers: {
2234
2234
  "content-type": "application/json",
2235
2235
  } }, options));
2236
2236
  };
2237
2237
  this.getInvitationsForTenantById = function (tenant_id, options) {
2238
2238
  if (options === void 0) { options = {}; }
2239
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), __assign({ method: "get" }, options));
2239
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), method: "get" }, options));
2240
2240
  };
2241
2241
  this.createInvitationForTenantById = function (tenant_id, body, options) {
2242
2242
  if (options === void 0) { options = {}; }
2243
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2243
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), method: "post", body: JSON.stringify(body), headers: {
2244
2244
  "content-type": "application/json",
2245
2245
  } }, options));
2246
2246
  };
2247
2247
  this.getTeamMembersForTenantById = function (tenant_id, options) {
2248
2248
  if (options === void 0) { options = {}; }
2249
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), __assign({ method: "get" }, options));
2249
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), method: "get" }, options));
2250
2250
  };
2251
2251
  this.deleteTeamMemberForTenantById = function (tenant_id, team_member_id, options) {
2252
2252
  if (options === void 0) { options = {}; }
2253
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), __assign({ method: "delete" }, options));
2253
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), method: "delete" }, options));
2254
2254
  };
2255
2255
  this.createRole = function (tenant_id, body, options) {
2256
2256
  if (options === void 0) { options = {}; }
2257
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2257
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles"), method: "post", body: JSON.stringify(body), headers: {
2258
2258
  "content-type": "application/json",
2259
2259
  } }, options));
2260
2260
  };
2261
2261
  this.listRoles = function (tenant_id, options) {
2262
2262
  if (options === void 0) { options = {}; }
2263
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles"), __assign({ method: "get" }, options));
2263
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles"), method: "get" }, options));
2264
2264
  };
2265
2265
  this.getRoleById = function (tenant_id, role_id, options) {
2266
2266
  if (options === void 0) { options = {}; }
2267
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), __assign({ method: "get" }, options));
2267
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), method: "get" }, options));
2268
2268
  };
2269
2269
  this.updateRoleById = function (tenant_id, role_id, body, options) {
2270
2270
  if (options === void 0) { options = {}; }
2271
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2271
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), method: "put", body: JSON.stringify(body), headers: {
2272
2272
  "content-type": "application/json",
2273
2273
  } }, options));
2274
2274
  };
2275
2275
  this.deleteRoleById = function (tenant_id, role_id, options) {
2276
2276
  if (options === void 0) { options = {}; }
2277
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), __assign({ method: "delete" }, options));
2277
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/roles/").concat(role_id), method: "delete" }, options));
2278
2278
  };
2279
2279
  this.addRolesToUser = function (tenant_id, user_id, body, options) {
2280
2280
  if (options === void 0) { options = {}; }
2281
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2281
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles"), method: "post", body: JSON.stringify(body), headers: {
2282
2282
  "content-type": "application/json",
2283
2283
  }, raw: true }, options));
2284
2284
  };
2285
2285
  this.removeRoleFromUser = function (tenant_id, user_id, user_role_id, options) {
2286
2286
  if (options === void 0) { options = {}; }
2287
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles/").concat(user_role_id), __assign({ method: "delete" }, options));
2287
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/roles/").concat(user_role_id), method: "delete" }, options));
2288
2288
  };
2289
2289
  this.getUserMetricsForTenantById = function (tenant_id, query, options) {
2290
2290
  if (options === void 0) { options = {}; }
2291
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/metrics"), __assign({ method: "get", query: query }, options));
2291
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/metrics"), method: "get", query: query }, options));
2292
2292
  };
2293
2293
  this.getUserForTenantById = function (tenant_id, user_id, query, options) {
2294
2294
  if (options === void 0) { options = {}; }
2295
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "get", query: query }, options));
2295
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), method: "get", query: query }, options));
2296
2296
  };
2297
2297
  this.updateUserForTenantById = function (tenant_id, user_id, body, options) {
2298
2298
  if (options === void 0) { options = {}; }
2299
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2299
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), method: "put", body: JSON.stringify(body), headers: {
2300
2300
  "content-type": "application/json",
2301
2301
  } }, options));
2302
2302
  };
2303
2303
  this.deleteUserForTenantById = function (tenant_id, user_id, options) {
2304
2304
  if (options === void 0) { options = {}; }
2305
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "delete" }, options));
2305
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), method: "delete" }, options));
2306
2306
  };
2307
2307
  this.listDevicesForTenantUser = function (tenant_id, user_id, options) {
2308
2308
  if (options === void 0) { options = {}; }
2309
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/devices"), __assign({ method: "get" }, options));
2309
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/devices"), method: "get" }, options));
2310
2310
  };
2311
2311
  this.getPropertiesForTenantUser = function (tenant_id, user_id, options) {
2312
2312
  if (options === void 0) { options = {}; }
2313
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "get" }, options));
2313
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), method: "get" }, options));
2314
2314
  };
2315
2315
  this.updatePropertiesForTenantUser = function (tenant_id, user_id, body, options) {
2316
2316
  if (options === void 0) { options = {}; }
2317
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2317
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), method: "put", body: JSON.stringify(body), headers: {
2318
2318
  "content-type": "application/json",
2319
2319
  } }, options));
2320
2320
  };
2321
2321
  this.deletePropertiesForTenantUser = function (tenant_id, user_id, options) {
2322
2322
  if (options === void 0) { options = {}; }
2323
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), __assign({ method: "delete" }, options));
2323
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties"), method: "delete" }, options));
2324
2324
  };
2325
2325
  this.updatePropertyValueForTenantUser = function (tenant_id, user_id, user_property_key, body, options) {
2326
2326
  if (options === void 0) { options = {}; }
2327
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "put", body: JSON.stringify(body), headers: {
2327
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), method: "put", body: JSON.stringify(body), headers: {
2328
2328
  "content-type": "application/json",
2329
2329
  } }, options));
2330
2330
  };
2331
2331
  this.deletePropertyValueForTenantUser = function (tenant_id, user_id, user_property_key, options) {
2332
2332
  if (options === void 0) { options = {}; }
2333
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), __assign({ method: "delete" }, options));
2333
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/properties/").concat(user_property_key), method: "delete" }, options));
2334
2334
  };
2335
2335
  this.getMetadataForTenantUser = function (tenant_id, user_id, options) {
2336
2336
  if (options === void 0) { options = {}; }
2337
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), __assign({ method: "get" }, options));
2337
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), method: "get" }, options));
2338
2338
  };
2339
2339
  this.updateMetadataForTenantUser = function (tenant_id, user_id, body, options) {
2340
2340
  if (options === void 0) { options = {}; }
2341
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2341
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata"), method: "put", body: JSON.stringify(body), headers: {
2342
2342
  "content-type": "application/json",
2343
2343
  } }, options));
2344
2344
  };
2345
2345
  this.updateMetadataValueForTenantUser = function (tenant_id, user_id, user_metadata_key, body, options) {
2346
2346
  if (options === void 0) { options = {}; }
2347
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), __assign({ method: "put", body: JSON.stringify(body), headers: {
2347
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), method: "put", body: JSON.stringify(body), headers: {
2348
2348
  "content-type": "application/json",
2349
2349
  } }, options));
2350
2350
  };
2351
2351
  this.deleteMetadataValueForTenantUser = function (tenant_id, user_id, user_metadata_key, options) {
2352
2352
  if (options === void 0) { options = {}; }
2353
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), __assign({ method: "delete" }, options));
2353
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/metadata/").concat(user_metadata_key), method: "delete" }, options));
2354
2354
  };
2355
2355
  this.updateAvatarForTenantUserById = function (tenant_id, user_id, body, options) {
2356
2356
  if (options === void 0) { options = {}; }
2357
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "put", body: JSON.stringify(body), headers: {
2357
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), method: "put", body: JSON.stringify(body), headers: {
2358
2358
  "content-type": "application/json",
2359
2359
  }, raw: true }, options));
2360
2360
  };
2361
2361
  this.deleteAvatarForTenantUserById = function (tenant_id, user_id, options) {
2362
2362
  if (options === void 0) { options = {}; }
2363
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), __assign({ method: "delete" }, options));
2363
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/avatar"), method: "delete" }, options));
2364
2364
  };
2365
2365
  this.createUserForTenantById = function (tenant_id, body, options) {
2366
2366
  if (options === void 0) { options = {}; }
2367
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2367
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), method: "post", body: JSON.stringify(body), headers: {
2368
2368
  "content-type": "application/json",
2369
2369
  } }, options));
2370
2370
  };
2371
2371
  this.paginateTenantUsersForTenantById = function (tenant_id, query, options) {
2372
2372
  if (options === void 0) { options = {}; }
2373
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "get", query: query }, options));
2373
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), method: "get", query: query }, options));
2374
2374
  };
2375
2375
  this.createIdentityForTenantUser = function (tenant_id, user_id, body, options) {
2376
2376
  if (options === void 0) { options = {}; }
2377
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/identities"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2377
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/identities"), method: "post", body: JSON.stringify(body), headers: {
2378
2378
  "content-type": "application/json",
2379
2379
  } }, options));
2380
2380
  };
2381
2381
  this.deleteIdentityForTenantById = function (tenant_id, identity_id, options) {
2382
2382
  if (options === void 0) { options = {}; }
2383
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id), __assign({ method: "delete" }, options));
2383
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id), method: "delete" }, options));
2384
2384
  };
2385
2385
  this.sendPasswordResetChallengeForIdentity = function (tenant_id, identity_id, options) {
2386
2386
  if (options === void 0) { options = {}; }
2387
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/password/reset/challenge"), __assign({ method: "post" }, options));
2387
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/password/reset/challenge"), method: "post" }, options));
2388
2388
  };
2389
2389
  this.sendVerificationChallengeForIdentity = function (tenant_id, identity_id, options) {
2390
2390
  if (options === void 0) { options = {}; }
2391
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/verification/challenge"), __assign({ method: "post" }, options));
2391
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/identities/").concat(identity_id, "/verification/challenge"), method: "post" }, options));
2392
2392
  };
2393
2393
  this.getTenantById = function (tenant_id, query, options) {
2394
2394
  if (options === void 0) { options = {}; }
2395
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "get", query: query }, options));
2395
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), method: "get", query: query }, options));
2396
2396
  };
2397
2397
  this.updateTenantById = function (tenant_id, body, options) {
2398
2398
  if (options === void 0) { options = {}; }
2399
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2399
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), method: "put", body: JSON.stringify(body), headers: {
2400
2400
  "content-type": "application/json",
2401
2401
  } }, options));
2402
2402
  };
2403
2403
  this.deleteTenantById = function (tenant_id, options) {
2404
2404
  if (options === void 0) { options = {}; }
2405
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "delete" }, options));
2405
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), method: "delete" }, options));
2406
2406
  };
2407
2407
  this.createTenant = function (body, options) {
2408
2408
  if (options === void 0) { options = {}; }
2409
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2409
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants"), method: "post", body: JSON.stringify(body), headers: {
2410
2410
  "content-type": "application/json",
2411
2411
  } }, options));
2412
2412
  };
2413
2413
  this.createTenantForUserById = function (user_id, body, options) {
2414
2414
  if (options === void 0) { options = {}; }
2415
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2415
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), method: "post", body: JSON.stringify(body), headers: {
2416
2416
  "content-type": "application/json",
2417
2417
  } }, options));
2418
2418
  };
2419
2419
  this.getTenantsForUserById = function (user_id, options) {
2420
2420
  if (options === void 0) { options = {}; }
2421
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), __assign({ method: "get" }, options));
2421
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), method: "get" }, options));
2422
2422
  };
2423
2423
  this.createMailSenderForTenantById = function (tenant_id, body, options) {
2424
2424
  if (options === void 0) { options = {}; }
2425
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2425
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders"), method: "post", body: JSON.stringify(body), headers: {
2426
2426
  "content-type": "application/json",
2427
2427
  } }, options));
2428
2428
  };
2429
2429
  this.paginateMailSendersForTenantById = function (tenant_id, query, options) {
2430
2430
  if (options === void 0) { options = {}; }
2431
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders"), __assign({ method: "get", query: query }, options));
2431
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders"), method: "get", query: query }, options));
2432
2432
  };
2433
2433
  this.getMailSenderByIdForTenantById = function (tenant_id, mail_sender_id, options) {
2434
2434
  if (options === void 0) { options = {}; }
2435
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), __assign({ method: "get" }, options));
2435
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), method: "get" }, options));
2436
2436
  };
2437
2437
  this.updateMailSenderByIdForTenantById = function (tenant_id, mail_sender_id, body, options) {
2438
2438
  if (options === void 0) { options = {}; }
2439
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2439
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), method: "put", body: JSON.stringify(body), headers: {
2440
2440
  "content-type": "application/json",
2441
2441
  } }, options));
2442
2442
  };
2443
2443
  this.deleteMailSenderByIdForTenantById = function (tenant_id, mail_sender_id, options) {
2444
2444
  if (options === void 0) { options = {}; }
2445
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), __assign({ method: "delete" }, options));
2445
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/senders/").concat(mail_sender_id), method: "delete" }, options));
2446
2446
  };
2447
2447
  this.createMailTemplateForTenantById = function (tenant_id, body, options) {
2448
2448
  if (options === void 0) { options = {}; }
2449
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2449
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates"), method: "post", body: JSON.stringify(body), headers: {
2450
2450
  "content-type": "application/json",
2451
2451
  } }, options));
2452
2452
  };
2453
2453
  this.paginateMailTemplatesForTenantById = function (tenant_id, query, options) {
2454
2454
  if (options === void 0) { options = {}; }
2455
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates"), __assign({ method: "get", query: query }, options));
2455
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates"), method: "get", query: query }, options));
2456
2456
  };
2457
2457
  this.getMailTemplateByIdForTenantById = function (tenant_id, mail_template_id, options) {
2458
2458
  if (options === void 0) { options = {}; }
2459
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), __assign({ method: "get" }, options));
2459
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), method: "get" }, options));
2460
2460
  };
2461
2461
  this.updateMailTemplateByIdForTenantById = function (tenant_id, mail_template_id, body, options) {
2462
2462
  if (options === void 0) { options = {}; }
2463
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2463
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), method: "put", body: JSON.stringify(body), headers: {
2464
2464
  "content-type": "application/json",
2465
2465
  } }, options));
2466
2466
  };
2467
2467
  this.deleteMailTemplateByIdForTenantById = function (tenant_id, mail_template_id, options) {
2468
2468
  if (options === void 0) { options = {}; }
2469
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), __assign({ method: "delete" }, options));
2469
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id), method: "delete" }, options));
2470
2470
  };
2471
2471
  this.createVersionForMailTemplateByIdForTenantById = function (tenant_id, mail_template_id, body, options) {
2472
2472
  if (options === void 0) { options = {}; }
2473
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2473
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions"), method: "post", body: JSON.stringify(body), headers: {
2474
2474
  "content-type": "application/json",
2475
2475
  } }, options));
2476
2476
  };
2477
2477
  this.getMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, options) {
2478
2478
  if (options === void 0) { options = {}; }
2479
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), __assign({ method: "get" }, options));
2479
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), method: "get" }, options));
2480
2480
  };
2481
2481
  this.updateMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
2482
2482
  if (options === void 0) { options = {}; }
2483
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2483
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), method: "put", body: JSON.stringify(body), headers: {
2484
2484
  "content-type": "application/json",
2485
2485
  } }, options));
2486
2486
  };
2487
2487
  this.deleteMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, options) {
2488
2488
  if (options === void 0) { options = {}; }
2489
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), __assign({ method: "delete" }, options));
2489
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id), method: "delete" }, options));
2490
2490
  };
2491
2491
  this.activateMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
2492
2492
  if (options === void 0) { options = {}; }
2493
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/activate"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2493
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/activate"), method: "post", body: JSON.stringify(body), headers: {
2494
2494
  "content-type": "application/json",
2495
2495
  } }, options));
2496
2496
  };
2497
2497
  this.testMailTemplateVersionForTenantById = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
2498
2498
  if (options === void 0) { options = {}; }
2499
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/test"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2499
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/test"), method: "post", body: JSON.stringify(body), headers: {
2500
2500
  "content-type": "application/json",
2501
2501
  }, raw: true }, options));
2502
2502
  };
2503
2503
  this.generateContentForMailTemplateVersion = function (tenant_id, mail_template_id, mail_template_version_id, body, options) {
2504
2504
  if (options === void 0) { options = {}; }
2505
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/content/generate"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2505
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/mail/templates/").concat(mail_template_id, "/versions/").concat(mail_template_version_id, "/content/generate"), method: "post", body: JSON.stringify(body), headers: {
2506
2506
  "content-type": "application/json",
2507
2507
  } }, options));
2508
2508
  };
2509
2509
  this.createPolicyDocumentForTenantById = function (tenant_id, body, options) {
2510
2510
  if (options === void 0) { options = {}; }
2511
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2511
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents"), method: "post", body: JSON.stringify(body), headers: {
2512
2512
  "content-type": "application/json",
2513
2513
  } }, options));
2514
2514
  };
2515
2515
  this.paginatePolicyDocumentsForTenantById = function (tenant_id, query, options) {
2516
2516
  if (options === void 0) { options = {}; }
2517
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents"), __assign({ method: "get", query: query }, options));
2517
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents"), method: "get", query: query }, options));
2518
2518
  };
2519
2519
  this.getPolicyDocumentByIdForTenantById = function (tenant_id, policy_document_id, options) {
2520
2520
  if (options === void 0) { options = {}; }
2521
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), __assign({ method: "get" }, options));
2521
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), method: "get" }, options));
2522
2522
  };
2523
2523
  this.updatePolicyDocumentByIdForTenantById = function (tenant_id, policy_document_id, body, options) {
2524
2524
  if (options === void 0) { options = {}; }
2525
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2525
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), method: "put", body: JSON.stringify(body), headers: {
2526
2526
  "content-type": "application/json",
2527
2527
  } }, options));
2528
2528
  };
2529
2529
  this.deletePolicyDocumentByIdForTenantById = function (tenant_id, policy_document_id, options) {
2530
2530
  if (options === void 0) { options = {}; }
2531
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), __assign({ method: "delete" }, options));
2531
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id), method: "delete" }, options));
2532
2532
  };
2533
2533
  this.getPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, options) {
2534
2534
  if (options === void 0) { options = {}; }
2535
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), __assign({ method: "get" }, options));
2535
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), method: "get" }, options));
2536
2536
  };
2537
2537
  this.updatePolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, body, options) {
2538
2538
  if (options === void 0) { options = {}; }
2539
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2539
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id), method: "put", body: JSON.stringify(body), headers: {
2540
2540
  "content-type": "application/json",
2541
2541
  } }, options));
2542
2542
  };
2543
2543
  this.publishPolicyDocumentVersionForTenantById = function (tenant_id, policy_document_id, policy_document_version_id, body, options) {
2544
2544
  if (options === void 0) { options = {}; }
2545
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id, "/publish"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2545
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/policy-documents/").concat(policy_document_id, "/versions/").concat(policy_document_version_id, "/publish"), method: "post", body: JSON.stringify(body), headers: {
2546
2546
  "content-type": "application/json",
2547
2547
  } }, options));
2548
2548
  };
2549
2549
  this.getUserById = function (user_id, options) {
2550
2550
  if (options === void 0) { options = {}; }
2551
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "get" }, options));
2551
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), method: "get" }, options));
2552
2552
  };
2553
2553
  this.updateUserById = function (user_id, body, options) {
2554
2554
  if (options === void 0) { options = {}; }
2555
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
2555
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), method: "put", body: JSON.stringify(body), headers: {
2556
2556
  "content-type": "application/json",
2557
2557
  } }, options));
2558
2558
  };
2559
2559
  this.deleteUserById = function (user_id, options) {
2560
2560
  if (options === void 0) { options = {}; }
2561
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "delete" }, options));
2561
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), method: "delete" }, options));
2562
2562
  };
2563
2563
  this.createUser = function (body, options) {
2564
2564
  if (options === void 0) { options = {}; }
2565
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), __assign({ method: "post", body: JSON.stringify(body), headers: {
2565
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users"), method: "post", body: JSON.stringify(body), headers: {
2566
2566
  "content-type": "application/json",
2567
2567
  } }, options));
2568
2568
  };
2569
2569
  this.listUsers = function (query, options) {
2570
2570
  if (options === void 0) { options = {}; }
2571
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), __assign({ method: "get", query: query }, options));
2571
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/users"), method: "get", query: query }, options));
2572
2572
  };
2573
2573
  }
2574
2574
  return ParraAPI;