@atlaskit/teams-client 4.33.5 → 5.0.1

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 (164) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/agg-client/package.json +1 -8
  3. package/agg-client/types/package.json +1 -8
  4. package/ari/package.json +1 -8
  5. package/association/package.json +1 -8
  6. package/client/package.json +1 -8
  7. package/config/package.json +1 -8
  8. package/dist/cjs/common/utils/ufo/index.js +2 -2
  9. package/dist/cjs/services/collaborationgraph-client/index.js +10 -23
  10. package/dist/cjs/services/sentry/utils/get-sentry-config.js +1 -1
  11. package/dist/es2019/common/utils/ufo/index.js +2 -2
  12. package/dist/es2019/services/collaborationgraph-client/index.js +8 -17
  13. package/dist/es2019/services/sentry/utils/get-sentry-config.js +1 -1
  14. package/dist/esm/common/utils/ufo/index.js +2 -2
  15. package/dist/esm/services/collaborationgraph-client/index.js +10 -23
  16. package/dist/esm/services/sentry/utils/get-sentry-config.js +1 -1
  17. package/dist/types/services/collaborationgraph-client/index.d.ts +2 -10
  18. package/endpoints/package.json +1 -8
  19. package/error/package.json +1 -8
  20. package/generate-data/package.json +1 -8
  21. package/has-permission/package.json +1 -8
  22. package/initialise-sentry/package.json +1 -8
  23. package/legion-client/package.json +1 -8
  24. package/links/package.json +1 -8
  25. package/main/package.json +1 -8
  26. package/media/package.json +1 -8
  27. package/membership/package.json +1 -8
  28. package/mocks/package.json +1 -8
  29. package/package.json +6 -14
  30. package/permissions/package.json +1 -8
  31. package/permissions/types/package.json +1 -8
  32. package/public/package.json +1 -8
  33. package/reporting-lines-client/utils/types/package.json +1 -8
  34. package/sentry/main/package.json +1 -8
  35. package/sentry/package.json +1 -8
  36. package/sentry/types/package.json +1 -8
  37. package/slack/package.json +1 -8
  38. package/sort-teams/package.json +1 -8
  39. package/team/package.json +1 -8
  40. package/team-container/package.json +1 -8
  41. package/tenure/package.json +1 -8
  42. package/types/package.json +1 -8
  43. package/types/team/package.json +1 -8
  44. package/ufo/package.json +1 -8
  45. package/unlink-container-mutation/package.json +1 -8
  46. package/use-query-light/main/package.json +1 -8
  47. package/use-query-light/package.json +1 -8
  48. package/use-query-light/types/package.json +1 -8
  49. package/use-teams-client-setup/package.json +1 -8
  50. package/use-teams-sentry-client-setup/package.json +1 -8
  51. package/user/package.json +1 -8
  52. package/user-info-provider/main/package.json +1 -8
  53. package/user-info-provider/package.json +1 -8
  54. package/utils/package.json +1 -8
  55. package/dist/types-ts4.5/common/types.d.ts +0 -4
  56. package/dist/types-ts4.5/common/utils/ari.d.ts +0 -7
  57. package/dist/types-ts4.5/common/utils/error/index.d.ts +0 -91
  58. package/dist/types-ts4.5/common/utils/http.d.ts +0 -31
  59. package/dist/types-ts4.5/common/utils/index.d.ts +0 -2
  60. package/dist/types-ts4.5/common/utils/permissions/constants.d.ts +0 -30
  61. package/dist/types-ts4.5/common/utils/permissions/has-permission.d.ts +0 -40
  62. package/dist/types-ts4.5/common/utils/permissions/index.d.ts +0 -3
  63. package/dist/types-ts4.5/common/utils/permissions/types.d.ts +0 -31
  64. package/dist/types-ts4.5/common/utils/sort-teams.d.ts +0 -2
  65. package/dist/types-ts4.5/common/utils/status-code-handlers-provider.d.ts +0 -17
  66. package/dist/types-ts4.5/common/utils/team.d.ts +0 -5
  67. package/dist/types-ts4.5/common/utils/ufo/constants.d.ts +0 -82
  68. package/dist/types-ts4.5/common/utils/ufo/index.d.ts +0 -6
  69. package/dist/types-ts4.5/common/utils/ufo/utils.d.ts +0 -11
  70. package/dist/types-ts4.5/index.d.ts +0 -15
  71. package/dist/types-ts4.5/mocks/endpoints.d.ts +0 -22
  72. package/dist/types-ts4.5/mocks/generate-data.d.ts +0 -16
  73. package/dist/types-ts4.5/mocks/index.d.ts +0 -2
  74. package/dist/types-ts4.5/mocks/invitations.d.ts +0 -11
  75. package/dist/types-ts4.5/mocks/responses.d.ts +0 -75
  76. package/dist/types-ts4.5/mocks/team-link.d.ts +0 -7
  77. package/dist/types-ts4.5/mocks/team.d.ts +0 -14
  78. package/dist/types-ts4.5/mocks/user.d.ts +0 -15
  79. package/dist/types-ts4.5/mocks/with-faker.d.ts +0 -12
  80. package/dist/types-ts4.5/services/agg-client/index.d.ts +0 -36
  81. package/dist/types-ts4.5/services/agg-client/mocks/index.d.ts +0 -49
  82. package/dist/types-ts4.5/services/agg-client/types.d.ts +0 -13
  83. package/dist/types-ts4.5/services/agg-client/utils/mutations/unlink-container-mutation.d.ts +0 -18
  84. package/dist/types-ts4.5/services/agg-client/utils/queries/number-of-team-connected-to-container-query.d.ts +0 -11
  85. package/dist/types-ts4.5/services/agg-client/utils/queries/team-connected-to-container-query.d.ts +0 -47
  86. package/dist/types-ts4.5/services/agg-client/utils/queries/team-containers-query.d.ts +0 -52
  87. package/dist/types-ts4.5/services/agg-client/utils/queries/team-has-agents-query.d.ts +0 -15
  88. package/dist/types-ts4.5/services/agg-client/utils/queries/team-membership-query.d.ts +0 -33
  89. package/dist/types-ts4.5/services/agg-client/utils/queries/user-query.d.ts +0 -31
  90. package/dist/types-ts4.5/services/agg-client/utils/user-type.d.ts +0 -7
  91. package/dist/types-ts4.5/services/base-client/index.d.ts +0 -37
  92. package/dist/types-ts4.5/services/collaborationgraph-client/index.d.ts +0 -70
  93. package/dist/types-ts4.5/services/constants.d.ts +0 -2
  94. package/dist/types-ts4.5/services/directory-client/index.d.ts +0 -53
  95. package/dist/types-ts4.5/services/graphql-client/index.d.ts +0 -1
  96. package/dist/types-ts4.5/services/graphql-client/main.d.ts +0 -14
  97. package/dist/types-ts4.5/services/graphql-client/types.d.ts +0 -20
  98. package/dist/types-ts4.5/services/graphql-client/utils/index.d.ts +0 -3
  99. package/dist/types-ts4.5/services/hooks/use-teams-client-setup.d.ts +0 -14
  100. package/dist/types-ts4.5/services/identity-client/index.d.ts +0 -34
  101. package/dist/types-ts4.5/services/identity-client/utils.d.ts +0 -85
  102. package/dist/types-ts4.5/services/index.d.ts +0 -1
  103. package/dist/types-ts4.5/services/invitations-client/index.d.ts +0 -11
  104. package/dist/types-ts4.5/services/invitations-client/types.d.ts +0 -67
  105. package/dist/types-ts4.5/services/invitations-client/utils/index.d.ts +0 -7
  106. package/dist/types-ts4.5/services/invitations-client/utils/types.d.ts +0 -7
  107. package/dist/types-ts4.5/services/legion-client/index.d.ts +0 -164
  108. package/dist/types-ts4.5/services/legion-client/types.d.ts +0 -128
  109. package/dist/types-ts4.5/services/main.d.ts +0 -452
  110. package/dist/types-ts4.5/services/mutability-client/index.d.ts +0 -8
  111. package/dist/types-ts4.5/services/mutability-client/types.d.ts +0 -5
  112. package/dist/types-ts4.5/services/object-resolver-client/index.d.ts +0 -10
  113. package/dist/types-ts4.5/services/object-resolver-client/types.d.ts +0 -69
  114. package/dist/types-ts4.5/services/object-resolver-client/utils.d.ts +0 -18
  115. package/dist/types-ts4.5/services/perms-client/index.d.ts +0 -16
  116. package/dist/types-ts4.5/services/public-api-client/generated/data-contracts.d.ts +0 -112
  117. package/dist/types-ts4.5/services/public-api-client/index.d.ts +0 -41
  118. package/dist/types-ts4.5/services/replines-client/index.d.ts +0 -11
  119. package/dist/types-ts4.5/services/reporting-lines-client/index.d.ts +0 -11
  120. package/dist/types-ts4.5/services/reporting-lines-client/utils/queries/ReportingLinesQueryWithAccountStatus.graphql.d.ts +0 -2
  121. package/dist/types-ts4.5/services/reporting-lines-client/utils/types.d.ts +0 -32
  122. package/dist/types-ts4.5/services/rest-client/index.d.ts +0 -40
  123. package/dist/types-ts4.5/services/rest-client/utils/cookie.d.ts +0 -5
  124. package/dist/types-ts4.5/services/rest-client/utils/parse-error-message.d.ts +0 -1
  125. package/dist/types-ts4.5/services/rest-client/utils/parse-response.d.ts +0 -1
  126. package/dist/types-ts4.5/services/rest-client/utils/strip-uuid.d.ts +0 -1
  127. package/dist/types-ts4.5/services/sentry/constants.d.ts +0 -5
  128. package/dist/types-ts4.5/services/sentry/index.d.ts +0 -3
  129. package/dist/types-ts4.5/services/sentry/main.d.ts +0 -32
  130. package/dist/types-ts4.5/services/sentry/types.d.ts +0 -36
  131. package/dist/types-ts4.5/services/sentry/utils/get-sentry-config.d.ts +0 -2
  132. package/dist/types-ts4.5/services/sentry/utils/initialise-sentry.d.ts +0 -2
  133. package/dist/types-ts4.5/services/sentry/utils/sentry-client.d.ts +0 -9
  134. package/dist/types-ts4.5/services/sentry/utils/use-teams-sentry-client-setup.d.ts +0 -3
  135. package/dist/types-ts4.5/services/team-central-client/index.d.ts +0 -26
  136. package/dist/types-ts4.5/services/team-central-client/mutations/add-team-watcher.graphql.d.ts +0 -9
  137. package/dist/types-ts4.5/services/team-central-client/mutations/create-tag-mutation.graphql.d.ts +0 -12
  138. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-create-mutation.graphql.d.ts +0 -20
  139. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-delete-mutation.graphql.d.ts +0 -7
  140. package/dist/types-ts4.5/services/team-central-client/mutations/help-pointer-update-mutation.graphql.d.ts +0 -21
  141. package/dist/types-ts4.5/services/team-central-client/mutations/kudos-delete-mutation.graphql.d.ts +0 -10
  142. package/dist/types-ts4.5/services/team-central-client/mutations/remove-team-watcher.graphql.d.ts +0 -9
  143. package/dist/types-ts4.5/services/team-central-client/queries/is-team-watcher.graphql.d.ts +0 -8
  144. package/dist/types-ts4.5/services/team-central-client/queries/tag-list-query.graphql.d.ts +0 -24
  145. package/dist/types-ts4.5/services/team-central-client/utils.d.ts +0 -2
  146. package/dist/types-ts4.5/services/teams-in-slack-client/index.d.ts +0 -27
  147. package/dist/types-ts4.5/services/types.d.ts +0 -10
  148. package/dist/types-ts4.5/services/use-query-light/index.d.ts +0 -3
  149. package/dist/types-ts4.5/services/use-query-light/main.d.ts +0 -7
  150. package/dist/types-ts4.5/services/use-query-light/types.d.ts +0 -57
  151. package/dist/types-ts4.5/services/user-info-provider/index.d.ts +0 -1
  152. package/dist/types-ts4.5/services/user-info-provider/main.d.ts +0 -14
  153. package/dist/types-ts4.5/services/user-preferences-client/index.d.ts +0 -9
  154. package/dist/types-ts4.5/types/association.d.ts +0 -8
  155. package/dist/types-ts4.5/types/config.d.ts +0 -7
  156. package/dist/types-ts4.5/types/index.d.ts +0 -16
  157. package/dist/types-ts4.5/types/links.d.ts +0 -31
  158. package/dist/types-ts4.5/types/media.d.ts +0 -6
  159. package/dist/types-ts4.5/types/membership.d.ts +0 -35
  160. package/dist/types-ts4.5/types/slack.d.ts +0 -7
  161. package/dist/types-ts4.5/types/team-container.d.ts +0 -29
  162. package/dist/types-ts4.5/types/team.d.ts +0 -188
  163. package/dist/types-ts4.5/types/tenure.d.ts +0 -5
  164. package/dist/types-ts4.5/types/user.d.ts +0 -55
