@atlaskit/teams-public 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/teams-public
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#158256](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/158256)
8
+ [`a2388f933a091`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a2388f933a091) -
9
+ Add loom space support to team containers
10
+
3
11
  ## 0.30.0
4
12
 
5
13
  ### Minor Changes
@@ -54,20 +54,44 @@ var AGGClient = exports.AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
54
54
  });
55
55
  case 4:
56
56
  response = _context.sent;
57
- containersResult = response.graphStore.cypherQuery.edges.map(function (edge) {
58
- return {
59
- id: edge.node.to.id,
60
- type: edge.node.to.data.__typename,
61
- name: edge.node.to.data.__typename === 'ConfluenceSpace' ? edge.node.to.data.confluenceSpaceName || '' : edge.node.to.data.jiraProjectName,
62
- icon: edge.node.to.data.__typename === 'ConfluenceSpace' ? "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.icon.path) : edge.node.to.data.avatar.medium,
63
- createdDate: edge.node.to.data.__typename === 'ConfluenceSpace' ? new Date(edge.node.to.data.createdDate) : new Date(edge.node.to.data.created),
64
- link: edge.node.to.data.__typename === 'ConfluenceSpace' ? "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.links.webUi) : edge.node.to.data.webUrl,
65
- containerTypeProperties: {
66
- subType: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectType || '' : undefined,
67
- name: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectTypeName || '' : undefined
68
- }
69
- };
70
- });
57
+ containersResult = response.graphStore.cypherQuery.edges.reduce(function (containers, edge) {
58
+ if (edge.node.to.data.__typename === 'ConfluenceSpace') {
59
+ containers.push({
60
+ id: edge.node.to.id,
61
+ type: edge.node.to.data.__typename,
62
+ name: edge.node.to.data.confluenceSpaceName || '',
63
+ icon: "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.icon.path),
64
+ createdDate: new Date(edge.node.to.data.createdDate),
65
+ link: "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.links.webUi),
66
+ containerTypeProperties: {
67
+ subType: undefined,
68
+ name: undefined
69
+ }
70
+ });
71
+ } else if (edge.node.to.data.__typename === 'JiraProject') {
72
+ containers.push({
73
+ id: edge.node.to.id,
74
+ type: edge.node.to.data.__typename,
75
+ name: edge.node.to.data.jiraProjectName,
76
+ icon: edge.node.to.data.avatar.medium,
77
+ createdDate: new Date(edge.node.to.data.created),
78
+ link: edge.node.to.data.webUrl,
79
+ containerTypeProperties: {
80
+ subType: edge.node.to.data.projectType || '',
81
+ name: edge.node.to.data.projectTypeName || ''
82
+ }
83
+ });
84
+ } else if (edge.node.to.data.__typename === 'LoomSpace') {
85
+ containers.push({
86
+ id: edge.node.to.id,
87
+ type: edge.node.to.data.__typename,
88
+ name: edge.node.to.data.loomSpaceName,
89
+ icon: '',
90
+ link: edge.node.to.data.url
91
+ });
92
+ }
93
+ return containers;
94
+ }, []);
71
95
  return _context.abrupt("return", containersResult);
72
96
  case 7:
73
97
  case "end":
@@ -9,4 +9,4 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _graphql = require("graphql");
10
10
  var _graphqlTag = _interopRequireDefault(require("graphql-tag"));
11
11
  var _templateObject;
