@atlaskit/teams-client 4.2.0 → 4.3.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 (49) hide show
  1. package/CHANGELOG.md +8 -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 +644 -577
  7. package/dist/cjs/services/replines-client/index.js +61 -0
  8. package/dist/cjs/services/rest-client/index.js +3 -3
  9. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  10. package/dist/cjs/services/sentry/utils/sentry-client.js +1 -2
  11. package/dist/cjs/services/team-central-client/index.js +1 -1
  12. package/dist/cjs/types/team-container.js +19 -0
  13. package/dist/cjs/types/tenure.js +1 -0
  14. package/dist/es2019/common/utils/ufo/constants.js +1 -1
  15. package/dist/es2019/common/utils/ufo/index.js +2 -2
  16. package/dist/es2019/services/legion-client/index.js +5 -0
  17. package/dist/es2019/services/main.js +13 -0
  18. package/dist/es2019/services/replines-client/index.js +23 -0
  19. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  20. package/dist/es2019/types/team-container.js +13 -0
  21. package/dist/es2019/types/tenure.js +0 -0
  22. package/dist/esm/common/utils/ufo/constants.js +1 -1
  23. package/dist/esm/common/utils/ufo/index.js +2 -2
  24. package/dist/esm/mocks/endpoints.js +17 -17
  25. package/dist/esm/services/legion-client/index.js +215 -196
  26. package/dist/esm/services/main.js +644 -577
  27. package/dist/esm/services/replines-client/index.js +54 -0
  28. package/dist/esm/services/rest-client/index.js +3 -3
  29. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  30. package/dist/esm/services/team-central-client/index.js +1 -1
  31. package/dist/esm/types/team-container.js +13 -0
  32. package/dist/esm/types/tenure.js +0 -0
  33. package/dist/types/common/utils/ufo/constants.d.ts +2 -2
  34. package/dist/types/services/legion-client/index.d.ts +2 -0
  35. package/dist/types/services/main.d.ts +7 -0
  36. package/dist/types/services/replines-client/index.d.ts +11 -0
  37. package/dist/types/services/team-central-client/index.d.ts +1 -1
  38. package/dist/types/types/index.d.ts +1 -0
  39. package/dist/types/types/team-container.d.ts +38 -0
  40. package/dist/types/types/tenure.d.ts +5 -0
  41. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +4 -2
  42. package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -0
  43. package/dist/types-ts4.5/services/main.d.ts +7 -0
  44. package/dist/types-ts4.5/services/replines-client/index.d.ts +11 -0
  45. package/dist/types-ts4.5/services/team-central-client/index.d.ts +1 -1
  46. package/dist/types-ts4.5/types/index.d.ts +1 -0
  47. package/dist/types-ts4.5/types/team-container.d.ts +38 -0
  48. package/dist/types-ts4.5/types/tenure.d.ts +5 -0
  49. 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,47 +1532,73 @@ export var TeamsClient = /*#__PURE__*/function () {
1495
1532
  }, {
1496
1533
  key: "getReadMediaToken",
1497
1534
  value: (function () {
1498
- var _getReadMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
1535
+ var _getReadMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40() {
1536
+ var _this42 = this;
1537
+ var _len32,
1538
+ args,
1539
+ _key32,
1540
+ _args40 = arguments;
1541
+ return _regeneratorRuntime.wrap(function _callee40$(_context40) {
1542
+ while (1) switch (_context40.prev = _context40.next) {
1543
+ case 0:
1544
+ for (_len32 = _args40.length, args = new Array(_len32), _key32 = 0; _key32 < _len32; _key32++) {
1545
+ args[_key32] = _args40[_key32];
1546
+ }
1547
+ return _context40.abrupt("return", this.measurePerformance('getReadMediaToken', function () {
1548
+ var _this42$_userPreferen;
1549
+ return (_this42$_userPreferen = _this42._userPreferencesClient).getReadMediaToken.apply(_this42$_userPreferen, args);
1550
+ }));
1551
+ case 2:
1552
+ case "end":
1553
+ return _context40.stop();
1554
+ }
1555
+ }, _callee40, this);
1556
+ }));
1557
+ function getReadMediaToken() {
1558
+ return _getReadMediaToken.apply(this, arguments);
1559
+ }
1560
+ return getReadMediaToken;
1561
+ }()
1562
+ /**
1563
+ * Get token to upload media for a user
1564
+ */
1565
+ )
1566
+ }, {
1567
+ key: "getWriteUserMediaToken",
1568
+ value: (function () {
1569
+ var _getWriteUserMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41() {
1499
1570
  var _this43 = this;
1500
- var _len33,
1501
- args,
1502
- _key33,
1503
- _args41 = arguments;
1504
1571
  return _regeneratorRuntime.wrap(function _callee41$(_context41) {
1505
1572
  while (1) switch (_context41.prev = _context41.next) {
1506
1573
  case 0:
1507
- for (_len33 = _args41.length, args = new Array(_len33), _key33 = 0; _key33 < _len33; _key33++) {
1508
- args[_key33] = _args41[_key33];
1509
- }
1510
- return _context41.abrupt("return", this.measurePerformance('getReadMediaToken', function () {
1511
- var _this43$_userPreferen;
1512
- return (_this43$_userPreferen = _this43._userPreferencesClient).getReadMediaToken.apply(_this43$_userPreferen, args);
1574
+ return _context41.abrupt("return", this.measurePerformance('getWriteUserMediaToken', function () {
1575
+ return _this43._userPreferencesClient.getWriteMediaToken();
1513
1576
  }));
1514
- case 2:
1577
+ case 1:
1515
1578
  case "end":
1516
1579
  return _context41.stop();
1517
1580
  }
1518
1581
  }, _callee41, this);
1519
1582
  }));
1520
- function getReadMediaToken() {
1521
- return _getReadMediaToken.apply(this, arguments);
1583
+ function getWriteUserMediaToken() {
1584
+ return _getWriteUserMediaToken.apply(this, arguments);
1522
1585
  }
1523
- return getReadMediaToken;
1586
+ return getWriteUserMediaToken;
1524
1587
  }()
1525
1588
  /**
1526
- * Get token to upload media for a user
1589
+ * Update header image for a user
1527
1590
  */
1528
1591
  )
1529
1592
  }, {
1530
- key: "getWriteUserMediaToken",
1593
+ key: "updateUserHeaderImage",
1531
1594
  value: (function () {
1532
- var _getWriteUserMediaToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
1595
+ var _updateUserHeaderImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(headerImageId) {
1533
1596
  var _this44 = this;
1534
1597
  return _regeneratorRuntime.wrap(function _callee42$(_context42) {
1535
1598
  while (1) switch (_context42.prev = _context42.next) {
1536
1599
  case 0:
1537
- return _context42.abrupt("return", this.measurePerformance('getWriteUserMediaToken', function () {
1538
- return _this44._userPreferencesClient.getWriteMediaToken();
1600
+ return _context42.abrupt("return", this.measurePerformance('updateUserHeaderImage', function () {
1601
+ return _this44._userPreferencesClient.updateUserHeaderImage(headerImageId);
1539
1602
  }));
1540
1603
  case 1:
1541
1604
  case "end":
@@ -1543,45 +1606,53 @@ export var TeamsClient = /*#__PURE__*/function () {
1543
1606
  }
1544
1607
  }, _callee42, this);
1545
1608
  }));
1546
- function getWriteUserMediaToken() {
1547
- return _getWriteUserMediaToken.apply(this, arguments);
1609
+ function updateUserHeaderImage(_x12) {
1610
+ return _updateUserHeaderImage.apply(this, arguments);
1548
1611
  }
1549
- return getWriteUserMediaToken;
1612
+ return updateUserHeaderImage;
1550
1613
  }()
1551
1614
  /**
1552
- * Update header image for a user
1615
+ * Fetch user containers from collboration graph
1553
1616
  */
1554
1617
  )
1555
1618
  }, {
1556
- key: "updateUserHeaderImage",
1619
+ key: "getUserContainers",
1557
1620
  value: (function () {
1558
- var _updateUserHeaderImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(headerImageId) {
1621
+ var _getUserContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
1559
1622
  var _this45 = this;
1623
+ var _len33,
1624
+ args,
1625
+ _key33,
1626
+ _args43 = arguments;
1560
1627
  return _regeneratorRuntime.wrap(function _callee43$(_context43) {
1561
1628
  while (1) switch (_context43.prev = _context43.next) {
1562
1629
  case 0:
1563
- return _context43.abrupt("return", this.measurePerformance('updateUserHeaderImage', function () {
1564
- return _this45._userPreferencesClient.updateUserHeaderImage(headerImageId);
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);
1565
1636
  }));
1566
- case 1:
1637
+ case 2:
1567
1638
  case "end":
1568
1639
  return _context43.stop();
1569
1640
  }
1570
1641
  }, _callee43, this);
1571
1642
  }));
1572
- function updateUserHeaderImage(_x14) {
1573
- return _updateUserHeaderImage.apply(this, arguments);
1643
+ function getUserContainers() {
1644
+ return _getUserContainers.apply(this, arguments);
1574
1645
  }
1575
- return updateUserHeaderImage;
1646
+ return getUserContainers;
1576
1647
  }()
1577
1648
  /**
1578
- * Fetch user containers from collboration graph
1649
+ * Fetch mutatability of external managed user fields
1579
1650
  */
1580
1651
  )
1581
1652
  }, {
1582
- key: "getUserContainers",
1653
+ key: "getUserManageConfig",
1583
1654
  value: (function () {
1584
- var _getUserContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
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 team in slack details
1745
1815
  */
1816
+ )
1746
1817
  }, {
1747
- key: "getTeamLinkIcons",
1818
+ key: "getTeamInSlack",
1748
1819
  value: (function () {
1749
- var _getTeamLinkIcons = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
1820
+ var _getTeamInSlack = _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 () {
1762
- var _this51$_objectResolv;
1763
- return (_this51$_objectResolv = _this51._objectResolverClient).getTeamLinkIcons.apply(_this51$_objectResolv, args);
1832
+ return _context49.abrupt("return", this.measurePerformance('getTeamInSlack', function () {
1833
+ var _this51$_teamsInSlack;
1834
+ return (_this51$_teamsInSlack = _this51._teamsInSlackClient).getTeamInSlack.apply(_this51$_teamsInSlack, args);
1764
1835
  }));
1765
1836
  case 2:
1766
1837
  case "end":
@@ -1768,19 +1839,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1768
1839
  }
1769
1840
  }, _callee49, this);
1770
1841
  }));
1771
- function getTeamLinkIcons() {
1772
- return _getTeamLinkIcons.apply(this, arguments);
1842
+ function getTeamInSlack() {
1843
+ return _getTeamInSlack.apply(this, arguments);
1773
1844
  }
1774
- return getTeamLinkIcons;
1845
+ return getTeamInSlack;
1775
1846
  }()
1776
1847
  /**
1777
- * Fetch team in slack details
1848
+ * Delete team in slack
1778
1849
  */
1779
1850
  )
1780
1851
  }, {
1781
- key: "getTeamInSlack",
1852
+ key: "disconnectTeamInSlack",
1782
1853
  value: (function () {
1783
- var _getTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
1854
+ var _disconnectTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
1784
1855
  var _this52 = this;
1785
1856
  var _len40,
1786
1857
  args,
@@ -1792,9 +1863,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1792
1863
  for (_len40 = _args50.length, args = new Array(_len40), _key40 = 0; _key40 < _len40; _key40++) {
1793
1864
  args[_key40] = _args50[_key40];
1794
1865
  }
1795
- return _context50.abrupt("return", this.measurePerformance('getTeamInSlack', function () {
1866
+ return _context50.abrupt("return", this.measurePerformance('disconnectTeamInSlack', function () {
1796
1867
  var _this52$_teamsInSlack;
1797
- return (_this52$_teamsInSlack = _this52._teamsInSlackClient).getTeamInSlack.apply(_this52$_teamsInSlack, args);
1868
+ return (_this52$_teamsInSlack = _this52._teamsInSlackClient).disconnectTeamInSlack.apply(_this52$_teamsInSlack, args);
1798
1869
  }));
1799
1870
  case 2:
1800
1871
  case "end":
@@ -1802,19 +1873,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1802
1873
  }
1803
1874
  }, _callee50, this);
1804
1875
  }));
