@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,112 +0,0 @@
|
|
|
1
|
-
export interface PublicApiFetchResponsePublicApiMembershipAccountId {
|
|
2
|
-
pageInfo?: PublicApiPageInfoAccountId;
|
|
3
|
-
results?: PublicApiMembership[];
|
|
4
|
-
}
|
|
5
|
-
export interface PublicApiMembership {
|
|
6
|
-
accountId?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface PublicApiMembershipAddPayload {
|
|
9
|
-
/**
|
|
10
|
-
* @maxItems 50
|
|
11
|
-
* @minItems 1
|
|
12
|
-
* @uniqueItems true
|
|
13
|
-
*/
|
|
14
|
-
members: PublicApiMembership[];
|
|
15
|
-
}
|
|
16
|
-
export interface PublicApiMembershipAddResponse {
|
|
17
|
-
/** @uniqueItems true */
|
|
18
|
-
errors?: PublicApiMembershipCodedError[];
|
|
19
|
-
/** @uniqueItems true */
|
|
20
|
-
members?: PublicApiMembership[];
|
|
21
|
-
}
|
|
22
|
-
export interface PublicApiMembershipCodedError {
|
|
23
|
-
accountId?: string;
|
|
24
|
-
code?: string;
|
|
25
|
-
message?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface PublicApiMembershipFetchPayload {
|
|
28
|
-
/** Pagination cursor, only members after the cursor will be returned */
|
|
29
|
-
after?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Maximum number of members to be returned
|
|
32
|
-
* @format int32
|
|
33
|
-
* @max 50
|
|
34
|
-
* @default 50
|
|
35
|
-
*/
|
|
36
|
-
first?: number;
|
|
37
|
-
}
|
|
38
|
-
export interface PublicApiMembershipRemovePayload {
|
|
39
|
-
/**
|
|
40
|
-
* @maxItems 50
|
|
41
|
-
* @minItems 1
|
|
42
|
-
* @uniqueItems true
|
|
43
|
-
*/
|
|
44
|
-
members: PublicApiMembership[];
|
|
45
|
-
}
|
|
46
|
-
export interface PublicApiMembershipRemoveResponse {
|
|
47
|
-
/** @uniqueItems true */
|
|
48
|
-
errors?: PublicApiMembershipCodedError[];
|
|
49
|
-
}
|
|
50
|
-
export interface PublicApiOverallCodedError {
|
|
51
|
-
code?: string;
|
|
52
|
-
message?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface PublicApiPageInfoAccountId {
|
|
55
|
-
endCursor?: string;
|
|
56
|
-
hasNextPage?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export interface PublicApiTeamCreationPayload {
|
|
59
|
-
/**
|
|
60
|
-
* @minLength 0
|
|
61
|
-
* @maxLength 360
|
|
62
|
-
*/
|
|
63
|
-
description: string;
|
|
64
|
-
/**
|
|
65
|
-
* @minLength 1
|
|
66
|
-
* @maxLength 80
|
|
67
|
-
*/
|
|
68
|
-
displayName: string;
|
|
69
|
-
/**
|
|
70
|
-
* @minLength 1
|
|
71
|
-
* @maxLength 255
|
|
72
|
-
*/
|
|
73
|
-
siteId?: string;
|
|
74
|
-
teamType: 'OPEN' | 'MEMBER_INVITE';
|
|
75
|
-
}
|
|
76
|
-
export interface PublicApiTeamResponse {
|
|
77
|
-
description?: string;
|
|
78
|
-
displayName?: string;
|
|
79
|
-
organizationId?: string;
|
|
80
|
-
teamId?: string;
|
|
81
|
-
teamType?: 'OPEN' | 'MEMBER_INVITE';
|
|
82
|
-
userPermissions?: PublicApiUserPermissions;
|
|
83
|
-
}
|
|
84
|
-
export interface PublicApiTeamResponseWithMembers {
|
|
85
|
-
description?: string;
|
|
86
|
-
displayName?: string;
|
|
87
|
-
/** @uniqueItems true */
|
|
88
|
-
members?: PublicApiMembership[];
|
|
89
|
-
organizationId?: string;
|
|
90
|
-
teamId?: string;
|
|
91
|
-
teamType?: 'OPEN' | 'MEMBER_INVITE';
|
|
92
|
-
userPermissions?: PublicApiUserPermissions;
|
|
93
|
-
}
|
|
94
|
-
export interface PublicApiTeamUpdatePayload {
|
|
95
|
-
/**
|
|
96
|
-
* @minLength 0
|
|
97
|
-
* @maxLength 360
|
|
98
|
-
*/
|
|
99
|
-
description?: string;
|
|
100
|
-
/**
|
|
101
|
-
* @minLength 1
|
|
102
|
-
* @maxLength 80
|
|
103
|
-
* @pattern .*\S+.*
|
|
104
|
-
*/
|
|
105
|
-
displayName?: string;
|
|
106
|
-
}
|
|
107
|
-
export interface PublicApiUserPermissions {
|
|
108
|
-
ADD_MEMBERS?: boolean;
|
|
109
|
-
DELETE_TEAM?: boolean;
|
|
110
|
-
REMOVE_MEMBERS?: boolean;
|
|
111
|
-
UPDATE_TEAM?: boolean;
|
|
112
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { RestClient } from '../rest-client';
|
|
2
|
-
import { type PublicApiTeamResponse, type PublicApiTeamResponseWithMembers } from './generated/data-contracts';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated migrate to generated types
|
|
5
|
-
*/
|
|
6
|
-
interface Member {
|
|
7
|
-
accountId: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated migrate to generated types
|
|
11
|
-
*/
|
|
12
|
-
interface AddMembershipReponse {
|
|
13
|
-
members: Member[];
|
|
14
|
-
errors: {
|
|
15
|
-
accountId: string;
|
|
16
|
-
code: string;
|
|
17
|
-
message: string;
|
|
18
|
-
}[];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated migrate to generated types
|
|
22
|
-
*/
|
|
23
|
-
interface RemoveMembershipReponse {
|
|
24
|
-
errors: {
|
|
25
|
-
accountId: string;
|
|
26
|
-
code: string;
|
|
27
|
-
message: string;
|
|
28
|
-
}[];
|
|
29
|
-
}
|
|
30
|
-
export interface PublicApiClient {
|
|
31
|
-
addUsersToTeam(teamId: string, members: Member[]): Promise<AddMembershipReponse>;
|
|
32
|
-
removeTeamMemberships(teamId: string, members: Member[]): Promise<RemoveMembershipReponse>;
|
|
33
|
-
}
|
|
34
|
-
export declare class PublicApiClient extends RestClient implements PublicApiClient {
|
|
35
|
-
constructor(serviceUrlRoot: string);
|
|
36
|
-
getTeamDetails(teamId: string): Promise<PublicApiTeamResponse>;
|
|
37
|
-
getTeamMembers(teamId: string, first?: number, after?: string): Promise<PublicApiTeamResponseWithMembers>;
|
|
38
|
-
restoreTeam(teamId: string): Promise<void>;
|
|
39
|
-
}
|
|
40
|
-
declare const _default_1: PublicApiClient;
|
|
41
|
-
export default _default_1;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RestClient } from '../rest-client';
|
|
2
|
-
export declare class ReplinesClient extends RestClient {
|
|
3
|
-
constructor(config?: {});
|
|
4
|
-
getUserTenure(userId: string): Promise<{
|
|
5
|
-
userHireDate: Date;
|
|
6
|
-
employeesHiredBefore: number;
|
|
7
|
-
employeesHiredAfter: number;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
declare const _default_1: ReplinesClient;
|
|
11
|
-
export default _default_1;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ClientConfig } from '../base-client';
|
|
2
|
-
import { BaseGraphQlClient } from '../graphql-client';
|
|
3
|
-
import type { ReportingLines } from './utils/types';
|
|
4
|
-
export declare class ReportingLinesClient extends BaseGraphQlClient {
|
|
5
|
-
constructor(config: ClientConfig);
|
|
6
|
-
getReportingLines(userId: string): Promise<{
|
|
7
|
-
reportingLines: ReportingLines;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
declare const _default_1: ReportingLinesClient;
|
|
11
|
-
export default _default_1;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These are partial types for the reportingLines GQL request from Team Central.
|
|
3
|
-
* Not all data that could be returned is defined here, just what we need.
|
|
4
|
-
*/
|
|
5
|
-
import type { Maybe } from 'graphql/jsutils/Maybe';
|
|
6
|
-
export declare enum AccountIdentifierType {
|
|
7
|
-
ATLASSIAN_ID = "ATLASSIAN_ID",
|
|
8
|
-
BASE64_HASH = "BASE64_HASH",
|
|
9
|
-
UNKNOWN = "UNKNOWN"
|
|
10
|
-
}
|
|
11
|
-
export interface ReportingLinesUserPII {
|
|
12
|
-
name?: Maybe<string>;
|
|
13
|
-
accountStatus?: Maybe<string>;
|
|
14
|
-
picture?: Maybe<string>;
|
|
15
|
-
extendedProfile?: Maybe<{
|
|
16
|
-
jobTitle?: Maybe<string>;
|
|
17
|
-
}>;
|
|
18
|
-
}
|
|
19
|
-
export interface ReportingLinesUser {
|
|
20
|
-
accountIdentifier?: Maybe<string>;
|
|
21
|
-
identifierType?: Maybe<AccountIdentifierType>;
|
|
22
|
-
numberOfDirectReports: number;
|
|
23
|
-
numberOfTotalReports: number;
|
|
24
|
-
pii?: Maybe<ReportingLinesUserPII>;
|
|
25
|
-
}
|
|
26
|
-
export interface ReportingLines {
|
|
27
|
-
managers?: Maybe<ReportingLinesUser[]>;
|
|
28
|
-
peers?: Maybe<ReportingLinesUser[]>;
|
|
29
|
-
reports?: Maybe<ReportingLinesUser[]>;
|
|
30
|
-
user?: Maybe<ReportingLinesUser>;
|
|
31
|
-
lastModifiedDate?: Maybe<string>;
|
|
32
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { HttpError } from '../../common/utils/error';
|
|
2
|
-
import { BaseClient, type ClientConfig } from '../base-client';
|
|
3
|
-
interface FetchOptions {
|
|
4
|
-
headers?: {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
ignoreResponse?: boolean;
|
|
8
|
-
body?: any;
|
|
9
|
-
method?: string;
|
|
10
|
-
shouldLogError?: (e: HttpError) => boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function resetRedirectCountOnceFlag(): void;
|
|
13
|
-
export declare class RestClient extends BaseClient {
|
|
14
|
-
constructor({ serviceUrl, config, }: {
|
|
15
|
-
serviceUrl: string;
|
|
16
|
-
config?: ClientConfig;
|
|
17
|
-
});
|
|
18
|
-
serviceUrl: string;
|
|
19
|
-
setServiceUrl(serviceUrl: string): void;
|
|
20
|
-
getResource<T>(path: string, fetchOptions?: Omit<FetchOptions, 'method' | 'body'>): Promise<T>;
|
|
21
|
-
getResourceCached<T>(path: string, fetchOptions?: Omit<FetchOptions, 'method' | 'body'>, cacheOptions?: {
|
|
22
|
-
expiration: number;
|
|
23
|
-
}): Promise<T>;
|
|
24
|
-
postResource<T>(path: string, data?: Record<string, unknown>, fetchOptions?: FetchOptions): Promise<T>;
|
|
25
|
-
postResourceRaw<T>(path: string, data?: string, fetchOptions?: FetchOptions): Promise<T>;
|
|
26
|
-
patchResource<T>(path: string, data?: Record<string, unknown>): Promise<T>;
|
|
27
|
-
putResource<T>(path: string, data?: Record<string, unknown>, additionalFetchOptions?: FetchOptions): Promise<T>;
|
|
28
|
-
deleteResource<T>(path: string, options?: FetchOptions): Promise<T>;
|
|
29
|
-
/**
|
|
30
|
-
* This function is necessary for if `statusCodeHandler` prescribes a login
|
|
31
|
-
* redirect upon a 401 response.
|
|
32
|
-
* While the default redirect behaviour may be overriden, this function has
|
|
33
|
-
* been kept separate to ensure it cannot be overriden, lest a host
|
|
34
|
-
* application supply embeddable-directory with a custom handler that suffers
|
|
35
|
-
* the infinite redirect bug.
|
|
36
|
-
*/
|
|
37
|
-
preventInfiniteRedirectLoop: (response: Response) => void;
|
|
38
|
-
makeRequest<T>(path: string, additionalFetchOptions?: FetchOptions): Promise<T>;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const REDIRECT_COUNT = "redirectCount";
|
|
2
|
-
export declare const IDENTITY_CSRF_TOKEN = "avatar.csrf.token";
|
|
3
|
-
export declare function setCookie(key: string, value: string | number): void;
|
|
4
|
-
export declare function getCookieAsInteger(key: string, defaultValue?: number): number;
|
|
5
|
-
export declare function clearCookie(key: string): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseErrorMessage(response: Response): Promise<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseResponse(response: Response): Promise<any> | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stripUUIDFromPath: (path: string) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const SENTRY_PUBLIC_KEY = "1dc056d49dfe4df8961dc1b810e4620d";
|
|
2
|
-
export declare const SENTRY_PROJECT_ID = "5988845";
|
|
3
|
-
export declare const SENTRY_FEDRAMP_PUBLIC_KEY = "067abcc494be9a87b3cdf9416f2b97d5";
|
|
4
|
-
export declare const SENTRY_FEDRAMP_PROJECT_ID = "47";
|
|
5
|
-
export declare const SENTRY_DSN: 'https://1dc056d49dfe4df8961dc1b810e4620d@o55978.ingest.sentry.io/5988845' | 'https://067abcc494be9a87b3cdf9416f2b97d5@sentry.atlassian-us-gov-mod.com/47';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { addBreadcrumb, logException, logErrorMessage, logInfoMessage, createErrorHandler, logExceptionWithPackageContext, logErrorMessageWithPackageContext, logInfoMessageWithPackageContext, createErrorHandlerWithPackageContext, } from './main';
|
|
2
|
-
export { useTeamsSentryClientSetup } from './utils/use-teams-sentry-client-setup';
|
|
3
|
-
export type { CreateErrorHandler, SentryClient } from './types';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Breadcrumb } from '@sentry/browser';
|
|
2
|
-
import { type CreateErrorHandler, type ErrorHandler, type SentryTags } from './types';
|
|
3
|
-
type Context = any & {
|
|
4
|
-
/**
|
|
5
|
-
* Any tags to be added to the event.
|
|
6
|
-
*/
|
|
7
|
-
tags?: SentryTags;
|
|
8
|
-
packageName?: string;
|
|
9
|
-
packageVersion?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function logException(ex: Error | unknown, name: string, context?: Context): Promise<void>;
|
|
12
|
-
export declare function logErrorMessage(message: string, context?: Context): void;
|
|
13
|
-
export declare function logInfoMessage(message: string, context?: Context): void;
|
|
14
|
-
export declare const createErrorHandler: CreateErrorHandler;
|
|
15
|
-
export declare const logExceptionWithPackageContext: (packageContext: {
|
|
16
|
-
packageName: string;
|
|
17
|
-
packageVersion: string;
|
|
18
|
-
}) => (...args: Parameters<typeof logException>) => void;
|
|
19
|
-
export declare const logErrorMessageWithPackageContext: (packageContext: {
|
|
20
|
-
packageName: string;
|
|
21
|
-
packageVersion: string;
|
|
22
|
-
}) => (...args: Parameters<typeof logErrorMessage>) => void;
|
|
23
|
-
export declare const logInfoMessageWithPackageContext: (packageContext: {
|
|
24
|
-
packageName: string;
|
|
25
|
-
packageVersion: string;
|
|
26
|
-
}) => (...args: Parameters<typeof logInfoMessage>) => void;
|
|
27
|
-
export declare const createErrorHandlerWithPackageContext: (packageContext: {
|
|
28
|
-
packageName: string;
|
|
29
|
-
packageVersion: string;
|
|
30
|
-
}) => (...args: Parameters<typeof createErrorHandler>) => ErrorHandler;
|
|
31
|
-
export declare function addBreadcrumb(crumb: string | Breadcrumb): Promise<void>;
|
|
32
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { BrowserOptions, captureException, captureMessage as captureMessageSentry, init, Integrations, Scope } from '@sentry/browser';
|
|
2
|
-
/** Duplicated type to avoid a dependency on teams-common */
|
|
3
|
-
export type CreateErrorHandler = (meta: {
|
|
4
|
-
packageName: string;
|
|
5
|
-
packageVersion: string;
|
|
6
|
-
teamName: string;
|
|
7
|
-
}, commonTags?: Record<string, string>) => ErrorHandler;
|
|
8
|
-
export type ErrorHandler = (error: Error, message: string, tags?: Record<string, string>) => void;
|
|
9
|
-
export interface SentryOptions extends BrowserOptions {
|
|
10
|
-
whitelistUrls?: (string | RegExp)[];
|
|
11
|
-
ignoreUrls?: (string | RegExp)[];
|
|
12
|
-
}
|
|
13
|
-
export interface SentryTags {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
}
|
|
16
|
-
export interface SentryClient {
|
|
17
|
-
init: typeof init;
|
|
18
|
-
Integrations: typeof Integrations;
|
|
19
|
-
withScope(callback: (scope: Scope) => void): void;
|
|
20
|
-
captureMessage: typeof captureMessageSentry;
|
|
21
|
-
captureException: typeof captureException;
|
|
22
|
-
}
|
|
23
|
-
export interface SentryInstallConfig {
|
|
24
|
-
env?: string;
|
|
25
|
-
version?: string;
|
|
26
|
-
noGlobals?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated use `initialScope` instead
|
|
29
|
-
*/
|
|
30
|
-
tags?: SentryTags;
|
|
31
|
-
initialScope?: {
|
|
32
|
-
tags?: SentryTags;
|
|
33
|
-
};
|
|
34
|
-
dsn?: string;
|
|
35
|
-
attachStacktrace?: boolean;
|
|
36
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type SentryClient } from '../types';
|
|
2
|
-
export type SentryClientConfig = {
|
|
3
|
-
appName?: string;
|
|
4
|
-
env?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare let sentryClient: SentryClient | undefined;
|
|
7
|
-
export declare const setSentryClient: (client: SentryClient) => void;
|
|
8
|
-
export declare const getSentryClient: () => Promise<SentryClient | undefined>;
|
|
9
|
-
export declare function setupSentryClient({ appName, env }: SentryClientConfig): Promise<void>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type ClientConfig } from '../base-client';
|
|
2
|
-
import { BaseGraphQlClient } from '../graphql-client';
|
|
3
|
-
import { type AddTeamWatcherMutationResponse } from './mutations/add-team-watcher.graphql';
|
|
4
|
-
import { type CreateTagMutationResponse, type CreateTagMutationVariables } from './mutations/create-tag-mutation.graphql';
|
|
5
|
-
import { type HelpPointerCreateMutationResponse, type HelpPointerCreateMutationVariables } from './mutations/help-pointer-create-mutation.graphql';
|
|
6
|
-
import { type HelpPointerDeleteMutationResponse, type HelpPointerDeleteMutationVariables } from './mutations/help-pointer-delete-mutation.graphql';
|
|
7
|
-
import { type HelpPointerUpdateMutationResponse, type HelpPointerUpdateMutationVariables } from './mutations/help-pointer-update-mutation.graphql';
|
|
8
|
-
import { type KudosDeleteMutationResponse } from './mutations/kudos-delete-mutation.graphql';
|
|
9
|
-
import { type RemoveTeamWatcherMutationResponse } from './mutations/remove-team-watcher.graphql';
|
|
10
|
-
import { type IsTeamWatcherQueryResponse } from './queries/is-team-watcher.graphql';
|
|
11
|
-
import { type TagListQueryResponse, type TagListQueryVariables } from './queries/tag-list-query.graphql';
|
|
12
|
-
export declare class TeamCentralClient extends BaseGraphQlClient {
|
|
13
|
-
constructor(baseUrl: string, config: ClientConfig);
|
|
14
|
-
setBaseUrl(baseUrl: string): void;
|
|
15
|
-
isTeamWatcher(teamId: string, cloudId?: string): Promise<IsTeamWatcherQueryResponse>;
|
|
16
|
-
addTeamWatcher(teamId: string, cloudId?: string): Promise<AddTeamWatcherMutationResponse>;
|
|
17
|
-
removeTeamWatcher(teamId: string, cloudId?: string): Promise<RemoveTeamWatcherMutationResponse>;
|
|
18
|
-
deleteKudos(id: string): Promise<KudosDeleteMutationResponse>;
|
|
19
|
-
queryTagList(variables: TagListQueryVariables): Promise<TagListQueryResponse>;
|
|
20
|
-
createTag(variables: CreateTagMutationVariables): Promise<CreateTagMutationResponse>;
|
|
21
|
-
createHelpPointer(variables: HelpPointerCreateMutationVariables): Promise<HelpPointerCreateMutationResponse>;
|
|
22
|
-
updateHelpPointer(variables: HelpPointerUpdateMutationVariables): Promise<HelpPointerUpdateMutationResponse>;
|
|
23
|
-
deleteHelpPointer(variables: HelpPointerDeleteMutationVariables): Promise<HelpPointerDeleteMutationResponse>;
|
|
24
|
-
}
|
|
25
|
-
declare const _default_1: TeamCentralClient;
|
|
26
|
-
export default _default_1;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const HelpPointerCreateMutation: string;
|
|
2
|
-
export type HelpPointerCreateMutationVariables = {
|
|
3
|
-
cloudId: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
icon?: {
|
|
6
|
-
id?: string;
|
|
7
|
-
color: string;
|
|
8
|
-
shortName: string;
|
|
9
|
-
};
|
|
10
|
-
tagUuids?: Array<string | unknown>;
|
|
11
|
-
link?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
teamId?: string;
|
|
14
|
-
type?: string;
|
|
15
|
-
};
|
|
16
|
-
export type HelpPointerCreateMutationResponse = {
|
|
17
|
-
helpPointer: {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const HelpPointerUpdateMutation: string;
|
|
2
|
-
export type HelpPointerUpdateMutationVariables = {
|
|
3
|
-
id: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
teamId?: string;
|
|
6
|
-
newTeamName?: string;
|
|
7
|
-
icon?: {
|
|
8
|
-
id?: string;
|
|
9
|
-
color: string;
|
|
10
|
-
shortName: string;
|
|
11
|
-
};
|
|
12
|
-
tagUuids?: Array<string | unknown>;
|
|
13
|
-
link?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
};
|
|
17
|
-
export type HelpPointerUpdateMutationResponse = {
|
|
18
|
-
helpPointer: {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
package/dist/types-ts4.5/services/team-central-client/mutations/remove-team-watcher.graphql.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const RemoveTeamWatcherMutation: string;
|
|
2
|
-
export type RemoveTeamWatcherMutationVariables = {
|
|
3
|
-
teamId: string;
|
|
4
|
-
cloudId?: string;
|
|
5
|
-
};
|
|
6
|
-
export type RemoveTeamWatcherMutationResponse = {
|
|
7
|
-
isWatching: boolean;
|
|
8
|
-
__typename: 'removeTeamWatcherPayload';
|
|
9
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare const TagListQuery: string;
|
|
2
|
-
export type TagListQueryVariables = {
|
|
3
|
-
q: string;
|
|
4
|
-
cloudId: string;
|
|
5
|
-
first?: number;
|
|
6
|
-
};
|
|
7
|
-
export type TagListQueryResponse = {
|
|
8
|
-
edges: {
|
|
9
|
-
node: {
|
|
10
|
-
id: string;
|
|
11
|
-
uuid: string;
|
|
12
|
-
name: string;
|
|
13
|
-
projects: {
|
|
14
|
-
count: number;
|
|
15
|
-
};
|
|
16
|
-
goals: {
|
|
17
|
-
count: number;
|
|
18
|
-
};
|
|
19
|
-
helpLinks: {
|
|
20
|
-
count: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RestClient } from '../rest-client';
|
|
2
|
-
export declare class TeamsInSlackClient extends RestClient {
|
|
3
|
-
constructor(config?: {});
|
|
4
|
-
getTeamInSlack(teamId: string, teamName: string): Promise<{
|
|
5
|
-
connected: boolean;
|
|
6
|
-
slackChannelId: string;
|
|
7
|
-
slackChannelName: string;
|
|
8
|
-
usergroupHandle: string;
|
|
9
|
-
id: string;
|
|
10
|
-
}>;
|
|
11
|
-
disconnectTeamInSlack(teamId: string): Promise<{
|
|
12
|
-
connected: boolean;
|
|
13
|
-
slackChannelId: string;
|
|
14
|
-
slackChannelName: string;
|
|
15
|
-
usergroupHandle: string;
|
|
16
|
-
id: string;
|
|
17
|
-
}>;
|
|
18
|
-
updateTeamInSlack(teamId: string, channelId: string, usergroupHandle: string): Promise<{
|
|
19
|
-
connected: boolean;
|
|
20
|
-
slackChannelId: string;
|
|
21
|
-
slackChannelName: string;
|
|
22
|
-
usergroupHandle: string;
|
|
23
|
-
id: string;
|
|
24
|
-
}>;
|
|
25
|
-
}
|
|
26
|
-
declare const _default_1: TeamsInSlackClient;
|
|
27
|
-
export default _default_1;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DocumentNode } from 'graphql';
|
|
2
|
-
import { type QueryOptions, type QueryResponse } from './types';
|
|
3
|
-
export declare const useQueryLight: <TParams, TResult>(query: DocumentNode, options: QueryOptions<TParams>) => QueryResponse<TParams, TResult>;
|
|
4
|
-
export declare const useLazyQueryLight: <TParams, TResult>(query: DocumentNode, options: Omit<QueryOptions<TParams>, "skip">) => [
|
|
5
|
-
() => void,
|
|
6
|
-
QueryResponse<TParams, TResult>
|
|
7
|
-
];
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type GraphQLError } from 'graphql';
|
|
2
|
-
export interface QueryOptions<TParams> {
|
|
3
|
-
serviceUrl: string;
|
|
4
|
-
variables?: TParams;
|
|
5
|
-
operationName: string;
|
|
6
|
-
skip?: boolean;
|
|
7
|
-
customHeaders?: Record<string, string>;
|
|
8
|
-
}
|
|
9
|
-
export declare enum ErrorCategory {
|
|
10
|
-
NotFound = "NotFound",
|
|
11
|
-
NotPermitted = "NotPermitted",
|
|
12
|
-
MalformedInput = "MalformedInput",
|
|
13
|
-
Internal = "Internal"
|
|
14
|
-
}
|
|
15
|
-
export declare class ActualGraphQLError extends Error {
|
|
16
|
-
extensions?: UseQueryLightErrorExtensions;
|
|
17
|
-
message: string;
|
|
18
|
-
path: readonly (string | number)[] | undefined;
|
|
19
|
-
category?: ErrorCategory;
|
|
20
|
-
type?: string;
|
|
21
|
-
constructor(message: string);
|
|
22
|
-
}
|
|
23
|
-
export interface QueryStatus<TResult> {
|
|
24
|
-
loading: boolean;
|
|
25
|
-
data?: TResult;
|
|
26
|
-
error?: UseQueryLightError;
|
|
27
|
-
}
|
|
28
|
-
type UseQueryLightErrorExtensions = {
|
|
29
|
-
classification?: string;
|
|
30
|
-
statusCode?: number;
|
|
31
|
-
};
|
|
32
|
-
export declare class UseQueryLightError extends Error {
|
|
33
|
-
networkError?: Error | null;
|
|
34
|
-
graphQLErrors?: ActualGraphQLError[];
|
|
35
|
-
extensions?: UseQueryLightErrorExtensions;
|
|
36
|
-
extraInfo?: any;
|
|
37
|
-
constructor(message: string, name?: string, graphQLErrors?: ActualGraphQLError[], networkError?: Error, extensions?: UseQueryLightErrorExtensions, extraInfo?: any);
|
|
38
|
-
}
|
|
39
|
-
export interface QueryResponse<TParams, TResult> extends QueryStatus<TResult> {
|
|
40
|
-
loading: boolean;
|
|
41
|
-
data?: TResult;
|
|
42
|
-
error?: UseQueryLightError;
|
|
43
|
-
refetch: () => void;
|
|
44
|
-
fetchMore: (args: FetchMoreArgs<TParams, TResult>) => void;
|
|
45
|
-
}
|
|
46
|
-
export interface QueryResult<TResult> {
|
|
47
|
-
data?: TResult;
|
|
48
|
-
extensions: {
|
|
49
|
-
errorNumber: number;
|
|
50
|
-
};
|
|
51
|
-
errors?: GraphQLError[];
|
|
52
|
-
}
|
|
53
|
-
export interface FetchMoreArgs<TParams, TResult> {
|
|
54
|
-
variables: Partial<TParams>;
|
|
55
|
-
handleDataMerge: (prevData: TResult | undefined, newData: TResult | undefined) => TResult | undefined;
|
|
56
|
-
}
|
|
57
|
-
export {};
|