12
- var TeamContainersQuery = exports.TeamContainersQuery = (0, _graphql.print)((0, _graphqlTag.default)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tquery TeamContainersQuery($cypherQuery: String!) {\n\t\tgraphStore @optIn(to: [\"GraphStore\"]) {\n\t\t\tcypherQuery(query: $cypherQuery) @optIn(to: [\"GraphStoreCypherQuery\"]) {\n\t\t\t\tedges {\n\t\t\t\t\t__typename\n\t\t\t\t\tnode {\n\t\t\t\t\t\tfrom {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t\tto {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t\t__typename\n\t\t\t\t\t\t\t\t... on ConfluenceSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tconfluenceSpaceName: name\n\t\t\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t\t\t\tcreatedDate\n\t\t\t\t\t\t\t\t\tlinks {\n\t\t\t\t\t\t\t\t\t\tbase\n\t\t\t\t\t\t\t\t\t\twebUi\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ticon {\n\t\t\t\t\t\t\t\t\t\tpath\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on JiraProject {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tjiraProjectName: name\n\t\t\t\t\t\t\t\t\twebUrl\n\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\tavatar {\n\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tprojectType\n\t\t\t\t\t\t\t\t\tprojectTypeName\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
12
+ var TeamContainersQuery = exports.TeamContainersQuery = (0, _graphql.print)((0, _graphqlTag.default)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tquery TeamContainersQuery($cypherQuery: String!) {\n\t\tgraphStore @optIn(to: [\"GraphStore\"]) {\n\t\t\tcypherQuery(query: $cypherQuery) @optIn(to: [\"GraphStoreCypherQuery\"]) {\n\t\t\t\tedges {\n\t\t\t\t\t__typename\n\t\t\t\t\tnode {\n\t\t\t\t\t\tfrom {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t\tto {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t\t__typename\n\t\t\t\t\t\t\t\t... on ConfluenceSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tconfluenceSpaceName: name\n\t\t\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t\t\t\tcreatedDate\n\t\t\t\t\t\t\t\t\tlinks {\n\t\t\t\t\t\t\t\t\t\tbase\n\t\t\t\t\t\t\t\t\t\twebUi\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ticon {\n\t\t\t\t\t\t\t\t\t\tpath\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on JiraProject {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tjiraProjectName: name\n\t\t\t\t\t\t\t\t\twebUrl\n\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\tavatar {\n\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tprojectType\n\t\t\t\t\t\t\t\t\tprojectTypeName\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on LoomSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tloomSpaceName: name\n\t\t\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
@@ -89,7 +89,7 @@ var DisconnectDialog = exports.DisconnectDialog = function DisconnectDialog(_ref
89
89
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, messages.disconnectDialogDescription, {
90
90
  values: {
91
91
  containerName: /*#__PURE__*/_react.default.createElement("b", null, containerName),
92
- containerType: description
92
+ containerType: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, description, " ", containerTypeText)
93
93
  }
94
94
  }))), /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, messages.disconnectDialogDisclaimer, {
95
95
  values: {
@@ -24,18 +24,44 @@ export class AGGClient extends BaseGraphQlClient {
24
24
  }, {
25
25
  operationName: 'TeamContainersQuery'
26
26
  });
27
- const containersResult = response.graphStore.cypherQuery.edges.map(edge => ({
28
- id: edge.node.to.id,
29
- type: edge.node.to.data.__typename,
30
- name: edge.node.to.data.__typename === 'ConfluenceSpace' ? edge.node.to.data.confluenceSpaceName || '' : edge.node.to.data.jiraProjectName,
31
- icon: edge.node.to.data.__typename === 'ConfluenceSpace' ? `${edge.node.to.data.links.base}${edge.node.to.data.icon.path}` : edge.node.to.data.avatar.medium,
32
- createdDate: edge.node.to.data.__typename === 'ConfluenceSpace' ? new Date(edge.node.to.data.createdDate) : new Date(edge.node.to.data.created),
33
- link: edge.node.to.data.__typename === 'ConfluenceSpace' ? `${edge.node.to.data.links.base}${edge.node.to.data.links.webUi}` : edge.node.to.data.webUrl,
34
- containerTypeProperties: {
35
- subType: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectType || '' : undefined,
36
- name: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectTypeName || '' : undefined
27
+ const containersResult = response.graphStore.cypherQuery.edges.reduce((containers, edge) => {
28
+ if (edge.node.to.data.__typename === 'ConfluenceSpace') {
29
+ containers.push({
30
+ id: edge.node.to.id,
31
+ type: edge.node.to.data.__typename,
32
+ name: edge.node.to.data.confluenceSpaceName || '',
33
+ icon: `${edge.node.to.data.links.base}${edge.node.to.data.icon.path}`,
34
+ createdDate: new Date(edge.node.to.data.createdDate),
35
+ link: `${edge.node.to.data.links.base}${edge.node.to.data.links.webUi}`,
36
+ containerTypeProperties: {
37
+ subType: undefined,
38
+ name: undefined
39
+ }
40
+ });
41
+ } else if (edge.node.to.data.__typename === 'JiraProject') {
42
+ containers.push({
43
+ id: edge.node.to.id,
44
+ type: edge.node.to.data.__typename,
45
+ name: edge.node.to.data.jiraProjectName,
46
+ icon: edge.node.to.data.avatar.medium,
47
+ createdDate: new Date(edge.node.to.data.created),
48
+ link: edge.node.to.data.webUrl,
49
+ containerTypeProperties: {
50
+ subType: edge.node.to.data.projectType || '',
51
+ name: edge.node.to.data.projectTypeName || ''
52
+ }
53
+ });
54
+ } else if (edge.node.to.data.__typename === 'LoomSpace') {
55
+ containers.push({
56
+ id: edge.node.to.id,
57
+ type: edge.node.to.data.__typename,
58
+ name: edge.node.to.data.loomSpaceName,
59
+ icon: '',
60
+ link: edge.node.to.data.url
61
+ });
37
62
  }
38
- }));
63
+ return containers;
64
+ }, []);
39
65
  return containersResult;
40
66
  }
41
67
  async unlinkTeamContainer(teamId, containerId) {
@@ -38,6 +38,11 @@ export const TeamContainersQuery = print(gql`
38
38
  projectType
39
39
  projectTypeName
40
40
  }
41
+ ... on LoomSpace {
42
+ id
43
+ loomSpaceName: name
44
+ url
45
+ }
41
46
  }
42
47
  }
43
48
  }
@@ -60,7 +60,7 @@ export const DisconnectDialog = ({
60
60
  }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDescription, {
61
61
  values: {
62
62
  containerName: /*#__PURE__*/React.createElement("b", null, containerName),
63
- containerType: description
63
+ containerType: /*#__PURE__*/React.createElement(React.Fragment, null, description, " ", containerTypeText)
64
64
  }
65
65
  }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDisclaimer, {
66
66
  values: {
@@ -47,20 +47,44 @@ export var AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
47
47
  });
48
48
  case 4:
49
49
  response = _context.sent;
50
- containersResult = response.graphStore.cypherQuery.edges.map(function (edge) {
51
- return {
52
- id: edge.node.to.id,
53
- type: edge.node.to.data.__typename,
54
- name: edge.node.to.data.__typename === 'ConfluenceSpace' ? edge.node.to.data.confluenceSpaceName || '' : edge.node.to.data.jiraProjectName,
55
- icon: edge.node.to.data.__typename === 'ConfluenceSpace' ? "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.icon.path) : edge.node.to.data.avatar.medium,
56
- createdDate: edge.node.to.data.__typename === 'ConfluenceSpace' ? new Date(edge.node.to.data.createdDate) : new Date(edge.node.to.data.created),
57
- link: edge.node.to.data.__typename === 'ConfluenceSpace' ? "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.links.webUi) : edge.node.to.data.webUrl,
58
- containerTypeProperties: {
59
- subType: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectType || '' : undefined,
60
- name: edge.node.to.data.__typename === 'JiraProject' ? edge.node.to.data.projectTypeName || '' : undefined
61
- }
62
- };
63
- });
50
+ containersResult = response.graphStore.cypherQuery.edges.reduce(function (containers, edge) {
51
+ if (edge.node.to.data.__typename === 'ConfluenceSpace') {
52
+ containers.push({
53
+ id: edge.node.to.id,
54
+ type: edge.node.to.data.__typename,
55
+ name: edge.node.to.data.confluenceSpaceName || '',
56
+ icon: "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.icon.path),
57
+ createdDate: new Date(edge.node.to.data.createdDate),
58
+ link: "".concat(edge.node.to.data.links.base).concat(edge.node.to.data.links.webUi),
59
+ containerTypeProperties: {
60
+ subType: undefined,
61
+ name: undefined
62
+ }
63
+ });
64
+ } else if (edge.node.to.data.__typename === 'JiraProject') {
65
+ containers.push({
66
+ id: edge.node.to.id,
67
+ type: edge.node.to.data.__typename,
68
+ name: edge.node.to.data.jiraProjectName,
69
+ icon: edge.node.to.data.avatar.medium,
70
+ createdDate: new Date(edge.node.to.data.created),
71
+ link: edge.node.to.data.webUrl,
72
+ containerTypeProperties: {
73
+ subType: edge.node.to.data.projectType || '',
74
+ name: edge.node.to.data.projectTypeName || ''
75
+ }
76
+ });
77
+ } else if (edge.node.to.data.__typename === 'LoomSpace') {
78
+ containers.push({
79
+ id: edge.node.to.id,
80
+ type: edge.node.to.data.__typename,
81
+ name: edge.node.to.data.loomSpaceName,
82
+ icon: '',
83
+ link: edge.node.to.data.url
84
+ });
85
+ }
86
+ return containers;
87
+ }, []);
64
88
  return _context.abrupt("return", containersResult);
65
89
  case 7:
66
90
  case "end":
@@ -2,4 +2,4 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { print } from 'graphql';
4
4
  import gql from 'graphql-tag';
5
- export var TeamContainersQuery = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tquery TeamContainersQuery($cypherQuery: String!) {\n\t\tgraphStore @optIn(to: [\"GraphStore\"]) {\n\t\t\tcypherQuery(query: $cypherQuery) @optIn(to: [\"GraphStoreCypherQuery\"]) {\n\t\t\t\tedges {\n\t\t\t\t\t__typename\n\t\t\t\t\tnode {\n\t\t\t\t\t\tfrom {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t\tto {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t\t__typename\n\t\t\t\t\t\t\t\t... on ConfluenceSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tconfluenceSpaceName: name\n\t\t\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t\t\t\tcreatedDate\n\t\t\t\t\t\t\t\t\tlinks {\n\t\t\t\t\t\t\t\t\t\tbase\n\t\t\t\t\t\t\t\t\t\twebUi\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ticon {\n\t\t\t\t\t\t\t\t\t\tpath\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on JiraProject {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tjiraProjectName: name\n\t\t\t\t\t\t\t\t\twebUrl\n\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\tavatar {\n\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tprojectType\n\t\t\t\t\t\t\t\t\tprojectTypeName\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
5
+ export var TeamContainersQuery = print(gql(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tquery TeamContainersQuery($cypherQuery: String!) {\n\t\tgraphStore @optIn(to: [\"GraphStore\"]) {\n\t\t\tcypherQuery(query: $cypherQuery) @optIn(to: [\"GraphStoreCypherQuery\"]) {\n\t\t\t\tedges {\n\t\t\t\t\t__typename\n\t\t\t\t\tnode {\n\t\t\t\t\t\tfrom {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t}\n\t\t\t\t\t\tto {\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t\t__typename\n\t\t\t\t\t\t\t\t... on ConfluenceSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tconfluenceSpaceName: name\n\t\t\t\t\t\t\t\t\ttype\n\t\t\t\t\t\t\t\t\tcreatedDate\n\t\t\t\t\t\t\t\t\tlinks {\n\t\t\t\t\t\t\t\t\t\tbase\n\t\t\t\t\t\t\t\t\t\twebUi\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ticon {\n\t\t\t\t\t\t\t\t\t\tpath\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on JiraProject {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tjiraProjectName: name\n\t\t\t\t\t\t\t\t\twebUrl\n\t\t\t\t\t\t\t\t\tcreated\n\t\t\t\t\t\t\t\t\tavatar {\n\t\t\t\t\t\t\t\t\t\tmedium\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tprojectType\n\t\t\t\t\t\t\t\t\tprojectTypeName\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t... on LoomSpace {\n\t\t\t\t\t\t\t\t\tid\n\t\t\t\t\t\t\t\t\tloomSpaceName: name\n\t\t\t\t\t\t\t\t\turl\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"]))));
@@ -79,7 +79,7 @@ export var DisconnectDialog = function DisconnectDialog(_ref) {
79
79
  }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDescription, {
80
80
  values: {
81
81
  containerName: /*#__PURE__*/React.createElement("b", null, containerName),
82
- containerType: description
82
+ containerType: /*#__PURE__*/React.createElement(React.Fragment, null, description, " ", containerTypeText)
83
83
  }
84
84
  }))), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.disconnectDialogDisclaimer, {
85
85
  values: {
@@ -1,22 +1,11 @@
1
1
  import { type ClientConfig } from '../base-client';
2
2
  import { BaseGraphQlClient } from '../graphql-client';
3
- import type { TeamWithMemberships } from '../types';
3
+ import type { TeamContainers, TeamWithMemberships } from '../types';
4
4
  import { type UnlinkContainerMutationResponse } from './utils/mutations/unlink-container-mutation';
5
5
  export declare class AGGClient extends BaseGraphQlClient {
6
6
  constructor(baseUrl: string, config: ClientConfig);
7
7
  setBaseUrl(baseUrl: string): void;
8
- getTeamContainers(teamId: string): Promise<{
9
- id: string;
10
- type: "ConfluenceSpace" | "JiraProject";
11
- name: string;
12
- icon: string;
13
- createdDate: Date;
14
- link: string;
15
- containerTypeProperties: {
16
- subType: string | undefined;
17
- name: string | undefined;
18
- };
19
- }[]>;
8
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
20
9
  unlinkTeamContainer(teamId: string, containerId: string): Promise<UnlinkContainerMutationResponse>;
21
10
  queryNumberOfTeamConnectedToContainer(containerId: string): Promise<number>;
22
11
  queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
@@ -11,7 +11,7 @@ export type TeamContainersQueryResponse = {
11
11
  };
12
12
  to: {
13
13
  id: string;
14
- data: JiraProject | ConfluenceSpace;
14
+ data: JiraProject | ConfluenceSpace | LoomSpace;
15
15
  };
16
16
  };
17
17
  }>;
@@ -43,4 +43,10 @@ type ConfluenceSpace = {
43
43
  path: string;
44
44
  };
45
45
  };
46
+ type LoomSpace = {
47
+ __typename: 'LoomSpace';
48
+ id: string;
49
+ loomSpaceName: string;
50
+ url: string;
51
+ };
46
52
  export {};
@@ -1,22 +1,11 @@
1
1
  import { type ClientConfig } from '../base-client';
2
2
  import { BaseGraphQlClient } from '../graphql-client';
3
- import type { TeamWithMemberships } from '../types';
3
+ import type { TeamContainers, TeamWithMemberships } from '../types';
4
4
  import { type UnlinkContainerMutationResponse } from './utils/mutations/unlink-container-mutation';
5
5
  export declare class AGGClient extends BaseGraphQlClient {
6
6
  constructor(baseUrl: string, config: ClientConfig);
7
7
  setBaseUrl(baseUrl: string): void;
8
- getTeamContainers(teamId: string): Promise<{
9
- id: string;
10
- type: "ConfluenceSpace" | "JiraProject";
11
- name: string;
12
- icon: string;
13
- createdDate: Date;
14
- link: string;
15
- containerTypeProperties: {
16
- subType: string | undefined;
17
- name: string | undefined;
18
- };
19
- }[]>;
8
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
20
9
  unlinkTeamContainer(teamId: string, containerId: string): Promise<UnlinkContainerMutationResponse>;
21
10
  queryNumberOfTeamConnectedToContainer(containerId: string): Promise<number>;
22
11
  queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
@@ -11,7 +11,7 @@ export type TeamContainersQueryResponse = {
11
11
  };
12
12
  to: {
13
13
  id: string;
14
- data: JiraProject | ConfluenceSpace;
14
+ data: JiraProject | ConfluenceSpace | LoomSpace;
15
15
  };
16
16
  };
17
17
  }>;
@@ -43,4 +43,10 @@ type ConfluenceSpace = {
43
43
  path: string;
44
44
  };
45
45
  };
46
+ type LoomSpace = {
47
+ __typename: 'LoomSpace';
48
+ id: string;
49
+ loomSpaceName: string;
50
+ url: string;
51
+ };
46
52
  export {};
package/package.json CHANGED
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "name": "@atlaskit/teams-public",
114
- "version": "0.30.0",
114
+ "version": "0.31.0",
115
115
  "description": "Public components related to teams",
116
116
  "author": "Atlassian Pty Ltd",
117
117
  "license": "Apache-2.0",