1805
- function getTeamInSlack() {
1806
- return _getTeamInSlack.apply(this, arguments);
1876
+ function disconnectTeamInSlack() {
1877
+ return _disconnectTeamInSlack.apply(this, arguments);
1807
1878
  }
1808
- return getTeamInSlack;
1879
+ return disconnectTeamInSlack;
1809
1880
  }()
1810
1881
  /**
1811
- * Delete team in slack
1882
+ * Update team in slack
1812
1883
  */
1813
1884
  )
1814
1885
  }, {
1815
- key: "disconnectTeamInSlack",
1886
+ key: "updateTeamInSlack",
1816
1887
  value: (function () {
1817
- var _disconnectTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
1888
+ var _updateTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
1818
1889
  var _this53 = this;
1819
1890
  var _len41,
1820
1891
  args,
@@ -1826,9 +1897,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1826
1897
  for (_len41 = _args51.length, args = new Array(_len41), _key41 = 0; _key41 < _len41; _key41++) {
1827
1898
  args[_key41] = _args51[_key41];
1828
1899
  }
1829
- return _context51.abrupt("return", this.measurePerformance('disconnectTeamInSlack', function () {
1900
+ return _context51.abrupt("return", this.measurePerformance('updateTeamInSlack', function () {
1830
1901
  var _this53$_teamsInSlack;
1831
- return (_this53$_teamsInSlack = _this53._teamsInSlackClient).disconnectTeamInSlack.apply(_this53$_teamsInSlack, args);
1902
+ return (_this53$_teamsInSlack = _this53._teamsInSlackClient).updateTeamInSlack.apply(_this53$_teamsInSlack, args);
1832
1903
  }));
1833
1904
  case 2:
1834
1905
  case "end":
@@ -1836,19 +1907,19 @@ export var TeamsClient = /*#__PURE__*/function () {
1836
1907
  }
1837
1908
  }, _callee51, this);
1838
1909
  }));
1839
- function disconnectTeamInSlack() {
1840
- return _disconnectTeamInSlack.apply(this, arguments);
1910
+ function updateTeamInSlack() {
1911
+ return _updateTeamInSlack.apply(this, arguments);
1841
1912
  }
1842
- return disconnectTeamInSlack;
1913
+ return updateTeamInSlack;
1843
1914
  }()
1844
1915
  /**
1845
- * Update team in slack
1916
+ * Update user details
1846
1917
  */
1847
1918
  )
