@atlaskit/teams-client 4.25.0 → 4.27.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 (35) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/utils/ufo/constants.js +1 -1
  3. package/dist/cjs/services/agg-client/utils/query-context-headers.js +19 -0
  4. package/dist/cjs/services/collaborationgraph-client/index.js +24 -0
  5. package/dist/cjs/services/graphql-client/main.js +34 -7
  6. package/dist/cjs/services/graphql-client/utils/index.js +5 -2
  7. package/dist/cjs/services/legion-client/index.js +45 -45
  8. package/dist/cjs/services/main.js +256 -222
  9. package/dist/es2019/common/utils/ufo/constants.js +1 -1
  10. package/dist/es2019/services/agg-client/utils/query-context-headers.js +14 -0
  11. package/dist/es2019/services/collaborationgraph-client/index.js +21 -0
  12. package/dist/es2019/services/graphql-client/main.js +26 -1
  13. package/dist/es2019/services/graphql-client/utils/index.js +2 -1
  14. package/dist/es2019/services/legion-client/index.js +2 -2
  15. package/dist/es2019/services/main.js +9 -2
  16. package/dist/esm/common/utils/ufo/constants.js +1 -1
  17. package/dist/esm/services/agg-client/utils/query-context-headers.js +14 -0
  18. package/dist/esm/services/collaborationgraph-client/index.js +24 -0
  19. package/dist/esm/services/graphql-client/main.js +34 -7
  20. package/dist/esm/services/graphql-client/utils/index.js +5 -2
  21. package/dist/esm/services/legion-client/index.js +45 -45
  22. package/dist/esm/services/main.js +256 -222
  23. package/dist/types/common/utils/ufo/constants.d.ts +2 -2
  24. package/dist/types/services/agg-client/utils/query-context-headers.d.ts +5 -0
  25. package/dist/types/services/collaborationgraph-client/index.d.ts +25 -0
  26. package/dist/types/services/graphql-client/main.d.ts +4 -0
  27. package/dist/types/services/graphql-client/types.d.ts +1 -0
  28. package/dist/types/services/main.d.ts +5 -1
  29. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +2 -1
  30. package/dist/types-ts4.5/services/agg-client/utils/query-context-headers.d.ts +5 -0
  31. package/dist/types-ts4.5/services/collaborationgraph-client/index.d.ts +25 -0
  32. package/dist/types-ts4.5/services/graphql-client/main.d.ts +4 -0
  33. package/dist/types-ts4.5/services/graphql-client/types.d.ts +1 -0
  34. package/dist/types-ts4.5/services/main.d.ts +5 -1
  35. package/package.json +4 -1
@@ -76,12 +76,12 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
76
76
  }, {
77
77
  key: "getTeamById",
78
78
  value: function () {
79
- var _getTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(teamId) {
79
+ var _getTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(teamId, cloudId) {
80
80
  var siteId, teamResponse;
81
81
  return _regeneratorRuntime.wrap(function _callee$(_context) {
82
82
  while (1) switch (_context.prev = _context.next) {
83
83
  case 0:
84
- siteId = this.getCloudId();
84
+ siteId = this.getCloudId(cloudId);
85
85
  _context.next = 3;
86
86
  return this.getResource("".concat(v4UrlPath, "/").concat(this.trimTeamARI(teamId), "?siteId=").concat(siteId));
87
87
  case 3:
@@ -93,7 +93,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
93
93
  }
94
94
  }, _callee, this);
95
95
  }));
96
- function getTeamById(_x) {
96
+ function getTeamById(_x, _x2) {
97
97
  return _getTeamById.apply(this, arguments);
98
98
  }
99
99
  return getTeamById;
@@ -152,7 +152,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
152
152
  }
153
153
  }, _callee2, this, [[0, 12]]);
154
154
  }));
