@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
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/public-api-client/index.js",
5
5
  "module:es2019": "../dist/es2019/services/public-api-client/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/public-api-client/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/public-api-client/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/public-api-client/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../../dist/esm/services/reporting-lines-client/utils/types.js",
5
5
  "module:es2019": "../../../dist/es2019/services/reporting-lines-client/utils/types.js",
6
6
  "sideEffects": false,
7
- "types": "../../../dist/types/services/reporting-lines-client/utils/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../../dist/types-ts4.5/services/reporting-lines-client/utils/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../../dist/types/services/reporting-lines-client/utils/types.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/sentry/main.js",
5
5
  "module:es2019": "../../dist/es2019/services/sentry/main.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/sentry/main.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/sentry/main.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/sentry/main.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/sentry/index.js",
5
5
  "module:es2019": "../dist/es2019/services/sentry/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/sentry/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/sentry/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/sentry/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/sentry/types.js",
5
5
  "module:es2019": "../../dist/es2019/services/sentry/types.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/sentry/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/sentry/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/sentry/types.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/slack.js",
5
5
  "module:es2019": "../dist/es2019/types/slack.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/slack.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/slack.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/slack.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/sort-teams.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/sort-teams.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/sort-teams.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/sort-teams.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/sort-teams.d.ts"
15
8
  }
package/team/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/team.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/team.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/team.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/team.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/team.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/team-container.js",
5
5
  "module:es2019": "../dist/es2019/types/team-container.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/team-container.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/team-container.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/team-container.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/tenure.js",
5
5
  "module:es2019": "../dist/es2019/types/tenure.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/tenure.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/tenure.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/tenure.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/index.js",
5
5
  "module:es2019": "../dist/es2019/types/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/types/team.js",
5
5
  "module:es2019": "../../dist/es2019/types/team.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/types/team.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/types/team.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/types/team.d.ts"
15
8
  }
package/ufo/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/ufo/index.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/ufo/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/ufo/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/ufo/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/ufo/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/agg-client/utils/mutations/unlink-container-mutation.js",
5
5
  "module:es2019": "../dist/es2019/services/agg-client/utils/mutations/unlink-container-mutation.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/agg-client/utils/mutations/unlink-container-mutation.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/agg-client/utils/mutations/unlink-container-mutation.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/use-query-light/main.js",
5
5
  "module:es2019": "../../dist/es2019/services/use-query-light/main.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/use-query-light/main.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/use-query-light/main.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/use-query-light/main.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/use-query-light/index.js",
5
5
  "module:es2019": "../dist/es2019/services/use-query-light/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/use-query-light/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/use-query-light/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/use-query-light/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/use-query-light/types.js",
5
5
  "module:es2019": "../../dist/es2019/services/use-query-light/types.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/use-query-light/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/use-query-light/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/use-query-light/types.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/hooks/use-teams-client-setup.js",
5
5
  "module:es2019": "../dist/es2019/services/hooks/use-teams-client-setup.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/hooks/use-teams-client-setup.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/hooks/use-teams-client-setup.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/hooks/use-teams-client-setup.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/sentry/utils/use-teams-sentry-client-setup.js",
5
5
  "module:es2019": "../dist/es2019/services/sentry/utils/use-teams-sentry-client-setup.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/sentry/utils/use-teams-sentry-client-setup.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/sentry/utils/use-teams-sentry-client-setup.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/sentry/utils/use-teams-sentry-client-setup.d.ts"
15
8
  }
package/user/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/types/user.js",
5
5
  "module:es2019": "../dist/es2019/types/user.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types/user.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/types/user.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/types/user.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/services/user-info-provider/main.js",
5
5
  "module:es2019": "../../dist/es2019/services/user-info-provider/main.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/services/user-info-provider/main.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/services/user-info-provider/main.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/services/user-info-provider/main.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/services/user-info-provider/index.js",
5
5
  "module:es2019": "../dist/es2019/services/user-info-provider/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/services/user-info-provider/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/services/user-info-provider/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/services/user-info-provider/index.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/common/utils/index.js",
5
5
  "module:es2019": "../dist/es2019/common/utils/index.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/common/utils/index.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/common/utils/index.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/common/utils/index.d.ts"
15
8
  }
