@atlaskit/teams-client 4.33.5 → 5.0.1

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.
Files changed (164) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/agg-client/package.json +1 -8
  3. package/agg-client/types/package.json +1 -8
  4. package/ari/package.json +1 -8
  5. package/association/package.json +1 -8
  6. package/client/package.json +1 -8
  7. package/config/package.json +1 -8
  8. package/dist/cjs/common/utils/ufo/index.js +2 -2
  9. package/dist/cjs/services/collaborationgraph-client/index.js +10 -23
  10. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  11. package/dist/es2019/common/utils/ufo/index.js +2 -2
  12. package/dist/es2019/services/collaborationgraph-client/index.js +8 -17
  13. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  14. package/dist/esm/common/utils/ufo/index.js +2 -2
  15. package/dist/esm/services/collaborationgraph-client/index.js +10 -23
  16. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  17. package/dist/types/services/collaborationgraph-client/index.d.ts +2 -10
  18. package/endpoints/package.json +1 -8
  19. package/error/package.json +1 -8
  20. package/generate-data/package.json +1 -8
  21. package/has-permission/package.json +1 -8
  22. package/initialise-sentry/package.json +1 -8
  23. package/legion-client/package.json +1 -8
  24. package/links/package.json +1 -8
  25. package/main/package.json +1 -8
  26. package/media/package.json +1 -8
  27. package/membership/package.json +1 -8
  28. package/mocks/package.json +1 -8
  29. package/package.json +6 -14
  30. package/permissions/package.json +1 -8
  31. package/permissions/types/package.json +1 -8
  32. package/public/package.json +1 -8
  33. package/reporting-lines-client/utils/types/package.json +1 -8
  34. package/sentry/main/package.json +1 -8
  35. package/sentry/package.json +1 -8
  36. package/sentry/types/package.json +1 -8
  37. package/slack/package.json +1 -8
  38. package/sort-teams/package.json +1 -8
  39. package/team/package.json +1 -8
  40. package/team-container/package.json +1 -8
  41. package/tenure/package.json +1 -8
  42. package/types/package.json +1 -8
  43. package/types/team/package.json +1 -8
  44. package/ufo/package.json +1 -8
  45. package/unlink-container-mutation/package.json +1 -8
  46. package/use-query-light/main/package.json +1 -8
  47. package/use-query-light/package.json +1 -8
  48. package/use-query-light/types/package.json +1 -8
  49. package/use-teams-client-setup/package.json +1 -8
  50. package/use-teams-sentry-client-setup/package.json +1 -8
  51. package/user/package.json +1 -8
  52. package/user-info-provider/main/package.json +1 -8
  53. package/user-info-provider/package.json +1 -8
  54. package/utils/package.json +1 -8
  55. package/dist/types-ts4.5/common/types.d.ts +0 -4
  56. package/dist/types-ts4.5/common/utils/ari.d.ts +0 -7
  57. package/dist/types-ts4.5/common/utils/error/index.d.ts +0 -91
  58. package/dist/types-ts4.5/common/utils/http.d.ts +0 -31
  59. package/dist/types-ts4.5/common/utils/index.d.ts +0 -2
  60. package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +0 -30
  61. package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +0 -40
  62. package/dist/types-ts4.5/common/utils/permissions/index.d.ts +0 -3
  63. package/dist/types-ts4.5/common/utils/permissions/types.d.ts +0 -31
  64. package/dist/types-ts4.5/common/utils/sort-teams.d.ts +0 -2
  65. package/dist/types-ts4.5/common/utils/status-code-handlers-provider.d.ts +0 -17
  66. package/dist/types-ts4.5/common/utils/team.d.ts +0 -5
  67. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +0 -82
  68. package/dist/types-ts4.5/common/utils/ufo/index.d.ts +0 -6
  69. package/dist/types-ts4.5/common/utils/ufo/utils.d.ts +0 -11
  70. package/dist/types-ts4.5/index.d.ts +0 -15
  71. package/dist/types-ts4.5/mocks/endpoints.d.ts +0 -22
  72. package/dist/types-ts4.5/mocks/generate-data.d.ts +0 -16
  73. package/dist/types-ts4.5/mocks/index.d.ts +0 -2
  74. package/dist/types-ts4.5/mocks/invitations.d.ts +0 -11
  75. package/dist/types-ts4.5/mocks/responses.d.ts +0 -75
  76. package/dist/types-ts4.5/mocks/team-link.d.ts +0 -7
  77. package/dist/types-ts4.5/mocks/team.d.ts +0 -14
  78. package/dist/types-ts4.5/mocks/user.d.ts +0 -15
  79. package/dist/types-ts4.5/mocks/with-faker.d.ts +0 -12
  80. package/dist/types-ts4.5/services/agg-client/index.d.ts +0 -36
  81. package/dist/types-ts4.5/services/agg-client/mocks/index.d.ts +0 -49
  82. package/dist/types-ts4.5/services/agg-client/types.d.ts +0 -13
  83. package/dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +0 -18
  84. package/dist/types-ts4.5/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +0 -11
  85. package/dist/types-ts4.5/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +0 -47
  86. package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +0 -52
  87. package/dist/types-ts4.5/services/agg-client/utils/queries/team-has-agents-query.d.ts +0 -15
  88. package/dist/types-ts4.5/services/agg-client/utils/queries/team-membership-query.d.ts +0 -33
  89. package/dist/types-ts4.5/services/agg-client/utils/queries/user-query.d.ts +0 -31
  90. package/dist/types-ts4.5/services/agg-client/utils/user-type.d.ts +0 -7
  91. package/dist/types-ts4.5/services/base-client/index.d.ts +0 -37
  92. package/dist/types-ts4.5/services/collaborationgraph-client/index.d.ts +0 -70
  93. package/dist/types-ts4.5/services/constants.d.ts +0 -2
  94. package/dist/types-ts4.5/services/directory-client/index.d.ts +0 -53
  95. package/dist/types-ts4.5/services/graphql-client/index.d.ts +0 -1
  96. package/dist/types-ts4.5/services/graphql-client/main.d.ts +0 -14
  97. package/dist/types-ts4.5/services/graphql-client/types.d.ts +0 -20
  98. package/dist/types-ts4.5/services/graphql-client/utils/index.d.ts +0 -3
  99. package/dist/types-ts4.5/services/hooks/use-teams-client-setup.d.ts +0 -14
  100. package/dist/types-ts4.5/services/identity-client/index.d.ts +0 -34
  101. package/dist/types-ts4.5/services/identity-client/utils.d.ts +0 -85
  102. package/dist/types-ts4.5/services/index.d.ts +0 -1
  103. package/dist/types-ts4.5/services/invitations-client/index.d.ts +0 -11
  104. package/dist/types-ts4.5/services/invitations-client/types.d.ts +0 -67
  105. package/dist/types-ts4.5/services/invitations-client/utils/index.d.ts +0 -7
  106. package/dist/types-ts4.5/services/invitations-client/utils/types.d.ts +0 -7
  107. package/dist/types-ts4.5/services/legion-client/index.d.ts +0 -164
  108. package/dist/types-ts4.5/services/legion-client/types.d.ts +0 -128
  109. package/dist/types-ts4.5/services/main.d.ts +0 -452
  110. package/dist/types-ts4.5/services/mutability-client/index.d.ts +0 -8
  111. package/dist/types-ts4.5/services/mutability-client/types.d.ts +0 -5
  112. package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +0 -10
  113. package/dist/types-ts4.5/services/object-resolver-client/types.d.ts +0 -69
  114. package/dist/types-ts4.5/services/object-resolver-client/utils.d.ts +0 -18
  115. package/dist/types-ts4.5/services/perms-client/index.d.ts +0 -16
  116. package/dist/types-ts4.5/services/public-api-client/generated/data-contracts.d.ts +0 -112
  117. package/dist/types-ts4.5/services/public-api-client/index.d.ts +0 -41
  118. package/dist/types-ts4.5/services/replines-client/index.d.ts +0 -11
  119. package/dist/types-ts4.5/services/reporting-lines-client/index.d.ts +0 -11
  120. package/dist/types-ts4.5/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.d.ts +0 -2
  121. package/dist/types-ts4.5/services/reporting-lines-client/utils/types.d.ts +0 -32
  122. package/dist/types-ts4.5/services/rest-client/index.d.ts +0 -40
  123. package/dist/types-ts4.5/services/rest-client/utils/cookie.d.ts +0 -5
  124. package/dist/types-ts4.5/services/rest-client/utils/parse-error-message.d.ts +0 -1
  125. package/dist/types-ts4.5/services/rest-client/utils/parse-response.d.ts +0 -1
  126. package/dist/types-ts4.5/services/rest-client/utils/strip-uuid.d.ts +0 -1
  127. package/dist/types-ts4.5/services/sentry/constants.d.ts +0 -5
  128. package/dist/types-ts4.5/services/sentry/index.d.ts +0 -3
  129. package/dist/types-ts4.5/services/sentry/main.d.ts +0 -32
  130. package/dist/types-ts4.5/services/sentry/types.d.ts +0 -36
  131. package/dist/types-ts4.5/services/sentry/utils/get-sentry-config.d.ts +0 -2
  132. package/dist/types-ts4.5/services/sentry/utils/initialise-sentry.d.ts +0 -2
  133. package/dist/types-ts4.5/services/sentry/utils/sentry-client.d.ts +0 -9
  134. package/dist/types-ts4.5/services/sentry/utils/use-teams-sentry-client-setup.d.ts +0 -3
  135. package/dist/types-ts4.5/services/team-central-client/index.d.ts +0 -26
  136. package/dist/types-ts4.5/services/team-central-client/mutations/add-team-watcher.graphql.d.ts +0 -9
  137. package/dist/types-ts4.5/services/team-central-client/mutations/create-tag-mutation.graphql.d.ts +0 -12
  138. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-create-mutation.graphql.d.ts +0 -20
  139. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-delete-mutation.graphql.d.ts +0 -7
  140. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-update-mutation.graphql.d.ts +0 -21
  141. package/dist/types-ts4.5/services/team-central-client/mutations/kudos-delete-mutation.graphql.d.ts +0 -10
  142. package/dist/types-ts4.5/services/team-central-client/mutations/remove-team-watcher.graphql.d.ts +0 -9
  143. package/dist/types-ts4.5/services/team-central-client/queries/is-team-watcher.graphql.d.ts +0 -8
  144. package/dist/types-ts4.5/services/team-central-client/queries/tag-list-query.graphql.d.ts +0 -24
  145. package/dist/types-ts4.5/services/team-central-client/utils.d.ts +0 -2
  146. package/dist/types-ts4.5/services/teams-in-slack-client/index.d.ts +0 -27
  147. package/dist/types-ts4.5/services/types.d.ts +0 -10
  148. package/dist/types-ts4.5/services/use-query-light/index.d.ts +0 -3
  149. package/dist/types-ts4.5/services/use-query-light/main.d.ts +0 -7
  150. package/dist/types-ts4.5/services/use-query-light/types.d.ts +0 -57
  151. package/dist/types-ts4.5/services/user-info-provider/index.d.ts +0 -1
  152. package/dist/types-ts4.5/services/user-info-provider/main.d.ts +0 -14
  153. package/dist/types-ts4.5/services/user-preferences-client/index.d.ts +0 -9
  154. package/dist/types-ts4.5/types/association.d.ts +0 -8
  155. package/dist/types-ts4.5/types/config.d.ts +0 -7
  156. package/dist/types-ts4.5/types/index.d.ts +0 -16
  157. package/dist/types-ts4.5/types/links.d.ts +0 -31
  158. package/dist/types-ts4.5/types/media.d.ts +0 -6
  159. package/dist/types-ts4.5/types/membership.d.ts +0 -35
  160. package/dist/types-ts4.5/types/slack.d.ts +0 -7
  161. package/dist/types-ts4.5/types/team-container.d.ts +0 -29
  162. package/dist/types-ts4.5/types/team.d.ts +0 -188
  163. package/dist/types-ts4.5/types/tenure.d.ts +0 -5
  164. package/dist/types-ts4.5/types/user.d.ts +0 -55
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @atlaskit/teams-client
2
2
 
