@atlaskit/teams-client 4.27.0 → 4.29.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/common/utils/permissions/constants.js +5 -4
  3. package/dist/cjs/common/utils/ufo/index.js +2 -2
  4. package/dist/cjs/services/agg-client/index.js +219 -0
  5. package/dist/cjs/services/agg-client/utils/mutations/unlink-container-mutation.js +12 -0
  6. package/dist/cjs/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +12 -0
  7. package/dist/cjs/services/agg-client/utils/queries/team-connected-to-container-query.js +12 -0
  8. package/dist/cjs/services/agg-client/utils/queries/team-containers-query.js +12 -0
  9. package/dist/cjs/services/legion-client/index.js +3 -1
  10. package/dist/cjs/services/main.js +782 -631
  11. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  12. package/dist/es2019/common/utils/permissions/constants.js +5 -4
  13. package/dist/es2019/common/utils/ufo/index.js +2 -2
  14. package/dist/es2019/services/agg-client/index.js +141 -0
  15. package/dist/es2019/services/agg-client/utils/mutations/unlink-container-mutation.js +20 -0
  16. package/dist/es2019/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +14 -0
  17. package/dist/es2019/services/agg-client/utils/queries/team-connected-to-container-query.js +55 -0
  18. package/dist/es2019/services/agg-client/utils/queries/team-containers-query.js +53 -0
  19. package/dist/es2019/services/legion-client/index.js +3 -1
  20. package/dist/es2019/services/main.js +55 -0
  21. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  22. package/dist/esm/common/utils/permissions/constants.js +5 -4
  23. package/dist/esm/common/utils/ufo/index.js +2 -2
  24. package/dist/esm/services/agg-client/index.js +221 -0
  25. package/dist/esm/services/agg-client/utils/mutations/unlink-container-mutation.js +5 -0
  26. package/dist/esm/services/agg-client/utils/queries/number-of-team-connected-to-container-query.js +5 -0
  27. package/dist/esm/services/agg-client/utils/queries/team-connected-to-container-query.js +5 -0
  28. package/dist/esm/services/agg-client/utils/queries/team-containers-query.js +5 -0
  29. package/dist/esm/services/legion-client/index.js +3 -1
  30. package/dist/esm/services/main.js +782 -631
  31. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  32. package/dist/types/common/utils/permissions/constants.d.ts +1 -0
  33. package/dist/types/services/agg-client/index.d.ts +23 -1
  34. package/dist/types/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +18 -0
  35. package/dist/types/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +11 -0
  36. package/dist/types/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +47 -0
  37. package/dist/types/services/agg-client/utils/queries/team-containers-query.d.ts +52 -0
  38. package/dist/types/services/legion-client/index.d.ts +2 -0
  39. package/dist/types/services/main.d.ts +39 -2
  40. package/dist/types/types/index.d.ts +1 -1
  41. package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +1 -0
  42. package/dist/types-ts4.5/services/agg-client/index.d.ts +23 -1
  43. package/dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +18 -0
  44. package/dist/types-ts4.5/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +11 -0
  45. package/dist/types-ts4.5/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +47 -0
  46. package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +52 -0
  47. package/dist/types-ts4.5/services/legion-client/index.d.ts +2 -0
  48. package/dist/types-ts4.5/services/main.d.ts +39 -2
  49. package/dist/types-ts4.5/types/index.d.ts +1 -1
  50. package/package.json +2 -2
