@atlaskit/teams-client 4.32.3 → 4.32.5

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/teams-client
2
2
 
3
+ ## 4.32.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`759719a07dfd0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/759719a07dfd0) -
8
+ Clean up teams-app_client_fix-invalid-ari feature gate
9
+
10
+ ## 4.32.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 4.32.3
4
17
 
5
18
  ### Patch Changes
@@ -103,13 +103,13 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
103
103
  var basePermissions = allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin);
104
104
  if (settings === 'OPEN') {
105
105
  return _objectSpread(_objectSpread(_objectSpread({}, basePermissions), openPermissions(permission)), {}, {
106
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
106
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
107
107
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && (0, _platformFeatureFlags.fg)('ptc-enable-team-type-permission-enabled')
108
108
  });
109
109
  }
110
110
  if (settings === 'MEMBER_INVITE') {
111
111
  return _objectSpread(_objectSpread(_objectSpread({}, basePermissions), inviteOnlyPermissions(permission)), {}, {
112
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
112
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
113
113
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && (0, _platformFeatureFlags.fg)('ptc-enable-team-type-permission-enabled')
114
114
  });
115
115
  } else if (settings === 'EXTERNAL') {
@@ -139,7 +139,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
139
139
  } else if (settings === 'ORG_ADMIN_MANAGED') {
140
140
  // NOTE: Only org admins will received FULL_WRITE permission
141
141
  return _objectSpread(_objectSpread({}, basePermissions), {}, {
142
- // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
142
+ // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
143
143
  EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE' || basePermissions.EDIT_TEAM_LINK && (0, _platformFeatureFlags.fg)('ptc-enable-team-type-permission-enabled'),
144
144
  ADD_AGENT_TO_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.ADD_AGENT_TO_TEAM && (0, _platformFeatureFlags.fg)('ptc-enable-team-type-permission-enabled'),
145
145
  REMOVE_AGENT_FROM_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.REMOVE_AGENT_FROM_TEAM && (0, _platformFeatureFlags.fg)('ptc-enable-team-type-permission-enabled'),
@@ -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: "0.0.0-development",
55
+ packageVersion: "4.32.4",
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: "0.0.0-development",
63
+ packageVersion: "4.32.4",
64
64
  packageName: "@atlaskit/teams-client"
65
65
  }
66
66
  }]);
@@ -8,7 +8,6 @@ exports.BaseClient = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _sentry = require("../sentry");
13
12
  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; }
14
13
  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; }
@@ -23,14 +22,14 @@ var BaseClient = exports.BaseClient = /*#__PURE__*/function () {
23
22
  });
24
23
  this.config = config;
25
24
  this.context = {
26
- cloudId: (0, _platformFeatureFlags.fg)('teams-app_client_fix-invalid-ari') ? '' : 'None'
25
+ cloudId: ''
27
26
  };
28
27
  }
29
28
  return (0, _createClass2.default)(BaseClient, [{
30
29
  key: "setContext",
31
30
  value: function setContext(context) {
32
31
  this.context = _objectSpread(_objectSpread({}, context), {}, {
33
- cloudId: (0, _platformFeatureFlags.fg)('teams-app_client_fix-invalid-ari') ? context.cloudId || '' : context.cloudId || 'None'
32
+ cloudId: context.cloudId || ''
34
33
  });
35
34
  }
36
35
  }, {
@@ -13,7 +13,6 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
13
13
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
14
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
15
15
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _error = require("../../common/utils/error");
18
17
  var _baseClient = require("../base-client");
19
18
  var _utils = require("./utils");
@@ -56,9 +55,8 @@ var BaseGraphQlClient = exports.BaseGraphQlClient = /*#__PURE__*/function (_Base
56
55
 
57
56
  /**
58
57
  * Creates query context headers if cloudId is available and valid.
59
- * When the fix-invalid-ari flag is enabled, validates the cloudId before
60
- * constructing the ARI, preventing invalid ARIs like
61
- * `ari:cloud:platform::site/None` from being sent.
58
+ * Validates the cloudId before constructing the ARI, preventing invalid
59
+ * ARIs like `ari:cloud:platform::site/None` from being sent.
62
60
  */
63
61
  }, {
64
62
  key: "createQueryContextHeaders",
@@ -66,19 +64,14 @@ var BaseGraphQlClient = exports.BaseGraphQlClient = /*#__PURE__*/function (_Base
66
64
  if (!cloudId) {
67
65
  return undefined;
68
66
  }
69
- if ((0, _platformFeatureFlags.fg)('teams-app_client_fix-invalid-ari')) {
70
- try {
71
- var ari = createPlatformSiteAri(cloudId);
72
- return {
73
- 'X-Query-Context': ari
74
- };
75
- } catch (_unused) {
76
- return undefined;
77
- }
67
+ try {
68
+ var ari = createPlatformSiteAri(cloudId);
69
+ return {
70
+ 'X-Query-Context': ari
71
+ };
72
+ } catch (_unused) {
73
+ return undefined;
78
74
  }
79
- return {
80
- 'X-Query-Context': "ari:cloud:platform::site/".concat(cloudId)
81
- };
82
75
  }
83
76
  }, {
84
77
  key: "makeGraphQLRequest",
@@ -21,7 +21,7 @@ var _excluded = ["id"];
21
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; }
22
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; }
23
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)); }
24
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
25
25
  var defaultConfig = {
26
26
  serviceUrl: "".concat(_constants.DEFAULT_CONFIG.stargateRoot, "/users")
27
27
  };