3
+ ## 5.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
+ Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
+ gating.
10
+ - Updated dependencies
11
+
12
+ ## 5.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
17
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
18
+
19
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
20
+
21
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
22
+
23
+ ```diff
24
+ - "typesVersions": {
25
+ - ">=4.5 <4.9": {
26
+ - "*": [
27
+ - "dist/types-ts4.5/*",
28
+ - "dist/types-ts4.5/index.d.ts"
29
+ - ]
30
+ - }
31
+ - },
32
+ ```
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies
37
+
3
38
  ## 4.33.5
4
39
 
5
40
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/agg-client/index.js",
5
5
  "module:es2019": "../dist/es2019/services/agg-client/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/agg-client/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/agg-client/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/agg-client/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/agg-client/types.js",
5
5
  "module:es2019": "../../dist/es2019/services/agg-client/types.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/agg-client/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/agg-client/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/agg-client/types.d.ts"
15
8
  }
package/ari/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/ari.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/ari.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/ari.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/ari.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/ari.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/association.js",
5
5
  "module:es2019": "../dist/es2019/types/association.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/association.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/association.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/association.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/index.js",
5
5
  "module:es2019": "../dist/es2019/services/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/config.js",
5
5
  "module:es2019": "../dist/es2019/types/config.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/config.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/config.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/config.d.ts"