@@ -1,4 +0,0 @@
1
- export declare const USER_ARI_PREFIX: "ari:cloud:identity::user/";
2
- export type UserARI = `${typeof USER_ARI_PREFIX}${string}`;
3
- export declare const TEAM_ARI_PREFIX: "ari:cloud:identity::team/";
4
- export type TeamARI = `${typeof TEAM_ARI_PREFIX}${string}`;
@@ -1,7 +0,0 @@
1
- import { type TeamARI, type UserARI } from '../types';
2
- export declare const isUserARI: (ari: string) => ari is UserARI;
3
- export declare const toUserId: (ari: UserARI | string) => string;
4
- export declare const toUserARI: (userId: string) => UserARI;
5
- export declare const isTeamARI: (ari: string) => ari is TeamARI;
6
- export declare const toTeamId: (ari: TeamARI | string) => string;
7
- export declare const toTeamARI: (teamId: string) => TeamARI;
@@ -1,91 +0,0 @@
1
- export declare enum ErrorCategory {
2
- NotFound = "NotFound",
3
- NotPermitted = "NotPermitted",
4
- MalformedInput = "MalformedInput",
5
- Internal = "Internal"
6
- }
7
- export declare enum StatusCode {
8
- UNAUTHORIZED = 401,
9
- FORBIDDEN = 403,
10
- TIMEOUT = 408,
11
- GONE = 410,
12
- PAYLOAD_TOO_LARGE = 413
13
- }
14
- export declare function isAuthError(error?: Error | HttpError): boolean;
15
- export declare function isErrorStatusCode(statusCode: number, error?: Error | HttpError): boolean;
16
- export declare function doesErrorContainStatus(statusCode: number, message: string): boolean;
17
- export type DirectoryErrorCode = 'MISSING_ERROR_MESSAGE';
18
- export declare enum TeamErrorType {
19
- TEAM_NOT_ACTIVE = "Team must be active"
20
- }
21
- export type ErrorObjectType = {
22
- code?: string;
23
- message?: TeamErrorType;
24
- };
25
- export type SingleError = {
26
- status?: number;
27
- error?: string;
28
- };
29
- export type RestJsonErrorResponse = {
30
- errors: (TeamErrorType | ErrorObjectType)[];
31
- timestamp?: string;
32
- } & SingleError;
33
- declare class CommonError extends Error {
34
- message: string;
35
- name: string;
36
- stack: string;
37
- constructor(message?: string);
38
- }
39
- export declare class DefaultError extends CommonError {
40
- constructor({ message }: {
41
- message?: string;
42
- });
43
- }
44
- /**
45
- * These errors will not fail UFO experiences
46
- */
47
- export declare class SLOIgnoreError extends CommonError {
48
- constructor({ message }: {
49
- message?: string;
50
- });
51
- }
52
- interface HttpErrorArguments {
53
- message: string;
54
- status: number;
55
- traceId?: string;
56
- path?: string;
57
- }
58
- export declare class HttpError extends CommonError {
59
- status: number;
60
- traceId?: string;
61
- path?: string;
62
- constructor({ message, status, traceId, path }: HttpErrorArguments);
63
- }
64
- /**
65
- * These errors will not fail UFO experiences
66
- */
67
- export declare class SLOIgnoreHttpError extends HttpError {
68
- constructor(props: HttpErrorArguments);
69
- }
70
- interface ResultErrorData {
71
- category: string;
72
- message: string;
73
- fields?: object;
74
- }
75
- interface FieldError {
76
- message: string;
77
- field: string;
78
- }
79
- export interface ErrorData {
80
- category: string;
81
- message: string;
82
- fields?: FieldError[];
83
- }
84
- export declare class GraphQLError extends CommonError {
85
- fields?: any;
86
- category?: string;
87
- constructor({ message, category, fields }: Partial<ResultErrorData>);
88
- static from: (rawErrors: ErrorData[]) => GraphQLError;
89
- }
90
- export declare function isNetworkError(error: Error): boolean;
91
- export {};
@@ -1,31 +0,0 @@
1
- export declare const EXPONENTIAL_BACKOFF_RETRY_POLICY: {
2
- INITIAL_DELAY: number;
3
- MAX_RETRIES: number;
4
- JITTER: boolean;
5
- };
6
- /**
7
- * Checks whether a status code is a 5xx HTTP code.
8
- * @param {number} status HTTP status code
9
- */
10
- export declare function is5xx(status: number): boolean;
11
- export declare function isFetchResponse(data: unknown): data is {
12
- response: Response;
13
- };
14
- type ToTryFunctionArgs = any[];
15
- type ToTryFunction<T> = (...args: ToTryFunctionArgs) => Promise<T>;
16
- type RetryIfCallback<T> = (a: T) => boolean;
17
- interface WithExponentialBackoffOptions<T> {
18
- initial: number;
19
- jitter?: boolean;
20
- max: number;
21
- retryIf?: RetryIfCallback<T>;
22
- }
23
- /**
24
- * Transparently wrap a function so that it is retried until it succeeds or reaches a max retry limit.
25
- * The returned function has the same signature as the wrapped function.
26
- *
27
- * Modified from https://jsfiddle.net/pajtai/pLka0ow9/
28
- */
29
- export declare function withExponentialBackoff<ResponseType>(toTry: ToTryFunction<ResponseType>, hofOptions?: WithExponentialBackoffOptions<ResponseType>): (...args: ToTryFunctionArgs) => Promise<ResponseType>;
30
- export declare const fetchWithExponentialBackoff: (...args: ToTryFunctionArgs) => Promise<Response>;
31
- export {};
@@ -1,2 +0,0 @@
1
- export { sortMembersByType } from './sort-teams';
2
- export { isInvited, isMember, isNonMember, isRequestingJoin } from './team';
@@ -1,30 +0,0 @@
1
- import { type ExternalReferenceSource, type TeamMembershipSettings, type TeamPermission, type TeamState } from '../../../types/team';
2
- import { type TeamAction } from './types';
3
- export type PermissionMap = Required<Record<TeamAction, boolean>>;
4
- export declare const allPermissions: (defaultPermission: boolean, isMember: boolean, isOrgAdmin: boolean) => PermissionMap;
5
- export declare const vanityActions: TeamAction[];
6
- /**
7
- * This is really just required so we don't show things like "Request to join team" if the team is open
8
- */
9
- export declare const openPermissions: (permission: TeamPermission | undefined) => {
10
- JOIN_TEAM: boolean;
11
- REQUEST_TO_JOIN: boolean;
12
- CANCEL_JOIN_REQUEST: boolean;
13
- APPROVE_JOIN_REQUEST: boolean;
14
- REJECT_JOIN_REQUEST: boolean;
15
- };
16
- /**
17
- * This is really just required so we don't show things like "Join team" if the team is member invite and it should say "Request to join team"
18
- */
19
- export declare const inviteOnlyPermissions: (permission: TeamPermission | undefined) => {
20
- REQUEST_TO_JOIN: boolean;
21
- CANCEL_JOIN_REQUEST: boolean;
22
- };
23
- export declare const SCIMSyncTeamPermissions: (isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource) => {
24
- EDIT_DESCRIPTION: boolean;
25
- EDIT_TEAM_SETTINGS: boolean;
26
- EDIT_TEAM_LINK: boolean;
27
- EDIT_TEAM_NAME: boolean;
28
- CAN_EDIT_HIERARCHY: boolean;
29
- };
30
- export declare const getPermissionMap: (settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource, state?: TeamState) => PermissionMap;
@@ -1,40 +0,0 @@
1
- import { type TeamMembership } from '../../../types/membership';
2
- import { type ExternalReferenceSource, type TeamMembershipSettings, type TeamPermission, type TeamState } from '../../../types/team';
3
- import { type TeamAction, type TeamPermissions } from './types';
4
- /**
5
- * @deprecated use import { userCan } from '@atlassian/teams-app-internal-user-permissions';
6
- */
7
- export declare function hasPermission(action: TeamAction, settings: TeamMembershipSettings, permission: TeamPermission | undefined, isPeopleBrowseEnabled: boolean, currentUserMembership: TeamMembership | undefined, teamVisibilityPermissions?: TeamPermissions, source?: ExternalReferenceSource, state?: TeamState): boolean;
8
- type PermissionOptions = {
9
- /**
10
- * The teams membership settings, "OPEN" | "MEMBER_INVITE" | "EXTERNAL"
11
- */
12
- membershipSettings: TeamMembershipSettings;
13
- /**
14
- * The users permission for the team, "FULL_WRITE" | "FULL_READ" | "NONE"
15
- */
16
- teamPermission: TeamPermission | undefined;
17
- /**
18
- * Is the user a member of the team
19
- */
20
- isMemberOfTeam: boolean;
21
- /**
22
- * Is the user an org admin
23
- */
24
- isOrgAdmin: boolean;
25
- /**
26
- * External source(if any) "ATLASSIAN_GROUP" | "HRIS"
27
- */
28
- source?: ExternalReferenceSource;
29
- state?: TeamState;
30
- };
31
- /**
32
- * Determines if a user has permission perform a given action on a team
33
- * @deprecated use import { userCan } from '@atlassian/teams-app-internal-user-permissions';
34
- */
35
- export declare function userCan(action: TeamAction, options: PermissionOptions): boolean;
36
- /**
37
- * @deprecated Use `userCan` instead, it gives better visibility into the option mappings
38
- */
39
- export declare function hasPermissionForAction(action: TeamAction, settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMemberOfTeam: boolean, isOrgAdmin?: boolean): boolean;
40
- export {};
@@ -1,3 +0,0 @@
1
- export { hasPermission, hasPermissionForAction, userCan } from './has-permission';
2
- export { AllTeamActions } from './types';
3
- export type { TeamAction } from './types';
@@ -1,31 +0,0 @@
1
- export declare const AllTeamActions: readonly [
2
- "ADD_MEMBER_TO_TEAM",
3
- "JOIN_TEAM",
4
- "REQUEST_TO_JOIN",
5
- "CANCEL_JOIN_REQUEST",
6
- "APPROVE_JOIN_REQUEST",
7
- "REJECT_JOIN_REQUEST",
8
- "REMOVE_MEMBER_FROM_TEAM",
9
- "CANCEL_INVITE",
10
- "LEAVE_TEAM",
11
- "REMOVE_AGENT_FROM_TEAM",
12
- "ADD_AGENT_TO_TEAM",
13
- "CAN_EDIT_HIERARCHY",
14
- "CAN_CHANGE_MEMBERSHIP_SETTINGS",
15
- "EDIT_TEAM_NAME",
16
- "EDIT_DESCRIPTION",
17
- "EDIT_PROFILE_HEADER",
18
- "EDIT_TEAM_LINK",
19
- "EDIT_TEAM_SETTINGS",
20
- "EDIT_TEAM_MEMBERSHIP",
21
- "EDIT_TEAM_TYPE",
22
- "DELETE_TEAM",
23
- "ARCHIVE_TEAM",
24
- "UNARCHIVE_TEAM"
25
- ];
26
- export type TeamAction = (typeof AllTeamActions)[number];
27
- export type TeamPermissions = {
28
- canCreateTeams: boolean;
29
- canViewTeams: boolean;
30
- canAdminTeams?: boolean;
31
- };
@@ -1,2 +0,0 @@
1
- import { type TeamMembership } from '../../types';
2
- export declare const sortMembersByType: (members: TeamMembership[], currentAccountId?: string) => TeamMembership[];
@@ -1,17 +0,0 @@
1
- /**
2
- * Our REST clients are initialised when their module loads which makes it tricky for them to consume the `statusCodeHandlers` prop passed to App from the host application.
3
- * This is a temporary measure to enable the clients to consume `statusCodeHandlers`.
4
- * The long term solution is to replace our REST clients with Apollo client custom resolvers
5
- * This will unify all remote data handling under the apollo-client module which is able to easily receive `statusCodeHandlers` as it is initialised within the React portion of our app.
6
- */
7
- type StatusCodeHandler = (response: Response) => void;
8
- export interface StatusCodeHandlerMap {
9
- [statusCode: number]: StatusCodeHandler;
10
- }
11
- export declare const statusCodeHandlersProvider: {
12
- handlers: StatusCodeHandlerMap;
13
- get(): StatusCodeHandlerMap;
14
- setHandlers(handlers: StatusCodeHandlerMap): void;
15
- };
16
- export declare function handleResponse(response: Response): void;
17
- export {};
@@ -1,5 +0,0 @@
1
- import { type TeamMembership } from '../../types';
2
- export declare function isInvited(member?: TeamMembership): member is TeamMembership & boolean;
3
- export declare const isNonMember: (member?: TeamMembership) => boolean;
4
- export declare const isRequestingJoin: (member?: TeamMembership) => boolean;
5
- export declare const isMember: (member?: TeamMembership) => boolean;