@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.
- package/CHANGELOG.md +15 -0
- package/agg-client/package.json +15 -0
- package/agg-client/types/package.json +15 -0
- package/ari/package.json +15 -0
- package/association/package.json +15 -0
- package/config/package.json +15 -0
- package/dist/cjs/common/utils/http.js +8 -8
- package/dist/cjs/common/utils/permissions/has-permission.js +4 -0
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/agg-client/index.js +28 -28
- package/dist/cjs/services/directory-client/index.js +38 -36
- package/dist/cjs/services/graphql-client/main.js +13 -12
- package/dist/cjs/services/graphql-client/utils/index.js +32 -31
- package/dist/cjs/services/identity-client/index.js +10 -10
- package/dist/cjs/services/invitations-client/index.js +40 -38
- package/dist/cjs/services/legion-client/index.js +163 -162
- package/dist/cjs/services/main.js +162 -162
- package/dist/cjs/services/mutability-client/index.js +1 -1
- package/dist/cjs/services/object-resolver-client/index.js +18 -18
- package/dist/cjs/services/public-api-client/index.js +69 -68
- package/dist/cjs/services/replines-client/index.js +2 -2
- package/dist/cjs/services/reporting-lines-client/index.js +4 -4
- package/dist/cjs/services/rest-client/index.js +28 -28
- package/dist/cjs/services/rest-client/utils/parse-error-message.js +18 -18
- package/dist/cjs/services/sentry/main.js +23 -22
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/cjs/services/sentry/utils/initialise-sentry.js +6 -6
- package/dist/cjs/services/sentry/utils/sentry-client.js +20 -19
- package/dist/cjs/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
- package/dist/cjs/services/team-central-client/index.js +36 -36
- package/dist/cjs/services/teams-in-slack-client/index.js +3 -3
- package/dist/cjs/services/use-query-light/main.js +38 -38
- package/dist/cjs/services/user-preferences-client/index.js +6 -6
- package/dist/es2019/common/utils/permissions/has-permission.js +4 -0
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/http.js +8 -8
- package/dist/esm/common/utils/permissions/has-permission.js +4 -0
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/agg-client/index.js +28 -28
- package/dist/esm/services/directory-client/index.js +38 -36
- package/dist/esm/services/graphql-client/main.js +13 -12
- package/dist/esm/services/graphql-client/utils/index.js +32 -31
- package/dist/esm/services/identity-client/index.js +10 -10
- package/dist/esm/services/invitations-client/index.js +40 -38
- package/dist/esm/services/legion-client/index.js +163 -162
- package/dist/esm/services/main.js +162 -162
- package/dist/esm/services/mutability-client/index.js +1 -1
- package/dist/esm/services/object-resolver-client/index.js +18 -18
- package/dist/esm/services/public-api-client/index.js +69 -68
- package/dist/esm/services/replines-client/index.js +2 -2
- package/dist/esm/services/reporting-lines-client/index.js +4 -4
- package/dist/esm/services/rest-client/index.js +28 -28
- package/dist/esm/services/rest-client/utils/parse-error-message.js +18 -18
- package/dist/esm/services/sentry/main.js +23 -22
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/services/sentry/utils/initialise-sentry.js +6 -6
- package/dist/esm/services/sentry/utils/sentry-client.js +19 -18
- package/dist/esm/services/sentry/utils/use-teams-sentry-client-setup.js +4 -4
- package/dist/esm/services/team-central-client/index.js +36 -36
- package/dist/esm/services/teams-in-slack-client/index.js +3 -3
- package/dist/esm/services/use-query-light/main.js +38 -38
- package/dist/esm/services/user-preferences-client/index.js +6 -6
- package/dist/types/common/utils/permissions/has-permission.d.ts +4 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +4 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/endpoints/package.json +15 -0
- package/error/package.json +15 -0
- package/generate-data/package.json +15 -0
- package/has-permission/package.json +15 -0
- package/initialise-sentry/package.json +15 -0
- package/legion-client/package.json +15 -0
- package/links/package.json +15 -0
- package/main/package.json +15 -0
- package/media/package.json +15 -0
- package/membership/package.json +15 -0
- package/package.json +3 -2
- package/permissions/types/package.json +15 -0
- package/reporting-lines-client/utils/types/package.json +15 -0
- package/sentry/main/package.json +15 -0
- package/sentry/types/package.json +15 -0
- package/slack/package.json +15 -0
- package/sort-teams/package.json +15 -0
- package/team/package.json +15 -0
- package/team-container/package.json +15 -0
- package/tenure/package.json +15 -0
- package/types/team/package.json +15 -0
- package/unlink-container-mutation/package.json +15 -0
- package/use-query-light/main/package.json +15 -0
- package/use-query-light/types/package.json +15 -0
- package/use-teams-client-setup/package.json +15 -0
- package/use-teams-sentry-client-setup/package.json +15 -0
- package/user/package.json +15 -0
- 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
|
|
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 =
|
|
12
|
+
_context.next = 1;
|
|
13
13
|
return response.text();
|
|
14
|
-
case
|
|
14
|
+
case 1:
|
|
15
15
|
text = _context.sent;
|
|
16
|
-
_context.prev =
|
|
16
|
+
_context.prev = 2;
|
|
17
17
|
json = JSON.parse(text);
|
|
18
|
-
_context.next =
|
|
18
|
+
_context.next = 4;
|
|
19
19
|
break;
|
|
20
|
-
case
|
|
21
|
-
_context.prev =
|
|
22
|
-
|
|
20
|
+
case 3:
|
|
21
|
+
_context.prev = 3;
|
|
22
|
+
_t = _context["catch"](2);
|
|
23
23
|
return _context.abrupt("return", text);
|
|
24
|
-
case
|
|
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 =
|
|
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
|
|
31
|
+
case 5:
|
|
32
32
|
if (!json.status) {
|
|
33
|
-
_context.next =
|
|
33
|
+
_context.next = 6;
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
36
|
return _context.abrupt("return", "".concat(json.status, " MISSING_ERROR_MESSAGE"));
|
|
37
|
-
case
|
|
37
|
+
case 6:
|
|
38
38
|
if (!json.errors) {
|
|
39
|
-
_context.next =
|
|
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
|
|
46
|
+
case 7:
|
|
47
47
|
return _context.abrupt("return", JSON.stringify(json));
|
|
48
|
-
case
|
|
48
|
+
case 8:
|
|
49
49
|
case "end":
|
|
50
50
|
return _context.stop();
|
|
51
51
|
}
|
|
52
|
-
}, _callee, null, [[
|
|
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
|
-
|
|
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 =
|
|
41
|
+
_context.next = 2;
|
|
41
42
|
return getSentryClient();
|
|
42
|
-
case
|
|
43
|
+
case 2:
|
|
43
44
|
sentryClient = _context.sent;
|
|
44
45
|
if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
|
|
45
|
-
_context.next =
|
|
46
|
+
_context.next = 3;
|
|
46
47
|
break;
|
|
47
48
|
}
|
|
48
49
|
return _context.abrupt("return");
|
|
49
|
-
case
|
|
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 =
|
|
59
|
+
_context.next = 5;
|
|
59
60
|
break;
|
|
60
|
-
case
|
|
61
|
-
_context.prev =
|
|
62
|
-
|
|
63
|
-
case
|
|
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,
|
|
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
|
|
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 =
|
|
84
|
+
_context2.next = 1;
|
|
84
85
|
return getSentryClient();
|
|
85
|
-
case
|
|
86
|
+
case 1:
|
|
86
87
|
sentryClient = _context2.sent;
|
|
87
88
|
if (!(!sentryClient || typeof sentryClient.captureException !== 'function')) {
|
|
88
|
-
_context2.next =
|
|
89
|
+
_context2.next = 2;
|
|
89
90
|
break;
|
|
90
91
|
}
|
|
91
92
|
return _context2.abrupt("return");
|
|
92
|
-
case
|
|
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
|
|
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
|
|
169
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
169
170
|
while (1) switch (_context3.prev = _context3.next) {
|
|
170
171
|
case 0:
|
|
171
|
-
_context3.next =
|
|
172
|
+
_context3.next = 1;
|
|
172
173
|
return getSentryClient();
|
|
173
|
-
case
|
|
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
|
|
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
|
+
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
|
|
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 =
|
|
21
|
+
_context.next = 1;
|
|
22
22
|
break;
|
|
23
23
|
}
|
|
24
24
|
return _context.abrupt("return");
|
|
25
|
-
case
|
|
25
|
+
case 1:
|
|
26
26
|
if (client) {
|
|
27
|
-
_context.next =
|
|
27
|
+
_context.next = 2;
|
|
28
28
|
break;
|
|
29
29
|
}
|
|
30
30
|
return _context.abrupt("return");
|
|
31
|
-
case
|
|
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
|
|
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
|
|
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 =
|
|
15
|
+
_context.next = 1;
|
|
16
16
|
break;
|
|
17
17
|
}
|
|
18
|
-
_context.next =
|
|
18
|
+
_context.next = 1;
|
|
19
19
|
return setupSentryClient({});
|
|
20
|
-
case
|
|
20
|
+
case 1:
|
|
21
21
|
return _context.abrupt("return", sentryClient);
|
|
22
|
-
case
|
|
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
|
|
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 =
|
|
43
|
+
_context2.next = 1;
|
|
44
44
|
return requireSentryLib();
|
|
45
|
-
case
|
|
45
|
+
case 1:
|
|
46
46
|
sentryClient = _context2.sent;
|
|
47
47
|
if (sentryClient) {
|
|
48
|
-
_context2.next =
|
|
48
|
+
_context2.next = 2;
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
51
|
return _context2.abrupt("return");
|
|
52
|
-
case
|
|
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
|
|
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
|
-
|
|
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
|
|
88
|
-
_context3.prev =
|
|
89
|
-
|
|
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.',
|
|
92
|
+
console.warn('Ignoring rejected promise when loading sentry resource.', _t);
|
|
92
93
|
return _context3.abrupt("return", undefined);
|
|
93
|
-
case
|
|
94
|
+
case 2:
|
|
94
95
|
case "end":
|
|
95
96
|
return _context3.stop();
|
|
96
97
|
}
|
|
97
|
-
}, _callee3, null, [[0,
|
|
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
|
|
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 =
|
|
16
|
+
_context.next = 1;
|
|
17
17
|
break;
|
|
18
18
|
}
|
|
19
|
-
_context.next =
|
|
19
|
+
_context.next = 1;
|
|
20
20
|
return setupSentryClient(config);
|
|
21
|
-
case
|
|
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
|
|
42
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
44
44
|
case 0:
|
|
45
|
-
_context.next =
|
|
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
|
|
55
|
+
case 1:
|
|
56
56
|
response = _context.sent;
|
|
57
57
|
return _context.abrupt("return", response.isTeamWatcher);
|
|
58
|
-
case
|
|
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
|
|
74
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
75
75
|
while (1) switch (_context2.prev = _context2.next) {
|
|
76
76
|
case 0:
|
|
77
|
-
_context2.next =
|
|
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
|
|
87
|
+
case 1:
|
|
88
88
|
response = _context2.sent;
|
|
89
89
|
return _context2.abrupt("return", response.addTeamWatcher);
|
|
90
|
-
case
|
|
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
|
|
106
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
107
107
|
while (1) switch (_context3.prev = _context3.next) {
|
|
108
108
|
case 0:
|
|
109
|
-
_context3.next =
|
|
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
|
|
119
|
+
case 1:
|
|
120
120
|
response = _context3.sent;
|
|
121
121
|
return _context3.abrupt("return", response.removeTeamWatcher);
|
|
122
|
-
case
|
|
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
|
|
138
|
+
return _regeneratorRuntime.wrap(function (_context4) {
|
|
139
139
|
while (1) switch (_context4.prev = _context4.next) {
|
|
140
140
|
case 0:
|
|
141
|
-
_context4.next =
|
|
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
|
|
150
|
+
case 1:
|
|
151
151
|
response = _context4.sent;
|
|
152
152
|
return _context4.abrupt("return", response.deleteKudos);
|
|
153
|
-
case
|
|
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
|
|
169
|
+
return _regeneratorRuntime.wrap(function (_context5) {
|
|
170
170
|
while (1) switch (_context5.prev = _context5.next) {
|
|
171
171
|
case 0:
|
|
172
|
-
_context5.next =
|
|
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
|
|
179
|
+
case 1:
|
|
180
180
|
response = _context5.sent;
|
|
181
181
|
return _context5.abrupt("return", response.tagSearchByCloudId);
|
|
182
|
-
case
|
|
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
|
|
198
|
+
return _regeneratorRuntime.wrap(function (_context6) {
|
|
199
199
|
while (1) switch (_context6.prev = _context6.next) {
|
|
200
200
|
case 0:
|
|
201
|
-
_context6.next =
|
|
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
|
|
208
|
+
case 1:
|
|
209
209
|
response = _context6.sent;
|
|
210
210
|
return _context6.abrupt("return", response.createTagForCloudId);
|
|
211
|
-
case
|
|
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
|
|
227
|
+
return _regeneratorRuntime.wrap(function (_context7) {
|
|
228
228
|
while (1) switch (_context7.prev = _context7.next) {
|
|
229
229
|
case 0:
|
|
230
|
-
_context7.next =
|
|
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
|
|
237
|
+
case 1:
|
|
238
238
|
response = _context7.sent;
|
|
239
239
|
return _context7.abrupt("return", response.createHelpPointer);
|
|
240
|
-
case
|
|
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
|
|
256
|
+
return _regeneratorRuntime.wrap(function (_context8) {
|
|
257
257
|
while (1) switch (_context8.prev = _context8.next) {
|
|
258
258
|
case 0:
|
|
259
|
-
_context8.next =
|
|
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
|
|
266
|
+
case 1:
|
|
267
267
|
response = _context8.sent;
|
|
268
268
|
return _context8.abrupt("return", response.updateHelpPointer);
|
|
269
|
-
case
|
|
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
|
|
285
|
+
return _regeneratorRuntime.wrap(function (_context9) {
|
|
286
286
|
while (1) switch (_context9.prev = _context9.next) {
|
|
287
287
|
case 0:
|
|
288
|
-
_context9.next =
|
|
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
|
|
295
|
+
case 1:
|
|
296
296
|
response = _context9.sent;
|
|
297
297
|
return _context9.abrupt("return", response.deleteHelpPointer);
|
|
298
|
-
case
|
|
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
|
|
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
|
|
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
|
|
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) {
|