@atlaskit/teams-client 4.33.0 → 4.33.1

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 (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/common/utils/http.js +8 -8
  3. package/dist/cjs/common/utils/permissions/has-permission.js +4 -0
  4. package/dist/cjs/common/utils/ufo/index.js +2 -2
  5. package/dist/cjs/services/agg-client/index.js +28 -28
  6. package/dist/cjs/services/directory-client/index.js +38 -36
  7. package/dist/cjs/services/graphql-client/main.js +13 -12
  8. package/dist/cjs/services/graphql-client/utils/index.js +32 -31
  9. package/dist/cjs/services/identity-client/index.js +10 -10
  10. package/dist/cjs/services/invitations-client/index.js +40 -38
  11. package/dist/cjs/services/legion-client/index.js +163 -162
  12. package/dist/cjs/services/main.js +162 -162
  13. package/dist/cjs/services/mutability-client/index.js +1 -1
  14. package/dist/cjs/services/object-resolver-client/index.js +18 -18
  15. package/dist/cjs/services/public-api-client/index.js +69 -68
  16. package/dist/cjs/services/replines-client/index.js +2 -2
  17. package/dist/cjs/services/reporting-lines-client/index.js +4 -4
  18. package/dist/cjs/services/rest-client/index.js +28 -28
  19. package/dist/cjs/services/rest-client/utils/parse-error-message.js +18 -18
  20. package/dist/cjs/services/sentry/main.js +23 -22
  21. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  22. package/dist/cjs/services/sentry/utils/initialise-sentry.js +6 -6
  23. package/dist/cjs/services/sentry/utils/sentry-client.js +20 -19
  24. package/dist/cjs/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
  25. package/dist/cjs/services/team-central-client/index.js +36 -36
  26. package/dist/cjs/services/teams-in-slack-client/index.js +3 -3
  27. package/dist/cjs/services/use-query-light/main.js +38 -38
  28. package/dist/cjs/services/user-preferences-client/index.js +6 -6
  29. package/dist/es2019/common/utils/permissions/has-permission.js +4 -0
  30. package/dist/es2019/common/utils/ufo/index.js +2 -2
  31. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  32. package/dist/esm/common/utils/http.js +8 -8
  33. package/dist/esm/common/utils/permissions/has-permission.js +4 -0
  34. package/dist/esm/common/utils/ufo/index.js +2 -2
  35. package/dist/esm/services/agg-client/index.js +28 -28
  36. package/dist/esm/services/directory-client/index.js +38 -36
  37. package/dist/esm/services/graphql-client/main.js +13 -12
  38. package/dist/esm/services/graphql-client/utils/index.js +32 -31
  39. package/dist/esm/services/identity-client/index.js +10 -10
  40. package/dist/esm/services/invitations-client/index.js +40 -38
  41. package/dist/esm/services/legion-client/index.js +163 -162
  42. package/dist/esm/services/main.js +162 -162
  43. package/dist/esm/services/mutability-client/index.js +1 -1
  44. package/dist/esm/services/object-resolver-client/index.js +18 -18
  45. package/dist/esm/services/public-api-client/index.js +69 -68
  46. package/dist/esm/services/replines-client/index.js +2 -2
  47. package/dist/esm/services/reporting-lines-client/index.js +4 -4
  48. package/dist/esm/services/rest-client/index.js +28 -28
  49. package/dist/esm/services/rest-client/utils/parse-error-message.js +18 -18
  50. package/dist/esm/services/sentry/main.js +23 -22
  51. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  52. package/dist/esm/services/sentry/utils/initialise-sentry.js +6 -6
  53. package/dist/esm/services/sentry/utils/sentry-client.js +19 -18
  54. package/dist/esm/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
  55. package/dist/esm/services/team-central-client/index.js +36 -36
  56. package/dist/esm/services/teams-in-slack-client/index.js +3 -3
  57. package/dist/esm/services/use-query-light/main.js +38 -38
  58. package/dist/esm/services/user-preferences-client/index.js +6 -6
  59. package/dist/types/common/utils/permissions/has-permission.d.ts +4 -0
  60. package/dist/types/types/index.d.ts +1 -1
  61. package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +4 -0
  62. package/dist/types-ts4.5/types/index.d.ts +1 -1
  63. package/package.json +2 -1
@@ -12,51 +12,51 @@ function parseErrorMessage(_x) {
12
12
  }
13
13
  function _parseErrorMessage() {
14
14
  _parseErrorMessage = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(response) {
15
- var json, text, errs;
16
- return _regenerator.default.wrap(function _callee$(_context) {
15
+ var json, text, errs, _t;
16
+ return _regenerator.default.wrap(function (_context) {
17
17
  while (1) switch (_context.prev = _context.next) {
18
18
  case 0:
19
- _context.next = 2;
19
+ _context.next = 1;
20
20
  return response.text();
21
- case 2:
21
+ case 1:
22
22
  text = _context.sent;
23
- _context.prev = 3;
23
+ _context.prev = 2;
24
24
  json = JSON.parse(text);
25
- _context.next = 10;
25
+ _context.next = 4;
26
26
  break;
27
- case 7:
28
- _context.prev = 7;
29
- _context.t0 = _context["catch"](3);
27
+ case 3:
28
+ _context.prev = 3;
29
+ _t = _context["catch"](2);
30
30
  return _context.abrupt("return", text);
31
- case 10:
31
+ case 4:
32
32
  delete json.timestamp; // to dedupe sentry, scrub non-unique 'timestamp' field from the error body
33
33
  if (!json.error) {
34
- _context.next = 15;
34
+ _context.next = 5;
35
35
  break;
36
36
  }
37
37
  return _context.abrupt("return", "".concat(json.status || 'UNKNOWN_STATUS', " ").concat(json.error || 'MISSING_ERROR_MESSAGE'));
38
- case 15:
38
+ case 5:
39
39
  if (!json.status) {
40
- _context.next = 19;
40
+ _context.next = 6;
41
41
  break;
42
42
  }
43
43
  return _context.abrupt("return", "".concat(json.status, " MISSING_ERROR_MESSAGE"));
44
- case 19:
44
+ case 6:
45
45
  if (!json.errors) {
46
- _context.next = 22;
46
+ _context.next = 7;
47
47
  break;
48
48
  }
49
49
  errs = json.errors.map(function (error) {
50
50
  return typeof error === 'string' ? error : error.code || error.message || 'MISSING_ERROR_MESSAGE';
51
51
  });
52
52
  return _context.abrupt("return", errs.join('\n - '));
53
- case 22:
53
+ case 7:
54
54
  return _context.abrupt("return", JSON.stringify(json));
55
- case 23:
55
+ case 8:
56
56
  case "end":
57
57
  return _context.stop();
58
58
  }
59
- }, _callee, null, [[3, 7]]);
59
+ }, _callee, null, [[2, 3]]);
60
60
  }));
