@atlaskit/teams-client 4.27.0 → 4.28.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 +5 -4
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/legion-client/index.js +3 -1
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/common/utils/permissions/constants.js +5 -4
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/legion-client/index.js +3 -1
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/common/utils/permissions/constants.js +5 -4
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/legion-client/index.js +3 -1
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/types/common/utils/permissions/constants.d.ts +1 -0
- package/dist/types/services/legion-client/index.d.ts +2 -0
- package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +1 -0
- package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -33,7 +33,7 @@ var allPermissions = exports.allPermissions = function allPermissions(defaultPer
|
|
|
33
33
|
ADD_AGENT_TO_TEAM: defaultPermission,
|
|
34
34
|
ARCHIVE_TEAM: defaultPermission && isMember,
|
|
35
35
|
UNARCHIVE_TEAM: false,
|
|
36
|
-
CAN_EDIT_HIERARCHY: defaultPermission
|
|
36
|
+
CAN_EDIT_HIERARCHY: defaultPermission,
|
|
37
37
|
CAN_CHANGE_MEMBERSHIP_SETTINGS: defaultPermission
|
|
38
38
|
};
|
|
39
39
|
};
|
|
@@ -58,7 +58,9 @@ var SCIMSyncTeamPermissions = exports.SCIMSyncTeamPermissions = function SCIMSyn
|
|
|
58
58
|
EDIT_DESCRIPTION: isMember || isOrgAdmin,
|
|
59
59
|
EDIT_TEAM_SETTINGS: isMember || isOrgAdmin,
|
|
60
60
|
EDIT_TEAM_LINK: isMember || isOrgAdmin,
|
|
61
|
-
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && (0, _platformFeatureFlags.fg)('enable_edit_team_name_external_type_teams')
|
|
61
|
+
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && (0, _platformFeatureFlags.fg)('enable_edit_team_name_external_type_teams'),
|
|
62
|
+
//Org admins should not be able to edit hierarchies of HRIS synced teams
|
|
63
|
+
CAN_EDIT_HIERARCHY: source === 'ATLASSIAN_GROUP' && isOrgAdmin
|
|
62
64
|
};
|
|
63
65
|
};
|
|
64
66
|
|
|
@@ -110,8 +112,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
110
112
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
111
113
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
112
114
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
113
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
114
|
-
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE' && isOrgAdmin
|
|
115
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
115
116
|
});
|
|
116
117
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
117
118
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -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.27.0",
|
|
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.27.0",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -32,6 +32,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
32
32
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
33
33
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
34
34
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
35
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
35
36
|
*/
|
|
36
37
|
|
|
37
38
|
/**
|
|
@@ -130,7 +131,8 @@ var LegionClient = exports.LegionClient = /*#__PURE__*/function (_RestClient) {
|
|
|
130
131
|
membership: {
|
|
131
132
|
memberAccountIds: allTeamsQuery.memberAccountIds
|
|
132
133
|
},
|
|
133
|
-
showEmptyTeams: allTeamsQuery.showEmptyTeams
|
|
134
|
+
showEmptyTeams: allTeamsQuery.showEmptyTeams,
|
|
135
|
+
teamTypeIdsFilter: allTeamsQuery.teamTypeIdsFilter
|
|
134
136
|
});
|
|
135
137
|
case 5:
|
|
136
138
|
_yield$this$postResou = _context2.sent;
|
|
@@ -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.27.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) || '---',
|
|
@@ -22,7 +22,7 @@ export const allPermissions = (defaultPermission, isMember, isOrgAdmin) => ({
|
|
|
22
22
|
ADD_AGENT_TO_TEAM: defaultPermission,
|
|
23
23
|
ARCHIVE_TEAM: defaultPermission && isMember,
|
|
24
24
|
UNARCHIVE_TEAM: false,
|
|
25
|
-
CAN_EDIT_HIERARCHY: defaultPermission
|
|
25
|
+
CAN_EDIT_HIERARCHY: defaultPermission,
|
|
26
26
|
CAN_CHANGE_MEMBERSHIP_SETTINGS: defaultPermission
|
|
27
27
|
});
|
|
28
28
|
export const vanityActions = ['EDIT_DESCRIPTION', 'EDIT_TEAM_NAME', 'EDIT_PROFILE_HEADER', 'EDIT_TEAM_LINK'];
|
|
@@ -41,7 +41,9 @@ export const SCIMSyncTeamPermissions = (isMember, isOrgAdmin, source) => ({
|
|
|
41
41
|
EDIT_DESCRIPTION: isMember || isOrgAdmin,
|
|
42
42
|
EDIT_TEAM_SETTINGS: isMember || isOrgAdmin,
|
|
43
43
|
EDIT_TEAM_LINK: isMember || isOrgAdmin,
|
|
44
|
-
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && fg('enable_edit_team_name_external_type_teams')
|
|
44
|
+
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && fg('enable_edit_team_name_external_type_teams'),
|
|
45
|
+
//Org admins should not be able to edit hierarchies of HRIS synced teams
|
|
46
|
+
CAN_EDIT_HIERARCHY: source === 'ATLASSIAN_GROUP' && isOrgAdmin
|
|
45
47
|
});
|
|
46
48
|
|
|
47
49
|
/**
|
|
@@ -99,8 +101,7 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
|
|
|
99
101
|
...SCIMSyncTeamPermissions(isMember, isOrgAdmin, source),
|
|
100
102
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
101
103
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
102
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
103
|
-
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE' && isOrgAdmin
|
|
104
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
104
105
|
};
|
|
105
106
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
106
107
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -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.27.0",
|
|
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.27.0",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -11,6 +11,7 @@ import { RestClient } from '../rest-client';
|
|
|
11
11
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
12
12
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
13
13
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
14
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -77,7 +78,8 @@ export class LegionClient extends RestClient {
|
|
|
77
78
|
membership: {
|
|
78
79
|
memberAccountIds: allTeamsQuery.memberAccountIds
|
|
79
80
|
},
|
|
80
|
-
showEmptyTeams: allTeamsQuery.showEmptyTeams
|
|
81
|
+
showEmptyTeams: allTeamsQuery.showEmptyTeams,
|
|
82
|
+
teamTypeIdsFilter: allTeamsQuery.teamTypeIdsFilter
|
|
81
83
|
});
|
|
82
84
|
const teams = entities.map(t => this.mapTeamSearchResponseV4ToTeamWithMembership(t));
|
|
83
85
|
return {
|
|
@@ -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.27.0"}` ||
|
|
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) || '---',
|
|
@@ -26,7 +26,7 @@ export var allPermissions = function allPermissions(defaultPermission, isMember,
|
|
|
26
26
|
ADD_AGENT_TO_TEAM: defaultPermission,
|
|
27
27
|
ARCHIVE_TEAM: defaultPermission && isMember,
|
|
28
28
|
UNARCHIVE_TEAM: false,
|
|
29
|
-
CAN_EDIT_HIERARCHY: defaultPermission
|
|
29
|
+
CAN_EDIT_HIERARCHY: defaultPermission,
|
|
30
30
|
CAN_CHANGE_MEMBERSHIP_SETTINGS: defaultPermission
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -51,7 +51,9 @@ export var SCIMSyncTeamPermissions = function SCIMSyncTeamPermissions(isMember,
|
|
|
51
51
|
EDIT_DESCRIPTION: isMember || isOrgAdmin,
|
|
52
52
|
EDIT_TEAM_SETTINGS: isMember || isOrgAdmin,
|
|
53
53
|
EDIT_TEAM_LINK: isMember || isOrgAdmin,
|
|
54
|
-
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && fg('enable_edit_team_name_external_type_teams')
|
|
54
|
+
EDIT_TEAM_NAME: isOrgAdmin && source === 'ATLASSIAN_GROUP' && fg('enable_edit_team_name_external_type_teams'),
|
|
55
|
+
//Org admins should not be able to edit hierarchies of HRIS synced teams
|
|
56
|
+
CAN_EDIT_HIERARCHY: source === 'ATLASSIAN_GROUP' && isOrgAdmin
|
|
55
57
|
};
|
|
56
58
|
};
|
|
57
59
|
|
|
@@ -103,8 +105,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
|
|
|
103
105
|
return _objectSpread(_objectSpread(_objectSpread({}, allPermissions(false, isMember, isOrgAdmin)), SCIMSyncTeamPermissions(isMember, isOrgAdmin, source)), {}, {
|
|
104
106
|
ADD_AGENT_TO_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
105
107
|
REMOVE_AGENT_FROM_TEAM: newTeamProfileEnabled && (isMember || isOrgAdmin),
|
|
106
|
-
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
107
|
-
CAN_EDIT_HIERARCHY: permission === 'FULL_WRITE' && isOrgAdmin
|
|
108
|
+
ARCHIVE_TEAM: isArchiveTeamEnabled && isOrgAdmin
|
|
108
109
|
});
|
|
109
110
|
} else if (settings === 'ORG_ADMIN_MANAGED') {
|
|
110
111
|
// NOTE: Only org admins will received FULL_WRITE permission
|
|
@@ -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.27.0",
|
|
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.27.0",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -26,6 +26,7 @@ import { RestClient } from '../rest-client';
|
|
|
26
26
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
27
27
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
28
28
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
29
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
29
30
|
*/
|
|
30
31
|
|
|
31
32
|
/**
|
|
@@ -124,7 +125,8 @@ export var LegionClient = /*#__PURE__*/function (_RestClient) {
|
|
|
124
125
|
membership: {
|
|
125
126
|
memberAccountIds: allTeamsQuery.memberAccountIds
|
|
126
127
|
},
|
|
127
|
-
showEmptyTeams: allTeamsQuery.showEmptyTeams
|
|
128
|
+
showEmptyTeams: allTeamsQuery.showEmptyTeams,
|
|
129
|
+
teamTypeIdsFilter: allTeamsQuery.teamTypeIdsFilter
|
|
128
130
|
});
|
|
129
131
|
case 5:
|
|
130
132
|
_yield$this$postResou = _context2.sent;
|
|
@@ -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.27.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) || '---',
|
|
@@ -19,5 +19,6 @@ export declare const SCIMSyncTeamPermissions: (isMember: boolean, isOrgAdmin: bo
|
|
|
19
19
|
EDIT_TEAM_SETTINGS: boolean;
|
|
20
20
|
EDIT_TEAM_LINK: boolean;
|
|
21
21
|
EDIT_TEAM_NAME: boolean;
|
|
22
|
+
CAN_EDIT_HIERARCHY: boolean;
|
|
22
23
|
};
|
|
23
24
|
export declare const getPermissionMap: (settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource, state?: TeamState) => PermissionMap;
|
|
@@ -29,6 +29,7 @@ export interface SortField {
|
|
|
29
29
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
30
30
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
31
31
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
32
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
32
33
|
*/
|
|
33
34
|
export interface AllTeamsQuery {
|
|
34
35
|
/**
|
|
@@ -43,6 +44,7 @@ export interface AllTeamsQuery {
|
|
|
43
44
|
useDefaultSort?: boolean;
|
|
44
45
|
showEmptyTeams?: boolean;
|
|
45
46
|
sortBy?: SortField[];
|
|
47
|
+
teamTypeIdsFilter?: string[];
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
48
50
|
* @type AllTeamsResponse
|
|
@@ -19,5 +19,6 @@ export declare const SCIMSyncTeamPermissions: (isMember: boolean, isOrgAdmin: bo
|
|
|
19
19
|
EDIT_TEAM_SETTINGS: boolean;
|
|
20
20
|
EDIT_TEAM_LINK: boolean;
|
|
21
21
|
EDIT_TEAM_NAME: boolean;
|
|
22
|
+
CAN_EDIT_HIERARCHY: boolean;
|
|
22
23
|
};
|
|
23
24
|
export declare const getPermissionMap: (settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource, state?: TeamState) => PermissionMap;
|
|
@@ -29,6 +29,7 @@ export interface SortField {
|
|
|
29
29
|
* @property {string[]} memberAccountIds - List of member account IDs to filter teams
|
|
30
30
|
* @property {boolean} useDefaultSort - Whether to use the default sort order
|
|
31
31
|
* @property {boolean} showEmptyTeams - Whether to return empty teams in the search
|
|
32
|
+
* @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
|
|
32
33
|
*/
|
|
33
34
|
export interface AllTeamsQuery {
|
|
34
35
|
/**
|
|
@@ -43,6 +44,7 @@ export interface AllTeamsQuery {
|
|
|
43
44
|
useDefaultSort?: boolean;
|
|
44
45
|
showEmptyTeams?: boolean;
|
|
45
46
|
sortBy?: SortField[];
|
|
47
|
+
teamTypeIdsFilter?: string[];
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
48
50
|
* @type AllTeamsResponse
|