@atlaskit/teams-client 5.5.0 → 6.0.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.
- package/CHANGELOG.md +34 -0
- package/dist/cjs/common/utils/error/index.js +2 -94
- package/dist/cjs/common/utils/error/isAuthError.js +1 -1
- package/dist/cjs/common/utils/permissions/has-permission.js +2 -23
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/agg-client/index.js +2 -6
- package/dist/cjs/services/hooks/use-teams-client-setup.js +2 -12
- package/dist/cjs/services/invitations-client/InvitationsClient.js +1 -1
- package/dist/cjs/services/public-api-client/index.js +1 -12
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/cjs/services/teams-in-slack-client/TeamsInSlackClient.js +106 -21
- package/dist/cjs/services/use-query-light/types.js +1 -22
- package/dist/es2019/common/utils/error/index.js +1 -38
- package/dist/es2019/common/utils/error/isAuthError.js +1 -1
- package/dist/es2019/common/utils/permissions/has-permission.js +2 -11
- package/dist/es2019/common/utils/permissions/index.js +1 -0
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/agg-client/index.js +1 -6
- package/dist/es2019/services/hooks/use-teams-client-setup.js +3 -7
- package/dist/es2019/services/invitations-client/InvitationsClient.js +1 -1
- package/dist/es2019/services/public-api-client/index.js +1 -7
- package/dist/es2019/services/sentry/index.js +1 -0
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/services/teams-in-slack-client/TeamsInSlackClient.js +47 -0
- package/dist/es2019/services/use-query-light/types.js +1 -11
- package/dist/esm/common/utils/error/index.js +1 -38
- package/dist/esm/common/utils/error/isAuthError.js +1 -1
- package/dist/esm/common/utils/permissions/has-permission.js +2 -11
- package/dist/esm/common/utils/permissions/index.js +1 -0
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/agg-client/index.js +1 -6
- package/dist/esm/services/hooks/use-teams-client-setup.js +3 -7
- package/dist/esm/services/invitations-client/InvitationsClient.js +1 -1
- package/dist/esm/services/public-api-client/index.js +1 -7
- package/dist/esm/services/sentry/index.js +1 -0
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/services/teams-in-slack-client/TeamsInSlackClient.js +106 -21
- package/dist/esm/services/use-query-light/types.js +1 -11
- package/dist/types/common/utils/error/index.d.ts +1 -36
- package/dist/types/common/utils/permissions/has-permission.d.ts +0 -8
- package/dist/types/mocks/with-faker.d.ts +2 -2
- package/dist/types/services/agg-client/index.d.ts +2 -6
- package/dist/types/services/hooks/use-teams-client-setup.d.ts +0 -4
- package/dist/types/services/legion-client/index.d.ts +1 -1
- package/dist/types/services/public-api-client/PublicApiClient.d.ts +1 -1
- package/dist/types/services/public-api-client/index.d.ts +0 -4
- package/dist/types/services/teams-in-slack-client/TeamsInSlackClient.d.ts +20 -21
- package/dist/types/services/use-query-light/types.d.ts +0 -8
- package/package.json +4 -4
- package/scripts/generate-docs.ts +1 -1
- package/ari/package.json +0 -8
- package/dist/cjs/common/utils/ari.js +0 -47
- package/dist/cjs/common/utils/index.js +0 -40
- package/dist/cjs/common/utils/team.js +0 -33
- package/dist/cjs/mocks/endpoints.js +0 -40
- package/dist/cjs/mocks/generate-data.js +0 -40
- package/dist/cjs/mocks/index.js +0 -68
- package/dist/cjs/services/sentry/main.js +0 -68
- package/dist/cjs/services/use-query-light/index.js +0 -26
- package/dist/cjs/services/use-query-light/main.js +0 -19
- package/dist/es2019/common/utils/ari.js +0 -25
- package/dist/es2019/common/utils/index.js +0 -21
- package/dist/es2019/common/utils/team.js +0 -17
- package/dist/es2019/mocks/endpoints.js +0 -22
- package/dist/es2019/mocks/generate-data.js +0 -22
- package/dist/es2019/mocks/index.js +0 -38
- package/dist/es2019/services/sentry/main.js +0 -39
- package/dist/es2019/services/use-query-light/index.js +0 -21
- package/dist/es2019/services/use-query-light/main.js +0 -10
- package/dist/esm/common/utils/ari.js +0 -25
- package/dist/esm/common/utils/index.js +0 -21
- package/dist/esm/common/utils/team.js +0 -17
- package/dist/esm/mocks/endpoints.js +0 -22
- package/dist/esm/mocks/generate-data.js +0 -22
- package/dist/esm/mocks/index.js +0 -38
- package/dist/esm/services/sentry/main.js +0 -39
- package/dist/esm/services/use-query-light/index.js +0 -21
- package/dist/esm/services/use-query-light/main.js +0 -10
- package/dist/types/common/utils/ari.d.ts +0 -24
- package/dist/types/common/utils/index.d.ts +0 -20
- package/dist/types/common/utils/team.d.ts +0 -16
- package/dist/types/mocks/endpoints.d.ts +0 -20
- package/dist/types/mocks/generate-data.d.ts +0 -20
- package/dist/types/mocks/index.d.ts +0 -36
- package/dist/types/services/sentry/main.d.ts +0 -36
- package/dist/types/services/use-query-light/index.d.ts +0 -20
- package/dist/types/services/use-query-light/main.d.ts +0 -8
- package/endpoints/package.json +0 -8
- package/generate-data/package.json +0 -8
- package/mocks/package.json +0 -8
- package/sentry/main/package.json +0 -8
- package/team/package.json +0 -8
- package/use-query-light/main/package.json +0 -8
- package/use-query-light/package.json +0 -8
- package/utils/package.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`0c7c7be927bde`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c7c7be927bde) -
|
|
8
|
+
Remove deprecated Volt re-export shims from public package entry points. Consumers should import
|
|
9
|
+
from the replacement subpaths or implementation entry points instead.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 5.6.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`5b39d8c208f0f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5b39d8c208f0f) -
|
|
20
|
+
Migrate `TeamsInSlackClient` to Staffy Global Edge URL with staff auth handling.
|
|
21
|
+
|
|
22
|
+
When `ptc-onboard-teams-slack-app-to-global-edge-url` is ON, all `/api/team/{teamId}` calls (GET,
|
|
23
|
+
POST, DELETE) are routed to `https://teams-slack-app.services.atlassian.com` instead of the
|
|
24
|
+
Stargate path `/gateway/api/teamsslack/api/team`.
|
|
25
|
+
|
|
26
|
+
To handle the case where the user has no Staffy SST cookie (which would cause a silent fetch
|
|
27
|
+
failure due to a `302 → Okta` redirect being followed inside `fetch()`), a pre-flight
|
|
28
|
+
`GET /api/authping` probe is made before each call. If the probe fails, the client performs a
|
|
29
|
+
top-level `window.location.assign()` to `/staffy/login?return_to=<current URL>` so the browser
|
|
30
|
+
completes the Okta SSO flow and sets the SST cookie before retrying. An in-memory flag prevents
|
|
31
|
+
infinite redirect loops.
|
|
32
|
+
|
|
33
|
+
Falls back to Stargate when the gate is OFF. No changes to `RestClient` or any other client.
|
|
34
|
+
|
|
35
|
+
Also adds `teamsInSlackServiceUrl` to `TeamsClientConfig` to allow per-environment URL overrides.
|
|
36
|
+
|
|
3
37
|
## 5.5.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
|
@@ -3,72 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _DefaultError.DefaultError;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.ErrorCategory = void 0;
|
|
13
|
-
Object.defineProperty(exports, "GraphQLError", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _GraphQLError.GraphQLError;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "HttpError", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _HttpError.HttpError;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "SLOIgnoreError", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _SLOIgnoreError.SLOIgnoreError;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "SLOIgnoreHttpError", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _SLOIgnoreHttpError.SLOIgnoreHttpError;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
exports.TeamErrorType = exports.StatusCode = void 0;
|
|
38
|
-
Object.defineProperty(exports, "doesErrorContainStatus", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _doesErrorContainStatus.doesErrorContainStatus;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "isAuthError", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function get() {
|
|
47
|
-
return _isAuthError.isAuthError;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(exports, "isErrorStatusCode", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function get() {
|
|
53
|
-
return _isErrorStatusCode.isErrorStatusCode;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "isNetworkError", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function get() {
|
|
59
|
-
return _isNetworkError.isNetworkError;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
var _isAuthError = require("./isAuthError");
|
|
63
|
-
var _isErrorStatusCode = require("./isErrorStatusCode");
|
|
64
|
-
var _doesErrorContainStatus = require("./doesErrorContainStatus");
|
|
65
|
-
var _DefaultError = require("./DefaultError");
|
|
66
|
-
var _SLOIgnoreError = require("./SLOIgnoreError");
|
|
67
|
-
var _HttpError = require("./HttpError");
|
|
68
|
-
var _SLOIgnoreHttpError = require("./SLOIgnoreHttpError");
|
|
69
|
-
var _GraphQLError = require("./GraphQLError");
|
|
70
|
-
var _isNetworkError = require("./isNetworkError");
|
|
71
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
6
|
+
exports.TeamErrorType = exports.StatusCode = exports.ErrorCategory = void 0;
|
|
72
7
|
var ErrorCategory = exports.ErrorCategory = /*#__PURE__*/function (ErrorCategory) {
|
|
73
8
|
ErrorCategory["NotFound"] = "NotFound";
|
|
74
9
|
ErrorCategory["NotPermitted"] = "NotPermitted";
|
|
@@ -87,31 +22,4 @@ var StatusCode = exports.StatusCode = /*#__PURE__*/function (StatusCode) {
|
|
|
87
22
|
var TeamErrorType = exports.TeamErrorType = /*#__PURE__*/function (TeamErrorType) {
|
|
88
23
|
TeamErrorType["TEAM_NOT_ACTIVE"] = "Team must be active";
|
|
89
24
|
return TeamErrorType;
|
|
90
|
-
}({});
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Use `import { isAuthError } from '@atlaskit/teams-client/is-auth-error'` instead.
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Use `import { isErrorStatusCode } from '@atlaskit/teams-client/is-error-status-code'` instead.
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* @deprecated Use `import { doesErrorContainStatus } from '@atlaskit/teams-client/does-error-contain-status'` instead.
|
|
99
|
-
*/
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated Use `import { DefaultError } from '@atlaskit/teams-client/default-error'` instead.
|
|
102
|
-
*/
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated Use `import { SLOIgnoreError } from '@atlaskit/teams-client/slo-ignore-error'` instead.
|
|
105
|
-
*/
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated Use `import { HttpError } from '@atlaskit/teams-client/http-error'` instead.
|
|
108
|
-
*/
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated Use `import { SLOIgnoreHttpError } from '@atlaskit/teams-client/slo-ignore-http-error'` instead.
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated Use `import { GraphQLError } from '@atlaskit/teams-client/graph-ql-error'` instead.
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated Use `import { isNetworkError } from '@atlaskit/teams-client/is-network-error'` instead.
|
|
117
|
-
*/
|
|
25
|
+
}({});
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isAuthError = isAuthError;
|
|
7
|
-
var _isErrorStatusCode = require("./isErrorStatusCode");
|
|
8
7
|
var _index = require("./index");
|
|
8
|
+
var _isErrorStatusCode = require("./isErrorStatusCode");
|
|
9
9
|
function isAuthError(error) {
|
|
10
10
|
return (0, _isErrorStatusCode.isErrorStatusCode)(_index.StatusCode.UNAUTHORIZED, error) || (0, _isErrorStatusCode.isErrorStatusCode)(_index.StatusCode.FORBIDDEN, error);
|
|
11
11
|
}
|
|
@@ -4,23 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.hasPermission = hasPermission;
|
|
7
|
-
Object.defineProperty(exports, "hasPermissionForAction", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _hasPermissionForAction.hasPermissionForAction;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "userCan", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _userCan.userCan;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
7
|
var _isMember = require("../is-member");
|
|
20
8
|
var _constants = require("./constants");
|
|
21
9
|
var _userCan = require("./user-can");
|
|
22
|
-
|
|
23
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
10
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of this deprecated API. */
|
|
24
11
|
|
|
25
12
|
/**
|
|
26
13
|
* @deprecated use import { userCan } from '@atlassian/teams-app-internal-user-permissions';
|
|
@@ -39,12 +26,4 @@ function hasPermission(action, settings, permission, isPeopleBrowseEnabled, curr
|
|
|
39
26
|
source: source,
|
|
40
27
|
state: state
|
|
41
28
|
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use `import { hasPermissionForAction } from '@atlaskit/teams-client/has-permission-for-action'` instead.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Use `import { userCan } from '@atlaskit/teams-client/user-can'` instead.
|
|
50
|
-
*/
|
|
29
|
+
}
|
|
@@ -56,7 +56,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
56
56
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
57
57
|
metadata: {
|
|
58
58
|
error: (0, _createErrorMetadata.createErrorMetadata)(error),
|
|
59
|
-
packageVersion: "5.
|
|
59
|
+
packageVersion: "5.6.0",
|
|
60
60
|
packageName: "@atlaskit/teams-client"
|
|
61
61
|
}
|
|
62
62
|
}]);
|
|
@@ -64,7 +64,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
64
64
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
65
65
|
metadata: {
|
|
66
66
|
error: 'unknown error',
|
|
67
|
-
packageVersion: "5.
|
|
67
|
+
packageVersion: "5.6.0",
|
|
68
68
|
packageName: "@atlaskit/teams-client"
|
|
69
69
|
}
|
|
70
70
|
}]);
|
|
@@ -29,7 +29,7 @@ var _userType = require("./utils/user-type");
|
|
|
29
29
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
30
30
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
31
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
32
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33
33
|
var AGGClient = exports.AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
34
34
|
function AGGClient(baseUrl, config) {
|
|
35
35
|
(0, _classCallCheck2.default)(this, AGGClient);
|
|
@@ -404,8 +404,4 @@ var AGGClient = exports.AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
|
404
404
|
}(_main.BaseGraphQlClient);
|
|
405
405
|
var aggClient = exports.aggClient = new AGGClient(_constants.DEFAULT_CONFIG.stargateRoot, {
|
|
406
406
|
logException: _logException.logException
|
|
407
|
-
});
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @deprecated Use `import type { TeamContainers } from '@atlaskit/teams-client/team-containers'` instead.
|
|
411
|
-
*/
|
|
407
|
+
});
|
|
@@ -4,14 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useTeamsClientSetup = void 0;
|
|
7
|
-
Object.defineProperty(exports, "useTeamsClientSetupNext", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _useTeamsClientSetupNext.useTeamsClientSetupNext;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
7
|
var _useTeamsClientSetupNext = require("./use-teams-client-setup-next");
|
|
14
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of
|
|
8
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of this deprecated API. */
|
|
15
9
|
|
|
16
10
|
/**
|
|
17
11
|
* @deprecated use useTeamsClientSetupNext for named parameters
|
|
@@ -23,8 +17,4 @@ var useTeamsClientSetup = exports.useTeamsClientSetup = function useTeamsClientS
|
|
|
23
17
|
orgId: orgId,
|
|
24
18
|
principalUserId: principalUserId
|
|
25
19
|
});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use `import { useTeamsClientSetupNext } from '@atlaskit/teams-client/use-teams-client-setup-next'` instead.
|
|
30
|
-
*/
|
|
20
|
+
};
|
|
@@ -13,8 +13,8 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _restClient = require("../rest-client");
|
|
16
|
-
var _utils = require("./utils");
|
|
17
16
|
var _index = require("./index");
|
|
17
|
+
var _utils = require("./utils");
|
|
18
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
var ALL_SUPPORTED_PRODUCTS = ['confluence', 'jira', 'jira-core', 'jira-servicedesk', 'jira-software', 'jira-incident-manager', 'jira-product-discovery', 'opsgenie', 'statuspage', 'avocado', 'townsquare', 'compass', 'avp', 'beacon', 'mercury'];
|
|
@@ -3,20 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "PublicApiClient", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _PublicApiClient.PublicApiClient;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
exports.default = void 0;
|
|
13
7
|
var _constants = require("../constants");
|
|
14
8
|
var _PublicApiClient = require("./PublicApiClient");
|
|
15
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
16
|
-
|
|
17
9
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
18
10
|
var _default_1 = new _PublicApiClient.PublicApiClient(_constants.DEFAULT_CONFIG.publicApiRoot);
|
|
19
|
-
var _default = exports.default = _default_1;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use `import { PublicApiClient } from '@atlaskit/teams-client/public-api-client'` instead.
|
|
22
|
-
*/
|
|
11
|
+
var _default = exports.default = _default_1;
|
|
@@ -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("5.
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("5.6.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) || '---',
|
|
@@ -14,41 +14,120 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
14
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
+
var _SLOIgnoreError = require("../../common/utils/error/SLOIgnoreError");
|
|
17
18
|
var _constants = require("../constants");
|
|
18
19
|
var _restClient = require("../rest-client");
|
|
20
|
+
var _redirectCount = require("../rest-client/utils/redirect-count");
|
|
19
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
23
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
22
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
+
var GLOBAL_EDGE_ORIGIN = new URL(_constants.DEFAULT_CONFIG.teamsInSlackServiceUrl).origin;
|
|
23
26
|
var defaultConfig = {
|
|
24
27
|
get serviceUrl() {
|
|
25
28
|
return (0, _fg.fg)('ptc-onboard-teams-slack-app-to-global-edge-url') ? _constants.DEFAULT_CONFIG.teamsInSlackServiceUrl : "".concat(_constants.DEFAULT_CONFIG.stargateRoot, "/teamsslack/api/team");
|
|
26
29
|
}
|
|
27
30
|
};
|
|
31
|
+
|
|
32
|
+
// Shared in-flight probe: concurrent callers coalesce onto one fetch rather
|
|
33
|
+
// than each firing their own and racing on the flag.
|
|
34
|
+
var staffyAuthProbe = null;
|
|
35
|
+
|
|
36
|
+
// Prevents an infinite redirect loop if Okta completes but auth still fails.
|
|
37
|
+
// Resets on full page reload — correct, since a reload after login should retry.
|
|
38
|
+
var staffyAuthAttempted = false;
|
|
28
39
|
var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_RestClient) {
|
|
29
40
|
function TeamsInSlackClient() {
|
|
30
41
|
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
31
42
|
(0, _classCallCheck2.default)(this, TeamsInSlackClient);
|
|
32
43
|
return _callSuper(this, TeamsInSlackClient, [_objectSpread(_objectSpread({}, defaultConfig), config)]);
|
|
33
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Pre-flight auth probe for Staffy Global Edge calls (COMMIT-27483).
|
|
48
|
+
* Fetches /api/authping with credentials:'include'. On failure (302→Okta),
|
|
49
|
+
* navigates to /staffy/login?return_to=<current URL> for top-level Okta SSO.
|
|
50
|
+
* No-op when the gate is OFF (Stargate path).
|
|
51
|
+
*/
|
|
34
52
|
(0, _inherits2.default)(TeamsInSlackClient, _RestClient);
|
|
35
53
|
return (0, _createClass2.default)(TeamsInSlackClient, [{
|
|
36
|
-
key: "
|
|
37
|
-
value: function () {
|
|
38
|
-
var
|
|
54
|
+
key: "ensureStaffyAuth",
|
|
55
|
+
value: (function () {
|
|
56
|
+
var _ensureStaffyAuth = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
57
|
+
var authenticated, returnTo;
|
|
39
58
|
return _regenerator.default.wrap(function (_context) {
|
|
40
59
|
while (1) switch (_context.prev = _context.next) {
|
|
41
60
|
case 0:
|
|
42
|
-
|
|
61
|
+
if ((0, _fg.fg)('ptc-onboard-teams-slack-app-to-global-edge-url')) {
|
|
62
|
+
_context.next = 1;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return _context.abrupt("return");
|
|
66
|
+
case 1:
|
|
67
|
+
staffyAuthProbe !== null && staffyAuthProbe !== void 0 ? staffyAuthProbe : staffyAuthProbe = fetch("".concat(GLOBAL_EDGE_ORIGIN, "/api/authping"), {
|
|
68
|
+
credentials: 'include'
|
|
69
|
+
}).then(function (r) {
|
|
70
|
+
return r.ok;
|
|
71
|
+
}).catch(function () {
|
|
72
|
+
return false;
|
|
73
|
+
}).finally(function () {
|
|
74
|
+
staffyAuthProbe = null;
|
|
75
|
+
});
|
|
76
|
+
_context.next = 2;
|
|
77
|
+
return staffyAuthProbe;
|
|
78
|
+
case 2:
|
|
79
|
+
authenticated = _context.sent;
|
|
80
|
+
if (!authenticated) {
|
|
81
|
+
_context.next = 3;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
staffyAuthAttempted = false;
|
|
85
|
+
return _context.abrupt("return");
|
|
86
|
+
case 3:
|
|
87
|
+
if (!staffyAuthAttempted) {
|
|
88
|
+
_context.next = 4;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
return _context.abrupt("return");
|
|
92
|
+
case 4:
|
|
93
|
+
staffyAuthAttempted = true;
|
|
94
|
+
_redirectCount.redirectCount.increment();
|
|
95
|
+
returnTo = encodeURIComponent(window.location.href);
|
|
96
|
+
window.location.assign("".concat(GLOBAL_EDGE_ORIGIN, "/staffy/login?return_to=").concat(returnTo));
|
|
97
|
+
throw new _SLOIgnoreError.SLOIgnoreError({
|
|
98
|
+
message: 'Redirecting to Staffy login'
|
|
99
|
+
});
|
|
100
|
+
case 5:
|
|
101
|
+
case "end":
|
|
102
|
+
return _context.stop();
|
|
103
|
+
}
|
|
104
|
+
}, _callee);
|
|
105
|
+
}));
|
|
106
|
+
function ensureStaffyAuth() {
|
|
107
|
+
return _ensureStaffyAuth.apply(this, arguments);
|
|
108
|
+
}
|
|
109
|
+
return ensureStaffyAuth;
|
|
110
|
+
}())
|
|
111
|
+
}, {
|
|
112
|
+
key: "getTeamInSlack",
|
|
113
|
+
value: function () {
|
|
114
|
+
var _getTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(teamId, teamName) {
|
|
115
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
116
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
117
|
+
case 0:
|
|
118
|
+
_context2.next = 1;
|
|
119
|
+
return this.ensureStaffyAuth();
|
|
120
|
+
case 1:
|
|
121
|
+
return _context2.abrupt("return", this.getResource("/".concat(teamId, "?teamName=").concat(encodeURIComponent(teamName))).then(function (response) {
|
|
43
122
|
return _objectSpread({
|
|
44
123
|
id: teamId
|
|
45
124
|
}, response);
|
|
46
125
|
}));
|
|
47
|
-
case
|
|
126
|
+
case 2:
|
|
48
127
|
case "end":
|
|
49
|
-
return
|
|
128
|
+
return _context2.stop();
|
|
50
129
|
}
|
|
51
|
-
},
|
|
130
|
+
}, _callee2, this);
|
|
52
131
|
}));
|
|
53
132
|
function getTeamInSlack(_x, _x2) {
|
|
54
133
|
return _getTeamInSlack.apply(this, arguments);
|
|
@@ -58,20 +137,23 @@ var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_Re
|
|
|
58
137
|
}, {
|
|
59
138
|
key: "disconnectTeamInSlack",
|
|
60
139
|
value: function () {
|
|
61
|
-
var _disconnectTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
62
|
-
return _regenerator.default.wrap(function (
|
|
63
|
-
while (1) switch (
|
|
140
|
+
var _disconnectTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(teamId) {
|
|
141
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
142
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
64
143
|
case 0:
|
|
65
|
-
|
|
144
|
+
_context3.next = 1;
|
|
145
|
+
return this.ensureStaffyAuth();
|
|
146
|
+
case 1:
|
|
147
|
+
return _context3.abrupt("return", this.deleteResource("/".concat(teamId)).then(function (response) {
|
|
66
148
|
return _objectSpread({
|
|
67
149
|
id: teamId
|
|
68
150
|
}, response);
|
|
69
151
|
}));
|
|
70
|
-
case
|
|
152
|
+
case 2:
|
|
71
153
|
case "end":
|
|
72
|
-
return
|
|
154
|
+
return _context3.stop();
|
|
73
155
|
}
|
|
74
|
-
},
|
|
156
|
+
}, _callee3, this);
|
|
75
157
|
}));
|
|
76
158
|
function disconnectTeamInSlack(_x3) {
|
|
77
159
|
return _disconnectTeamInSlack.apply(this, arguments);
|
|
@@ -81,20 +163,23 @@ var TeamsInSlackClient = exports.TeamsInSlackClient = /*#__PURE__*/function (_Re
|
|
|
81
163
|
}, {
|
|
82
164
|
key: "updateTeamInSlack",
|
|
83
165
|
value: function () {
|
|
84
|
-
var _updateTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
85
|
-
return _regenerator.default.wrap(function (
|
|
86
|
-
while (1) switch (
|
|
166
|
+
var _updateTeamInSlack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(teamId, channelId, usergroupHandle) {
|
|
167
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
168
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
87
169
|
case 0:
|
|
88
|
-
|
|
170
|
+
_context4.next = 1;
|
|
171
|
+
return this.ensureStaffyAuth();
|
|
172
|
+
case 1:
|
|
173
|
+
return _context4.abrupt("return", this.postResource("/".concat(teamId, "?channel=").concat(channelId, "&groupName=").concat(usergroupHandle)).then(function (response) {
|
|
89
174
|
return _objectSpread({
|
|
90
175
|
id: teamId
|
|
91
176
|
}, response);
|
|
92
177
|
}));
|
|
93
|
-
case
|
|
178
|
+
case 2:
|
|
94
179
|
case "end":
|
|
95
|
-
return
|
|
180
|
+
return _context4.stop();
|
|
96
181
|
}
|
|
97
|
-
},
|
|
182
|
+
}, _callee4, this);
|
|
98
183
|
}));
|
|
99
184
|
function updateTeamInSlack(_x4, _x5, _x6) {
|
|
100
185
|
return _updateTeamInSlack.apply(this, arguments);
|
|
@@ -3,32 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "ActualGraphQLError", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _ActualGraphQLError.ActualGraphQLError;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
exports.ErrorCategory = void 0;
|
|
13
|
-
Object.defineProperty(exports, "UseQueryLightError", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _UseQueryLightError.UseQueryLightError;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _ActualGraphQLError = require("./ActualGraphQLError");
|
|
20
|
-
var _UseQueryLightError = require("./UseQueryLightError");
|
|
21
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
22
7
|
var ErrorCategory = exports.ErrorCategory = /*#__PURE__*/function (ErrorCategory) {
|
|
23
8
|
ErrorCategory["NotFound"] = "NotFound";
|
|
24
9
|
ErrorCategory["NotPermitted"] = "NotPermitted";
|
|
25
10
|
ErrorCategory["MalformedInput"] = "MalformedInput";
|
|
26
11
|
ErrorCategory["Internal"] = "Internal";
|
|
27
12
|
return ErrorCategory;
|
|
28
|
-
}({});
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `import { ActualGraphQLError } from '@atlaskit/teams-client/actual-graph-ql-error'` instead.
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `import { UseQueryLightError } from '@atlaskit/teams-client/use-query-light-error'` instead.
|
|
34
|
-
*/
|
|
13
|
+
}({});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
1
|
export let ErrorCategory = /*#__PURE__*/function (ErrorCategory) {
|
|
3
2
|
ErrorCategory["NotFound"] = "NotFound";
|
|
4
3
|
ErrorCategory["NotPermitted"] = "NotPermitted";
|
|
@@ -17,40 +16,4 @@ export let StatusCode = /*#__PURE__*/function (StatusCode) {
|
|
|
17
16
|
export let TeamErrorType = /*#__PURE__*/function (TeamErrorType) {
|
|
18
17
|
TeamErrorType["TEAM_NOT_ACTIVE"] = "Team must be active";
|
|
19
18
|
return TeamErrorType;
|
|
20
|
-
}({});
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `import { isAuthError } from '@atlaskit/teams-client/is-auth-error'` instead.
|
|
23
|
-
*/
|
|
24
|
-
export { isAuthError } from './isAuthError';
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use `import { isErrorStatusCode } from '@atlaskit/teams-client/is-error-status-code'` instead.
|
|
27
|
-
*/
|
|
28
|
-
export { isErrorStatusCode } from './isErrorStatusCode';
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `import { doesErrorContainStatus } from '@atlaskit/teams-client/does-error-contain-status'` instead.
|
|
31
|
-
*/
|
|
32
|
-
export { doesErrorContainStatus } from './doesErrorContainStatus';
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Use `import { DefaultError } from '@atlaskit/teams-client/default-error'` instead.
|
|
35
|
-
*/
|
|
36
|
-
export { DefaultError } from './DefaultError';
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `import { SLOIgnoreError } from '@atlaskit/teams-client/slo-ignore-error'` instead.
|
|
39
|
-
*/
|
|
40
|
-
export { SLOIgnoreError } from './SLOIgnoreError';
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `import { HttpError } from '@atlaskit/teams-client/http-error'` instead.
|
|
43
|
-
*/
|
|
44
|
-
export { HttpError } from './HttpError';
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `import { SLOIgnoreHttpError } from '@atlaskit/teams-client/slo-ignore-http-error'` instead.
|
|
47
|
-
*/
|
|
48
|
-
export { SLOIgnoreHttpError } from './SLOIgnoreHttpError';
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated Use `import { GraphQLError } from '@atlaskit/teams-client/graph-ql-error'` instead.
|
|
51
|
-
*/
|
|
52
|
-
export { GraphQLError } from './GraphQLError';
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated Use `import { isNetworkError } from '@atlaskit/teams-client/is-network-error'` instead.
|
|
55
|
-
*/
|
|
56
|
-
export { isNetworkError } from './isNetworkError';
|
|
19
|
+
}({});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isErrorStatusCode } from './isErrorStatusCode';
|
|
2
1
|
import { StatusCode } from './index';
|
|
2
|
+
import { isErrorStatusCode } from './isErrorStatusCode';
|
|
3
3
|
export function isAuthError(error) {
|
|
4
4
|
return isErrorStatusCode(StatusCode.UNAUTHORIZED, error) || isErrorStatusCode(StatusCode.FORBIDDEN, error);
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of
|
|
1
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of this deprecated API. */
|
|
2
2
|
|
|
3
3
|
import { isMember } from '../is-member';
|
|
4
4
|
import { vanityActions } from './constants';
|
|
@@ -21,13 +21,4 @@ export function hasPermission(action, settings, permission, isPeopleBrowseEnable
|
|
|
21
21
|
source,
|
|
22
22
|
state
|
|
23
23
|
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `import { hasPermissionForAction } from '@atlaskit/teams-client/has-permission-for-action'` instead.
|
|
28
|
-
*/
|
|
29
|
-
export { hasPermissionForAction } from './has-permission-for-action';
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Use `import { userCan } from '@atlaskit/teams-client/user-can'` instead.
|
|
32
|
-
*/
|
|
33
|
-
export { userCan } from './user-can';
|
|
24
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use `import { hasPermissionForAction } from '@atlaskit/teams-client/has-permission-for-action'` instead.
|
|
4
4
|
*/
|
|
5
|
+
|
|
5
6
|
export { hasPermissionForAction } from './has-permission-for-action';
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Use `import { hasPermission } from '@atlaskit/teams-client/has-permission'` instead.
|
|
@@ -31,7 +31,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
31
31
|
return super.failure({
|
|
32
32
|
metadata: {
|
|
33
33
|
error: createErrorMetadata(error),
|
|
34
|
-
packageVersion: "5.
|
|
34
|
+
packageVersion: "5.6.0",
|
|
35
35
|
packageName: "@atlaskit/teams-client"
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -39,7 +39,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
39
39
|
return super.failure({
|
|
40
40
|
metadata: {
|
|
41
41
|
error: 'unknown error',
|
|
42
|
-
packageVersion: "5.
|
|
42
|
+
packageVersion: "5.6.0",
|
|
43
43
|
packageName: "@atlaskit/teams-client"
|
|
44
44
|
}
|
|
45
45
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
1
|
import { toTeamARI } from '../../common/utils/to-team-ari';
|
|
3
2
|
import { toUserId } from '../../common/utils/to-user-id';
|
|
4
3
|
import { DEFAULT_CONFIG } from '../constants';
|
|
@@ -235,8 +234,4 @@ export class AGGClient extends BaseGraphQlClient {
|
|
|
235
234
|
}
|
|
236
235
|
export const aggClient = new AGGClient(DEFAULT_CONFIG.stargateRoot, {
|
|
237
236
|
logException
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @deprecated Use `import type { TeamContainers } from '@atlaskit/teams-client/team-containers'` instead.
|
|
242
|
-
*/
|
|
237
|
+
});
|