@atlaskit/teams-client 4.33.5 → 5.0.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 +26 -0
- package/agg-client/package.json +1 -8
- package/agg-client/types/package.json +1 -8
- package/ari/package.json +1 -8
- package/association/package.json +1 -8
- package/client/package.json +1 -8
- package/config/package.json +1 -8
- package/endpoints/package.json +1 -8
- package/error/package.json +1 -8
- package/generate-data/package.json +1 -8
- package/has-permission/package.json +1 -8
- package/initialise-sentry/package.json +1 -8
- package/legion-client/package.json +1 -8
- package/links/package.json +1 -8
- package/main/package.json +1 -8
- package/media/package.json +1 -8
- package/membership/package.json +1 -8
- package/mocks/package.json +1 -8
- package/package.json +5 -13
- package/permissions/package.json +1 -8
- package/permissions/types/package.json +1 -8
- package/public/package.json +1 -8
- package/reporting-lines-client/utils/types/package.json +1 -8
- package/sentry/main/package.json +1 -8
- package/sentry/package.json +1 -8
- package/sentry/types/package.json +1 -8
- package/slack/package.json +1 -8
- package/sort-teams/package.json +1 -8
- package/team/package.json +1 -8
- package/team-container/package.json +1 -8
- package/tenure/package.json +1 -8
- package/types/package.json +1 -8
- package/types/team/package.json +1 -8
- package/ufo/package.json +1 -8
- package/unlink-container-mutation/package.json +1 -8
- package/use-query-light/main/package.json +1 -8
- package/use-query-light/package.json +1 -8
- package/use-query-light/types/package.json +1 -8
- package/use-teams-client-setup/package.json +1 -8
- package/use-teams-sentry-client-setup/package.json +1 -8
- package/user/package.json +1 -8
- package/user-info-provider/main/package.json +1 -8
- package/user-info-provider/package.json +1 -8
- package/utils/package.json +1 -8
- package/dist/types-ts4.5/common/types.d.ts +0 -4
- package/dist/types-ts4.5/common/utils/ari.d.ts +0 -7
- package/dist/types-ts4.5/common/utils/error/index.d.ts +0 -91
- package/dist/types-ts4.5/common/utils/http.d.ts +0 -31
- package/dist/types-ts4.5/common/utils/index.d.ts +0 -2
- package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +0 -30
- package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +0 -40
- package/dist/types-ts4.5/common/utils/permissions/index.d.ts +0 -3
- package/dist/types-ts4.5/common/utils/permissions/types.d.ts +0 -31
- package/dist/types-ts4.5/common/utils/sort-teams.d.ts +0 -2
- package/dist/types-ts4.5/common/utils/status-code-handlers-provider.d.ts +0 -17
- package/dist/types-ts4.5/common/utils/team.d.ts +0 -5
- package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +0 -82
- package/dist/types-ts4.5/common/utils/ufo/index.d.ts +0 -6
- package/dist/types-ts4.5/common/utils/ufo/utils.d.ts +0 -11
- package/dist/types-ts4.5/index.d.ts +0 -15
- package/dist/types-ts4.5/mocks/endpoints.d.ts +0 -22
- package/dist/types-ts4.5/mocks/generate-data.d.ts +0 -16
- package/dist/types-ts4.5/mocks/index.d.ts +0 -2
- package/dist/types-ts4.5/mocks/invitations.d.ts +0 -11
- package/dist/types-ts4.5/mocks/responses.d.ts +0 -75
- package/dist/types-ts4.5/mocks/team-link.d.ts +0 -7
- package/dist/types-ts4.5/mocks/team.d.ts +0 -14
- package/dist/types-ts4.5/mocks/user.d.ts +0 -15
- package/dist/types-ts4.5/mocks/with-faker.d.ts +0 -12
- package/dist/types-ts4.5/services/agg-client/index.d.ts +0 -36
- package/dist/types-ts4.5/services/agg-client/mocks/index.d.ts +0 -49
- package/dist/types-ts4.5/services/agg-client/types.d.ts +0 -13
- package/dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +0 -18
- package/dist/types-ts4.5/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +0 -11
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +0 -47
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +0 -52
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-has-agents-query.d.ts +0 -15
- package/dist/types-ts4.5/services/agg-client/utils/queries/team-membership-query.d.ts +0 -33
- package/dist/types-ts4.5/services/agg-client/utils/queries/user-query.d.ts +0 -31
- package/dist/types-ts4.5/services/agg-client/utils/user-type.d.ts +0 -7
- package/dist/types-ts4.5/services/base-client/index.d.ts +0 -37
- package/dist/types-ts4.5/services/collaborationgraph-client/index.d.ts +0 -70
- package/dist/types-ts4.5/services/constants.d.ts +0 -2
- package/dist/types-ts4.5/services/directory-client/index.d.ts +0 -53
- package/dist/types-ts4.5/services/graphql-client/index.d.ts +0 -1
- package/dist/types-ts4.5/services/graphql-client/main.d.ts +0 -14
- package/dist/types-ts4.5/services/graphql-client/types.d.ts +0 -20
- package/dist/types-ts4.5/services/graphql-client/utils/index.d.ts +0 -3
- package/dist/types-ts4.5/services/hooks/use-teams-client-setup.d.ts +0 -14
- package/dist/types-ts4.5/services/identity-client/index.d.ts +0 -34
- package/dist/types-ts4.5/services/identity-client/utils.d.ts +0 -85
- package/dist/types-ts4.5/services/index.d.ts +0 -1
- package/dist/types-ts4.5/services/invitations-client/index.d.ts +0 -11
- package/dist/types-ts4.5/services/invitations-client/types.d.ts +0 -67
- package/dist/types-ts4.5/services/invitations-client/utils/index.d.ts +0 -7
- package/dist/types-ts4.5/services/invitations-client/utils/types.d.ts +0 -7
- package/dist/types-ts4.5/services/legion-client/index.d.ts +0 -164
- package/dist/types-ts4.5/services/legion-client/types.d.ts +0 -128
- package/dist/types-ts4.5/services/main.d.ts +0 -452
- package/dist/types-ts4.5/services/mutability-client/index.d.ts +0 -8
- package/dist/types-ts4.5/services/mutability-client/types.d.ts +0 -5
- package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +0 -10
- package/dist/types-ts4.5/services/object-resolver-client/types.d.ts +0 -69
- package/dist/types-ts4.5/services/object-resolver-client/utils.d.ts +0 -18
- package/dist/types-ts4.5/services/perms-client/index.d.ts +0 -16
- package/dist/types-ts4.5/services/public-api-client/generated/data-contracts.d.ts +0 -112
- package/dist/types-ts4.5/services/public-api-client/index.d.ts +0 -41
- package/dist/types-ts4.5/services/replines-client/index.d.ts +0 -11
- package/dist/types-ts4.5/services/reporting-lines-client/index.d.ts +0 -11
- package/dist/types-ts4.5/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.d.ts +0 -2
- package/dist/types-ts4.5/services/reporting-lines-client/utils/types.d.ts +0 -32
- package/dist/types-ts4.5/services/rest-client/index.d.ts +0 -40
- package/dist/types-ts4.5/services/rest-client/utils/cookie.d.ts +0 -5
- package/dist/types-ts4.5/services/rest-client/utils/parse-error-message.d.ts +0 -1
- package/dist/types-ts4.5/services/rest-client/utils/parse-response.d.ts +0 -1
- package/dist/types-ts4.5/services/rest-client/utils/strip-uuid.d.ts +0 -1
- package/dist/types-ts4.5/services/sentry/constants.d.ts +0 -5
- package/dist/types-ts4.5/services/sentry/index.d.ts +0 -3
- package/dist/types-ts4.5/services/sentry/main.d.ts +0 -32
- package/dist/types-ts4.5/services/sentry/types.d.ts +0 -36
- package/dist/types-ts4.5/services/sentry/utils/get-sentry-config.d.ts +0 -2
- package/dist/types-ts4.5/services/sentry/utils/initialise-sentry.d.ts +0 -2
- package/dist/types-ts4.5/services/sentry/utils/sentry-client.d.ts +0 -9
- package/dist/types-ts4.5/services/sentry/utils/use-teams-sentry-client-setup.d.ts +0 -3
- package/dist/types-ts4.5/services/team-central-client/index.d.ts +0 -26
- package/dist/types-ts4.5/services/team-central-client/mutations/add-team-watcher.graphql.d.ts +0 -9
- package/dist/types-ts4.5/services/team-central-client/mutations/create-tag-mutation.graphql.d.ts +0 -12
- package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-create-mutation.graphql.d.ts +0 -20
- package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-delete-mutation.graphql.d.ts +0 -7
- package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-update-mutation.graphql.d.ts +0 -21
- package/dist/types-ts4.5/services/team-central-client/mutations/kudos-delete-mutation.graphql.d.ts +0 -10
- package/dist/types-ts4.5/services/team-central-client/mutations/remove-team-watcher.graphql.d.ts +0 -9
- package/dist/types-ts4.5/services/team-central-client/queries/is-team-watcher.graphql.d.ts +0 -8
- package/dist/types-ts4.5/services/team-central-client/queries/tag-list-query.graphql.d.ts +0 -24
- package/dist/types-ts4.5/services/team-central-client/utils.d.ts +0 -2
- package/dist/types-ts4.5/services/teams-in-slack-client/index.d.ts +0 -27
- package/dist/types-ts4.5/services/types.d.ts +0 -10
- package/dist/types-ts4.5/services/use-query-light/index.d.ts +0 -3
- package/dist/types-ts4.5/services/use-query-light/main.d.ts +0 -7
- package/dist/types-ts4.5/services/use-query-light/types.d.ts +0 -57
- package/dist/types-ts4.5/services/user-info-provider/index.d.ts +0 -1
- package/dist/types-ts4.5/services/user-info-provider/main.d.ts +0 -14
- package/dist/types-ts4.5/services/user-preferences-client/index.d.ts +0 -9
- package/dist/types-ts4.5/types/association.d.ts +0 -8
- package/dist/types-ts4.5/types/config.d.ts +0 -7
- package/dist/types-ts4.5/types/index.d.ts +0 -16
- package/dist/types-ts4.5/types/links.d.ts +0 -31
- package/dist/types-ts4.5/types/media.d.ts +0 -6
- package/dist/types-ts4.5/types/membership.d.ts +0 -35
- package/dist/types-ts4.5/types/slack.d.ts +0 -7
- package/dist/types-ts4.5/types/team-container.d.ts +0 -29
- package/dist/types-ts4.5/types/team.d.ts +0 -188
- package/dist/types-ts4.5/types/tenure.d.ts +0 -5
- package/dist/types-ts4.5/types/user.d.ts +0 -55
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { userInfoProvider, UserInfoProvider } from './main';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface UserInfo {
|
|
2
|
-
userId: string;
|
|
3
|
-
locale: string;
|
|
4
|
-
fullName: string;
|
|
5
|
-
avatarUrl: string;
|
|
6
|
-
email: string;
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class UserInfoProvider {
|
|
10
|
-
private promise?;
|
|
11
|
-
get(fetchOp?: typeof fetch): Promise<UserInfo>;
|
|
12
|
-
}
|
|
13
|
-
export declare const userInfoProvider: UserInfoProvider;
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReadMediaTokenResponse } from '../../types/media';
|
|
2
|
-
import { RestClient } from '../rest-client';
|
|
3
|
-
export declare class UserPreferencesClient extends RestClient {
|
|
4
|
-
getReadMediaToken(accountId: string): Promise<ReadMediaTokenResponse>;
|
|
5
|
-
getWriteMediaToken(): Promise<ReadMediaTokenResponse>;
|
|
6
|
-
updateUserHeaderImage(headerImageId: string | null): Promise<any>;
|
|
7
|
-
}
|
|
8
|
-
declare const _default_1: UserPreferencesClient;
|
|
9
|
-
export default _default_1;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type { TeamAvatarImage, TeamWithImageUrls, Team, TeamPermission, TeamsPermissionFromApi, TeamsPermissionApi, TeamRestriction, TeamDiscoverability, TeamMembershipSettings, ScopeMode, OrgScope, LinkedTeam, Scope, AssignedTeam, AssignedTeamsResponse, UnassignedTeam, UnassignedTeamsResponse, TeamEnabledSitesResponse, AlignmentPermission, TeamSiteAssignmentOrgDetailsResponse, TeamsToBeClonedToJsmSitesResponse, TeamState, } from './team';
|
|
2
|
-
export type { TeamsClientUser as User, EditableUserFields, UserStatus } from './user';
|
|
3
|
-
export { isEditableUserField } from './user';
|
|
4
|
-
export type { UnlinkContainerMutationError } from '../services/agg-client/utils/mutations/unlink-container-mutation';
|
|
5
|
-
export type { InvitedUser, TeamMember, TeamMembership, TeamAgentMembership, TeamWithMemberships, MembershipState, MembershipRole, } from './membership';
|
|
6
|
-
export type { LinkOrder, NewTeamLink, TeamLink } from './links';
|
|
7
|
-
export type { TeamsClientConfig } from './config';
|
|
8
|
-
export { isResultWithPageInfo } from '../services/agg-client/types';
|
|
9
|
-
export type { AGGPageInfo, ResultWithPageInfo, AGGPageInfoVariables, } from '../services/agg-client/types';
|
|
10
|
-
export type { TeamContainers } from '../services/agg-client';
|
|
11
|
-
export type { ReadMediaTokenResponse } from './media';
|
|
12
|
-
export type { TeamInSlack } from './slack';
|
|
13
|
-
export type { UserTenure } from './tenure';
|
|
14
|
-
export type { TeamAgentAssociation } from './association';
|
|
15
|
-
export { type ApiTeamContainerCreationPayload, type Container, ContainerType, } from './team-container';
|
|
16
|
-
export type { ReportingLines, ReportingLinesUser, } from '../services/reporting-lines-client/utils/types';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Used to synchronise these field names to forms used to create/edit links e.g. TeamLinkForm
|
|
3
|
-
*/
|
|
4
|
-
export declare const LINK_FIELDS: {
|
|
5
|
-
CONTENT_TITLE: "contentTitle";
|
|
6
|
-
DESCRIPTION: "description";
|
|
7
|
-
LINK_URI: "linkUri";
|
|
8
|
-
};
|
|
9
|
-
export interface TeamLink {
|
|
10
|
-
[LINK_FIELDS.CONTENT_TITLE]: string;
|
|
11
|
-
[LINK_FIELDS.DESCRIPTION]: string;
|
|
12
|
-
[LINK_FIELDS.LINK_URI]: string;
|
|
13
|
-
/**
|
|
14
|
-
* @private
|
|
15
|
-
* @deprecated field has been removed as part of migration to V4
|
|
16
|
-
*/
|
|
17
|
-
creationTime?: string;
|
|
18
|
-
linkId: string;
|
|
19
|
-
teamId?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Type for uncreated team links. These don't have link IDs
|
|
23
|
-
*/
|
|
24
|
-
export type NewTeamLink = Omit<TeamLink, 'linkId'>;
|
|
25
|
-
/**
|
|
26
|
-
* Type for order of team links.
|
|
27
|
-
*/
|
|
28
|
-
export type LinkOrder = {
|
|
29
|
-
teamId: string;
|
|
30
|
-
linkOrder: string[];
|
|
31
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type TeamWithImageUrls } from './team';
|
|
2
|
-
import { type TeamsClientUser } from './user';
|
|
3
|
-
/**
|
|
4
|
-
* @private
|
|
5
|
-
* @deprecated INVITED is deprecated
|
|
6
|
-
*/
|
|
7
|
-
type DeprecratedMembershipState = 'INVITED';
|
|
8
|
-
export type MembershipState = DeprecratedMembershipState | 'FULL_MEMBER' | 'ALUMNI' | 'REQUESTING_TO_JOIN';
|
|
9
|
-
export type MembershipRole = 'REGULAR' | 'ADMIN';
|
|
10
|
-
export type TeamMember = Pick<TeamsClientUser, 'id' | 'fullName' | 'avatarUrl' | 'status'>;
|
|
11
|
-
type Membership<T> = {
|
|
12
|
-
membershipId: {
|
|
13
|
-
teamId: string;
|
|
14
|
-
memberId: string;
|
|
15
|
-
};
|
|
16
|
-
state: MembershipState;
|
|
17
|
-
role: MembershipRole;
|
|
18
|
-
user?: T;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @param membershipId - The team IDZ
|
|
22
|
-
*/
|
|
23
|
-
export type TeamMembership = Membership<TeamsClientUser>;
|
|
24
|
-
export type TeamAgentMembership = Membership<TeamsClientUser>;
|
|
25
|
-
export interface TeamWithMemberships extends TeamWithImageUrls {
|
|
26
|
-
members: TeamMember[];
|
|
27
|
-
includesYou: boolean;
|
|
28
|
-
memberCount: number;
|
|
29
|
-
}
|
|
30
|
-
export interface InvitedUser {
|
|
31
|
-
id: string | null;
|
|
32
|
-
email: string | null;
|
|
33
|
-
}
|
|
34
|
-
export declare function isTeamMembershipWithUser(membership: TeamMembership): membership is Required<TeamMembership>;
|
|
35
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare enum ContainerType {
|
|
2
|
-
CONFLUENCE_SPACE = "CONFLUENCE_SPACE",
|
|
3
|
-
JIRA_PROJECT = "JIRA_PROJECT",
|
|
4
|
-
LOOM_SPACE = "LOOM_SPACE"
|
|
5
|
-
}
|
|
6
|
-
export interface Container {
|
|
7
|
-
type: ContainerType;
|
|
8
|
-
containerSiteId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ContainerNotCreatedDetails {
|
|
11
|
-
containerType: ContainerType;
|
|
12
|
-
reason: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ApiTeamContainerCreationPayload {
|
|
15
|
-
teamId: string;
|
|
16
|
-
containers: Container[];
|
|
17
|
-
}
|
|
18
|
-
export interface ContainerCreatedDetails {
|
|
19
|
-
containerId: string;
|
|
20
|
-
containerName: string;
|
|
21
|
-
containerSiteId: string;
|
|
22
|
-
containerType: ContainerType;
|
|
23
|
-
containerUrl: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ApiTeamContainerResponse {
|
|
26
|
-
teamId: string;
|
|
27
|
-
containersNotCreated: ContainerNotCreatedDetails[];
|
|
28
|
-
containersCreated: ContainerCreatedDetails[];
|
|
29
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { type TeamMembership } from './membership';
|
|
2
|
-
export type TeamState = 'ACTIVE' | 'PURGED' | 'DISBANDED';
|
|
3
|
-
export type TeamMembershipSettings = 'OPEN' | 'MEMBER_INVITE' | 'EXTERNAL' | 'ORG_ADMIN_MANAGED';
|
|
4
|
-
export type TeamDiscoverability = 'DISCOVERABLE';
|
|
5
|
-
export type TeamRestriction = 'ORG_MEMBERS' | 'NO_RESTRICTION';
|
|
6
|
-
export type TeamPermission = 'FULL_WRITE' | 'FULL_READ' | 'NONE';
|
|
7
|
-
export type ScopeMode = 'ORG_SCOPE_MODE' | 'SITE_SCOPE_MODE';
|
|
8
|
-
export interface Scope {
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TeamAvatarImage {
|
|
13
|
-
largeAvatarImageUrl: string;
|
|
14
|
-
smallAvatarImageUrl: string;
|
|
15
|
-
largeHeaderImageUrl: string;
|
|
16
|
-
smallHeaderImageUrl: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @type Team
|
|
20
|
-
* Team type which doean't include the avatar image urls
|
|
21
|
-
*/
|
|
22
|
-
export interface Team {
|
|
23
|
-
id: string;
|
|
24
|
-
displayName: string;
|
|
25
|
-
description: string;
|
|
26
|
-
state: TeamState;
|
|
27
|
-
membershipSettings: TeamMembershipSettings;
|
|
28
|
-
/**
|
|
29
|
-
* @private
|
|
30
|
-
* @deprecated field has been removed as part of migration to V4. Will always be DISCOVERABLE
|
|
31
|
-
*/
|
|
32
|
-
discoverable?: TeamDiscoverability;
|
|
33
|
-
organizationId?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
* @deprecated field has been removed as part of migration to V4
|
|
37
|
-
*/
|
|
38
|
-
restriction?: TeamRestriction;
|
|
39
|
-
creatorId?: string;
|
|
40
|
-
permission?: TeamPermission;
|
|
41
|
-
/**
|
|
42
|
-
* @private
|
|
43
|
-
* @deprecated field has been removed as part of migration to V4
|
|
44
|
-
*/
|
|
45
|
-
creatorDomain?: string;
|
|
46
|
-
memberIds?: string[];
|
|
47
|
-
membership?: {
|
|
48
|
-
members?: TeamMembership[];
|
|
49
|
-
errors?: string[];
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @private
|
|
53
|
-
* @deprecated use organizationId instead
|
|
54
|
-
*/
|
|
55
|
-
orgId?: string;
|
|
56
|
-
scopeMode?: ScopeMode;
|
|
57
|
-
isVerified?: boolean;
|
|
58
|
-
externalReference?: {
|
|
59
|
-
id: string;
|
|
60
|
-
source: ExternalReferenceSource;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @type TeamWithImageUrls
|
|
65
|
-
*/
|
|
66
|
-
export interface TeamWithImageUrls extends Team, TeamAvatarImage {
|
|
67
|
-
}
|
|
68
|
-
export interface SoftDeletedTeamResponse {
|
|
69
|
-
teamResponse: {
|
|
70
|
-
displayName: string;
|
|
71
|
-
expiry: string;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
export interface SoftDeletedTeam {
|
|
75
|
-
id: string;
|
|
76
|
-
displayName: string;
|
|
77
|
-
expiry: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @type ExternalReference
|
|
81
|
-
* Payload type for the createTeam API, when the team membershipSetting is EXTERNAL
|
|
82
|
-
* @property {string} source - The source of the external reference, e.g., "ATLASSIAN_GROUP".
|
|
83
|
-
* @property {string} id - Group ID of source
|
|
84
|
-
*/
|
|
85
|
-
export interface ExternalReference {
|
|
86
|
-
source: ExternalReferenceSource;
|
|
87
|
-
id: string;
|
|
88
|
-
displayName?: string;
|
|
89
|
-
syncTeamName?: boolean;
|
|
90
|
-
}
|
|
91
|
-
export type ExternalReferenceSource = 'ATLASSIAN_GROUP' | 'HRIS';
|
|
92
|
-
export type TeamsPermissionApi = 'CAN_CREATE_TEAMS' | 'CAN_VIEW_TEAMS' | 'CAN_ADMIN_TEAMS';
|
|
93
|
-
/**
|
|
94
|
-
* @type TeamsPermissionFromApi
|
|
95
|
-
* Mapped response from GET /api/v4/teams/permission/self/organization/{orgId}
|
|
96
|
-
*/
|
|
97
|
-
export type TeamsPermissionFromApi = {
|
|
98
|
-
permissions: TeamsPermissionApi[];
|
|
99
|
-
};
|
|
100
|
-
export type LinkedTeam = Pick<TeamWithImageUrls, 'id' | 'displayName' | 'description' | 'organizationId' | 'isVerified' | 'smallAvatarImageUrl' | 'largeAvatarImageUrl'> & {
|
|
101
|
-
linkToTeamProfile: string;
|
|
102
|
-
externalReference: {
|
|
103
|
-
id: string;
|
|
104
|
-
};
|
|
105
|
-
scopeMode: ScopeMode;
|
|
106
|
-
scope: Scope;
|
|
107
|
-
};
|
|
108
|
-
export interface LinkedTeamsBulkResponse {
|
|
109
|
-
teams: LinkedTeam[];
|
|
110
|
-
}
|
|
111
|
-
export interface LinkedTeamsProfileDetails {
|
|
112
|
-
profileUrl: string;
|
|
113
|
-
}
|
|
114
|
-
export interface OrgScope {
|
|
115
|
-
scopeMode: ScopeMode;
|
|
116
|
-
scopes: Scope[];
|
|
117
|
-
}
|
|
118
|
-
export interface TeamEnabledSitesResponse {
|
|
119
|
-
cutoffDate: string;
|
|
120
|
-
suggestedSite: {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
};
|
|
124
|
-
sites: {
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
}[];
|
|
128
|
-
}
|
|
129
|
-
export interface AssignTeamsToSitesResponse {
|
|
130
|
-
migratedTeams: string[];
|
|
131
|
-
failedTeams: {
|
|
132
|
-
teamId: string;
|
|
133
|
-
failureCode: string;
|
|
134
|
-
failureReason: string;
|
|
135
|
-
}[];
|
|
136
|
-
}
|
|
137
|
-
export interface TeamsToBeClonedToJsmSitesResponse {
|
|
138
|
-
teamsToBeClonedToJsmSites: {
|
|
139
|
-
teamId: string;
|
|
140
|
-
cloneToSites: {
|
|
141
|
-
siteId: string;
|
|
142
|
-
}[];
|
|
143
|
-
}[];
|
|
144
|
-
}
|
|
145
|
-
export interface AssignedTeam {
|
|
146
|
-
id: string;
|
|
147
|
-
displayName: string;
|
|
148
|
-
avatarImageUrl: string;
|
|
149
|
-
members: {
|
|
150
|
-
firstPageCount: number;
|
|
151
|
-
memberCursor: string;
|
|
152
|
-
};
|
|
153
|
-
scope: {
|
|
154
|
-
id: string;
|
|
155
|
-
name: string;
|
|
156
|
-
};
|
|
157
|
-
scopeAlignmentMetadata: {
|
|
158
|
-
accountId: string;
|
|
159
|
-
timestamp: string;
|
|
160
|
-
accountDisplayName: string;
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
export interface AssignedTeamsResponse {
|
|
164
|
-
teams: AssignedTeam[];
|
|
165
|
-
cursor: string;
|
|
166
|
-
}
|
|
167
|
-
export interface UnassignedTeam {
|
|
168
|
-
id: string;
|
|
169
|
-
displayName: string;
|
|
170
|
-
avatarImageUrl: string;
|
|
171
|
-
members: {
|
|
172
|
-
firstPageCount: number;
|
|
173
|
-
memberCursor: string;
|
|
174
|
-
};
|
|
175
|
-
suggestedSite: {
|
|
176
|
-
id: string;
|
|
177
|
-
name: string;
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
export interface UnassignedTeamsResponse {
|
|
181
|
-
teams: UnassignedTeam[];
|
|
182
|
-
cursor: string | null;
|
|
183
|
-
}
|
|
184
|
-
export type AlignmentPermission = 'ALL_USERS' | 'ORG_ADMIN';
|
|
185
|
-
export interface TeamSiteAssignmentOrgDetailsResponse {
|
|
186
|
-
cutoffDate: string;
|
|
187
|
-
permission: AlignmentPermission;
|
|
188
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
type UserPrivacyLevel = 'private' | 'domain' | 'public';
|
|
2
|
-
export type UserStatus = 'active' | 'inactive' | 'closed';
|
|
3
|
-
export type UserType = 'bot' | 'user' | 'agent';
|
|
4
|
-
interface UserPrivacy {
|
|
5
|
-
level: UserPrivacyLevel;
|
|
6
|
-
domain: string;
|
|
7
|
-
isBlacklistedDomain: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface TeamsClientUser {
|
|
10
|
-
id: string;
|
|
11
|
-
isCurrentUser?: boolean;
|
|
12
|
-
fullName: string;
|
|
13
|
-
nickname?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
timezone?: string;
|
|
17
|
-
localTime?: string;
|
|
18
|
-
locale?: string;
|
|
19
|
-
preferredLanguage?: string;
|
|
20
|
-
location?: string;
|
|
21
|
-
companyName?: string;
|
|
22
|
-
department?: string;
|
|
23
|
-
position?: string;
|
|
24
|
-
avatarUrl?: string;
|
|
25
|
-
headerImageUrl?: string;
|
|
26
|
-
privacy?: UserPrivacy;
|
|
27
|
-
status?: UserStatus;
|
|
28
|
-
statusModifiedDate?: number;
|
|
29
|
-
isBot?: boolean;
|
|
30
|
-
isNotMentionable?: boolean;
|
|
31
|
-
phoneNumber?: string;
|
|
32
|
-
userType?: UserType;
|
|
33
|
-
isAgent?: boolean;
|
|
34
|
-
aboutMe?: string;
|
|
35
|
-
pronouns?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface UserInSiteUserbase {
|
|
38
|
-
isPresent: boolean;
|
|
39
|
-
}
|
|
40
|
-
declare const EditableUserFieldList: readonly [
|
|
41
|
-
"title",
|
|
42
|
-
"department",
|
|
43
|
-
"companyName",
|
|
44
|
-
"location",
|
|
45
|
-
"phoneNumber",
|
|
46
|
-
"fullName",
|
|
47
|
-
"nickname",
|
|
48
|
-
"locale",
|
|
49
|
-
"email",
|
|
50
|
-
"aboutMe",
|
|
51
|
-
"pronouns"
|
|
52
|
-
];
|
|
53
|
-
export type EditableUserFields = Pick<TeamsClientUser, (typeof EditableUserFieldList)[number]>;
|
|
54
|
-
export declare const isEditableUserField: (key: string) => key is keyof EditableUserFields;
|
|
55
|
-
export {};
|