61
61
  return _parseErrorMessage.apply(this, arguments);
62
62
  }
@@ -41,22 +41,23 @@ function _logException() {
41
41
  _logException = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(ex, name) {
42
42
  var context,
43
43
  sentryClient,
44
- _args = arguments;
45
- return _regenerator.default.wrap(function _callee$(_context) {
44
+ _args = arguments,
45
+ _t;
46
+ return _regenerator.default.wrap(function (_context) {
46
47
  while (1) switch (_context.prev = _context.next) {
47
48
  case 0:
48
49
  context = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
49
50
  _context.prev = 1;
50
- _context.next = 4;
51
+ _context.next = 2;
51
52
  return (0, _sentryClient.getSentryClient)();
52
- case 4:
53
+ case 2:
53
54
  sentryClient = _context.sent;
54
55
  if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
55
- _context.next = 7;
56
+ _context.next = 3;
56
57
  break;
57
58
  }
58
59
  return _context.abrupt("return");
59
- case 7:
60
+ case 3:
60
61
  sentryClient.withScope(function (scope) {
61
62
  var _context$packageName, _context$packageVersi;
62
63
  decorateScope(scope, context);
@@ -65,16 +66,16 @@ function _logException() {
65
66
  scope.setTag('packageVersion', (_context$packageVersi = context.packageVersion) !== null && _context$packageVersi !== void 0 ? _context$packageVersi : 'unknown');
66
67
  sentryClient.captureException(ex, scope);
67
68
  });
68
- _context.next = 12;
69
+ _context.next = 5;
69
70
  break;
70
- case 10:
71
- _context.prev = 10;
72
- _context.t0 = _context["catch"](1);
73
- case 12:
71
+ case 4:
72
+ _context.prev = 4;
73
+ _t = _context["catch"](1);
74
+ case 5:
74
75
  case "end":
75
76
  return _context.stop();
76
77
  }
77
- }, _callee, null, [[1, 10]]);
78
+ }, _callee, null, [[1, 4]]);
78
79
  }));