155
- function getAllTeams(_x2) {
155
+ function getAllTeams(_x3) {
156
156
  return _getAllTeams.apply(this, arguments);
157
157
  }
158
158
  return getAllTeams;
@@ -176,7 +176,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
176
176
  }
177
177
  }, _callee3, this);
178
178
  }));
179
- function updateTeamById(_x3, _x4) {
179
+ function updateTeamById(_x4, _x5) {
180
180
  return _updateTeamById.apply(this, arguments);
181
181
  }
182
182
  return updateTeamById;
@@ -219,7 +219,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
219
219
  }
220
220
  }, _callee4, this);
221
221
  }));
222
- function inviteUsersToTeam(_x5, _x6, _x7) {
222
+ function inviteUsersToTeam(_x6, _x7, _x8) {
223
223
  return _inviteUsersToTeam.apply(this, arguments);
224
224
  }
225
225
  return inviteUsersToTeam;
@@ -242,7 +242,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
242
242
  }
243
243
  }, _callee5, this);
244
244
  }));
245
- function getMyTeamMembership(_x8) {
245
+ function getMyTeamMembership(_x9) {
246
246
  return _getMyTeamMembership.apply(this, arguments);
247
247
  }
248
248
  return getMyTeamMembership;
@@ -267,7 +267,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
267
267
  }
268
268
  }, _callee6, this);
269
269
  }));
270
- function getTeamLinksByTeamId(_x9) {
270
+ function getTeamLinksByTeamId(_x0) {
271
271
  return _getTeamLinksByTeamId.apply(this, arguments);
272
272
  }
273
273
  return getTeamLinksByTeamId;
@@ -300,7 +300,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
300
300
  }
301
301
  }, _callee7, this);
302
302
  }));
303
- function createTeamLink(_x0, _x1) {
303
+ function createTeamLink(_x1, _x10) {
304
304
  return _createTeamLink.apply(this, arguments);
305
305
  }
306
306
  return createTeamLink;
@@ -327,7 +327,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
327
327
  }
328
328
  }, _callee8, this);
329
329
  }));
330
- function updateTeamLink(_x10, _x11, _x12) {
330
+ function updateTeamLink(_x11, _x12, _x13) {
331
331
  return _updateTeamLink.apply(this, arguments);
332
332
  }
333
333
  return updateTeamLink;
@@ -346,7 +346,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
346
346
  }
347
347
  }, _callee9, this);
348
348
  }));
349
- function deleteTeamLink(_x13, _x14) {
349
+ function deleteTeamLink(_x14, _x15) {
350
350
  return _deleteTeamLink.apply(this, arguments);
351
351
  }
352
352
  return deleteTeamLink;
@@ -367,7 +367,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
367
367
  }
368
368
  }, _callee0, this);
369
369
  }));
370
- function reorderTeamLink(_x15, _x16, _x17) {
370
+ function reorderTeamLink(_x16, _x17, _x18) {
371
371
  return _reorderTeamLink.apply(this, arguments);
372
372
  }
373
373
  return reorderTeamLink;
@@ -419,7 +419,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
419
419
  }
420
420
  }, _callee10, this);
421
421
  }));
422
- function acceptTeamInvitation(_x18) {
422
+ function acceptTeamInvitation(_x19) {
423
423
  return _acceptTeamInvitation.apply(this, arguments);
424
424
  }
425
425
  return acceptTeamInvitation;
@@ -443,7 +443,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
443
443
  }
444
444
  }, _callee11, this);
445
445
  }));
446
- function declineTeamInvitation(_x19) {
446
+ function declineTeamInvitation(_x20) {
447
447
  return _declineTeamInvitation.apply(this, arguments);
448
448
  }
449
449
  return declineTeamInvitation;
@@ -466,7 +466,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
466
466
  }
467
467
  }, _callee12, this);
468
468
  }));
