@atlaskit/teams-client 4.32.5 → 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 (95) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/agg-client/package.json +15 -0
  3. package/agg-client/types/package.json +15 -0
  4. package/ari/package.json +15 -0
  5. package/association/package.json +15 -0
  6. package/config/package.json +15 -0
  7. package/dist/cjs/common/utils/http.js +8 -8
  8. package/dist/cjs/common/utils/permissions/has-permission.js +4 -0
  9. package/dist/cjs/common/utils/ufo/index.js +2 -2
  10. package/dist/cjs/services/agg-client/index.js +28 -28
  11. package/dist/cjs/services/directory-client/index.js +38 -36
  12. package/dist/cjs/services/graphql-client/main.js +13 -12
  13. package/dist/cjs/services/graphql-client/utils/index.js +32 -31
  14. package/dist/cjs/services/identity-client/index.js +10 -10
  15. package/dist/cjs/services/invitations-client/index.js +40 -38
  16. package/dist/cjs/services/legion-client/index.js +163 -162
  17. package/dist/cjs/services/main.js +162 -162
  18. package/dist/cjs/services/mutability-client/index.js +1 -1
  19. package/dist/cjs/services/object-resolver-client/index.js +18 -18
  20. package/dist/cjs/services/public-api-client/index.js +69 -68
  21. package/dist/cjs/services/replines-client/index.js +2 -2
  22. package/dist/cjs/services/reporting-lines-client/index.js +4 -4
  23. package/dist/cjs/services/rest-client/index.js +28 -28
  24. package/dist/cjs/services/rest-client/utils/parse-error-message.js +18 -18
  25. package/dist/cjs/services/sentry/main.js +23 -22
  26. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  27. package/dist/cjs/services/sentry/utils/initialise-sentry.js +6 -6
  28. package/dist/cjs/services/sentry/utils/sentry-client.js +20 -19
  29. package/dist/cjs/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
  30. package/dist/cjs/services/team-central-client/index.js +36 -36
  31. package/dist/cjs/services/teams-in-slack-client/index.js +3 -3
  32. package/dist/cjs/services/use-query-light/main.js +38 -38
  33. package/dist/cjs/services/user-preferences-client/index.js +6 -6
  34. package/dist/es2019/common/utils/permissions/has-permission.js +4 -0
  35. package/dist/es2019/common/utils/ufo/index.js +2 -2
  36. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  37. package/dist/esm/common/utils/http.js +8 -8
  38. package/dist/esm/common/utils/permissions/has-permission.js +4 -0
  39. package/dist/esm/common/utils/ufo/index.js +2 -2
  40. package/dist/esm/services/agg-client/index.js +28 -28
  41. package/dist/esm/services/directory-client/index.js +38 -36
  42. package/dist/esm/services/graphql-client/main.js +13 -12
  43. package/dist/esm/services/graphql-client/utils/index.js +32 -31
  44. package/dist/esm/services/identity-client/index.js +10 -10
  45. package/dist/esm/services/invitations-client/index.js +40 -38
  46. package/dist/esm/services/legion-client/index.js +163 -162
  47. package/dist/esm/services/main.js +162 -162
  48. package/dist/esm/services/mutability-client/index.js +1 -1
  49. package/dist/esm/services/object-resolver-client/index.js +18 -18
  50. package/dist/esm/services/public-api-client/index.js +69 -68
  51. package/dist/esm/services/replines-client/index.js +2 -2
  52. package/dist/esm/services/reporting-lines-client/index.js +4 -4
  53. package/dist/esm/services/rest-client/index.js +28 -28
  54. package/dist/esm/services/rest-client/utils/parse-error-message.js +18 -18
  55. package/dist/esm/services/sentry/main.js +23 -22
  56. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  57. package/dist/esm/services/sentry/utils/initialise-sentry.js +6 -6
  58. package/dist/esm/services/sentry/utils/sentry-client.js +19 -18
  59. package/dist/esm/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
  60. package/dist/esm/services/team-central-client/index.js +36 -36
  61. package/dist/esm/services/teams-in-slack-client/index.js +3 -3
  62. package/dist/esm/services/use-query-light/main.js +38 -38
  63. package/dist/esm/services/user-preferences-client/index.js +6 -6
  64. package/dist/types/common/utils/permissions/has-permission.d.ts +4 -0
  65. package/dist/types/types/index.d.ts +1 -1
  66. package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +4 -0
  67. package/dist/types-ts4.5/types/index.d.ts +1 -1
  68. package/endpoints/package.json +15 -0
  69. package/error/package.json +15 -0
  70. package/generate-data/package.json +15 -0
  71. package/has-permission/package.json +15 -0
  72. package/initialise-sentry/package.json +15 -0
  73. package/legion-client/package.json +15 -0
  74. package/links/package.json +15 -0
  75. package/main/package.json +15 -0
  76. package/media/package.json +15 -0
  77. package/membership/package.json +15 -0
  78. package/package.json +3 -2
  79. package/permissions/types/package.json +15 -0
  80. package/reporting-lines-client/utils/types/package.json +15 -0
  81. package/sentry/main/package.json +15 -0
  82. package/sentry/types/package.json +15 -0
  83. package/slack/package.json +15 -0
  84. package/sort-teams/package.json +15 -0
  85. package/team/package.json +15 -0
  86. package/team-container/package.json +15 -0
  87. package/tenure/package.json +15 -0
  88. package/types/team/package.json +15 -0
  89. package/unlink-container-mutation/package.json +15 -0
  90. package/use-query-light/main/package.json +15 -0
  91. package/use-query-light/types/package.json +15 -0
  92. package/use-teams-client-setup/package.json +15 -0
  93. package/use-teams-sentry-client-setup/package.json +15 -0
  94. package/user/package.json +15 -0
  95. package/user-info-provider/main/package.json +15 -0