79
80
  return _logException.apply(this, arguments);
80
81
  }
@@ -86,20 +87,20 @@ function _logMessage() {
86
87
  var context,
87
88
  sentryClient,
88
89
  _args2 = arguments;
89
- return _regenerator.default.wrap(function _callee2$(_context2) {
90
+ return _regenerator.default.wrap(function (_context2) {
90
91
  while (1) switch (_context2.prev = _context2.next) {
91
92
  case 0:
92
93
  context = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
93
- _context2.next = 3;
94
+ _context2.next = 1;
94
95
  return (0, _sentryClient.getSentryClient)();
95
- case 3:
96
+ case 1:
96
97
  sentryClient = _context2.sent;
97
98
  if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
98
- _context2.next = 6;
99
+ _context2.next = 2;
99
100
  break;
100
101
  }
101
102
  return _context2.abrupt("return");
102
- case 6:
103
+ case 2:
103
104
  sentryClient.withScope(function (scope) {
104
105
  var _context$packageName2, _context$packageVersi2;
105
106
  decorateScope(scope, context);
@@ -110,7 +111,7 @@ function _logMessage() {
110
111
  scope.setTag('packageVersion', (_context$packageVersi2 = context.packageVersion) !== null && _context$packageVersi2 !== void 0 ? _context$packageVersi2 : 'unknown');
111
112
  sentryClient.captureMessage(message, scope);
112
113
  });
113
- case 7:
114
+ case 3:
114
115
  case "end":
115
116
  return _context2.stop();
116
117
  }
@@ -175,12 +176,12 @@ function addBreadcrumb(_x5) {
175
176
  function _addBreadcrumb() {
176
177
  _addBreadcrumb = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(crumb) {
177
178
  var sentryClient;
178
- return _regenerator.default.wrap(function _callee3$(_context3) {
179
+ return _regenerator.default.wrap(function (_context3) {
179
180
  while (1) switch (_context3.prev = _context3.next) {
180
181
  case 0:
181
- _context3.next = 2;
182
+ _context3.next = 1;
182
183
  return (0, _sentryClient.getSentryClient)();
183
- case 2:
184
+ case 1:
184
185
  sentryClient = _context3.sent;
185
186
  sentryClient.withScope(function (scope) {
186
187
  // @ts-ignore - TypeScript 5.9.2 upgrade
@@ -188,7 +189,7 @@ function _addBreadcrumb() {
188
189
  message: crumb
189
190
  } : crumb);
190
191
  });
191
- case 4:
192
+ case 2:
192
193
  case "end":
193
194
  return _context3.stop();
194
195
  }
@@ -36,7 +36,7 @@ function getSentryConfig(options) {
36
36
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
37
37
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
38
38
  // when building to deploy to production
39
- release: "".concat("@atlaskit/teams-client", "@").concat("4.32.5") ||
39
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.33.0") ||
40
40
  // @ts-ignore Jira - window.BUILD_KEY
41
41
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
42
42
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -21,21 +21,21 @@ function initialiseSentry(_x, _x2) {
21
21
  function _initialiseSentry() {
22
22
  _initialiseSentry = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(client, options) {
23
23
  var sentryConfig;
24
- return _regenerator.default.wrap(function _callee$(_context) {
24
+ return _regenerator.default.wrap(function (_context) {
25
25
  while (1) switch (_context.prev = _context.next) {
26
26
  case 0:
27
27
  if (!_sentryClient.sentryClient) {
28
- _context.next = 2;
28
+ _context.next = 1;
29
29
  break;
30
30
  }
31
31
  return _context.abrupt("return");
32
- case 2:
32
+ case 1:
33
33
  if (client) {
34
- _context.next = 4;
34
+ _context.next = 2;
35
35
  break;
36
36
  }
37
37
  return _context.abrupt("return");
38
- case 4:
38
+ case 2:
39
39
  (0, _sentryClient.setSentryClient)(client);
40
40
  sentryConfig = (0, _getSentryConfig.getSentryConfig)(options);
41
41
  _sentryClient.sentryClient.init(_objectSpread(_objectSpread({}, sentryConfig), {}, {
@@ -45,7 +45,7 @@ function _initialiseSentry() {
45
45
  });
46
46
  }
47
47
  }));
48
- case 7:
48
+ case 3:
49
49
  case "end":
50
50
  return _context.stop();
51
51
  }
@@ -11,25 +11,25 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
11
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
12
  var _constants = require("../constants");
13
13
  var _initialiseSentry = require("./initialise-sentry");
14
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
15
15
  var sentryClient;
16
16
  var setSentryClient = exports.setSentryClient = function setSentryClient(client) {
17
17
  exports.sentryClient = sentryClient = client;
18
18
  };
19
19
  var getSentryClient = exports.getSentryClient = /*#__PURE__*/function () {
20
20
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
21
- return _regenerator.default.wrap(function _callee$(_context) {
21
+ return _regenerator.default.wrap(function (_context) {
22
22
  while (1) switch (_context.prev = _context.next) {
23
23
  case 0:
24
24
  if (sentryClient) {
25
- _context.next = 3;
25
+ _context.next = 1;
26
26
  break;
27
27
  }
28
- _context.next = 3;
28
+ _context.next = 1;
29
29
  return setupSentryClient({});
30
- case 3:
30
+ case 1:
31
31
  return _context.abrupt("return", sentryClient);
32
- case 4:
32
+ case 2:
33
33
  case "end":
34
34
  return _context.stop();
35
35
  }
@@ -46,20 +46,20 @@ function _setupSentryClient() {
46
46
  _setupSentryClient = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref2) {
47
47
  var _window$__buildInfo;
48
48
  var appName, env, sentryClient;
49
- return _regenerator.default.wrap(function _callee2$(_context2) {
49
+ return _regenerator.default.wrap(function (_context2) {
50
50
  while (1) switch (_context2.prev = _context2.next) {
51
51
  case 0:
52
52
  appName = _ref2.appName, env = _ref2.env;
53
- _context2.next = 3;
53
+ _context2.next = 1;
54
54
  return requireSentryLib();
55
- case 3:
55
+ case 1:
56
56
  sentryClient = _context2.sent;
57
57
  if (sentryClient) {
58
- _context2.next = 6;
58
+ _context2.next = 2;
59
59
  break;
60
60
  }
61
61
  return _context2.abrupt("return");
62
- case 6:
62
+ case 2:
63
63
  // initialiseSentry sets the sentry client
64
64
  (0, _initialiseSentry.initialiseSentry)(sentryClient, {
65
65
  initialScope: {
@@ -76,7 +76,7 @@ function _setupSentryClient() {
76
76
  dsn: _constants.SENTRY_DSN,
77
77
  attachStacktrace: true
78
78
  });
79
- case 7:
79
+ case 3:
80
80
  case "end":
81
81
  return _context2.stop();
82
82
  }
@@ -89,24 +89,25 @@ function requireSentryLib() {
89
89
  }
90
90
  function _requireSentryLib() {
91
91
  _requireSentryLib = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
92
- return _regenerator.default.wrap(function _callee3$(_context3) {
92
+ var _t;
93
+ return _regenerator.default.wrap(function (_context3) {
93
94
  while (1) switch (_context3.prev = _context3.next) {
94
95
  case 0:
95
96
  _context3.prev = 0;
96
97
  return _context3.abrupt("return", Promise.resolve().then(function () {
97
98
  return _interopRequireWildcard(require( /* webpackChunkName: "teams-client_sentry" */'@sentry/browser'));
98
99
  }));
99
- case 4:
100
- _context3.prev = 4;
101
- _context3.t0 = _context3["catch"](0);
100
+ case 1:
101
+ _context3.prev = 1;
102
+ _t = _context3["catch"](0);
102
103
  // eslint-disable-next-line no-console
103
- console.warn('Ignoring rejected promise when loading sentry resource.', _context3.t0);
104
+ console.warn('Ignoring rejected promise when loading sentry resource.', _t);
104
105
  return _context3.abrupt("return", undefined);
105
- case 8:
106
+ case 2:
106
107
  case "end":
107
108
  return _context3.stop();
108
109
  }
109
- }, _callee3, null, [[0, 4]]);
110
+ }, _callee3, null, [[0, 1]]);
110
111
  }));
111
112
  return _requireSentryLib.apply(this, arguments);
112
113
  }
@@ -16,16 +16,16 @@ var useTeamsSentryClientSetup = exports.useTeamsSentryClientSetup = function use
16
16
  sentryInitialised = _useState2[0],
17
17
  setSentryInitialised = _useState2[1];
18
18
  var setupSentry = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
19
- return _regenerator.default.wrap(function _callee$(_context) {
19
+ return _regenerator.default.wrap(function (_context) {
20
20
  while (1) switch (_context.prev = _context.next) {
21
21
  case 0:
22
22
  if (!(!sentryInitialised && isSentryEnabled && !_sentryClient.sentryClient)) {
23
- _context.next = 3;
23
+ _context.next = 1;
24
24
  break;
25
25
  }
26
- _context.next = 3;
26
+ _context.next = 1;
27
27
  return (0, _sentryClient.setupSentryClient)(config);
28
- case 3:
28
+ case 1:
29
29
  case "end":
30
30
  return _context.stop();
31
31
  }
@@ -46,10 +46,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
46
46
  value: function () {
47
47
  var _isTeamWatcher = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(teamId, cloudId) {
48
48
  var response;
49
- return _regenerator.default.wrap(function _callee$(_context) {
49
+ return _regenerator.default.wrap(function (_context) {
50
50
  while (1) switch (_context.prev = _context.next) {
51
51
  case 0:
52
- _context.next = 2;
52
+ _context.next = 1;
53
53
  return this.makeGraphQLRequest({
54
54
  query: _isTeamWatcher2.IsTeamWatcherQuery,
55
55
  variables: {
@@ -59,10 +59,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
59
59
  }, {
60
60
  operationName: 'isTeamWatcher'
61
61
  });
62
- case 2:
62
+ case 1:
63
63
  response = _context.sent;
64
64
  return _context.abrupt("return", response.isTeamWatcher);
65
- case 4:
65
+ case 2:
66
66
  case "end":
67
67
  return _context.stop();
68
68
  }
@@ -78,10 +78,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
78
78
  value: function () {
79
79
  var _addTeamWatcher = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(teamId, cloudId) {
80
80
  var response;
81
- return _regenerator.default.wrap(function _callee2$(_context2) {
81
+ return _regenerator.default.wrap(function (_context2) {
82
82
  while (1) switch (_context2.prev = _context2.next) {
83
83
  case 0:
84
- _context2.next = 2;
84
+ _context2.next = 1;
85
85
  return this.makeGraphQLRequest({
86
86
  query: _addTeamWatcher2.AddTeamWatcherMutation,
87
87
  variables: {
@@ -91,10 +91,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
91
91
  }, {
92
92
  operationName: 'addTeamWatcher'
93
93
  });
94
- case 2:
94
+ case 1:
95
95
  response = _context2.sent;
96
96
  return _context2.abrupt("return", response.addTeamWatcher);
97
- case 4:
97
+ case 2:
98
98
  case "end":
99
99
  return _context2.stop();
100
100
  }
@@ -110,10 +110,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
110
110
  value: function () {
111
111
  var _removeTeamWatcher = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(teamId, cloudId) {
112
112
  var response;
113
- return _regenerator.default.wrap(function _callee3$(_context3) {
113
+ return _regenerator.default.wrap(function (_context3) {
114
114
  while (1) switch (_context3.prev = _context3.next) {
115
115
  case 0:
116
- _context3.next = 2;
116
+ _context3.next = 1;
117
117
  return this.makeGraphQLRequest({
118
118
  query: _removeTeamWatcher2.RemoveTeamWatcherMutation,
119
119
  variables: {
@@ -123,10 +123,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
123
123
  }, {
124
124
  operationName: 'removeTeamWatcher'
125
125
  });
126
- case 2:
126
+ case 1:
127
127
  response = _context3.sent;
128
128
  return _context3.abrupt("return", response.removeTeamWatcher);
129
- case 4:
129
+ case 2:
130
130
  case "end":
131
131
  return _context3.stop();
132
132
  }
@@ -142,10 +142,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
142
142
  value: function () {
143
143
  var _deleteKudos = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
144
144
  var response;
145
- return _regenerator.default.wrap(function _callee4$(_context4) {
145
+ return _regenerator.default.wrap(function (_context4) {
146
146
  while (1) switch (_context4.prev = _context4.next) {
147
147
  case 0:
148
- _context4.next = 2;
148
+ _context4.next = 1;
149
149
  return this.makeGraphQLRequest({
150
150
  query: _kudosDeleteMutation.KudosDeleteMutation,
151
151
  variables: {
@@ -154,10 +154,10 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
154
154
  }, {
155
155
  operationName: 'DeleteKudos'
156
156
  });
157
- case 2:
157
+ case 1:
158
158
  response = _context4.sent;
159
159
  return _context4.abrupt("return", response.deleteKudos);
160
- case 4:
160
+ case 2:
161
161
  case "end":
162
162
  return _context4.stop();
163
163
  }
@@ -173,20 +173,20 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
173
173
  value: function () {
174
174
  var _queryTagList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(variables) {
175
175
  var response;
176
- return _regenerator.default.wrap(function _callee5$(_context5) {
176
+ return _regenerator.default.wrap(function (_context5) {
177
177
  while (1) switch (_context5.prev = _context5.next) {
178
178
  case 0:
179
- _context5.next = 2;
179
+ _context5.next = 1;
180
180
  return this.makeGraphQLRequest({
181
181
  query: _tagListQuery.TagListQuery,
182
182
  variables: variables
183
183
  }, {
184
184
  operationName: 'TagListByCloudId'
185
185
  });
186
- case 2:
186
+ case 1:
187
187
  response = _context5.sent;
188
188
  return _context5.abrupt("return", response.tagSearchByCloudId);
189
- case 4:
189
+ case 2:
190
190
  case "end":
191
191
  return _context5.stop();
192
192
  }
@@ -202,20 +202,20 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
202
202
  value: function () {
203
203
  var _createTag = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(variables) {
204
204
  var response;
205
- return _regenerator.default.wrap(function _callee6$(_context6) {
205
+ return _regenerator.default.wrap(function (_context6) {
206
206
  while (1) switch (_context6.prev = _context6.next) {
207
207
  case 0:
208
- _context6.next = 2;
208
+ _context6.next = 1;
209
209
  return this.makeGraphQLRequest({
210
210
  query: _createTagMutation.CreateTagMutation,
211
211
  variables: variables
212
212
  }, {
213
213
  operationName: 'createTagForCloudId'
214
214
  });
215
- case 2:
215
+ case 1:
216
216
  response = _context6.sent;
217
217
  return _context6.abrupt("return", response.createTagForCloudId);
218
- case 4:
218
+ case 2:
219
219
  case "end":
220
220
  return _context6.stop();
221
221
  }
@@ -231,20 +231,20 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
231
231
  value: function () {
232
232
  var _createHelpPointer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(variables) {
233
233
  var response;
234
- return _regenerator.default.wrap(function _callee7$(_context7) {
234
+ return _regenerator.default.wrap(function (_context7) {
235
235
  while (1) switch (_context7.prev = _context7.next) {
236
236
  case 0:
237
- _context7.next = 2;
237
+ _context7.next = 1;
238
238
  return this.makeGraphQLRequest({
239
239
  query: _helpPointerCreateMutation.HelpPointerCreateMutation,
240
240
  variables: variables
241
241
  }, {
242
242
  operationName: 'CreateHelpPointer'
243
243
  });
244
- case 2:
244
+ case 1:
245
245
  response = _context7.sent;
246
246
  return _context7.abrupt("return", response.createHelpPointer);
247
- case 4:
247
+ case 2:
248
248
  case "end":
249
249
  return _context7.stop();
250
250
  }
@@ -260,20 +260,20 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
260
260
  value: function () {
261
261
  var _updateHelpPointer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8(variables) {
262
262
  var response;
263
- return _regenerator.default.wrap(function _callee8$(_context8) {
263
+ return _regenerator.default.wrap(function (_context8) {
264
264
  while (1) switch (_context8.prev = _context8.next) {
265
265
  case 0:
266
- _context8.next = 2;
266
+ _context8.next = 1;
267
267
  return this.makeGraphQLRequest({
268
268
  query: _helpPointerUpdateMutation.HelpPointerUpdateMutation,
269
269
  variables: variables
270
270
  }, {
271
271
  operationName: 'UpdateHelpPointer'
272
272
  });
273
- case 2:
273
+ case 1:
274
274
  response = _context8.sent;
275
275
  return _context8.abrupt("return", response.updateHelpPointer);
276
- case 4:
276
+ case 2:
277
277
  case "end":
278
278
  return _context8.stop();
279
279
  }
@@ -289,20 +289,20 @@ var TeamCentralClient = exports.TeamCentralClient = /*#__PURE__*/function (_Base
289
289
  value: function () {
290
290
  var _deleteHelpPointer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(variables) {
291
291
  var response;
292
- return _regenerator.default.wrap(function _callee9$(_context9) {
292
+ return _regenerator.default.wrap(function (_context9) {
293
293
  while (1) switch (_context9.prev = _context9.next) {
294
294
  case 0:
295
- _context9.next = 2;
295
+ _context9.next = 1;
296
296
  return this.makeGraphQLRequest({
297
297
  query: _helpPointerDeleteMutation.HelpPointerDeleteMutation,
298
298
  variables: variables
299
299
  }, {
300
300
  operationName: 'DeleteHelpPointer'
301
301
  });
302
- case 2:
302
+ case 1:
303
303
  response = _context9.sent;
304
304
  return _context9.abrupt("return", response.deleteHelpPointer);
305
- case 4:
305
+ case 2:
306
306
  case "end":
307
307
  return _context9.stop();
308
308
  }
@@ -33,7 +33,7 @@ var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_Re
33
33
  key: "getTeamInSlack",
34
34
  value: function () {
35
35
  var _getTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(teamId, teamName) {
36
- return _regenerator.default.wrap(function _callee$(_context) {
36
+ return _regenerator.default.wrap(function (_context) {
37
37
  while (1) switch (_context.prev = _context.next) {
38
38
  case 0:
39
39
  return _context.abrupt("return", this.getResource("/".concat(teamId, "?teamName=").concat(encodeURIComponent(teamName))).then(function (response) {
@@ -56,7 +56,7 @@ var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_Re
56
56
  key: "disconnectTeamInSlack",
57
57
  value: function () {
58
58
  var _disconnectTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(teamId) {
59
- return _regenerator.default.wrap(function _callee2$(_context2) {
59
+ return _regenerator.default.wrap(function (_context2) {
60
60
  while (1) switch (_context2.prev = _context2.next) {
61
61
  case 0:
62
62
  return _context2.abrupt("return", this.deleteResource("/".concat(teamId)).then(function (response) {
@@ -79,7 +79,7 @@ var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_Re
79
79
  key: "updateTeamInSlack",
80
80
  value: function () {
81
81
  var _updateTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(teamId, channelId, usergroupHandle) {
82
- return _regenerator.default.wrap(function _callee3$(_context3) {
82
+ return _regenerator.default.wrap(function (_context3) {
83
83
  while (1) switch (_context3.prev = _context3.next) {
84
84
  case 0:
85
85
  return _context3.abrupt("return", this.postResource("/".concat(teamId, "?channel=").concat(channelId, "&groupName=").concat(usergroupHandle)).then(function (response) {