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