@atlaskit/teams-client 4.5.0 → 4.5.2
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 +14 -0
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/cjs/types/team-container.js +1 -8
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/types/team-container.js +0 -7
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/types/team-container.js +0 -7
- package/dist/types/services/legion-client/types.d.ts +2 -2
- package/dist/types/services/object-resolver-client/index.d.ts +1 -1
- package/dist/types/types/team-container.d.ts +9 -18
- package/dist/types-ts4.5/services/legion-client/types.d.ts +2 -2
- package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +1 -1
- package/dist/types-ts4.5/types/team-container.d.ts +9 -18
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/teams-client
|
|
2
2
|
|
|
3
|
+
## 4.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#177738](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177738)
|
|
8
|
+
[`b53656178cdff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b53656178cdff) -
|
|
9
|
+
Update legion response for container creation to match changes in BE
|
|
10
|
+
|
|
11
|
+
## 4.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.5.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -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.5.
|
|
55
|
+
packageVersion: "4.5.1",
|
|
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.5.
|
|
63
|
+
packageVersion: "4.5.1",
|
|
64
64
|
packageName: "@atlaskit/teams-client"
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
@@ -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.5.
|
|
39
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.5.1") ||
|
|
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) || '---',
|
|
@@ -3,17 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ContainerType =
|
|
6
|
+
exports.ContainerType = void 0;
|
|
7
7
|
var ContainerType = exports.ContainerType = /*#__PURE__*/function (ContainerType) {
|
|
8
8
|
ContainerType["CONFLUENCE_SPACE"] = "CONFLUENCE_SPACE";
|
|
9
9
|
ContainerType["JIRA_PROJECT"] = "JIRA_PROJECT";
|
|
10
10
|
ContainerType["LOOM_SPACE"] = "LOOM_SPACE";
|
|
11
11
|
return ContainerType;
|
|
12
|
-
}({});
|
|
13
|
-
var ConfluenceTemplate = exports.ConfluenceTemplate = /*#__PURE__*/function (ConfluenceTemplate) {
|
|
14
|
-
ConfluenceTemplate[ConfluenceTemplate["COLLABORATION"] = 0] = "COLLABORATION";
|
|
15
|
-
ConfluenceTemplate[ConfluenceTemplate["KNOWLEDGE_BASE"] = 1] = "KNOWLEDGE_BASE";
|
|
16
|
-
ConfluenceTemplate[ConfluenceTemplate["CUSTOM"] = 2] = "CUSTOM";
|
|
17
|
-
ConfluenceTemplate[ConfluenceTemplate["DEFAULT"] = 3] = "DEFAULT";
|
|
18
|
-
return ConfluenceTemplate;
|
|
19
12
|
}({});
|
|
@@ -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.5.
|
|
30
|
+
packageVersion: "4.5.1",
|
|
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.5.
|
|
38
|
+
packageVersion: "4.5.1",
|
|
39
39
|
packageName: "@atlaskit/teams-client"
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -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.5.
|
|
31
|
+
release: `${"@atlaskit/teams-client"}@${"4.5.1"}` ||
|
|
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) || '---',
|
|
@@ -3,11 +3,4 @@ export let ContainerType = /*#__PURE__*/function (ContainerType) {
|
|
|
3
3
|
ContainerType["JIRA_PROJECT"] = "JIRA_PROJECT";
|
|
4
4
|
ContainerType["LOOM_SPACE"] = "LOOM_SPACE";
|
|
5
5
|
return ContainerType;
|
|
6
|
-
}({});
|
|
7
|
-
export let ConfluenceTemplate = /*#__PURE__*/function (ConfluenceTemplate) {
|
|
8
|
-
ConfluenceTemplate[ConfluenceTemplate["COLLABORATION"] = 0] = "COLLABORATION";
|
|
9
|
-
ConfluenceTemplate[ConfluenceTemplate["KNOWLEDGE_BASE"] = 1] = "KNOWLEDGE_BASE";
|
|
10
|
-
ConfluenceTemplate[ConfluenceTemplate["CUSTOM"] = 2] = "CUSTOM";
|
|
11
|
-
ConfluenceTemplate[ConfluenceTemplate["DEFAULT"] = 3] = "DEFAULT";
|
|
12
|
-
return ConfluenceTemplate;
|
|
13
6
|
}({});
|
|
@@ -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.5.
|
|
48
|
+
packageVersion: "4.5.1",
|
|
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.5.
|
|
56
|
+
packageVersion: "4.5.1",
|
|
57
57
|
packageName: "@atlaskit/teams-client"
|
|
58
58
|
}
|
|
59
59
|
}]);
|
|
@@ -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.5.
|
|
32
|
+
release: "".concat("@atlaskit/teams-client", "@").concat("4.5.1") ||
|
|
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) || '---',
|
|
@@ -3,11 +3,4 @@ export var ContainerType = /*#__PURE__*/function (ContainerType) {
|
|
|
3
3
|
ContainerType["JIRA_PROJECT"] = "JIRA_PROJECT";
|
|
4
4
|
ContainerType["LOOM_SPACE"] = "LOOM_SPACE";
|
|
5
5
|
return ContainerType;
|
|
6
|
-
}({});
|
|
7
|
-
export var ConfluenceTemplate = /*#__PURE__*/function (ConfluenceTemplate) {
|
|
8
|
-
ConfluenceTemplate[ConfluenceTemplate["COLLABORATION"] = 0] = "COLLABORATION";
|
|
9
|
-
ConfluenceTemplate[ConfluenceTemplate["KNOWLEDGE_BASE"] = 1] = "KNOWLEDGE_BASE";
|
|
10
|
-
ConfluenceTemplate[ConfluenceTemplate["CUSTOM"] = 2] = "CUSTOM";
|
|
11
|
-
ConfluenceTemplate[ConfluenceTemplate["DEFAULT"] = 3] = "DEFAULT";
|
|
12
|
-
return ConfluenceTemplate;
|
|
13
6
|
}({});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExternalReference,
|
|
1
|
+
import type { TeamMembership } from '../../types/membership';
|
|
2
|
+
import type { ExternalReference, ScopeMode, TeamDiscoverability, TeamMembershipSettings, TeamPermission, TeamRestriction, TeamState } from '../../types/team';
|
|
3
3
|
export interface LegionTeamImagesResponse {
|
|
4
4
|
smallHeaderImageUrl: string;
|
|
5
5
|
largeHeaderImageUrl: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RestClient } from '../rest-client';
|
|
2
|
-
import {
|
|
2
|
+
import type { LinkIconData } from './types';
|
|
3
3
|
export declare class ObjectResolverClient extends RestClient {
|
|
4
4
|
constructor(config?: {});
|
|
5
5
|
getTeamLinkIcons(teamLinkUrls: string[]): Promise<LinkIconData[]>;
|
|
@@ -3,36 +3,27 @@ export declare enum ContainerType {
|
|
|
3
3
|
JIRA_PROJECT = "JIRA_PROJECT",
|
|
4
4
|
LOOM_SPACE = "LOOM_SPACE"
|
|
5
5
|
}
|
|
6
|
-
export declare enum ConfluenceTemplate {
|
|
7
|
-
COLLABORATION = 0,
|
|
8
|
-
KNOWLEDGE_BASE = 1,
|
|
9
|
-
CUSTOM = 2,
|
|
10
|
-
DEFAULT = 3
|
|
11
|
-
}
|
|
12
|
-
export interface Template {
|
|
13
|
-
templateName: string;
|
|
14
|
-
}
|
|
15
6
|
export interface Container {
|
|
16
7
|
type: ContainerType;
|
|
17
|
-
containerSiteId: string
|
|
8
|
+
containerSiteId: string;
|
|
18
9
|
}
|
|
19
|
-
export interface
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
export interface ContainerNotCreatedDetails {
|
|
11
|
+
containerType: ContainerType;
|
|
12
|
+
reason: string;
|
|
22
13
|
}
|
|
23
14
|
export interface ApiTeamContainerCreationPayload {
|
|
24
15
|
teamId: string;
|
|
25
16
|
containers: Container[];
|
|
26
17
|
}
|
|
27
|
-
export interface
|
|
18
|
+
export interface ContainerCreatedDetails {
|
|
28
19
|
containerId: string;
|
|
29
|
-
containerType: ContainerType;
|
|
30
20
|
containerName: string;
|
|
31
|
-
containerUrl: string;
|
|
32
21
|
containerSiteId: string;
|
|
22
|
+
containerType: ContainerType;
|
|
23
|
+
containerUrl: string;
|
|
33
24
|
}
|
|
34
25
|
export interface ApiTeamContainerResponse {
|
|
35
26
|
teamId: string;
|
|
36
|
-
containersNotCreated:
|
|
37
|
-
|
|
27
|
+
containersNotCreated: ContainerNotCreatedDetails[];
|
|
28
|
+
containersCreated: ContainerCreatedDetails[];
|
|
38
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExternalReference,
|
|
1
|
+
import type { TeamMembership } from '../../types/membership';
|
|
2
|
+
import type { ExternalReference, ScopeMode, TeamDiscoverability, TeamMembershipSettings, TeamPermission, TeamRestriction, TeamState } from '../../types/team';
|
|
3
3
|
export interface LegionTeamImagesResponse {
|
|
4
4
|
smallHeaderImageUrl: string;
|
|
5
5
|
largeHeaderImageUrl: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RestClient } from '../rest-client';
|
|
2
|
-
import {
|
|
2
|
+
import type { LinkIconData } from './types';
|
|
3
3
|
export declare class ObjectResolverClient extends RestClient {
|
|
4
4
|
constructor(config?: {});
|
|
5
5
|
getTeamLinkIcons(teamLinkUrls: string[]): Promise<LinkIconData[]>;
|
|
@@ -3,36 +3,27 @@ export declare enum ContainerType {
|
|
|
3
3
|
JIRA_PROJECT = "JIRA_PROJECT",
|
|
4
4
|
LOOM_SPACE = "LOOM_SPACE"
|
|
5
5
|
}
|
|
6
|
-
export declare enum ConfluenceTemplate {
|
|
7
|
-
COLLABORATION = 0,
|
|
8
|
-
KNOWLEDGE_BASE = 1,
|
|
9
|
-
CUSTOM = 2,
|
|
10
|
-
DEFAULT = 3
|
|
11
|
-
}
|
|
12
|
-
export interface Template {
|
|
13
|
-
templateName: string;
|
|
14
|
-
}
|
|
15
6
|
export interface Container {
|
|
16
7
|
type: ContainerType;
|
|
17
|
-
containerSiteId: string
|
|
8
|
+
containerSiteId: string;
|
|
18
9
|
}
|
|
19
|
-
export interface
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
export interface ContainerNotCreatedDetails {
|
|
11
|
+
containerType: ContainerType;
|
|
12
|
+
reason: string;
|
|
22
13
|
}
|
|
23
14
|
export interface ApiTeamContainerCreationPayload {
|
|
24
15
|
teamId: string;
|
|
25
16
|
containers: Container[];
|
|
26
17
|
}
|
|
27
|
-
export interface
|
|
18
|
+
export interface ContainerCreatedDetails {
|
|
28
19
|
containerId: string;
|
|
29
|
-
containerType: ContainerType;
|
|
30
20
|
containerName: string;
|
|
31
|
-
containerUrl: string;
|
|
32
21
|
containerSiteId: string;
|
|
22
|
+
containerType: ContainerType;
|
|
23
|
+
containerUrl: string;
|
|
33
24
|
}
|
|
34
25
|
export interface ApiTeamContainerResponse {
|
|
35
26
|
teamId: string;
|
|
36
|
-
containersNotCreated:
|
|
37
|
-
|
|
27
|
+
containersNotCreated: ContainerNotCreatedDetails[];
|
|
28
|
+
containersCreated: ContainerCreatedDetails[];
|
|
38
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,11 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"generate:types:public-api": "yarn swagger-typescript-api -p ./src/services/public-api-client/swagger.json -o ./src/services/public-api-client/generated/ --modular --no-client --union-enums",
|
|
43
|
-
"generate:docs:teams-client": "ts-node --project ../../../tsconfig.node.json ./scripts/generate-docs.ts && yarn ../../.. prettier --write packages/people-and-teams/teams-client/docs"
|
|
43
|
+
"generate:docs:teams-client": "ts-node --project ../../../tsconfig.node.json ./scripts/generate-docs.ts && yarn ../../.. prettier --write packages/people-and-teams/teams-client/docs",
|
|
44
|
+
"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\"]')"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@atlaskit/atlassian-context": "^0.
|
|
47
|
-
"@atlaskit/feature-gate-js-client": "^5.
|
|
47
|
+
"@atlaskit/atlassian-context": "^0.3.0",
|
|
48
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
48
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
50
|
"@atlaskit/ufo": "^0.4.0",
|
|
50
51
|
"@babel/runtime": "^7.0.0",
|