@@ -5,51 +5,51 @@ export function parseErrorMessage(_x) {
5
5
  }
6
6
  function _parseErrorMessage() {
7
7
  _parseErrorMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(response) {
8
- var json, text, errs;
9
- return _regeneratorRuntime.wrap(function _callee$(_context) {
8
+ var json, text, errs, _t;
9
+ return _regeneratorRuntime.wrap(function (_context) {
10
10
  while (1) switch (_context.prev = _context.next) {
11
11
  case 0:
12
- _context.next = 2;
12
+ _context.next = 1;
13
13
  return response.text();
14
- case 2:
14
+ case 1:
15
15
  text = _context.sent;
16
- _context.prev = 3;
16
+ _context.prev = 2;
17
17
  json = JSON.parse(text);
18
- _context.next = 10;
18
+ _context.next = 4;
19
19
  break;
20
- case 7:
21
- _context.prev = 7;
22
- _context.t0 = _context["catch"](3);
20
+ case 3:
21
+ _context.prev = 3;
22
+ _t = _context["catch"](2);
23
23
  return _context.abrupt("return", text);
24
- case 10:
24
+ case 4:
25
25
  delete json.timestamp; // to dedupe sentry, scrub non-unique 'timestamp' field from the error body
26
26
  if (!json.error) {
27
- _context.next = 15;
27
+ _context.next = 5;
28
28
  break;
29
29
  }
30
30
  return _context.abrupt("return", "".concat(json.status || 'UNKNOWN_STATUS', " ").concat(json.error || 'MISSING_ERROR_MESSAGE'));
31
- case 15:
31
+ case 5:
32
32
  if (!json.status) {
33
- _context.next = 19;
33
+ _context.next = 6;
34
34
  break;
35
35
  }
36
36
  return _context.abrupt("return", "".concat(json.status, " MISSING_ERROR_MESSAGE"));
37
- case 19:
37
+ case 6:
38
38
  if (!json.errors) {
39
- _context.next = 22;
39
+ _context.next = 7;
40
40
  break;
41
41
  }
42
42
  errs = json.errors.map(function (error) {
43
43
  return typeof error === 'string' ? error : error.code || error.message || 'MISSING_ERROR_MESSAGE';
44
44
  });
45
45
  return _context.abrupt("return", errs.join('\n - '));
46
- case 22:
46
+ case 7:
47
47
  return _context.abrupt("return", JSON.stringify(json));
48
- case 23:
48
+ case 8:
49
49
  case "end":
50
50
  return _context.stop();
51
51
  }
52
- }, _callee, null, [[3, 7]]);
52
+ }, _callee, null, [[2, 3]]);
53
53
  }));
