@atlaskit/teams-client 4.21.0 → 4.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/utils/permissions/constants.js +55 -8
  3. package/dist/cjs/common/utils/permissions/has-permission.js +4 -3
  4. package/dist/cjs/common/utils/permissions/types.js +3 -3
  5. package/dist/cjs/common/utils/ufo/constants.js +1 -1
  6. package/dist/cjs/common/utils/ufo/index.js +2 -2
  7. package/dist/cjs/services/legion-client/index.js +241 -196
  8. package/dist/cjs/services/main.js +592 -540
  9. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  10. package/dist/es2019/common/utils/permissions/constants.js +56 -8
  11. package/dist/es2019/common/utils/permissions/has-permission.js +4 -3
  12. package/dist/es2019/common/utils/permissions/types.js +3 -3
  13. package/dist/es2019/common/utils/ufo/constants.js +1 -1
  14. package/dist/es2019/common/utils/ufo/index.js +2 -2
  15. package/dist/es2019/services/legion-client/index.js +12 -2
  16. package/dist/es2019/services/main.js +13 -0
  17. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  18. package/dist/esm/common/utils/permissions/constants.js +55 -8
  19. package/dist/esm/common/utils/permissions/has-permission.js +4 -3
  20. package/dist/esm/common/utils/permissions/types.js +3 -3
  21. package/dist/esm/common/utils/ufo/constants.js +1 -1
  22. package/dist/esm/common/utils/ufo/index.js +2 -2
  23. package/dist/esm/services/legion-client/index.js +241 -196
  24. package/dist/esm/services/main.js +592 -540
  25. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  26. package/dist/types/common/utils/permissions/constants.d.ts +3 -3
  27. package/dist/types/common/utils/permissions/has-permission.d.ts +3 -2
  28. package/dist/types/common/utils/permissions/types.d.ts +1 -1
  29. package/dist/types/common/utils/ufo/constants.d.ts +2 -2
  30. package/dist/types/services/legion-client/index.d.ts +3 -1
  31. package/dist/types/services/main.d.ts +8 -0
  32. package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +3 -3
  33. package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +3 -2
  34. package/dist/types-ts4.5/common/utils/permissions/types.d.ts +4 -1
  35. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +3 -1
  36. package/dist/types-ts4.5/services/legion-client/index.d.ts +3 -1
  37. package/dist/types-ts4.5/services/main.d.ts +8 -0
  38. package/package.json +1 -4
@@ -679,6 +679,48 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
679
679
  }
680
680
  return archiveTeam;
681
681
  }()