469
- function selfJoinTeam(_x20, _x21) {
469
+ function selfJoinTeam(_x21, _x22) {
470
470
  return _selfJoinTeam.apply(this, arguments);
471
471
  }
472
472
  return selfJoinTeam;
@@ -503,7 +503,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
503
503
  }
504
504
  }, _callee13, this, [[4, 9]]);
505
505
  }));
506
- function addAgentsToTeam(_x22, _x23) {
506
+ function addAgentsToTeam(_x23, _x24) {
507
507
  return _addAgentsToTeam.apply(this, arguments);
508
508
  }
509
509
  return addAgentsToTeam;
@@ -530,7 +530,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
530
530
  }
531
531
  }, _callee14, this, [[0, 5]]);
532
532
  }));
533
- function removeAgentTeamAssociation(_x24, _x25) {
533
+ function removeAgentTeamAssociation(_x25, _x26) {
534
534
  return _removeAgentTeamAssociation.apply(this, arguments);
535
535
  }
536
536
  return removeAgentTeamAssociation;
@@ -549,7 +549,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
549
549
  }
550
550
  }, _callee15, this);
551
551
  }));
552
- function cancelJoinRequest(_x26) {
552
+ function cancelJoinRequest(_x27) {
553
553
  return _cancelJoinRequest.apply(this, arguments);
554
554
  }
555
555
  return cancelJoinRequest;
@@ -568,7 +568,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
568
568
  }
569
569
  }, _callee16, this);
570
570
  }));
571
- function acceptJoinRequest(_x27, _x28) {
571
+ function acceptJoinRequest(_x28, _x29) {
572
572
  return _acceptJoinRequest.apply(this, arguments);
573
573
  }
574
574
  return acceptJoinRequest;
@@ -587,7 +587,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
587
587
  }
588
588
  }, _callee17, this);
589
589
  }));
590
- function declineJoinRequest(_x29, _x30) {
590
+ function declineJoinRequest(_x30, _x31) {
591
591
  return _declineJoinRequest.apply(this, arguments);
592
592
  }
593
593
  return declineJoinRequest;
@@ -610,7 +610,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
610
610
  }
611
611
  }, _callee18, this);
612
612
  }));
613
- function deleteTeamMembership(_x31, _x32) {
613
+ function deleteTeamMembership(_x32, _x33) {
614
614
  return _deleteTeamMembership.apply(this, arguments);
615
615
  }
616
616
  return deleteTeamMembership;
@@ -634,7 +634,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
634
634
  }
635
635
  }, _callee19, this);
636
636
  }));
637
- function revokeTeamInvite(_x33, _x34) {
637
+ function revokeTeamInvite(_x34, _x35) {
638
638
  return _revokeTeamInvite.apply(this, arguments);
639
639
  }
640
640
  return revokeTeamInvite;
@@ -653,7 +653,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
653
653
  }
654
654
  }, _callee20, this);
655
655
  }));
656
- function deleteTeam(_x35) {
656
+ function deleteTeam(_x36) {
657
657
  return _deleteTeam.apply(this, arguments);
658
658
  }
659
659
  return deleteTeam;
@@ -674,7 +674,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
674
674
  }
675
675
  }, _callee21, this);
676
676
  }));
677
- function archiveTeam(_x36) {
677
+ function archiveTeam(_x37) {
678
678
  return _archiveTeam.apply(this, arguments);
679
679
  }
680
680
  return archiveTeam;
@@ -695,7 +695,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
695
695
  }
696
696
  }, _callee22, this);
697
697
  }));
698
- function unArchiveTeam(_x37) {
698
+ function unArchiveTeam(_x38) {
699
699
  return _unArchiveTeam.apply(this, arguments);
700
700
  }
701
701
  return unArchiveTeam;
@@ -716,7 +716,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
716
716
  }
717
717
  }, _callee23, this);
718
718
  }));