15
8
  }
@@ -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: "4.33.5",
55
+ packageVersion: "5.0.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: "4.33.5",
63
+ packageVersion: "5.0.0",
64
64
  packageName: "@atlaskit/teams-client"
65
65
  }
66
66
  }]);
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.CollaborationGraphClient = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -13,8 +12,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
12
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
13
  var _constants = require("../constants");
15
14
  var _restClient = require("../rest-client");
16
- 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; }
17
- 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; }
18
15
  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
16
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
17
  var CONTAINER_TYPE = /*#__PURE__*/function (CONTAINER_TYPE) {
@@ -62,31 +59,21 @@ var CollaborationGraphClient = exports.CollaborationGraphClient = /*#__PURE__*/f
62
59
  _ref2$maxNumberOfResu = _ref2.maxNumberOfResults,
63
60
  maxNumberOfResults = _ref2$maxNumberOfResu === void 0 ? 12 : _ref2$maxNumberOfResu,
64
61
  _ref2$filter = _ref2.filter,
65
- filter = _ref2$filter === void 0 ? 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")' : _ref2$filter,
66
- _ref2$expand = _ref2.expand,
67
- expand = _ref2$expand === void 0 ? 'existing' : _ref2$expand,
68
- _ref2$requestingUserI = _ref2.requestingUserId,
69
- requestingUserId = _ref2$requestingUserI === void 0 ? accountId : _ref2$requestingUserI,
70
- sessionId = _ref2.sessionId,
71
- _ref2$modelRequestPar = _ref2.modelRequestParams,
72
- modelRequestParams = _ref2$modelRequestPar === void 0 ? {
73
- experience: 'CgUserNearbyUser',
74
- caller: 'atlas'
75
- } : _ref2$modelRequestPar;
76
- return this.postResource('/v2/recommend/user', _objectSpread(_objectSpread({
62
+ filter = _ref2$filter === void 0 ? 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")' : _ref2$filter;
63
+ return this.postResource('/v2/recommend/user', {
77
64
  context: {
78
65
  userId: accountId,
79
66
  tenantId: cloudId
80
67
  },
81
- modelRequestParams: modelRequestParams,
82
- requestingUserId: requestingUserId,
83
- expand: expand,
84
- maxNumberOfResults: maxNumberOfResults
85
- }, filter ? {
68
+ modelRequestParams: {
69
+ experience: 'CgUserNearbyUser',
70
+ caller: 'atlas'
71
+ },
72
+ requestingUserId: accountId,
73
+ expand: 'existing',
74
+ maxNumberOfResults: maxNumberOfResults,
86
75
  filter: filter
87
- } : {}), sessionId ? {
88
- sessionId: sessionId
89
- } : {}));
76
+ });
90
77
  }