@@ -168,4 +168,5 @@ var IdentityClient = exports.IdentityClient = /*#__PURE__*/function (_RestClient
168
168
  }()
169
169
  }]);
170
170
  }(_restClient.RestClient);
171
- var _default = exports.default = new IdentityClient();
171
+ var _default_1 = new IdentityClient();
172
+ 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("0.0.0-development") ||
39
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.32.4") ||
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) || '---',
@@ -88,7 +88,7 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
88
88
  return {
89
89
  ...basePermissions,
90
90
  ...openPermissions(permission),
91
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
91
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
92
92
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && fg('ptc-enable-team-type-permission-enabled')
93
93
  };
94
94
  }
@@ -96,7 +96,7 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
96
96
  return {
97
97
  ...basePermissions,
98
98
  ...inviteOnlyPermissions(permission),
99
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
99
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
100
100
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && fg('ptc-enable-team-type-permission-enabled')
101
101
  };
102
102
  } else if (settings === 'EXTERNAL') {
@@ -132,7 +132,7 @@ const getActiveTeamPermissionMap = (settings, permission, isMember, isOrgAdmin,
132
132
  // NOTE: Only org admins will received FULL_WRITE permission
133
133
  return {
134
134
  ...basePermissions,
135
- // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
135
+ // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
136
136
  EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE' || basePermissions.EDIT_TEAM_LINK && fg('ptc-enable-team-type-permission-enabled'),
137
137
  ADD_AGENT_TO_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.ADD_AGENT_TO_TEAM && fg('ptc-enable-team-type-permission-enabled'),
138
138
  REMOVE_AGENT_FROM_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.REMOVE_AGENT_FROM_TEAM && fg('ptc-enable-team-type-permission-enabled'),
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
27
27
  return super.failure({
28
28
  metadata: {
29
29
  error: createErrorMetadata(error),
30
- packageVersion: "0.0.0-development",
30
+ packageVersion: "4.32.4",
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: "0.0.0-development",
38
+ packageVersion: "4.32.4",
39
39
  packageName: "@atlaskit/teams-client"
40
40
  }
41
41
  });
@@ -1,5 +1,4 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  import { logException } from '../sentry';
4
3
  export class BaseClient {
5
4
  constructor(config) {
@@ -10,13 +9,13 @@ export class BaseClient {
10
9
  });
11
10
  this.config = config;
12
11
  this.context = {
13
- cloudId: fg('teams-app_client_fix-invalid-ari') ? '' : 'None'
12
+ cloudId: ''
14
13
  };
15
14
  }
16
15
  setContext(context) {
17
16
  this.context = {
18
17
  ...context,
19
- cloudId: fg('teams-app_client_fix-invalid-ari') ? context.cloudId || '' : context.cloudId || 'None'
18
+ cloudId: context.cloudId || ''
20
19
  };
21
20
  }
22
21
  getContext() {
@@ -1,4 +1,3 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
2
1
  import { DefaultError, GraphQLError } from '../../common/utils/error';
3
2
  import { BaseClient } from '../base-client';
4
3
  import { handleGraphQLRequest } from './utils';
@@ -32,27 +31,21 @@ export class BaseGraphQlClient extends BaseClient {
32
31
 
33
32
  /**
34
33
  * Creates query context headers if cloudId is available and valid.
35
- * When the fix-invalid-ari flag is enabled, validates the cloudId before
36
- * constructing the ARI, preventing invalid ARIs like
37
- * `ari:cloud:platform::site/None` from being sent.
34
+ * Validates the cloudId before constructing the ARI, preventing invalid
35
+ * ARIs like `ari:cloud:platform::site/None` from being sent.
38
36
  */
39
37
  createQueryContextHeaders(cloudId) {
40
38
  if (!cloudId) {
41
39
  return undefined;
42
40
  }
43
- if (fg('teams-app_client_fix-invalid-ari')) {
44
- try {
45
- const ari = createPlatformSiteAri(cloudId);
46
- return {
47
- 'X-Query-Context': ari
48
- };
49
- } catch {
50
- return undefined;
51
- }
41
+ try {
42
+ const ari = createPlatformSiteAri(cloudId);
43
+ return {
44
+ 'X-Query-Context': ari
45
+ };
46
+ } catch {
47
+ return undefined;
52
48
  }
53
- return {
54
- 'X-Query-Context': `ari:cloud:platform::site/${cloudId}`
55
- };
56
49
  }
57
50
  async makeGraphQLRequest(body, options = {}) {
58
51
  try {
@@ -1,5 +1,7 @@
1
1
  import { DEFAULT_CONFIG } from '../constants';
2
2
  import { RestClient } from '../rest-client';
3
+
4
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
3
5
  import { dataURItoFile, toManageAPIInput, transformUserManageConfig } from './utils';
4
6
  const defaultConfig = {
5
7
  serviceUrl: `${DEFAULT_CONFIG.stargateRoot}/users`
@@ -50,4 +52,5 @@ export class IdentityClient extends RestClient {
50
52
  return response.url;
51
53
  }
52
54
  }
53
- export default new IdentityClient();
55
+ const _default_1 = new IdentityClient();
56
+ export default _default_1;
@@ -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"}@${"0.0.0-development"}` ||
31
+ release: `${"@atlaskit/teams-client"}@${"4.32.4"}` ||
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) || '---',
@@ -96,13 +96,13 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
96
96
  var basePermissions = allPermissions(permission === 'FULL_WRITE', isMember, isOrgAdmin);
97
97
  if (settings === 'OPEN') {
98
98
  return _objectSpread(_objectSpread(_objectSpread({}, basePermissions), openPermissions(permission)), {}, {
99
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
99
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
100
100
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && fg('ptc-enable-team-type-permission-enabled')
101
101
  });
102
102
  }
103
103
  if (settings === 'MEMBER_INVITE') {
104
104
  return _objectSpread(_objectSpread(_objectSpread({}, basePermissions), inviteOnlyPermissions(permission)), {}, {
105
- // Delete this row on enable_edit_team_name_external_type_teams cleanup
105
+ // Delete this row on enable_edit_team_name_external_type_teams cleanup
106
106
  ARCHIVE_TEAM: permission === 'FULL_WRITE' && (isMember || isOrgAdmin) || basePermissions.ARCHIVE_TEAM && fg('ptc-enable-team-type-permission-enabled')
107
107
  });
108
108
  } else if (settings === 'EXTERNAL') {
@@ -132,7 +132,7 @@ var getActiveTeamPermissionMap = function getActiveTeamPermissionMap(settings, p
132
132
  } else if (settings === 'ORG_ADMIN_MANAGED') {
133
133
  // NOTE: Only org admins will received FULL_WRITE permission
134
134
  return _objectSpread(_objectSpread({}, basePermissions), {}, {
135
- // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
135
+ // Delete all there rows on enable_edit_team_name_external_type_teams cleanup
136
136
  EDIT_TEAM_LINK: isMember || permission === 'FULL_WRITE' || basePermissions.EDIT_TEAM_LINK && fg('ptc-enable-team-type-permission-enabled'),
137
137
  ADD_AGENT_TO_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.ADD_AGENT_TO_TEAM && fg('ptc-enable-team-type-permission-enabled'),
138
138
  REMOVE_AGENT_FROM_TEAM: isMember || permission === 'FULL_WRITE' || basePermissions.REMOVE_AGENT_FROM_TEAM && fg('ptc-enable-team-type-permission-enabled'),
@@ -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: "0.0.0-development",
48
+ packageVersion: "4.32.4",
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: "0.0.0-development",
56
+ packageVersion: "4.32.4",
57
57
  packageName: "@atlaskit/teams-client"
58
58
  }
59
59
  }]);
@@ -3,7 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  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; }
5
5
  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; }
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
6
  import { logException } from '../sentry';
8
7
  export var BaseClient = /*#__PURE__*/function () {
9
8
  function BaseClient(config) {
@@ -16,14 +15,14 @@ export var BaseClient = /*#__PURE__*/function () {
16
15
  });
17
16
  this.config = config;
18
17
  this.context = {
19
- cloudId: fg('teams-app_client_fix-invalid-ari') ? '' : 'None'
18
+ cloudId: ''
20
19
  };
21
20
  }
22
21
  return _createClass(BaseClient, [{
23
22
  key: "setContext",
24
23
  value: function setContext(context) {
25
24
  this.context = _objectSpread(_objectSpread({}, context), {}, {
26
- cloudId: fg('teams-app_client_fix-invalid-ari') ? context.cloudId || '' : context.cloudId || 'None'
25
+ cloudId: context.cloudId || ''
27
26
  });
28
27
  }
29
28
  }, {
@@ -10,7 +10,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
10
  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; }
11
11
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
- import { fg } from '@atlaskit/platform-feature-flags';
14
13
  import { DefaultError, GraphQLError } from '../../common/utils/error';
15
14
  import { BaseClient } from '../base-client';
16
15
  import { handleGraphQLRequest } from './utils';
@@ -50,9 +49,8 @@ export var BaseGraphQlClient = /*#__PURE__*/function (_BaseClient) {
50
49
 
51
50
  /**
52
51
  * Creates query context headers if cloudId is available and valid.
53
- * When the fix-invalid-ari flag is enabled, validates the cloudId before
54
- * constructing the ARI, preventing invalid ARIs like
55
- * `ari:cloud:platform::site/None` from being sent.
52
+ * Validates the cloudId before constructing the ARI, preventing invalid
53
+ * ARIs like `ari:cloud:platform::site/None` from being sent.
56
54
  */
57
55
  }, {
58
56
  key: "createQueryContextHeaders",
@@ -60,19 +58,14 @@ export var BaseGraphQlClient = /*#__PURE__*/function (_BaseClient) {
60
58
  if (!cloudId) {
61
59
  return undefined;
62
60
  }
63
- if (fg('teams-app_client_fix-invalid-ari')) {
64
- try {
65
- var ari = createPlatformSiteAri(cloudId);
66
- return {
67
- 'X-Query-Context': ari
68
- };
69
- } catch (_unused) {
70
- return undefined;
71
- }
61
+ try {
62
+ var ari = createPlatformSiteAri(cloudId);
63
+ return {
64
+ 'X-Query-Context': ari
65
+ };
66
+ } catch (_unused) {
67
+ return undefined;
72
68
  }
73
- return {
74
- 'X-Query-Context': "ari:cloud:platform::site/".concat(cloudId)
75
- };
76
69
  }
77
70
  }, {
78
71
  key: "makeGraphQLRequest",
@@ -14,6 +14,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
14
14
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
15
  import { DEFAULT_CONFIG } from '../constants';
16
16
  import { RestClient } from '../rest-client';
17
+
18
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
17
19
  import { dataURItoFile, toManageAPIInput, transformUserManageConfig } from './utils';
18
20
  var defaultConfig = {
19
21
  serviceUrl: "".concat(DEFAULT_CONFIG.stargateRoot, "/users")
@@ -161,4 +163,5 @@ export var IdentityClient = /*#__PURE__*/function (_RestClient) {
161
163
  }()
162
164
  }]);
163
165
  }(RestClient);
164
- export default new IdentityClient();
166
+ var _default_1 = new IdentityClient();
167
+ export default _default_1;
@@ -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("0.0.0-development") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.32.4") ||
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) || '---',
@@ -6,9 +6,8 @@ export declare class BaseGraphQlClient extends BaseClient {
6
6
  setServiceUrl(serviceUrl: string): void;
7
7
  /**
8
8
  * Creates query context headers if cloudId is available and valid.
9
- * When the fix-invalid-ari flag is enabled, validates the cloudId before
10
- * constructing the ARI, preventing invalid ARIs like
11
- * `ari:cloud:platform::site/None` from being sent.
9
+ * Validates the cloudId before constructing the ARI, preventing invalid
10
+ * ARIs like `ari:cloud:platform::site/None` from being sent.
12
11
  */
13
12
  private createQueryContextHeaders;
14
13
  makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
@@ -1,10 +1,11 @@
1
1
  import { type EditableUserFields } from '../../types';
2
2
  import { RestClient } from '../rest-client';
3
+ import { FieldType } from './utils';
3
4
  export declare class IdentityClient extends RestClient {
4
5
  constructor(config?: {});
5
6
  getUserManageConfig(userId: string): Promise<{
6
7
  mutabilityConstraints: {
7
- field: import("./utils").FieldType;
8
+ field: FieldType;
8
9
  reason: string | null;
9
10
  }[];
10
11
  }>;
@@ -29,5 +30,5 @@ export declare class IdentityClient extends RestClient {
29
30
  fileURI: string;
30
31
  }): Promise<string>;
31
32
  }
32
- declare const _default: IdentityClient;
33
- export default _default;
33
+ declare const _default_1: IdentityClient;
34
+ export default _default_1;
@@ -6,9 +6,8 @@ export declare class BaseGraphQlClient extends BaseClient {
6
6
  setServiceUrl(serviceUrl: string): void;
7
7
  /**
8
8
  * Creates query context headers if cloudId is available and valid.
9
- * When the fix-invalid-ari flag is enabled, validates the cloudId before
10
- * constructing the ARI, preventing invalid ARIs like
11
- * `ari:cloud:platform::site/None` from being sent.
9
+ * Validates the cloudId before constructing the ARI, preventing invalid
10
+ * ARIs like `ari:cloud:platform::site/None` from being sent.
12
11
  */
13
12
  private createQueryContextHeaders;
14
13
  makeGraphQLRequest<Key extends string, Data = unknown, Variables = unknown>(body: Body<Variables>, options?: Options): Promise<ResultResponse<Key, Data>>;
@@ -1,10 +1,11 @@
1
1
  import { type EditableUserFields } from '../../types';
2
2
  import { RestClient } from '../rest-client';
3
+ import { FieldType } from './utils';
3
4
  export declare class IdentityClient extends RestClient {
4
5
  constructor(config?: {});
5
6
  getUserManageConfig(userId: string): Promise<{
6
7
  mutabilityConstraints: {
7
- field: import("./utils").FieldType;
8
+ field: FieldType;
8
9
  reason: string | null;
9
10
  }[];
10
11
  }>;
@@ -29,5 +30,5 @@ export declare class IdentityClient extends RestClient {
29
30
  fileURI: string;
30
31
  }): Promise<string>;
31
32
  }
32
- declare const _default: IdentityClient;
33
- export default _default;
33
+ declare const _default_1: IdentityClient;
34
+ export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.32.3",
3
+ "version": "4.32.5",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,9 +38,9 @@
38
38
  "test:coverage": "(cd ../../.. && yarn test 'packages/people-and-teams/teams-client/src' --coverage --coverageProvider=v8 --collectCoverageFrom='[\"packages/people-and-teams/teams-client/src/**\", \"!packages/people-and-teams/teams-client/src/**/**/types.ts\", \"!packages/people-and-teams/teams-client/src/ui/**/styled.tsx\"]')"
39
39
  },
40
40
  "dependencies": {
41
- "@atlaskit/atlassian-context": "^0.8.0",
41
+ "@atlaskit/atlassian-context": "^0.9.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
- "@atlaskit/ufo": "^0.4.0",
43
+ "@atlaskit/ufo": "^0.5.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@sentry/browser": "^6.18.2",
46
46
  "date-fns-tz": "^2.0.0",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@atlaskit/feature-gate-js-client": "^5.5.0",
57
- "@atlassian/codegen": "^0.1.0",
58
- "@atlassian/ptc-test-utils": "^0.12.0",
57
+ "@atlassian/codegen": "^0.2.0",
58
+ "@atlassian/ptc-test-utils": "^0.13.0",
59
59
  "@atlassian/react-compiler-gating": "workspace:^",
60
60
  "@testing-library/react": "^16.3.0",
61
61
  "@types/faker": "^4.1.8",
@@ -102,9 +102,6 @@
102
102
  "enable_edit_team_name_external_type_teams": {
103
103
  "type": "boolean"
104
104
  },
105
- "teams-app_client_fix-invalid-ari": {
106
- "type": "boolean"
107
- },
108
105
  "ptc-enable-team-type-permission-enabled": {
109
106
  "type": "boolean"
110
107
  }