719
- function unlinkTeamFromGroup(_x38, _x39) {
719
+ function unlinkTeamFromGroup(_x39, _x40) {
720
720
  return _unlinkTeamFromGroup.apply(this, arguments);
721
721
  }
722
722
  return unlinkTeamFromGroup;
@@ -744,7 +744,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
744
744
  }
745
745
  }, _callee24, this);
746
746
  }));
747
- function isSingleFullMemberTeam(_x40) {
747
+ function isSingleFullMemberTeam(_x41) {
748
748
  return _isSingleFullMemberTeam.apply(this, arguments);
749
749
  }
750
750
  return isSingleFullMemberTeam;
@@ -794,7 +794,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
794
794
  }
795
795
  }, _callee25, this);
796
796
  }));
797
- function createTeam(_x41, _x42, _x43) {
797
+ function createTeam(_x42, _x43, _x44) {
798
798
  return _createTeam.apply(this, arguments);
799
799
  }
800
800
  return createTeam;
@@ -835,7 +835,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
835
835
  }
836
836
  }, _callee26, this);
837
837
  }));
838
- function createExternalTeam(_x44, _x45, _x46, _x47) {
838
+ function createExternalTeam(_x45, _x46, _x47, _x48) {
839
839
  return _createExternalTeam.apply(this, arguments);
840
840
  }
841
841
  return createExternalTeam;
@@ -859,7 +859,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
859
859
  }
860
860
  }, _callee27, this);
861
861
  }));
862
- function getTeamAndGroupDiff(_x48, _x49) {
862
+ function getTeamAndGroupDiff(_x49, _x50) {
863
863
  return _getTeamAndGroupDiff.apply(this, arguments);
864
864
  }
865
865
  return getTeamAndGroupDiff;
@@ -883,7 +883,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
883
883
  }
884
884
  }, _callee28, this);
885
885
  }));
886
- function linkExistingTeamToGroup(_x50, _x51) {
886
+ function linkExistingTeamToGroup(_x51, _x52) {
887
887
  return _linkExistingTeamToGroup.apply(this, arguments);
888
888
  }
889
889
  return linkExistingTeamToGroup;
@@ -933,7 +933,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
933
933
  }
934
934
  }, _callee30, this);
935
935
  }));
936
- function getSoftDeletedTeamById(_x52) {
936
+ function getSoftDeletedTeamById(_x53) {
937
937
  return _getSoftDeletedTeamById.apply(this, arguments);
938
938
  }
939
939
  return getSoftDeletedTeamById;
@@ -962,7 +962,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
962
962
  }
963
963
  }, _callee31, this);
964
964
  }));
965
- function getUserInSiteUserBase(_x53) {
965
+ function getUserInSiteUserBase(_x54) {
966
966
  return _getUserInSiteUserBase.apply(this, arguments);
967
967
  }
968
968
  return getUserInSiteUserBase;
@@ -985,7 +985,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
985
985
  }
986
986
  }, _callee32, this);
987
987
  }));
988
- function retrieveBrowseUserPermission(_x54) {
988
+ function retrieveBrowseUserPermission(_x55) {
989
989
  return _retrieveBrowseUserPermission.apply(this, arguments);
990
990
  }
991
991
  return retrieveBrowseUserPermission;
@@ -1052,7 +1052,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1052
1052
  }
1053
1053
  }, _callee34, this);
1054
1054
  }));
1055
- function getLinkedTeamsBulk(_x55) {
1055
+ function getLinkedTeamsBulk(_x56) {
1056
1056
  return _getLinkedTeamsBulk.apply(this, arguments);
1057
1057
  }
1058
1058
  return getLinkedTeamsBulk;
@@ -1085,7 +1085,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1085
1085
  }
1086
1086
  }, _callee35, this);
1087
1087
  }));
1088
- function getTeamProfileDetails(_x56, _x57) {
1088
+ function getTeamProfileDetails(_x57, _x58) {
1089
1089
  return _getTeamProfileDetails.apply(this, arguments);
1090
1090
  }
1091
1091
  return getTeamProfileDetails;
@@ -1145,7 +1145,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1145
1145
  }
