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