@atlaskit/teams-client 4.2.0 → 4.4.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 (56) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/common/utils/ufo/constants.js +1 -1
  3. package/dist/cjs/common/utils/ufo/index.js +2 -2
  4. package/dist/cjs/mocks/endpoints.js +17 -17
  5. package/dist/cjs/services/legion-client/index.js +215 -196
  6. package/dist/cjs/services/main.js +559 -458
  7. package/dist/cjs/services/object-resolver-client/index.js +24 -0
  8. package/dist/cjs/services/replines-client/index.js +61 -0
  9. package/dist/cjs/services/rest-client/index.js +3 -3
  10. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  11. package/dist/cjs/services/sentry/utils/sentry-client.js +1 -2
  12. package/dist/cjs/services/team-central-client/index.js +1 -1
  13. package/dist/cjs/types/team-container.js +19 -0
  14. package/dist/cjs/types/tenure.js +1 -0
  15. package/dist/es2019/common/utils/ufo/constants.js +1 -1
  16. package/dist/es2019/common/utils/ufo/index.js +2 -2
  17. package/dist/es2019/services/legion-client/index.js +5 -0
  18. package/dist/es2019/services/main.js +20 -0
  19. package/dist/es2019/services/object-resolver-client/index.js +8 -0
  20. package/dist/es2019/services/replines-client/index.js +23 -0
  21. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  22. package/dist/es2019/types/team-container.js +13 -0
  23. package/dist/es2019/types/tenure.js +0 -0
  24. package/dist/esm/common/utils/ufo/constants.js +1 -1
  25. package/dist/esm/common/utils/ufo/index.js +2 -2
  26. package/dist/esm/mocks/endpoints.js +17 -17
  27. package/dist/esm/services/legion-client/index.js +215 -196
  28. package/dist/esm/services/main.js +559 -458
  29. package/dist/esm/services/object-resolver-client/index.js +24 -0
  30. package/dist/esm/services/replines-client/index.js +54 -0
  31. package/dist/esm/services/rest-client/index.js +3 -3
  32. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  33. package/dist/esm/services/team-central-client/index.js +1 -1
  34. package/dist/esm/types/team-container.js +13 -0
  35. package/dist/esm/types/tenure.js +0 -0
  36. package/dist/types/common/utils/ufo/constants.d.ts +2 -2
  37. package/dist/types/services/legion-client/index.d.ts +2 -0
  38. package/dist/types/services/main.d.ts +11 -0
  39. package/dist/types/services/object-resolver-client/index.d.ts +1 -0
  40. package/dist/types/services/object-resolver-client/types.d.ts +15 -0
  41. package/dist/types/services/replines-client/index.d.ts +11 -0
  42. package/dist/types/services/team-central-client/index.d.ts +1 -1
  43. package/dist/types/types/index.d.ts +1 -0
  44. package/dist/types/types/team-container.d.ts +38 -0
  45. package/dist/types/types/tenure.d.ts +5 -0
  46. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +5 -2
  47. package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -0
  48. package/dist/types-ts4.5/services/main.d.ts +11 -0
  49. package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +1 -0
  50. package/dist/types-ts4.5/services/object-resolver-client/types.d.ts +15 -0
  51. package/dist/types-ts4.5/services/replines-client/index.d.ts +11 -0
  52. package/dist/types-ts4.5/services/team-central-client/index.d.ts +1 -1
  53. package/dist/types-ts4.5/types/index.d.ts +1 -0
  54. package/dist/types-ts4.5/types/team-container.d.ts +38 -0
  55. package/dist/types-ts4.5/types/tenure.d.ts +5 -0
  56. package/package.json +1 -1
@@ -14,6 +14,7 @@ import mutabilityClient from './mutability-client';
14
14
  import objectResolverClient from './object-resolver-client';
15
15
  import permsClient from './perms-client';
16
16
  import publicApiClient from './public-api-client';
17
+ import replinesClient from './replines-client';
17
18
  import teamCentralClient from './team-central-client';
18
19
  import teamsInSlackClient from './teams-in-slack-client';
19
20
  import userPreferencesClient from './user-preferences-client';