1146
1146
  }, _callee37, this);
1147
1147
  }));
1148
- function restoreTeamToSyncedGroup(_x58, _x59) {
1148
+ function restoreTeamToSyncedGroup(_x59, _x60) {
1149
1149
  return _restoreTeamToSyncedGroup.apply(this, arguments);
1150
1150
  }
1151
1151
  return restoreTeamToSyncedGroup;
@@ -1164,7 +1164,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1164
1164
  }
1165
1165
  }, _callee38, this);
1166
1166
  }));
1167
- function createTeamContainers(_x60) {
1167
+ function createTeamContainers(_x61) {
1168
1168
  return _createTeamContainers.apply(this, arguments);
1169
1169
  }
1170
1170
  return createTeamContainers;
@@ -1188,7 +1188,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1188
1188
  }
1189
1189
  }, _callee39, this);
1190
1190
  }));
1191
- function getTeamEnabledSites(_x61) {
1191
+ function getTeamEnabledSites(_x62) {
1192
1192
  return _getTeamEnabledSites.apply(this, arguments);
1193
1193
  }
1194
1194
  return getTeamEnabledSites;
@@ -1215,7 +1215,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1215
1215
  }
1216
1216
  }, _callee40, this);
1217
1217
  }));
1218
- function assignTeamsToSites(_x62) {
1218
+ function assignTeamsToSites(_x63) {
1219
1219
  return _assignTeamsToSites.apply(this, arguments);
1220
1220
  }
1221
1221
  return assignTeamsToSites;
@@ -1237,7 +1237,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1237
1237
  }
1238
1238
  }, _callee41, this);
1239
1239
  }));
1240
- function getTeamsToBeClonedToJsmSites(_x63) {
1240
+ function getTeamsToBeClonedToJsmSites(_x64) {
1241
1241
  return _getTeamsToBeClonedToJsmSites.apply(this, arguments);
1242
1242
  }
1243
1243
  return getTeamsToBeClonedToJsmSites;
@@ -1259,7 +1259,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1259
1259
  }
1260
1260
  }, _callee42, this);
1261
1261
  }));
1262
- function setTeamSiteAssignmentPermission(_x64, _x65) {
1262
+ function setTeamSiteAssignmentPermission(_x65, _x66) {
1263
1263
  return _setTeamSiteAssignmentPermission.apply(this, arguments);
1264
1264
  }
1265
1265
  return setTeamSiteAssignmentPermission;
@@ -1288,7 +1288,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1288
1288
  }
1289
1289
  }, _callee43, this);
1290
1290
  }));
1291
- function getAssignedTeams(_x66, _x67, _x68, _x69) {
1291
+ function getAssignedTeams(_x67, _x68, _x69, _x70) {
1292
1292
  return _getAssignedTeams.apply(this, arguments);
1293
1293
  }
1294
1294
  return getAssignedTeams;
@@ -1317,7 +1317,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1317
1317
  }
1318
1318
  }, _callee44, this);
1319
1319
  }));
1320
- function getUnassignedTeams(_x70, _x71, _x72, _x73) {
1320
+ function getUnassignedTeams(_x71, _x72, _x73, _x74) {
1321
1321
  return _getUnassignedTeams.apply(this, arguments);
1322
1322
  }
1323
1323
  return getUnassignedTeams;
@@ -1518,7 +1518,7 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
1518
1518
  }
1519
1519
  }, _callee46, this, [[0, 4]]);
1520
1520
  }));
1521
- function getTeamStatesInBulk(_x74, _x75) {
1521
+ function getTeamStatesInBulk(_x75, _x76) {
1522
1522
  return _getTeamStatesInBulk.apply(this, arguments);
1523
1523
  }
1524
1524
  return getTeamStatesInBulk;