@atlaskit/teams-client 4.29.1 → 4.30.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/services/main.js +4 -11
- package/dist/es2019/common/utils/permissions/constants.js +2 -1
- package/dist/es2019/services/main.js +5 -12
- package/dist/esm/common/utils/permissions/constants.js +2 -1
- package/dist/esm/services/main.js +4 -11
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 4.30.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8043a09b33198`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8043a09b33198) -
|
|
8
|
+
[ux] Enable editing team types for external teams
|
|
9
|
+
|
|
3
10
|
## 4.29.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -112,7 +112,8 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
112
112
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
113
113
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
114
114
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
115
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
115
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
116
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
116
117
|
});
|
|
117
118
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
118
119
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -10,7 +10,6 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _constants = require("../common/utils/ufo/constants");
|
|
15
14
|
var _aggClient = require("./agg-client");
|
|
16
15
|
var _collaborationgraphClient = _interopRequireDefault(require("./collaborationgraph-client"));
|
|
@@ -161,16 +160,10 @@ var TeamsClient = exports.TeamsClient = /*#__PURE__*/function () {
|
|
|
161
160
|
while (1) switch (_context3.prev = _context3.next) {
|
|
162
161
|
case 0:
|
|
163
162
|
if (cloudId) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}));
|
|
169
|
-
} else {
|
|
170
|
-
this.setContext({
|
|
171
|
-
cloudId: cloudId
|
|
172
|
-
});
|
|
173
|
-
}
|
|
163
|
+
previousContext = this._legionClient.getContext();
|
|
164
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
165
|
+
cloudId: cloudId
|
|
166
|
+
}));
|
|
174
167
|
}
|
|
175
168
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
176
169
|
var response;
|
|
@@ -101,7 +101,8 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
|
|
|
101
101
|
...SCIMSyncTeamPermissions(isMember, isOrgAdmin, source),
|
|
102
102
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
103
103
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
104
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
104
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
105
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
105
106
|
};
|
|
106
107
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
107
108
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
4
3
|
import { aggClient } from './agg-client';
|
|
5
4
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -110,17 +109,11 @@ export class TeamsClient {
|
|
|
110
109
|
*/
|
|
111
110
|
async querySettings(cloudId, product) {
|
|
112
111
|
if (cloudId) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
} else {
|
|
120
|
-
this.setContext({
|
|
121
|
-
cloudId
|
|
122
|
-
});
|
|
123
|
-
}
|
|
112
|
+
const previousContext = this._legionClient.getContext();
|
|
113
|
+
this.setContext({
|
|
114
|
+
...previousContext,
|
|
115
|
+
cloudId
|
|
116
|
+
});
|
|
124
117
|
}
|
|
125
118
|
return this.measurePerformance('querySettings', async () => {
|
|
126
119
|
if (!product) {
|
|
@@ -105,7 +105,8 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
105
105
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
106
106
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
107
107
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
108
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
108
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin,
|
|
109
|
+
EDIT_TEAM_TYPE: isOrgAdmin
|
|
109
110
|
});
|
|
110
111
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
111
112
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -5,7 +5,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { TEAMS_CLIENT_EXPERIENCES } from '../common/utils/ufo/constants';
|
|
10
9
|
import { aggClient } from './agg-client';
|
|
11
10
|
import collaborationGraphClient from './collaborationgraph-client';
|
|
@@ -156,16 +155,10 @@ export var TeamsClient = /*#__PURE__*/function () {
|
|
|
156
155
|
while (1) switch (_context3.prev = _context3.next) {
|
|
157
156
|
case 0:
|
|
158
157
|
if (cloudId) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}));
|
|
164
|
-
} else {
|
|
165
|
-
this.setContext({
|
|
166
|
-
cloudId: cloudId
|
|
167
|
-
});
|
|
168
|
-
}
|
|
158
|
+
previousContext = this._legionClient.getContext();
|
|
159
|
+
this.setContext(_objectSpread(_objectSpread({}, previousContext), {}, {
|
|
160
|
+
cloudId: cloudId
|
|
161
|
+
}));
|
|
169
162
|
}
|
|
170
163
|
return _context3.abrupt("return", this.measurePerformance('querySettings', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
171
164
|
var response;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.30.0",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -95,9 +95,6 @@
|
|
|
95
95
|
"enable_edit_team_name_external_type_teams": {
|
|
96
96
|
"type": "boolean"
|
|
97
97
|
},
|
|
98
|
-
"fix_query_settings_context": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
98
|
"legion-enable-archive-teams": {
|
|
102
99
|
"type": "boolean"
|
|
103
100
|
}
|