@@ -48,6 +49,7 @@ export var TeamsClient = /*#__PURE__*/function () {
48
49
  _defineProperty(this, "_collaborationGraphClient", collaborationGraphClient);
49
50
  _defineProperty(this, "_identityClient", identityClient);
50
51
  _defineProperty(this, "_teamCentralClient", teamCentralClient);
52
+ _defineProperty(this, "_replinesClient", replinesClient);
51
53
  if (context) {
52
54
  this.setContext(context);
53
55
  }
@@ -115,6 +117,7 @@ export var TeamsClient = /*#__PURE__*/function () {
115
117
  this._mutabilityClient.setContext(context);
116
118
  this._publicApiClient.setContext(context);
117
119
  this._invitationsClient.setContext(context);
120
+ this._replinesClient.setContext(context);
118
121
  }
119
122
  }, {
120
123
  key: "setTeamCentralContext",
@@ -396,27 +399,27 @@ export var TeamsClient = /*#__PURE__*/function () {
396
399
  }, {
397
400
  key: "updateTeamById",
398
401
  value: (function () {
399
- var _updateTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
402
+ var _updateTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee0() {
400
403
  var _this7 = this;
401
404
  var _len4,
402
405
  args,
403
406
  _key4,
404
- _args10 = arguments;
405
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
406
- while (1) switch (_context10.prev = _context10.next) {
407
+ _args0 = arguments;
408
+ return _regeneratorRuntime.wrap(function _callee0$(_context0) {
409
+ while (1) switch (_context0.prev = _context0.next) {
407
410
  case 0:
408
- for (_len4 = _args10.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
409
- args[_key4] = _args10[_key4];
411
+ for (_len4 = _args0.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
412
+ args[_key4] = _args0[_key4];
410
413
  }
411
- return _context10.abrupt("return", this.measurePerformance('updateTeamById', function () {
414
+ return _context0.abrupt("return", this.measurePerformance('updateTeamById', function () {
412
415
  var _this7$_legionClient;
413
416
  return (_this7$_legionClient = _this7._legionClient).updateTeamById.apply(_this7$_legionClient, args);
414
417
  }));
415
418
  case 2:
416
419
  case "end":
417
- return _context10.stop();
420
+ return _context0.stop();
418
421
  }
419
- }, _callee10, this);
422
+ }, _callee0, this);
420
423
  }));
421
424
  function updateTeamById() {
422
425
  return _updateTeamById.apply(this, arguments);
@@ -431,27 +434,27 @@ export var TeamsClient = /*#__PURE__*/function () {
431
434
  }, {
432
435
  key: "inviteUsersToTeam",
433
436
  value: (function () {
434
- var _inviteUsersToTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
437
+ var _inviteUsersToTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee1() {
435
438
  var _this8 = this;
436
439
  var _len5,
437
440
  args,
438
441
  _key5,
439
- _args11 = arguments;
440
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
441
- while (1) switch (_context11.prev = _context11.next) {
442
+ _args1 = arguments;
443
+ return _regeneratorRuntime.wrap(function _callee1$(_context1) {
444
+ while (1) switch (_context1.prev = _context1.next) {
442
445
  case 0:
443
- for (_len5 = _args11.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
444
- args[_key5] = _args11[_key5];
446
+ for (_len5 = _args1.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
447
+ args[_key5] = _args1[_key5];
445
448
  }
446
- return _context11.abrupt("return", this.measurePerformance('inviteUsersToTeam', function () {
449
+ return _context1.abrupt("return", this.measurePerformance('inviteUsersToTeam', function () {
447
450
  var _this8$_legionClient;
448
451
  return (_this8$_legionClient = _this8._legionClient).inviteUsersToTeam.apply(_this8$_legionClient, args);
449
452
  }));
450
453
  case 2:
451
454
  case "end":
452
- return _context11.stop();
455
+ return _context1.stop();
453
456
  }
454
- }, _callee11, this);
457
+ }, _callee1, this);
455
458
  }));
456
459
  function inviteUsersToTeam() {
457
460
  return _inviteUsersToTeam.apply(this, arguments);
@@ -465,27 +468,27 @@ export var TeamsClient = /*#__PURE__*/function () {
465
468
  }, {
466
469
  key: "getMyTeamMembership",
467
470
  value: (function () {
468
- var _getMyTeamMembership = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
471
+ var _getMyTeamMembership = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10() {
469
472
  var _this9 = this;
470
473
  var _len6,
471
474
  args,
472
475
  _key6,
473
- _args12 = arguments;
474
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
475
- while (1) switch (_context12.prev = _context12.next) {
476
+ _args10 = arguments;
477
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
478
+ while (1) switch (_context10.prev = _context10.next) {
476
479
  case 0:
477
- for (_len6 = _args12.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
478
- args[_key6] = _args12[_key6];
480
+ for (_len6 = _args10.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
481
+ args[_key6] = _args10[_key6];
479
482
  }
480
- return _context12.abrupt("return", this.measurePerformance('getMyTeamMembership', function () {
483
+ return _context10.abrupt("return", this.measurePerformance('getMyTeamMembership', function () {
481
484
  var _this9$_legionClient;
482
485
  return (_this9$_legionClient = _this9._legionClient).getMyTeamMembership.apply(_this9$_legionClient, args);
483
486
  }));
484
487
  case 2:
485
488
  case "end":
486
- return _context12.stop();
489
+ return _context10.stop();
487
490
  }
488
- }, _callee12, this);
491
+ }, _callee10, this);
489
492
  }));
490
493
  function getMyTeamMembership() {
491
494
  return _getMyTeamMembership.apply(this, arguments);
@@ -499,19 +502,19 @@ export var TeamsClient = /*#__PURE__*/function () {
499
502
  }, {
500
503
  key: "getTeamLinksByTeamId",
501
504
  value: (function () {
502
- var _getTeamLinksByTeamId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(teamId) {
503
- var _this10 = this;
504
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
505
- while (1) switch (_context13.prev = _context13.next) {
505
+ var _getTeamLinksByTeamId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(teamId) {
506
+ var _this0 = this;
507
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
508
+ while (1) switch (_context11.prev = _context11.next) {
506
509
  case 0:
507
- return _context13.abrupt("return", this.measurePerformance('getTeamLinksByTeamId', function () {
508
- return _this10._legionClient.getTeamLinksByTeamId(teamId);
510
+ return _context11.abrupt("return", this.measurePerformance('getTeamLinksByTeamId', function () {
511
+ return _this0._legionClient.getTeamLinksByTeamId(teamId);
509
512
  }));
510
513
  case 1:
511
514
  case "end":
512
- return _context13.stop();
515
+ return _context11.stop();
513
516
  }
514
- }, _callee13, this);
517
+ }, _callee11, this);
515
518
  }));
516
519
  function getTeamLinksByTeamId(_x8) {
517
520
  return _getTeamLinksByTeamId.apply(this, arguments);
@@ -525,27 +528,27 @@ export var TeamsClient = /*#__PURE__*/function () {
525
528
  }, {
526
529
  key: "createTeamLink",
527
530
  value: (function () {
528
- var _createTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
529
- var _this11 = this;
531
+ var _createTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
532
+ var _this1 = this;
530
533
  var _len7,
531
534
  args,
532
535
  _key7,
533
- _args14 = arguments;
534
- return _regeneratorRuntime.wrap(function _callee14$(_context14) {
535
- while (1) switch (_context14.prev = _context14.next) {
536
+ _args12 = arguments;
537
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
538
+ while (1) switch (_context12.prev = _context12.next) {
536
539
  case 0:
537
- for (_len7 = _args14.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
538
- args[_key7] = _args14[_key7];
540
+ for (_len7 = _args12.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
541
+ args[_key7] = _args12[_key7];
539
542
  }
540
- return _context14.abrupt("return", this.measurePerformance('createTeamLink', function () {
541
- var _this11$_legionClient;
542
- return (_this11$_legionClient = _this11._legionClient).createTeamLink.apply(_this11$_legionClient, args);
543
+ return _context12.abrupt("return", this.measurePerformance('createTeamLink', function () {
544
+ var _this1$_legionClient;
545
+ return (_this1$_legionClient = _this1._legionClient).createTeamLink.apply(_this1$_legionClient, args);
543
546
  }));
544
547
  case 2:
545
548
  case "end":
546
- return _context14.stop();
549
+ return _context12.stop();
547
550
  }
548
- }, _callee14, this);
551
+ }, _callee12, this);
549
552
  }));
550
553
  function createTeamLink() {
551
554
  return _createTeamLink.apply(this, arguments);
@@ -559,27 +562,27 @@ export var TeamsClient = /*#__PURE__*/function () {
559
562
  }, {
560
563
  key: "updateTeamLink",
561
564
  value: (function () {
562
- var _updateTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
563
- var _this12 = this;
565
+ var _updateTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
566
+ var _this10 = this;
564
567
  var _len8,
565
568
  args,
566
569
  _key8,
567
- _args15 = arguments;
568
- return _regeneratorRuntime.wrap(function _callee15$(_context15) {
569
- while (1) switch (_context15.prev = _context15.next) {
570
+ _args13 = arguments;
571
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
572
+ while (1) switch (_context13.prev = _context13.next) {
570
573
  case 0:
571
- for (_len8 = _args15.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
572
- args[_key8] = _args15[_key8];
574
+ for (_len8 = _args13.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
575
+ args[_key8] = _args13[_key8];
573
576
  }
574
- return _context15.abrupt("return", this.measurePerformance('updateTeamLink', function () {
575
- var _this12$_legionClient;
576
- return (_this12$_legionClient = _this12._legionClient).updateTeamLink.apply(_this12$_legionClient, args);
577
+ return _context13.abrupt("return", this.measurePerformance('updateTeamLink', function () {
578
+ var _this10$_legionClient;
579
+ return (_this10$_legionClient = _this10._legionClient).updateTeamLink.apply(_this10$_legionClient, args);
577
580
  }));
578
581
  case 2:
579
582
  case "end":
580
- return _context15.stop();
583
+ return _context13.stop();
581
584
  }
582
- }, _callee15, this);
585
+ }, _callee13, this);
583
586
  }));
584
587
  function updateTeamLink() {
585
588
  return _updateTeamLink.apply(this, arguments);
@@ -593,27 +596,27 @@ export var TeamsClient = /*#__PURE__*/function () {
593
596
  }, {
594
597
  key: "deleteTeamLink",
595
598
  value: (function () {
596
- var _deleteTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
597
- var _this13 = this;
599
+ var _deleteTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {
600
+ var _this11 = this;
598
601
  var _len9,
599
602
  args,
600
603
  _key9,
601
- _args16 = arguments;
602
- return _regeneratorRuntime.wrap(function _callee16$(_context16) {
603
- while (1) switch (_context16.prev = _context16.next) {
604
+ _args14 = arguments;
605
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
606
+ while (1) switch (_context14.prev = _context14.next) {
604
607
  case 0:
605
- for (_len9 = _args16.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
606
- args[_key9] = _args16[_key9];
608
+ for (_len9 = _args14.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
609
+ args[_key9] = _args14[_key9];
607
610
  }
608
- return _context16.abrupt("return", this.measurePerformance('deleteTeamLink', function () {
609
- var _this13$_legionClient;
610
- return (_this13$_legionClient = _this13._legionClient).deleteTeamLink.apply(_this13$_legionClient, args);
611
+ return _context14.abrupt("return", this.measurePerformance('deleteTeamLink', function () {
612
+ var _this11$_legionClient;
613
+ return (_this11$_legionClient = _this11._legionClient).deleteTeamLink.apply(_this11$_legionClient, args);
611
614
  }));
612
615
  case 2:
613
616
  case "end":
614
- return _context16.stop();
617
+ return _context14.stop();
615
618
  }
616
- }, _callee16, this);
619
+ }, _callee14, this);
617
620
  }));
618
621
  function deleteTeamLink() {
619
622
  return _deleteTeamLink.apply(this, arguments);
@@ -627,27 +630,27 @@ export var TeamsClient = /*#__PURE__*/function () {
627
630
  }, {
628
631
  key: "reorderTeamLink",
629
632
  value: (function () {
630
- var _reorderTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
631
- var _this14 = this;
632
- var _len10,
633
+ var _reorderTeamLink = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15() {
634
+ var _this12 = this;
635
+ var _len0,
633
636
  args,
634
- _key10,
635
- _args17 = arguments;
636
- return _regeneratorRuntime.wrap(function _callee17$(_context17) {
637
- while (1) switch (_context17.prev = _context17.next) {
637
+ _key0,
638
+ _args15 = arguments;
639
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
640
+ while (1) switch (_context15.prev = _context15.next) {
638
641
  case 0:
639
- for (_len10 = _args17.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
640
- args[_key10] = _args17[_key10];
642
+ for (_len0 = _args15.length, args = new Array(_len0), _key0 = 0; _key0 < _len0; _key0++) {
643
+ args[_key0] = _args15[_key0];
641
644
  }
642
- return _context17.abrupt("return", this.measurePerformance('reorderTeamLink', function () {
643
- var _this14$_legionClient;
644
- return (_this14$_legionClient = _this14._legionClient).reorderTeamLink.apply(_this14$_legionClient, args);
645
+ return _context15.abrupt("return", this.measurePerformance('reorderTeamLink', function () {
646
+ var _this12$_legionClient;
647
+ return (_this12$_legionClient = _this12._legionClient).reorderTeamLink.apply(_this12$_legionClient, args);
645
648
  }));
646
649
  case 2:
647
650
  case "end":
648
- return _context17.stop();
651
+ return _context15.stop();
649
652
  }
650
- }, _callee17, this);
653
+ }, _callee15, this);
651
654
  }));
652
655
  function reorderTeamLink() {
653
656
  return _reorderTeamLink.apply(this, arguments);
@@ -661,19 +664,19 @@ export var TeamsClient = /*#__PURE__*/function () {
661
664
  }, {
662
665
  key: "getOrgEligibilityForManagedTeams",
663
666
  value: (function () {
664
- var _getOrgEligibilityForManagedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
665
- var _this15 = this;
666
- return _regeneratorRuntime.wrap(function _callee18$(_context18) {
667
- while (1) switch (_context18.prev = _context18.next) {
667
+ var _getOrgEligibilityForManagedTeams = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
668
+ var _this13 = this;
669
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
670
+ while (1) switch (_context16.prev = _context16.next) {
668
671
  case 0:
669
- return _context18.abrupt("return", this.measurePerformance('getOrgEligibilityForManagedTeams', function () {
670
- return _this15._legionClient.getOrgEligibilityForManagedTeams();
672
+ return _context16.abrupt("return", this.measurePerformance('getOrgEligibilityForManagedTeams', function () {
673
+ return _this13._legionClient.getOrgEligibilityForManagedTeams();
671
674
  }));
672
675
  case 1:
673
676
  case "end":
674
- return _context18.stop();
677
+ return _context16.stop();
675
678
  }
676
- }, _callee18, this);
679
+ }, _callee16, this);
677
680
  }));
678
681
  function getOrgEligibilityForManagedTeams() {
679
682
  return _getOrgEligibilityForManagedTeams.apply(this, arguments);
@@ -688,7 +691,76 @@ export var TeamsClient = /*#__PURE__*/function () {
688
691
  }, {
689
692
  key: "acceptTeamInvitation",
690
693
  value: (function () {
691
- var _acceptTeamInvitation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
694
+ var _acceptTeamInvitation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17() {
695
+ var _this14 = this;
696
+ var _len1,
697
+ args,
698
+ _key1,
699
+ _args17 = arguments;
700
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
701
+ while (1) switch (_context17.prev = _context17.next) {
702
+ case 0:
703
+ for (_len1 = _args17.length, args = new Array(_len1), _key1 = 0; _key1 < _len1; _key1++) {
704
+ args[_key1] = _args17[_key1];
705
+ }
706
+ return _context17.abrupt("return", this.measurePerformance('acceptTeamInvitation', function () {
707
+ var _this14$_legionClient;
708
+ return (_this14$_legionClient = _this14._legionClient).acceptTeamInvitation.apply(_this14$_legionClient, args);
709
+ }));
710
+ case 2:
711
+ case "end":
712
+ return _context17.stop();
713
+ }
714
+ }, _callee17, this);
715
+ }));
716
+ function acceptTeamInvitation() {
717
+ return _acceptTeamInvitation.apply(this, arguments);
718
+ }
719
+ return acceptTeamInvitation;
720
+ }()
721
+ /**
722
+ * @deprecated Invitation status no longer exists
723
+ * Decline a team invitation
724
+ */
725
+ )
726
+ }, {
727
+ key: "declineTeamInvitation",
728
+ value: (function () {
729
+ var _declineTeamInvitation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {
730
+ var _this15 = this;
731
+ var _len10,
732
+ args,
733
+ _key10,
734
+ _args18 = arguments;
735
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
736
+ while (1) switch (_context18.prev = _context18.next) {
737
+ case 0:
738
+ for (_len10 = _args18.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
739
+ args[_key10] = _args18[_key10];
740
+ }
741
+ return _context18.abrupt("return", this.measurePerformance('declineTeamInvitation', function () {
742
+ var _this15$_legionClient;
743
+ return (_this15$_legionClient = _this15._legionClient).declineTeamInvitation.apply(_this15$_legionClient, args);
744
+ }));
745
+ case 2:
746
+ case "end":
747
+ return _context18.stop();
748
+ }
749
+ }, _callee18, this);
750
+ }));
751
+ function declineTeamInvitation() {
752
+ return _declineTeamInvitation.apply(this, arguments);
753
+ }
754
+ return declineTeamInvitation;
755
+ }()
756
+ /**
757
+ * Add current user to a team
758
+ */
759
+ )
760
+ }, {
761
+ key: "selfJoinTeam",
762
+ value: (function () {
763
+ var _selfJoinTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
692
764
  var _this16 = this;
693
765
  var _len11,
694
766
  args,
@@ -700,9 +772,9 @@ export var TeamsClient = /*#__PURE__*/function () {
700
772
  for (_len11 = _args19.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
701
773
  args[_key11] = _args19[_key11];
702
774
  }
703
- return _context19.abrupt("return", this.measurePerformance('acceptTeamInvitation', function () {
775
+ return _context19.abrupt("return", this.measurePerformance('selfJoinTeam', function () {
704
776
  var _this16$_legionClient;
705
- return (_this16$_legionClient = _this16._legionClient).acceptTeamInvitation.apply(_this16$_legionClient, args);
777
+ return (_this16$_legionClient = _this16._legionClient).selfJoinTeam.apply(_this16$_legionClient, args);
706
778
  }));
707
779
  case 2:
708
780
  case "end":
@@ -710,68 +782,59 @@ export var TeamsClient = /*#__PURE__*/function () {
710
782
  }
711
783
  }, _callee19, this);
712
784
  }));
713
- function acceptTeamInvitation() {
714
- return _acceptTeamInvitation.apply(this, arguments);
785
+ function selfJoinTeam() {
786
+ return _selfJoinTeam.apply(this, arguments);
715
787
  }
716
- return acceptTeamInvitation;
788
+ return selfJoinTeam;
717
789
  }()
718
790
  /**
719
- * @deprecated Invitation status no longer exists
720
- * Decline a team invitation
791
+ * Cancel a join request to a private team
721
792
  */
722
793
  )
723
794
  }, {
724
- key: "declineTeamInvitation",
795
+ key: "cancelJoinRequest",
725
796
  value: (function () {
726
- var _declineTeamInvitation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
797
+ var _cancelJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(teamId) {
727
798
  var _this17 = this;
728
- var _len12,
729
- args,
730
- _key12,
731
- _args20 = arguments;
732
799
  return _regeneratorRuntime.wrap(function _callee20$(_context20) {
733
800
  while (1) switch (_context20.prev = _context20.next) {
734
801
  case 0:
735
- for (_len12 = _args20.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
736
- args[_key12] = _args20[_key12];
737
- }
738
- return _context20.abrupt("return", this.measurePerformance('declineTeamInvitation', function () {
739
- var _this17$_legionClient;
740
- return (_this17$_legionClient = _this17._legionClient).declineTeamInvitation.apply(_this17$_legionClient, args);
802
+ return _context20.abrupt("return", this.measurePerformance('cancelJoinRequest', function () {
803
+ return _this17._legionClient.cancelJoinRequest(teamId);
741
804
  }));
742
- case 2:
805
+ case 1:
743
806
  case "end":
744
807
  return _context20.stop();
745
808
  }
746
809
  }, _callee20, this);
747
810
  }));
748
- function declineTeamInvitation() {
749
- return _declineTeamInvitation.apply(this, arguments);
811
+ function cancelJoinRequest(_x9) {
812
+ return _cancelJoinRequest.apply(this, arguments);
750
813
  }
751
- return declineTeamInvitation;
814
+ return cancelJoinRequest;
752
815
  }()
753
816
  /**
754
- * Add current user to a team
817
+ * Accept a join request to a private team
755
818
  */
756
819
  )
757
820
  }, {
758
- key: "selfJoinTeam",
821
+ key: "acceptJoinRequest",
759
822
  value: (function () {
760
- var _selfJoinTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
823
+ var _acceptJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21() {
761
824
  var _this18 = this;
762
- var _len13,
825
+ var _len12,
763
826
  args,
764
- _key13,
827
+ _key12,
765
828
  _args21 = arguments;
766
829
  return _regeneratorRuntime.wrap(function _callee21$(_context21) {
767
830
  while (1) switch (_context21.prev = _context21.next) {
768
831
  case 0:
769
- for (_len13 = _args21.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
770
- args[_key13] = _args21[_key13];
832
+ for (_len12 = _args21.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
833
+ args[_key12] = _args21[_key12];
771
834
  }
772
- return _context21.abrupt("return", this.measurePerformance('selfJoinTeam', function () {
835
+ return _context21.abrupt("return", this.measurePerformance('acceptJoinRequest', function () {
773
836
  var _this18$_legionClient;
774
- return (_this18$_legionClient = _this18._legionClient).selfJoinTeam.apply(_this18$_legionClient, args);
837
+ return (_this18$_legionClient = _this18._legionClient).acceptJoinRequest.apply(_this18$_legionClient, args);
775
838
  }));
776
839
  case 2:
777
840
  case "end":
@@ -779,45 +842,53 @@ export var TeamsClient = /*#__PURE__*/function () {
779
842
  }
780
843
  }, _callee21, this);
781
844
  }));
782
- function selfJoinTeam() {
783
- return _selfJoinTeam.apply(this, arguments);
845
+ function acceptJoinRequest() {
846
+ return _acceptJoinRequest.apply(this, arguments);
784
847
  }
785
- return selfJoinTeam;
848
+ return acceptJoinRequest;
786
849
  }()
787
850
  /**
788
- * Cancel a join request to a private team
851
+ * Decline a join request to a private team
789
852
  */
790
853
  )
791
854
  }, {
792
- key: "cancelJoinRequest",
855
+ key: "declineJoinRequest",
793
856
  value: (function () {
794
- var _cancelJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(teamId) {
857
+ var _declineJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22() {
795
858
  var _this19 = this;
859
+ var _len13,
860
+ args,
861
+ _key13,
862
+ _args22 = arguments;
796
863
  return _regeneratorRuntime.wrap(function _callee22$(_context22) {
797
864
  while (1) switch (_context22.prev = _context22.next) {
798
865
  case 0:
799
- return _context22.abrupt("return", this.measurePerformance('cancelJoinRequest', function () {
800
- return _this19._legionClient.cancelJoinRequest(teamId);
866
+ for (_len13 = _args22.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
867
+ args[_key13] = _args22[_key13];
868
+ }
869
+ return _context22.abrupt("return", this.measurePerformance('declineJoinRequest', function () {
870
+ var _this19$_legionClient;
871
+ return (_this19$_legionClient = _this19._legionClient).declineJoinRequest.apply(_this19$_legionClient, args);
801
872
  }));
802
- case 1:
873
+ case 2:
803
874
  case "end":
804
875
  return _context22.stop();
805
876
  }
806
877
  }, _callee22, this);
807
878
  }));
808
- function cancelJoinRequest(_x9) {
809
- return _cancelJoinRequest.apply(this, arguments);
879
+ function declineJoinRequest() {
880
+ return _declineJoinRequest.apply(this, arguments);
810
881
  }
811
- return cancelJoinRequest;
882
+ return declineJoinRequest;
812
883
  }()
813
884
  /**
814
- * Accept a join request to a private team
885
+ * @deprecated use removeTeamMemberships instead
815
886
  */
816
887
  )
817
888
  }, {
818
- key: "acceptJoinRequest",
889
+ key: "deleteTeamMembership",
819
890
  value: (function () {
820
- var _acceptJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
891
+ var _deleteTeamMembership = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23() {
821
892
  var _this20 = this;
822
893
  var _len14,
823
894
  args,
@@ -829,9 +900,9 @@ export var TeamsClient = /*#__PURE__*/function () {
829
900
  for (_len14 = _args23.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
830
901
  args[_key14] = _args23[_key14];
831
902
  }
832
- return _context23.abrupt("return", this.measurePerformance('acceptJoinRequest', function () {
903
+ return _context23.abrupt("return", this.measurePerformance('deleteTeamMembership', function () {
833
904
  var _this20$_legionClient;
834
- return (_this20$_legionClient = _this20._legionClient).acceptJoinRequest.apply(_this20$_legionClient, args);
905
+ return (_this20$_legionClient = _this20._legionClient).deleteTeamMembership.apply(_this20$_legionClient, args);
835
906
  }));
836
907
  case 2:
837
908
  case "end":
@@ -839,19 +910,19 @@ export var TeamsClient = /*#__PURE__*/function () {
839
910
  }
840
911
  }, _callee23, this);
841
912
  }));
842
- function acceptJoinRequest() {
843
- return _acceptJoinRequest.apply(this, arguments);
913
+ function deleteTeamMembership() {
914
+ return _deleteTeamMembership.apply(this, arguments);
844
915
  }
845
- return acceptJoinRequest;
916
+ return deleteTeamMembership;
846
917
  }()
847
918
  /**
848
- * Decline a join request to a private team
919
+ * @deprecated INVITED status has been deprecated
849
920
  */
850
921
  )
851
922
  }, {
852
- key: "declineJoinRequest",
923
+ key: "revokeTeamInvite",
853
924
  value: (function () {
854
- var _declineJoinRequest = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
925
+ var _revokeTeamInvite = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {
855
926
  var _this21 = this;
856
927
  var _len15,
857
928
  args,
@@ -863,9 +934,9 @@ export var TeamsClient = /*#__PURE__*/function () {
863
934
  for (_len15 = _args24.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
864
935
  args[_key15] = _args24[_key15];
865
936
  }
866
- return _context24.abrupt("return", this.measurePerformance('declineJoinRequest', function () {
937
+ return _context24.abrupt("return", this.measurePerformance('revokeTeamInvite', function () {
867
938
  var _this21$_legionClient;
868
- return (_this21$_legionClient = _this21._legionClient).declineJoinRequest.apply(_this21$_legionClient, args);
939
+ return (_this21$_legionClient = _this21._legionClient).revokeTeamInvite.apply(_this21$_legionClient, args);
869
940
  }));
870
941
  case 2:
871
942
  case "end":
@@ -873,137 +944,139 @@ export var TeamsClient = /*#__PURE__*/function () {
873
944
  }
874
945
  }, _callee24, this);
875
946
  }));
876
- function declineJoinRequest() {
877
- return _declineJoinRequest.apply(this, arguments);
947
+ function revokeTeamInvite() {
948
+ return _revokeTeamInvite.apply(this, arguments);
878
949
  }
879
- return declineJoinRequest;
950
+ return revokeTeamInvite;
880
951
  }()
881
952
  /**
882
- * @deprecated use removeTeamMemberships instead
953
+ * Delete a team
883
954
  */
884
955
  )
885
956
  }, {
886
- key: "deleteTeamMembership",
957
+ key: "deleteTeam",
887
958
  value: (function () {
888
- var _deleteTeamMembership = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {
959
+ var _deleteTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(teamId) {
889
960
  var _this22 = this;
890
- var _len16,
891
- args,
892
- _key16,
893
- _args25 = arguments;
894
961
  return _regeneratorRuntime.wrap(function _callee25$(_context25) {
895
962
  while (1) switch (_context25.prev = _context25.next) {
896
963
  case 0:
897
- for (_len16 = _args25.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
898
- args[_key16] = _args25[_key16];
899
- }
900
- return _context25.abrupt("return", this.measurePerformance('deleteTeamMembership', function () {
901
- var _this22$_legionClient;
902
- return (_this22$_legionClient = _this22._legionClient).deleteTeamMembership.apply(_this22$_legionClient, args);
964
+ return _context25.abrupt("return", this.measurePerformance('deleteTeam', function () {
965
+ return _this22._legionClient.deleteTeam(teamId);
903
966
  }));
904
- case 2:
967
+ case 1:
905
968
  case "end":
906
969
  return _context25.stop();
907
970
  }
908
971
  }, _callee25, this);
909
972
  }));
910
- function deleteTeamMembership() {
911
- return _deleteTeamMembership.apply(this, arguments);
973
+ function deleteTeam(_x0) {
974
+ return _deleteTeam.apply(this, arguments);
912
975
  }
913
- return deleteTeamMembership;
976
+ return deleteTeam;
914
977
  }()
915
978
  /**
916
- * @deprecated INVITED status has been deprecated
979
+ * @private
980
+ * @deprecated should be other means to solve this issue
917
981
  */
918
982
  )
919
983
  }, {
920
- key: "revokeTeamInvite",
984
+ key: "isSingleFullMemberTeam",
921
985
  value: (function () {
922
- var _revokeTeamInvite = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {
923
- var _this23 = this;
924
- var _len17,
925
- args,
926
- _key17,
927
- _args26 = arguments;
986
+ var _isSingleFullMemberTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(teamId) {
928
987
  return _regeneratorRuntime.wrap(function _callee26$(_context26) {
929
988
  while (1) switch (_context26.prev = _context26.next) {
930
989
  case 0:
931
- for (_len17 = _args26.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
932
- args[_key17] = _args26[_key17];
933
- }
934
- return _context26.abrupt("return", this.measurePerformance('revokeTeamInvite', function () {
935
- var _this23$_legionClient;
936
- return (_this23$_legionClient = _this23._legionClient).revokeTeamInvite.apply(_this23$_legionClient, args);
937
- }));
938
- case 2:
990
+ return _context26.abrupt("return", this._legionClient.isSingleFullMemberTeam(teamId));
991
+ case 1:
939
992
  case "end":
940
993
  return _context26.stop();
941
994
  }
942
995
  }, _callee26, this);
943
996
  }));
944
- function revokeTeamInvite() {
945
- return _revokeTeamInvite.apply(this, arguments);
997
+ function isSingleFullMemberTeam(_x1) {
998
+ return _isSingleFullMemberTeam.apply(this, arguments);
946
999
  }
947
- return revokeTeamInvite;
1000
+ return isSingleFullMemberTeam;
948
1001
  }()
949
1002
  /**
950
- * Delete a team
1003
+ * Create a team
951
1004
  */
952
1005
  )
953
1006
  }, {
954
- key: "deleteTeam",
1007
+ key: "createTeam",
955
1008
  value: (function () {
956
- var _deleteTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(teamId) {
957
- var _this24 = this;
1009
+ var _createTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
1010
+ var _this23 = this;
1011
+ var _len16,
1012
+ args,
1013
+ _key16,
1014
+ _args27 = arguments;
958
1015
  return _regeneratorRuntime.wrap(function _callee27$(_context27) {
959
1016
  while (1) switch (_context27.prev = _context27.next) {
960
1017
  case 0:
961
- return _context27.abrupt("return", this.measurePerformance('deleteTeam', function () {
962
- return _this24._legionClient.deleteTeam(teamId);
1018
+ for (_len16 = _args27.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
1019
+ args[_key16] = _args27[_key16];
1020
+ }
1021
+ return _context27.abrupt("return", this.measurePerformance('createTeam', function () {
1022
+ var _this23$_legionClient;
1023
+ return (_this23$_legionClient = _this23._legionClient).createTeam.apply(_this23$_legionClient, args);
963
1024
  }));
964
- case 1:
1025
+ case 2:
965
1026
  case "end":
966
1027
  return _context27.stop();
967
1028
  }
968
1029
  }, _callee27, this);
969
1030
  }));
970
- function deleteTeam(_x10) {
971
- return _deleteTeam.apply(this, arguments);
1031
+ function createTeam() {
1032
+ return _createTeam.apply(this, arguments);
972
1033
  }
973
- return deleteTeam;
1034
+ return createTeam;
974
1035
  }()
975
1036
  /**
976
- * @private
977
- * @deprecated should be other means to solve this issue
1037
+ * Create containers for a team
978
1038
  */
979
1039
  )
980
1040
  }, {
981
- key: "isSingleFullMemberTeam",
1041
+ key: "createTeamContainers",
982
1042
  value: (function () {
983
- var _isSingleFullMemberTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(teamId) {
1043
+ var _createTeamContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
1044
+ var _this24 = this;
1045
+ var _len17,
1046
+ args,
1047
+ _key17,
1048
+ _args28 = arguments;
984
1049
  return _regeneratorRuntime.wrap(function _callee28$(_context28) {
985
1050
  while (1) switch (_context28.prev = _context28.next) {
986
1051
  case 0:
987
- return _context28.abrupt("return", this._legionClient.isSingleFullMemberTeam(teamId));
988
- case 1:
1052
+ for (_len17 = _args28.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
1053
+ args[_key17] = _args28[_key17];
1054
+ }
1055
+ return _context28.abrupt("return", this.measurePerformance('createTeamContainers', function () {
1056
+ var _this24$_legionClient;
1057
+ return (_this24$_legionClient = _this24._legionClient).createTeamContainers.apply(_this24$_legionClient, args);
1058
+ }));
1059
+ case 2:
989
1060
  case "end":
990
1061
  return _context28.stop();
991
1062
  }
992
1063
  }, _callee28, this);
993
1064
  }));
994
- function isSingleFullMemberTeam(_x11) {
995
- return _isSingleFullMemberTeam.apply(this, arguments);
1065
+ function createTeamContainers() {
1066
+ return _createTeamContainers.apply(this, arguments);
996
1067
  }
997
- return isSingleFullMemberTeam;
1068
+ return createTeamContainers;
998
1069
  }()
999
1070
  /**
1000
- * Create a team
1071
+ * Create a external team
1072
+ * @param {string} groupDescription - The description of the group, which will be used as the team description. The group name will be fetched from the identity service, so it does not need to be provided.
1073
+ * @param {ExternalReference} externalReference
1001
1074
  */
1002
1075
  )
1003
1076
  }, {
1004
- key: "createTeam",
1077
+ key: "createExternalTeam",
1005
1078
  value: (function () {
1006
- var _createTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
1079
+ var _createExternalTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
1007
1080
  var _this25 = this;
1008
1081
  var _len18,
1009
1082
  args,
@@ -1015,9 +1088,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1015
1088
  for (_len18 = _args29.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
1016
1089
  args[_key18] = _args29[_key18];
1017
1090
  }
1018
- return _context29.abrupt("return", this.measurePerformance('createTeam', function () {
1091
+ return _context29.abrupt("return", this.measurePerformance('createExternalTeam', function () {
1019
1092
  var _this25$_legionClient;
1020
- return (_this25$_legionClient = _this25._legionClient).createTeam.apply(_this25$_legionClient, args);
1093
+ return (_this25$_legionClient = _this25._legionClient).createExternalTeam.apply(_this25$_legionClient, args);
1021
1094
  }));
1022
1095
  case 2:
1023
1096
  case "end":
@@ -1025,21 +1098,20 @@ export var TeamsClient = /*#__PURE__*/function () {
1025
1098
  }
1026
1099
  }, _callee29, this);
1027
1100
  }));
1028
- function createTeam() {
1029
- return _createTeam.apply(this, arguments);
1101
+ function createExternalTeam() {
1102
+ return _createExternalTeam.apply(this, arguments);
1030
1103
  }
1031
- return createTeam;
1104
+ return createExternalTeam;
1032
1105
  }()
1033
1106
  /**
1034
- * Create a external team
1035
- * @param {string} groupDescription - The description of the group, which will be used as the team description. The group name will be fetched from the identity service, so it does not need to be provided.
1036
- * @param {ExternalReference} externalReference
1107
+ * Get linked teams for a groups in bulk
1108
+ * @param {string} groupIds - The group ids to fetch linked teams for
1037
1109
  */
1038
1110
  )
1039
1111
  }, {
1040
- key: "createExternalTeam",
1112
+ key: "getLinkedTeamsBulk",
1041
1113
  value: (function () {
1042
- var _createExternalTeam = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
1114
+ var _getLinkedTeamsBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {
1043
1115
  var _this26 = this;
1044
1116
  var _len19,
1045
1117
  args,
@@ -1051,9 +1123,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1051
1123
  for (_len19 = _args30.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
1052
1124
  args[_key19] = _args30[_key19];
1053
1125
  }
1054
- return _context30.abrupt("return", this.measurePerformance('createExternalTeam', function () {
1126
+ return _context30.abrupt("return", this.measurePerformance('getLinkedTeamsBulk', function () {
1055
1127
  var _this26$_legionClient;
1056
- return (_this26$_legionClient = _this26._legionClient).createExternalTeam.apply(_this26$_legionClient, args);
1128
+ return (_this26$_legionClient = _this26._legionClient).getLinkedTeamsBulk.apply(_this26$_legionClient, args);
1057
1129
  }));
1058
1130
  case 2:
1059
1131
  case "end":
@@ -1061,20 +1133,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1061
1133
  }
1062
1134
  }, _callee30, this);
1063
1135
  }));
1064
- function createExternalTeam() {
1065
- return _createExternalTeam.apply(this, arguments);
1136
+ function getLinkedTeamsBulk() {
1137
+ return _getLinkedTeamsBulk.apply(this, arguments);
1066
1138
  }
1067
- return createExternalTeam;
1139
+ return getLinkedTeamsBulk;
1068
1140
  }()
1069
1141
  /**
1070
- * Get linked teams for a groups in bulk
1071
- * @param {string} groupIds - The group ids to fetch linked teams for
1142
+ * Get Org scope
1072
1143
  */
1073
1144
  )
1074
1145
  }, {
1075
- key: "getLinkedTeamsBulk",
1146
+ key: "getOrgScope",
1076
1147
  value: (function () {
1077
- var _getLinkedTeamsBulk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
1148
+ var _getOrgScope = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
1078
1149
  var _this27 = this;
1079
1150
  var _len20,
1080
1151
  args,
@@ -1086,9 +1157,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1086
1157
  for (_len20 = _args31.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
1087
1158
  args[_key20] = _args31[_key20];
1088
1159
  }
1089
- return _context31.abrupt("return", this.measurePerformance('getLinkedTeamsBulk', function () {
1160
+ return _context31.abrupt("return", this.measurePerformance('getOrgScope', function () {
1090
1161
  var _this27$_legionClient;
1091
- return (_this27$_legionClient = _this27._legionClient).getLinkedTeamsBulk.apply(_this27$_legionClient, args);
1162
+ return (_this27$_legionClient = _this27._legionClient).getOrgScope.apply(_this27$_legionClient, args);
1092
1163
  }));
1093
1164
  case 2:
1094
1165
  case "end":
@@ -1096,19 +1167,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1096
1167
  }
1097
1168
  }, _callee31, this);
1098
1169
  }));
1099
- function getLinkedTeamsBulk() {
1100
- return _getLinkedTeamsBulk.apply(this, arguments);
1170
+ function getOrgScope() {
1171
+ return _getOrgScope.apply(this, arguments);
1101
1172
  }
1102
- return getLinkedTeamsBulk;
1173
+ return getOrgScope;
1103
1174
  }()
1104
1175
  /**
1105
- * Get Org scope
1176
+ * Restore soft-deleted team and sync to group
1106
1177
  */
1107
1178
  )
1108
1179
  }, {
1109
- key: "getOrgScope",
1180
+ key: "restoreTeamToSyncedGroup",
1110
1181
  value: (function () {
1111
- var _getOrgScope = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
1182
+ var _restoreTeamToSyncedGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
1112
1183
  var _this28 = this;
1113
1184
  var _len21,
1114
1185
  args,
@@ -1120,9 +1191,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1120
1191
  for (_len21 = _args32.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
1121
1192
  args[_key21] = _args32[_key21];
1122
1193
  }
1123
- return _context32.abrupt("return", this.measurePerformance('getOrgScope', function () {
1194
+ return _context32.abrupt("return", this.measurePerformance('restoreTeamToSyncedGroup', function () {
1124
1195
  var _this28$_legionClient;
1125
- return (_this28$_legionClient = _this28._legionClient).getOrgScope.apply(_this28$_legionClient, args);
1196
+ return (_this28$_legionClient = _this28._legionClient).restoreTeamToSyncedGroup.apply(_this28$_legionClient, args);
1126
1197
  }));
1127
1198
  case 2:
1128
1199
  case "end":
@@ -1130,19 +1201,22 @@ export var TeamsClient = /*#__PURE__*/function () {
1130
1201
  }
1131
1202
  }, _callee32, this);
1132
1203
  }));
1133
- function getOrgScope() {
1134
- return _getOrgScope.apply(this, arguments);
1204
+ function restoreTeamToSyncedGroup() {
1205
+ return _restoreTeamToSyncedGroup.apply(this, arguments);
1135
1206
  }
1136
- return getOrgScope;
1207
+ return restoreTeamToSyncedGroup;
1137
1208
  }()
1138
1209
  /**
1139
- * Restore soft-deleted team and sync to group
1210
+ * Get the difference between a team and a group
1211
+ * @param teamId
1212
+ * @param {ExternalReference} externalReference
1213
+ * @returns {Promise<TeamAndGroupDifference>}
1140
1214
  */
1141
1215
  )
1142
1216
  }, {
1143
- key: "restoreTeamToSyncedGroup",
1217
+ key: "getTeamAndGroupDiff",
1144
1218
  value: (function () {
1145
- var _restoreTeamToSyncedGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
1219
+ var _getTeamAndGroupDiff = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33() {
1146
1220
  var _this29 = this;
1147
1221
  var _len22,
1148
1222
  args,
@@ -1154,9 +1228,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1154
1228
  for (_len22 = _args33.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
1155
1229
  args[_key22] = _args33[_key22];
1156
1230
  }
1157
- return _context33.abrupt("return", this.measurePerformance('restoreTeamToSyncedGroup', function () {
1231
+ return _context33.abrupt("return", this.measurePerformance('getTeamAndGroupDiff', function () {
1158
1232
  var _this29$_legionClient;
1159
- return (_this29$_legionClient = _this29._legionClient).restoreTeamToSyncedGroup.apply(_this29$_legionClient, args);
1233
+ return (_this29$_legionClient = _this29._legionClient).getTeamAndGroupDiff.apply(_this29$_legionClient, args);
1160
1234
  }));
1161
1235
  case 2:
1162
1236
  case "end":
@@ -1164,22 +1238,21 @@ export var TeamsClient = /*#__PURE__*/function () {
1164
1238
  }
1165
1239
  }, _callee33, this);
1166
1240
  }));
1167
- function restoreTeamToSyncedGroup() {
1168
- return _restoreTeamToSyncedGroup.apply(this, arguments);
1241
+ function getTeamAndGroupDiff() {
1242
+ return _getTeamAndGroupDiff.apply(this, arguments);
1169
1243
  }
1170
- return restoreTeamToSyncedGroup;
1244
+ return getTeamAndGroupDiff;
1171
1245
  }()
1172
1246
  /**
1173
- * Get the difference between a team and a group
1247
+ * Link an existing team to a group
1174
1248
  * @param teamId
1175
1249
  * @param {ExternalReference} externalReference
1176
- * @returns {Promise<TeamAndGroupDifference>}
1177
1250
  */
1178
1251
  )
1179
1252
  }, {
1180
- key: "getTeamAndGroupDiff",
1253
+ key: "linkExistingTeamToGroup",
1181
1254
  value: (function () {
1182
- var _getTeamAndGroupDiff = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
1255
+ var _linkExistingTeamToGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {
1183
1256
  var _this30 = this;
1184
1257
  var _len23,
1185
1258
  args,
@@ -1191,9 +1264,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1191
1264
  for (_len23 = _args34.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
1192
1265
  args[_key23] = _args34[_key23];
1193
1266
  }
1194
- return _context34.abrupt("return", this.measurePerformance('getTeamAndGroupDiff', function () {
1267
+ return _context34.abrupt("return", this.measurePerformance('linkExistingTeamToGroup', function () {
1195
1268
  var _this30$_legionClient;
1196
- return (_this30$_legionClient = _this30._legionClient).getTeamAndGroupDiff.apply(_this30$_legionClient, args);
1269
+ return (_this30$_legionClient = _this30._legionClient).linkExistingTeamToGroup.apply(_this30$_legionClient, args);
1197
1270
  }));
1198
1271
  case 2:
1199
1272
  case "end":
@@ -1201,21 +1274,21 @@ export var TeamsClient = /*#__PURE__*/function () {
1201
1274
  }
1202
1275
  }, _callee34, this);
1203
1276
  }));
1204
- function getTeamAndGroupDiff() {
1205
- return _getTeamAndGroupDiff.apply(this, arguments);
1277
+ function linkExistingTeamToGroup() {
1278
+ return _linkExistingTeamToGroup.apply(this, arguments);
1206
1279
  }
1207
- return getTeamAndGroupDiff;
1280
+ return linkExistingTeamToGroup;
1208
1281
  }()
1209
1282
  /**
1210
- * Link an existing team to a group
1283
+ *
1211
1284
  * @param teamId
1212
- * @param {ExternalReference} externalReference
1285
+ * @returns {Promise<LinkedTeamsProfileDetails>}
1213
1286
  */
1214
1287
  )
1215
1288
  }, {
1216
- key: "linkExistingTeamToGroup",
1289
+ key: "getTeamProfileDetailsByTeamId",
1217
1290
  value: (function () {
1218
- var _linkExistingTeamToGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
1291
+ var _getTeamProfileDetailsByTeamId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
1219
1292
  var _this31 = this;
1220
1293
  var _len24,
1221
1294
  args,
@@ -1227,9 +1300,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1227
1300
  for (_len24 = _args35.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
1228
1301
  args[_key24] = _args35[_key24];
1229
1302
  }
1230
- return _context35.abrupt("return", this.measurePerformance('linkExistingTeamToGroup', function () {
1303
+ return _context35.abrupt("return", this.measurePerformance('getTeamProfileDetails', function () {
1231
1304
  var _this31$_legionClient;
1232
- return (_this31$_legionClient = _this31._legionClient).linkExistingTeamToGroup.apply(_this31$_legionClient, args);
1305
+ return (_this31$_legionClient = _this31._legionClient).getTeamProfileDetails.apply(_this31$_legionClient, args);
1233
1306
  }));
1234
1307
  case 2:
1235
1308
  case "end":
@@ -1237,42 +1310,6 @@ export var TeamsClient = /*#__PURE__*/function () {
1237
1310
  }
1238
1311
  }, _callee35, this);
1239
1312
  }));
1240
- function linkExistingTeamToGroup() {
1241
- return _linkExistingTeamToGroup.apply(this, arguments);
1242
- }
1243
- return linkExistingTeamToGroup;
1244
- }()
1245
- /**
1246
- *
1247
- * @param teamId
1248
- * @returns {Promise<LinkedTeamsProfileDetails>}
1249
- */
1250
- )
1251
- }, {
1252
- key: "getTeamProfileDetailsByTeamId",
1253
- value: (function () {
1254
- var _getTeamProfileDetailsByTeamId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36() {
1255
- var _this32 = this;
1256
- var _len25,
1257
- args,
1258
- _key25,
1259
- _args36 = arguments;
1260
- return _regeneratorRuntime.wrap(function _callee36$(_context36) {
1261
- while (1) switch (_context36.prev = _context36.next) {
1262
- case 0:
1263
- for (_len25 = _args36.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
1264
- args[_key25] = _args36[_key25];
1265
- }
1266
- return _context36.abrupt("return", this.measurePerformance('getTeamProfileDetails', function () {
1267
- var _this32$_legionClient;
1268
- return (_this32$_legionClient = _this32._legionClient).getTeamProfileDetails.apply(_this32$_legionClient, args);
1269
- }));
1270
- case 2:
1271
- case "end":
1272
- return _context36.stop();
1273
- }
1274
- }, _callee36, this);
1275
- }));
1276
1313
  function getTeamProfileDetailsByTeamId() {
1277
1314
  return _getTeamProfileDetailsByTeamId.apply(this, arguments);
1278
1315
  }
@@ -1287,21 +1324,21 @@ export var TeamsClient = /*#__PURE__*/function () {
1287
1324
  }, {
1288
1325
  key: "getSoftDeletdTeamById",
1289
1326
  value: (function () {
1290
- var _getSoftDeletdTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(teamId) {
1291
- var _this33 = this;
1292
- return _regeneratorRuntime.wrap(function _callee37$(_context37) {
1293
- while (1) switch (_context37.prev = _context37.next) {
1327
+ var _getSoftDeletdTeamById = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(teamId) {
1328
+ var _this32 = this;
1329
+ return _regeneratorRuntime.wrap(function _callee36$(_context36) {
1330
+ while (1) switch (_context36.prev = _context36.next) {
1294
1331
  case 0:
1295
- return _context37.abrupt("return", this.measurePerformance('getSoftDeletedTeamById', function () {
1296
- return _this33._legionClient.getSoftDeletedTeamById(teamId);
1332
+ return _context36.abrupt("return", this.measurePerformance('getSoftDeletedTeamById', function () {
1333
+ return _this32._legionClient.getSoftDeletedTeamById(teamId);
1297
1334
  }));
1298
1335
  case 1:
1299
1336
  case "end":
1300
- return _context37.stop();
1337
+ return _context36.stop();
1301
1338
  }
1302
- }, _callee37, this);
1339
+ }, _callee36, this);
1303
1340
  }));
1304
- function getSoftDeletdTeamById(_x12) {
1341
+ function getSoftDeletdTeamById(_x10) {
1305
1342
  return _getSoftDeletdTeamById.apply(this, arguments);
1306
1343
  }
1307
1344
  return getSoftDeletdTeamById;
@@ -1315,21 +1352,21 @@ export var TeamsClient = /*#__PURE__*/function () {
1315
1352
  }, {
1316
1353
  key: "getUserInSiteUserBase",
1317
1354
  value: (function () {
1318
- var _getUserInSiteUserBase = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(userId) {
1319
- var _this34 = this;
1320
- return _regeneratorRuntime.wrap(function _callee38$(_context38) {
1321
- while (1) switch (_context38.prev = _context38.next) {
1355
+ var _getUserInSiteUserBase = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(userId) {
1356
+ var _this33 = this;
1357
+ return _regeneratorRuntime.wrap(function _callee37$(_context37) {
1358
+ while (1) switch (_context37.prev = _context37.next) {
1322
1359
  case 0:
1323
- return _context38.abrupt("return", this.measurePerformance('getUserInSiteUserBase', function () {
1324
- return _this34._legionClient.getUserInSiteUserBase(userId);
1360
+ return _context37.abrupt("return", this.measurePerformance('getUserInSiteUserBase', function () {
1361
+ return _this33._legionClient.getUserInSiteUserBase(userId);
1325
1362
  }));
1326
1363
  case 1:
1327
1364
  case "end":
1328
- return _context38.stop();
1365
+ return _context37.stop();
1329
1366
  }
1330
- }, _callee38, this);
1367
+ }, _callee37, this);
1331
1368
  }));
1332
- function getUserInSiteUserBase(_x13) {
1369
+ function getUserInSiteUserBase(_x11) {
1333
1370
  return _getUserInSiteUserBase.apply(this, arguments);
1334
1371
  }
1335
1372
  return getUserInSiteUserBase;
@@ -1347,27 +1384,27 @@ export var TeamsClient = /*#__PURE__*/function () {
1347
1384
  }, {
1348
1385
  key: "getProfileWithMutability",
1349
1386
  value: (function () {
1350
- var _getProfileWithMutability = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39() {
1351
- var _this35 = this;
1352
- var _len26,
1387
+ var _getProfileWithMutability = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38() {
1388
+ var _this34 = this;
1389
+ var _len25,
1353
1390
  args,
1354
- _key26,
1355
- _args39 = arguments;
1356
- return _regeneratorRuntime.wrap(function _callee39$(_context39) {
1357
- while (1) switch (_context39.prev = _context39.next) {
1391
+ _key25,
1392
+ _args38 = arguments;
1393
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
1394
+ while (1) switch (_context38.prev = _context38.next) {
1358
1395
  case 0:
1359
- for (_len26 = _args39.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
1360
- args[_key26] = _args39[_key26];
1396
+ for (_len25 = _args38.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
1397
+ args[_key25] = _args38[_key25];
1361
1398
  }
1362
- return _context39.abrupt("return", this.measurePerformance('getProfileWithMutability', function () {
1363
- var _this35$_mutabilityCl;
1364
- return (_this35$_mutabilityCl = _this35._mutabilityClient).getProfileWithMutability.apply(_this35$_mutabilityCl, args);
1399
+ return _context38.abrupt("return", this.measurePerformance('getProfileWithMutability', function () {
1400
+ var _this34$_mutabilityCl;
1401
+ return (_this34$_mutabilityCl = _this34._mutabilityClient).getProfileWithMutability.apply(_this34$_mutabilityCl, args);
1365
1402
  }));
1366
1403
  case 2:
1367
1404
  case "end":
1368
- return _context39.stop();
1405
+ return _context38.stop();
1369
1406
  }
1370
- }, _callee39, this);
1407
+ }, _callee38, this);
1371
1408
  }));
1372
1409
  function getProfileWithMutability() {
1373
1410
  return _getProfileWithMutability.apply(this, arguments);
@@ -1381,13 +1418,13 @@ export var TeamsClient = /*#__PURE__*/function () {
1381
1418
  }, {
1382
1419
  key: "getIsSiteAdmin",
1383
1420
  value: function getIsSiteAdmin() {
1384
- var _this36 = this;
1385
- for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
1386
- args[_key27] = arguments[_key27];
1421
+ var _this35 = this;
1422
+ for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
1423
+ args[_key26] = arguments[_key26];
1387
1424
  }
1388
1425
  return this.measurePerformance('getIsSiteAdmin', function () {
1389
- var _this36$_permsClient;
1390
- return (_this36$_permsClient = _this36._permsClient).getIsSiteAdmin.apply(_this36$_permsClient, args);
1426
+ var _this35$_permsClient;
1427
+ return (_this35$_permsClient = _this35._permsClient).getIsSiteAdmin.apply(_this35$_permsClient, args);
1391
1428
  });
1392
1429
  }
1393
1430
 
@@ -1397,13 +1434,13 @@ export var TeamsClient = /*#__PURE__*/function () {
1397
1434
  }, {
1398
1435
  key: "addUsersToTeam",
1399
1436
  value: function addUsersToTeam() {
1400
- var _this37 = this;
1401
- for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
1402
- args[_key28] = arguments[_key28];
1437
+ var _this36 = this;
1438
+ for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
1439
+ args[_key27] = arguments[_key27];
1403
1440
  }
1404
1441
  return this.measurePerformance('addUsersToTeam', function () {
1405
- var _this37$_publicApiCli;
1406
- return (_this37$_publicApiCli = _this37._publicApiClient).addUsersToTeam.apply(_this37$_publicApiCli, args);
1442
+ var _this36$_publicApiCli;
1443
+ return (_this36$_publicApiCli = _this36._publicApiClient).addUsersToTeam.apply(_this36$_publicApiCli, args);
1407
1444
  });
1408
1445
  }
1409
1446
 
@@ -1413,13 +1450,13 @@ export var TeamsClient = /*#__PURE__*/function () {
1413
1450
  }, {
1414
1451
  key: "removeTeamMemberships",
1415
1452
  value: function removeTeamMemberships() {
1416
- var _this38 = this;
1417
- for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {
1418
- args[_key29] = arguments[_key29];
1453
+ var _this37 = this;
1454
+ for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
1455
+ args[_key28] = arguments[_key28];
1419
1456
  }
1420
1457
  return this.measurePerformance('removeTeamMemberships', function () {
1421
- var _this38$_publicApiCli;
1422
- return (_this38$_publicApiCli = _this38._publicApiClient).removeTeamMemberships.apply(_this38$_publicApiCli, args);
1458
+ var _this37$_publicApiCli;
1459
+ return (_this37$_publicApiCli = _this37._publicApiClient).removeTeamMemberships.apply(_this37$_publicApiCli, args);
1423
1460
  });
1424
1461
  }
1425
1462
 
@@ -1429,37 +1466,37 @@ export var TeamsClient = /*#__PURE__*/function () {
1429
1466
  }, {
1430
1467
  key: "restoreTeam",
1431
1468
  value: function restoreTeam() {
1432
- var _this39 = this;
1433
- for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {
1434
- args[_key30] = arguments[_key30];
1469
+ var _this38 = this;
1470
+ for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {
1471
+ args[_key29] = arguments[_key29];
1435
1472
  }
1436
1473
  return this.measurePerformance('restoreTeam', function () {
1437
- var _this39$_publicApiCli;
1438
- return (_this39$_publicApiCli = _this39._publicApiClient).restoreTeam.apply(_this39$_publicApiCli, args);
1474
+ var _this38$_publicApiCli;
1475
+ return (_this38$_publicApiCli = _this38._publicApiClient).restoreTeam.apply(_this38$_publicApiCli, args);
1439
1476
  });
1440
1477
  }
1441
1478
  }, {
1442
1479
  key: "getRecommendedProducts",
1443
1480
  value: function getRecommendedProducts() {
1444
- var _this40 = this;
1445
- for (var _len31 = arguments.length, args = new Array(_len31), _key31 = 0; _key31 < _len31; _key31++) {
1446
- args[_key31] = arguments[_key31];
1481
+ var _this39 = this;
1482
+ for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {
1483
+ args[_key30] = arguments[_key30];
1447
1484
  }
1448
1485
  return this.measurePerformance('getRecommendedProducts', function () {
1449
- var _this40$_invitationsC;
1450
- return (_this40$_invitationsC = _this40._invitationsClient).getProductRecommendations.apply(_this40$_invitationsC, args);
1486
+ var _this39$_invitationsC;
1487
+ return (_this39$_invitationsC = _this39._invitationsClient).getProductRecommendations.apply(_this39$_invitationsC, args);
1451
1488
  });
1452
1489
  }
1453
1490
  }, {
1454
1491
  key: "joinOrRequestDefaultAccessToProductsBulk",
1455
1492
  value: function joinOrRequestDefaultAccessToProductsBulk() {
1456
- var _this41 = this;
1457
- for (var _len32 = arguments.length, args = new Array(_len32), _key32 = 0; _key32 < _len32; _key32++) {
1458
- args[_key32] = arguments[_key32];
1493
+ var _this40 = this;
1494
+ for (var _len31 = arguments.length, args = new Array(_len31), _key31 = 0; _key31 < _len31; _key31++) {
1495
+ args[_key31] = arguments[_key31];
1459
1496
  }
1460
1497
  return this.measurePerformance('joinOrRequestDefaultAccessToProductsBulk', function () {
1461
- var _this41$_invitationsC;
1462
- return (_this41$_invitationsC = _this41._invitationsClient).joinOrRequestDefaultAccessToProductsBulk.apply(_this41$_invitationsC, args);
1498
+ var _this40$_invitationsC;
1499
+ return (_this40$_invitationsC = _this40._invitationsClient).joinOrRequestDefaultAccessToProductsBulk.apply(_this40$_invitationsC, args);
1463
1500
  });
1464
1501
  }
1465
1502
 
@@ -1469,19 +1506,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1469
1506
  }, {
1470
1507
  key: "getWriteTeamMediaToken",
1471
1508
  value: (function () {
1472
- var _getWriteTeamMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
1473
- var _this42 = this;
1474
- return _regeneratorRuntime.wrap(function _callee40$(_context40) {
1475
- while (1) switch (_context40.prev = _context40.next) {
1509
+ var _getWriteTeamMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39() {
1510
+ var _this41 = this;
1511
+ return _regeneratorRuntime.wrap(function _callee39$(_context39) {
1512
+ while (1) switch (_context39.prev = _context39.next) {
1476
1513
  case 0:
1477
- return _context40.abrupt("return", this.measurePerformance('getWriteTeamMediaToken', function () {
1478
- return _this42._legionClient.getWriteMediaToken();
1514
+ return _context39.abrupt("return", this.measurePerformance('getWriteTeamMediaToken', function () {
1515
+ return _this41._legionClient.getWriteMediaToken();
1479
1516
  }));
1480
1517
  case 1:
1481
1518
  case "end":
1482
- return _context40.stop();
1519
+ return _context39.stop();
1483
1520
  }
1484
- }, _callee40, this);
1521
+ }, _callee39, this);
1485
1522
  }));
1486
1523
  function getWriteTeamMediaToken() {
1487
1524
  return _getWriteTeamMediaToken.apply(this, arguments);
@@ -1495,27 +1532,27 @@ export var TeamsClient = /*#__PURE__*/function () {
1495
1532
  }, {
1496
1533
  key: "getReadMediaToken",
1497
1534
  value: (function () {
1498
- var _getReadMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
1499
- var _this43 = this;
1500
- var _len33,
1535
+ var _getReadMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
1536
+ var _this42 = this;
1537
+ var _len32,
1501
1538
  args,
1502
- _key33,
1503
- _args41 = arguments;
1504
- return _regeneratorRuntime.wrap(function _callee41$(_context41) {
1505
- while (1) switch (_context41.prev = _context41.next) {
1539
+ _key32,
1540
+ _args40 = arguments;
1541
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
1542
+ while (1) switch (_context40.prev = _context40.next) {
1506
1543
  case 0:
1507
- for (_len33 = _args41.length, args = new Array(_len33), _key33 = 0; _key33 < _len33; _key33++) {
1508
- args[_key33] = _args41[_key33];
1544
+ for (_len32 = _args40.length, args = new Array(_len32), _key32 = 0; _key32 < _len32; _key32++) {
1545
+ args[_key32] = _args40[_key32];
1509
1546
  }
1510
- return _context41.abrupt("return", this.measurePerformance('getReadMediaToken', function () {
1511
- var _this43$_userPreferen;
1512
- return (_this43$_userPreferen = _this43._userPreferencesClient).getReadMediaToken.apply(_this43$_userPreferen, args);
1547
+ return _context40.abrupt("return", this.measurePerformance('getReadMediaToken', function () {
1548
+ var _this42$_userPreferen;
1549
+ return (_this42$_userPreferen = _this42._userPreferencesClient).getReadMediaToken.apply(_this42$_userPreferen, args);
1513
1550
  }));
1514
1551
  case 2:
1515
1552
  case "end":
1516
- return _context41.stop();
1553
+ return _context40.stop();
1517
1554
  }
1518
- }, _callee41, this);
1555
+ }, _callee40, this);
1519
1556
  }));
1520
1557
  function getReadMediaToken() {
1521
1558
  return _getReadMediaToken.apply(this, arguments);
@@ -1529,19 +1566,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1529
1566
  }, {
1530
1567
  key: "getWriteUserMediaToken",
1531
1568
  value: (function () {
1532
- var _getWriteUserMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
1533
- var _this44 = this;
1534
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
1535
- while (1) switch (_context42.prev = _context42.next) {
1569
+ var _getWriteUserMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
1570
+ var _this43 = this;
1571
+ return _regeneratorRuntime.wrap(function _callee41$(_context41) {
1572
+ while (1) switch (_context41.prev = _context41.next) {
1536
1573
  case 0:
1537
- return _context42.abrupt("return", this.measurePerformance('getWriteUserMediaToken', function () {
1538
- return _this44._userPreferencesClient.getWriteMediaToken();
1574
+ return _context41.abrupt("return", this.measurePerformance('getWriteUserMediaToken', function () {
1575
+ return _this43._userPreferencesClient.getWriteMediaToken();
1539
1576
  }));
1540
1577
  case 1:
1541
1578
  case "end":
1542
- return _context42.stop();
1579
+ return _context41.stop();
1543
1580
  }
1544
- }, _callee42, this);
1581
+ }, _callee41, this);
1545
1582
  }));
1546
1583
  function getWriteUserMediaToken() {
1547
1584
  return _getWriteUserMediaToken.apply(this, arguments);
@@ -1555,21 +1592,21 @@ export var TeamsClient = /*#__PURE__*/function () {
1555
1592
  }, {
1556
1593
  key: "updateUserHeaderImage",
1557
1594
  value: (function () {
1558
- var _updateUserHeaderImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(headerImageId) {
1559
- var _this45 = this;
1560
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
1561
- while (1) switch (_context43.prev = _context43.next) {
1595
+ var _updateUserHeaderImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(headerImageId) {
1596
+ var _this44 = this;
1597
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
1598
+ while (1) switch (_context42.prev = _context42.next) {
1562
1599
  case 0:
1563
- return _context43.abrupt("return", this.measurePerformance('updateUserHeaderImage', function () {
1564
- return _this45._userPreferencesClient.updateUserHeaderImage(headerImageId);
1600
+ return _context42.abrupt("return", this.measurePerformance('updateUserHeaderImage', function () {
1601
+ return _this44._userPreferencesClient.updateUserHeaderImage(headerImageId);
1565
1602
  }));
1566
1603
  case 1:
1567
1604
  case "end":
1568
- return _context43.stop();
1605
+ return _context42.stop();
1569
1606
  }
1570
- }, _callee43, this);
1607
+ }, _callee42, this);
1571
1608
  }));
1572
- function updateUserHeaderImage(_x14) {
1609
+ function updateUserHeaderImage(_x12) {
1573
1610
  return _updateUserHeaderImage.apply(this, arguments);
1574
1611
  }
1575
1612
  return updateUserHeaderImage;
@@ -1581,7 +1618,41 @@ export var TeamsClient = /*#__PURE__*/function () {
1581
1618
  }, {
1582
1619
  key: "getUserContainers",
1583
1620
  value: (function () {
1584
- var _getUserContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
1621
+ var _getUserContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
1622
+ var _this45 = this;
1623
+ var _len33,
1624
+ args,
1625
+ _key33,
1626
+ _args43 = arguments;
1627
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
1628
+ while (1) switch (_context43.prev = _context43.next) {
1629
+ case 0:
1630
+ for (_len33 = _args43.length, args = new Array(_len33), _key33 = 0; _key33 < _len33; _key33++) {
1631
+ args[_key33] = _args43[_key33];
1632
+ }
1633
+ return _context43.abrupt("return", this.measurePerformance('getUserContainers', function () {
1634
+ var _this45$_collaboratio;
1635
+ return (_this45$_collaboratio = _this45._collaborationGraphClient).getUserContainers.apply(_this45$_collaboratio, args);
1636
+ }));
1637
+ case 2:
1638
+ case "end":
1639
+ return _context43.stop();
1640
+ }
1641
+ }, _callee43, this);
1642
+ }));
1643
+ function getUserContainers() {
1644
+ return _getUserContainers.apply(this, arguments);
1645
+ }
1646
+ return getUserContainers;
1647
+ }()
1648
+ /**
1649
+ * Fetch mutatability of external managed user fields
1650
+ */
1651
+ )
1652
+ }, {
1653
+ key: "getUserManageConfig",
1654
+ value: (function () {
1655
+ var _getUserManageConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
1585
1656
  var _this46 = this;
1586
1657
  var _len34,
1587
1658
  args,
@@ -1593,9 +1664,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1593
1664
  for (_len34 = _args44.length, args = new Array(_len34), _key34 = 0; _key34 < _len34; _key34++) {
1594
1665
  args[_key34] = _args44[_key34];
1595
1666
  }
1596
- return _context44.abrupt("return", this.measurePerformance('getUserContainers', function () {
1597
- var _this46$_collaboratio;
1598
- return (_this46$_collaboratio = _this46._collaborationGraphClient).getUserContainers.apply(_this46$_collaboratio, args);
1667
+ return _context44.abrupt("return", this.measurePerformance('getUserManageConfig', function () {
1668
+ var _this46$_identityClie;
1669
+ return (_this46$_identityClie = _this46._identityClient).getUserManageConfig.apply(_this46$_identityClie, args);
1599
1670
  }));
1600
1671
  case 2:
1601
1672
  case "end":
@@ -1603,19 +1674,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1603
1674
  }
1604
1675
  }, _callee44, this);
1605
1676
  }));
1606
- function getUserContainers() {
1607
- return _getUserContainers.apply(this, arguments);
1677
+ function getUserManageConfig() {
1678
+ return _getUserManageConfig.apply(this, arguments);
1608
1679
  }
1609
- return getUserContainers;
1680
+ return getUserManageConfig;
1610
1681
  }()
1611
1682
  /**
1612
- * Fetch mutatability of external managed user fields
1683
+ * Fetch user avatar uploaded status
1613
1684
  */
1614
1685
  )
1615
1686
  }, {
1616
- key: "getUserManageConfig",
1687
+ key: "getMyAvatarUploadedStatus",
1617
1688
  value: (function () {
1618
- var _getUserManageConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
1689
+ var _getMyAvatarUploadedStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45() {
1619
1690
  var _this47 = this;
1620
1691
  var _len35,
1621
1692
  args,
@@ -1627,9 +1698,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1627
1698
  for (_len35 = _args45.length, args = new Array(_len35), _key35 = 0; _key35 < _len35; _key35++) {
1628
1699
  args[_key35] = _args45[_key35];
1629
1700
  }
1630
- return _context45.abrupt("return", this.measurePerformance('getUserManageConfig', function () {
1701
+ return _context45.abrupt("return", this.measurePerformance('getMyAvatarUploadedStatus', function () {
1631
1702
  var _this47$_identityClie;
1632
- return (_this47$_identityClie = _this47._identityClient).getUserManageConfig.apply(_this47$_identityClie, args);
1703
+ return (_this47$_identityClie = _this47._identityClient).getMyAvatarUploadedStatus.apply(_this47$_identityClie, args);
1633
1704
  }));
1634
1705
  case 2:
1635
1706
  case "end":
@@ -1637,19 +1708,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1637
1708
  }
1638
1709
  }, _callee45, this);
1639
1710
  }));
1640
- function getUserManageConfig() {
1641
- return _getUserManageConfig.apply(this, arguments);
1711
+ function getMyAvatarUploadedStatus() {
1712
+ return _getMyAvatarUploadedStatus.apply(this, arguments);
1642
1713
  }
1643
- return getUserManageConfig;
1714
+ return getMyAvatarUploadedStatus;
1644
1715
  }()
1645
1716
  /**
1646
- * Fetch user avatar uploaded status
1717
+ * Delete user avatar
1647
1718
  */
1648
1719
  )
1649
1720
  }, {
1650
- key: "getMyAvatarUploadedStatus",
1721
+ key: "deleteAvatar",
1651
1722
  value: (function () {
1652
- var _getMyAvatarUploadedStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
1723
+ var _deleteAvatar = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
1653
1724
  var _this48 = this;
1654
1725
  var _len36,
1655
1726
  args,
@@ -1661,9 +1732,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1661
1732
  for (_len36 = _args46.length, args = new Array(_len36), _key36 = 0; _key36 < _len36; _key36++) {
1662
1733
  args[_key36] = _args46[_key36];
1663
1734
  }
1664
- return _context46.abrupt("return", this.measurePerformance('getMyAvatarUploadedStatus', function () {
1735
+ return _context46.abrupt("return", this.measurePerformance('deleteUserAvatar', function () {
1665
1736
  var _this48$_identityClie;
1666
- return (_this48$_identityClie = _this48._identityClient).getMyAvatarUploadedStatus.apply(_this48$_identityClie, args);
1737
+ return (_this48$_identityClie = _this48._identityClient).deleteAvatar.apply(_this48$_identityClie, args);
1667
1738
  }));
1668
1739
  case 2:
1669
1740
  case "end":
@@ -1671,19 +1742,15 @@ export var TeamsClient = /*#__PURE__*/function () {
1671
1742
  }
1672
1743
  }, _callee46, this);
1673
1744
  }));
1674
- function getMyAvatarUploadedStatus() {
1675
- return _getMyAvatarUploadedStatus.apply(this, arguments);
1745
+ function deleteAvatar() {
1746
+ return _deleteAvatar.apply(this, arguments);
1676
1747
  }
1677
- return getMyAvatarUploadedStatus;
1678
- }()
1679
- /**
1680
- * Delete user avatar
1681
- */
1682
- )
1748
+ return deleteAvatar;
1749
+ }())
1683
1750
  }, {
1684
- key: "deleteAvatar",
1685
- value: (function () {
1686
- var _deleteAvatar = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
1751
+ key: "fetchUserAvatarInfo",
1752
+ value: function () {
1753
+ var _fetchUserAvatarInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
1687
1754
  var _this49 = this;
1688
1755
  var _len37,
1689
1756
  args,
@@ -1695,9 +1762,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1695
1762
  for (_len37 = _args47.length, args = new Array(_len37), _key37 = 0; _key37 < _len37; _key37++) {
1696
1763
  args[_key37] = _args47[_key37];
1697
1764
  }
1698
- return _context47.abrupt("return", this.measurePerformance('deleteUserAvatar', function () {
1765
+ return _context47.abrupt("return", this.measurePerformance('fetchUserAvatarInfo', function () {
1699
1766
  var _this49$_identityClie;
1700
- return (_this49$_identityClie = _this49._identityClient).deleteAvatar.apply(_this49$_identityClie, args);
1767
+ return (_this49$_identityClie = _this49._identityClient).fetchUserAvatarInfo.apply(_this49$_identityClie, args);
1701
1768
  }));
1702
1769
  case 2:
1703
1770
  case "end":
@@ -1705,15 +1772,18 @@ export var TeamsClient = /*#__PURE__*/function () {
1705
1772
  }
1706
1773
  }, _callee47, this);
1707
1774
  }));
1708
- function deleteAvatar() {
1709
- return _deleteAvatar.apply(this, arguments);
1775
+ function fetchUserAvatarInfo() {
1776
+ return _fetchUserAvatarInfo.apply(this, arguments);
1710
1777
  }
1711
- return deleteAvatar;
1712
- }())
1778
+ return fetchUserAvatarInfo;
1779
+ }()
1780
+ /**
1781
+ * Fetch Team link icons
1782
+ */
1713
1783
  }, {
1714
- key: "fetchUserAvatarInfo",
1715
- value: function () {
1716
- var _fetchUserAvatarInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
1784
+ key: "getTeamLinkIcons",
1785
+ value: (function () {
1786
+ var _getTeamLinkIcons = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
1717
1787
  var _this50 = this;
1718
1788
  var _len38,
1719
1789
  args,
@@ -1725,9 +1795,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1725
1795
  for (_len38 = _args48.length, args = new Array(_len38), _key38 = 0; _key38 < _len38; _key38++) {
1726
1796
  args[_key38] = _args48[_key38];
1727
1797
  }
1728
- return _context48.abrupt("return", this.measurePerformance('fetchUserAvatarInfo', function () {
1729
- var _this50$_identityClie;
1730
- return (_this50$_identityClie = _this50._identityClient).fetchUserAvatarInfo.apply(_this50$_identityClie, args);
1798
+ return _context48.abrupt("return", this.measurePerformance('getTeamLinkIcons', function () {
1799
+ var _this50$_objectResolv;
1800
+ return (_this50$_objectResolv = _this50._objectResolverClient).getTeamLinkIcons.apply(_this50$_objectResolv, args);
1731
1801
  }));
1732
1802
  case 2:
1733
1803
  case "end":
@@ -1735,18 +1805,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1735
1805
  }
1736
1806
  }, _callee48, this);
1737
1807
  }));
1738
- function fetchUserAvatarInfo() {
1739
- return _fetchUserAvatarInfo.apply(this, arguments);
1808
+ function getTeamLinkIcons() {
1809
+ return _getTeamLinkIcons.apply(this, arguments);
1740
1810
  }
1741
- return fetchUserAvatarInfo;
1811
+ return getTeamLinkIcons;
1742
1812
  }()
1743
1813
  /**
1744
- * Fetch Team link icons
1814
+ * Fetch ARI from URL
1745
1815
  */
1816
+ )
1746
1817
  }, {
1747
- key: "getTeamLinkIcons",
1818
+ key: "getAriFromUrl",
1748
1819
  value: (function () {
1749
- var _getTeamLinkIcons = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
1820
+ var _getAriFromUrl = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
1750
1821
  var _this51 = this;
1751
1822
  var _len39,
1752
1823
  args,
@@ -1758,9 +1829,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1758
1829
  for (_len39 = _args49.length, args = new Array(_len39), _key39 = 0; _key39 < _len39; _key39++) {
1759
1830
  args[_key39] = _args49[_key39];
1760
1831
  }
1761
- return _context49.abrupt("return", this.measurePerformance('getTeamLinkIcons', function () {
1832
+ return _context49.abrupt("return", this.measurePerformance('getAriFromUrl', function () {
1762
1833
  var _this51$_objectResolv;
1763
- return (_this51$_objectResolv = _this51._objectResolverClient).getTeamLinkIcons.apply(_this51$_objectResolv, args);
1834
+ return (_this51$_objectResolv = _this51._objectResolverClient).getAriFromUrl.apply(_this51$_objectResolv, args);
1764
1835
  }));
1765
1836
  case 2:
1766
1837
  case "end":
@@ -1768,10 +1839,10 @@ export var TeamsClient = /*#__PURE__*/function () {
1768
1839
  }
1769
1840
  }, _callee49, this);
1770
1841
  }));
1771
- function getTeamLinkIcons() {
1772
- return _getTeamLinkIcons.apply(this, arguments);
1842
+ function getAriFromUrl() {
1843
+ return _getAriFromUrl.apply(this, arguments);
1773
1844
  }
1774
- return getTeamLinkIcons;
1845
+ return getAriFromUrl;
1775
1846
  }()
1776
1847
  /**
1777
1848
  * Fetch team in slack details
@@ -2107,6 +2178,36 @@ export var TeamsClient = /*#__PURE__*/function () {
2107
2178
  }
2108
2179
  return deleteHelpPointer;
2109
2180
  }()
2181
+ }, {
2182
+ key: "getUserTenure",
2183
+ value: function () {
2184
+ var _getUserTenure = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63() {
2185
+ var _this57 = this;
2186
+ var _len45,
2187
+ args,
2188
+ _key45,
2189
+ _args63 = arguments;
2190
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
2191
+ while (1) switch (_context63.prev = _context63.next) {
2192
+ case 0:
2193
+ for (_len45 = _args63.length, args = new Array(_len45), _key45 = 0; _key45 < _len45; _key45++) {
2194
+ args[_key45] = _args63[_key45];
2195
+ }
2196
+ return _context63.abrupt("return", this.measurePerformance('getUserTenure', function () {
2197
+ var _this57$_replinesClie;
2198
+ return (_this57$_replinesClie = _this57._replinesClient).getUserTenure.apply(_this57$_replinesClie, args);
2199
+ }));
2200
+ case 2:
2201
+ case "end":
2202
+ return _context63.stop();
2203
+ }
2204
+ }, _callee63, this);
2205
+ }));
2206
+ function getUserTenure() {
2207
+ return _getUserTenure.apply(this, arguments);
2208
+ }
2209
+ return getUserTenure;
2210
+ }()
2110
2211
  }]);
2111
2212
  }();
2112
2213
  export var teamsClient = new TeamsClient();