54
54
  return _parseErrorMessage.apply(this, arguments);
55
55
  }
@@ -31,22 +31,23 @@ function _logException() {
31
31
  _logException = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(ex, name) {
32
32
  var context,
33
33
  sentryClient,
34
- _args = arguments;
35
- return _regeneratorRuntime.wrap(function _callee$(_context) {
34
+ _args = arguments,
35
+ _t;
36
+ return _regeneratorRuntime.wrap(function (_context) {
36
37
  while (1) switch (_context.prev = _context.next) {
37
38
  case 0:
38
39
  context = _args.length > 2 && _args[2] !== undefined ? _args[2] : {};
39
40
  _context.prev = 1;
40
- _context.next = 4;
41
+ _context.next = 2;
41
42
  return getSentryClient();
42
- case 4:
43
+ case 2:
43
44
  sentryClient = _context.sent;
44
45
  if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
45
- _context.next = 7;
46
+ _context.next = 3;
46
47
  break;
47
48
  }
48
49
  return _context.abrupt("return");
49
- case 7:
50
+ case 3:
50
51
  sentryClient.withScope(function (scope) {
51
52
  var _context$packageName, _context$packageVersi;
52
53
  decorateScope(scope, context);
@@ -55,16 +56,16 @@ function _logException() {
55
56
  scope.setTag('packageVersion', (_context$packageVersi = context.packageVersion) !== null && _context$packageVersi !== void 0 ? _context$packageVersi : 'unknown');
56
57
  sentryClient.captureException(ex, scope);
57
58
  });
58
- _context.next = 12;
59
+ _context.next = 5;
59
60
  break;
60
- case 10:
61
- _context.prev = 10;
62
- _context.t0 = _context["catch"](1);
63
- case 12:
61
+ case 4:
62
+ _context.prev = 4;
63
+ _t = _context["catch"](1);
64
+ case 5:
64
65
  case "end":
65
66
  return _context.stop();
66
67
  }
67
- }, _callee, null, [[1, 10]]);
68
+ }, _callee, null, [[1, 4]]);
68
69
  }));
69
70
  return _logException.apply(this, arguments);
70
71
  }