@@ -29,7 +29,7 @@ export function getSentryConfig(options) {
29
29
  return _objectSpread(_objectSpread(_objectSpread({}, otherOptions), DEFAULT_SENTRY_CONFIG), {}, {
30
30
  // Standalone __VERSION__ is set from `bin/set-release-version.sh`
31
31
  // when building to deploy to production
32
- release: "".concat("@atlaskit/teams-client", "@").concat("0.0.0-development") ||
32
+ release: "".concat("@atlaskit/teams-client", "@").concat("4.28.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) || '---',
@@ -19,5 +19,6 @@ export declare const SCIMSyncTeamPermissions: (isMember: boolean, isOrgAdmin: bo
19
19
  EDIT_TEAM_SETTINGS: boolean;
20
20
  EDIT_TEAM_LINK: boolean;
21
21
  EDIT_TEAM_NAME: boolean;
22
+ CAN_EDIT_HIERARCHY: boolean;
22
23
  };
23
24
  export declare const getPermissionMap: (settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource, state?: TeamState) => PermissionMap;
@@ -1,8 +1,24 @@
1
- import { type MembershipState, type TeamAgentAssociation, type TeamMembership } from '../../types';
1
+ import { type MembershipState, type TeamAgentAssociation, type TeamMembership, type TeamWithMemberships } from '../../types';
2
2
  import { type ClientConfig } from '../base-client';
3
3
  import { BaseGraphQlClient } from '../graphql-client';
4
4
  import { type AGGPageInfoVariables, type ResultWithPageInfo } from './types';
5
+ import { type UnlinkContainerMutationResponse } from './utils/mutations/unlink-container-mutation';
5
6
  import { type TeamsUserQueryResponse } from './utils/queries/user-query';
7
+ type ContainerTypes = 'ConfluenceSpace' | 'JiraProject' | 'LoomSpace' | 'WebLink';
8
+ type ContainerSubTypes = string;
9
+ type TeamContainer = {
10
+ id: string;
11
+ type: ContainerTypes;
12
+ name: string;
13
+ icon?: string | null;
14
+ createdDate?: Date;
15
+ link?: string | null;
16
+ containerTypeProperties?: {
17
+ subType?: ContainerSubTypes;
18
+ name?: string;
19
+ };
20
+ };
21
+ export type TeamContainers = Array<TeamContainer>;
6
22
  export declare class AGGClient extends BaseGraphQlClient {
7
23
  constructor(baseUrl: string, config: ClientConfig);
8
24
  setBaseUrl(baseUrl: string): void;
@@ -10,5 +26,11 @@ export declare class AGGClient extends BaseGraphQlClient {
10
26
  queryAGGUser(userId: string): Promise<TeamsUserQueryResponse>;
11
27
  queryTeamHasAgents(teamId: string): Promise<TeamAgentAssociation[]>;
12
28
  private processTeamHasAgentsResponse;
29
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
30
+ private processV2Response;
31
+ unlinkTeamContainer(teamId: string, containerId: string): Promise<UnlinkContainerMutationResponse>;
32
+ queryNumberOfTeamConnectedToContainer(containerId: string): Promise<number>;
33
+ queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
13
34
  }
14
35
  export declare const aggClient: AGGClient;
36
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare const UnlinkContainerMutation: string;
2
+ export interface UnlinkContainerMutationError extends Error {
3
+ message: string;
4
+ extensions?: {
5
+ statusCode: string;
6
+ errorType: string;
7
+ };
8
+ }
9
+ export type UnlinkContainerMutationVariables = {
10
+ teamId: string;
11
+ containerId: string;
12
+ };
13
+ export type UnlinkContainerMutationResponse = {
14
+ deleteTeamConnectedToContainer: {
15
+ errors: Array<UnlinkContainerMutationError>;
16
+ success: boolean;
17
+ };
18
+ };
@@ -0,0 +1,11 @@
1
+ export declare const NumberOfTeamConnectedToContainerQuery: string;
2
+ export type NumberOfTeamConnectedToContainerQueryVariables = {
3
+ containerId: string;
4
+ };
5
+ export type NumberOfTeamConnectedToContainerQueryResponse = {
6
+ teamConnectedToContainerInverse: {
7
+ edges: {
8
+ id: string;
9
+ }[];
10
+ };
11
+ };
@@ -0,0 +1,47 @@
1
+ import type { UserARI } from '../../../../common/types';
2
+ import type { MembershipRole, MembershipState } from '../../../../types/membership';
3
+ import type { TeamMembershipSettings, TeamState } from '../../../../types/team';
4
+ import type { AGGPageInfo } from '../../types';
5
+ export declare const TeamConnectedToContainerQuery: string;
6
+ export type TeamConnectedToContainerQueryVariables = {
7
+ containerId: string;
8
+ };
9
+ export type TeamConnectedToContainerQueryResponse = {
10
+ teamConnectedToContainerInverse: {
11
+ edges: {
12
+ node: {
13
+ id: string;
14
+ description: string;
15
+ displayName: string;
16
+ creator: {
17
+ id: string;
18
+ };
19
+ smallAvatarImageUrl: string;
20
+ smallHeaderImageUrl: string;
21
+ largeAvatarImageUrl: string;
22
+ largeHeaderImageUrl: string;
23
+ members?: {
24
+ nodes: {
25
+ role: MembershipRole;
26
+ state: MembershipState;
27
+ member?: {
28
+ name: string;
29
+ picture: string;
30
+ id: UserARI;
31
+ accountStatus: 'active' | 'inactive' | 'closed';
32
+ extendedProfile: {
33
+ jobTitle: string | null;
34
+ } | null;
35
+ appType?: string | null;
36
+ };
37
+ }[];
38
+ pageInfo: AGGPageInfo;
39
+ };
40
+ organizationId?: string;
41
+ membershipSettings: TeamMembershipSettings;
42
+ isVerified?: boolean;
43
+ state: TeamState;
44
+ };
45
+ }[];
46
+ };
47
+ };
@@ -0,0 +1,52 @@
1
+ export declare const TeamContainersQueryV2: string;
2
+ export type TeamContainersQueryV2Variables = {
3
+ cypherQuery: string;
4
+ params: Record<string, any>;
5
+ };
6
+ export type TeamContainersQueryV2Response = {
7
+ cypherQueryV2: {
8
+ edges: Array<{
9
+ node: {
10
+ columns: Array<{
11
+ key: string;
12
+ value: {
13
+ data?: JiraProject | ConfluenceSpace | LoomSpace;
14
+ };
15
+ }>;
16
+ };
17
+ }>;
18
+ };
19
+ };
20
+ type JiraProject = {
21
+ __typename: 'JiraProject';
22
+ id: string;
23
+ jiraProjectName: string;
24
+ webUrl: string;
25
+ created: string;
26
+ avatar: {
27
+ medium: string;
28
+ };
29
+ projectType: string;
30
+ projectTypeName: string;
31
+ };
32
+ type ConfluenceSpace = {
33
+ __typename: 'ConfluenceSpace';
34
+ id: string;
35
+ confluenceSpaceName?: string;
36
+ type: string;
37
+ createdDate: string;
38
+ links: {
39
+ base: string;
40
+ webUi: string;
41
+ };
42
+ icon: {
43
+ path: string;
44
+ };
45
+ };
46
+ type LoomSpace = {
47
+ __typename: 'LoomSpace';
48
+ id: string;
49
+ loomSpaceName: string;
50
+ url: string;
51
+ };
52
+ export {};
@@ -29,6 +29,7 @@ export interface SortField {
29
29
  * @property {string[]} memberAccountIds - List of member account IDs to filter teams
30
30
  * @property {boolean} useDefaultSort - Whether to use the default sort order
31
31
  * @property {boolean} showEmptyTeams - Whether to return empty teams in the search
32
+ * @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
32
33
  */
33
34
  export interface AllTeamsQuery {
34
35
  /**
@@ -43,6 +44,7 @@ export interface AllTeamsQuery {
43
44
  useDefaultSort?: boolean;
44
45
  showEmptyTeams?: boolean;
45
46
  sortBy?: SortField[];
47
+ teamTypeIdsFilter?: string[];
46
48
  }
47
49
  /**
48
50
  * @type AllTeamsResponse
@@ -1,5 +1,5 @@
1
- import { type MembershipState, type TeamMembership, type TeamWithImageUrls } from '../types';
2
- import { aggClient } from './agg-client';
1
+ import { type MembershipState, type TeamMembership, type TeamWithImageUrls, type TeamWithMemberships } from '../types';
2
+ import { aggClient, type TeamContainers } from './agg-client';
3
3
  import { type AGGPageInfoVariables, type ResultWithPageInfo } from './agg-client/types';
4
4
  import collaborationGraphClient from './collaborationgraph-client';
5
5
  import { directoryClient } from './directory-client';
@@ -96,6 +96,43 @@ export declare class TeamsClient {
96
96
  * @returns {Promise}
97
97
  */
98
98
  queryTeamHasAgents(teamId: string): Promise<AwaitedReturn<typeof aggClient.queryTeamHasAgents>>;
99
+ /**
100
+ * Get containers associated with the team
101
+ * @param {string} teamId
102
+ * @returns {Promise<TeamContainers>}
103
+ */
104
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
105
+ /**
106
+ * Unlink a container from a team
107
+ * @param {string} teamId
108
+ * @param {string} containerId
109
+ * @returns {Promise}
110
+ */
111
+ unlinkTeamContainer(teamId: string, containerId: string): Promise<AwaitedReturn<typeof aggClient.unlinkTeamContainer>>;
112
+ /**
113
+ * Get the number of teams connected to a container
114
+ * @param {string} containerId
115
+ * @returns {Promise<number>}
116
+ */
117
+ queryNumberOfTeamConnectedToContainer(containerId: string): Promise<AwaitedReturn<typeof aggClient.queryNumberOfTeamConnectedToContainer>>;
118
+ /**
119
+ * Get the number of teams connected to a container (Confluence space or Jira project)
120
+ * @param {string} containerId
121
+ * @returns {Promise<number>}
122
+ */
123
+ getNumberOfConnectedTeams(containerId: string): Promise<number>;
124
+ /**
125
+ * Get teams connected to a container
126
+ * @param {string} containerId
127
+ * @returns {Promise<TeamWithMemberships[]>}
128
+ */
129
+ queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
130
+ /**
131
+ * Get teams connected to a container (Confluence space or Jira project)
132
+ * @param {string} containerId
133
+ * @returns {Promise<TeamWithMemberships[]>}
134
+ */
135
+ getConnectedTeams(containerId: string): Promise<TeamWithMemberships[]>;
99
136
  /**
100
137
  * Get user information of a member of a team
101
138
  * @param {string} userId
@@ -1,4 +1,4 @@
1
- export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, } from './team';
1
+ export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
2
2
  export type { TeamsClientUser as User, EditableUserFields } from './user';
3
3
  export { isEditableUserField } from './user';
4
4
  export type { InvitedUser, TeamMembership, TeamAgentMembership, TeamWithMemberships, MembershipState, MembershipRole, } from './membership';
@@ -19,5 +19,6 @@ export declare const SCIMSyncTeamPermissions: (isMember: boolean, isOrgAdmin: bo
19
19
  EDIT_TEAM_SETTINGS: boolean;
20
20
  EDIT_TEAM_LINK: boolean;
21
21
  EDIT_TEAM_NAME: boolean;
22
+ CAN_EDIT_HIERARCHY: boolean;
22
23
  };
23
24
  export declare const getPermissionMap: (settings: TeamMembershipSettings, permission: TeamPermission | undefined, isMember: boolean, isOrgAdmin: boolean, source?: ExternalReferenceSource, state?: TeamState) => PermissionMap;
@@ -1,8 +1,24 @@
1
- import { type MembershipState, type TeamAgentAssociation, type TeamMembership } from '../../types';
1
+ import { type MembershipState, type TeamAgentAssociation, type TeamMembership, type TeamWithMemberships } from '../../types';
2
2
  import { type ClientConfig } from '../base-client';
3
3
  import { BaseGraphQlClient } from '../graphql-client';
4
4
  import { type AGGPageInfoVariables, type ResultWithPageInfo } from './types';
5
+ import { type UnlinkContainerMutationResponse } from './utils/mutations/unlink-container-mutation';
5
6
  import { type TeamsUserQueryResponse } from './utils/queries/user-query';
7
+ type ContainerTypes = 'ConfluenceSpace' | 'JiraProject' | 'LoomSpace' | 'WebLink';
8
+ type ContainerSubTypes = string;
9
+ type TeamContainer = {
10
+ id: string;
11
+ type: ContainerTypes;
12
+ name: string;
13
+ icon?: string | null;
14
+ createdDate?: Date;
15
+ link?: string | null;
16
+ containerTypeProperties?: {
17
+ subType?: ContainerSubTypes;
18
+ name?: string;
19
+ };
20
+ };
21
+ export type TeamContainers = Array<TeamContainer>;
6
22
  export declare class AGGClient extends BaseGraphQlClient {
7
23
  constructor(baseUrl: string, config: ClientConfig);
8
24
  setBaseUrl(baseUrl: string): void;
@@ -10,5 +26,11 @@ export declare class AGGClient extends BaseGraphQlClient {
10
26
  queryAGGUser(userId: string): Promise<TeamsUserQueryResponse>;
11
27
  queryTeamHasAgents(teamId: string): Promise<TeamAgentAssociation[]>;
12
28
  private processTeamHasAgentsResponse;
29
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
30
+ private processV2Response;
31
+ unlinkTeamContainer(teamId: string, containerId: string): Promise<UnlinkContainerMutationResponse>;
32
+ queryNumberOfTeamConnectedToContainer(containerId: string): Promise<number>;
33
+ queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
13
34
  }
14
35
  export declare const aggClient: AGGClient;
36
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare const UnlinkContainerMutation: string;
2
+ export interface UnlinkContainerMutationError extends Error {
3
+ message: string;
4
+ extensions?: {
5
+ statusCode: string;
6
+ errorType: string;
7
+ };
8
+ }
9
+ export type UnlinkContainerMutationVariables = {
10
+ teamId: string;
11
+ containerId: string;
12
+ };
13
+ export type UnlinkContainerMutationResponse = {
14
+ deleteTeamConnectedToContainer: {
15
+ errors: Array<UnlinkContainerMutationError>;
16
+ success: boolean;
17
+ };
18
+ };
@@ -0,0 +1,11 @@
1
+ export declare const NumberOfTeamConnectedToContainerQuery: string;
2
+ export type NumberOfTeamConnectedToContainerQueryVariables = {
3
+ containerId: string;
4
+ };
5
+ export type NumberOfTeamConnectedToContainerQueryResponse = {
6
+ teamConnectedToContainerInverse: {
7
+ edges: {
8
+ id: string;
9
+ }[];
10
+ };
11
+ };
@@ -0,0 +1,47 @@
1
+ import type { UserARI } from '../../../../common/types';
2
+ import type { MembershipRole, MembershipState } from '../../../../types/membership';
3
+ import type { TeamMembershipSettings, TeamState } from '../../../../types/team';
4
+ import type { AGGPageInfo } from '../../types';
5
+ export declare const TeamConnectedToContainerQuery: string;
6
+ export type TeamConnectedToContainerQueryVariables = {
7
+ containerId: string;
8
+ };
9
+ export type TeamConnectedToContainerQueryResponse = {
10
+ teamConnectedToContainerInverse: {
11
+ edges: {
12
+ node: {
13
+ id: string;
14
+ description: string;
15
+ displayName: string;
16
+ creator: {
17
+ id: string;
18
+ };
19
+ smallAvatarImageUrl: string;
20
+ smallHeaderImageUrl: string;
21
+ largeAvatarImageUrl: string;
22
+ largeHeaderImageUrl: string;
23
+ members?: {
24
+ nodes: {
25
+ role: MembershipRole;
26
+ state: MembershipState;
27
+ member?: {
28
+ name: string;
29
+ picture: string;
30
+ id: UserARI;
31
+ accountStatus: 'active' | 'inactive' | 'closed';
32
+ extendedProfile: {
33
+ jobTitle: string | null;
34
+ } | null;
35
+ appType?: string | null;
36
+ };
37
+ }[];
38
+ pageInfo: AGGPageInfo;
39
+ };
40
+ organizationId?: string;
41
+ membershipSettings: TeamMembershipSettings;
42
+ isVerified?: boolean;
43
+ state: TeamState;
44
+ };
45
+ }[];
46
+ };
47
+ };
@@ -0,0 +1,52 @@
1
+ export declare const TeamContainersQueryV2: string;
2
+ export type TeamContainersQueryV2Variables = {
3
+ cypherQuery: string;
4
+ params: Record<string, any>;
5
+ };
6
+ export type TeamContainersQueryV2Response = {
7
+ cypherQueryV2: {
8
+ edges: Array<{
9
+ node: {
10
+ columns: Array<{
11
+ key: string;
12
+ value: {
13
+ data?: JiraProject | ConfluenceSpace | LoomSpace;
14
+ };
15
+ }>;
16
+ };
17
+ }>;
18
+ };
19
+ };
20
+ type JiraProject = {
21
+ __typename: 'JiraProject';
22
+ id: string;
23
+ jiraProjectName: string;
24
+ webUrl: string;
25
+ created: string;
26
+ avatar: {
27
+ medium: string;
28
+ };
29
+ projectType: string;
30
+ projectTypeName: string;
31
+ };
32
+ type ConfluenceSpace = {
33
+ __typename: 'ConfluenceSpace';
34
+ id: string;
35
+ confluenceSpaceName?: string;
36
+ type: string;
37
+ createdDate: string;
38
+ links: {
39
+ base: string;
40
+ webUi: string;
41
+ };
42
+ icon: {
43
+ path: string;
44
+ };
45
+ };
46
+ type LoomSpace = {
47
+ __typename: 'LoomSpace';
48
+ id: string;
49
+ loomSpaceName: string;
50
+ url: string;
51
+ };
52
+ export {};
@@ -29,6 +29,7 @@ export interface SortField {
29
29
  * @property {string[]} memberAccountIds - List of member account IDs to filter teams
30
30
  * @property {boolean} useDefaultSort - Whether to use the default sort order
31
31
  * @property {boolean} showEmptyTeams - Whether to return empty teams in the search
32
+ * @property {string[]} teamTypeIdsFilter - List of team type IDs to filter teams
32
33
  */
33
34
  export interface AllTeamsQuery {
34
35
  /**
@@ -43,6 +44,7 @@ export interface AllTeamsQuery {
43
44
  useDefaultSort?: boolean;
44
45
  showEmptyTeams?: boolean;
45
46
  sortBy?: SortField[];
47
+ teamTypeIdsFilter?: string[];
46
48
  }
47
49
  /**
48
50
  * @type AllTeamsResponse
@@ -1,5 +1,5 @@
1
- import { type MembershipState, type TeamMembership, type TeamWithImageUrls } from '../types';
2
- import { aggClient } from './agg-client';
1
+ import { type MembershipState, type TeamMembership, type TeamWithImageUrls, type TeamWithMemberships } from '../types';
2
+ import { aggClient, type TeamContainers } from './agg-client';
3
3
  import { type AGGPageInfoVariables, type ResultWithPageInfo } from './agg-client/types';
4
4
  import collaborationGraphClient from './collaborationgraph-client';
5
5
  import { directoryClient } from './directory-client';
@@ -96,6 +96,43 @@ export declare class TeamsClient {
96
96
  * @returns {Promise}
97
97
  */
98
98
  queryTeamHasAgents(teamId: string): Promise<AwaitedReturn<typeof aggClient.queryTeamHasAgents>>;
99
+ /**
100
+ * Get containers associated with the team
101
+ * @param {string} teamId
102
+ * @returns {Promise<TeamContainers>}
103
+ */
104
+ getTeamContainers(teamId: string): Promise<TeamContainers>;
105
+ /**
106
+ * Unlink a container from a team
107
+ * @param {string} teamId
108
+ * @param {string} containerId
109
+ * @returns {Promise}
110
+ */
111
+ unlinkTeamContainer(teamId: string, containerId: string): Promise<AwaitedReturn<typeof aggClient.unlinkTeamContainer>>;
112
+ /**
113
+ * Get the number of teams connected to a container
114
+ * @param {string} containerId
115
+ * @returns {Promise<number>}
116
+ */
117
+ queryNumberOfTeamConnectedToContainer(containerId: string): Promise<AwaitedReturn<typeof aggClient.queryNumberOfTeamConnectedToContainer>>;
118
+ /**
119
+ * Get the number of teams connected to a container (Confluence space or Jira project)
120
+ * @param {string} containerId
121
+ * @returns {Promise<number>}
122
+ */
123
+ getNumberOfConnectedTeams(containerId: string): Promise<number>;
124
+ /**
125
+ * Get teams connected to a container
126
+ * @param {string} containerId
127
+ * @returns {Promise<TeamWithMemberships[]>}
128
+ */
129
+ queryTeamsConnectedToContainer(containerId: string): Promise<TeamWithMemberships[]>;
130
+ /**
131
+ * Get teams connected to a container (Confluence space or Jira project)
132
+ * @param {string} containerId
133
+ * @returns {Promise<TeamWithMemberships[]>}
134
+ */
135
+ getConnectedTeams(containerId: string): Promise<TeamWithMemberships[]>;
99
136
  /**
100
137
  * Get user information of a member of a team
101
138
  * @param {string} userId
@@ -1,4 +1,4 @@
1
- export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, } from './team';
1
+ export type { TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
2
2
  export type { TeamsClientUser as User, EditableUserFields } from './user';
3
3
  export { isEditableUserField } from './user';
4
4
  export type { InvitedUser, TeamMembership, TeamAgentMembership, TeamWithMemberships, MembershipState, MembershipRole, } from './membership';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.27.0",
3
+ "version": "4.29.0",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,7 +10,7 @@
10
10
  "atlassian": {
11
11
  "team": "People and Teams Collective"
12
12
  },
13
- "repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
13
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
14
14
  "main": "dist/cjs/index.js",
15
15
  "module": "dist/esm/index.js",
16
16
  "module:es2019": "dist/es2019/index.js",