@atlaskit/teams-client 4.30.2 → 4.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 +13 -0
- package/dist/cjs/common/utils/ufo/index.js +2 -2
- package/dist/cjs/services/collaborationgraph-client/index.js +3 -2
- package/dist/cjs/services/identity-client/utils.js +1 -1
- package/dist/cjs/services/invitations-client/index.js +3 -2
- package/dist/cjs/services/mutability-client/index.js +2 -1
- package/dist/cjs/services/object-resolver-client/index.js +2 -1
- package/dist/cjs/services/perms-client/index.js +3 -2
- package/dist/cjs/services/public-api-client/index.js +2 -1
- package/dist/cjs/services/replines-client/index.js +2 -1
- package/dist/cjs/services/reporting-lines-client/index.js +3 -2
- package/dist/cjs/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.js +2 -1
- package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/cjs/services/team-central-client/index.js +3 -2
- package/dist/cjs/services/teams-in-slack-client/index.js +2 -1
- package/dist/cjs/services/user-preferences-client/index.js +3 -2
- package/dist/cjs/types/user.js +1 -1
- package/dist/es2019/common/utils/ufo/index.js +2 -2
- package/dist/es2019/services/collaborationgraph-client/index.js +3 -2
- package/dist/es2019/services/identity-client/utils.js +1 -1
- package/dist/es2019/services/invitations-client/index.js +3 -2
- package/dist/es2019/services/mutability-client/index.js +2 -1
- package/dist/es2019/services/object-resolver-client/index.js +2 -1
- package/dist/es2019/services/perms-client/index.js +3 -2
- package/dist/es2019/services/public-api-client/index.js +2 -1
- package/dist/es2019/services/replines-client/index.js +2 -1
- package/dist/es2019/services/reporting-lines-client/index.js +3 -2
- package/dist/es2019/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.js +3 -2
- package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/es2019/services/team-central-client/index.js +3 -2
- package/dist/es2019/services/teams-in-slack-client/index.js +2 -1
- package/dist/es2019/services/user-preferences-client/index.js +3 -2
- package/dist/es2019/types/user.js +1 -1
- package/dist/esm/common/utils/ufo/index.js +2 -2
- package/dist/esm/services/collaborationgraph-client/index.js +3 -2
- package/dist/esm/services/identity-client/utils.js +1 -1
- package/dist/esm/services/invitations-client/index.js +3 -2
- package/dist/esm/services/mutability-client/index.js +2 -1
- package/dist/esm/services/object-resolver-client/index.js +2 -1
- package/dist/esm/services/perms-client/index.js +3 -2
- package/dist/esm/services/public-api-client/index.js +2 -1
- package/dist/esm/services/replines-client/index.js +2 -1
- package/dist/esm/services/reporting-lines-client/index.js +3 -2
- package/dist/esm/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.js +2 -1
- package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
- package/dist/esm/services/team-central-client/index.js +3 -2
- package/dist/esm/services/teams-in-slack-client/index.js +2 -1
- package/dist/esm/services/user-preferences-client/index.js +3 -2
- package/dist/esm/types/user.js +1 -1
- package/dist/types/common/utils/ufo/constants.d.ts +1 -1
- package/dist/types/mocks/with-faker.d.ts +5 -4
- package/dist/types/services/collaborationgraph-client/index.d.ts +2 -2
- package/dist/types/services/identity-client/utils.d.ts +4 -0
- package/dist/types/services/invitations-client/index.d.ts +2 -2
- package/dist/types/services/mutability-client/index.d.ts +2 -2
- package/dist/types/services/object-resolver-client/index.d.ts +2 -2
- package/dist/types/services/perms-client/index.d.ts +2 -2
- package/dist/types/services/public-api-client/index.d.ts +2 -2
- package/dist/types/services/replines-client/index.d.ts +2 -2
- package/dist/types/services/reporting-lines-client/index.d.ts +2 -2
- package/dist/types/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.d.ts +2 -2
- package/dist/types/services/sentry/constants.d.ts +1 -1
- package/dist/types/services/sentry/main.d.ts +2 -2
- package/dist/types/services/sentry/utils/use-teams-sentry-client-setup.d.ts +2 -1
- package/dist/types/services/team-central-client/index.d.ts +2 -2
- package/dist/types/services/teams-in-slack-client/index.d.ts +2 -2
- package/dist/types/services/user-preferences-client/index.d.ts +2 -2
- package/dist/types/types/user.d.ts +3 -1
- package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +1 -1
- package/dist/types-ts4.5/mocks/with-faker.d.ts +5 -4
- package/dist/types-ts4.5/services/collaborationgraph-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/identity-client/utils.d.ts +4 -0
- package/dist/types-ts4.5/services/invitations-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/mutability-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/perms-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/public-api-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/replines-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/reporting-lines-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.d.ts +2 -2
- package/dist/types-ts4.5/services/sentry/constants.d.ts +1 -1
- package/dist/types-ts4.5/services/sentry/main.d.ts +2 -2
- package/dist/types-ts4.5/services/sentry/utils/use-teams-sentry-client-setup.d.ts +2 -1
- package/dist/types-ts4.5/services/team-central-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/teams-in-slack-client/index.d.ts +2 -2
- package/dist/types-ts4.5/services/user-preferences-client/index.d.ts +2 -2
- package/dist/types-ts4.5/types/user.d.ts +5 -1
- package/package.json +2 -2
- package/scripts/utils.ts +2 -2
- package/dist/cjs/common/utils/filter-null.js +0 -9
- package/dist/cjs/services/agg-client/utils/query-context-headers.js +0 -18
- package/dist/cjs/types/reporting-lines.js +0 -1
- package/dist/es2019/common/utils/filter-null.js +0 -3
- package/dist/es2019/services/agg-client/utils/query-context-headers.js +0 -12
- package/dist/es2019/types/reporting-lines.js +0 -0
- package/dist/esm/common/utils/filter-null.js +0 -3
- package/dist/esm/services/agg-client/utils/query-context-headers.js +0 -12
- package/dist/esm/types/reporting-lines.js +0 -0
- package/dist/types/common/utils/filter-null.d.ts +0 -1
- package/dist/types/services/agg-client/utils/query-context-headers.d.ts +0 -5
- package/dist/types/types/reporting-lines.d.ts +0 -1
- package/dist/types-ts4.5/common/utils/filter-null.d.ts +0 -1
- package/dist/types-ts4.5/services/agg-client/utils/query-context-headers.d.ts +0 -5
- package/dist/types-ts4.5/types/reporting-lines.d.ts +0 -1
|
@@ -4,5 +4,5 @@ export declare class MutabilityClient extends RestClient {
|
|
|
4
4
|
constructor(config?: {});
|
|
5
5
|
getProfileWithMutability(userId: string): Promise<MutabilityConstraint[]>;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
7
|
+
declare const _default_1: MutabilityClient;
|
|
8
|
+
export default _default_1;
|
|
@@ -6,5 +6,5 @@ export declare class ObjectResolverClient extends RestClient {
|
|
|
6
6
|
getAriFromUrl(url: string): Promise<string | undefined>;
|
|
7
7
|
getWebLinkTitle(webLinkUrl: string): Promise<string | undefined>;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const _default_1: ObjectResolverClient;
|
|
10
|
+
export default _default_1;
|
|
@@ -37,5 +37,5 @@ export declare class PublicApiClient extends RestClient implements PublicApiClie
|
|
|
37
37
|
getTeamMembers(teamId: string, first?: number, after?: string): Promise<PublicApiTeamResponseWithMembers>;
|
|
38
38
|
restoreTeam(teamId: string): Promise<void>;
|
|
39
39
|
}
|
|
40
|
-
declare const
|
|
41
|
-
export default
|
|
40
|
+
declare const _default_1: PublicApiClient;
|
|
41
|
+
export default _default_1;
|
|
@@ -7,5 +7,5 @@ export declare class ReportingLinesClient extends BaseGraphQlClient {
|
|
|
7
7
|
reportingLines: ReportingLines;
|
|
8
8
|
}>;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const _default_1: ReportingLinesClient;
|
|
11
|
+
export default _default_1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const _default_1: string;
|
|
2
|
+
export default _default_1;
|
|
@@ -2,4 +2,4 @@ export declare const SENTRY_PUBLIC_KEY = "1dc056d49dfe4df8961dc1b810e4620d";
|
|
|
2
2
|
export declare const SENTRY_PROJECT_ID = "5988845";
|
|
3
3
|
export declare const SENTRY_FEDRAMP_PUBLIC_KEY = "067abcc494be9a87b3cdf9416f2b97d5";
|
|
4
4
|
export declare const SENTRY_FEDRAMP_PROJECT_ID = "47";
|
|
5
|
-
export declare const SENTRY_DSN:
|
|
5
|
+
export declare const SENTRY_DSN: 'https://1dc056d49dfe4df8961dc1b810e4620d@o55978.ingest.sentry.io/5988845' | 'https://067abcc494be9a87b3cdf9416f2b97d5@sentry.atlassian-us-gov-mod.com/47';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Breadcrumb } from '@sentry/browser';
|
|
2
|
-
import { type CreateErrorHandler, type SentryTags } from './types';
|
|
2
|
+
import { type CreateErrorHandler, type ErrorHandler, type SentryTags } from './types';
|
|
3
3
|
type Context = any & {
|
|
4
4
|
/**
|
|
5
5
|
* Any tags to be added to the event.
|
|
@@ -27,6 +27,6 @@ export declare const logInfoMessageWithPackageContext: (packageContext: {
|
|
|
27
27
|
export declare const createErrorHandlerWithPackageContext: (packageContext: {
|
|
28
28
|
packageName: string;
|
|
29
29
|
packageVersion: string;
|
|
30
|
-
}) => (...args: Parameters<typeof createErrorHandler>) =>
|
|
30
|
+
}) => (...args: Parameters<typeof createErrorHandler>) => ErrorHandler;
|
|
31
31
|
export declare function addBreadcrumb(crumb: string | Breadcrumb): Promise<void>;
|
|
32
32
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { SentryClient } from '../types';
|
|
1
2
|
import { type SentryClientConfig } from './sentry-client';
|
|
2
|
-
export declare const useTeamsSentryClientSetup: (isSentryEnabled: boolean, config: SentryClientConfig) =>
|
|
3
|
+
export declare const useTeamsSentryClientSetup: (isSentryEnabled: boolean, config: SentryClientConfig) => SentryClient | undefined;
|
|
@@ -22,5 +22,5 @@ export declare class TeamCentralClient extends BaseGraphQlClient {
|
|
|
22
22
|
updateHelpPointer(variables: HelpPointerUpdateMutationVariables): Promise<HelpPointerUpdateMutationResponse>;
|
|
23
23
|
deleteHelpPointer(variables: HelpPointerDeleteMutationVariables): Promise<HelpPointerDeleteMutationResponse>;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
26
|
-
export default
|
|
25
|
+
declare const _default_1: TeamCentralClient;
|
|
26
|
+
export default _default_1;
|
|
@@ -5,5 +5,5 @@ export declare class UserPreferencesClient extends RestClient {
|
|
|
5
5
|
getWriteMediaToken(): Promise<ReadMediaTokenResponse>;
|
|
6
6
|
updateUserHeaderImage(headerImageId: string | null): Promise<any>;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const _default_1: UserPreferencesClient;
|
|
9
|
+
export default _default_1;
|
|
@@ -31,11 +31,13 @@ export interface TeamsClientUser {
|
|
|
31
31
|
phoneNumber?: string;
|
|
32
32
|
userType?: UserType;
|
|
33
33
|
isAgent?: boolean;
|
|
34
|
+
aboutMe?: string;
|
|
35
|
+
pronouns?: string;
|
|
34
36
|
}
|
|
35
37
|
export interface UserInSiteUserbase {
|
|
36
38
|
isPresent: boolean;
|
|
37
39
|
}
|
|
38
|
-
declare const EditableUserFieldList: readonly ["title", "department", "companyName", "location", "phoneNumber", "fullName", "nickname", "locale", "email"];
|
|
40
|
+
declare const EditableUserFieldList: readonly ["title", "department", "companyName", "location", "phoneNumber", "fullName", "nickname", "locale", "email", "aboutMe", "pronouns"];
|
|
39
41
|
export type EditableUserFields = Pick<TeamsClientUser, (typeof EditableUserFieldList)[number]>;
|
|
40
42
|
export declare const isEditableUserField: (key: string) => key is keyof EditableUserFields;
|
|
41
43
|
export {};
|
|
@@ -78,5 +78,5 @@ declare const TeamsClientExperienceKeyList: readonly [
|
|
|
78
78
|
"getReportingLines"
|
|
79
79
|
];
|
|
80
80
|
export type TeamsClientExperienceKeys = (typeof TeamsClientExperienceKeyList)[number];
|
|
81
|
-
export declare const TEAMS_CLIENT_EXPERIENCES: Map<
|
|
81
|
+
export declare const TEAMS_CLIENT_EXPERIENCES: Map<'getAllTeams' | 'getTeamById' | 'updateTeamById' | 'querySettings' | 'queryFeatureFlags' | 'queryTeamMemberships' | 'queryUser' | 'inviteUsersToTeam' | 'getMyTeamMembership' | 'getTeamLinksByTeamId' | 'createTeamLink' | 'updateTeamLink' | 'deleteTeamLink' | 'reorderTeamLink' | 'acceptTeamInvitation' | 'declineTeamInvitation' | 'selfJoinTeam' | 'cancelJoinRequest' | 'acceptJoinRequest' | 'declineJoinRequest' | 'deleteTeamMembership' | 'revokeTeamInvite' | 'deleteTeam' | 'archiveTeam' | 'unarchiveTeam' | 'unlinkTeamFromGroup' | 'isSingleFullMemberTeam' | 'createTeam' | 'createTeamContainers' | 'createExternalTeam' | 'getProfileWithMutability' | 'getIsSiteAdmin' | 'addUsersToTeam' | 'removeTeamMemberships' | 'getRecommendedProducts' | 'joinOrRequestDefaultAccessToProductsBulk' | 'getReadMediaToken' | 'getWriteUserMediaToken' | 'updateUserHeaderImage' | 'getWriteTeamMediaToken' | 'getSoftDeletedTeamById' | 'restoreTeam' | 'getUserInSiteUserBase' | 'getLinkedTeamsBulk' | 'getTeamProfileDetails' | 'getUserContainers' | 'getRecommendedUsers' | 'getPermissions' | 'getUserManageConfig' | 'getMyAvatarUploadedStatus' | 'deleteUserAvatar' | 'getTeamLinkIcons' | 'getTeamInSlack' | 'getOrgScope' | 'restoreTeamToSyncedGroup' | 'getTeamAndGroupDiff' | 'linkExistingTeamToGroup' | 'fetchUserAvatarInfo' | 'getOrgEligibilityForManagedTeams' | 'updateUser' | 'updateUserAvatar' | 'disconnectTeamInSlack' | 'updateTeamInSlack' | 'getUserTenure' | 'getAriFromUrl' | 'getWebLinkTitle' | 'addAgentToTeam' | 'getTeamEnabledSites' | 'assignTeamsToSites' | 'removeAgentTeamAssociation' | 'getAssignedTeams' | 'setTeamSiteAssignmentPermission' | 'getUnassignedTeams' | 'getTeamSiteAssignmentOrgDetails' | 'getTeamsToBeClonedToJsmSites' | 'getReportingLines', TeamsUFOExperience>;
|
|
82
82
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type FakerType from 'faker';
|
|
2
|
+
import type { Team, TeamWithImageUrls, TeamWithMemberships, TeamLink } from '../types';
|
|
2
3
|
type MockConfig = {
|
|
3
4
|
faker: typeof FakerType;
|
|
4
5
|
};
|
|
5
6
|
export declare const teamsClientMocks: (config: MockConfig) => {
|
|
6
|
-
randomBasicTeam: (customProps?: {}) =>
|
|
7
|
-
randomFullTeam: (customProps?: {}) =>
|
|
8
|
-
randomTeamWithMemberships: (team:
|
|
9
|
-
randomTeamLinks: (n?: number, customProps?: {}) =>
|
|
7
|
+
randomBasicTeam: (customProps?: {}) => Team;
|
|
8
|
+
randomFullTeam: (customProps?: {}) => TeamWithImageUrls;
|
|
9
|
+
randomTeamWithMemberships: (team: TeamWithImageUrls, customProps?: {}) => TeamWithMemberships;
|
|
10
|
+
randomTeamLinks: (n?: number, customProps?: {}) => TeamLink[];
|
|
10
11
|
};
|
|
11
12
|
export {};
|
|
@@ -58,5 +58,5 @@ export declare class CollaborationGraphClient extends RestClient {
|
|
|
58
58
|
getUserContainers({ userId, principalId, siteId, sessionId, maxNumberOfResults, }: UserContainerArgs): Promise<UserContainerResponse>;
|
|
59
59
|
getRecommendedUsers({ accountId, cloudId, maxNumberOfResults, filter, }: RecommendedUsersArgs): Promise<RecommendedUsersResponse>;
|
|
60
60
|
}
|
|
61
|
-
declare const
|
|
62
|
-
export default
|
|
61
|
+
declare const _default_1: CollaborationGraphClient;
|
|
62
|
+
export default _default_1;
|
|
@@ -12,6 +12,8 @@ interface IdentityProfileData {
|
|
|
12
12
|
department: string;
|
|
13
13
|
location: string;
|
|
14
14
|
phone_number: string;
|
|
15
|
+
about_me: string;
|
|
16
|
+
pronouns: string;
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
interface IdentityProfileResponse {
|
|
@@ -30,6 +32,8 @@ export interface UserDetails {
|
|
|
30
32
|
department: string;
|
|
31
33
|
location: string;
|
|
32
34
|
phoneNumber: string;
|
|
35
|
+
aboutMe: string;
|
|
36
|
+
pronouns: string;
|
|
33
37
|
localTime: ({ format }: {
|
|
34
38
|
format: string;
|
|
35
39
|
}) => string | null;
|
|
@@ -7,5 +7,5 @@ export declare class InvitationsClient extends RestClient {
|
|
|
7
7
|
getProductRecommendations(supportedProducts?: Product[], capabilities?: Capability[]): Promise<RecommendationsResponse>;
|
|
8
8
|
joinOrRequestDefaultAccessToProductsBulk(simplifiedRequest: AccessRequestBulkSimplified): Promise<AccessResourcesResponse>;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const _default_1: InvitationsClient;
|
|
11
|
+
export default _default_1;
|
|
@@ -4,5 +4,5 @@ export declare class MutabilityClient extends RestClient {
|
|
|
4
4
|
constructor(config?: {});
|
|
5
5
|
getProfileWithMutability(userId: string): Promise<MutabilityConstraint[]>;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
7
|
+
declare const _default_1: MutabilityClient;
|
|
8
|
+
export default _default_1;
|
|
@@ -6,5 +6,5 @@ export declare class ObjectResolverClient extends RestClient {
|
|
|
6
6
|
getAriFromUrl(url: string): Promise<string | undefined>;
|
|
7
7
|
getWebLinkTitle(webLinkUrl: string): Promise<string | undefined>;
|
|
8
8
|
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
9
|
+
declare const _default_1: ObjectResolverClient;
|
|
10
|
+
export default _default_1;
|
|
@@ -37,5 +37,5 @@ export declare class PublicApiClient extends RestClient implements PublicApiClie
|
|
|
37
37
|
getTeamMembers(teamId: string, first?: number, after?: string): Promise<PublicApiTeamResponseWithMembers>;
|
|
38
38
|
restoreTeam(teamId: string): Promise<void>;
|
|
39
39
|
}
|
|
40
|
-
declare const
|
|
41
|
-
export default
|
|
40
|
+
declare const _default_1: PublicApiClient;
|
|
41
|
+
export default _default_1;
|
|
@@ -7,5 +7,5 @@ export declare class ReportingLinesClient extends BaseGraphQlClient {
|
|
|
7
7
|
reportingLines: ReportingLines;
|
|
8
8
|
}>;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const _default_1: ReportingLinesClient;
|
|
11
|
+
export default _default_1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const _default_1: string;
|
|
2
|
+
export default _default_1;
|
|
@@ -2,4 +2,4 @@ export declare const SENTRY_PUBLIC_KEY = "1dc056d49dfe4df8961dc1b810e4620d";
|
|
|
2
2
|
export declare const SENTRY_PROJECT_ID = "5988845";
|
|
3
3
|
export declare const SENTRY_FEDRAMP_PUBLIC_KEY = "067abcc494be9a87b3cdf9416f2b97d5";
|
|
4
4
|
export declare const SENTRY_FEDRAMP_PROJECT_ID = "47";
|
|
5
|
-
export declare const SENTRY_DSN:
|
|
5
|
+
export declare const SENTRY_DSN: 'https://1dc056d49dfe4df8961dc1b810e4620d@o55978.ingest.sentry.io/5988845' | 'https://067abcc494be9a87b3cdf9416f2b97d5@sentry.atlassian-us-gov-mod.com/47';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Breadcrumb } from '@sentry/browser';
|
|
2
|
-
import { type CreateErrorHandler, type SentryTags } from './types';
|
|
2
|
+
import { type CreateErrorHandler, type ErrorHandler, type SentryTags } from './types';
|
|
3
3
|
type Context = any & {
|
|
4
4
|
/**
|
|
5
5
|
* Any tags to be added to the event.
|
|
@@ -27,6 +27,6 @@ export declare const logInfoMessageWithPackageContext: (packageContext: {
|
|
|
27
27
|
export declare const createErrorHandlerWithPackageContext: (packageContext: {
|
|
28
28
|
packageName: string;
|
|
29
29
|
packageVersion: string;
|
|
30
|
-
}) => (...args: Parameters<typeof createErrorHandler>) =>
|
|
30
|
+
}) => (...args: Parameters<typeof createErrorHandler>) => ErrorHandler;
|
|
31
31
|
export declare function addBreadcrumb(crumb: string | Breadcrumb): Promise<void>;
|
|
32
32
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { SentryClient } from '../types';
|
|
1
2
|
import { type SentryClientConfig } from './sentry-client';
|
|
2
|
-
export declare const useTeamsSentryClientSetup: (isSentryEnabled: boolean, config: SentryClientConfig) =>
|
|
3
|
+
export declare const useTeamsSentryClientSetup: (isSentryEnabled: boolean, config: SentryClientConfig) => SentryClient | undefined;
|
|
@@ -22,5 +22,5 @@ export declare class TeamCentralClient extends BaseGraphQlClient {
|
|
|
22
22
|
updateHelpPointer(variables: HelpPointerUpdateMutationVariables): Promise<HelpPointerUpdateMutationResponse>;
|
|
23
23
|
deleteHelpPointer(variables: HelpPointerDeleteMutationVariables): Promise<HelpPointerDeleteMutationResponse>;
|
|
24
24
|
}
|
|
25
|
-
declare const
|
|
26
|
-
export default
|
|
25
|
+
declare const _default_1: TeamCentralClient;
|
|
26
|
+
export default _default_1;
|
|
@@ -5,5 +5,5 @@ export declare class UserPreferencesClient extends RestClient {
|
|
|
5
5
|
getWriteMediaToken(): Promise<ReadMediaTokenResponse>;
|
|
6
6
|
updateUserHeaderImage(headerImageId: string | null): Promise<any>;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const _default_1: UserPreferencesClient;
|
|
9
|
+
export default _default_1;
|
|
@@ -31,6 +31,8 @@ export interface TeamsClientUser {
|
|
|
31
31
|
phoneNumber?: string;
|
|
32
32
|
userType?: UserType;
|
|
33
33
|
isAgent?: boolean;
|
|
34
|
+
aboutMe?: string;
|
|
35
|
+
pronouns?: string;
|
|
34
36
|
}
|
|
35
37
|
export interface UserInSiteUserbase {
|
|
36
38
|
isPresent: boolean;
|
|
@@ -44,7 +46,9 @@ declare const EditableUserFieldList: readonly [
|
|
|
44
46
|
"fullName",
|
|
45
47
|
"nickname",
|
|
46
48
|
"locale",
|
|
47
|
-
"email"
|
|
49
|
+
"email",
|
|
50
|
+
"aboutMe",
|
|
51
|
+
"pronouns"
|
|
48
52
|
];
|
|
49
53
|
export type EditableUserFields = Pick<TeamsClientUser, (typeof EditableUserFieldList)[number]>;
|
|
50
54
|
export declare const isEditableUserField: (key: string) => key is keyof EditableUserFields;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/teams-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.31.0",
|
|
4
4
|
"description": "A client to retrieve team related data",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"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\"]')"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/atlassian-context": "^0.
|
|
34
|
+
"@atlaskit/atlassian-context": "^0.7.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
36
36
|
"@atlaskit/ufo": "^0.4.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
package/scripts/utils.ts
CHANGED
|
@@ -82,7 +82,7 @@ export function parseMethod(method: MethodDeclaration): ParsedMethod {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export function parseFile(path: string) {
|
|
85
|
+
export function parseFile(path: string): ParsedInfo {
|
|
86
86
|
// Add the TypeScript file we want to parse
|
|
87
87
|
const file = project.addSourceFileAtPath(path);
|
|
88
88
|
|
|
@@ -101,7 +101,7 @@ export function parseFile(path: string) {
|
|
|
101
101
|
return parsedInfo;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export function tagToString(tag: JSDocTag<ts.JSDocTag>) {
|
|
104
|
+
export function tagToString(tag: JSDocTag<ts.JSDocTag>): string {
|
|
105
105
|
const tagName = tag.getTagName().toLowerCase();
|
|
106
106
|
const tagText = tag.getText(true).replace(/\*/g, '');
|
|
107
107
|
if (tagName === 'deprecated') {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createQueryContextHeaders = createQueryContextHeaders;
|
|
7
|
-
/**
|
|
8
|
-
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
9
|
-
* Use this for AGG client makeGraphQLRequest calls.
|
|
10
|
-
*/
|
|
11
|
-
function createQueryContextHeaders(cloudId) {
|
|
12
|
-
if (!cloudId) {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
'X-Query-Context': "ari:cloud:platform::site/".concat(cloudId)
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
|
-
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
|
-
*/
|
|
5
|
-
export function createQueryContextHeaders(cloudId) {
|
|
6
|
-
if (!cloudId) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
'X-Query-Context': `ari:cloud:platform::site/${cloudId}`
|
|
11
|
-
};
|
|
12
|
-
}
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates headers object with X-Query-Context header if cloudId is provided.
|
|
3
|
-
* Use this for AGG client makeGraphQLRequest calls.
|
|
4
|
-
*/
|
|
5
|
-
export function createQueryContextHeaders(cloudId) {
|
|
6
|
-
if (!cloudId) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
return {
|
|
10
|
-
'X-Query-Context': "ari:cloud:platform::site/".concat(cloudId)
|
|
11
|
-
};
|
|
12
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function filterNull<T>(x?: T): x is Exclude<T, null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ReportingLines } from '../services/reporting-lines-client/utils/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function filterNull<T>(x?: T): x is Exclude<T, null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ReportingLines } from '../services/reporting-lines-client/utils/types';
|