@atlaskit/teams-client 4.15.1 → 4.16.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 +7 -0
- package/dist/cjs/common/utils/permissions/constants.js +2 -1
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/graphql-client/utils/index.js +1 -1
- package/dist/cjs/services/legion-client/index.js +10 -0
- package/dist/cjs/services/main.js +21 -0
- package/dist/cjs/services/replines-client/index.js +1 -1
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/cjs/services/sentry/utils/sentry-client.js +2 -1
- package/dist/es2019/common/utils/permissions/constants.js +2 -1
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/graphql-client/utils/index.js +1 -1
- package/dist/es2019/services/legion-client/index.js +8 -0
- package/dist/es2019/services/main.js +3 -0
- package/dist/es2019/services/replines-client/index.js +1 -1
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/services/sentry/utils/sentry-client.js +1 -0
- package/dist/esm/common/utils/permissions/constants.js +2 -1
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/graphql-client/utils/index.js +1 -1
- package/dist/esm/services/legion-client/index.js +10 -0
- package/dist/esm/services/main.js +21 -0
- package/dist/esm/services/replines-client/index.js +1 -1
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/services/sentry/utils/sentry-client.js +2 -1
- package/dist/types/services/legion-client/index.d.ts +2 -1
- package/dist/types/services/legion-client/types.d.ts +4 -0
- package/dist/types/services/main.d.ts +1 -0
- package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -1
- package/dist/types-ts4.5/services/legion-client/types.d.ts +4 -0
- package/dist/types-ts4.5/services/main.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 4.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`41573b4757009`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41573b4757009) -
|
|
8
|
+
Added new API "checkOrgFullAlignmentStatus" to check the full scope alignment status of an org
|
|
9
|
+
|
|
3
10
|
## 4.15.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.vanityActions = exports.openPermissions = exports.inviteOnlyPermissions = exports.getPermissionMap = exports.allPermissions = exports.SCIMSyncTeamPermissions = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
9
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
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; }
|
|
11
12
|
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; }
|
|
@@ -56,7 +57,7 @@ var SCIMSyncTeamPermissions = exports.SCIMSyncTeamPermissions = function SCIMSyn
|
|
|
56
57
|
};
|
|
57
58
|
};
|
|
58
59
|
var getPermissionMap = exports.getPermissionMap = function getPermissionMap(settings, permission, isMember, isOrgAdmin, source) {
|
|
59
|
-
var newTeamProfileEnabled = (
|
|
60
|
+
var newTeamProfileEnabled = _featureGateJsClient.default.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
60
61
|
if (settings === 'OPEN') {
|
|
61
62
|
return _objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember)), openPermissions(permission));
|
|
62
63
|
}
|
|
@@ -52,7 +52,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
52
52
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
53
53
|
metadata: {
|
|
54
54
|
error: (0, _utils.createErrorMetadata)(error),
|
|
55
|
-
packageVersion: "
|
|
55
|
+
packageVersion: "4.15.1",
|
|
56
56
|
packageName: "@atlaskit/teams-client"
|
|
57
57
|
}
|
|
58
58
|
}]);
|
|
@@ -60,7 +60,7 @@ var TeamsUFOExperience = exports.TeamsUFOExperience = /*#__PURE__*/function (_UF
|
|
|
60
60
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
61
61
|
metadata: {
|
|
62
62
|
error: 'unknown error',
|
|
63
|
-
packageVersion: "
|
|
63
|
+
packageVersion: "4.15.1",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -65,7 +65,7 @@ function _makeGraphQLRequestWithoutRetries() {
|
|
|
65
65
|
_context.next = 17;
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
68
|
-
return _context.abrupt("return", new Promise(function (
|
|
68
|
+
return _context.abrupt("return", new Promise(function (_resolve, reject) {
|
|
69
69
|
setTimeout(function () {
|
|
70
70
|
reject(_error.GraphQLError.from(errors));
|
|
71
71
|
}, 0);
|
|
@@ -1403,6 +1403,16 @@ var LegionClient = exports.LegionClient = /*#__PURE__*/function (_RestClient) {
|
|
|
1403
1403
|
teamId: legionLinkResponseV4.teamId
|
|
1404
1404
|
};
|
|
1405
1405
|
}
|
|
1406
|
+
}, {
|
|
1407
|
+
key: "checkOrgFullAlignmentStatus",
|
|
1408
|
+
value: function checkOrgFullAlignmentStatus(orgId) {
|
|
1409
|
+
try {
|
|
1410
|
+
return this.getResource("".concat(v4UrlPath, "/migrations/scope/").concat(orgId, "/fully-aligned"));
|
|
1411
|
+
} catch (e) {
|
|
1412
|
+
this.logException(e, 'checkOrgFullAlignmentStatus');
|
|
1413
|
+
throw e;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1406
1416
|
}]);
|
|
1407
1417
|
}(_restClient.RestClient);
|
|
1408
1418
|
var defaultLegionClient = exports.defaultLegionClient = new LegionClient(_constants.DEFAULT_CONFIG.stargateRoot);
|
|
@@ -2583,6 +2583,27 @@ var TeamsClient = exports.TeamsClient = /*#__PURE__*/function () {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
return getUserTenure;
|
|
2585
2585
|
}()
|
|
2586
|
+
}, {
|
|
2587
|
+
key: "checkOrgFullAlignmentStatus",
|
|
2588
|
+
value: function () {
|
|
2589
|
+
var _checkOrgFullAlignmentStatus = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee75() {
|
|
2590
|
+
var _this$_legionClient;
|
|
2591
|
+
var _args75 = arguments;
|
|
2592
|
+
return _regenerator.default.wrap(function _callee75$(_context75) {
|
|
2593
|
+
while (1) switch (_context75.prev = _context75.next) {
|
|
2594
|
+
case 0:
|
|
2595
|
+
return _context75.abrupt("return", (_this$_legionClient = this._legionClient).checkOrgFullAlignmentStatus.apply(_this$_legionClient, _args75));
|
|
2596
|
+
case 1:
|
|
2597
|
+
case "end":
|
|
2598
|
+
return _context75.stop();
|
|
2599
|
+
}
|
|
2600
|
+
}, _callee75, this);
|
|
2601
|
+
}));
|
|
2602
|
+
function checkOrgFullAlignmentStatus() {
|
|
2603
|
+
return _checkOrgFullAlignmentStatus.apply(this, arguments);
|
|
2604
|
+
}
|
|
2605
|
+
return checkOrgFullAlignmentStatus;
|
|
2606
|
+
}()
|
|
2586
2607
|
}]);
|
|
2587
2608
|
}();
|
|
2588
2609
|
var teamsClient = exports.teamsClient = new TeamsClient();
|
|
@@ -42,7 +42,7 @@ var ReplinesClient = exports.ReplinesClient = /*#__PURE__*/function (_RestClient
|
|
|
42
42
|
return _objectSpread(_objectSpread({}, response), {}, {
|
|
43
43
|
userHireDate: new Date(response.userHireDate)
|
|
44
44
|
});
|
|
45
|
-
}).catch(function (
|
|
45
|
+
}).catch(function (_error) {
|
|
46
46
|
throw new Error('Failed to fetch user tenure');
|
|
47
47
|
}));
|
|
48
48
|
case 2:
|
|
@@ -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("
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.15.1") ||
|
|
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) || '---',
|
|
@@ -101,7 +101,8 @@ function _requireSentryLib() {
|
|
|
101
101
|
_context3.t0 = _context3["catch"](0);
|
|
102
102
|
// eslint-disable-next-line no-console
|
|
103
103
|
console.warn('Ignoring rejected promise when loading sentry resource.', _context3.t0);
|
|
104
|
-
|
|
104
|
+
return _context3.abrupt("return", undefined);
|
|
105
|
+
case 8:
|
|
105
106
|
case "end":
|
|
106
107
|
return _context3.stop();
|
|
107
108
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
1
2
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
export const allPermissions = (defaultPermission, isMember) => ({
|
|
3
4
|
ADD_MEMBER_TO_TEAM: defaultPermission,
|
|
@@ -38,7 +39,7 @@ export const SCIMSyncTeamPermissions = (isMember, isOrgAdmin, source) => ({
|
|
|
38
39
|
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && fg('enable_edit_team_name_external_type_teams')
|
|
39
40
|
});
|
|
40
41
|
export const getPermissionMap = (settings, permission, isMember, isOrgAdmin, source) => {
|
|
41
|
-
const newTeamProfileEnabled =
|
|
42
|
+
const newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
42
43
|
if (settings === 'OPEN') {
|
|
43
44
|
return {
|
|
44
45
|
...allPermissions(permission === 'FULL_WRITE', isMember),
|
|
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
27
27
|
return super.failure({
|
|
28
28
|
metadata: {
|
|
29
29
|
error: createErrorMetadata(error),
|
|
30
|
-
packageVersion: "
|
|
30
|
+
packageVersion: "4.15.1",
|
|
31
31
|
packageName: "@atlaskit/teams-client"
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -35,7 +35,7 @@ export class TeamsUFOExperience extends UFOExperience {
|
|
|
35
35
|
return super.failure({
|
|
36
36
|
metadata: {
|
|
37
37
|
error: 'unknown error',
|
|
38
|
-
packageVersion: "
|
|
38
|
+
packageVersion: "4.15.1",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -28,7 +28,7 @@ export async function makeGraphQLRequestWithoutRetries(serviceUrl, body, options
|
|
|
28
28
|
} else if (errorPolicy === 'all') {
|
|
29
29
|
// Set timeout will postpone error throwing and de-touch it to another event loop,
|
|
30
30
|
// so we can return data along with throwing error
|
|
31
|
-
return new Promise((
|
|
31
|
+
return new Promise((_resolve, reject) => {
|
|
32
32
|
setTimeout(() => {
|
|
33
33
|
reject(GraphQLError.from(errors));
|
|
34
34
|
}, 0);
|
|
@@ -560,5 +560,13 @@ export class LegionClient extends RestClient {
|
|
|
560
560
|
teamId: legionLinkResponseV4.teamId
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
|
+
checkOrgFullAlignmentStatus(orgId) {
|
|
564
|
+
try {
|
|
565
|
+
return this.getResource(`${v4UrlPath}/migrations/scope/${orgId}/fully-aligned`);
|
|
566
|
+
} catch (e) {
|
|
567
|
+
this.logException(e, 'checkOrgFullAlignmentStatus');
|
|
568
|
+
throw e;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
563
571
|
}
|
|
564
572
|
export const defaultLegionClient = new LegionClient(DEFAULT_CONFIG.stargateRoot);
|
|
@@ -679,5 +679,8 @@ export class TeamsClient {
|
|
|
679
679
|
async getUserTenure(...args) {
|
|
680
680
|
return this.measurePerformance('getUserTenure', () => this._replinesClient.getUserTenure(...args));
|
|
681
681
|
}
|
|
682
|
+
async checkOrgFullAlignmentStatus(...args) {
|
|
683
|
+
return this._legionClient.checkOrgFullAlignmentStatus(...args);
|
|
684
|
+
}
|
|
682
685
|
}
|
|
683
686
|
export const teamsClient = new TeamsClient();
|
|
@@ -15,7 +15,7 @@ export class ReplinesClient extends RestClient {
|
|
|
15
15
|
return this.getResource(`/${orgId}/${userId}`).then(response => ({
|
|
16
16
|
...response,
|
|
17
17
|
userHireDate: new Date(response.userHireDate)
|
|
18
|
-
})).catch(
|
|
18
|
+
})).catch(_error => {
|
|
19
19
|
throw new Error('Failed to fetch user tenure');
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -28,7 +28,7 @@ export function getSentryConfig(options) {
|
|
|
28
28
|
...DEFAULT_SENTRY_CONFIG,
|
|
29
29
|
// Standalone __VERSION__ is set from `bin/set-release-version.sh`
|
|
30
30
|
// when building to deploy to production
|
|
31
|
-
release: `${"@atlaskit/teams-client"}@${"
|
|
31
|
+
release: `${"@atlaskit/teams-client"}@${"4.15.1"}` ||
|
|
32
32
|
// @ts-ignore Jira - window.BUILD_KEY
|
|
33
33
|
window.BUILD_KEY || ( // @ts-ignore Confluence - window.__buildInfo
|
|
34
34
|
(_window$__buildInfo = window.__buildInfo) === null || _window$__buildInfo === void 0 ? void 0 : _window$__buildInfo.FRONTEND_VERSION) || '---',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
4
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
export var allPermissions = function allPermissions(defaultPermission, isMember) {
|
|
6
7
|
return {
|
|
@@ -49,7 +50,7 @@ export var SCIMSyncTeamPermissions = function SCIMSyncTeamPermissions(isMember,
|
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
export var getPermissionMap = function getPermissionMap(settings, permission, isMember, isOrgAdmin, source) {
|
|
52
|
-
var newTeamProfileEnabled =
|
|
53
|
+
var newTeamProfileEnabled = FeatureGates.getExperimentValue('new_team_profile', 'isEnabled', false);
|
|
53
54
|
if (settings === 'OPEN') {
|
|
54
55
|
return _objectSpread(_objectSpread({}, allPermissions(permission === 'FULL_WRITE', isMember)), openPermissions(permission));
|
|
55
56
|
}
|
|
@@ -45,7 +45,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
45
45
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
46
46
|
metadata: {
|
|
47
47
|
error: createErrorMetadata(error),
|
|
48
|
-
packageVersion: "
|
|
48
|
+
packageVersion: "4.15.1",
|
|
49
49
|
packageName: "@atlaskit/teams-client"
|
|
50
50
|
}
|
|
51
51
|
}]);
|
|
@@ -53,7 +53,7 @@ export var TeamsUFOExperience = /*#__PURE__*/function (_UFOExperience) {
|
|
|
53
53
|
return _superPropGet(TeamsUFOExperience, "failure", this, 3)([{
|
|
54
54
|
metadata: {
|
|
55
55
|
error: 'unknown error',
|
|
56
|
-
packageVersion: "
|
|
56
|
+
packageVersion: "4.15.1",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -57,7 +57,7 @@ function _makeGraphQLRequestWithoutRetries() {
|
|
|
57
57
|
_context.next = 17;
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
|
-
return _context.abrupt("return", new Promise(function (
|
|
60
|
+
return _context.abrupt("return", new Promise(function (_resolve, reject) {
|
|
61
61
|
setTimeout(function () {
|
|
62
62
|
reject(GraphQLError.from(errors));
|
|
63
63
|
}, 0);
|
|
@@ -1397,6 +1397,16 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
|
|
|
1397
1397
|
teamId: legionLinkResponseV4.teamId
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
+
}, {
|
|
1401
|
+
key: "checkOrgFullAlignmentStatus",
|
|
1402
|
+
value: function checkOrgFullAlignmentStatus(orgId) {
|
|
1403
|
+
try {
|
|
1404
|
+
return this.getResource("".concat(v4UrlPath, "/migrations/scope/").concat(orgId, "/fully-aligned"));
|
|
1405
|
+
} catch (e) {
|
|
1406
|
+
this.logException(e, 'checkOrgFullAlignmentStatus');
|
|
1407
|
+
throw e;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1400
1410
|
}]);
|
|
1401
1411
|
}(RestClient);
|
|
1402
1412
|
export var defaultLegionClient = new LegionClient(DEFAULT_CONFIG.stargateRoot);
|
|
@@ -2578,6 +2578,27 @@ export var TeamsClient = /*#__PURE__*/function () {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return getUserTenure;
|
|
2580
2580
|
}()
|
|
2581
|
+
}, {
|
|
2582
|
+
key: "checkOrgFullAlignmentStatus",
|
|
2583
|
+
value: function () {
|
|
2584
|
+
var _checkOrgFullAlignmentStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75() {
|
|
2585
|
+
var _this$_legionClient;
|
|
2586
|
+
var _args75 = arguments;
|
|
2587
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
2588
|
+
while (1) switch (_context75.prev = _context75.next) {
|
|
2589
|
+
case 0:
|
|
2590
|
+
return _context75.abrupt("return", (_this$_legionClient = this._legionClient).checkOrgFullAlignmentStatus.apply(_this$_legionClient, _args75));
|
|
2591
|
+
case 1:
|
|
2592
|
+
case "end":
|
|
2593
|
+
return _context75.stop();
|
|
2594
|
+
}
|
|
2595
|
+
}, _callee75, this);
|
|
2596
|
+
}));
|
|
2597
|
+
function checkOrgFullAlignmentStatus() {
|
|
2598
|
+
return _checkOrgFullAlignmentStatus.apply(this, arguments);
|
|
2599
|
+
}
|
|
2600
|
+
return checkOrgFullAlignmentStatus;
|
|
2601
|
+
}()
|
|
2581
2602
|
}]);
|
|
2582
2603
|
}();
|
|
2583
2604
|
export var teamsClient = new TeamsClient();
|
|
@@ -35,7 +35,7 @@ export var ReplinesClient = /*#__PURE__*/function (_RestClient) {
|
|
|
35
35
|
return _objectSpread(_objectSpread({}, response), {}, {
|
|
36
36
|
userHireDate: new Date(response.userHireDate)
|
|
37
37
|
});
|
|
38
|
-
}).catch(function (
|
|
38
|
+
}).catch(function (_error) {
|
|
39
39
|
throw new Error('Failed to fetch user tenure');
|
|
40
40
|
}));
|
|
41
41
|
case 2:
|
|
@@ -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("
|
|
32
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.15.1") ||
|
|
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) || '---',
|
|
@@ -89,7 +89,8 @@ function _requireSentryLib() {
|
|
|
89
89
|
_context3.t0 = _context3["catch"](0);
|
|
90
90
|
// eslint-disable-next-line no-console
|
|
91
91
|
console.warn('Ignoring rejected promise when loading sentry resource.', _context3.t0);
|
|
92
|
-
|
|
92
|
+
return _context3.abrupt("return", undefined);
|
|
93
|
+
case 8:
|
|
93
94
|
case "end":
|
|
94
95
|
return _context3.stop();
|
|
95
96
|
}
|
|
@@ -3,7 +3,7 @@ import { type AlignmentPermission, type AssignedTeamsResponse, type AssignTeamsT
|
|
|
3
3
|
import { type ApiTeamContainerCreationPayload, type ApiTeamContainerResponse } from '../../types/team-container';
|
|
4
4
|
import { type UserInSiteUserbase } from '../../types/user';
|
|
5
5
|
import { RestClient } from '../rest-client';
|
|
6
|
-
import { type LegionAssociateAgentResponse, type LegionLinkResponseV3, type LegionLinkResponseV4, type LegionPaginatedResponse, type LegionTeamAndGroupDifferenceResponse } from './types';
|
|
6
|
+
import { type LegionAssociateAgentResponse, type LegionLinkResponseV3, type LegionLinkResponseV4, type LegionPaginatedResponse, type LegionTeamAndGroupDifferenceResponse, type OrgAlignmentStatus } from './types';
|
|
7
7
|
export interface PaginationResult<T> {
|
|
8
8
|
entities: T[];
|
|
9
9
|
}
|
|
@@ -109,6 +109,7 @@ export interface LegionClient {
|
|
|
109
109
|
setTeamSiteAssignmentPermission(orgId: string, alignmentPermission: AlignmentPermission): Promise<void>;
|
|
110
110
|
getUnassignedTeams(orgId: string, count: number, cursor?: string | null, query?: string | null): Promise<UnassignedTeamsResponse>;
|
|
111
111
|
getTeamSiteAssignmentOrgDetails(): Promise<TeamSiteAssignmentOrgDetailsResponse>;
|
|
112
|
+
checkOrgFullAlignmentStatus(orgId: string): Promise<OrgAlignmentStatus>;
|
|
112
113
|
}
|
|
113
114
|
/**
|
|
114
115
|
* REST Client to make calls to Legion.
|
|
@@ -385,6 +385,7 @@ export declare class TeamsClient {
|
|
|
385
385
|
updateHelpPointer(...args: Parameters<typeof teamCentralClient.updateHelpPointer>): Promise<AwaitedReturn<typeof teamCentralClient.updateHelpPointer>>;
|
|
386
386
|
deleteHelpPointer(...args: Parameters<typeof teamCentralClient.deleteHelpPointer>): Promise<AwaitedReturn<typeof teamCentralClient.deleteHelpPointer>>;
|
|
387
387
|
getUserTenure(...args: Parameters<typeof replinesClient.getUserTenure>): Promise<AwaitedReturn<typeof replinesClient.getUserTenure>>;
|
|
388
|
+
checkOrgFullAlignmentStatus(...args: Parameters<typeof defaultLegionClient.checkOrgFullAlignmentStatus>): Promise<AwaitedReturn<typeof defaultLegionClient.checkOrgFullAlignmentStatus>>;
|
|
388
389
|
}
|
|
389
390
|
export declare const teamsClient: TeamsClient;
|
|
390
391
|
export {};
|
|
@@ -3,7 +3,7 @@ import { type AlignmentPermission, type AssignedTeamsResponse, type AssignTeamsT
|
|
|
3
3
|
import { type ApiTeamContainerCreationPayload, type ApiTeamContainerResponse } from '../../types/team-container';
|
|
4
4
|
import { type UserInSiteUserbase } from '../../types/user';
|
|
5
5
|
import { RestClient } from '../rest-client';
|
|
6
|
-
import { type LegionAssociateAgentResponse, type LegionLinkResponseV3, type LegionLinkResponseV4, type LegionPaginatedResponse, type LegionTeamAndGroupDifferenceResponse } from './types';
|
|
6
|
+
import { type LegionAssociateAgentResponse, type LegionLinkResponseV3, type LegionLinkResponseV4, type LegionPaginatedResponse, type LegionTeamAndGroupDifferenceResponse, type OrgAlignmentStatus } from './types';
|
|
7
7
|
export interface PaginationResult<T> {
|
|
8
8
|
entities: T[];
|
|
9
9
|
}
|
|
@@ -109,6 +109,7 @@ export interface LegionClient {
|
|
|
109
109
|
setTeamSiteAssignmentPermission(orgId: string, alignmentPermission: AlignmentPermission): Promise<void>;
|
|
110
110
|
getUnassignedTeams(orgId: string, count: number, cursor?: string | null, query?: string | null): Promise<UnassignedTeamsResponse>;
|
|
111
111
|
getTeamSiteAssignmentOrgDetails(): Promise<TeamSiteAssignmentOrgDetailsResponse>;
|
|
112
|
+
checkOrgFullAlignmentStatus(orgId: string): Promise<OrgAlignmentStatus>;
|
|
112
113
|
}
|
|
113
114
|
/**
|
|
114
115
|
* REST Client to make calls to Legion.
|
|
@@ -385,6 +385,7 @@ export declare class TeamsClient {
|
|
|
385
385
|
updateHelpPointer(...args: Parameters<typeof teamCentralClient.updateHelpPointer>): Promise<AwaitedReturn<typeof teamCentralClient.updateHelpPointer>>;
|
|
386
386
|
deleteHelpPointer(...args: Parameters<typeof teamCentralClient.deleteHelpPointer>): Promise<AwaitedReturn<typeof teamCentralClient.deleteHelpPointer>>;
|
|
387
387
|
getUserTenure(...args: Parameters<typeof replinesClient.getUserTenure>): Promise<AwaitedReturn<typeof replinesClient.getUserTenure>>;
|
|
388
|
+
checkOrgFullAlignmentStatus(...args: Parameters<typeof defaultLegionClient.checkOrgFullAlignmentStatus>): Promise<AwaitedReturn<typeof defaultLegionClient.checkOrgFullAlignmentStatus>>;
|
|
388
389
|
}
|
|
389
390
|
export declare const teamsClient: TeamsClient;
|
|
390
391
|
export {};
|