@@ -1,18 +0,0 @@
1
- import { type IconItemFailure, type IconItemSuccess, type LinkIconData, type RawLinkData } from './types';
2
- /**
3
- * Formats data into LinkIconData with appropriate Jira/Confluence favicon urls.
4
- * Undefined icons remain undefined.
5
- * Exported for testing purposes.
6
- *
7
- * Confluence favicon extension: /wiki/favicon.ico
8
- * Jira favicon extension: /favicon.ico
9
- *
10
- * @param jsonLd - raw JSON-LD data for an individual link
11
- */
12
- export declare const formatLinkIconData: (jsonLd: RawLinkData) => LinkIconData;
13
- /**
14
- * Converts batched list of json-ld responses into list of formatted LinkIconData { url, icon_url }
15
- *
16
- * @param batchResp - list of json-ld responses { body, status }
17
- */
18
- export declare const transformIconData: (batchResp: (IconItemSuccess | IconItemFailure)[]) => LinkIconData[];
@@ -1,16 +0,0 @@
1
- import { RestClient } from '../rest-client';
2
- export declare class PermsClient extends RestClient {
3
- getIsSiteAdmin(
4
- /**
5
- * @private
6
- * @deprecated don't need to pass param, value is taken from `this.getCloudId()` instead
7
- */
8
- cloudId?: string): Promise<boolean>;
9
- }
10
- /**
11
- * REST Client to make calls to resources on the activity service.
12
- *
13
- * @type {RestClient}
14
- */
15
- declare const _default_1: PermsClient;
16
- export default _default_1;
@@ -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,2 +0,0 @@
1
- declare const _default_1: string;
2
- 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,2 +0,0 @@
1
- import { type SentryInstallConfig, type SentryOptions } from '../types';
2
- export declare function getSentryConfig(options: SentryInstallConfig): SentryOptions;
@@ -1,2 +0,0 @@
1
- import { type SentryClient, type SentryInstallConfig } from '../types';
2
- export declare function initialiseSentry(client: SentryClient, options: SentryInstallConfig): Promise<void>;
@@ -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,3 +0,0 @@
1
- import type { SentryClient } from '../types';
2
- import { type SentryClientConfig } from './sentry-client';
3
- export declare const useTeamsSentryClientSetup: (isSentryEnabled: boolean, config: SentryClientConfig) => SentryClient | undefined;
@@ -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,9 +0,0 @@
1
- export declare const AddTeamWatcherMutation: string;
2
- export type AddTeamWatcherMutationVariables = {
3
- teamId: string;
4
- cloudId?: string;
5
- };
6
- export type AddTeamWatcherMutationResponse = {
7
- isWatching: boolean;
8
- __typename: 'addTeamWatcherPayload';
9
- };
@@ -1,12 +0,0 @@
1
- export declare const CreateTagMutation: string;
2
- export type CreateTagMutationVariables = {
3
- name: string;
4
- cloudId: string;
5
- };
6
- export type CreateTagMutationResponse = {
7
- tag: {
8
- id: string;
9
- uuid: string;
10
- name: string;
11
- };
12
- };
@@ -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,7 +0,0 @@
1
- export declare const HelpPointerDeleteMutation: string;
2
- export type HelpPointerDeleteMutationVariables = {
3
- id: string;
4
- };
5
- export type HelpPointerDeleteMutationResponse = {
6
- success: boolean;
7
- };
@@ -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
- };
@@ -1,10 +0,0 @@
1
- export declare const KudosDeleteMutation: string;
2
- export type KudosDeleteMutationVariables = {
3
- id: string;
4
- };
5
- export type KudosDeleteMutationResponse = {
6
- success: boolean;
7
- kudos: {
8
- id: string;
9
- };
10
- };
@@ -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,8 +0,0 @@
1
- export declare const IsTeamWatcherQuery: string;
2
- export type IsTeamWatcherQueryVariables = {
3
- teamId: string;
4
- cloudId: string;
5
- };
6
- export type IsTeamWatcherQueryResponse = {
7
- watching: boolean;
8
- };
@@ -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,2 +0,0 @@
1
- export declare const getTeamCentralGraphqlUrl: (baseUrl: string, cloudId: string) => string;
2
- export declare const getUnshardedTeamCentralGraphqlUrl: (baseUrl: string) => string;
@@ -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,10 +0,0 @@
1
- export type ClientContext = {
2
- cloudId: string;
3
- orgId?: string;
4
- userId?: string;
5
- };
6
- export type ClientContextProps = {
7
- cloudId?: string | null;
8
- orgId?: string;
9
- userId?: string;
10
- };
@@ -1,3 +0,0 @@
1
- export { useQueryLight, useLazyQueryLight } from './main';
2
- export type { QueryOptions, FetchMoreArgs, ActualGraphQLError } from './types';
3
- export { UseQueryLightError } from './types';
@@ -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
- ];