@@ -76,20 +77,20 @@ function _logMessage() {
76
77
  var context,
77
78
  sentryClient,
78
79
  _args2 = arguments;
79
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
80
+ return _regeneratorRuntime.wrap(function (_context2) {
80
81
  while (1) switch (_context2.prev = _context2.next) {
81
82
  case 0:
82
83
  context = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : {};
83
- _context2.next = 3;
84
+ _context2.next = 1;
84
85
  return getSentryClient();
85
- case 3:
86
+ case 1:
86
87
  sentryClient = _context2.sent;
87
88
  if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
88
- _context2.next = 6;
89
+ _context2.next = 2;
89
90
  break;
90
91
  }
91
92
  return _context2.abrupt("return");
92
- case 6:
93
+ case 2:
93
94
  sentryClient.withScope(function (scope) {
94
95
  var _context$packageName2, _context$packageVersi2;
95
96
  decorateScope(scope, context);
@@ -100,7 +101,7 @@ function _logMessage() {
100
101
  scope.setTag('packageVersion', (_context$packageVersi2 = context.packageVersion) !== null && _context$packageVersi2 !== void 0 ? _context$packageVersi2 : 'unknown');
101
102
  sentryClient.captureMessage(message, scope);
102
103
  });
103
- case 7:
104
+ case 3:
104
105
  case "end":
105
106
  return _context2.stop();
106
107
  }
@@ -165,12 +166,12 @@ export function addBreadcrumb(_x5) {
165
166
  function _addBreadcrumb() {
166
167
  _addBreadcrumb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(crumb) {
167
168
  var sentryClient;
168
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
169
+ return _regeneratorRuntime.wrap(function (_context3) {
169
170
  while (1) switch (_context3.prev = _context3.next) {
170
171
  case 0:
171
- _context3.next = 2;
172
+ _context3.next = 1;
172
173
  return getSentryClient();
173
- case 2:
174
+ case 1:
174
175
  sentryClient = _context3.sent;
175
176
  sentryClient.withScope(function (scope) {
176
177
  // @ts-ignore - TypeScript 5.9.2 upgrade
@@ -178,7 +179,7 @@ function _addBreadcrumb() {
178
179
  message: crumb
179
180
  } : crumb);
180
181
  });
181
- case 4:
182
+ case 2:
182
183
  case "end":
183
184
  return _context3.stop();
184
185
  }
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
29
29
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
30
30
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
31
31
  // when building to deploy to production
32
- release: "".concat("@atlaskit/teams-client", "@").concat("4.32.4") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.33.0") ||
33
33
  // @ts-ignore Jira - window.BUILD_KEY
34
34
  window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
35
35
  (_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
@@ -14,21 +14,21 @@ export function initialiseSentry(_x, _x2) {
14
14
  function _initialiseSentry() {
15
15
  _initialiseSentry = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(client, options) {
16
16
  var sentryConfig;
17
- return _regeneratorRuntime.wrap(function _callee$(_context) {
17
+ return _regeneratorRuntime.wrap(function (_context) {
18
18
  while (1) switch (_context.prev = _context.next) {
19
19
  case 0:
20
20
  if (!sentryClient) {
21
- _context.next = 2;
21
+ _context.next = 1;
22
22
  break;
23
23
  }
24
24
  return _context.abrupt("return");
25
- case 2:
25
+ case 1:
26
26
  if (client) {
27
- _context.next = 4;
27
+ _context.next = 2;
28
28
  break;
29
29
  }
30
30
  return _context.abrupt("return");
31
- case 4:
31
+ case 2:
32
32
  setSentryClient(client);
33
33
  sentryConfig = getSentryConfig(options);
34
34
  sentryClient.init(_objectSpread(_objectSpread({}, sentryConfig), {}, {
@@ -38,7 +38,7 @@ function _initialiseSentry() {
38
38
  });
39
39
  }
40
40
  }));
41
- case 7:
41
+ case 3:
42
42
  case "end":
43
43
  return _context.stop();
44
44
  }
@@ -8,18 +8,18 @@ export var setSentryClient = function setSentryClient(client) {
8
8
  };
9
9
  export var getSentryClient = /*#__PURE__*/function () {
10
10
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
11
- return _regeneratorRuntime.wrap(function _callee$(_context) {
11
+ return _regeneratorRuntime.wrap(function (_context) {
12
12
  while (1) switch (_context.prev = _context.next) {
13
13
  case 0:
14
14
  if (sentryClient) {
15
- _context.next = 3;
15
+ _context.next = 1;
16
16
  break;
17
17
  }
18
- _context.next = 3;
18
+ _context.next = 1;
19
19
  return setupSentryClient({});
20
- case 3:
20
+ case 1:
21
21
  return _context.abrupt("return", sentryClient);
22
- case 4:
22
+ case 2:
23
23
  case "end":
24
24
  return _context.stop();
25
25
  }
@@ -36,20 +36,20 @@ function _setupSentryClient() {
36
36
  _setupSentryClient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref2) {
37
37
  var _window$__buildInfo;
38
38
  var appName, env, sentryClient;
39
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
39
+ return _regeneratorRuntime.wrap(function (_context2) {
40
40
  while (1) switch (_context2.prev = _context2.next) {
41
41
  case 0:
42
42
  appName = _ref2.appName, env = _ref2.env;
43
- _context2.next = 3;
43
+ _context2.next = 1;
44
44
  return requireSentryLib();
45
- case 3:
45
+ case 1:
46
46
  sentryClient = _context2.sent;
47
47
  if (sentryClient) {
48
- _context2.next = 6;
48
+ _context2.next = 2;
49
49
  break;
50
50
  }
51
51
  return _context2.abrupt("return");
52
- case 6:
52
+ case 2:
53
53
  // initialiseSentry sets the sentry client
54
54
  initialiseSentry(sentryClient, {
55
55
  initialScope: {
@@ -66,7 +66,7 @@ function _setupSentryClient() {
66
66
  dsn: SENTRY_DSN,
67
67
  attachStacktrace: true
68
68
  });
69
- case 7:
69
+ case 3:
70
70
  case "end":
71
71
  return _context2.stop();
72
72
  }
@@ -79,22 +79,23 @@ function requireSentryLib() {
79
79
  }
80
80
  function _requireSentryLib() {
81
81
  _requireSentryLib = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
82
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
82
+ var _t;
83
+ return _regeneratorRuntime.wrap(function (_context3) {
83
84
  while (1) switch (_context3.prev = _context3.next) {
84
85
  case 0:
85
86
  _context3.prev = 0;
86
87
  return _context3.abrupt("return", import( /* webpackChunkName: "teams-client_sentry" */'@sentry/browser'));
87
- case 4:
88
- _context3.prev = 4;
89
- _context3.t0 = _context3["catch"](0);
88
+ case 1:
89
+ _context3.prev = 1;
90
+ _t = _context3["catch"](0);
90
91
  // eslint-disable-next-line no-console
91
- console.warn('Ignoring rejected promise when loading sentry resource.', _context3.t0);
92
+ console.warn('Ignoring rejected promise when loading sentry resource.', _t);
92
93
  return _context3.abrupt("return", undefined);
93
- case 8:
94
+ case 2:
94
95
  case "end":
95
96
  return _context3.stop();
96
97
  }
97
- }, _callee3, null, [[0, 4]]);
98
+ }, _callee3, null, [[0, 1]]);
98
99
  }));
99
100
  return _requireSentryLib.apply(this, arguments);
100
101
  }
@@ -9,16 +9,16 @@ export var useTeamsSentryClientSetup = function useTeamsSentryClientSetup(isSent
9
9
  sentryInitialised = _useState2[0],
10
10
  setSentryInitialised = _useState2[1];
11
11
  var setupSentry = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
12
- return _regeneratorRuntime.wrap(function _callee$(_context) {
12
+ return _regeneratorRuntime.wrap(function (_context) {
13
13
  while (1) switch (_context.prev = _context.next) {
14
14
  case 0:
15
15
  if (!(!sentryInitialised && isSentryEnabled && !sentryClient)) {
16
- _context.next = 3;
16
+ _context.next = 1;
17
17
  break;
18
18
  }
19
- _context.next = 3;
19
+ _context.next = 1;
20
20
  return setupSentryClient(config);
21
- case 3:
21
+ case 1:
22
22
  case "end":
23
23
  return _context.stop();
24
24
  }
@@ -39,10 +39,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
39
39
  value: function () {
40
40
  var _isTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(teamId, cloudId) {
41
41
  var response;
42
- return _regeneratorRuntime.wrap(function _callee$(_context) {
42
+ return _regeneratorRuntime.wrap(function (_context) {
43
43
  while (1) switch (_context.prev = _context.next) {
44
44
  case 0:
45
- _context.next = 2;
45
+ _context.next = 1;
46
46
  return this.makeGraphQLRequest({
47
47
  query: IsTeamWatcherQuery,
48
48
  variables: {
@@ -52,10 +52,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
52
52
  }, {
53
53
  operationName: 'isTeamWatcher'
54
54
  });
55
- case 2:
55
+ case 1:
56
56
  response = _context.sent;
57
57
  return _context.abrupt("return", response.isTeamWatcher);
58
- case 4:
58
+ case 2:
59
59
  case "end":
60
60
  return _context.stop();
61
61
  }
@@ -71,10 +71,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
71
71
  value: function () {
72
72
  var _addTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(teamId, cloudId) {
73
73
  var response;
74
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
74
+ return _regeneratorRuntime.wrap(function (_context2) {
75
75
  while (1) switch (_context2.prev = _context2.next) {
76
76
  case 0:
77
- _context2.next = 2;
77
+ _context2.next = 1;
78
78
  return this.makeGraphQLRequest({
79
79
  query: AddTeamWatcherMutation,
80
80
  variables: {
@@ -84,10 +84,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
84
84
  }, {
85
85
  operationName: 'addTeamWatcher'
86
86
  });
87
- case 2:
87
+ case 1:
88
88
  response = _context2.sent;
89
89
  return _context2.abrupt("return", response.addTeamWatcher);
90
- case 4:
90
+ case 2:
91
91
  case "end":
92
92
  return _context2.stop();
93
93
  }
@@ -103,10 +103,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
103
103
  value: function () {
104
104
  var _removeTeamWatcher = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(teamId, cloudId) {
105
105
  var response;
106
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
106
+ return _regeneratorRuntime.wrap(function (_context3) {
107
107
  while (1) switch (_context3.prev = _context3.next) {
108
108
  case 0:
109
- _context3.next = 2;
109
+ _context3.next = 1;
110
110
  return this.makeGraphQLRequest({
111
111
  query: RemoveTeamWatcherMutation,
112
112
  variables: {
@@ -116,10 +116,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
116
116
  }, {
117
117
  operationName: 'removeTeamWatcher'
118
118
  });
119
- case 2:
119
+ case 1:
120
120
  response = _context3.sent;
121
121
  return _context3.abrupt("return", response.removeTeamWatcher);
122
- case 4:
122
+ case 2:
123
123
  case "end":
124
124
  return _context3.stop();
125
125
  }
@@ -135,10 +135,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
135
135
  value: function () {
136
136
  var _deleteKudos = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(id) {
137
137
  var response;
138
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
138
+ return _regeneratorRuntime.wrap(function (_context4) {
139
139
  while (1) switch (_context4.prev = _context4.next) {
140
140
  case 0:
141
- _context4.next = 2;
141
+ _context4.next = 1;
142
142
  return this.makeGraphQLRequest({
143
143
  query: KudosDeleteMutation,
144
144
  variables: {
@@ -147,10 +147,10 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
147
147
  }, {
148
148
  operationName: 'DeleteKudos'
149
149
  });
150
- case 2:
150
+ case 1:
151
151
  response = _context4.sent;
152
152
  return _context4.abrupt("return", response.deleteKudos);
153
- case 4:
153
+ case 2:
154
154
  case "end":
155
155
  return _context4.stop();
156
156
  }
@@ -166,20 +166,20 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
166
166
  value: function () {
167
167
  var _queryTagList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(variables) {
168
168
  var response;
169
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
169
+ return _regeneratorRuntime.wrap(function (_context5) {
170
170
  while (1) switch (_context5.prev = _context5.next) {
171
171
  case 0:
172
- _context5.next = 2;
172
+ _context5.next = 1;
173
173
  return this.makeGraphQLRequest({
174
174
  query: TagListQuery,
175
175
  variables: variables
176
176
  }, {
177
177
  operationName: 'TagListByCloudId'
178
178
  });
179
- case 2:
179
+ case 1:
180
180
  response = _context5.sent;
181
181
  return _context5.abrupt("return", response.tagSearchByCloudId);
182
- case 4:
182
+ case 2:
183
183
  case "end":
184
184
  return _context5.stop();
185
185
  }
@@ -195,20 +195,20 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
195
195
  value: function () {
196
196
  var _createTag = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(variables) {
197
197
  var response;
198
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
198
+ return _regeneratorRuntime.wrap(function (_context6) {
199
199
  while (1) switch (_context6.prev = _context6.next) {
200
200
  case 0:
201
- _context6.next = 2;
201
+ _context6.next = 1;
202
202
  return this.makeGraphQLRequest({
203
203
  query: CreateTagMutation,
204
204
  variables: variables
205
205
  }, {
206
206
  operationName: 'createTagForCloudId'
207
207
  });
208
- case 2:
208
+ case 1:
209
209
  response = _context6.sent;
210
210
  return _context6.abrupt("return", response.createTagForCloudId);
211
- case 4:
211
+ case 2:
212
212
  case "end":
213
213
  return _context6.stop();
214
214
  }
@@ -224,20 +224,20 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
224
224
  value: function () {
225
225
  var _createHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(variables) {
226
226
  var response;
227
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
227
+ return _regeneratorRuntime.wrap(function (_context7) {
228
228
  while (1) switch (_context7.prev = _context7.next) {
229
229
  case 0:
230
- _context7.next = 2;
230
+ _context7.next = 1;
231
231
  return this.makeGraphQLRequest({
232
232
  query: HelpPointerCreateMutation,
233
233
  variables: variables
234
234
  }, {
235
235
  operationName: 'CreateHelpPointer'
236
236
  });
237
- case 2:
237
+ case 1:
238
238
  response = _context7.sent;
239
239
  return _context7.abrupt("return", response.createHelpPointer);
240
- case 4:
240
+ case 2:
241
241
  case "end":
242
242
  return _context7.stop();
243
243
  }
@@ -253,20 +253,20 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
253
253
  value: function () {
254
254
  var _updateHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(variables) {
255
255
  var response;
256
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
256
+ return _regeneratorRuntime.wrap(function (_context8) {
257
257
  while (1) switch (_context8.prev = _context8.next) {
258
258
  case 0:
259
- _context8.next = 2;
259
+ _context8.next = 1;
260
260
  return this.makeGraphQLRequest({
261
261
  query: HelpPointerUpdateMutation,
262
262
  variables: variables
263
263
  }, {
264
264
  operationName: 'UpdateHelpPointer'
265
265
  });
266
- case 2:
266
+ case 1:
267
267
  response = _context8.sent;
268
268
  return _context8.abrupt("return", response.updateHelpPointer);
269
- case 4:
269
+ case 2:
270
270
  case "end":
271
271
  return _context8.stop();
272
272
  }
@@ -282,20 +282,20 @@ export var TeamCentralClient = /*#__PURE__*/function (_BaseGraphQlClient) {
282
282
  value: function () {
283
283
  var _deleteHelpPointer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(variables) {
284
284
  var response;
285
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
285
+ return _regeneratorRuntime.wrap(function (_context9) {
286
286
  while (1) switch (_context9.prev = _context9.next) {
287
287
  case 0:
288
- _context9.next = 2;
288
+ _context9.next = 1;
289
289
  return this.makeGraphQLRequest({
290
290
  query: HelpPointerDeleteMutation,
291
291
  variables: variables
292
292
  }, {
293
293
  operationName: 'DeleteHelpPointer'
294
294
  });
295
- case 2:
295
+ case 1:
296
296
  response = _context9.sent;
297
297
  return _context9.abrupt("return", response.deleteHelpPointer);
298
- case 4:
298
+ case 2:
299
299
  case "end":
300
300
  return _context9.stop();
301
301
  }
@@ -26,7 +26,7 @@ export var TeamsInSlackClient = /*#__PURE__*/function (_RestClient) {
26
26
  key: "getTeamInSlack",
27
27
  value: function () {
28
28
  var _getTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(teamId, teamName) {
29
- return _regeneratorRuntime.wrap(function _callee$(_context) {
29
+ return _regeneratorRuntime.wrap(function (_context) {
30
30
  while (1) switch (_context.prev = _context.next) {
31
31
  case 0:
32
32
  return _context.abrupt("return", this.getResource("/".concat(teamId, "?teamName=").concat(encodeURIComponent(teamName))).then(function (response) {
@@ -49,7 +49,7 @@ export var TeamsInSlackClient = /*#__PURE__*/function (_RestClient) {
49
49
  key: "disconnectTeamInSlack",
50
50
  value: function () {
51
51
  var _disconnectTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(teamId) {
52
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
52
+ return _regeneratorRuntime.wrap(function (_context2) {
53
53
  while (1) switch (_context2.prev = _context2.next) {
54
54
  case 0:
55
55
  return _context2.abrupt("return", this.deleteResource("/".concat(teamId)).then(function (response) {
@@ -72,7 +72,7 @@ export var TeamsInSlackClient = /*#__PURE__*/function (_RestClient) {
72
72
  key: "updateTeamInSlack",
73
73
  value: function () {
74
74
  var _updateTeamInSlack = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(teamId, channelId, usergroupHandle) {
75
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
75
+ return _regeneratorRuntime.wrap(function (_context3) {
76
76
  while (1) switch (_context3.prev = _context3.next) {
77
77
  case 0:
78
78
  return _context3.abrupt("return", this.postResource("/".concat(teamId, "?channel=").concat(channelId, "&groupName=").concat(usergroupHandle)).then(function (response) {