@atlaskit/teams-client 4.24.1 → 4.26.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 +19 -0
- package/dist/cjs/common/types.js +2 -3
- package/dist/cjs/common/utils/ari.js +1 -14
- package/dist/cjs/common/utils/permissions/constants.js +3 -2
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/services/legion-client/index.js +46 -47
- package/dist/cjs/services/main.js +13 -13
- package/dist/es2019/common/types.js +1 -2
- package/dist/es2019/common/utils/ari.js +1 -12
- package/dist/es2019/common/utils/permissions/constants.js +3 -2
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/services/legion-client/index.js +3 -4
- package/dist/es2019/services/main.js +2 -2
- package/dist/esm/common/types.js +1 -2
- package/dist/esm/common/utils/ari.js +1 -14
- package/dist/esm/common/utils/permissions/constants.js +3 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/legion-client/index.js +46 -47
- package/dist/esm/services/main.js +13 -13
- package/dist/types/common/types.d.ts +0 -2
- package/dist/types/common/utils/ari.d.ts +1 -6
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/main.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +0 -2
- package/dist/types-ts4.5/common/utils/ari.d.ts +1 -6
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/services/main.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { type TeamARI, type
|
|
1
|
+
import { type TeamARI, type UserARI } from '../types';
|
|
2
2
|
export declare const isUserARI: (ari: string) => ari is UserARI;
|
|
3
3
|
export declare const toUserId: (ari: UserARI | string) => string;
|
|
4
4
|
export declare const toUserARI: (userId: string) => UserARI;
|
|
5
5
|
export declare const isTeamARI: (ari: string) => ari is TeamARI;
|
|
6
6
|
export declare const toTeamId: (ari: TeamARI | string) => string;
|
|
7
7
|
export declare const toTeamARI: (teamId: string) => TeamARI;
|
|
8
|
-
/**
|
|
9
|
-
* TODO: Replace these team type ari utils with @atlassian/ari when it is published
|
|
10
|
-
*/
|
|
11
|
-
export declare const isTeamTypeAri: (ari: string) => ari is TeamTypeAri;
|
|
12
|
-
export declare const toTeamTypeId: (teamTypeAriOrId: TeamTypeAri | string) => string;
|
|
@@ -10,6 +10,6 @@ export { logException, logInfoMessage } from './services/sentry/main';
|
|
|
10
10
|
export type { SentryClient } from './services/sentry/types';
|
|
11
11
|
export { userInfoProvider, UserInfoProvider } from './services/user-info-provider';
|
|
12
12
|
export { sortMembersByType, isInvited, isMember, isNonMember, isRequestingJoin, } from './common/utils';
|
|
13
|
-
export { toUserARI, toUserId, toTeamARI, toTeamId
|
|
13
|
+
export { toUserARI, toUserId, toTeamARI, toTeamId } from './common/utils/ari';
|
|
14
14
|
export { useLazyQueryLight, useQueryLight, UseQueryLightError, type ActualGraphQLError, } from './services/use-query-light';
|
|
15
15
|
export type { FetchMoreArgs, QueryOptions } from './services/use-query-light';
|
|
@@ -108,7 +108,7 @@ export declare class TeamsClient {
|
|
|
108
108
|
* @param teamId
|
|
109
109
|
* @returns {Promise<TeamWithImageUrls>}
|
|
110
110
|
*/
|
|
111
|
-
getTeamById(teamId: string): Promise<AwaitedReturn<typeof defaultLegionClient.getTeamById>>;
|
|
111
|
+
getTeamById(teamId: string, cloudId?: string): Promise<AwaitedReturn<typeof defaultLegionClient.getTeamById>>;
|
|
112
112
|
/**
|
|
113
113
|
* Search teams based on query
|
|
114
114
|
*/
|