91
78
  }]);
92
79
  }(_restClient.RestClient);
@@ -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("4.33.5") ||
39
+ release: "".concat("@atlaskit/teams-client", "@").concat("5.0.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) || '---',
@@ -27,7 +27,7 @@ export class TeamsUFOExperience extends UFOExperience {
27
27
  return super.failure({
28
28
  metadata: {
29
29
  error: createErrorMetadata(error),
30
- packageVersion: "4.33.5",
30
+ packageVersion: "5.0.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: "4.33.5",
38
+ packageVersion: "5.0.0",
39
39
  packageName: "@atlaskit/teams-client"
40
40
  }
41
41
  });
@@ -35,30 +35,21 @@ export class CollaborationGraphClient extends RestClient {
35
35
  accountId,
36
36
  cloudId,
37
37
  maxNumberOfResults = 12,
38
- filter = 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")',
39
- expand = 'existing',
40
- requestingUserId = accountId,
41
- sessionId,
42
- modelRequestParams = {
43
- experience: 'CgUserNearbyUser',
44
- caller: 'atlas'
45
- }
38
+ filter = 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")'
46
39
  }) {
47
40
  return this.postResource('/v2/recommend/user', {
48
41
  context: {
49
42
  userId: accountId,
50
43
  tenantId: cloudId
51
44
  },
52
- modelRequestParams,
53
- requestingUserId,
54
- expand,
45
+ modelRequestParams: {
46
+ experience: 'CgUserNearbyUser',
47
+ caller: 'atlas'
48
+ },
49
+ requestingUserId: accountId,
50
+ expand: 'existing',
55
51
  maxNumberOfResults,
56
- ...(filter ? {
57
- filter
58
- } : {}),
59
- ...(sessionId ? {
60
- sessionId
61
- } : {})
52
+ filter
62
53
  });
63
54
  }
64
55
  }