1848
1919
  }, {
1849
- key: "updateTeamInSlack",
1920
+ key: "updateUser",
1850
1921
  value: (function () {
1851
- var _updateTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52() {
1922
+ var _updateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52() {
1852
1923
  var _this54 = this;
1853
1924
  var _len42,
1854
1925
  args,
@@ -1860,9 +1931,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1860
1931
  for (_len42 = _args52.length, args = new Array(_len42), _key42 = 0; _key42 < _len42; _key42++) {
1861
1932
  args[_key42] = _args52[_key42];
1862
1933
  }
1863
- return _context52.abrupt("return", this.measurePerformance('updateTeamInSlack', function () {
1864
- var _this54$_teamsInSlack;
1865
- return (_this54$_teamsInSlack = _this54._teamsInSlackClient).updateTeamInSlack.apply(_this54$_teamsInSlack, args);
1934
+ return _context52.abrupt("return", this.measurePerformance('updateUser', function () {
1935
+ var _this54$_identityClie;
1936
+ return (_this54$_identityClie = _this54._identityClient).updateUser.apply(_this54$_identityClie, args);
1866
1937
  }));
1867
1938
  case 2:
1868
1939
  case "end":
@@ -1870,19 +1941,15 @@ export var TeamsClient = /*#__PURE__*/function () {
1870
1941
  }
1871
1942
  }, _callee52, this);
1872
1943
  }));
1873
- function updateTeamInSlack() {
1874
- return _updateTeamInSlack.apply(this, arguments);
1944
+ function updateUser() {
1945
+ return _updateUser.apply(this, arguments);
1875
1946
  }
1876
- return updateTeamInSlack;
1877
- }()
1878
- /**
1879
- * Update user details
1880
- */
1881
- )
1947
+ return updateUser;
1948
+ }())
1882
1949
  }, {
1883
- key: "updateUser",
1884
- value: (function () {
1885
- var _updateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53() {
1950
+ key: "updateUserAvatar",
1951
+ value: function () {
1952
+ var _updateUserAvatar = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53() {
1886
1953
  var _this55 = this;
1887
1954
  var _len43,
1888
1955
  args,
@@ -1894,9 +1961,9 @@ export var TeamsClient = /*#__PURE__*/function () {
1894
1961
  for (_len43 = _args53.length, args = new Array(_len43), _key43 = 0; _key43 < _len43; _key43++) {
1895
1962
  args[_key43] = _args53[_key43];
1896
1963
  }
1897
- return _context53.abrupt("return", this.measurePerformance('updateUser', function () {
1964
+ return _context53.abrupt("return", this.measurePerformance('updateUserAvatar', function () {
1898
1965
  var _this55$_identityClie;
1899
- return (_this55$_identityClie = _this55._identityClient).updateUser.apply(_this55$_identityClie, args);
1966
+ return (_this55$_identityClie = _this55._identityClient).updateUserAvatar.apply(_this55$_identityClie, args);
1900
1967
  }));
1901
1968
  case 2:
1902
1969
  case "end":
@@ -1904,208 +1971,208 @@ export var TeamsClient = /*#__PURE__*/function () {
1904
1971
  }
1905
1972
  }, _callee53, this);
1906
1973
  }));
1907
- function updateUser() {
1908
- return _updateUser.apply(this, arguments);
1974
+ function updateUserAvatar() {
1975
+ return _updateUserAvatar.apply(this, arguments);
1909
1976
  }
1910
- return updateUser;
1911
- }())
1977
+ return updateUserAvatar;
1978
+ }()
1912
1979
  }, {
1913
- key: "updateUserAvatar",
1980
+ key: "addTeamWatcher",
1914
1981
  value: function () {
1915
- var _updateUserAvatar = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54() {
1916
- var _this56 = this;
1917
- var _len44,
1918
- args,
1919
- _key44,
1920
- _args54 = arguments;
1982
+ var _addTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54() {
1983
+ var _this$_teamCentralCli;
1984
+ var _args54 = arguments;
1921
1985
  return _regeneratorRuntime.wrap(function _callee54$(_context54) {
1922
1986
  while (1) switch (_context54.prev = _context54.next) {
1923
1987
  case 0:
1924
- for (_len44 = _args54.length, args = new Array(_len44), _key44 = 0; _key44 < _len44; _key44++) {
1925
- args[_key44] = _args54[_key44];
1926
- }
1927
- return _context54.abrupt("return", this.measurePerformance('updateUserAvatar', function () {
1928
- var _this56$_identityClie;
1929
- return (_this56$_identityClie = _this56._identityClient).updateUserAvatar.apply(_this56$_identityClie, args);
1930
- }));
1931
- case 2:
1988
+ return _context54.abrupt("return", (_this$_teamCentralCli = this._teamCentralClient).addTeamWatcher.apply(_this$_teamCentralCli, _args54));
1989
+ case 1:
1932
1990
  case "end":
1933
1991
  return _context54.stop();
1934
1992
  }
1935
1993
  }, _callee54, this);
1936
1994
  }));
1937
- function updateUserAvatar() {
1938
- return _updateUserAvatar.apply(this, arguments);
1995
+ function addTeamWatcher() {
1996
+ return _addTeamWatcher.apply(this, arguments);
1939
1997
  }
1940
- return updateUserAvatar;
1998
+ return addTeamWatcher;
1941
1999
  }()
1942
2000
  }, {
1943
- key: "addTeamWatcher",
2001
+ key: "removeTeamWatcher",
1944
2002
  value: function () {
1945
- var _addTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55() {
1946
- var _this$_teamCentralCli;
2003
+ var _removeTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55() {
2004
+ var _this$_teamCentralCli2;
1947
2005
  var _args55 = arguments;
1948
2006
  return _regeneratorRuntime.wrap(function _callee55$(_context55) {
1949
2007
  while (1) switch (_context55.prev = _context55.next) {
1950
2008
  case 0:
1951
- return _context55.abrupt("return", (_this$_teamCentralCli = this._teamCentralClient).addTeamWatcher.apply(_this$_teamCentralCli, _args55));
2009
+ return _context55.abrupt("return", (_this$_teamCentralCli2 = this._teamCentralClient).removeTeamWatcher.apply(_this$_teamCentralCli2, _args55));
1952
2010
  case 1:
1953
2011
  case "end":
1954
2012
  return _context55.stop();
1955
2013
  }
1956
2014
  }, _callee55, this);
1957
2015
  }));
1958
- function addTeamWatcher() {
1959
- return _addTeamWatcher.apply(this, arguments);
2016
+ function removeTeamWatcher() {
2017
+ return _removeTeamWatcher.apply(this, arguments);
1960
2018
  }
1961
- return addTeamWatcher;
2019
+ return removeTeamWatcher;
1962
2020
  }()
1963
2021
  }, {
1964
- key: "removeTeamWatcher",
2022
+ key: "deleteKudos",
1965
2023
  value: function () {
1966
- var _removeTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56() {
1967
- var _this$_teamCentralCli2;
2024
+ var _deleteKudos = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56() {
2025
+ var _this$_teamCentralCli3;
1968
2026
  var _args56 = arguments;
1969
2027
  return _regeneratorRuntime.wrap(function _callee56$(_context56) {
1970
2028
  while (1) switch (_context56.prev = _context56.next) {
1971
2029
  case 0:
1972
- return _context56.abrupt("return", (_this$_teamCentralCli2 = this._teamCentralClient).removeTeamWatcher.apply(_this$_teamCentralCli2, _args56));
2030
+ return _context56.abrupt("return", (_this$_teamCentralCli3 = this._teamCentralClient).deleteKudos.apply(_this$_teamCentralCli3, _args56));
1973
2031
  case 1:
1974
2032
  case "end":
1975
2033
  return _context56.stop();
1976
2034
  }
1977
2035
  }, _callee56, this);
1978
2036
  }));
1979
- function removeTeamWatcher() {
1980
- return _removeTeamWatcher.apply(this, arguments);
2037
+ function deleteKudos() {
2038
+ return _deleteKudos.apply(this, arguments);
1981
2039
  }
1982
- return removeTeamWatcher;
2040
+ return deleteKudos;
1983
2041
  }()
1984
2042
  }, {
1985
- key: "deleteKudos",
2043
+ key: "queryTagList",
1986
2044
  value: function () {
1987
- var _deleteKudos = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57() {
1988
- var _this$_teamCentralCli3;
2045
+ var _queryTagList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57() {
2046
+ var _this$_teamCentralCli4;
1989
2047
  var _args57 = arguments;
1990
2048
  return _regeneratorRuntime.wrap(function _callee57$(_context57) {
1991
2049
  while (1) switch (_context57.prev = _context57.next) {
1992
2050
  case 0:
1993
- return _context57.abrupt("return", (_this$_teamCentralCli3 = this._teamCentralClient).deleteKudos.apply(_this$_teamCentralCli3, _args57));
2051
+ return _context57.abrupt("return", (_this$_teamCentralCli4 = this._teamCentralClient).queryTagList.apply(_this$_teamCentralCli4, _args57));
1994
2052
  case 1:
1995
2053
  case "end":
1996
2054
  return _context57.stop();
1997
2055
  }
1998
2056
  }, _callee57, this);
1999
2057
  }));
2000
- function deleteKudos() {
2001
- return _deleteKudos.apply(this, arguments);
2058
+ function queryTagList() {
2059
+ return _queryTagList.apply(this, arguments);
2002
2060
  }
2003
- return deleteKudos;
2061
+ return queryTagList;
2004
2062
  }()
2005
2063
  }, {
2006
- key: "queryTagList",
2064
+ key: "createTag",
2007
2065
  value: function () {
2008
- var _queryTagList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58() {
2009
- var _this$_teamCentralCli4;
2066
+ var _createTag = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58() {
2067
+ var _this$_teamCentralCli5;
2010
2068
  var _args58 = arguments;
2011
2069
  return _regeneratorRuntime.wrap(function _callee58$(_context58) {
2012
2070
  while (1) switch (_context58.prev = _context58.next) {
2013
2071
  case 0:
2014
- return _context58.abrupt("return", (_this$_teamCentralCli4 = this._teamCentralClient).queryTagList.apply(_this$_teamCentralCli4, _args58));
2072
+ return _context58.abrupt("return", (_this$_teamCentralCli5 = this._teamCentralClient).createTag.apply(_this$_teamCentralCli5, _args58));
2015
2073
  case 1:
2016
2074
  case "end":
2017
2075
  return _context58.stop();
2018
2076
  }
2019
2077
  }, _callee58, this);
2020
2078
  }));
2021
- function queryTagList() {
2022
- return _queryTagList.apply(this, arguments);
2079
+ function createTag() {
2080
+ return _createTag.apply(this, arguments);
2023
2081
  }
2024
- return queryTagList;
2082
+ return createTag;
2025
2083
  }()
2026
2084
  }, {
2027
- key: "createTag",
2085
+ key: "createHelpPointer",
2028
2086
  value: function () {
2029
- var _createTag = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59() {
2030
- var _this$_teamCentralCli5;
2087
+ var _createHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59() {
2088
+ var _this$_teamCentralCli6;
2031
2089
  var _args59 = arguments;
2032
2090
  return _regeneratorRuntime.wrap(function _callee59$(_context59) {
2033
2091
  while (1) switch (_context59.prev = _context59.next) {
2034
2092
  case 0:
2035
- return _context59.abrupt("return", (_this$_teamCentralCli5 = this._teamCentralClient).createTag.apply(_this$_teamCentralCli5, _args59));
2093
+ return _context59.abrupt("return", (_this$_teamCentralCli6 = this._teamCentralClient).createHelpPointer.apply(_this$_teamCentralCli6, _args59));
2036
2094
  case 1:
2037
2095
  case "end":
2038
2096
  return _context59.stop();
2039
2097
  }
2040
2098
  }, _callee59, this);
2041
2099
  }));
2042
- function createTag() {
2043
- return _createTag.apply(this, arguments);
2100
+ function createHelpPointer() {
2101
+ return _createHelpPointer.apply(this, arguments);
2044
2102
  }
2045
- return createTag;
2103
+ return createHelpPointer;
2046
2104
  }()
2047
2105
  }, {
2048
- key: "createHelpPointer",
2106
+ key: "updateHelpPointer",
2049
2107
  value: function () {
2050
- var _createHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60() {
2051
- var _this$_teamCentralCli6;
2108
+ var _updateHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60() {
2109
+ var _this$_teamCentralCli7;
2052
2110
  var _args60 = arguments;
2053
2111
  return _regeneratorRuntime.wrap(function _callee60$(_context60) {
2054
2112
  while (1) switch (_context60.prev = _context60.next) {
2055
2113
  case 0:
2056
- return _context60.abrupt("return", (_this$_teamCentralCli6 = this._teamCentralClient).createHelpPointer.apply(_this$_teamCentralCli6, _args60));
2114
+ return _context60.abrupt("return", (_this$_teamCentralCli7 = this._teamCentralClient).updateHelpPointer.apply(_this$_teamCentralCli7, _args60));
2057
2115
  case 1:
2058
2116
  case "end":
2059
2117
  return _context60.stop();
2060
2118
  }
2061
2119
  }, _callee60, this);
2062
2120
  }));
2063
- function createHelpPointer() {
2064
- return _createHelpPointer.apply(this, arguments);
2121
+ function updateHelpPointer() {
2122
+ return _updateHelpPointer.apply(this, arguments);
2065
2123
  }
2066
- return createHelpPointer;
2124
+ return updateHelpPointer;
2067
2125
  }()
2068
2126
  }, {
2069
- key: "updateHelpPointer",
2127
+ key: "deleteHelpPointer",
2070
2128
  value: function () {
2071
- var _updateHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61() {
2072
- var _this$_teamCentralCli7;
2129
+ var _deleteHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61() {
2130
+ var _this$_teamCentralCli8;
2073
2131
  var _args61 = arguments;
2074
2132
  return _regeneratorRuntime.wrap(function _callee61$(_context61) {
2075
2133
  while (1) switch (_context61.prev = _context61.next) {
2076
2134
  case 0:
2077
- return _context61.abrupt("return", (_this$_teamCentralCli7 = this._teamCentralClient).updateHelpPointer.apply(_this$_teamCentralCli7, _args61));
2135
+ return _context61.abrupt("return", (_this$_teamCentralCli8 = this._teamCentralClient).deleteHelpPointer.apply(_this$_teamCentralCli8, _args61));
2078
2136
  case 1:
2079
2137
  case "end":
2080
2138
  return _context61.stop();
2081
2139
  }
2082
2140
  }, _callee61, this);
2083
2141
  }));
2084
- function updateHelpPointer() {
2085
- return _updateHelpPointer.apply(this, arguments);
2142
+ function deleteHelpPointer() {
2143
+ return _deleteHelpPointer.apply(this, arguments);
2086
2144
  }
2087
- return updateHelpPointer;
2145
+ return deleteHelpPointer;
2088
2146
  }()
2089
2147
  }, {
2090
- key: "deleteHelpPointer",
2148
+ key: "getUserTenure",
2091
2149
  value: function () {
2092
- var _deleteHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62() {
2093
- var _this$_teamCentralCli8;
2094
- var _args62 = arguments;
2150
+ var _getUserTenure = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62() {
2151
+ var _this56 = this;
2152
+ var _len44,
2153
+ args,
2154
+ _key44,
2155
+ _args62 = arguments;
2095
2156
  return _regeneratorRuntime.wrap(function _callee62$(_context62) {
2096
2157
  while (1) switch (_context62.prev = _context62.next) {
2097
2158
  case 0:
2098
- return _context62.abrupt("return", (_this$_teamCentralCli8 = this._teamCentralClient).deleteHelpPointer.apply(_this$_teamCentralCli8, _args62));
2099
- case 1:
2159
+ for (_len44 = _args62.length, args = new Array(_len44), _key44 = 0; _key44 < _len44; _key44++) {
2160
+ args[_key44] = _args62[_key44];
2161
+ }
2162
+ return _context62.abrupt("return", this.measurePerformance('getUserTenure', function () {
2163
+ var _this56$_replinesClie;
2164
+ return (_this56$_replinesClie = _this56._replinesClient).getUserTenure.apply(_this56$_replinesClie, args);
2165
+ }));
2166
+ case 2:
2100
2167
  case "end":
2101
2168
  return _context62.stop();
2102
2169
  }
2103
2170
  }, _callee62, this);
2104
2171
  }));
2105
- function deleteHelpPointer() {
2106
- return _deleteHelpPointer.apply(this, arguments);
2172
+ function getUserTenure() {
2173
+ return _getUserTenure.apply(this, arguments);
2107
2174
  }
2108
- return deleteHelpPointer;
2175
+ return getUserTenure;
2109
2176
  }()
2110
2177
  }]);
2111
2178
  }();