682
+ }, {
683
+ key: "unArchiveTeam",
684
+ value: function () {
685
+ var _unArchiveTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(teamId) {
686
+ var siteId;
687
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
688
+ while (1) switch (_context22.prev = _context22.next) {
689
+ case 0:
690
+ siteId = this.getCloudId();
691
+ return _context22.abrupt("return", this.postResourceRaw("".concat(v4UrlPath, "/unarchive?siteId=").concat(siteId), JSON.stringify([this.trimTeamARI(teamId)])));
692
+ case 2:
693
+ case "end":
694
+ return _context22.stop();
695
+ }
696
+ }, _callee22, this);
697
+ }));
698
+ function unArchiveTeam(_x37) {
699
+ return _unArchiveTeam.apply(this, arguments);
700
+ }
701
+ return unArchiveTeam;
702
+ }()
703
+ }, {
704
+ key: "unlinkTeamFromGroup",
705
+ value: function () {
706
+ var _unlinkTeamFromGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(teamId, membershipSettings) {
707
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
708
+ while (1) switch (_context23.prev = _context23.next) {
709
+ case 0:
710
+ return _context23.abrupt("return", this.patchResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId)), {
711
+ membershipSettings: membershipSettings
712
+ }));
713
+ case 1:
714
+ case "end":
715
+ return _context23.stop();
716
+ }
717
+ }, _callee23, this);
718
+ }));
719
+ function unlinkTeamFromGroup(_x38, _x39) {
720
+ return _unlinkTeamFromGroup.apply(this, arguments);
721
+ }
722
+ return unlinkTeamFromGroup;
723
+ }()
682
724
  /**
683
725
  * @private
684
726
  * @deprecated should be other means to solve this issue
@@ -686,23 +728,23 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
686
728
  }, {
687
729
  key: "isSingleFullMemberTeam",
688
730
  value: (function () {
689
- var _isSingleFullMemberTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(teamId) {
731
+ var _isSingleFullMemberTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(teamId) {
690
732
  var members;
691
- return _regeneratorRuntime.wrap(function _callee22$(_context22) {
692
- while (1) switch (_context22.prev = _context22.next) {
733
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
734
+ while (1) switch (_context24.prev = _context24.next) {
693
735
  case 0:
694
- _context22.next = 2;
736
+ _context24.next = 2;
695
737
  return this.getResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "/members?size=2&membershipState=FULL_MEMBER&siteId=").concat(this.getCloudId()));
696
738
  case 2:
697
- members = _context22.sent;
698
- return _context22.abrupt("return", members.entities.length === 1);
739
+ members = _context24.sent;
740
+ return _context24.abrupt("return", members.entities.length === 1);
699
741
  case 4:
700
742
  case "end":
701
- return _context22.stop();
743
+ return _context24.stop();
702
744
  }
703
- }, _callee22, this);
745
+ }, _callee24, this);
704
746
  }));
705
- function isSingleFullMemberTeam(_x37) {
747
+ function isSingleFullMemberTeam(_x40) {
706
748
  return _isSingleFullMemberTeam.apply(this, arguments);
707
749
  }
708
750
  return isSingleFullMemberTeam;
@@ -710,46 +752,49 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
710
752
  }, {
711
753
  key: "createTeam",
712
754
  value: function () {
713
- var _createTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(displayName, originQuery, members) {
755
+ var _createTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(displayName, originQuery, members) {
714
756
  var membershipSettings,
757
+ typeId,
715
758
  organizationId,
716
759
  err,
717
760
  url,
718
761
  legionTeam,
719
- _args23 = arguments;
720
- return _regeneratorRuntime.wrap(function _callee23$(_context23) {
721
- while (1) switch (_context23.prev = _context23.next) {
762
+ _args25 = arguments;
763
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
764
+ while (1) switch (_context25.prev = _context25.next) {
722
765
  case 0:
723
- membershipSettings = _args23.length > 3 && _args23[3] !== undefined ? _args23[3] : 'OPEN';
766
+ membershipSettings = _args25.length > 3 && _args25[3] !== undefined ? _args25[3] : 'OPEN';
767
+ typeId = _args25.length > 4 ? _args25[4] : undefined;
724
768
  organizationId = this.getContext().orgId;
725
769
  if (organizationId) {
726
- _context23.next = 6;
770
+ _context25.next = 7;
727
771
  break;
728
772
  }
729
773
  err = new Error('Organization ID is required');
730
774
  this.logException(err, 'createTeam');
731
775
  throw err;
732
- case 6:
776
+ case 7:
733
777
  url = "".concat(v4UrlPath, "?").concat(this.constructProductOriginParams(originQuery));
734
- _context23.next = 9;
778
+ _context25.next = 10;
735
779
  return this.postResource(url, {
736
780
  displayName: displayName,
737
781
  description: '',
738
782
  membershipSettings: membershipSettings,
739
783
  siteId: this.getCloudId(),
740
784
  organizationId: organizationId,
741
- members: _toConsumableArray(new Set(members))
785
+ members: _toConsumableArray(new Set(members)),
786
+ typeId: typeId
742
787
  });
743
- case 9:
744
- legionTeam = _context23.sent;
745
- return _context23.abrupt("return", this.mapTeamCreateResponseV4ToTeam(legionTeam));
746
- case 11:
788
+ case 10:
789
+ legionTeam = _context25.sent;
790
+ return _context25.abrupt("return", this.mapTeamCreateResponseV4ToTeam(legionTeam));
791
+ case 12:
747
792
  case "end":
748
- return _context23.stop();
793
+ return _context25.stop();
749
794
  }
750
- }, _callee23, this);
795
+ }, _callee25, this);
751
796
  }));
752
- function createTeam(_x38, _x39, _x40) {
797
+ function createTeam(_x41, _x42, _x43) {
753
798
  return _createTeam.apply(this, arguments);
754
799
  }
755
800
  return createTeam;
@@ -757,15 +802,15 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
757
802
  }, {
758
803
  key: "createExternalTeam",
759
804
  value: function () {
760
- var _createExternalTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(description, externalReference, teamName, siteId) {
805
+ var _createExternalTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(description, externalReference, teamName, siteId) {
761
806
  var organizationId, cloudId, err, url, legionExternalTeam;
762
- return _regeneratorRuntime.wrap(function _callee24$(_context24) {
763
- while (1) switch (_context24.prev = _context24.next) {
807
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
808
+ while (1) switch (_context26.prev = _context26.next) {
764
809
  case 0:
765
810
  organizationId = this.getContext().orgId;
766
811
  cloudId = this.getContext().cloudId;
767
812
  if (organizationId) {
768
- _context24.next = 6;
813
+ _context26.next = 6;
769
814
  break;
770
815
  }
771
816
  err = new Error('Organization ID is required');
@@ -773,7 +818,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
773
818
  throw err;
774
819
  case 6:
775
820
  url = "".concat(v4UrlPath, "/external?origin.cloudId=").concat(encodeURIComponent(this.getCloudId(siteId || cloudId)));
776
- _context24.next = 9;
821
+ _context26.next = 9;
777
822
  return this.postResource(url, {
778
823
  description: description,
779
824
  externalReference: externalReference,
@@ -782,15 +827,15 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
782
827
  displayName: teamName
783
828
  });
784
829
  case 9:
785
- legionExternalTeam = _context24.sent;
786
- return _context24.abrupt("return", this.mapTeamCreateResponseV4ToTeam(legionExternalTeam));
830
+ legionExternalTeam = _context26.sent;
831
+ return _context26.abrupt("return", this.mapTeamCreateResponseV4ToTeam(legionExternalTeam));
787
832
  case 11:
788
833
  case "end":
789
- return _context24.stop();
834
+ return _context26.stop();
790
835
  }
791
- }, _callee24, this);
836
+ }, _callee26, this);
792
837
  }));
793
- function createExternalTeam(_x41, _x42, _x43, _x44) {
838
+ function createExternalTeam(_x44, _x45, _x46, _x47) {
794
839
  return _createExternalTeam.apply(this, arguments);
795
840
  }
796
841
  return createExternalTeam;
@@ -798,23 +843,23 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
798
843
  }, {
799
844
  key: "getTeamAndGroupDiff",
800
845
  value: function () {
801
- var _getTeamAndGroupDiff = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(teamId, externalReference) {
846
+ var _getTeamAndGroupDiff = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(teamId, externalReference) {
802
847
  var siteId;
803
- return _regeneratorRuntime.wrap(function _callee25$(_context25) {
804
- while (1) switch (_context25.prev = _context25.next) {
848
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
849
+ while (1) switch (_context27.prev = _context27.next) {
805
850
  case 0:
806
851
  siteId = this.getCloudId();
807
- return _context25.abrupt("return", this.postResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "/external/diff"), {
852
+ return _context27.abrupt("return", this.postResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "/external/diff"), {
808
853
  siteId: siteId,
809
854
  externalReference: externalReference
810
855
  }));
811
856
  case 2:
812
857
  case "end":
813
- return _context25.stop();
858
+ return _context27.stop();
814
859
  }
815
- }, _callee25, this);
860
+ }, _callee27, this);
816
861
  }));
817
- function getTeamAndGroupDiff(_x45, _x46) {
862
+ function getTeamAndGroupDiff(_x48, _x49) {
818
863
  return _getTeamAndGroupDiff.apply(this, arguments);
819
864
  }
820
865
  return getTeamAndGroupDiff;
@@ -822,23 +867,23 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
822
867
  }, {
823
868
  key: "linkExistingTeamToGroup",
824
869
  value: function () {
825
- var _linkExistingTeamToGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(teamId, externalReference) {
870
+ var _linkExistingTeamToGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(teamId, externalReference) {
826
871
  var siteId;
827
- return _regeneratorRuntime.wrap(function _callee26$(_context26) {
828
- while (1) switch (_context26.prev = _context26.next) {
872
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
873
+ while (1) switch (_context28.prev = _context28.next) {
829
874
  case 0:
830
875
  siteId = this.getCloudId();
831
- return _context26.abrupt("return", this.postResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "/external/link"), {
876
+ return _context28.abrupt("return", this.postResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "/external/link"), {
832
877
  externalReference: externalReference,
833
878
  siteId: siteId
834
879
  }));
835
880
  case 2:
836
881
  case "end":
837
- return _context26.stop();
882
+ return _context28.stop();
838
883
  }
839
- }, _callee26, this);
884
+ }, _callee28, this);
840
885
  }));
841
- function linkExistingTeamToGroup(_x47, _x48) {
886
+ function linkExistingTeamToGroup(_x50, _x51) {
842
887
  return _linkExistingTeamToGroup.apply(this, arguments);
843
888
  }
844
889
  return linkExistingTeamToGroup;
@@ -846,11 +891,11 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
846
891
  }, {
847
892
  key: "getWriteMediaToken",
848
893
  value: function () {
849
- var _getWriteMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
850
- return _regeneratorRuntime.wrap(function _callee27$(_context27) {
851
- while (1) switch (_context27.prev = _context27.next) {
894
+ var _getWriteMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
895
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
896
+ while (1) switch (_context29.prev = _context29.next) {
852
897
  case 0:
853
- return _context27.abrupt("return", this.getResource('/v4/teams/header-image/media-upload').then(function (response) {
898
+ return _context29.abrupt("return", this.getResource('/v4/teams/header-image/media-upload').then(function (response) {
854
899
  var _response$baseUrl;
855
900
  return _objectSpread(_objectSpread({}, response), {}, {
856
901
  baseUrl: (_response$baseUrl = response.baseUrl) !== null && _response$baseUrl !== void 0 && _response$baseUrl.endsWith('/') ? response.baseUrl.slice(0, -1) : response.baseUrl
@@ -858,9 +903,9 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
858
903
  }));
859
904
  case 1:
860
905
  case "end":
861
- return _context27.stop();
906
+ return _context29.stop();
862
907
  }
863
- }, _callee27, this);
908
+ }, _callee29, this);
864
909
  }));
865
910
  function getWriteMediaToken() {
866
911
  return _getWriteMediaToken.apply(this, arguments);
@@ -870,25 +915,25 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
870
915
  }, {
871
916
  key: "getSoftDeletedTeamById",
872
917
  value: function () {
873
- var _getSoftDeletedTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(teamId) {
918
+ var _getSoftDeletedTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(teamId) {
874
919
  var orgId, siteId;
875
- return _regeneratorRuntime.wrap(function _callee28$(_context28) {
876
- while (1) switch (_context28.prev = _context28.next) {
920
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
921
+ while (1) switch (_context30.prev = _context30.next) {
877
922
  case 0:
878
923
  orgId = this.getOrgId();
879
924
  siteId = this.getCloudId();
880
- return _context28.abrupt("return", this.getResource("".concat(v4UrlPath, "/org/").concat(orgId, "/soft-deleted/").concat(this.trimTeamARI(teamId), "?siteId=").concat(siteId)).then(function (response) {
925
+ return _context30.abrupt("return", this.getResource("".concat(v4UrlPath, "/org/").concat(orgId, "/soft-deleted/").concat(this.trimTeamARI(teamId), "?siteId=").concat(siteId)).then(function (response) {
881
926
  return _objectSpread(_objectSpread({}, response.teamResponse), {}, {
882
927
  id: teamId
883
928
  });
884
929
  }));
885
930
  case 3:
886
931
  case "end":
887
- return _context28.stop();
932
+ return _context30.stop();
888
933
  }
889
- }, _callee28, this);
934
+ }, _callee30, this);
890
935
  }));
891
- function getSoftDeletedTeamById(_x49) {
936
+ function getSoftDeletedTeamById(_x52) {
892
937
  return _getSoftDeletedTeamById.apply(this, arguments);
893
938
  }
894
939
  return getSoftDeletedTeamById;
@@ -899,13 +944,13 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
899
944
  }, {
900
945
  key: "getUserInSiteUserBase",
901
946
  value: (function () {
902
- var _getUserInSiteUserBase = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(userId) {
947
+ var _getUserInSiteUserBase = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(userId) {
903
948
  var siteId;
904
- return _regeneratorRuntime.wrap(function _callee29$(_context29) {
905
- while (1) switch (_context29.prev = _context29.next) {
949
+ return _regeneratorRuntime.wrap(function _callee31$(_context31) {
950
+ while (1) switch (_context31.prev = _context31.next) {
906
951
  case 0:
907
952
  siteId = this.getCloudId();
908
- return _context29.abrupt("return", this.getResource("/teams/site/".concat(siteId, "/users/").concat(userId, "/exists"), {
953
+ return _context31.abrupt("return", this.getResource("/teams/site/".concat(siteId, "/users/").concat(userId, "/exists"), {
909
954
  headers: {
910
955
  Accept: 'application/json',
911
956
  'X-header-client-id': 'ptc-fe'
@@ -913,11 +958,11 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
913
958
  }));
914
959
  case 2:
915
960
  case "end":
916
- return _context29.stop();
961
+ return _context31.stop();
917
962
  }
918
- }, _callee29, this);
963
+ }, _callee31, this);
919
964
  }));
920
- function getUserInSiteUserBase(_x50) {
965
+ function getUserInSiteUserBase(_x53) {
921
966
  return _getUserInSiteUserBase.apply(this, arguments);
922
967
  }
923
968
  return getUserInSiteUserBase;
@@ -925,22 +970,22 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
925
970
  }, {
926
971
  key: "retrieveBrowseUserPermission",
927
972
  value: function () {
928
- var _retrieveBrowseUserPermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(product) {
929
- return _regeneratorRuntime.wrap(function _callee30$(_context30) {
930
- while (1) switch (_context30.prev = _context30.next) {
973
+ var _retrieveBrowseUserPermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(product) {
974
+ return _regeneratorRuntime.wrap(function _callee32$(_context32) {
975
+ while (1) switch (_context32.prev = _context32.next) {
931
976
  case 0:
932
- return _context30.abrupt("return", this.getResourceCached("/teams/site/".concat(this.getCloudId(), "/canSearchUsers?product=").concat(product), undefined,
977
+ return _context32.abrupt("return", this.getResourceCached("/teams/site/".concat(this.getCloudId(), "/canSearchUsers?product=").concat(product), undefined,
933
978
  // 2 minute expiration, resolves duplicate calls in initial load
934
979
  {
935
980
  expiration: 1000 * 60 * 2
936
981
  }));
937
982
  case 1:
938
983
  case "end":
939
- return _context30.stop();
984
+ return _context32.stop();
940
985
  }
941
- }, _callee30, this);
986
+ }, _callee32, this);
942
987
  }));
943
- function retrieveBrowseUserPermission(_x51) {
988
+ function retrieveBrowseUserPermission(_x54) {
944
989
  return _retrieveBrowseUserPermission.apply(this, arguments);
945
990
  }
946
991
  return retrieveBrowseUserPermission;
@@ -948,27 +993,27 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
948
993
  }, {
949
994
  key: "getPermissions",
950
995
  value: function () {
951
- var _getPermissions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
996
+ var _getPermissions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
952
997
  var orgId, siteId, err;
953
- return _regeneratorRuntime.wrap(function _callee31$(_context31) {
954
- while (1) switch (_context31.prev = _context31.next) {
998
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
999
+ while (1) switch (_context33.prev = _context33.next) {
955
1000
  case 0:
956
1001
  orgId = this.getContext().orgId;
957
1002
  siteId = this.getCloudId();
958
1003
  if (orgId) {
959
- _context31.next = 6;
1004
+ _context33.next = 6;
960
1005
  break;
961
1006
  }
962
1007
  err = new Error('Organization ID is required');
963
1008
  this.logException(err, 'getPermissions');
964
1009
  throw err;
965
1010
  case 6:
966
- return _context31.abrupt("return", this.getResourceCached("".concat(v4UrlPath, "/permission/self/organization/").concat(orgId, "?siteId=").concat(siteId)));
1011
+ return _context33.abrupt("return", this.getResourceCached("".concat(v4UrlPath, "/permission/self/organization/").concat(orgId, "?siteId=").concat(siteId)));
967
1012
  case 7:
968
1013
  case "end":
969
- return _context31.stop();
1014
+ return _context33.stop();
970
1015
  }
971
- }, _callee31, this);
1016
+ }, _callee33, this);
972
1017
  }));
973
1018
  function getPermissions() {
974
1019
  return _getPermissions.apply(this, arguments);
@@ -978,36 +1023,36 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
978
1023
  }, {
979
1024
  key: "getLinkedTeamsBulk",
980
1025
  value: function () {
981
- var _getLinkedTeamsBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(groupIds) {
1026
+ var _getLinkedTeamsBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(groupIds) {
982
1027
  var organizationId, err, legionExternalTeam;
983
- return _regeneratorRuntime.wrap(function _callee32$(_context32) {
984
- while (1) switch (_context32.prev = _context32.next) {
1028
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
1029
+ while (1) switch (_context34.prev = _context34.next) {
985
1030
  case 0:
986
1031
  organizationId = this.getContext().orgId;
987
1032
  if (organizationId) {
988
- _context32.next = 5;
1033
+ _context34.next = 5;
989
1034
  break;
990
1035
  }
991
1036
  err = new Error('Organization ID is required');
992
1037
  this.logException(err, 'getLinkedTeamsBulk');
993
1038
  throw err;
994
1039
  case 5:
995
- _context32.next = 7;
1040
+ _context34.next = 7;
996
1041
  return this.postResource("".concat(v4UrlPath, "/external/bulk"), {
997
1042
  organizationId: organizationId,
998
1043
  source: 'ATLASSIAN_GROUP',
999
1044
  externalIds: groupIds
1000
1045
  });
1001
1046
  case 7:
1002
- legionExternalTeam = _context32.sent;
1003
- return _context32.abrupt("return", legionExternalTeam);
1047
+ legionExternalTeam = _context34.sent;
1048
+ return _context34.abrupt("return", legionExternalTeam);
1004
1049
  case 9:
1005
1050
  case "end":
1006
- return _context32.stop();
1051
+ return _context34.stop();
1007
1052
  }
1008
- }, _callee32, this);
1053
+ }, _callee34, this);
1009
1054
  }));
1010
- function getLinkedTeamsBulk(_x52) {
1055
+ function getLinkedTeamsBulk(_x55) {
1011
1056
  return _getLinkedTeamsBulk.apply(this, arguments);
1012
1057
  }
1013
1058
  return getLinkedTeamsBulk;
@@ -1015,32 +1060,32 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1015
1060
  }, {
1016
1061
  key: "getTeamProfileDetails",
1017
1062
  value: function () {
1018
- var _getTeamProfileDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(teamId, siteId) {
1063
+ var _getTeamProfileDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(teamId, siteId) {
1019
1064
  var finalSiteId, err, linkedTeamsProfileDetails;
1020
- return _regeneratorRuntime.wrap(function _callee33$(_context33) {
1021
- while (1) switch (_context33.prev = _context33.next) {
1065
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
1066
+ while (1) switch (_context35.prev = _context35.next) {
1022
1067
  case 0:
1023
1068
  finalSiteId = siteId || this.getCloudId();
1024
1069
  if (finalSiteId) {
1025
- _context33.next = 5;
1070
+ _context35.next = 5;
1026
1071
  break;
1027
1072
  }
1028
1073
  err = new Error('Site ID is required');
1029
1074
  this.logException(err, 'getTeamProfileDetails');
1030
1075
  throw err;
1031
1076
  case 5:
1032
- _context33.next = 7;
1077
+ _context35.next = 7;
1033
1078
  return this.getResource("".concat(v4UrlPath, "/").concat(teamId, "/profile?siteId=").concat(finalSiteId));
1034
1079
  case 7:
1035
- linkedTeamsProfileDetails = _context33.sent;
1036
- return _context33.abrupt("return", linkedTeamsProfileDetails);
1080
+ linkedTeamsProfileDetails = _context35.sent;
1081
+ return _context35.abrupt("return", linkedTeamsProfileDetails);
1037
1082
  case 9:
1038
1083
  case "end":
1039
- return _context33.stop();
1084
+ return _context35.stop();
1040
1085
  }
1041
- }, _callee33, this);
1086
+ }, _callee35, this);
1042
1087
  }));
1043
- function getTeamProfileDetails(_x53, _x54) {
1088
+ function getTeamProfileDetails(_x56, _x57) {
1044
1089
  return _getTeamProfileDetails.apply(this, arguments);
1045
1090
  }
1046
1091
  return getTeamProfileDetails;
@@ -1048,30 +1093,30 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1048
1093
  }, {
1049
1094
  key: "getOrgScope",
1050
1095
  value: function () {
1051
- var _getOrgScope = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
1096
+ var _getOrgScope = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36() {
1052
1097
  var orgId, err, orgScope;
1053
- return _regeneratorRuntime.wrap(function _callee34$(_context34) {
1054
- while (1) switch (_context34.prev = _context34.next) {
1098
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
1099
+ while (1) switch (_context36.prev = _context36.next) {
1055
1100
  case 0:
1056
1101
  orgId = this.getContext().orgId;
1057
1102
  if (orgId) {
1058
- _context34.next = 5;
1103
+ _context36.next = 5;
1059
1104
  break;
1060
1105
  }
1061
1106
  err = new Error('Organization ID is required');
1062
1107
  this.logException(err, 'getOrgScope');
1063
1108
  throw err;
1064
1109
  case 5:
1065
- _context34.next = 7;
1110
+ _context36.next = 7;
1066
1111
  return this.getResourceCached("".concat(v4UrlPath, "/org/").concat(orgId, "/scope"));
1067
1112
  case 7:
1068
- orgScope = _context34.sent;
1069
- return _context34.abrupt("return", orgScope);
1113
+ orgScope = _context36.sent;
1114
+ return _context36.abrupt("return", orgScope);
1070
1115
  case 9:
1071
1116
  case "end":
1072
- return _context34.stop();
1117
+ return _context36.stop();
1073
1118
  }
1074
- }, _callee34, this);
1119
+ }, _callee36, this);
1075
1120
  }));
1076
1121
  function getOrgScope() {
1077
1122
  return _getOrgScope.apply(this, arguments);
@@ -1081,26 +1126,26 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1081
1126
  }, {
1082
1127
  key: "restoreTeamToSyncedGroup",
1083
1128
  value: function () {
1084
- var _restoreTeamToSyncedGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(teamId, externalReference) {
1129
+ var _restoreTeamToSyncedGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(teamId, externalReference) {
1085
1130
  var siteId;
1086
- return _regeneratorRuntime.wrap(function _callee35$(_context35) {
1087
- while (1) switch (_context35.prev = _context35.next) {
1131
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
1132
+ while (1) switch (_context37.prev = _context37.next) {
1088
1133
  case 0:
1089
1134
  siteId = this.getCloudId();
1090
- _context35.next = 3;
1135
+ _context37.next = 3;
1091
1136
  return this.postResource("".concat(v4UrlPath, "/").concat(teamId, "/external/restore"), {
1092
1137
  externalReference: externalReference,
1093
1138
  siteId: siteId
1094
1139
  });
1095
1140
  case 3:
1096
- return _context35.abrupt("return", _context35.sent);
1141
+ return _context37.abrupt("return", _context37.sent);
1097
1142
  case 4:
1098
1143
  case "end":
1099
- return _context35.stop();
1144
+ return _context37.stop();
1100
1145
  }
1101
- }, _callee35, this);
1146
+ }, _callee37, this);
1102
1147
  }));
1103
- function restoreTeamToSyncedGroup(_x55, _x56) {
1148
+ function restoreTeamToSyncedGroup(_x58, _x59) {
1104
1149
  return _restoreTeamToSyncedGroup.apply(this, arguments);
1105
1150
  }
1106
1151
  return restoreTeamToSyncedGroup;
@@ -1108,18 +1153,18 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1108
1153
  }, {
1109
1154
  key: "createTeamContainers",
1110
1155
  value: function () {
1111
- var _createTeamContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(payload) {
1112
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
1113
- while (1) switch (_context36.prev = _context36.next) {
1156
+ var _createTeamContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(payload) {
1157
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
1158
+ while (1) switch (_context38.prev = _context38.next) {
1114
1159
  case 0:
1115
- return _context36.abrupt("return", this.postResource("".concat(v4UrlPath, "/containers"), _objectSpread({}, payload)));
1160
+ return _context38.abrupt("return", this.postResource("".concat(v4UrlPath, "/containers"), _objectSpread({}, payload)));
1116
1161
  case 1:
1117
1162
  case "end":
1118
- return _context36.stop();
1163
+ return _context38.stop();
1119
1164
  }
1120
- }, _callee36, this);
1165
+ }, _callee38, this);
1121
1166
  }));
1122
- function createTeamContainers(_x57) {
1167
+ function createTeamContainers(_x60) {
1123
1168
  return _createTeamContainers.apply(this, arguments);
1124
1169
  }
1125
1170
  return createTeamContainers;
@@ -1127,23 +1172,23 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1127
1172
  }, {
1128
1173
  key: "getTeamEnabledSites",
1129
1174
  value: function () {
1130
- var _getTeamEnabledSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(teamId) {
1175
+ var _getTeamEnabledSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(teamId) {
1131
1176
  var teamEnabledSites;
1132
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
1133
- while (1) switch (_context37.prev = _context37.next) {
1177
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
1178
+ while (1) switch (_context39.prev = _context39.next) {
1134
1179
  case 0:
1135
- _context37.next = 2;
1180
+ _context39.next = 2;
1136
1181
  return this.getResourceCached("".concat(v4UrlPath, "/migrations/scope/").concat(teamId));
1137
1182
  case 2:
1138
- teamEnabledSites = _context37.sent;
1139
- return _context37.abrupt("return", teamEnabledSites);
1183
+ teamEnabledSites = _context39.sent;
1184
+ return _context39.abrupt("return", teamEnabledSites);
1140
1185
  case 4:
1141
1186
  case "end":
1142
- return _context37.stop();
1187
+ return _context39.stop();
1143
1188
  }
1144
- }, _callee37, this);
1189
+ }, _callee39, this);
1145
1190
  }));
1146
- function getTeamEnabledSites(_x58) {
1191
+ function getTeamEnabledSites(_x61) {
1147
1192
  return _getTeamEnabledSites.apply(this, arguments);
1148
1193
  }
1149
1194
  return getTeamEnabledSites;
@@ -1151,26 +1196,26 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1151
1196
  }, {
1152
1197
  key: "assignTeamsToSites",
1153
1198
  value: function () {
1154
- var _assignTeamsToSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(migrations) {
1199
+ var _assignTeamsToSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(migrations) {
1155
1200
  var assignTeamsToSitesResponse;
1156
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
1157
- while (1) switch (_context38.prev = _context38.next) {
1201
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
1202
+ while (1) switch (_context40.prev = _context40.next) {
1158
1203
  case 0:
1159
- _context38.next = 2;
1204
+ _context40.next = 2;
1160
1205
  return this.postResource("".concat(v4UrlPath, "/migrations/scope"), {
1161
1206
  originOrgId: this.getContext().orgId,
1162
1207
  migrations: migrations
1163
1208
  });
1164
1209
  case 2:
1165
- assignTeamsToSitesResponse = _context38.sent;
1166
- return _context38.abrupt("return", assignTeamsToSitesResponse);
1210
+ assignTeamsToSitesResponse = _context40.sent;
1211
+ return _context40.abrupt("return", assignTeamsToSitesResponse);
1167
1212
  case 4:
1168
1213
  case "end":
1169
- return _context38.stop();
1214
+ return _context40.stop();
1170
1215
  }
1171
- }, _callee38, this);
1216
+ }, _callee40, this);
1172
1217
  }));
1173
- function assignTeamsToSites(_x59) {
1218
+ function assignTeamsToSites(_x62) {
1174
1219
  return _assignTeamsToSites.apply(this, arguments);
1175
1220
  }
1176
1221
  return assignTeamsToSites;
@@ -1178,21 +1223,21 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1178
1223
  }, {
1179
1224
  key: "getTeamsToBeClonedToJsmSites",
1180
1225
  value: function () {
1181
- var _getTeamsToBeClonedToJsmSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(teamsToSiteScope) {
1182
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
1183
- while (1) switch (_context39.prev = _context39.next) {
1226
+ var _getTeamsToBeClonedToJsmSites = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(teamsToSiteScope) {
1227
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
1228
+ while (1) switch (_context41.prev = _context41.next) {
1184
1229
  case 0:
1185
- return _context39.abrupt("return", this.postResource("".concat(v4UrlPath, "/migrations/scope/review"), {
1230
+ return _context41.abrupt("return", this.postResource("".concat(v4UrlPath, "/migrations/scope/review"), {
1186
1231
  orgId: this.getContext().orgId,
1187
1232
  teamsToSiteScope: teamsToSiteScope
1188
1233
  }));
1189
1234
  case 1:
1190
1235
  case "end":
1191
- return _context39.stop();
1236
+ return _context41.stop();
1192
1237
  }
1193
- }, _callee39, this);
1238
+ }, _callee41, this);
1194
1239
  }));
1195
- function getTeamsToBeClonedToJsmSites(_x60) {
1240
+ function getTeamsToBeClonedToJsmSites(_x63) {
1196
1241
  return _getTeamsToBeClonedToJsmSites.apply(this, arguments);
1197
1242
  }
1198
1243
  return getTeamsToBeClonedToJsmSites;
@@ -1200,21 +1245,21 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1200
1245
  }, {
1201
1246
  key: "setTeamSiteAssignmentPermission",
1202
1247
  value: function () {
1203
- var _setTeamSiteAssignmentPermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(orgId, alignmentPermission) {
1204
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
1205
- while (1) switch (_context40.prev = _context40.next) {
1248
+ var _setTeamSiteAssignmentPermission = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(orgId, alignmentPermission) {
1249
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
1250
+ while (1) switch (_context42.prev = _context42.next) {
1206
1251
  case 0:
1207
- return _context40.abrupt("return", this.postResource("".concat(v4UrlPath, "/migrations/scope/permissions"), {
1252
+ return _context42.abrupt("return", this.postResource("".concat(v4UrlPath, "/migrations/scope/permissions"), {
1208
1253
  orgId: orgId,
1209
1254
  alignmentPermission: alignmentPermission
1210
1255
  }));
1211
1256
  case 1:
1212
1257
  case "end":
1213
- return _context40.stop();
1258
+ return _context42.stop();
1214
1259
  }
1215
- }, _callee40, this);
1260
+ }, _callee42, this);
1216
1261
  }));
1217
- function setTeamSiteAssignmentPermission(_x61, _x62) {
1262
+ function setTeamSiteAssignmentPermission(_x64, _x65) {
1218
1263
  return _setTeamSiteAssignmentPermission.apply(this, arguments);
1219
1264
  }
1220
1265
  return setTeamSiteAssignmentPermission;
@@ -1222,12 +1267,12 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1222
1267
  }, {
1223
1268
  key: "getAssignedTeams",
1224
1269
  value: function () {
1225
- var _getAssignedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(orgId, count, cursor, displayNameContains) {
1270
+ var _getAssignedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(orgId, count, cursor, displayNameContains) {
1226
1271
  var assignedTeamsResponse;
1227
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
1228
- while (1) switch (_context41.prev = _context41.next) {
1272
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
1273
+ while (1) switch (_context43.prev = _context43.next) {
1229
1274
  case 0:
1230
- _context41.next = 2;
1275
+ _context43.next = 2;
1231
1276
  return this.postResource("".concat(v4UrlPath, "/migrations/scope/aligned/search"), {
1232
1277
  orgId: orgId,
1233
1278
  count: count,
@@ -1235,15 +1280,15 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1235
1280
  displayNameContains: displayNameContains
1236
1281
  });
1237
1282
  case 2:
1238
- assignedTeamsResponse = _context41.sent;
1239
- return _context41.abrupt("return", assignedTeamsResponse);
1283
+ assignedTeamsResponse = _context43.sent;
1284
+ return _context43.abrupt("return", assignedTeamsResponse);
1240
1285
  case 4:
1241
1286
  case "end":
1242
- return _context41.stop();
1287
+ return _context43.stop();
1243
1288
  }
1244
- }, _callee41, this);
1289
+ }, _callee43, this);
1245
1290
  }));
1246
- function getAssignedTeams(_x63, _x64, _x65, _x66) {
1291
+ function getAssignedTeams(_x66, _x67, _x68, _x69) {
1247
1292
  return _getAssignedTeams.apply(this, arguments);
1248
1293
  }
1249
1294
  return getAssignedTeams;
@@ -1251,12 +1296,12 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1251
1296
  }, {
1252
1297
  key: "getUnassignedTeams",
1253
1298
  value: function () {
1254
- var _getUnassignedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(orgId, count, cursor, query) {
1299
+ var _getUnassignedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(orgId, count, cursor, query) {
1255
1300
  var unassignedTeamsResponse;
1256
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
1257
- while (1) switch (_context42.prev = _context42.next) {
1301
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
1302
+ while (1) switch (_context44.prev = _context44.next) {
1258
1303
  case 0:
1259
- _context42.next = 2;
1304
+ _context44.next = 2;
1260
1305
  return this.postResource("".concat(v4UrlPath, "/migrations/scope/unaligned/search"), {
1261
1306
  orgId: orgId,
1262
1307
  count: count,
@@ -1264,15 +1309,15 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1264
1309
  query: query
1265
1310
  });
1266
1311
  case 2:
1267
- unassignedTeamsResponse = _context42.sent;
1268
- return _context42.abrupt("return", unassignedTeamsResponse);
1312
+ unassignedTeamsResponse = _context44.sent;
1313
+ return _context44.abrupt("return", unassignedTeamsResponse);
1269
1314
  case 4:
1270
1315
  case "end":
1271
- return _context42.stop();
1316
+ return _context44.stop();
1272
1317
  }
1273
- }, _callee42, this);
1318
+ }, _callee44, this);
1274
1319
  }));
1275
- function getUnassignedTeams(_x67, _x68, _x69, _x70) {
1320
+ function getUnassignedTeams(_x70, _x71, _x72, _x73) {
1276
1321
  return _getUnassignedTeams.apply(this, arguments);
1277
1322
  }
1278
1323
  return getUnassignedTeams;
@@ -1280,26 +1325,26 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1280
1325
  }, {
1281
1326
  key: "getTeamSiteAssignmentOrgDetails",
1282
1327
  value: function () {
1283
- var _getTeamSiteAssignmentOrgDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
1328
+ var _getTeamSiteAssignmentOrgDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
1284
1329
  var orgId, err;
1285
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
1286
- while (1) switch (_context43.prev = _context43.next) {
1330
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
1331
+ while (1) switch (_context45.prev = _context45.next) {
1287
1332
  case 0:
1288
1333
  orgId = this.getContext().orgId;
1289
1334
  if (orgId) {
1290
- _context43.next = 5;
1335
+ _context45.next = 5;
1291
1336
  break;
1292
1337
  }
1293
1338
  err = new Error('Organization ID is required');
1294
1339
  this.logException(err, 'getTeamSiteAssignmentOrgDetails');
1295
1340
  throw err;
1296
1341
  case 5:
1297
- return _context43.abrupt("return", this.getResource("".concat(v4UrlPath, "/migrations/scope/details/").concat(orgId)));
1342
+ return _context45.abrupt("return", this.getResource("".concat(v4UrlPath, "/migrations/scope/details/").concat(orgId)));
1298
1343
  case 6:
1299
1344
  case "end":
1300
- return _context43.stop();
1345
+ return _context45.stop();
1301
1346
  }
1302
- }, _callee43, this);
1347
+ }, _callee45, this);
1303
1348
  }));
1304
1349
  function getTeamSiteAssignmentOrgDetails() {
1305
1350
  return _getTeamSiteAssignmentOrgDetails.apply(this, arguments);
@@ -1453,27 +1498,27 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1453
1498
  }, {
1454
1499
  key: "getTeamStatesInBulk",
1455
1500
  value: function () {
1456
- var _getTeamStatesInBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(orgId, teamIds) {
1457
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
1458
- while (1) switch (_context44.prev = _context44.next) {
1501
+ var _getTeamStatesInBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(orgId, teamIds) {
1502
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
1503
+ while (1) switch (_context46.prev = _context46.next) {
1459
1504
  case 0:
1460
- _context44.prev = 0;
1461
- return _context44.abrupt("return", this.postResource("".concat(v4UrlPath, "/adminhub/states/bulk"), {
1505
+ _context46.prev = 0;
1506
+ return _context46.abrupt("return", this.postResource("".concat(v4UrlPath, "/adminhub/states/bulk"), {
1462
1507
  orgId: orgId,
1463
1508
  teamIds: teamIds
1464
1509
  }));
1465
1510
  case 4:
1466
- _context44.prev = 4;
1467
- _context44.t0 = _context44["catch"](0);
1468
- this.logException(_context44.t0, 'getTeamStatesInBulk');
1469
- throw _context44.t0;
1511
+ _context46.prev = 4;
1512
+ _context46.t0 = _context46["catch"](0);
1513
+ this.logException(_context46.t0, 'getTeamStatesInBulk');
1514
+ throw _context46.t0;
1470
1515
  case 8:
1471
1516
  case "end":
1472
- return _context44.stop();
1517
+ return _context46.stop();
1473
1518
  }
1474
- }, _callee44, this, [[0, 4]]);
1519
+ }, _callee46, this, [[0, 4]]);
1475
1520
  }));
1476
- function getTeamStatesInBulk(_x71, _x72) {
1521
+ function getTeamStatesInBulk(_x74, _x75) {
1477
1522
  return _getTeamStatesInBulk.apply(this, arguments);
1478
1523
  }
1479
1524
  return getTeamStatesInBulk;