@@ -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"}@${"4.33.5"}` ||
31
+ release: `${"@atlaskit/teams-client"}@${"5.0.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) || '---',
@@ -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: "4.33.5",
48
+ packageVersion: "5.0.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: "4.33.5",
56
+ packageVersion: "5.0.0",
57
57
  packageName: "@atlaskit/teams-client"
58
58
  }
59
59
  }]);
@@ -1,11 +1,8 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
2
  import _createClass from "@babel/runtime/helpers/createClass";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
5
  import _inherits from "@babel/runtime/helpers/inherits";
7
- 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; }
8
- 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; }
9
6
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
8
  import { DEFAULT_CONFIG } from '../constants';
@@ -55,31 +52,21 @@ export var CollaborationGraphClient = /*#__PURE__*/function (_RestClient) {
55
52
  _ref2$maxNumberOfResu = _ref2.maxNumberOfResults,
56
53
  maxNumberOfResults = _ref2$maxNumberOfResu === void 0 ? 12 : _ref2$maxNumberOfResu,
57
54
  _ref2$filter = _ref2.filter,
58
- filter = _ref2$filter === void 0 ? 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")' : _ref2$filter,
59
- _ref2$expand = _ref2.expand,
60
- expand = _ref2$expand === void 0 ? 'existing' : _ref2$expand,
61
- _ref2$requestingUserI = _ref2.requestingUserId,
62
- requestingUserId = _ref2$requestingUserI === void 0 ? accountId : _ref2$requestingUserI,
63
- sessionId = _ref2.sessionId,
64
- _ref2$modelRequestPar = _ref2.modelRequestParams,
65
- modelRequestParams = _ref2$modelRequestPar === void 0 ? {
66
- experience: 'CgUserNearbyUser',
67
- caller: 'atlas'
68
- } : _ref2$modelRequestPar;
69
- return this.postResource('/v2/recommend/user', _objectSpread(_objectSpread({
55
+ filter = _ref2$filter === void 0 ? 'account_status:"active" AND (NOT email_domain:"connect.atlassian.com") AND (NOT account_type:"app")' : _ref2$filter;
56
+ return this.postResource('/v2/recommend/user', {
70
57
  context: {
71
58
  userId: accountId,
72
59
  tenantId: cloudId
73
60
  },
74
- modelRequestParams: modelRequestParams,
75
- requestingUserId: requestingUserId,
76
- expand: expand,
77
- maxNumberOfResults: maxNumberOfResults
78
- }, filter ? {
61
+ modelRequestParams: {
62
+ experience: 'CgUserNearbyUser',
63
+ caller: 'atlas'
64
+ },
65
+ requestingUserId: accountId,
66
+ expand: 'existing',
67
+ maxNumberOfResults: maxNumberOfResults,
79
68
  filter: filter
80
- } : {}), sessionId ? {
81
- sessionId: sessionId
82
- } : {}));
69
+ });
83
70
  }
84
71
  }]);
85
72
  }(RestClient);
@@ -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("4.33.5") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("5.0.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) || '---',
@@ -10,15 +10,7 @@ export type RecommendedUsersArgs = {
10
10
  accountId: string;
11
11
  cloudId: string;
12
12
  maxNumberOfResults?: number;
13
- filter?: string | null;
14
- expand?: 'existing' | 'all' | string;
15
- requestingUserId?: string;
16
- sessionId?: string;
17
- modelRequestParams?: {
18
- experience?: string;
19
- caller?: string;
20
- featureServiceModel?: string;
21
- };
13
+ filter?: string;
22
14
  };
23
15
  declare enum CONTAINER_TYPE {
24
16
  JIRA_PROJECT = "jiraProject",
@@ -64,7 +56,7 @@ export type RecommendedUsersResponse = {
64
56
  };
65
57
  export declare class CollaborationGraphClient extends RestClient {
66
58
  getUserContainers({ userId, principalId, siteId, sessionId, maxNumberOfResults, }: UserContainerArgs): Promise<UserContainerResponse>;
67
- getRecommendedUsers({ accountId, cloudId, maxNumberOfResults, filter, expand, requestingUserId, sessionId, modelRequestParams, }: RecommendedUsersArgs): Promise<RecommendedUsersResponse>;
59
+ getRecommendedUsers({ accountId, cloudId, maxNumberOfResults, filter, }: RecommendedUsersArgs): Promise<RecommendedUsersResponse>;
68
60
  }
69
61
  declare const _default_1: CollaborationGraphClient;
70
62
  export default _default_1;
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/mocks/endpoints.js",
5
5
  "module:es2019": "../dist/es2019/mocks/endpoints.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/mocks/endpoints.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/mocks/endpoints.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/mocks/endpoints.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/error/index.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/error/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/error/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/error/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/error/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/mocks/generate-data.js",
5
5
  "module:es2019": "../dist/es2019/mocks/generate-data.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/mocks/generate-data.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/mocks/generate-data.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/mocks/generate-data.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/permissions/has-permission.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/permissions/has-permission.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/permissions/has-permission.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/permissions/has-permission.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/permissions/has-permission.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/sentry/utils/initialise-sentry.js",
5
5
  "module:es2019": "../dist/es2019/services/sentry/utils/initialise-sentry.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/sentry/utils/initialise-sentry.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/sentry/utils/initialise-sentry.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/sentry/utils/initialise-sentry.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/legion-client/index.js",
5
5
  "module:es2019": "../dist/es2019/services/legion-client/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/legion-client/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/legion-client/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/legion-client/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/links.js",
5
5
  "module:es2019": "../dist/es2019/types/links.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/links.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/links.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/links.d.ts"
15
8
  }
package/main/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/main.js",
5
5
  "module:es2019": "../dist/es2019/services/main.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/main.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/main.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/main.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/media.js",
5
5
  "module:es2019": "../dist/es2019/types/media.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/media.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/media.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/media.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/membership.js",
5
5
  "module:es2019": "../dist/es2019/types/membership.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/membership.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/membership.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/membership.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/mocks/index.js",
5
5
  "module:es2019": "../dist/es2019/mocks/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/mocks/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/mocks/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/mocks/index.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.33.5",
3
+ "version": "5.0.1",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,14 +22,6 @@
22
22
  "module": "dist/esm/index.js",
23
23
  "module:es2019": "dist/es2019/index.js",
24
24
  "types": "dist/types/index.d.ts",
25
- "typesVersions": {
26
- ">=4.5 <4.9": {
27
- "*": [
28
- "dist/types-ts4.5/*",
29
- "dist/types-ts4.5/index.d.ts"
30
- ]
31
- }
32
- },
33
25
  "sideEffects": false,
34
26
  "atlaskit:src": "src/index.ts",
35
27
  "scripts": {
@@ -38,9 +30,10 @@
38
30
  "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
31
  },
40
32
  "dependencies": {
41
- "@atlaskit/atlassian-context": "^0.11.0",
42
- "@atlaskit/platform-feature-flags": "^1.1.0",
43
- "@atlaskit/ufo": "^0.5.0",
33
+ "@atlaskit/atlassian-context": "^1.0.0",
34
+ "@atlaskit/platform-feature-flags": "^2.0.0",
35
+ "@atlaskit/ufo": "^1.0.0",
36
+ "@atlassian/react-compiler-gating": "^0.2.0",
44
37
  "@babel/runtime": "^7.0.0",
45
38
  "@sentry/browser": "^6.18.2",
46
39
  "date-fns-tz": "^2.0.0",
@@ -53,10 +46,9 @@
53
46
  "react": "^18.2.0"
54
47
  },
55
48
  "devDependencies": {
56
- "@atlaskit/feature-gate-js-client": "^5.8.0",
49
+ "@atlaskit/feature-gate-js-client": "^6.0.0",
57
50
  "@atlassian/codegen": "^0.2.0",
58
51
  "@atlassian/ptc-test-utils": "^0.13.0",
59
- "@atlassian/react-compiler-gating": "workspace:^",
60
52
  "@testing-library/react": "^16.3.0",
61
53
  "@types/faker": "^4.1.8",
62
54
  "react": "^18.2.0",
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/permissions/index.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/permissions/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/permissions/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/permissions/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/permissions/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/common/utils/permissions/types.js",
5
5
  "module:es2019": "../../dist/es2019/common/utils/permissions/types.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/common/utils/permissions/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/common/utils/permissions/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/common/utils/permissions/types.d.ts"
15
8
  }