@atlaskit/smart-user-picker 10.1.0 → 11.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 +33 -0
- package/components/package.json +1 -8
- package/default-value-hydration-client/package.json +1 -8
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/SmartUserPicker.js +91 -91
- package/dist/cjs/service/default-value-hydration-client.js +30 -30
- package/dist/cjs/service/users-client.js +4 -4
- package/dist/cjs/util/i18n-util.js +38 -38
- package/dist/es2019/analytics.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/SmartUserPicker.js +90 -90
- package/dist/esm/service/default-value-hydration-client.js +30 -30
- package/dist/esm/service/users-client.js +4 -4
- package/dist/esm/util/i18n-util.js +37 -37
- package/option/package.json +1 -8
- package/package.json +11 -17
- package/recommendation-client/package.json +1 -8
- package/types/package.json +1 -8
- package/dist/types-ts4.5/analytics.d.ts +0 -22
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +0 -9
- package/dist/types-ts4.5/components/SmartUserPicker.d.ts +0 -43
- package/dist/types-ts4.5/components/index.d.ts +0 -4
- package/dist/types-ts4.5/config/index.d.ts +0 -6
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -8
- package/dist/types-ts4.5/i18n/da.d.ts +0 -8
- package/dist/types-ts4.5/i18n/de.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -8
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -8
- package/dist/types-ts4.5/i18n/es.d.ts +0 -8
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -8
- package/dist/types-ts4.5/i18n/is.d.ts +0 -7
- package/dist/types-ts4.5/i18n/it.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -8
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -27
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -8
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ro.d.ts +0 -7
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sl.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -8
- package/dist/types-ts4.5/i18n/th.d.ts +0 -8
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -8
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -8
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -8
- package/dist/types-ts4.5/i18n.d.ts +0 -47
- package/dist/types-ts4.5/index.d.ts +0 -5
- package/dist/types-ts4.5/option.d.ts +0 -2
- package/dist/types-ts4.5/service/atl-attribution.d.ts +0 -20
- package/dist/types-ts4.5/service/constants.d.ts +0 -4
- package/dist/types-ts4.5/service/default-value-hydration-client.d.ts +0 -11
- package/dist/types-ts4.5/service/graphqlUtils.d.ts +0 -16
- package/dist/types-ts4.5/service/index.d.ts +0 -2
- package/dist/types-ts4.5/service/recommendation-client.d.ts +0 -9
- package/dist/types-ts4.5/service/teams-client.d.ts +0 -15
- package/dist/types-ts4.5/service/users-client.d.ts +0 -12
- package/dist/types-ts4.5/service/users-transformer.d.ts +0 -19
- package/dist/types-ts4.5/types.d.ts +0 -320
- package/dist/types-ts4.5/ufoExperiences.d.ts +0 -11
- package/dist/types-ts4.5/util/i18n-util.d.ts +0 -11
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/hr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/hu';
|
|
8
|
-
export default translations;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'fabric.elements.user-picker.placeholder': string;
|
|
3
|
-
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
4
|
-
'fabric.elements.user-picker.multi.remove-item': string;
|
|
5
|
-
'fabric.elements.user-picker.single.clear': string;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/it';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/ja';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/ko';
|
|
8
|
-
export default translations;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
zh: string;
|
|
3
|
-
cs: string;
|
|
4
|
-
da: string;
|
|
5
|
-
nl: string;
|
|
6
|
-
en: string;
|
|
7
|
-
en_GB: string;
|
|
8
|
-
et: string;
|
|
9
|
-
fi: string;
|
|
10
|
-
fr: string;
|
|
11
|
-
de: string;
|
|
12
|
-
hu: string;
|
|
13
|
-
is: string;
|
|
14
|
-
it: string;
|
|
15
|
-
ja: string;
|
|
16
|
-
ko: string;
|
|
17
|
-
nb: string;
|
|
18
|
-
pl: string;
|
|
19
|
-
pt_BR: string;
|
|
20
|
-
pt_PT: string;
|
|
21
|
-
ro: string;
|
|
22
|
-
ru: string;
|
|
23
|
-
sk: string;
|
|
24
|
-
es: string;
|
|
25
|
-
sv: string;
|
|
26
|
-
};
|
|
27
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/nb';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/nl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/pl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/pt_BR';
|
|
8
|
-
export default translations;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'fabric.elements.user-picker.placeholder': string;
|
|
3
|
-
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
4
|
-
'fabric.elements.user-picker.multi.remove-item': string;
|
|
5
|
-
'fabric.elements.user-picker.single.clear': string;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/ru';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/sl';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/sr_RS';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/sr_YR';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/sv';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/th';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/tr';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/uk';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/vi';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/zh';
|
|
8
|
-
export default translations;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTE:
|
|
3
|
-
*
|
|
4
|
-
* This file is automatically generated by Traduki 2.0.
|
|
5
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
-
*/
|
|
7
|
-
import translations from '@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker/i18n/zh_TW';
|
|
8
|
-
export default translations;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
externalUserSourcesHeading: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
slackProvider: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
googleProvider: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
microsoftProvider: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
gitHubProvider: {
|
|
23
|
-
id: string;
|
|
24
|
-
defaultMessage: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
memberLozengeText: {
|
|
28
|
-
id: string;
|
|
29
|
-
defaultMessage: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
guestLozengeText: {
|
|
33
|
-
id: string;
|
|
34
|
-
defaultMessage: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
guestUserLozengeTooltip: {
|
|
38
|
-
id: string;
|
|
39
|
-
defaultMessage: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
guestGroupLozengeTooltip: {
|
|
43
|
-
id: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default } from './components';
|
|
2
|
-
export { getUserRecommendations, hydrateDefaultValues } from './service';
|
|
3
|
-
export type { RecommendationRequest, Props, State, RestrictionFilter } from './types';
|
|
4
|
-
export { isEmail, isTeam, isUser, isExternalUser, isValidEmail, isGroup, EmailType, GroupType, TeamType, UserType, } from '@atlaskit/user-picker';
|
|
5
|
-
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, EmailValidationResponse, EmailValidator, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamHighlight, TeamMember, User, UserHighlight, ExternalUser, UserSource, } from '@atlaskit/user-picker';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility for creating the atl-attribution header for AGG requests
|
|
3
|
-
* Reference: https://hello.atlassian.net/wiki/spaces/AGG/pages/5954141702/Metrics+Attribution+Onboarding+Doc+for+AGG+Clients
|
|
4
|
-
*/
|
|
5
|
-
export interface AtlAttributionHeaderData {
|
|
6
|
-
service: string;
|
|
7
|
-
tenantId?: string;
|
|
8
|
-
activationId?: string;
|
|
9
|
-
product?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Creates the atl-attribution header value for network requests.
|
|
13
|
-
* This header is used for metrics attribution in AGG (Analytics & Insights Graph).
|
|
14
|
-
*
|
|
15
|
-
* @param data Optional attribution data including tenantId, atlWorkspaceId, and product
|
|
16
|
-
* @returns Object with atl-attribution header
|
|
17
|
-
*/
|
|
18
|
-
export declare function createAtlAttributionHeader({ product, activationId, ...props }?: Partial<AtlAttributionHeaderData>): {
|
|
19
|
-
'atl-attribution': string;
|
|
20
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type DefaultValue } from '@atlaskit/user-picker';
|
|
2
|
-
export interface UsersRequest {
|
|
3
|
-
baseUrl: string | undefined;
|
|
4
|
-
accountIds: string[];
|
|
5
|
-
productKey: 'jira' | 'confluence';
|
|
6
|
-
}
|
|
7
|
-
declare function hydrateDefaultValues(baseUrl: string | undefined, value: DefaultValue, productKey: string, siteId: string | undefined, atlAttributes?: {
|
|
8
|
-
tenantId?: string;
|
|
9
|
-
activationId?: string;
|
|
10
|
-
}): Promise<DefaultValue>;
|
|
11
|
-
export default hydrateDefaultValues;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type AtlAttributionHeaderData } from './atl-attribution';
|
|
2
|
-
export type { AtlAttributionHeaderData } from './atl-attribution';
|
|
3
|
-
interface Query {
|
|
4
|
-
query: string;
|
|
5
|
-
variables: Record<string, string> | Record<string, string[]>;
|
|
6
|
-
}
|
|
7
|
-
export interface GraphQLError {
|
|
8
|
-
code?: number;
|
|
9
|
-
reason: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @param {string} serviceUrl - GraphQL service endpoint
|
|
13
|
-
* @param {Query} query - GraphQL query
|
|
14
|
-
* @param {Partial<AtlAttributionHeaderData>} attributionData - Optional attribution data for the atl-attribution header
|
|
15
|
-
*/
|
|
16
|
-
export declare function graphqlQuery<D>(serviceUrl: string, query: Query, attributionData?: Partial<AtlAttributionHeaderData>): Promise<D>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type OptionData } from '@atlaskit/user-picker';
|
|
2
|
-
import { type RecommendationRequest } from '../types';
|
|
3
|
-
import { type IntlShape } from 'react-intl';
|
|
4
|
-
export interface SUPError extends Error {
|
|
5
|
-
message: string;
|
|
6
|
-
statusCode: number;
|
|
7
|
-
}
|
|
8
|
-
declare const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
|
|
9
|
-
export default getUserRecommendations;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type Team } from '@atlaskit/user-picker';
|
|
2
|
-
type LegionRequest = {
|
|
3
|
-
baseUrl?: string;
|
|
4
|
-
id: string;
|
|
5
|
-
siteId?: string;
|
|
6
|
-
};
|
|
7
|
-
export type LegionTeamState = 'ACTIVE' | 'DISBANDED' | 'PURGED';
|
|
8
|
-
export type LegionResponse = {
|
|
9
|
-
id: string;
|
|
10
|
-
displayName: string;
|
|
11
|
-
smallAvatarImageUrl: string;
|
|
12
|
-
state?: LegionTeamState;
|
|
13
|
-
};
|
|
14
|
-
declare const hydrateTeamFromLegion: (request: LegionRequest) => Promise<Team>;
|
|
15
|
-
export default hydrateTeamFromLegion;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type User } from '@atlaskit/user-picker';
|
|
2
|
-
import { type AtlAttributionHeaderData } from './graphqlUtils';
|
|
3
|
-
interface UserData {
|
|
4
|
-
accountId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
picture: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ApiClientResponse {
|
|
9
|
-
users: UserData[];
|
|
10
|
-
}
|
|
11
|
-
declare const getHydratedUsers: (baseUrl: string | undefined, userIds: string[], attributionData?: Partial<AtlAttributionHeaderData>) => Promise<User[]>;
|
|
12
|
-
export default getHydratedUsers;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type OptionData } from '@atlaskit/user-picker';
|
|
2
|
-
import { type IntlShape } from 'react-intl';
|
|
3
|
-
import { EntityType } from '../types';
|
|
4
|
-
interface ServerItem {
|
|
5
|
-
id: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
entityType: EntityType;
|
|
8
|
-
avatarUrl: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
teamAri?: string;
|
|
11
|
-
displayName?: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
}
|
|
14
|
-
interface ServerResponse {
|
|
15
|
-
recommendedUsers: ServerItem[];
|
|
16
|
-
intl: IntlShape;
|
|
17
|
-
}
|
|
18
|
-
export declare const transformUsers: (serverResponse: ServerResponse, intl: IntlShape) => OptionData[];
|
|
19
|
-
export {};
|